@angular/core 20.2.0-next.4 → 20.2.0-next.5
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/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +8 -2
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/core.mjs +9 -6
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +13 -4
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/not_found.mjs +1 -1
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/resource.mjs +1 -1
- package/fesm2022/root_effect_scheduler.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/signal.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/untracked.mjs +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/graph.d.d.ts +1 -1
- package/index.d.ts +3 -2
- package/package.json +2 -2
- package/primitives/di/index.d.ts +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/{apply_import_manager-Doo9rveC.cjs → apply_import_manager-Bf0h419q.cjs} +3 -3
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-Dtf8fsIr.cjs → compiler_host-CpG50gww.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +4 -4
- package/schematics/bundles/document-core.cjs +5 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-B10puRUY.cjs → index-DTWyGOPM.cjs} +4 -4
- package/schematics/bundles/{index-DHoQSprx.cjs → index-Dl0zaIBS.cjs} +18 -16
- package/schematics/bundles/inject-flags.cjs +5 -5
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Cr2742bs.cjs → migrate_ts_type_references-BlMDltWE.cjs} +5 -5
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{project_paths-CrqHneU0.cjs → project_paths-0E6AzVkB.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-BGhHq5-d.cjs → project_tsconfig_paths-ClCuNoA6.cjs} +11 -9
- 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 +114 -0
- package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
- package/schematics/bundles/signal-input-migration.cjs +7 -7
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +4 -4
- package/schematics/migrations.json +6 -0
- package/signal.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
package/fesm2022/debug_node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.5
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4896,6 +4896,12 @@ var ViewEncapsulation;
|
|
|
4896
4896
|
* all the Component's styling.
|
|
4897
4897
|
*/
|
|
4898
4898
|
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
4899
|
+
/**
|
|
4900
|
+
* Similar to `ShadowDom`, but prevents any external styles from leaking into the
|
|
4901
|
+
* component's ShadowRoot. This is useful when you want to ensure that the component's
|
|
4902
|
+
* styles are completely isolated from the rest of the application, including global styles.
|
|
4903
|
+
*/
|
|
4904
|
+
ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
|
|
4899
4905
|
})(ViewEncapsulation || (ViewEncapsulation = {}));
|
|
4900
4906
|
|
|
4901
4907
|
/**
|
|
@@ -7990,7 +7996,9 @@ function locateHostElement(renderer, elementOrSelector, encapsulation, injector)
|
|
|
7990
7996
|
const preserveHostContent = injector.get(PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT);
|
|
7991
7997
|
// When using native Shadow DOM, do not clear host element to allow native slot
|
|
7992
7998
|
// projection.
|
|
7993
|
-
const preserveContent = preserveHostContent ||
|
|
7999
|
+
const preserveContent = preserveHostContent ||
|
|
8000
|
+
encapsulation === ViewEncapsulation.ShadowDom ||
|
|
8001
|
+
encapsulation === ViewEncapsulation.IsolatedShadowDom;
|
|
7994
8002
|
const rootElement = renderer.selectRootElement(elementOrSelector, preserveContent);
|
|
7995
8003
|
applyRootElementTransform(rootElement);
|
|
7996
8004
|
return rootElement;
|
|
@@ -13515,7 +13523,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
13515
13523
|
}
|
|
13516
13524
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
13517
13525
|
const tAttributes = rootSelectorOrNode
|
|
13518
|
-
? ['ng-version', '20.2.0-next.
|
|
13526
|
+
? ['ng-version', '20.2.0-next.5']
|
|
13519
13527
|
: // Extract attributes and classes from the first selector only to match VE behavior.
|
|
13520
13528
|
extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
13521
13529
|
let creationBindings = null;
|
|
@@ -29045,7 +29053,8 @@ function recreateLView(importMeta, id, newDef, oldDef, lView) {
|
|
|
29045
29053
|
// shadow root. The browser will throw if we attempt to attach another one and there's no way
|
|
29046
29054
|
// to detach it. Our only option is to make a clone only of the root node, replace the node
|
|
29047
29055
|
// with the clone and use it for the newly-created LView.
|
|
29048
|
-
if (oldDef.encapsulation === ViewEncapsulation.ShadowDom
|
|
29056
|
+
if (oldDef.encapsulation === ViewEncapsulation.ShadowDom ||
|
|
29057
|
+
oldDef.encapsulation === ViewEncapsulation.IsolatedShadowDom) {
|
|
29049
29058
|
const newHost = host.cloneNode(false);
|
|
29050
29059
|
host.replaceWith(newHost);
|
|
29051
29060
|
host = newHost;
|