@angular/core 15.2.4 → 15.2.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/esm2020/src/linker/component_factory.mjs +1 -1
- package/esm2020/src/linker/view_container_ref.mjs +2 -2
- package/esm2020/src/linker/view_ref.mjs +2 -2
- package/esm2020/src/render3/hooks.mjs +13 -14
- package/esm2020/src/render3/instructions/shared.mjs +4 -4
- package/esm2020/src/render3/instructions/styling.mjs +5 -2
- package/esm2020/src/render3/pipe.mjs +2 -2
- package/esm2020/src/sanitization/url_sanitizer.mjs +7 -6
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/fake_async.mjs +2 -2
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +35 -27
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +35 -27
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +30 -27
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +30 -27
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +4 -4
- package/package.json +1 -1
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +326 -341
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.6
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1483,7 +1483,7 @@ export declare abstract class ComponentRef<C> {
|
|
|
1483
1483
|
*/
|
|
1484
1484
|
abstract get instance(): C;
|
|
1485
1485
|
/**
|
|
1486
|
-
* The [host view](guide/glossary#view-
|
|
1486
|
+
* The [host view](guide/glossary#view-hierarchy) defined by the template
|
|
1487
1487
|
* for this component instance.
|
|
1488
1488
|
*/
|
|
1489
1489
|
abstract get hostView(): ViewRef;
|
|
@@ -2829,7 +2829,7 @@ declare const EMBEDDED_VIEW_INJECTOR = 21;
|
|
|
2829
2829
|
|
|
2830
2830
|
/**
|
|
2831
2831
|
* Represents an Angular [view](guide/glossary#view) in a view container.
|
|
2832
|
-
* An [embedded view](guide/glossary#view-
|
|
2832
|
+
* An [embedded view](guide/glossary#view-hierarchy) can be referenced from a component
|
|
2833
2833
|
* other than the hosting component whose template defines it, or it can be defined
|
|
2834
2834
|
* independently by a `TemplateRef`.
|
|
2835
2835
|
*
|
|
@@ -9467,7 +9467,7 @@ export declare interface ViewChildrenDecorator {
|
|
|
9467
9467
|
* (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
|
|
9468
9468
|
*
|
|
9469
9469
|
* A view container instance can contain other view containers,
|
|
9470
|
-
* creating a [view hierarchy](guide/glossary#view-
|
|
9470
|
+
* creating a [view hierarchy](guide/glossary#view-hierarchy).
|
|
9471
9471
|
*
|
|
9472
9472
|
* @see `ComponentRef`
|
|
9473
9473
|
* @see `EmbeddedViewRef`
|
package/package.json
CHANGED
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
|
|
60
60
|
var relative_link_resolution_exports = {};
|
|
61
61
|
__export(relative_link_resolution_exports, {
|
|
62
62
|
default: () => relative_link_resolution_default
|
|
@@ -65,7 +65,7 @@ module.exports = __toCommonJS(relative_link_resolution_exports);
|
|
|
65
65
|
var import_schematics = require("@angular-devkit/schematics");
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
|
|
68
|
-
// bazel-out/
|
|
68
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
69
69
|
var import_core = require("@angular-devkit/core");
|
|
70
70
|
function getProjectTsConfigPaths(tree) {
|
|
71
71
|
return __async(this, null, function* () {
|
|
@@ -145,11 +145,11 @@ function getWorkspace(tree) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// bazel-out/
|
|
148
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
149
149
|
var import_path = require("path");
|
|
150
150
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
153
153
|
var path = __toESM(require("path"), 1);
|
|
154
154
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
155
155
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -166,7 +166,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
166
166
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// bazel-out/
|
|
169
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
170
170
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
171
171
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
172
172
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -199,7 +199,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
199
199
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// bazel-out/
|
|
202
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/util.mjs
|
|
203
203
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
204
204
|
var relativeLinkResolution = "relativeLinkResolution";
|
|
205
205
|
var knownConfigValues = /* @__PURE__ */ new Set([`'legacy'`, `'corrected'`]);
|
|
@@ -239,7 +239,7 @@ function sortByStartPosDescending(rewrites) {
|
|
|
239
239
|
return rewrites.sort((entityA, entityB) => entityB.startPos - entityA.startPos);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
// bazel-out/
|
|
242
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/relative-link-resolution/index.mjs
|
|
243
243
|
function relative_link_resolution_default() {
|
|
244
244
|
return (tree) => __async(this, null, function* () {
|
|
245
245
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|
|
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
// bazel-out/
|
|
59
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
|
|
60
60
|
var router_link_with_href_exports = {};
|
|
61
61
|
__export(router_link_with_href_exports, {
|
|
62
62
|
default: () => router_link_with_href_default
|
|
@@ -65,7 +65,7 @@ module.exports = __toCommonJS(router_link_with_href_exports);
|
|
|
65
65
|
var import_schematics = require("@angular-devkit/schematics");
|
|
66
66
|
var import_path2 = require("path");
|
|
67
67
|
|
|
68
|
-
// bazel-out/
|
|
68
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
69
69
|
var import_core = require("@angular-devkit/core");
|
|
70
70
|
function getProjectTsConfigPaths(tree) {
|
|
71
71
|
return __async(this, null, function* () {
|
|
@@ -145,11 +145,11 @@ function getWorkspace(tree) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
// bazel-out/
|
|
148
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
149
149
|
var import_path = require("path");
|
|
150
150
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
151
151
|
|
|
152
|
-
// bazel-out/
|
|
152
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
153
153
|
var path = __toESM(require("path"), 1);
|
|
154
154
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
155
155
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -166,7 +166,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
166
166
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// bazel-out/
|
|
169
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
170
170
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
171
171
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
172
172
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -199,10 +199,10 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
199
199
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
// bazel-out/
|
|
202
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
|
|
203
203
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
204
204
|
|
|
205
|
-
// bazel-out/
|
|
205
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
|
|
206
206
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
207
207
|
function getImportOfIdentifier(typeChecker, node) {
|
|
208
208
|
const symbol = typeChecker.getSymbolAtLocation(node);
|
|
@@ -251,7 +251,7 @@ function findImportSpecifier(nodes, specifierName) {
|
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
// bazel-out/
|
|
254
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
|
|
255
255
|
var import_typescript4 = __toESM(require("typescript"), 1);
|
|
256
256
|
function closestNode(node, predicate) {
|
|
257
257
|
let current = node.parent;
|
|
@@ -264,7 +264,7 @@ function closestNode(node, predicate) {
|
|
|
264
264
|
return null;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
// bazel-out/
|
|
267
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/util.mjs
|
|
268
268
|
var routerLink = "RouterLink";
|
|
269
269
|
var routerLinkWithHref = "RouterLinkWithHref";
|
|
270
270
|
var routerModule = "@angular/router";
|
|
@@ -323,7 +323,7 @@ function sortByStartPosDescending(rewrites) {
|
|
|
323
323
|
return rewrites.sort((entityA, entityB) => entityB.startPos - entityA.startPos);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
// bazel-out/
|
|
326
|
+
// bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/router-link-with-href/index.mjs
|
|
327
327
|
function router_link_with_href_default() {
|
|
328
328
|
return (tree) => __async(this, null, function* () {
|
|
329
329
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|