@angular/cdk 19.2.3 → 20.0.0-next.1

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 (180) hide show
  1. package/a11y/index.d.ts +12 -843
  2. package/a11y-module.d-7d03e079.d.ts +313 -0
  3. package/accordion/index.d.ts +1 -1
  4. package/activedescendant-key-manager.d-11921e3a.d.ts +31 -0
  5. package/bidi/index.d.ts +3 -52
  6. package/bidi-module.d-f8648621.d.ts +53 -0
  7. package/coercion/index.d.ts +2 -15
  8. package/collections/index.d.ts +10 -269
  9. package/data-source.d-7cab2c9d.d.ts +42 -0
  10. package/dialog/index.d.ts +17 -32
  11. package/drag-drop/index.d.ts +14 -18
  12. package/fesm2022/a11y-module-e6996d20.mjs +952 -0
  13. package/fesm2022/a11y-module-e6996d20.mjs.map +1 -0
  14. package/fesm2022/a11y.mjs +42 -2448
  15. package/fesm2022/a11y.mjs.map +1 -1
  16. package/fesm2022/accordion.mjs +12 -12
  17. package/fesm2022/accordion.mjs.map +1 -1
  18. package/fesm2022/activedescendant-key-manager-1351a9d3.mjs +16 -0
  19. package/fesm2022/activedescendant-key-manager-1351a9d3.mjs.map +1 -0
  20. package/fesm2022/array-ee3b4bab.mjs +6 -0
  21. package/fesm2022/array-ee3b4bab.mjs.map +1 -0
  22. package/fesm2022/backwards-compatibility-bcbe473e.mjs +25 -0
  23. package/fesm2022/backwards-compatibility-bcbe473e.mjs.map +1 -0
  24. package/fesm2022/bidi-module-0726b65c.mjs +78 -0
  25. package/fesm2022/bidi-module-0726b65c.mjs.map +1 -0
  26. package/fesm2022/bidi.mjs +4 -143
  27. package/fesm2022/bidi.mjs.map +1 -1
  28. package/fesm2022/breakpoints-observer-d4584b66.mjs +179 -0
  29. package/fesm2022/breakpoints-observer-d4584b66.mjs.map +1 -0
  30. package/fesm2022/cdk.mjs +1 -1
  31. package/fesm2022/cdk.mjs.map +1 -1
  32. package/fesm2022/clipboard.mjs +10 -10
  33. package/fesm2022/clipboard.mjs.map +1 -1
  34. package/fesm2022/coercion/private.mjs +2 -14
  35. package/fesm2022/coercion/private.mjs.map +1 -1
  36. package/fesm2022/coercion.mjs +5 -39
  37. package/fesm2022/coercion.mjs.map +1 -1
  38. package/fesm2022/collections.mjs +7 -472
  39. package/fesm2022/collections.mjs.map +1 -1
  40. package/fesm2022/css-pixel-value-286c9a60.mjs +10 -0
  41. package/fesm2022/css-pixel-value-286c9a60.mjs.map +1 -0
  42. package/fesm2022/data-source-5320b6fd.mjs +15 -0
  43. package/fesm2022/data-source-5320b6fd.mjs.map +1 -0
  44. package/fesm2022/dialog.mjs +37 -41
  45. package/fesm2022/dialog.mjs.map +1 -1
  46. package/fesm2022/directionality-7ea26429.mjs +72 -0
  47. package/fesm2022/directionality-7ea26429.mjs.map +1 -0
  48. package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs +44 -0
  49. package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs.map +1 -0
  50. package/fesm2022/drag-drop.mjs +48 -46
  51. package/fesm2022/drag-drop.mjs.map +1 -1
  52. package/fesm2022/element-705567fe.mjs +29 -0
  53. package/fesm2022/element-705567fe.mjs.map +1 -0
  54. package/fesm2022/fake-event-detection-7055b1bd.mjs +24 -0
  55. package/fesm2022/fake-event-detection-7055b1bd.mjs.map +1 -0
  56. package/fesm2022/focus-key-manager-58d29acd.mjs +22 -0
  57. package/fesm2022/focus-key-manager-58d29acd.mjs.map +1 -0
  58. package/fesm2022/focus-monitor-cebaa0d1.mjs +629 -0
  59. package/fesm2022/focus-monitor-cebaa0d1.mjs.map +1 -0
  60. package/fesm2022/id-generator-fba495fb.mjs +37 -0
  61. package/fesm2022/id-generator-fba495fb.mjs.map +1 -0
  62. package/fesm2022/keycodes-107cd3e4.mjs +122 -0
  63. package/fesm2022/keycodes-107cd3e4.mjs.map +1 -0
  64. package/fesm2022/keycodes.mjs +2 -132
  65. package/fesm2022/keycodes.mjs.map +1 -1
  66. package/fesm2022/layout.mjs +12 -180
  67. package/fesm2022/layout.mjs.map +1 -1
  68. package/fesm2022/list-key-manager-c7b5cefb.mjs +360 -0
  69. package/fesm2022/list-key-manager-c7b5cefb.mjs.map +1 -0
  70. package/fesm2022/listbox.mjs +21 -16
  71. package/fesm2022/listbox.mjs.map +1 -1
  72. package/fesm2022/menu.mjs +76 -56
  73. package/fesm2022/menu.mjs.map +1 -1
  74. package/fesm2022/modifiers-33a5859e.mjs +13 -0
  75. package/fesm2022/modifiers-33a5859e.mjs.map +1 -0
  76. package/fesm2022/observable-97c0792c.mjs +15 -0
  77. package/fesm2022/observable-97c0792c.mjs.map +1 -0
  78. package/fesm2022/observe-content-d2a6b5a0.mjs +210 -0
  79. package/fesm2022/observe-content-d2a6b5a0.mjs.map +1 -0
  80. package/fesm2022/observers/private.mjs +3 -3
  81. package/fesm2022/observers/private.mjs.map +1 -1
  82. package/fesm2022/observers.mjs +5 -209
  83. package/fesm2022/observers.mjs.map +1 -1
  84. package/fesm2022/overlay-module-863b82c9.mjs +3029 -0
  85. package/fesm2022/overlay-module-863b82c9.mjs.map +1 -0
  86. package/fesm2022/overlay.mjs +28 -3023
  87. package/fesm2022/overlay.mjs.map +1 -1
  88. package/fesm2022/passive-listeners-c0bdc49f.mjs +31 -0
  89. package/fesm2022/passive-listeners-c0bdc49f.mjs.map +1 -0
  90. package/fesm2022/platform-1be098b0.mjs +77 -0
  91. package/fesm2022/platform-1be098b0.mjs.map +1 -0
  92. package/fesm2022/platform.mjs +13 -289
  93. package/fesm2022/platform.mjs.map +1 -1
  94. package/fesm2022/portal-directives-c88fea11.mjs +615 -0
  95. package/fesm2022/portal-directives-c88fea11.mjs.map +1 -0
  96. package/fesm2022/portal.mjs +3 -675
  97. package/fesm2022/portal.mjs.map +1 -1
  98. package/fesm2022/private.mjs +3 -59
  99. package/fesm2022/private.mjs.map +1 -1
  100. package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs +156 -0
  101. package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs.map +1 -0
  102. package/fesm2022/scrolling-61955dd1.mjs +99 -0
  103. package/fesm2022/scrolling-61955dd1.mjs.map +1 -0
  104. package/fesm2022/scrolling-module-aa9eeac5.mjs +1463 -0
  105. package/fesm2022/scrolling-module-aa9eeac5.mjs.map +1 -0
  106. package/fesm2022/scrolling.mjs +12 -1459
  107. package/fesm2022/scrolling.mjs.map +1 -1
  108. package/fesm2022/selection-model-30243dba.mjs +221 -0
  109. package/fesm2022/selection-model-30243dba.mjs.map +1 -0
  110. package/fesm2022/shadow-dom-9f403d00.mjs +49 -0
  111. package/fesm2022/shadow-dom-9f403d00.mjs.map +1 -0
  112. package/fesm2022/stepper.mjs +32 -26
  113. package/fesm2022/stepper.mjs.map +1 -1
  114. package/fesm2022/style-loader-e14dc585.mjs +47 -0
  115. package/fesm2022/style-loader-e14dc585.mjs.map +1 -0
  116. package/fesm2022/table.mjs +87 -121
  117. package/fesm2022/table.mjs.map +1 -1
  118. package/fesm2022/test-environment-34eef1ee.mjs +19 -0
  119. package/fesm2022/test-environment-34eef1ee.mjs.map +1 -0
  120. package/fesm2022/testing/selenium-webdriver.mjs +2 -1
  121. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  122. package/fesm2022/testing/testbed.mjs +33 -34
  123. package/fesm2022/testing/testbed.mjs.map +1 -1
  124. package/fesm2022/testing.mjs +2 -697
  125. package/fesm2022/testing.mjs.map +1 -1
  126. package/fesm2022/text-field.mjs +20 -19
  127. package/fesm2022/text-field.mjs.map +1 -1
  128. package/fesm2022/text-filtering-b60ba8a2.mjs +698 -0
  129. package/fesm2022/text-filtering-b60ba8a2.mjs.map +1 -0
  130. package/fesm2022/tree-key-manager-2f20c79c.mjs +360 -0
  131. package/fesm2022/tree-key-manager-2f20c79c.mjs.map +1 -0
  132. package/fesm2022/tree.mjs +33 -29
  133. package/fesm2022/tree.mjs.map +1 -1
  134. package/fesm2022/typeahead-11ae39bd.mjs +88 -0
  135. package/fesm2022/typeahead-11ae39bd.mjs.map +1 -0
  136. package/fesm2022/unique-selection-dispatcher-1d6f91d8.mjs +49 -0
  137. package/fesm2022/unique-selection-dispatcher-1d6f91d8.mjs.map +1 -0
  138. package/fesm2022/visually-hidden-83aea4a0.mjs +18 -0
  139. package/fesm2022/visually-hidden-83aea4a0.mjs.map +1 -0
  140. package/focus-key-manager.d-415a6958.d.ts +33 -0
  141. package/focus-monitor.d-810a02e6.d.ts +209 -0
  142. package/harness-environment.d-4d615248.d.ts +619 -0
  143. package/list-key-manager.d-72e9a2e7.d.ts +164 -0
  144. package/listbox/index.d.ts +5 -4
  145. package/menu/index.d.ts +14 -6
  146. package/number-property.d-ce316715.d.ts +15 -0
  147. package/observe-content.d-c08bc882.d.ts +84 -0
  148. package/observers/index.d.ts +4 -84
  149. package/overlay/index.d.ts +16 -792
  150. package/overlay-module.d-5d06db8a.d.ts +790 -0
  151. package/package.json +3 -3
  152. package/platform/index.d.ts +2 -31
  153. package/platform.d-0a5b4792.d.ts +33 -0
  154. package/portal/index.d.ts +5 -266
  155. package/portal-directives.d-d345bd53.d.ts +210 -0
  156. package/private/index.d.ts +2 -19
  157. package/schematics/migration.json +4 -4
  158. package/schematics/ng-add/index.js +1 -1
  159. package/schematics/ng-add/index.mjs +1 -1
  160. package/schematics/ng-update/index.d.ts +2 -2
  161. package/schematics/ng-update/index.js +5 -5
  162. package/schematics/ng-update/index.mjs +5 -5
  163. package/schematics/update-tool/target-version.d.ts +1 -1
  164. package/schematics/update-tool/target-version.js +2 -2
  165. package/schematics/update-tool/target-version.mjs +2 -2
  166. package/scrolling/index.d.ts +7 -604
  167. package/scrolling-module.d-a08a462d.d.ts +551 -0
  168. package/selection-model.d-1a70542c.d.ts +111 -0
  169. package/stepper/index.d.ts +5 -3
  170. package/style-loader.d-19baab84.d.ts +21 -0
  171. package/table/index.d.ts +8 -19
  172. package/testing/index.d.ts +2 -618
  173. package/testing/selenium-webdriver/index.d.ts +1 -1
  174. package/testing/testbed/index.d.ts +1 -1
  175. package/text-field/index.d.ts +1 -1
  176. package/tree/index.d.ts +3 -2
  177. package/tree-key-manager-strategy.d-603161dd.d.ts +116 -0
  178. package/unique-selection-dispatcher.d-7993b9f5.d.ts +32 -0
  179. package/view-repeater.d-79039e1f.d.ts +88 -0
  180. package/viewport-ruler.d-f3d3e82f.d.ts +57 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "19.2.3",
3
+ "version": "20.0.0-next.1",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -158,8 +158,8 @@
158
158
  }
159
159
  },
160
160
  "peerDependencies": {
161
- "@angular/core": "^19.0.0 || ^20.0.0",
162
- "@angular/common": "^19.0.0 || ^20.0.0",
161
+ "@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
162
+ "@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
163
163
  "rxjs": "^6.5.3 || ^7.4.0"
164
164
  },
165
165
  "dependencies": {
@@ -1,36 +1,7 @@
1
+ export { P as Platform } from '../platform.d-0a5b4792.js';
1
2
  import * as i0 from '@angular/core';
2
3
  import { Renderer2 } from '@angular/core';
3
4
 
4
- /**
5
- * Service to detect the current platform by comparing the userAgent strings and
6
- * checking browser-specific global properties.
7
- */
8
- declare class Platform {
9
- private _platformId;
10
- /** Whether the Angular application is being rendered in the browser. */
11
- isBrowser: boolean;
12
- /** Whether the current browser is Microsoft Edge. */
13
- EDGE: boolean;
14
- /** Whether the current rendering engine is Microsoft Trident. */
15
- TRIDENT: boolean;
16
- /** Whether the current rendering engine is Blink. */
17
- BLINK: boolean;
18
- /** Whether the current rendering engine is WebKit. */
19
- WEBKIT: boolean;
20
- /** Whether the current platform is Apple iOS. */
21
- IOS: boolean;
22
- /** Whether the current browser is Firefox. */
23
- FIREFOX: boolean;
24
- /** Whether the current platform is Android. */
25
- ANDROID: boolean;
26
- /** Whether the current browser is Safari. */
27
- SAFARI: boolean;
28
- /** Backwards-compatible constructor. */
29
- constructor(..._args: unknown[]);
30
- static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
31
- static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
32
- }
33
-
34
5
  declare class PlatformModule {
35
6
  static ɵfac: i0.ɵɵFactoryDeclaration<PlatformModule, never>;
36
7
  static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformModule, never, never, never>;
@@ -108,4 +79,4 @@ interface _ListenerOptions {
108
79
  */
109
80
  declare function _bindEventWithOptions(renderer: Renderer2, target: EventTarget, eventName: string, callback: (event: any) => boolean | void, options: _ListenerOptions): () => void;
110
81
 
111
- export { Platform, PlatformModule, RtlScrollAxisType, type _ListenerOptions, _bindEventWithOptions, _getEventTarget, _getFocusedElementPierceShadowDom, _getShadowRoot, _isTestEnvironment, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior };
82
+ export { PlatformModule, RtlScrollAxisType, type _ListenerOptions, _bindEventWithOptions, _getEventTarget, _getFocusedElementPierceShadowDom, _getShadowRoot, _isTestEnvironment, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior };
@@ -0,0 +1,33 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ /**
4
+ * Service to detect the current platform by comparing the userAgent strings and
5
+ * checking browser-specific global properties.
6
+ */
7
+ declare class Platform {
8
+ private _platformId;
9
+ /** Whether the Angular application is being rendered in the browser. */
10
+ isBrowser: boolean;
11
+ /** Whether the current browser is Microsoft Edge. */
12
+ EDGE: boolean;
13
+ /** Whether the current rendering engine is Microsoft Trident. */
14
+ TRIDENT: boolean;
15
+ /** Whether the current rendering engine is Blink. */
16
+ BLINK: boolean;
17
+ /** Whether the current rendering engine is WebKit. */
18
+ WEBKIT: boolean;
19
+ /** Whether the current platform is Apple iOS. */
20
+ IOS: boolean;
21
+ /** Whether the current browser is Firefox. */
22
+ FIREFOX: boolean;
23
+ /** Whether the current platform is Android. */
24
+ ANDROID: boolean;
25
+ /** Whether the current browser is Safari. */
26
+ SAFARI: boolean;
27
+ /** Backwards-compatible constructor. */
28
+ constructor(..._args: unknown[]);
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
31
+ }
32
+
33
+ export { Platform as P };
package/portal/index.d.ts CHANGED
@@ -1,147 +1,6 @@
1
- import * as i0 from '@angular/core';
2
- import { ComponentRef, ViewContainerRef, Injector, EmbeddedViewRef, TemplateRef, ElementRef, ApplicationRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
3
-
4
- /** Interface that can be used to generically type a class. */
5
- interface ComponentType<T> {
6
- new (...args: any[]): T;
7
- }
8
- /**
9
- * A `Portal` is something that you want to render somewhere else.
10
- * It can be attach to / detached from a `PortalOutlet`.
11
- */
12
- declare abstract class Portal<T> {
13
- private _attachedHost;
14
- /** Attach this portal to a host. */
15
- attach(host: PortalOutlet): T;
16
- /** Detach this portal from its host */
17
- detach(): void;
18
- /** Whether this portal is attached to a host. */
19
- get isAttached(): boolean;
20
- /**
21
- * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
22
- * the PortalOutlet when it is performing an `attach()` or `detach()`.
23
- */
24
- setAttachedHost(host: PortalOutlet | null): void;
25
- }
26
- /**
27
- * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
28
- */
29
- declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
30
- /** The type of the component that will be instantiated for attachment. */
31
- component: ComponentType<T>;
32
- /**
33
- * Where the attached component should live in Angular's *logical* component tree.
34
- * This is different from where the component *renders*, which is determined by the PortalOutlet.
35
- * The origin is necessary when the host is outside of the Angular application context.
36
- */
37
- viewContainerRef?: ViewContainerRef | null;
38
- /** Injector used for the instantiation of the component. */
39
- injector?: Injector | null;
40
- /**
41
- * @deprecated No longer in use. To be removed.
42
- * @breaking-change 18.0.0
43
- */
44
- componentFactoryResolver?: any;
45
- /**
46
- * List of DOM nodes that should be projected through `<ng-content>` of the attached component.
47
- */
48
- projectableNodes?: Node[][] | null;
49
- constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null,
50
- /**
51
- * @deprecated No longer in use. To be removed.
52
- * @breaking-change 18.0.0
53
- */
54
- _componentFactoryResolver?: any, projectableNodes?: Node[][] | null);
55
- }
56
- /**
57
- * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
58
- */
59
- declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
60
- /** The embedded template that will be used to instantiate an embedded View in the host. */
61
- templateRef: TemplateRef<C>;
62
- /** Reference to the ViewContainer into which the template will be stamped out. */
63
- viewContainerRef: ViewContainerRef;
64
- /** Contextual data to be passed in to the embedded view. */
65
- context?: C | undefined;
66
- /** The injector to use for the embedded view. */
67
- injector?: Injector | undefined;
68
- constructor(
69
- /** The embedded template that will be used to instantiate an embedded View in the host. */
70
- templateRef: TemplateRef<C>,
71
- /** Reference to the ViewContainer into which the template will be stamped out. */
72
- viewContainerRef: ViewContainerRef,
73
- /** Contextual data to be passed in to the embedded view. */
74
- context?: C | undefined,
75
- /** The injector to use for the embedded view. */
76
- injector?: Injector | undefined);
77
- get origin(): ElementRef;
78
- /**
79
- * Attach the portal to the provided `PortalOutlet`.
80
- * When a context is provided it will override the `context` property of the `TemplatePortal`
81
- * instance.
82
- */
83
- attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
84
- detach(): void;
85
- }
86
- /**
87
- * A `DomPortal` is a portal whose DOM element will be taken from its current position
88
- * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
89
- * will be restored to its original position.
90
- */
91
- declare class DomPortal<T = HTMLElement> extends Portal<T> {
92
- /** DOM node hosting the portal's content. */
93
- readonly element: T;
94
- constructor(element: T | ElementRef<T>);
95
- }
96
- /** A `PortalOutlet` is a space that can contain a single `Portal`. */
97
- interface PortalOutlet {
98
- /** Attaches a portal to this outlet. */
99
- attach(portal: Portal<any>): any;
100
- /** Detaches the currently attached portal from this outlet. */
101
- detach(): any;
102
- /** Performs cleanup before the outlet is destroyed. */
103
- dispose(): void;
104
- /** Whether there is currently a portal attached to this outlet. */
105
- hasAttached(): boolean;
106
- }
107
- /**
108
- * @deprecated Use `PortalOutlet` instead.
109
- * @breaking-change 9.0.0
110
- */
111
- type PortalHost = PortalOutlet;
112
- /**
113
- * Partial implementation of PortalOutlet that handles attaching
114
- * ComponentPortal and TemplatePortal.
115
- */
116
- declare abstract class BasePortalOutlet implements PortalOutlet {
117
- /** The portal currently attached to the host. */
118
- protected _attachedPortal: Portal<any> | null;
119
- /** A function that will permanently dispose this host. */
120
- private _disposeFn;
121
- /** Whether this host has already been permanently disposed. */
122
- private _isDisposed;
123
- /** Whether this host has an attached portal. */
124
- hasAttached(): boolean;
125
- attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
126
- attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
127
- attach(portal: any): any;
128
- abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
129
- abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
130
- readonly attachDomPortal: null | ((portal: DomPortal) => any);
131
- /** Detaches a previously attached portal. */
132
- detach(): void;
133
- /** Permanently dispose of this portal host. */
134
- dispose(): void;
135
- /** @docs-private */
136
- setDisposeFn(fn: () => void): void;
137
- private _invokeDisposeFn;
138
- }
139
- /**
140
- * @deprecated Use `BasePortalOutlet` instead.
141
- * @breaking-change 9.0.0
142
- */
143
- declare abstract class BasePortalHost extends BasePortalOutlet {
144
- }
1
+ import { B as BasePortalOutlet, a as ComponentPortal, T as TemplatePortal, D as DomPortal } from '../portal-directives.d-d345bd53.js';
2
+ export { B as BasePortalOutlet, e as CdkPortal, C as CdkPortalOutlet, g as CdkPortalOutletAttachedRef, a as ComponentPortal, b as ComponentType, D as DomPortal, d as Portal, h as PortalHostDirective, P as PortalModule, c as PortalOutlet, T as TemplatePortal, f as TemplatePortalDirective } from '../portal-directives.d-d345bd53.js';
3
+ import { ApplicationRef, Injector, ComponentRef, EmbeddedViewRef } from '@angular/core';
145
4
 
146
5
  /**
147
6
  * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
@@ -152,31 +11,16 @@ declare class DomPortalOutlet extends BasePortalOutlet {
152
11
  outletElement: Element;
153
12
  private _appRef?;
154
13
  private _defaultInjector?;
155
- private _document;
156
14
  /**
157
15
  * @param outletElement Element into which the content is projected.
158
- * @param _unusedComponentFactoryResolver Used to resolve the component factory.
159
- * Only required when attaching component portals.
160
16
  * @param _appRef Reference to the application. Only used in component portals when there
161
17
  * is no `ViewContainerRef` available.
162
18
  * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
163
19
  * have one. Only used for component portals.
164
- * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
165
- * become a required parameter.
166
20
  */
167
21
  constructor(
168
22
  /** Element into which the content is projected. */
169
- outletElement: Element,
170
- /**
171
- * @deprecated No longer in use. To be removed.
172
- * @breaking-change 18.0.0
173
- */
174
- _unusedComponentFactoryResolver?: any, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined,
175
- /**
176
- * @deprecated `_document` Parameter to be made required.
177
- * @breaking-change 10.0.0
178
- */
179
- _document?: any);
23
+ outletElement: Element, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined);
180
24
  /**
181
25
  * Attach the given ComponentPortal to DOM element.
182
26
  * @param portal Portal to be attached
@@ -203,110 +47,5 @@ declare class DomPortalOutlet extends BasePortalOutlet {
203
47
  /** Gets the root HTMLElement for an instantiated component. */
204
48
  private _getComponentRootNode;
205
49
  }
206
- /**
207
- * @deprecated Use `DomPortalOutlet` instead.
208
- * @breaking-change 9.0.0
209
- */
210
- declare class DomPortalHost extends DomPortalOutlet {
211
- }
212
-
213
- /**
214
- * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
215
- * the directive instance itself can be attached to a host, enabling declarative use of portals.
216
- */
217
- declare class CdkPortal extends TemplatePortal {
218
- constructor(...args: unknown[]);
219
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
220
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, true, never>;
221
- }
222
- /**
223
- * @deprecated Use `CdkPortal` instead.
224
- * @breaking-change 9.0.0
225
- */
226
- declare class TemplatePortalDirective extends CdkPortal {
227
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
228
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, true, never>;
229
- }
230
- /**
231
- * Possible attached references to the CdkPortalOutlet.
232
- */
233
- type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
234
- /**
235
- * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
236
- * directly attached to it, enabling declarative use.
237
- *
238
- * Usage:
239
- * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
240
- */
241
- declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
242
- private _moduleRef;
243
- private _document;
244
- private _viewContainerRef;
245
- /** Whether the portal component is initialized. */
246
- private _isInitialized;
247
- /** Reference to the currently-attached component/view ref. */
248
- private _attachedRef;
249
- constructor(...args: unknown[]);
250
- /** Portal associated with the Portal outlet. */
251
- get portal(): Portal<any> | null;
252
- set portal(portal: Portal<any> | null | undefined | '');
253
- /** Emits when a portal is attached to the outlet. */
254
- readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
255
- /** Component or view reference that is attached to the portal. */
256
- get attachedRef(): CdkPortalOutletAttachedRef;
257
- ngOnInit(): void;
258
- ngOnDestroy(): void;
259
- /**
260
- * Attach the given ComponentPortal to this PortalOutlet.
261
- *
262
- * @param portal Portal to be attached to the portal outlet.
263
- * @returns Reference to the created component.
264
- */
265
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
266
- /**
267
- * Attach the given TemplatePortal to this PortalHost as an embedded View.
268
- * @param portal Portal to be attached.
269
- * @returns Reference to the created embedded view.
270
- */
271
- attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
272
- /**
273
- * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
274
- * @param portal Portal to be attached.
275
- * @deprecated To be turned into a method.
276
- * @breaking-change 10.0.0
277
- */
278
- attachDomPortal: (portal: DomPortal) => void;
279
- /** Gets the root node of the portal outlet. */
280
- private _getRootNode;
281
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
282
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": { "alias": "cdkPortalOutlet"; "required": false; }; }, { "attached": "attached"; }, never, never, true, never>;
283
- }
284
- /**
285
- * @deprecated Use `CdkPortalOutlet` instead.
286
- * @breaking-change 9.0.0
287
- */
288
- declare class PortalHostDirective extends CdkPortalOutlet {
289
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
290
- static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": { "alias": "cdkPortalHost"; "required": false; }; }, {}, never, never, true, never>;
291
- }
292
- declare class PortalModule {
293
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
294
- static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
295
- static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
296
- }
297
-
298
- /**
299
- * Custom injector to be used when providing custom
300
- * injection tokens to components inside a portal.
301
- * @docs-private
302
- * @deprecated Use `Injector.create` instead.
303
- * @breaking-change 11.0.0
304
- */
305
- declare class PortalInjector implements Injector {
306
- private _parentInjector;
307
- private _customTokens;
308
- constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
309
- get(token: any, notFoundValue?: any): any;
310
- }
311
50
 
312
- export { BasePortalHost, BasePortalOutlet, CdkPortal, CdkPortalOutlet, type CdkPortalOutletAttachedRef, ComponentPortal, type ComponentType, DomPortal, DomPortalHost, DomPortalOutlet, Portal, type PortalHost, PortalHostDirective, PortalInjector, PortalModule, type PortalOutlet, TemplatePortal, TemplatePortalDirective };
51
+ export { DomPortalOutlet };
@@ -0,0 +1,210 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ComponentRef, ViewContainerRef, Injector, EmbeddedViewRef, TemplateRef, ElementRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
3
+
4
+ /** Interface that can be used to generically type a class. */
5
+ interface ComponentType<T> {
6
+ new (...args: any[]): T;
7
+ }
8
+ /**
9
+ * A `Portal` is something that you want to render somewhere else.
10
+ * It can be attach to / detached from a `PortalOutlet`.
11
+ */
12
+ declare abstract class Portal<T> {
13
+ private _attachedHost;
14
+ /** Attach this portal to a host. */
15
+ attach(host: PortalOutlet): T;
16
+ /** Detach this portal from its host */
17
+ detach(): void;
18
+ /** Whether this portal is attached to a host. */
19
+ get isAttached(): boolean;
20
+ /**
21
+ * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
22
+ * the PortalOutlet when it is performing an `attach()` or `detach()`.
23
+ */
24
+ setAttachedHost(host: PortalOutlet | null): void;
25
+ }
26
+ /**
27
+ * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
28
+ */
29
+ declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
30
+ /** The type of the component that will be instantiated for attachment. */
31
+ component: ComponentType<T>;
32
+ /**
33
+ * Where the attached component should live in Angular's *logical* component tree.
34
+ * This is different from where the component *renders*, which is determined by the PortalOutlet.
35
+ * The origin is necessary when the host is outside of the Angular application context.
36
+ */
37
+ viewContainerRef?: ViewContainerRef | null;
38
+ /** Injector used for the instantiation of the component. */
39
+ injector?: Injector | null;
40
+ /**
41
+ * List of DOM nodes that should be projected through `<ng-content>` of the attached component.
42
+ */
43
+ projectableNodes?: Node[][] | null;
44
+ constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, projectableNodes?: Node[][] | null);
45
+ }
46
+ /**
47
+ * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
48
+ */
49
+ declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
50
+ /** The embedded template that will be used to instantiate an embedded View in the host. */
51
+ templateRef: TemplateRef<C>;
52
+ /** Reference to the ViewContainer into which the template will be stamped out. */
53
+ viewContainerRef: ViewContainerRef;
54
+ /** Contextual data to be passed in to the embedded view. */
55
+ context?: C | undefined;
56
+ /** The injector to use for the embedded view. */
57
+ injector?: Injector | undefined;
58
+ constructor(
59
+ /** The embedded template that will be used to instantiate an embedded View in the host. */
60
+ templateRef: TemplateRef<C>,
61
+ /** Reference to the ViewContainer into which the template will be stamped out. */
62
+ viewContainerRef: ViewContainerRef,
63
+ /** Contextual data to be passed in to the embedded view. */
64
+ context?: C | undefined,
65
+ /** The injector to use for the embedded view. */
66
+ injector?: Injector | undefined);
67
+ get origin(): ElementRef;
68
+ /**
69
+ * Attach the portal to the provided `PortalOutlet`.
70
+ * When a context is provided it will override the `context` property of the `TemplatePortal`
71
+ * instance.
72
+ */
73
+ attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
74
+ detach(): void;
75
+ }
76
+ /**
77
+ * A `DomPortal` is a portal whose DOM element will be taken from its current position
78
+ * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
79
+ * will be restored to its original position.
80
+ */
81
+ declare class DomPortal<T = HTMLElement> extends Portal<T> {
82
+ /** DOM node hosting the portal's content. */
83
+ readonly element: T;
84
+ constructor(element: T | ElementRef<T>);
85
+ }
86
+ /** A `PortalOutlet` is a space that can contain a single `Portal`. */
87
+ interface PortalOutlet {
88
+ /** Attaches a portal to this outlet. */
89
+ attach(portal: Portal<any>): any;
90
+ /** Detaches the currently attached portal from this outlet. */
91
+ detach(): any;
92
+ /** Performs cleanup before the outlet is destroyed. */
93
+ dispose(): void;
94
+ /** Whether there is currently a portal attached to this outlet. */
95
+ hasAttached(): boolean;
96
+ }
97
+ /**
98
+ * Partial implementation of PortalOutlet that handles attaching
99
+ * ComponentPortal and TemplatePortal.
100
+ */
101
+ declare abstract class BasePortalOutlet implements PortalOutlet {
102
+ /** The portal currently attached to the host. */
103
+ protected _attachedPortal: Portal<any> | null;
104
+ /** A function that will permanently dispose this host. */
105
+ private _disposeFn;
106
+ /** Whether this host has already been permanently disposed. */
107
+ private _isDisposed;
108
+ /** Whether this host has an attached portal. */
109
+ hasAttached(): boolean;
110
+ attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
111
+ attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
112
+ attach(portal: any): any;
113
+ abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
114
+ abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
115
+ readonly attachDomPortal: null | ((portal: DomPortal) => any);
116
+ /** Detaches a previously attached portal. */
117
+ detach(): void;
118
+ /** Permanently dispose of this portal host. */
119
+ dispose(): void;
120
+ /** @docs-private */
121
+ setDisposeFn(fn: () => void): void;
122
+ private _invokeDisposeFn;
123
+ }
124
+
125
+ /**
126
+ * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
127
+ * the directive instance itself can be attached to a host, enabling declarative use of portals.
128
+ */
129
+ declare class CdkPortal extends TemplatePortal {
130
+ constructor(...args: unknown[]);
131
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
132
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, true, never>;
133
+ }
134
+ /**
135
+ * @deprecated Use `CdkPortal` instead.
136
+ * @breaking-change 9.0.0
137
+ */
138
+ declare class TemplatePortalDirective extends CdkPortal {
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
140
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, true, never>;
141
+ }
142
+ /**
143
+ * Possible attached references to the CdkPortalOutlet.
144
+ */
145
+ type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
146
+ /**
147
+ * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
148
+ * directly attached to it, enabling declarative use.
149
+ *
150
+ * Usage:
151
+ * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
152
+ */
153
+ declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
154
+ private _moduleRef;
155
+ private _document;
156
+ private _viewContainerRef;
157
+ /** Whether the portal component is initialized. */
158
+ private _isInitialized;
159
+ /** Reference to the currently-attached component/view ref. */
160
+ private _attachedRef;
161
+ constructor(...args: unknown[]);
162
+ /** Portal associated with the Portal outlet. */
163
+ get portal(): Portal<any> | null;
164
+ set portal(portal: Portal<any> | null | undefined | '');
165
+ /** Emits when a portal is attached to the outlet. */
166
+ readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
167
+ /** Component or view reference that is attached to the portal. */
168
+ get attachedRef(): CdkPortalOutletAttachedRef;
169
+ ngOnInit(): void;
170
+ ngOnDestroy(): void;
171
+ /**
172
+ * Attach the given ComponentPortal to this PortalOutlet.
173
+ *
174
+ * @param portal Portal to be attached to the portal outlet.
175
+ * @returns Reference to the created component.
176
+ */
177
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
178
+ /**
179
+ * Attach the given TemplatePortal to this PortalHost as an embedded View.
180
+ * @param portal Portal to be attached.
181
+ * @returns Reference to the created embedded view.
182
+ */
183
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
184
+ /**
185
+ * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
186
+ * @param portal Portal to be attached.
187
+ * @deprecated To be turned into a method.
188
+ * @breaking-change 10.0.0
189
+ */
190
+ attachDomPortal: (portal: DomPortal) => void;
191
+ /** Gets the root node of the portal outlet. */
192
+ private _getRootNode;
193
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
194
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": { "alias": "cdkPortalOutlet"; "required": false; }; }, { "attached": "attached"; }, never, never, true, never>;
195
+ }
196
+ /**
197
+ * @deprecated Use `CdkPortalOutlet` instead.
198
+ * @breaking-change 9.0.0
199
+ */
200
+ declare class PortalHostDirective extends CdkPortalOutlet {
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
202
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": { "alias": "cdkPortalHost"; "required": false; }; }, {}, never, never, true, never>;
203
+ }
204
+ declare class PortalModule {
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
206
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
207
+ static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
208
+ }
209
+
210
+ export { BasePortalOutlet as B, CdkPortalOutlet as C, DomPortal as D, PortalModule as P, TemplatePortal as T, ComponentPortal as a, type ComponentType as b, type PortalOutlet as c, Portal as d, CdkPortal as e, TemplatePortalDirective as f, type CdkPortalOutletAttachedRef as g, PortalHostDirective as h };
@@ -1,22 +1,5 @@
1
+ export { _ as _CdkPrivateStyleLoader } from '../style-loader.d-19baab84.js';
1
2
  import * as i0 from '@angular/core';
2
- import { Type } from '@angular/core';
3
-
4
- /**
5
- * Service that loads structural styles dynamically
6
- * and ensures that they're only loaded once per app.
7
- */
8
- declare class _CdkPrivateStyleLoader {
9
- private _appRef;
10
- private _injector;
11
- private _environmentInjector;
12
- /**
13
- * Loads a set of styles.
14
- * @param loader Component which will be instantiated to load the styles.
15
- */
16
- load(loader: Type<unknown>): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<_CdkPrivateStyleLoader, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<_CdkPrivateStyleLoader>;
19
- }
20
3
 
21
4
  /**
22
5
  * Component used to load the .cdk-visually-hidden styles.
@@ -27,4 +10,4 @@ declare class _VisuallyHiddenLoader {
27
10
  static ɵcmp: i0.ɵɵComponentDeclaration<_VisuallyHiddenLoader, "ng-component", ["cdkVisuallyHidden"], {}, {}, never, never, true, never>;
28
11
  }
29
12
 
30
- export { _CdkPrivateStyleLoader, _VisuallyHiddenLoader };
13
+ export { _VisuallyHiddenLoader };
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
3
  "schematics": {
4
- "migration-v19": {
5
- "version": "19.0.0-0",
6
- "description": "Updates the Angular CDK to v19",
7
- "factory": "./ng-update/index#updateToV19"
4
+ "migration-v20": {
5
+ "version": "20.0.0-0",
6
+ "description": "Updates the Angular CDK to v20",
7
+ "factory": "./ng-update/index#updateToV20"
8
8
  },
9
9
  "ng-post-update": {
10
10
  "description": "Prints out results after ng-update.",
@@ -29,7 +29,7 @@ function default_1() {
29
29
  // In order to align the CDK version with other Angular dependencies that are setup by
30
30
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
31
31
  // dependencies in new CLI projects.
32
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.2.3`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~20.0.0-next.1`);
33
33
  // Add a task to run the package manager. This is necessary because we updated the
34
34
  // workspace "package.json" file and we want lock files to reflect the new version range.
35
35
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -29,7 +29,7 @@ function default_1() {
29
29
  // In order to align the CDK version with other Angular dependencies that are setup by
30
30
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
31
31
  // dependencies in new CLI projects.
32
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.2.3`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~20.0.0-next.1`);
33
33
  // Add a task to run the package manager. This is necessary because we updated the
34
34
  // workspace "package.json" file and we want lock files to reflect the new version range.
35
35
  context.addTask(new tasks_1.NodePackageInstallTask());