@dugararchit/cdk 0.0.0-dugararchit

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 (206) hide show
  1. package/_index.scss +8 -0
  2. package/a11y/_index.import.scss +2 -0
  3. package/a11y/_index.scss +102 -0
  4. package/a11y/a11y-prebuilt.scss +3 -0
  5. package/fesm2022/stagefright5-cdk-a11y.mjs +2381 -0
  6. package/fesm2022/stagefright5-cdk-a11y.mjs.map +1 -0
  7. package/fesm2022/stagefright5-cdk-accordion.mjs +267 -0
  8. package/fesm2022/stagefright5-cdk-accordion.mjs.map +1 -0
  9. package/fesm2022/stagefright5-cdk-bidi.mjs +185 -0
  10. package/fesm2022/stagefright5-cdk-bidi.mjs.map +1 -0
  11. package/fesm2022/stagefright5-cdk-clipboard.mjs +250 -0
  12. package/fesm2022/stagefright5-cdk-clipboard.mjs.map +1 -0
  13. package/fesm2022/stagefright5-cdk-coercion.mjs +128 -0
  14. package/fesm2022/stagefright5-cdk-coercion.mjs.map +1 -0
  15. package/fesm2022/stagefright5-cdk-collections.mjs +472 -0
  16. package/fesm2022/stagefright5-cdk-collections.mjs.map +1 -0
  17. package/fesm2022/stagefright5-cdk-drag-drop.mjs +3690 -0
  18. package/fesm2022/stagefright5-cdk-drag-drop.mjs.map +1 -0
  19. package/fesm2022/stagefright5-cdk-keycodes.mjs +159 -0
  20. package/fesm2022/stagefright5-cdk-keycodes.mjs.map +1 -0
  21. package/fesm2022/stagefright5-cdk-layout.mjs +246 -0
  22. package/fesm2022/stagefright5-cdk-layout.mjs.map +1 -0
  23. package/fesm2022/stagefright5-cdk-observers.mjs +203 -0
  24. package/fesm2022/stagefright5-cdk-observers.mjs.map +1 -0
  25. package/fesm2022/stagefright5-cdk-overlay.mjs +3033 -0
  26. package/fesm2022/stagefright5-cdk-overlay.mjs.map +1 -0
  27. package/fesm2022/stagefright5-cdk-platform.mjs +375 -0
  28. package/fesm2022/stagefright5-cdk-platform.mjs.map +1 -0
  29. package/fesm2022/stagefright5-cdk-portal.mjs +672 -0
  30. package/fesm2022/stagefright5-cdk-portal.mjs.map +1 -0
  31. package/fesm2022/stagefright5-cdk-scrolling.mjs +1399 -0
  32. package/fesm2022/stagefright5-cdk-scrolling.mjs.map +1 -0
  33. package/fesm2022/stagefright5-cdk-stepper.mjs +624 -0
  34. package/fesm2022/stagefright5-cdk-stepper.mjs.map +1 -0
  35. package/fesm2022/stagefright5-cdk-table.mjs +2346 -0
  36. package/fesm2022/stagefright5-cdk-table.mjs.map +1 -0
  37. package/fesm2022/stagefright5-cdk-testing-protractor.mjs +324 -0
  38. package/fesm2022/stagefright5-cdk-testing-protractor.mjs.map +1 -0
  39. package/fesm2022/stagefright5-cdk-testing-selenium-webdriver.mjs +364 -0
  40. package/fesm2022/stagefright5-cdk-testing-selenium-webdriver.mjs.map +1 -0
  41. package/fesm2022/stagefright5-cdk-testing-testbed.mjs +806 -0
  42. package/fesm2022/stagefright5-cdk-testing-testbed.mjs.map +1 -0
  43. package/fesm2022/stagefright5-cdk-testing.mjs +740 -0
  44. package/fesm2022/stagefright5-cdk-testing.mjs.map +1 -0
  45. package/fesm2022/stagefright5-cdk-text-field.mjs +453 -0
  46. package/fesm2022/stagefright5-cdk-text-field.mjs.map +1 -0
  47. package/fesm2022/stagefright5-cdk-tree.mjs +945 -0
  48. package/fesm2022/stagefright5-cdk-tree.mjs.map +1 -0
  49. package/fesm2022/stagefright5-cdk.mjs +26 -0
  50. package/fesm2022/stagefright5-cdk.mjs.map +1 -0
  51. package/overlay/_index-deprecated.scss +13 -0
  52. package/overlay/_index.import.scss +13 -0
  53. package/overlay/_index.scss +148 -0
  54. package/overlay/overlay-prebuilt.scss +3 -0
  55. package/package.json +159 -0
  56. package/schematics/ng-update/test-cases/misc/global-stylesheets-test.scss +3 -0
  57. package/schematics/schematics/BUILD.bazel +104 -0
  58. package/schematics/schematics/README.md +4 -0
  59. package/schematics/schematics/collection.json +18 -0
  60. package/schematics/schematics/index.ts +22 -0
  61. package/schematics/schematics/migration.json +50 -0
  62. package/schematics/schematics/ng-add/index.spec.ts +50 -0
  63. package/schematics/schematics/ng-add/index.ts +39 -0
  64. package/schematics/schematics/ng-add/package-config.ts +62 -0
  65. package/schematics/schematics/ng-add/schema.json +16 -0
  66. package/schematics/schematics/ng-add/schema.ts +12 -0
  67. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +53 -0
  68. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +17 -0
  69. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +29 -0
  70. package/schematics/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +43 -0
  71. package/schematics/schematics/ng-generate/drag-drop/index.spec.ts +205 -0
  72. package/schematics/schematics/ng-generate/drag-drop/index.ts +35 -0
  73. package/schematics/schematics/ng-generate/drag-drop/schema.json +93 -0
  74. package/schematics/schematics/ng-generate/drag-drop/schema.ts +11 -0
  75. package/schematics/schematics/ng-update/data/attribute-selectors.ts +29 -0
  76. package/schematics/schematics/ng-update/data/class-names.ts +50 -0
  77. package/schematics/schematics/ng-update/data/constructor-checks.ts +75 -0
  78. package/schematics/schematics/ng-update/data/css-selectors.ts +33 -0
  79. package/schematics/schematics/ng-update/data/element-selectors.ts +21 -0
  80. package/schematics/schematics/ng-update/data/index.ts +18 -0
  81. package/schematics/schematics/ng-update/data/input-names.ts +118 -0
  82. package/schematics/schematics/ng-update/data/method-call-checks.ts +63 -0
  83. package/schematics/schematics/ng-update/data/output-names.ts +42 -0
  84. package/schematics/schematics/ng-update/data/property-names.ts +151 -0
  85. package/schematics/schematics/ng-update/data/symbol-removal.ts +22 -0
  86. package/schematics/schematics/ng-update/devkit-file-system.ts +87 -0
  87. package/schematics/schematics/ng-update/devkit-migration-rule.ts +185 -0
  88. package/schematics/schematics/ng-update/devkit-migration.ts +47 -0
  89. package/schematics/schematics/ng-update/find-stylesheets.ts +43 -0
  90. package/schematics/schematics/ng-update/html-parsing/angular.ts +49 -0
  91. package/schematics/schematics/ng-update/html-parsing/elements.ts +66 -0
  92. package/schematics/schematics/ng-update/index.ts +113 -0
  93. package/schematics/schematics/ng-update/migrations/attribute-selectors.ts +83 -0
  94. package/schematics/schematics/ng-update/migrations/class-inheritance.ts +63 -0
  95. package/schematics/schematics/ng-update/migrations/class-names.ts +107 -0
  96. package/schematics/schematics/ng-update/migrations/constructor-signature.ts +170 -0
  97. package/schematics/schematics/ng-update/migrations/css-selectors.ts +83 -0
  98. package/schematics/schematics/ng-update/migrations/element-selectors.ts +75 -0
  99. package/schematics/schematics/ng-update/migrations/input-names.ts +83 -0
  100. package/schematics/schematics/ng-update/migrations/method-call-arguments.ts +70 -0
  101. package/schematics/schematics/ng-update/migrations/misc-template.ts +36 -0
  102. package/schematics/schematics/ng-update/migrations/output-names.ts +61 -0
  103. package/schematics/schematics/ng-update/migrations/property-names.ts +61 -0
  104. package/schematics/schematics/ng-update/migrations/symbol-removal.ts +51 -0
  105. package/schematics/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.ts +40 -0
  106. package/schematics/schematics/ng-update/public-api.ts +18 -0
  107. package/schematics/schematics/ng-update/test-cases/index.spec.ts +18 -0
  108. package/schematics/schematics/ng-update/test-cases/misc/external-resource-resolution.spec.ts +32 -0
  109. package/schematics/schematics/ng-update/test-cases/misc/external-resource-resolution_input.ts +22 -0
  110. package/schematics/schematics/ng-update/test-cases/misc/global-stylesheets-test.scss +3 -0
  111. package/schematics/schematics/ng-update/test-cases/misc/global-stylesheets.spec.ts +50 -0
  112. package/schematics/schematics/ng-update/test-cases/misc/global-stylesheets_input.ts +8 -0
  113. package/schematics/schematics/ng-update/test-cases/misc/method-call-checks.spec.ts +20 -0
  114. package/schematics/schematics/ng-update/test-cases/misc/method-call-checks_input.ts +18 -0
  115. package/schematics/schematics/ng-update/test-cases/misc/module-resolution.spec.ts +27 -0
  116. package/schematics/schematics/ng-update/test-cases/v13/misc/tilde-import-v13.spec.ts +149 -0
  117. package/schematics/schematics/ng-update/test-cases/v6/attribute-selectors_expected_output.ts +36 -0
  118. package/schematics/schematics/ng-update/test-cases/v6/attribute-selectors_input.ts +36 -0
  119. package/schematics/schematics/ng-update/test-cases/v6/class-names_expected_output.ts +8 -0
  120. package/schematics/schematics/ng-update/test-cases/v6/class-names_input.ts +8 -0
  121. package/schematics/schematics/ng-update/test-cases/v6/input-names_expected_output.ts +22 -0
  122. package/schematics/schematics/ng-update/test-cases/v6/input-names_input.ts +22 -0
  123. package/schematics/schematics/ng-update/test-cases/v6/property-names_expected_output.ts +64 -0
  124. package/schematics/schematics/ng-update/test-cases/v6/property-names_input.ts +64 -0
  125. package/schematics/schematics/ng-update/test-cases/v7/property-names_expected_output.ts +28 -0
  126. package/schematics/schematics/ng-update/test-cases/v7/property-names_input.ts +28 -0
  127. package/schematics/schematics/ng-update/typescript/base-types.ts +22 -0
  128. package/schematics/schematics/ng-update/typescript/imports.ts +54 -0
  129. package/schematics/schematics/ng-update/typescript/literal.ts +32 -0
  130. package/schematics/schematics/ng-update/typescript/module-specifiers.ts +39 -0
  131. package/schematics/schematics/ng-update/update-schematic.md +209 -0
  132. package/schematics/schematics/ng-update/upgrade-data.ts +79 -0
  133. package/schematics/schematics/paths.ts +15 -0
  134. package/schematics/schematics/testing/BUILD.bazel +27 -0
  135. package/schematics/schematics/testing/file-content.ts +20 -0
  136. package/schematics/schematics/testing/index.ts +14 -0
  137. package/schematics/schematics/testing/post-scheduled-tasks.ts +45 -0
  138. package/schematics/schematics/testing/resolve-bazel-path.ts +46 -0
  139. package/schematics/schematics/testing/test-app.ts +21 -0
  140. package/schematics/schematics/testing/test-case-setup.ts +236 -0
  141. package/schematics/schematics/testing/test-library.ts +21 -0
  142. package/schematics/schematics/testing/test-project.ts +40 -0
  143. package/schematics/schematics/testing/tsconfig.json +7 -0
  144. package/schematics/schematics/tsconfig.json +28 -0
  145. package/schematics/schematics/update-tool/BUILD.bazel +19 -0
  146. package/schematics/schematics/update-tool/component-resource-collector.ts +195 -0
  147. package/schematics/schematics/update-tool/file-system.ts +78 -0
  148. package/schematics/schematics/update-tool/index.ts +191 -0
  149. package/schematics/schematics/update-tool/logger.ts +23 -0
  150. package/schematics/schematics/update-tool/migration.ts +88 -0
  151. package/schematics/schematics/update-tool/public-api.ts +16 -0
  152. package/schematics/schematics/update-tool/target-version.ts +31 -0
  153. package/schematics/schematics/update-tool/tsconfig.json +7 -0
  154. package/schematics/schematics/update-tool/update-recorder.ts +14 -0
  155. package/schematics/schematics/update-tool/utils/decorators.ts +54 -0
  156. package/schematics/schematics/update-tool/utils/functions.ts +18 -0
  157. package/schematics/schematics/update-tool/utils/imports.ts +128 -0
  158. package/schematics/schematics/update-tool/utils/line-mappings.ts +84 -0
  159. package/schematics/schematics/update-tool/utils/parse-tsconfig.ts +25 -0
  160. package/schematics/schematics/update-tool/utils/property-name.ts +28 -0
  161. package/schematics/schematics/update-tool/utils/virtual-host.ts +116 -0
  162. package/schematics/schematics/update-tool/version-changes.ts +49 -0
  163. package/schematics/schematics/utils/ast/ng-module-imports.spec.ts +43 -0
  164. package/schematics/schematics/utils/ast/ng-module-imports.ts +102 -0
  165. package/schematics/schematics/utils/ast.ts +88 -0
  166. package/schematics/schematics/utils/build-component.ts +252 -0
  167. package/schematics/schematics/utils/get-project.ts +27 -0
  168. package/schematics/schematics/utils/html-manipulation.ts +105 -0
  169. package/schematics/schematics/utils/index.ts +19 -0
  170. package/schematics/schematics/utils/parse5-element.ts +34 -0
  171. package/schematics/schematics/utils/project-index-file.ts +21 -0
  172. package/schematics/schematics/utils/project-main-file.ts +26 -0
  173. package/schematics/schematics/utils/project-style-file.ts +53 -0
  174. package/schematics/schematics/utils/project-targets.ts +43 -0
  175. package/schematics/schematics/utils/project-tsconfig-paths.spec.ts +91 -0
  176. package/schematics/schematics/utils/project-tsconfig-paths.ts +49 -0
  177. package/schematics/schematics/utils/schematic-options.ts +65 -0
  178. package/schematics/schematics/utils/vendored-ast-utils/index.ts +599 -0
  179. package/scrolling/virtual-scroll-viewport.scss +87 -0
  180. package/table/table.scss +3 -0
  181. package/text-field/_index.import.scss +2 -0
  182. package/text-field/_index.scss +89 -0
  183. package/text-field/text-field-prebuilt.scss +4 -0
  184. package/types/stagefright5-cdk-a11y.d.ts +1160 -0
  185. package/types/stagefright5-cdk-accordion.d.ts +95 -0
  186. package/types/stagefright5-cdk-bidi.d.ts +95 -0
  187. package/types/stagefright5-cdk-clipboard.d.ts +116 -0
  188. package/types/stagefright5-cdk-coercion.d.ts +101 -0
  189. package/types/stagefright5-cdk-collections.d.ts +405 -0
  190. package/types/stagefright5-cdk-drag-drop.d.ts +1471 -0
  191. package/types/stagefright5-cdk-keycodes.d.ts +142 -0
  192. package/types/stagefright5-cdk-layout.d.ts +96 -0
  193. package/types/stagefright5-cdk-observers.d.ts +91 -0
  194. package/types/stagefright5-cdk-overlay.d.ts +1258 -0
  195. package/types/stagefright5-cdk-platform.d.ts +130 -0
  196. package/types/stagefright5-cdk-portal.d.ts +327 -0
  197. package/types/stagefright5-cdk-scrolling.d.ts +631 -0
  198. package/types/stagefright5-cdk-stepper.d.ts +302 -0
  199. package/types/stagefright5-cdk-table.d.ts +1128 -0
  200. package/types/stagefright5-cdk-testing-protractor.d.ts +146 -0
  201. package/types/stagefright5-cdk-testing-selenium-webdriver.d.ts +161 -0
  202. package/types/stagefright5-cdk-testing-testbed.d.ts +168 -0
  203. package/types/stagefright5-cdk-testing.d.ts +735 -0
  204. package/types/stagefright5-cdk-text-field.d.ts +171 -0
  205. package/types/stagefright5-cdk-tree.d.ts +522 -0
  206. package/types/stagefright5-cdk.d.ts +14 -0
@@ -0,0 +1,130 @@
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
+ constructor(_platformId: Object);
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
30
+ }
31
+
32
+ declare class PlatformModule {
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformModule, never>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformModule, never, never, never>;
35
+ static ɵinj: i0.ɵɵInjectorDeclaration<PlatformModule>;
36
+ }
37
+
38
+ /**
39
+ * @license
40
+ * Copyright Google LLC All Rights Reserved.
41
+ *
42
+ * Use of this source code is governed by an MIT-style license that can be
43
+ * found in the LICENSE file at https://angular.io/license
44
+ */
45
+ /** @returns The input types supported by this browser. */
46
+ declare function getSupportedInputTypes(): Set<string>;
47
+
48
+ /**
49
+ * @license
50
+ * Copyright Google LLC All Rights Reserved.
51
+ *
52
+ * Use of this source code is governed by an MIT-style license that can be
53
+ * found in the LICENSE file at https://angular.io/license
54
+ */
55
+ /**
56
+ * Checks whether the user's browser supports passive event listeners.
57
+ * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
58
+ */
59
+ declare function supportsPassiveEventListeners(): boolean;
60
+ /**
61
+ * Normalizes an `AddEventListener` object to something that can be passed
62
+ * to `addEventListener` on any browser, no matter whether it supports the
63
+ * `options` parameter.
64
+ * @param options Object to be normalized.
65
+ */
66
+ declare function normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
67
+
68
+ /**
69
+ * @license
70
+ * Copyright Google LLC All Rights Reserved.
71
+ *
72
+ * Use of this source code is governed by an MIT-style license that can be
73
+ * found in the LICENSE file at https://angular.io/license
74
+ */
75
+ /** The possible ways the browser may handle the horizontal scroll axis in RTL languages. */
76
+ declare const enum RtlScrollAxisType {
77
+ /**
78
+ * scrollLeft is 0 when scrolled all the way left and (scrollWidth - clientWidth) when scrolled
79
+ * all the way right.
80
+ */
81
+ NORMAL = 0,
82
+ /**
83
+ * scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
84
+ * all the way right.
85
+ */
86
+ NEGATED = 1,
87
+ /**
88
+ * scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
89
+ * all the way right.
90
+ */
91
+ INVERTED = 2
92
+ }
93
+ /** Check whether the browser supports scroll behaviors. */
94
+ declare function supportsScrollBehavior(): boolean;
95
+ /**
96
+ * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
97
+ * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
98
+ */
99
+ declare function getRtlScrollAxisType(): RtlScrollAxisType;
100
+
101
+ /**
102
+ * @license
103
+ * Copyright Google LLC All Rights Reserved.
104
+ *
105
+ * Use of this source code is governed by an MIT-style license that can be
106
+ * found in the LICENSE file at https://angular.io/license
107
+ */
108
+ /** Checks whether the user's browser support Shadow DOM. */
109
+ declare function _supportsShadowDom(): boolean;
110
+ /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */
111
+ declare function _getShadowRoot(element: HTMLElement): ShadowRoot | null;
112
+ /**
113
+ * Gets the currently-focused element on the page while
114
+ * also piercing through Shadow DOM boundaries.
115
+ */
116
+ declare function _getFocusedElementPierceShadowDom(): HTMLElement | null;
117
+ /** Gets the target of an event while accounting for Shadow DOM. */
118
+ declare function _getEventTarget<T extends EventTarget>(event: Event): T | null;
119
+
120
+ /**
121
+ * @license
122
+ * Copyright Google LLC All Rights Reserved.
123
+ *
124
+ * Use of this source code is governed by an MIT-style license that can be
125
+ * found in the LICENSE file at https://angular.io/license
126
+ */
127
+ /** Gets whether the code is currently running in a test environment. */
128
+ declare function _isTestEnvironment(): boolean;
129
+
130
+ export { Platform, PlatformModule, RtlScrollAxisType, _getEventTarget, _getFocusedElementPierceShadowDom, _getShadowRoot, _isTestEnvironment, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior };
@@ -0,0 +1,327 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ComponentRef, ViewContainerRef, Injector, ComponentFactoryResolver, EmbeddedViewRef, TemplateRef, ElementRef, ApplicationRef, OnInit, OnDestroy, EventEmitter } from '@angular/core';
3
+
4
+ /**
5
+ * @license
6
+ * Copyright Google LLC All Rights Reserved.
7
+ *
8
+ * Use of this source code is governed by an MIT-style license that can be
9
+ * found in the LICENSE file at https://angular.io/license
10
+ */
11
+
12
+ /** Interface that can be used to generically type a class. */
13
+ interface ComponentType<T> {
14
+ new (...args: any[]): T;
15
+ }
16
+ /**
17
+ * A `Portal` is something that you want to render somewhere else.
18
+ * It can be attach to / detached from a `PortalOutlet`.
19
+ */
20
+ declare abstract class Portal<T> {
21
+ private _attachedHost;
22
+ /** Attach this portal to a host. */
23
+ attach(host: PortalOutlet): T;
24
+ /** Detach this portal from its host */
25
+ detach(): void;
26
+ /** Whether this portal is attached to a host. */
27
+ get isAttached(): boolean;
28
+ /**
29
+ * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
30
+ * the PortalOutlet when it is performing an `attach()` or `detach()`.
31
+ */
32
+ setAttachedHost(host: PortalOutlet | null): void;
33
+ }
34
+ /**
35
+ * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
36
+ */
37
+ declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
38
+ /** The type of the component that will be instantiated for attachment. */
39
+ component: ComponentType<T>;
40
+ /**
41
+ * [Optional] Where the attached component should live in Angular's *logical* component tree.
42
+ * This is different from where the component *renders*, which is determined by the PortalOutlet.
43
+ * The origin is necessary when the host is outside of the Angular application context.
44
+ */
45
+ viewContainerRef?: ViewContainerRef | null;
46
+ /** [Optional] Injector used for the instantiation of the component. */
47
+ injector?: Injector | null;
48
+ /**
49
+ * Alternate `ComponentFactoryResolver` to use when resolving the associated component.
50
+ * Defaults to using the resolver from the outlet that the portal is attached to.
51
+ */
52
+ componentFactoryResolver?: ComponentFactoryResolver | null;
53
+ constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, componentFactoryResolver?: ComponentFactoryResolver | null);
54
+ }
55
+ /**
56
+ * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
57
+ */
58
+ declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
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
+ constructor(template: TemplateRef<C>, viewContainerRef: ViewContainerRef, context?: C);
66
+ get origin(): ElementRef;
67
+ /**
68
+ * Attach the portal to the provided `PortalOutlet`.
69
+ * When a context is provided it will override the `context` property of the `TemplatePortal`
70
+ * instance.
71
+ */
72
+ attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
73
+ detach(): void;
74
+ }
75
+ /**
76
+ * A `DomPortal` is a portal whose DOM element will be taken from its current position
77
+ * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
78
+ * will be restored to its original position.
79
+ */
80
+ declare class DomPortal<T = HTMLElement> extends Portal<T> {
81
+ /** DOM node hosting the portal's content. */
82
+ readonly element: T;
83
+ constructor(element: T | ElementRef<T>);
84
+ }
85
+ /** A `PortalOutlet` is an space that can contain a single `Portal`. */
86
+ interface PortalOutlet {
87
+ /** Attaches a portal to this outlet. */
88
+ attach(portal: Portal<any>): any;
89
+ /** Detaches the currently attached portal from this outlet. */
90
+ detach(): any;
91
+ /** Performs cleanup before the outlet is destroyed. */
92
+ dispose(): void;
93
+ /** Whether there is currently a portal attached to this outlet. */
94
+ hasAttached(): boolean;
95
+ }
96
+ /**
97
+ * @deprecated Use `PortalOutlet` instead.
98
+ * @breaking-change 9.0.0
99
+ */
100
+ type PortalHost = PortalOutlet;
101
+ /**
102
+ * Partial implementation of PortalOutlet that handles attaching
103
+ * ComponentPortal and TemplatePortal.
104
+ */
105
+ declare abstract class BasePortalOutlet implements PortalOutlet {
106
+ /** The portal currently attached to the host. */
107
+ protected _attachedPortal: Portal<any> | null;
108
+ /** A function that will permanently dispose this host. */
109
+ private _disposeFn;
110
+ /** Whether this host has already been permanently disposed. */
111
+ private _isDisposed;
112
+ /** Whether this host has an attached portal. */
113
+ hasAttached(): boolean;
114
+ attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
115
+ attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
116
+ attach(portal: any): any;
117
+ abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
118
+ abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
119
+ readonly attachDomPortal: null | ((portal: DomPortal) => any);
120
+ /** Detaches a previously attached portal. */
121
+ detach(): void;
122
+ /** Permanently dispose of this portal host. */
123
+ dispose(): void;
124
+ /** @docs-private */
125
+ setDisposeFn(fn: () => void): void;
126
+ private _invokeDisposeFn;
127
+ }
128
+ /**
129
+ * @deprecated Use `BasePortalOutlet` instead.
130
+ * @breaking-change 9.0.0
131
+ */
132
+ declare abstract class BasePortalHost extends BasePortalOutlet {
133
+ }
134
+
135
+ /**
136
+ * @license
137
+ * Copyright Google LLC All Rights Reserved.
138
+ *
139
+ * Use of this source code is governed by an MIT-style license that can be
140
+ * found in the LICENSE file at https://angular.io/license
141
+ */
142
+
143
+ /**
144
+ * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
145
+ * application context.
146
+ */
147
+ declare class DomPortalOutlet extends BasePortalOutlet {
148
+ /** Element into which the content is projected. */
149
+ outletElement: Element;
150
+ private _componentFactoryResolver?;
151
+ private _appRef?;
152
+ private _defaultInjector?;
153
+ private _document;
154
+ /**
155
+ * @param outletElement Element into which the content is projected.
156
+ * @param _componentFactoryResolver Used to resolve the component factory.
157
+ * Only required when attaching component portals.
158
+ * @param _appRef Reference to the application. Only used in component portals when there
159
+ * is no `ViewContainerRef` available.
160
+ * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
161
+ * have one. Only used for component portals.
162
+ * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
163
+ * become a required parameter.
164
+ */
165
+ constructor(
166
+ /** Element into which the content is projected. */
167
+ outletElement: Element, _componentFactoryResolver?: ComponentFactoryResolver | undefined, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined,
168
+ /**
169
+ * @deprecated `_document` Parameter to be made required.
170
+ * @breaking-change 10.0.0
171
+ */
172
+ _document?: any);
173
+ /**
174
+ * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
175
+ * @param portal Portal to be attached
176
+ * @returns Reference to the created component.
177
+ */
178
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
179
+ /**
180
+ * Attaches a template portal to the DOM as an embedded view.
181
+ * @param portal Portal to be attached.
182
+ * @returns Reference to the created embedded view.
183
+ */
184
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
185
+ /**
186
+ * Attaches a DOM portal by transferring its content into the outlet.
187
+ * @param portal Portal to be attached.
188
+ * @deprecated To be turned into a method.
189
+ * @breaking-change 10.0.0
190
+ */
191
+ attachDomPortal: (portal: DomPortal) => void;
192
+ /**
193
+ * Clears out a portal from the DOM.
194
+ */
195
+ dispose(): void;
196
+ /** Gets the root HTMLElement for an instantiated component. */
197
+ private _getComponentRootNode;
198
+ }
199
+ /**
200
+ * @deprecated Use `DomPortalOutlet` instead.
201
+ * @breaking-change 9.0.0
202
+ */
203
+ declare class DomPortalHost extends DomPortalOutlet {
204
+ }
205
+
206
+ /**
207
+ * @license
208
+ * Copyright Google LLC All Rights Reserved.
209
+ *
210
+ * Use of this source code is governed by an MIT-style license that can be
211
+ * found in the LICENSE file at https://angular.io/license
212
+ */
213
+
214
+ /**
215
+ * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
216
+ * the directive instance itself can be attached to a host, enabling declarative use of portals.
217
+ */
218
+ declare class CdkPortal extends TemplatePortal {
219
+ constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
221
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, false, never>;
222
+ }
223
+ /**
224
+ * @deprecated Use `CdkPortal` instead.
225
+ * @breaking-change 9.0.0
226
+ */
227
+ declare class TemplatePortalDirective extends CdkPortal {
228
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
229
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, false, never>;
230
+ }
231
+ /**
232
+ * Possible attached references to the CdkPortalOutlet.
233
+ */
234
+ type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
235
+ /**
236
+ * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
237
+ * directly attached to it, enabling declarative use.
238
+ *
239
+ * Usage:
240
+ * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
241
+ */
242
+ declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
243
+ private _componentFactoryResolver;
244
+ private _viewContainerRef;
245
+ private _document;
246
+ /** Whether the portal component is initialized. */
247
+ private _isInitialized;
248
+ /** Reference to the currently-attached component/view ref. */
249
+ private _attachedRef;
250
+ constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef,
251
+ /**
252
+ * @deprecated `_document` parameter to be made required.
253
+ * @breaking-change 9.0.0
254
+ */
255
+ _document?: any);
256
+ /** Portal associated with the Portal outlet. */
257
+ get portal(): Portal<any> | null;
258
+ set portal(portal: Portal<any> | null | undefined | '');
259
+ /** Emits when a portal is attached to the outlet. */
260
+ readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
261
+ /** Component or view reference that is attached to the portal. */
262
+ get attachedRef(): CdkPortalOutletAttachedRef;
263
+ ngOnInit(): void;
264
+ ngOnDestroy(): void;
265
+ /**
266
+ * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
267
+ *
268
+ * @param portal Portal to be attached to the portal outlet.
269
+ * @returns Reference to the created component.
270
+ */
271
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
272
+ /**
273
+ * Attach the given TemplatePortal to this PortalHost as an embedded View.
274
+ * @param portal Portal to be attached.
275
+ * @returns Reference to the created embedded view.
276
+ */
277
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
278
+ /**
279
+ * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
280
+ * @param portal Portal to be attached.
281
+ * @deprecated To be turned into a method.
282
+ * @breaking-change 10.0.0
283
+ */
284
+ attachDomPortal: (portal: DomPortal) => void;
285
+ /** Gets the root node of the portal outlet. */
286
+ private _getRootNode;
287
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
288
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": { "alias": "cdkPortalOutlet"; "required": false; }; }, { "attached": "attached"; }, never, never, false, never>;
289
+ }
290
+ /**
291
+ * @deprecated Use `CdkPortalOutlet` instead.
292
+ * @breaking-change 9.0.0
293
+ */
294
+ declare class PortalHostDirective extends CdkPortalOutlet {
295
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
296
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": { "alias": "cdkPortalHost"; "required": false; }; }, {}, never, never, false, never>;
297
+ }
298
+ declare class PortalModule {
299
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
300
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
301
+ static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
302
+ }
303
+
304
+ /**
305
+ * @license
306
+ * Copyright Google LLC All Rights Reserved.
307
+ *
308
+ * Use of this source code is governed by an MIT-style license that can be
309
+ * found in the LICENSE file at https://angular.io/license
310
+ */
311
+
312
+ /**
313
+ * Custom injector to be used when providing custom
314
+ * injection tokens to components inside a portal.
315
+ * @docs-private
316
+ * @deprecated Use `Injector.create` instead.
317
+ * @breaking-change 11.0.0
318
+ */
319
+ declare class PortalInjector implements Injector {
320
+ private _parentInjector;
321
+ private _customTokens;
322
+ constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
323
+ get(token: any, notFoundValue?: any): any;
324
+ }
325
+
326
+ export { BasePortalHost, BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, DomPortalHost, DomPortalOutlet, Portal, PortalHostDirective, PortalInjector, PortalModule, TemplatePortal, TemplatePortalDirective };
327
+ export type { CdkPortalOutletAttachedRef, ComponentType, PortalHost, PortalOutlet };