@angular/cdk 19.2.2 → 19.2.4

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 +330 -1234
  2. package/a11y-module.d-7d03e079.d.ts +313 -0
  3. package/accordion/index.d.ts +8 -27
  4. package/activedescendant-key-manager.d-11921e3a.d.ts +31 -0
  5. package/bidi/index.d.ts +3 -62
  6. package/bidi-module.d-f8648621.d.ts +53 -0
  7. package/clipboard/index.d.ts +61 -75
  8. package/coercion/index.d.ts +10 -33
  9. package/coercion/private/index.d.ts +2 -2
  10. package/collections/index.d.ts +13 -291
  11. package/data-source.d-7cab2c9d.d.ts +42 -0
  12. package/dialog/index.d.ts +219 -247
  13. package/drag-drop/index.d.ts +1081 -1156
  14. package/fesm2022/a11y-module-012407f8.mjs +952 -0
  15. package/fesm2022/a11y-module-012407f8.mjs.map +1 -0
  16. package/fesm2022/a11y.mjs +38 -2436
  17. package/fesm2022/a11y.mjs.map +1 -1
  18. package/fesm2022/accordion.mjs +2 -6
  19. package/fesm2022/accordion.mjs.map +1 -1
  20. package/fesm2022/activedescendant-key-manager-1351a9d3.mjs +16 -0
  21. package/fesm2022/activedescendant-key-manager-1351a9d3.mjs.map +1 -0
  22. package/fesm2022/array-ee3b4bab.mjs +6 -0
  23. package/fesm2022/array-ee3b4bab.mjs.map +1 -0
  24. package/fesm2022/backwards-compatibility-bcbe473e.mjs +25 -0
  25. package/fesm2022/backwards-compatibility-bcbe473e.mjs.map +1 -0
  26. package/fesm2022/bidi-module-56dd006c.mjs +78 -0
  27. package/fesm2022/bidi-module-56dd006c.mjs.map +1 -0
  28. package/fesm2022/bidi.mjs +4 -143
  29. package/fesm2022/bidi.mjs.map +1 -1
  30. package/fesm2022/breakpoints-observer-63bede13.mjs +179 -0
  31. package/fesm2022/breakpoints-observer-63bede13.mjs.map +1 -0
  32. package/fesm2022/cdk.mjs +1 -1
  33. package/fesm2022/cdk.mjs.map +1 -1
  34. package/fesm2022/clipboard.mjs +0 -4
  35. package/fesm2022/clipboard.mjs.map +1 -1
  36. package/fesm2022/coercion/private.mjs +2 -18
  37. package/fesm2022/coercion/private.mjs.map +1 -1
  38. package/fesm2022/coercion.mjs +5 -39
  39. package/fesm2022/coercion.mjs.map +1 -1
  40. package/fesm2022/collections.mjs +7 -476
  41. package/fesm2022/collections.mjs.map +1 -1
  42. package/fesm2022/css-pixel-value-286c9a60.mjs +10 -0
  43. package/fesm2022/css-pixel-value-286c9a60.mjs.map +1 -0
  44. package/fesm2022/data-source-5320b6fd.mjs +15 -0
  45. package/fesm2022/data-source-5320b6fd.mjs.map +1 -0
  46. package/fesm2022/dialog.mjs +26 -10
  47. package/fesm2022/dialog.mjs.map +1 -1
  48. package/fesm2022/directionality-0a678adc.mjs +72 -0
  49. package/fesm2022/directionality-0a678adc.mjs.map +1 -0
  50. package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs +44 -0
  51. package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs.map +1 -0
  52. package/fesm2022/drag-drop.mjs +14 -10
  53. package/fesm2022/drag-drop.mjs.map +1 -1
  54. package/fesm2022/element-705567fe.mjs +29 -0
  55. package/fesm2022/element-705567fe.mjs.map +1 -0
  56. package/fesm2022/fake-event-detection-7055b1bd.mjs +24 -0
  57. package/fesm2022/fake-event-detection-7055b1bd.mjs.map +1 -0
  58. package/fesm2022/focus-key-manager-58d29acd.mjs +22 -0
  59. package/fesm2022/focus-key-manager-58d29acd.mjs.map +1 -0
  60. package/fesm2022/focus-monitor-81212fa3.mjs +629 -0
  61. package/fesm2022/focus-monitor-81212fa3.mjs.map +1 -0
  62. package/fesm2022/id-generator-1959b006.mjs +37 -0
  63. package/fesm2022/id-generator-1959b006.mjs.map +1 -0
  64. package/fesm2022/keycodes-107cd3e4.mjs +122 -0
  65. package/fesm2022/keycodes-107cd3e4.mjs.map +1 -0
  66. package/fesm2022/keycodes.mjs +2 -136
  67. package/fesm2022/keycodes.mjs.map +1 -1
  68. package/fesm2022/layout.mjs +8 -180
  69. package/fesm2022/layout.mjs.map +1 -1
  70. package/fesm2022/list-key-manager-c7b5cefb.mjs +360 -0
  71. package/fesm2022/list-key-manager-c7b5cefb.mjs.map +1 -0
  72. package/fesm2022/listbox.mjs +11 -10
  73. package/fesm2022/listbox.mjs.map +1 -1
  74. package/fesm2022/menu.mjs +27 -11
  75. package/fesm2022/menu.mjs.map +1 -1
  76. package/fesm2022/modifiers-33a5859e.mjs +13 -0
  77. package/fesm2022/modifiers-33a5859e.mjs.map +1 -0
  78. package/fesm2022/observable-97c0792c.mjs +15 -0
  79. package/fesm2022/observable-97c0792c.mjs.map +1 -0
  80. package/fesm2022/observe-content-41b1b248.mjs +210 -0
  81. package/fesm2022/observe-content-41b1b248.mjs.map +1 -0
  82. package/fesm2022/observers/private.mjs +0 -4
  83. package/fesm2022/observers/private.mjs.map +1 -1
  84. package/fesm2022/observers.mjs +5 -213
  85. package/fesm2022/observers.mjs.map +1 -1
  86. package/fesm2022/overlay-module-7f527d71.mjs +3029 -0
  87. package/fesm2022/overlay-module-7f527d71.mjs.map +1 -0
  88. package/fesm2022/overlay.mjs +25 -3016
  89. package/fesm2022/overlay.mjs.map +1 -1
  90. package/fesm2022/passive-listeners-c0bdc49f.mjs +31 -0
  91. package/fesm2022/passive-listeners-c0bdc49f.mjs.map +1 -0
  92. package/fesm2022/platform-610a08ae.mjs +77 -0
  93. package/fesm2022/platform-610a08ae.mjs.map +1 -0
  94. package/fesm2022/platform.mjs +9 -289
  95. package/fesm2022/platform.mjs.map +1 -1
  96. package/fesm2022/portal-directives-06c9f3e0.mjs +653 -0
  97. package/fesm2022/portal-directives-06c9f3e0.mjs.map +1 -0
  98. package/fesm2022/portal.mjs +4 -652
  99. package/fesm2022/portal.mjs.map +1 -1
  100. package/fesm2022/private.mjs +3 -63
  101. package/fesm2022/private.mjs.map +1 -1
  102. package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs +156 -0
  103. package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs.map +1 -0
  104. package/fesm2022/scrolling-61955dd1.mjs +99 -0
  105. package/fesm2022/scrolling-61955dd1.mjs.map +1 -0
  106. package/fesm2022/scrolling-module-dbd83632.mjs +1463 -0
  107. package/fesm2022/scrolling-module-dbd83632.mjs.map +1 -0
  108. package/fesm2022/scrolling.mjs +12 -1463
  109. package/fesm2022/scrolling.mjs.map +1 -1
  110. package/fesm2022/selection-model-0f5fc202.mjs +226 -0
  111. package/fesm2022/selection-model-0f5fc202.mjs.map +1 -0
  112. package/fesm2022/shadow-dom-9f403d00.mjs +49 -0
  113. package/fesm2022/shadow-dom-9f403d00.mjs.map +1 -0
  114. package/fesm2022/stepper.mjs +10 -8
  115. package/fesm2022/stepper.mjs.map +1 -1
  116. package/fesm2022/style-loader-51b80670.mjs +47 -0
  117. package/fesm2022/style-loader-51b80670.mjs.map +1 -0
  118. package/fesm2022/table.mjs +11 -16
  119. package/fesm2022/table.mjs.map +1 -1
  120. package/fesm2022/test-environment-34eef1ee.mjs +19 -0
  121. package/fesm2022/test-environment-34eef1ee.mjs.map +1 -0
  122. package/fesm2022/testing/selenium-webdriver.mjs +2 -1
  123. package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
  124. package/fesm2022/testing/testbed.mjs +33 -74
  125. package/fesm2022/testing/testbed.mjs.map +1 -1
  126. package/fesm2022/testing.mjs +2 -697
  127. package/fesm2022/testing.mjs.map +1 -1
  128. package/fesm2022/text-field.mjs +8 -7
  129. package/fesm2022/text-field.mjs.map +1 -1
  130. package/fesm2022/text-filtering-b60ba8a2.mjs +698 -0
  131. package/fesm2022/text-filtering-b60ba8a2.mjs.map +1 -0
  132. package/fesm2022/tree-key-manager-2f20c79c.mjs +360 -0
  133. package/fesm2022/tree-key-manager-2f20c79c.mjs.map +1 -0
  134. package/fesm2022/tree.mjs +8 -8
  135. package/fesm2022/tree.mjs.map +1 -1
  136. package/fesm2022/typeahead-11ae39bd.mjs +88 -0
  137. package/fesm2022/typeahead-11ae39bd.mjs.map +1 -0
  138. package/fesm2022/unique-selection-dispatcher-8d1187be.mjs +49 -0
  139. package/fesm2022/unique-selection-dispatcher-8d1187be.mjs.map +1 -0
  140. package/fesm2022/visually-hidden-7e8689f8.mjs +18 -0
  141. package/fesm2022/visually-hidden-7e8689f8.mjs.map +1 -0
  142. package/focus-key-manager.d-415a6958.d.ts +33 -0
  143. package/focus-monitor.d-810a02e6.d.ts +209 -0
  144. package/harness-environment.d-4d615248.d.ts +619 -0
  145. package/index.d.ts +2 -2
  146. package/keycodes/index.d.ts +123 -244
  147. package/layout/index.d.ts +23 -25
  148. package/list-key-manager.d-72e9a2e7.d.ts +164 -0
  149. package/listbox/index.d.ts +91 -107
  150. package/menu/index.d.ts +596 -682
  151. package/number-property.d-ce316715.d.ts +15 -0
  152. package/observe-content.d-c08bc882.d.ts +84 -0
  153. package/observers/index.d.ts +4 -90
  154. package/observers/private/index.d.ts +3 -3
  155. package/overlay/index.d.ts +15 -1145
  156. package/overlay-module.d-13717e08.d.ts +790 -0
  157. package/overlay.d-f1a41275.d.ts +295 -0
  158. package/package.json +1 -1
  159. package/platform/index.d.ts +45 -86
  160. package/platform.d-0a5b4792.d.ts +33 -0
  161. package/portal/index.d.ts +8 -257
  162. package/portal-directives.d-ef3fad92.d.ts +231 -0
  163. package/private/index.d.ts +3 -20
  164. package/schematics/ng-add/index.js +1 -1
  165. package/schematics/ng-add/index.mjs +1 -1
  166. package/scrolling/index.d.ts +7 -687
  167. package/scrolling-module.d-e181b1be.d.ts +551 -0
  168. package/selection-model.d-0f0cc883.d.ts +116 -0
  169. package/stepper/index.d.ts +74 -124
  170. package/style-loader.d-19baab84.d.ts +21 -0
  171. package/table/index.d.ts +338 -449
  172. package/testing/index.d.ts +32 -675
  173. package/testing/selenium-webdriver/index.d.ts +30 -20
  174. package/testing/testbed/index.d.ts +9 -19
  175. package/text-field/index.d.ts +11 -30
  176. package/tree/index.d.ts +205 -271
  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/portal/index.d.ts CHANGED
@@ -1,175 +1,12 @@
1
- import { ApplicationRef } from '@angular/core';
2
- import { ComponentRef } from '@angular/core';
3
- import { ElementRef } from '@angular/core';
4
- import { EmbeddedViewRef } from '@angular/core';
5
- import { EventEmitter } from '@angular/core';
6
- import * as i0 from '@angular/core';
7
- import { Injector } from '@angular/core';
8
- import { OnDestroy } from '@angular/core';
9
- import { OnInit } from '@angular/core';
10
- import { TemplateRef } from '@angular/core';
11
- import { ViewContainerRef } from '@angular/core';
12
-
13
- /**
14
- * @deprecated Use `BasePortalOutlet` instead.
15
- * @breaking-change 9.0.0
16
- */
17
- export declare abstract class BasePortalHost extends BasePortalOutlet {
18
- }
19
-
20
- /**
21
- * Partial implementation of PortalOutlet that handles attaching
22
- * ComponentPortal and TemplatePortal.
23
- */
24
- export declare abstract class BasePortalOutlet implements PortalOutlet {
25
- /** The portal currently attached to the host. */
26
- protected _attachedPortal: Portal<any> | null;
27
- /** A function that will permanently dispose this host. */
28
- private _disposeFn;
29
- /** Whether this host has already been permanently disposed. */
30
- private _isDisposed;
31
- /** Whether this host has an attached portal. */
32
- hasAttached(): boolean;
33
- attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
34
- attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
35
- attach(portal: any): any;
36
- abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
37
- abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
38
- readonly attachDomPortal: null | ((portal: DomPortal) => any);
39
- /** Detaches a previously attached portal. */
40
- detach(): void;
41
- /** Permanently dispose of this portal host. */
42
- dispose(): void;
43
- /** @docs-private */
44
- setDisposeFn(fn: () => void): void;
45
- private _invokeDisposeFn;
46
- }
47
-
48
- /**
49
- * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
50
- * the directive instance itself can be attached to a host, enabling declarative use of portals.
51
- */
52
- export declare class CdkPortal extends TemplatePortal {
53
- constructor(...args: unknown[]);
54
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
55
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, true, never>;
56
- }
57
-
58
- /**
59
- * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
60
- * directly attached to it, enabling declarative use.
61
- *
62
- * Usage:
63
- * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
64
- */
65
- export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
66
- private _moduleRef;
67
- private _document;
68
- private _viewContainerRef;
69
- /** Whether the portal component is initialized. */
70
- private _isInitialized;
71
- /** Reference to the currently-attached component/view ref. */
72
- private _attachedRef;
73
- constructor(...args: unknown[]);
74
- /** Portal associated with the Portal outlet. */
75
- get portal(): Portal<any> | null;
76
- set portal(portal: Portal<any> | null | undefined | '');
77
- /** Emits when a portal is attached to the outlet. */
78
- readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
79
- /** Component or view reference that is attached to the portal. */
80
- get attachedRef(): CdkPortalOutletAttachedRef;
81
- ngOnInit(): void;
82
- ngOnDestroy(): void;
83
- /**
84
- * Attach the given ComponentPortal to this PortalOutlet.
85
- *
86
- * @param portal Portal to be attached to the portal outlet.
87
- * @returns Reference to the created component.
88
- */
89
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
90
- /**
91
- * Attach the given TemplatePortal to this PortalHost as an embedded View.
92
- * @param portal Portal to be attached.
93
- * @returns Reference to the created embedded view.
94
- */
95
- attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
96
- /**
97
- * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
98
- * @param portal Portal to be attached.
99
- * @deprecated To be turned into a method.
100
- * @breaking-change 10.0.0
101
- */
102
- attachDomPortal: (portal: DomPortal) => void;
103
- /** Gets the root node of the portal outlet. */
104
- private _getRootNode;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
106
- static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": { "alias": "cdkPortalOutlet"; "required": false; }; }, { "attached": "attached"; }, never, never, true, never>;
107
- }
108
-
109
- /**
110
- * Possible attached references to the CdkPortalOutlet.
111
- */
112
- export declare type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
113
-
114
- /**
115
- * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
116
- */
117
- export declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
118
- /** The type of the component that will be instantiated for attachment. */
119
- component: ComponentType<T>;
120
- /**
121
- * Where the attached component should live in Angular's *logical* component tree.
122
- * This is different from where the component *renders*, which is determined by the PortalOutlet.
123
- * The origin is necessary when the host is outside of the Angular application context.
124
- */
125
- viewContainerRef?: ViewContainerRef | null;
126
- /** Injector used for the instantiation of the component. */
127
- injector?: Injector | null;
128
- /**
129
- * @deprecated No longer in use. To be removed.
130
- * @breaking-change 18.0.0
131
- */
132
- componentFactoryResolver?: any;
133
- /**
134
- * List of DOM nodes that should be projected through `<ng-content>` of the attached component.
135
- */
136
- projectableNodes?: Node[][] | null;
137
- constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null,
138
- /**
139
- * @deprecated No longer in use. To be removed.
140
- * @breaking-change 18.0.0
141
- */
142
- _componentFactoryResolver?: any, projectableNodes?: Node[][] | null);
143
- }
144
-
145
- /** Interface that can be used to generically type a class. */
146
- export declare interface ComponentType<T> {
147
- new (...args: any[]): T;
148
- }
149
-
150
- /**
151
- * A `DomPortal` is a portal whose DOM element will be taken from its current position
152
- * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
153
- * will be restored to its original position.
154
- */
155
- export declare class DomPortal<T = HTMLElement> extends Portal<T> {
156
- /** DOM node hosting the portal's content. */
157
- readonly element: T;
158
- constructor(element: T | ElementRef<T>);
159
- }
160
-
161
- /**
162
- * @deprecated Use `DomPortalOutlet` instead.
163
- * @breaking-change 9.0.0
164
- */
165
- export declare class DomPortalHost extends DomPortalOutlet {
166
- }
1
+ import { B as BasePortalOutlet, a as ComponentPortal, T as TemplatePortal, D as DomPortal } from '../portal-directives.d-ef3fad92.js';
2
+ export { f as BasePortalHost, B as BasePortalOutlet, g as CdkPortal, C as CdkPortalOutlet, i as CdkPortalOutletAttachedRef, a as ComponentPortal, b as ComponentType, D as DomPortal, d as Portal, e as PortalHost, j as PortalHostDirective, P as PortalModule, c as PortalOutlet, T as TemplatePortal, h as TemplatePortalDirective } from '../portal-directives.d-ef3fad92.js';
3
+ import { ApplicationRef, Injector, ComponentRef, EmbeddedViewRef } from '@angular/core';
167
4
 
168
5
  /**
169
6
  * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
170
7
  * application context.
171
8
  */
172
- export declare class DomPortalOutlet extends BasePortalOutlet {
9
+ declare class DomPortalOutlet extends BasePortalOutlet {
173
10
  /** Element into which the content is projected. */
174
11
  outletElement: Element;
175
12
  private _appRef?;
@@ -225,39 +62,11 @@ export declare class DomPortalOutlet extends BasePortalOutlet {
225
62
  /** Gets the root HTMLElement for an instantiated component. */
226
63
  private _getComponentRootNode;
227
64
  }
228
-
229
65
  /**
230
- * A `Portal` is something that you want to render somewhere else.
231
- * It can be attach to / detached from a `PortalOutlet`.
232
- */
233
- export declare abstract class Portal<T> {
234
- private _attachedHost;
235
- /** Attach this portal to a host. */
236
- attach(host: PortalOutlet): T;
237
- /** Detach this portal from its host */
238
- detach(): void;
239
- /** Whether this portal is attached to a host. */
240
- get isAttached(): boolean;
241
- /**
242
- * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
243
- * the PortalOutlet when it is performing an `attach()` or `detach()`.
244
- */
245
- setAttachedHost(host: PortalOutlet | null): void;
246
- }
247
-
248
- /**
249
- * @deprecated Use `PortalOutlet` instead.
250
- * @breaking-change 9.0.0
251
- */
252
- export declare type PortalHost = PortalOutlet;
253
-
254
- /**
255
- * @deprecated Use `CdkPortalOutlet` instead.
66
+ * @deprecated Use `DomPortalOutlet` instead.
256
67
  * @breaking-change 9.0.0
257
68
  */
258
- export declare class PortalHostDirective extends CdkPortalOutlet {
259
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
260
- static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": { "alias": "cdkPortalHost"; "required": false; }; }, {}, never, never, true, never>;
69
+ declare class DomPortalHost extends DomPortalOutlet {
261
70
  }
262
71
 
263
72
  /**
@@ -267,69 +76,11 @@ export declare class PortalHostDirective extends CdkPortalOutlet {
267
76
  * @deprecated Use `Injector.create` instead.
268
77
  * @breaking-change 11.0.0
269
78
  */
270
- export declare class PortalInjector implements Injector {
79
+ declare class PortalInjector implements Injector {
271
80
  private _parentInjector;
272
81
  private _customTokens;
273
82
  constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
274
83
  get(token: any, notFoundValue?: any): any;
275
84
  }
276
85
 
277
- export declare class PortalModule {
278
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
279
- static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
280
- static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
281
- }
282
-
283
- /** A `PortalOutlet` is a space that can contain a single `Portal`. */
284
- export declare interface PortalOutlet {
285
- /** Attaches a portal to this outlet. */
286
- attach(portal: Portal<any>): any;
287
- /** Detaches the currently attached portal from this outlet. */
288
- detach(): any;
289
- /** Performs cleanup before the outlet is destroyed. */
290
- dispose(): void;
291
- /** Whether there is currently a portal attached to this outlet. */
292
- hasAttached(): boolean;
293
- }
294
-
295
- /**
296
- * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
297
- */
298
- export declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
299
- /** The embedded template that will be used to instantiate an embedded View in the host. */
300
- templateRef: TemplateRef<C>;
301
- /** Reference to the ViewContainer into which the template will be stamped out. */
302
- viewContainerRef: ViewContainerRef;
303
- /** Contextual data to be passed in to the embedded view. */
304
- context?: C | undefined;
305
- /** The injector to use for the embedded view. */
306
- injector?: Injector | undefined;
307
- constructor(
308
- /** The embedded template that will be used to instantiate an embedded View in the host. */
309
- templateRef: TemplateRef<C>,
310
- /** Reference to the ViewContainer into which the template will be stamped out. */
311
- viewContainerRef: ViewContainerRef,
312
- /** Contextual data to be passed in to the embedded view. */
313
- context?: C | undefined,
314
- /** The injector to use for the embedded view. */
315
- injector?: Injector | undefined);
316
- get origin(): ElementRef;
317
- /**
318
- * Attach the portal to the provided `PortalOutlet`.
319
- * When a context is provided it will override the `context` property of the `TemplatePortal`
320
- * instance.
321
- */
322
- attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
323
- detach(): void;
324
- }
325
-
326
- /**
327
- * @deprecated Use `CdkPortal` instead.
328
- * @breaking-change 9.0.0
329
- */
330
- export declare class TemplatePortalDirective extends CdkPortal {
331
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
332
- static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, true, never>;
333
- }
334
-
335
- export { }
86
+ export { DomPortalHost, DomPortalOutlet, PortalInjector };
@@ -0,0 +1,231 @@
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
+ * @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
+ }
145
+
146
+ /**
147
+ * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
148
+ * the directive instance itself can be attached to a host, enabling declarative use of portals.
149
+ */
150
+ declare class CdkPortal extends TemplatePortal {
151
+ constructor(...args: unknown[]);
152
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
153
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, true, never>;
154
+ }
155
+ /**
156
+ * @deprecated Use `CdkPortal` instead.
157
+ * @breaking-change 9.0.0
158
+ */
159
+ declare class TemplatePortalDirective extends CdkPortal {
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
161
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, true, never>;
162
+ }
163
+ /**
164
+ * Possible attached references to the CdkPortalOutlet.
165
+ */
166
+ type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
167
+ /**
168
+ * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
169
+ * directly attached to it, enabling declarative use.
170
+ *
171
+ * Usage:
172
+ * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
173
+ */
174
+ declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
175
+ private _moduleRef;
176
+ private _document;
177
+ private _viewContainerRef;
178
+ /** Whether the portal component is initialized. */
179
+ private _isInitialized;
180
+ /** Reference to the currently-attached component/view ref. */
181
+ private _attachedRef;
182
+ constructor(...args: unknown[]);
183
+ /** Portal associated with the Portal outlet. */
184
+ get portal(): Portal<any> | null;
185
+ set portal(portal: Portal<any> | null | undefined | '');
186
+ /** Emits when a portal is attached to the outlet. */
187
+ readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
188
+ /** Component or view reference that is attached to the portal. */
189
+ get attachedRef(): CdkPortalOutletAttachedRef;
190
+ ngOnInit(): void;
191
+ ngOnDestroy(): void;
192
+ /**
193
+ * Attach the given ComponentPortal to this PortalOutlet.
194
+ *
195
+ * @param portal Portal to be attached to the portal outlet.
196
+ * @returns Reference to the created component.
197
+ */
198
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
199
+ /**
200
+ * Attach the given TemplatePortal to this PortalHost as an embedded View.
201
+ * @param portal Portal to be attached.
202
+ * @returns Reference to the created embedded view.
203
+ */
204
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
205
+ /**
206
+ * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
207
+ * @param portal Portal to be attached.
208
+ * @deprecated To be turned into a method.
209
+ * @breaking-change 10.0.0
210
+ */
211
+ attachDomPortal: (portal: DomPortal) => void;
212
+ /** Gets the root node of the portal outlet. */
213
+ private _getRootNode;
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
215
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": { "alias": "cdkPortalOutlet"; "required": false; }; }, { "attached": "attached"; }, never, never, true, never>;
216
+ }
217
+ /**
218
+ * @deprecated Use `CdkPortalOutlet` instead.
219
+ * @breaking-change 9.0.0
220
+ */
221
+ declare class PortalHostDirective extends CdkPortalOutlet {
222
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
223
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": { "alias": "cdkPortalHost"; "required": false; }; }, {}, never, never, true, never>;
224
+ }
225
+ declare class PortalModule {
226
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
227
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
228
+ static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
229
+ }
230
+
231
+ 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, type PortalHost as e, BasePortalHost as f, CdkPortal as g, TemplatePortalDirective as h, type CdkPortalOutletAttachedRef as i, PortalHostDirective as j };
@@ -1,30 +1,13 @@
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
- export 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.
23
6
  * @docs-private
24
7
  */
25
- export declare class _VisuallyHiddenLoader {
8
+ declare class _VisuallyHiddenLoader {
26
9
  static ɵfac: i0.ɵɵFactoryDeclaration<_VisuallyHiddenLoader, never>;
27
10
  static ɵcmp: i0.ɵɵComponentDeclaration<_VisuallyHiddenLoader, "ng-component", ["cdkVisuallyHidden"], {}, {}, never, never, true, never>;
28
11
  }
29
12
 
30
- export { }
13
+ export { _VisuallyHiddenLoader };
@@ -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.2`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.2.4`);
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.2`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.2.4`);
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());