@angular/core 20.2.1 → 21.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/api.d.d.ts +1 -1
  2. package/chrome_dev_tools_performance.d.d.ts +1 -1
  3. package/discovery.d.d.ts +8 -2
  4. package/event_dispatcher.d.d.ts +1 -1
  5. package/fesm2022/attribute.mjs +1 -1
  6. package/fesm2022/attribute.mjs.map +1 -1
  7. package/fesm2022/core.mjs +9 -6
  8. package/fesm2022/core.mjs.map +1 -1
  9. package/fesm2022/debug_node.mjs +13 -4
  10. package/fesm2022/debug_node.mjs.map +1 -1
  11. package/fesm2022/not_found.mjs +1 -1
  12. package/fesm2022/not_found.mjs.map +1 -1
  13. package/fesm2022/primitives/di.mjs +1 -1
  14. package/fesm2022/primitives/di.mjs.map +1 -1
  15. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  16. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  17. package/fesm2022/primitives/signals.mjs +1 -1
  18. package/fesm2022/primitives/signals.mjs.map +1 -1
  19. package/fesm2022/resource.mjs +1 -1
  20. package/fesm2022/resource.mjs.map +1 -1
  21. package/fesm2022/root_effect_scheduler.mjs +1 -1
  22. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  23. package/fesm2022/rxjs-interop.mjs +1 -1
  24. package/fesm2022/rxjs-interop.mjs.map +1 -1
  25. package/fesm2022/signal.mjs +1 -1
  26. package/fesm2022/signal.mjs.map +1 -1
  27. package/fesm2022/testing.mjs +1 -1
  28. package/fesm2022/testing.mjs.map +1 -1
  29. package/fesm2022/untracked.mjs +1 -1
  30. package/fesm2022/untracked.mjs.map +1 -1
  31. package/fesm2022/weak_ref.mjs +1 -1
  32. package/fesm2022/weak_ref.mjs.map +1 -1
  33. package/graph.d.d.ts +1 -1
  34. package/index.d.ts +3 -2
  35. package/package.json +2 -2
  36. package/primitives/di/index.d.ts +1 -1
  37. package/primitives/event-dispatch/index.d.ts +1 -1
  38. package/primitives/signals/index.d.ts +1 -1
  39. package/rxjs-interop/index.d.ts +1 -1
  40. package/schematics/bundles/{apply_import_manager-BvwNQhfG.cjs → apply_import_manager-DR9xXCle.cjs} +3 -3
  41. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  42. package/schematics/bundles/{compiler_host-DbXQvYKt.cjs → compiler_host-BXBP7CE2.cjs} +2 -2
  43. package/schematics/bundles/control-flow-migration.cjs +3 -3
  44. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  45. package/schematics/bundles/{index-Bphk20D_.cjs → index-CfTQUOiz.cjs} +4 -4
  46. package/schematics/bundles/{index-Bcv0dPD8.cjs → index-esqfDjNB.cjs} +28 -14
  47. package/schematics/bundles/inject-migration.cjs +3 -3
  48. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  49. package/schematics/bundles/{migrate_ts_type_references-xcaijJqF.cjs → migrate_ts_type_references-6NtAj-Wk.cjs} +5 -5
  50. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  51. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  52. package/schematics/bundles/output-migration.cjs +6 -6
  53. package/schematics/bundles/{project_paths-BaK5P5a5.cjs → project_paths-DcaODbky.cjs} +3 -3
  54. package/schematics/bundles/{project_tsconfig_paths-COqholMT.cjs → project_tsconfig_paths-CS-eSeHC.cjs} +6 -20
  55. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  56. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  57. package/schematics/bundles/router-current-navigation.cjs +4 -4
  58. package/schematics/bundles/{test-bed-get.cjs → router-last-successful-navigation.cjs} +29 -13
  59. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  60. package/schematics/bundles/signal-input-migration.cjs +7 -7
  61. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  62. package/schematics/bundles/signals.cjs +7 -7
  63. package/schematics/bundles/standalone-migration.cjs +4 -4
  64. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  65. package/schematics/migrations.json +7 -17
  66. package/signal.d.d.ts +1 -1
  67. package/testing/index.d.ts +1 -1
  68. package/weak_ref.d.d.ts +1 -1
  69. package/schematics/bundles/document-core.cjs +0 -95
  70. package/schematics/bundles/inject-flags.cjs +0 -147
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.1
2
+ * @license Angular v21.0.0-next.0
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 || encapsulation === ViewEncapsulation.ShadowDom;
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.1']
13526
+ ? ['ng-version', '21.0.0-next.0']
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;
@@ -29129,7 +29137,8 @@ function recreateLView(importMeta, id, newDef, oldDef, lView) {
29129
29137
  // shadow root. The browser will throw if we attempt to attach another one and there's no way
29130
29138
  // to detach it. Our only option is to make a clone only of the root node, replace the node
29131
29139
  // with the clone and use it for the newly-created LView.
29132
- if (oldDef.encapsulation === ViewEncapsulation.ShadowDom) {
29140
+ if (oldDef.encapsulation === ViewEncapsulation.ShadowDom ||
29141
+ oldDef.encapsulation === ViewEncapsulation.IsolatedShadowDom) {
29133
29142
  const newHost = host.cloneNode(false);
29134
29143
  host.replaceWith(newHost);
29135
29144
  host = newHost;