@angular/core 21.0.0-next.5 → 21.0.0-next.6
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/{attribute.mjs → _attribute-chunk.mjs} +2 -2
- package/fesm2022/_attribute-chunk.mjs.map +1 -0
- package/fesm2022/{debug_node.mjs → _debug_node-chunk.mjs} +17 -7
- package/fesm2022/_debug_node-chunk.mjs.map +1 -0
- package/fesm2022/{effect.mjs → _effect-chunk.mjs} +3 -3
- package/fesm2022/_effect-chunk.mjs.map +1 -0
- package/fesm2022/{not_found.mjs → _not_found-chunk.mjs} +2 -2
- package/fesm2022/_not_found-chunk.mjs.map +1 -0
- package/fesm2022/{resource.mjs → _resource-chunk.mjs} +5 -5
- package/fesm2022/_resource-chunk.mjs.map +1 -0
- package/fesm2022/{root_effect_scheduler.mjs → _root_effect_scheduler-chunk.mjs} +5 -5
- package/fesm2022/_root_effect_scheduler-chunk.mjs.map +1 -0
- package/fesm2022/{signal.mjs → _signal-chunk.mjs} +9 -9
- package/fesm2022/_signal-chunk.mjs.map +1 -0
- package/fesm2022/{weak_ref.mjs → _weak_ref-chunk.mjs} +2 -2
- package/fesm2022/_weak_ref-chunk.mjs.map +1 -0
- package/fesm2022/core.mjs +13 -13
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{primitives/di.mjs → primitives-di.mjs} +3 -3
- package/fesm2022/primitives-di.mjs.map +1 -0
- package/fesm2022/{primitives/event-dispatch.mjs → primitives-event-dispatch.mjs} +3 -3
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -0
- package/fesm2022/primitives-signals.mjs +221 -0
- package/fesm2022/primitives-signals.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +6 -6
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +6 -6
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +12 -12
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
- package/schematics/bundles/application-config-core.cjs +5 -5
- package/schematics/bundles/{apply_import_manager-Bx60Uquz.cjs → apply_import_manager-pLtndDki.cjs} +3 -3
- package/schematics/bundles/bootstrap-options-migration.cjs +5 -5
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-Aouk-n4F.cjs → compiler_host-BJEh7-L1.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +4 -4
- package/schematics/bundles/imports-DwPXlGFl.cjs +1 -1
- package/schematics/bundles/{index-Bb6iejCd.cjs → index-DCfgOEYE.cjs} +32 -36
- package/schematics/bundles/{index-BZQb51Qf.cjs → index-bqpULzLD.cjs} +4 -6
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-By2ZtKls.cjs → migrate_ts_type_references-COE6BA7E.cjs} +5 -5
- package/schematics/bundles/{ng_component_template-B4M8mTyv.cjs → ng_component_template-pDoKlgPP.cjs} +2 -2
- package/schematics/bundles/ng_decorators-BI0uV7KI.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +7 -7
- package/schematics/bundles/ngstyle-to-style-migration.cjs +7 -7
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{parse_html-7Wl_HDnw.cjs → parse_html-B6fblY_V.cjs} +2 -2
- package/schematics/bundles/{project_paths-Dr2s3Pq3.cjs → project_paths-i0Wjiiq1.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-DX9KHLn9.cjs → project_tsconfig_paths-sFatqIE5.cjs} +75 -132
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/router-current-navigation.cjs +4 -4
- package/schematics/bundles/router-last-successful-navigation.cjs +4 -4
- package/schematics/bundles/self-closing-tags-migration.cjs +6 -6
- package/schematics/bundles/signal-input-migration.cjs +67 -8
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +60 -40
- package/schematics/bundles/symbol-BObKoqes.cjs +1 -1
- package/schematics/migrations.json +1 -2
- package/{api.d.d.ts → types/_api-chunk.d.ts} +2 -2
- package/{chrome_dev_tools_performance.d.d.ts → types/_chrome_dev_tools_performance-chunk.d.ts} +3 -3
- package/{discovery.d.d.ts → types/_discovery-chunk.d.ts} +5 -5
- package/{effect.d.d.ts → types/_effect-chunk.d.ts} +2 -2
- package/{event_dispatcher.d.d.ts → types/_event_dispatcher-chunk.d.ts} +1 -1
- package/{graph.d.d.ts → types/_formatter-chunk.d.ts} +14 -2
- package/{weak_ref.d.d.ts → types/_weak_ref-chunk.d.ts} +1 -1
- package/{index.d.ts → types/core.d.ts} +13 -13
- package/{primitives/di/index.d.ts → types/primitives-di.d.ts} +1 -1
- package/{primitives/event-dispatch/index.d.ts → types/primitives-event-dispatch.d.ts} +3 -3
- package/{primitives/signals/index.d.ts → types/primitives-signals.d.ts} +6 -6
- package/{rxjs-interop/index.d.ts → types/rxjs-interop.d.ts} +5 -5
- package/{testing/index.d.ts → types/testing.d.ts} +6 -6
- package/fesm2022/attribute.mjs.map +0 -1
- package/fesm2022/debug_node.mjs.map +0 -1
- package/fesm2022/effect.mjs.map +0 -1
- package/fesm2022/not_found.mjs.map +0 -1
- package/fesm2022/primitives/di.mjs.map +0 -1
- package/fesm2022/primitives/event-dispatch.mjs.map +0 -1
- package/fesm2022/primitives/signals.mjs +0 -88
- package/fesm2022/primitives/signals.mjs.map +0 -1
- package/fesm2022/resource.mjs.map +0 -1
- package/fesm2022/root_effect_scheduler.mjs.map +0 -1
- package/fesm2022/signal.mjs.map +0 -1
- package/fesm2022/weak_ref.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
require('./project_tsconfig_paths-
|
|
12
|
-
require('./index-
|
|
11
|
+
require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
12
|
+
require('./index-DCfgOEYE.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
15
|
+
var project_paths = require('./project_paths-i0Wjiiq1.cjs');
|
|
16
16
|
var imports = require('./imports-DwPXlGFl.cjs');
|
|
17
17
|
var symbol = require('./symbol-BObKoqes.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
require('./project_tsconfig_paths-
|
|
12
|
-
require('./index-
|
|
11
|
+
require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
12
|
+
require('./index-DCfgOEYE.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
15
|
+
var project_paths = require('./project_paths-i0Wjiiq1.cjs');
|
|
16
16
|
var imports = require('./imports-DwPXlGFl.cjs');
|
|
17
17
|
var symbol = require('./symbol-BObKoqes.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
12
|
-
require('./index-
|
|
11
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
12
|
+
require('./index-DCfgOEYE.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
16
|
-
var ng_component_template = require('./ng_component_template-
|
|
17
|
-
var parse_html = require('./parse_html-
|
|
15
|
+
var project_paths = require('./project_paths-i0Wjiiq1.cjs');
|
|
16
|
+
var ng_component_template = require('./ng_component_template-pDoKlgPP.cjs');
|
|
17
|
+
var parse_html = require('./parse_html-B6fblY_V.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
19
19
|
require('node:path/posix');
|
|
20
20
|
require('fs');
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
9
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-COE6BA7E.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
13
|
-
var index$1 = require('./index-
|
|
12
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
13
|
+
var index$1 = require('./index-DCfgOEYE.cjs');
|
|
14
14
|
require('path');
|
|
15
15
|
require('node:path');
|
|
16
|
-
var project_paths = require('./project_paths-
|
|
17
|
-
var index = require('./index-
|
|
16
|
+
var project_paths = require('./project_paths-i0Wjiiq1.cjs');
|
|
17
|
+
var index = require('./index-bqpULzLD.cjs');
|
|
18
18
|
var assert = require('assert');
|
|
19
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
19
|
+
var apply_import_manager = require('./apply_import_manager-pLtndDki.cjs');
|
|
20
20
|
require('@angular-devkit/core');
|
|
21
21
|
require('node:path/posix');
|
|
22
22
|
require('./leading_space-D9nQ8UQC.cjs');
|
|
@@ -969,6 +969,12 @@ function populateKnownInputsFromGlobalData(knownInputs, globalData) {
|
|
|
969
969
|
* @returns Replacements for converting the input.
|
|
970
970
|
*/
|
|
971
971
|
function convertToSignalInput(node, { resolvedMetadata: metadata, resolvedType, preferShorthandIfPossible, originalInputDecorator, initialValue, leadingTodoText, }, info, checker, importManager, result) {
|
|
972
|
+
// Check for 'this' references in initializer before doing anything else
|
|
973
|
+
if (node.initializer &&
|
|
974
|
+
(ts.isArrowFunction(node.initializer) || ts.isFunctionExpression(node.initializer)) &&
|
|
975
|
+
containsThisReferences(node.initializer)) {
|
|
976
|
+
return []; // Skip migration for this input by returning empty replacements
|
|
977
|
+
}
|
|
972
978
|
let optionsLiteral = null;
|
|
973
979
|
// We need an options array for the input because:
|
|
974
980
|
// - the input is either aliased,
|
|
@@ -1038,7 +1044,23 @@ function convertToSignalInput(node, { resolvedMetadata: metadata, resolvedType,
|
|
|
1038
1044
|
if (!modifiersWithoutInputDecorator?.some((s) => s.kind === ts.SyntaxKind.ReadonlyKeyword)) {
|
|
1039
1045
|
modifiersWithoutInputDecorator.push(ts.factory.createModifier(ts.SyntaxKind.ReadonlyKeyword));
|
|
1040
1046
|
}
|
|
1041
|
-
|
|
1047
|
+
// Skip migration if the input is a function that references class members via 'this'
|
|
1048
|
+
if (inputInitializer &&
|
|
1049
|
+
(ts.isArrowFunction(inputInitializer) || ts.isFunctionExpression(inputInitializer))) {
|
|
1050
|
+
if (containsThisReferences(inputInitializer)) {
|
|
1051
|
+
return []; // Skip migration for this input by returning empty replacements
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
let finalInitializer = inputInitializer;
|
|
1055
|
+
if (inputInitializer === undefined) {
|
|
1056
|
+
if (preferShorthandIfPossible === null) {
|
|
1057
|
+
finalInitializer = ts.factory.createIdentifier('undefined');
|
|
1058
|
+
}
|
|
1059
|
+
else {
|
|
1060
|
+
resolvedType = preferShorthandIfPossible.originalType;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
const newNode = ts.factory.createPropertyDeclaration(modifiersWithoutInputDecorator, node.name, undefined, undefined, finalInitializer);
|
|
1042
1064
|
const newPropertyText = result.printer.printNode(ts.EmitHint.Unspecified, newNode, node.getSourceFile());
|
|
1043
1065
|
const replacements = [];
|
|
1044
1066
|
if (leadingTodoText !== null) {
|
|
@@ -1082,6 +1104,43 @@ function extractTransformOfInput(transform, resolvedType, checker) {
|
|
|
1082
1104
|
leadingTodoText,
|
|
1083
1105
|
};
|
|
1084
1106
|
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Checks if a function node contains any references to 'this'.
|
|
1109
|
+
* This is used to skip migration for functions that reference class members.
|
|
1110
|
+
*/
|
|
1111
|
+
function containsThisReferences(node) {
|
|
1112
|
+
let hasThis = false;
|
|
1113
|
+
const visit = (node) => {
|
|
1114
|
+
if (hasThis)
|
|
1115
|
+
return;
|
|
1116
|
+
if (node.kind === ts.SyntaxKind.ThisKeyword) {
|
|
1117
|
+
hasThis = true;
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
if (ts.isPropertyAccessExpression(node)) {
|
|
1121
|
+
const expr = node.expression;
|
|
1122
|
+
if (ts.isIdentifier(expr) && expr.text === 'this') {
|
|
1123
|
+
hasThis = true;
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
ts.forEachChild(node, visit);
|
|
1128
|
+
};
|
|
1129
|
+
if (ts.isArrowFunction(node) || ts.isFunctionExpression(node)) {
|
|
1130
|
+
if (node.body) {
|
|
1131
|
+
if (node.body.kind === ts.SyntaxKind.Block) {
|
|
1132
|
+
node.body.statements.forEach(visit);
|
|
1133
|
+
}
|
|
1134
|
+
else {
|
|
1135
|
+
visit(node.body);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
ts.forEachChild(node, visit);
|
|
1141
|
+
}
|
|
1142
|
+
return hasThis;
|
|
1143
|
+
}
|
|
1085
1144
|
|
|
1086
1145
|
/**
|
|
1087
1146
|
* Phase that migrates `@Input()` declarations to signal inputs and
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
9
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
|
-
var index$1 = require('./index-
|
|
12
|
+
var index$1 = require('./index-DCfgOEYE.cjs');
|
|
13
13
|
require('path');
|
|
14
14
|
require('node:path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
16
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
17
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
15
|
+
var project_paths = require('./project_paths-i0Wjiiq1.cjs');
|
|
16
|
+
var apply_import_manager = require('./apply_import_manager-pLtndDki.cjs');
|
|
17
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-COE6BA7E.cjs');
|
|
18
18
|
var assert = require('assert');
|
|
19
|
-
var index = require('./index-
|
|
19
|
+
var index = require('./index-bqpULzLD.cjs');
|
|
20
20
|
require('@angular-devkit/core');
|
|
21
21
|
require('node:path/posix');
|
|
22
22
|
require('fs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,7 +10,7 @@ var schematics = require('@angular-devkit/schematics');
|
|
|
10
10
|
var signalQueriesMigration = require('./signal-queries-migration.cjs');
|
|
11
11
|
var signalInputMigration = require('./signal-input-migration.cjs');
|
|
12
12
|
var outputMigration = require('./output-migration.cjs');
|
|
13
|
-
require('./project_tsconfig_paths-
|
|
13
|
+
require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
14
14
|
require('typescript');
|
|
15
15
|
require('os');
|
|
16
16
|
require('fs');
|
|
@@ -18,14 +18,14 @@ require('module');
|
|
|
18
18
|
require('path');
|
|
19
19
|
require('url');
|
|
20
20
|
require('@angular-devkit/core');
|
|
21
|
-
require('./index-
|
|
21
|
+
require('./index-DCfgOEYE.cjs');
|
|
22
22
|
require('node:path');
|
|
23
|
-
require('./project_paths-
|
|
23
|
+
require('./project_paths-i0Wjiiq1.cjs');
|
|
24
24
|
require('node:path/posix');
|
|
25
|
-
require('./apply_import_manager-
|
|
26
|
-
require('./migrate_ts_type_references-
|
|
25
|
+
require('./apply_import_manager-pLtndDki.cjs');
|
|
26
|
+
require('./migrate_ts_type_references-COE6BA7E.cjs');
|
|
27
27
|
require('assert');
|
|
28
|
-
require('./index-
|
|
28
|
+
require('./index-bqpULzLD.cjs');
|
|
29
29
|
require('./leading_space-D9nQ8UQC.cjs');
|
|
30
30
|
|
|
31
31
|
function migrate(options) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.0.0-next.
|
|
3
|
+
* @license Angular v21.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var schematics = require('@angular-devkit/schematics');
|
|
10
|
-
var index = require('./index-
|
|
10
|
+
var index = require('./index-DCfgOEYE.cjs');
|
|
11
11
|
var fs = require('fs');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
var ts = require('typescript');
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
15
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
14
|
+
var compiler_host = require('./compiler_host-BJEh7-L1.cjs');
|
|
15
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
|
|
16
16
|
var ng_decorators = require('./ng_decorators-BI0uV7KI.cjs');
|
|
17
17
|
var nodes = require('./nodes-B16H9JUd.cjs');
|
|
18
18
|
var symbol = require('./symbol-BObKoqes.cjs');
|
|
@@ -477,33 +477,42 @@ function moveDeclarationsToImports(literal, allDeclarations, typeChecker, templa
|
|
|
477
477
|
ts.isArrayLiteralExpression(prop.initializer) &&
|
|
478
478
|
prop.initializer.elements.hasTrailingComma);
|
|
479
479
|
// Separate the declarations that we want to keep and ones we need to copy into the `imports`.
|
|
480
|
-
if (ts.isPropertyAssignment(declarationsProp)
|
|
481
|
-
|
|
482
|
-
//
|
|
483
|
-
if (ts.
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
480
|
+
if (ts.isPropertyAssignment(declarationsProp) ||
|
|
481
|
+
ts.isShorthandPropertyAssignment(declarationsProp)) {
|
|
482
|
+
// Handle both regular and shorthand property assignments
|
|
483
|
+
if (ts.isPropertyAssignment(declarationsProp)) {
|
|
484
|
+
// If the declarations are an array, we can analyze it to
|
|
485
|
+
// find any classes from the current migration.
|
|
486
|
+
if (ts.isArrayLiteralExpression(declarationsProp.initializer)) {
|
|
487
|
+
for (const el of declarationsProp.initializer.elements) {
|
|
488
|
+
if (ts.isIdentifier(el)) {
|
|
489
|
+
const correspondingClass = findClassDeclaration(el, typeChecker);
|
|
490
|
+
if (!correspondingClass ||
|
|
491
|
+
// Check whether the declaration is either standalone already or is being converted
|
|
492
|
+
// in this migration. We need to check if it's standalone already, in order to correct
|
|
493
|
+
// some cases where the main app and the test files are being migrated in separate
|
|
494
|
+
// programs.
|
|
495
|
+
isStandaloneDeclaration(correspondingClass, allDeclarations, templateTypeChecker)) {
|
|
496
|
+
declarationsToCopy.push(el);
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
declarationsToPreserve.push(el);
|
|
500
|
+
}
|
|
494
501
|
}
|
|
495
502
|
else {
|
|
496
|
-
|
|
503
|
+
declarationsToCopy.push(el);
|
|
497
504
|
}
|
|
498
505
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
// Otherwise create a spread that will be copied into the `imports`.
|
|
509
|
+
declarationsToCopy.push(ts.factory.createSpreadElement(declarationsProp.initializer));
|
|
502
510
|
}
|
|
503
511
|
}
|
|
504
512
|
else {
|
|
505
|
-
//
|
|
506
|
-
|
|
513
|
+
// For shorthand properties, treat them as unanalyzable and use spread syntax
|
|
514
|
+
// shorthand properties were being ignored, now they're detected and treated as spreads
|
|
515
|
+
declarationsToCopy.push(ts.factory.createSpreadElement(declarationsProp.name));
|
|
507
516
|
}
|
|
508
517
|
}
|
|
509
518
|
// If there are no `imports`, create them with the declarations we want to copy.
|
|
@@ -511,35 +520,38 @@ function moveDeclarationsToImports(literal, allDeclarations, typeChecker, templa
|
|
|
511
520
|
properties.push(ts.factory.createPropertyAssignment('imports', ts.factory.createArrayLiteralExpression(ts.factory.createNodeArray(declarationsToCopy, hasAnyArrayTrailingComma && declarationsToCopy.length > 2))));
|
|
512
521
|
}
|
|
513
522
|
for (const prop of literal.properties) {
|
|
514
|
-
if (!isNamedPropertyAssignment(prop)) {
|
|
523
|
+
if (!isNamedPropertyAssignment(prop) && !ts.isShorthandPropertyAssignment(prop)) {
|
|
515
524
|
properties.push(prop);
|
|
516
525
|
continue;
|
|
517
526
|
}
|
|
518
527
|
// If we have declarations to preserve, update the existing property, otherwise drop it.
|
|
519
528
|
if (prop === declarationsProp) {
|
|
520
529
|
if (declarationsToPreserve.length > 0) {
|
|
521
|
-
const hasTrailingComma = ts.isArrayLiteralExpression(prop.initializer)
|
|
530
|
+
const hasTrailingComma = ts.isPropertyAssignment(prop) && ts.isArrayLiteralExpression(prop.initializer)
|
|
522
531
|
? prop.initializer.elements.hasTrailingComma
|
|
523
532
|
: hasAnyArrayTrailingComma;
|
|
524
|
-
properties.push(ts.factory.
|
|
533
|
+
properties.push(ts.factory.createPropertyAssignment(prop.name, ts.factory.createArrayLiteralExpression(ts.factory.createNodeArray(declarationsToPreserve, hasTrailingComma && declarationsToPreserve.length > 2))));
|
|
525
534
|
}
|
|
526
535
|
continue;
|
|
527
536
|
}
|
|
528
537
|
// If we have an `imports` array and declarations
|
|
529
538
|
// that should be copied, we merge the two arrays.
|
|
530
539
|
if (prop === importsProp && declarationsToCopy.length > 0) {
|
|
531
|
-
|
|
532
|
-
if (ts.
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
+
// Only regular property assignments have initializers that we can merge
|
|
541
|
+
if (ts.isPropertyAssignment(prop)) {
|
|
542
|
+
let initializer;
|
|
543
|
+
if (ts.isArrayLiteralExpression(prop.initializer)) {
|
|
544
|
+
initializer = ts.factory.updateArrayLiteralExpression(prop.initializer, ts.factory.createNodeArray([...prop.initializer.elements, ...declarationsToCopy], prop.initializer.elements.hasTrailingComma));
|
|
545
|
+
}
|
|
546
|
+
else {
|
|
547
|
+
initializer = ts.factory.createArrayLiteralExpression(ts.factory.createNodeArray([ts.factory.createSpreadElement(prop.initializer), ...declarationsToCopy],
|
|
548
|
+
// Expect the declarations to be greater than 1 since
|
|
549
|
+
// we have the pre-existing initializer already.
|
|
550
|
+
hasAnyArrayTrailingComma && declarationsToCopy.length > 1));
|
|
551
|
+
}
|
|
552
|
+
properties.push(ts.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
553
|
+
continue;
|
|
540
554
|
}
|
|
541
|
-
properties.push(ts.factory.updatePropertyAssignment(prop, prop.name, initializer));
|
|
542
|
-
continue;
|
|
543
555
|
}
|
|
544
556
|
// Retain any remaining properties.
|
|
545
557
|
properties.push(prop);
|
|
@@ -649,8 +661,14 @@ function findImportLocation(target, inContext, importMode, typeChecker) {
|
|
|
649
661
|
* but not `declarations: []`.
|
|
650
662
|
*/
|
|
651
663
|
function hasNgModuleMetadataElements(node) {
|
|
652
|
-
|
|
653
|
-
|
|
664
|
+
if (ts.isPropertyAssignment(node)) {
|
|
665
|
+
return !ts.isArrayLiteralExpression(node.initializer) || node.initializer.elements.length > 0;
|
|
666
|
+
}
|
|
667
|
+
if (ts.isShorthandPropertyAssignment(node)) {
|
|
668
|
+
// For shorthand properties, we assume they have elements since they reference a variable
|
|
669
|
+
return true;
|
|
670
|
+
}
|
|
671
|
+
return false;
|
|
654
672
|
}
|
|
655
673
|
/** Finds all modules whose declarations can be migrated. */
|
|
656
674
|
function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
|
|
@@ -827,6 +845,7 @@ function analyzeTestingModules(testObjects, typeChecker) {
|
|
|
827
845
|
const importsProp = findLiteralProperty(obj, 'imports');
|
|
828
846
|
const importElements = importsProp &&
|
|
829
847
|
hasNgModuleMetadataElements(importsProp) &&
|
|
848
|
+
ts.isPropertyAssignment(importsProp) &&
|
|
830
849
|
ts.isArrayLiteralExpression(importsProp.initializer)
|
|
831
850
|
? importsProp.initializer.elements.filter((el) => {
|
|
832
851
|
// Filter out calls since they may be a `ModuleWithProviders`.
|
|
@@ -871,6 +890,7 @@ function extractDeclarationsFromTestObject(obj, typeChecker) {
|
|
|
871
890
|
const declarations = findLiteralProperty(obj, 'declarations');
|
|
872
891
|
if (declarations &&
|
|
873
892
|
hasNgModuleMetadataElements(declarations) &&
|
|
893
|
+
ts.isPropertyAssignment(declarations) &&
|
|
874
894
|
ts.isArrayLiteralExpression(declarations.initializer)) {
|
|
875
895
|
for (const element of declarations.initializer.elements) {
|
|
876
896
|
const declaration = findClassDeclaration(element, typeChecker);
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
"control-flow-migration": {
|
|
4
4
|
"version": "21.0.0",
|
|
5
5
|
"description": "Converts the entire application to block control flow syntax",
|
|
6
|
-
"factory": "./bundles/control-flow-migration.cjs#migrate"
|
|
7
|
-
"optional": true
|
|
6
|
+
"factory": "./bundles/control-flow-migration.cjs#migrate"
|
|
8
7
|
},
|
|
9
8
|
"router-current-navigation": {
|
|
10
9
|
"version": "21.0.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { OutputRef, OutputRefSubscription, DestroyRef, Signal, WritableSignal, ValueEqualityFn, Injector } from './
|
|
7
|
+
import { OutputRef, OutputRefSubscription, DestroyRef, Signal, WritableSignal, ValueEqualityFn, Injector } from './_chrome_dev_tools_performance-chunk.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* An `OutputEmitterRef` is created by the `output()` function and can be
|
package/{chrome_dev_tools_performance.d.d.ts → types/_chrome_dev_tools_performance-chunk.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { SIGNAL } from './
|
|
8
|
-
import { EventContract } from './
|
|
7
|
+
import { SIGNAL } from './_formatter-chunk.js';
|
|
8
|
+
import { EventContract } from './_event_dispatcher-chunk.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* A reactive value which notifies consumers of any changes.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { InjectionToken, Type, ValueProvider, ExistingProvider, FactoryProvider, ConstructorProvider, StaticClassProvider, ClassProvider, EnvironmentProviders, Injector, ProviderToken, InjectOptions, Provider, ProcessProvidersFunction, ModuleWithProviders, DestroyRef, InternalInjectFlags, WritableSignal, OutputRef, StaticProvider } from './
|
|
7
|
+
import { InjectionToken, Type, ValueProvider, ExistingProvider, FactoryProvider, ConstructorProvider, StaticClassProvider, ClassProvider, EnvironmentProviders, Injector, ProviderToken, InjectOptions, Provider, ProcessProvidersFunction, ModuleWithProviders, DestroyRef, InternalInjectFlags, WritableSignal, OutputRef, StaticProvider } from './_chrome_dev_tools_performance-chunk.js';
|
|
8
8
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
9
|
-
import './
|
|
10
|
-
import {
|
|
9
|
+
import './_event_dispatcher-chunk.js';
|
|
10
|
+
import { ReactiveNode } from './_formatter-chunk.js';
|
|
11
|
+
import { SignalNode, BaseEffectNode } from './_effect-chunk.js';
|
|
11
12
|
import { Injector as Injector$1, InjectionToken as InjectionToken$1, NotFound } from '@angular/core/primitives/di';
|
|
12
|
-
import { ReactiveNode } from './graph.d.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Reactive node type for an input signal. An input signal extends a signal.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './
|
|
7
|
+
import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './_formatter-chunk.js';
|
|
8
8
|
|
|
9
9
|
interface SignalNode<T> extends ReactiveNode {
|
|
10
10
|
value: T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -198,5 +198,17 @@ declare function consumerDestroy(node: ReactiveNode): void;
|
|
|
198
198
|
declare function runPostProducerCreatedFn(node: ReactiveNode): void;
|
|
199
199
|
declare function setPostProducerCreatedFn(fn: ReactiveHookFn | null): ReactiveHookFn | null;
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
declare global {
|
|
202
|
+
var devtoolsFormatters: any[];
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Installs the custom formatter into custom formatting on Signals in the devtools.
|
|
206
|
+
*
|
|
207
|
+
* Supported by both Chrome and Firefox.
|
|
208
|
+
*
|
|
209
|
+
* @see https://firefox-source-docs.mozilla.org/devtools-user/custom_formatters/index.html
|
|
210
|
+
*/
|
|
211
|
+
declare function installDevToolsSignalFormatter(): void;
|
|
212
|
+
|
|
213
|
+
export { REACTIVE_NODE, SIGNAL, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, defaultEquals, finalizeConsumerAfterComputation, getActiveConsumer, installDevToolsSignalFormatter, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, resetConsumerBeforeComputation, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn };
|
|
202
214
|
export type { Reactive, ReactiveHookFn, ReactiveNode, ValueEqualityFn };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { SIGNAL, ValueEqualityFn as ValueEqualityFn$1 } from './
|
|
8
|
-
import { Signal, WritableSignal, OutputRef, Provider, EnvironmentProviders, Type as Type$1, ModuleWithProviders, TypeProvider, ValueProvider, ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, ProviderToken, StaticProvider, Injector, ValueSansProvider, ExistingSansProvider, StaticClassSansProvider, ConstructorSansProvider, FactorySansProvider, ClassSansProvider, InjectionToken, InternalInjectFlags, InjectOptions, ValueEqualityFn, EventCallback, isSignal, enableProfiling as enableProfiling$1 } from './
|
|
9
|
-
export { AbstractType, CreateSignalOptions, DestroyRef, DestroyableInjector, OutputRefSubscription, signal, InternalEnvironmentProviders as ɵInternalEnvironmentProviders, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, Writable as ɵWritable, isEnvironmentProviders as ɵisEnvironmentProviders, ɵunwrapWritableSignal } from './
|
|
10
|
-
import { InputSignalNode, TypeDecorator, AfterRenderRef, EffectCleanupRegisterFn, SchemaMetadata, ComponentDef, DirectiveDef, CssSelectorList, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, TConstantsOrFactory, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, InputFlags, InputTransformFunction, EmbeddedViewRef, LView, ApplicationRef, ChangeDetectorRef, ComponentFactory as ComponentFactory$1, NgModuleRef as NgModuleRef$1, EnvironmentInjector, DirectiveWithBindings, Binding, ComponentRef as ComponentRef$1, ElementRef, ComponentFactoryResolver as ComponentFactoryResolver$1, InternalNgModuleRef, NgModuleFactory as NgModuleFactory$1, ViewRef as ViewRef$1, PlatformRef, NgZone, ɵɵFactoryDeclaration as __FactoryDeclaration, ɵɵInjectableDeclaration as __InjectableDeclaration, ɵɵNgModuleDeclaration as __NgModuleDeclaration, ɵɵInjectorDeclaration as __InjectorDeclaration, DeferBlockDependencyInterceptor, DeferBlockConfig, DeferBlockState, TNode, LContainer, TView, TDeferBlockDetails, RNode, Component, TrustedHTML, DehydratedDeferBlock, CompilerOptions, HostDirectiveConfig, ComponentType, NgModuleScopeInfoFromDecorator, DependencyResolverFn, TDeferDetailsFlags, SanitizerFn, AnimationFunction, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, ProjectionSlots, QueryFlags, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript, PipeType, DirectiveType } from './
|
|
11
|
-
export { APP_BOOTSTRAP_LISTENER, AnimationCallbackEvent, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, MAX_ANIMATION_TIMEOUT, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleDecorator, Output, OutputDecorator, PipeDecorator, Predicate, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, Sanitizer, SecurityContext, asNativeElements, effect, getDebugNode, inputBinding, outputBinding, twoWayBinding, ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED, AfterRenderManager as ɵAfterRenderManager, AnimationRendererType as ɵAnimationRendererType, AttributeMarker as ɵAttributeMarker, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockDetails as ɵDeferBlockDetails, EffectScheduler as ɵEffectScheduler, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NavigateEvent as ɵNavigateEvent, Navigation as ɵNavigation, NavigationCurrentEntryChangeEvent as ɵNavigationCurrentEntryChangeEvent, NavigationDestination as ɵNavigationDestination, NavigationHistoryEntry as ɵNavigationHistoryEntry, NavigationInterceptOptions as ɵNavigationInterceptOptions, NavigationNavigateOptions as ɵNavigationNavigateOptions, NavigationOptions as ɵNavigationOptions, NavigationReloadOptions as ɵNavigationReloadOptions, NavigationResult as ɵNavigationResult, NavigationTransition as ɵNavigationTransition, NavigationTypeString as ɵNavigationTypeString, NavigationUpdateCurrentEntryOptions as ɵNavigationUpdateCurrentEntryOptions, NoopNgZone as ɵNoopNgZone, NotificationSource as ɵNotificationSource, PROVIDED_ZONELESS as ɵPROVIDED_ZONELESS, PipeDef as ɵPipeDef, R3Injector as ɵR3Injector, RenderFlags as ɵRenderFlags, TracingAction as ɵTracingAction, TracingService as ɵTracingService, TracingSnapshot as ɵTracingSnapshot, ZONELESS_ENABLED as ɵZONELESS_ENABLED, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getInjectableDef as ɵgetInjectableDef, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isInjectable as ɵisInjectable, setZoneProvidersForNextBootstrap as ɵsetZoneProvidersForNextBootstrap, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵInjectorDef, ɵɵPipeDeclaration, ɵɵdefineInjectable, ɵɵdefineInjector } from './
|
|
12
|
-
import { ResourceOptions, ResourceRef, ResourceStreamingLoader, ResourceStatus, WritableResource, Resource } from './
|
|
13
|
-
export { BaseResourceOptions, OutputEmitterRef, OutputOptions, PromiseResourceOptions, ResourceLoader, ResourceLoaderParams, ResourceStreamItem, StreamingResourceOptions, output, getOutputDestroyRef as ɵgetOutputDestroyRef } from './
|
|
14
|
-
import './
|
|
7
|
+
import { SIGNAL, ValueEqualityFn as ValueEqualityFn$1 } from './_formatter-chunk.js';
|
|
8
|
+
import { Signal, WritableSignal, OutputRef, Provider, EnvironmentProviders, Type as Type$1, ModuleWithProviders, TypeProvider, ValueProvider, ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, ProviderToken, StaticProvider, Injector, ValueSansProvider, ExistingSansProvider, StaticClassSansProvider, ConstructorSansProvider, FactorySansProvider, ClassSansProvider, InjectionToken, InternalInjectFlags, InjectOptions, ValueEqualityFn, EventCallback, isSignal, enableProfiling as enableProfiling$1 } from './_chrome_dev_tools_performance-chunk.js';
|
|
9
|
+
export { AbstractType, CreateSignalOptions, DestroyRef, DestroyableInjector, OutputRefSubscription, signal, InternalEnvironmentProviders as ɵInternalEnvironmentProviders, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, Writable as ɵWritable, isEnvironmentProviders as ɵisEnvironmentProviders, ɵunwrapWritableSignal } from './_chrome_dev_tools_performance-chunk.js';
|
|
10
|
+
import { InputSignalNode, TypeDecorator, AfterRenderRef, EffectCleanupRegisterFn, SchemaMetadata, ComponentDef, DirectiveDef, CssSelectorList, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, TConstantsOrFactory, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, InputFlags, InputTransformFunction, EmbeddedViewRef, LView, ApplicationRef, ChangeDetectorRef, ComponentFactory as ComponentFactory$1, NgModuleRef as NgModuleRef$1, EnvironmentInjector, DirectiveWithBindings, Binding, ComponentRef as ComponentRef$1, ElementRef, ComponentFactoryResolver as ComponentFactoryResolver$1, InternalNgModuleRef, NgModuleFactory as NgModuleFactory$1, ViewRef as ViewRef$1, PlatformRef, NgZone, ɵɵFactoryDeclaration as __FactoryDeclaration, ɵɵInjectableDeclaration as __InjectableDeclaration, ɵɵNgModuleDeclaration as __NgModuleDeclaration, ɵɵInjectorDeclaration as __InjectorDeclaration, DeferBlockDependencyInterceptor, DeferBlockConfig, DeferBlockState, TNode, LContainer, TView, TDeferBlockDetails, RNode, Component, TrustedHTML, DehydratedDeferBlock, CompilerOptions, HostDirectiveConfig, ComponentType, NgModuleScopeInfoFromDecorator, DependencyResolverFn, TDeferDetailsFlags, SanitizerFn, AnimationFunction, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, ProjectionSlots, QueryFlags, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript, PipeType, DirectiveType } from './_discovery-chunk.js';
|
|
11
|
+
export { APP_BOOTSTRAP_LISTENER, AnimationCallbackEvent, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, MAX_ANIMATION_TIMEOUT, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleDecorator, Output, OutputDecorator, PipeDecorator, Predicate, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, Sanitizer, SecurityContext, asNativeElements, effect, getDebugNode, inputBinding, outputBinding, twoWayBinding, ANIMATIONS_DISABLED as ɵANIMATIONS_DISABLED, AfterRenderManager as ɵAfterRenderManager, AnimationRendererType as ɵAnimationRendererType, AttributeMarker as ɵAttributeMarker, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, ChangeDetectionScheduler as ɵChangeDetectionScheduler, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockDetails as ɵDeferBlockDetails, EffectScheduler as ɵEffectScheduler, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NavigateEvent as ɵNavigateEvent, Navigation as ɵNavigation, NavigationCurrentEntryChangeEvent as ɵNavigationCurrentEntryChangeEvent, NavigationDestination as ɵNavigationDestination, NavigationHistoryEntry as ɵNavigationHistoryEntry, NavigationInterceptOptions as ɵNavigationInterceptOptions, NavigationNavigateOptions as ɵNavigationNavigateOptions, NavigationOptions as ɵNavigationOptions, NavigationReloadOptions as ɵNavigationReloadOptions, NavigationResult as ɵNavigationResult, NavigationTransition as ɵNavigationTransition, NavigationTypeString as ɵNavigationTypeString, NavigationUpdateCurrentEntryOptions as ɵNavigationUpdateCurrentEntryOptions, NoopNgZone as ɵNoopNgZone, NotificationSource as ɵNotificationSource, PROVIDED_ZONELESS as ɵPROVIDED_ZONELESS, PipeDef as ɵPipeDef, R3Injector as ɵR3Injector, RenderFlags as ɵRenderFlags, TracingAction as ɵTracingAction, TracingService as ɵTracingService, TracingSnapshot as ɵTracingSnapshot, ZONELESS_ENABLED as ɵZONELESS_ENABLED, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getInjectableDef as ɵgetInjectableDef, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isInjectable as ɵisInjectable, setZoneProvidersForNextBootstrap as ɵsetZoneProvidersForNextBootstrap, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵInjectorDef, ɵɵPipeDeclaration, ɵɵdefineInjectable, ɵɵdefineInjector } from './_discovery-chunk.js';
|
|
12
|
+
import { ResourceOptions, ResourceRef, ResourceStreamingLoader, ResourceStatus, WritableResource, Resource } from './_api-chunk.js';
|
|
13
|
+
export { BaseResourceOptions, OutputEmitterRef, OutputOptions, PromiseResourceOptions, ResourceLoader, ResourceLoaderParams, ResourceStreamItem, StreamingResourceOptions, output, getOutputDestroyRef as ɵgetOutputDestroyRef } from './_api-chunk.js';
|
|
14
|
+
import './_event_dispatcher-chunk.js';
|
|
15
15
|
import { Observable, Subscribable } from 'rxjs';
|
|
16
|
-
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './
|
|
17
|
-
export { setCurrentInjector as ɵsetCurrentInjector } from './primitives
|
|
18
|
-
import './
|
|
16
|
+
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './_weak_ref-chunk.js';
|
|
17
|
+
export { setCurrentInjector as ɵsetCurrentInjector } from './primitives-di.js';
|
|
18
|
+
import './_effect-chunk.js';
|
|
19
19
|
import '@angular/core/primitives/di';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -2178,6 +2178,7 @@ declare function computed<T>(computation: () => T, options?: CreateComputedOptio
|
|
|
2178
2178
|
*/
|
|
2179
2179
|
declare function linkedSignal<D>(computation: () => D, options?: {
|
|
2180
2180
|
equal?: ValueEqualityFn<NoInfer<D>>;
|
|
2181
|
+
debugName?: string;
|
|
2181
2182
|
}): WritableSignal<D>;
|
|
2182
2183
|
/**
|
|
2183
2184
|
* Creates a writable signal whose value is initialized and reset by the linked, reactive computation.
|
|
@@ -8247,7 +8248,6 @@ interface R3DeclareComponentFacade extends R3DeclareDirectiveFacade {
|
|
|
8247
8248
|
animations?: OpaqueValue;
|
|
8248
8249
|
changeDetection?: ChangeDetectionStrategy;
|
|
8249
8250
|
encapsulation?: ViewEncapsulation;
|
|
8250
|
-
interpolation?: [string, string];
|
|
8251
8251
|
preserveWhitespaces?: boolean;
|
|
8252
8252
|
}
|
|
8253
8253
|
type R3DeclareTemplateDependencyFacade = {
|