@kato-lee/cdk 14.2.7

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 (374) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -0
  3. package/_index.scss +8 -0
  4. package/a11y/_index.import.scss +2 -0
  5. package/a11y/_index.scss +102 -0
  6. package/a11y/index.d.ts +1212 -0
  7. package/a11y-prebuilt.css +1 -0
  8. package/accordion/index.d.ts +140 -0
  9. package/bidi/index.d.ts +80 -0
  10. package/clipboard/index.d.ts +115 -0
  11. package/coercion/index.d.ts +67 -0
  12. package/collections/index.d.ts +374 -0
  13. package/dialog/index.d.ts +469 -0
  14. package/drag-drop/index.d.ts +1614 -0
  15. package/esm2020/a11y/a11y-module.mjs +32 -0
  16. package/esm2020/a11y/a11y_public_index.mjs +5 -0
  17. package/esm2020/a11y/aria-describer/aria-describer.mjs +232 -0
  18. package/esm2020/a11y/aria-describer/aria-reference.mjs +44 -0
  19. package/esm2020/a11y/fake-event-detection.mjs +31 -0
  20. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +451 -0
  21. package/esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs +9 -0
  22. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
  23. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
  24. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
  25. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
  26. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
  27. package/esm2020/a11y/focus-trap/focus-trap.mjs +402 -0
  28. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +109 -0
  29. package/esm2020/a11y/index.mjs +9 -0
  30. package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
  31. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
  32. package/esm2020/a11y/key-manager/activedescendant-key-manager.mjs +20 -0
  33. package/esm2020/a11y/key-manager/focus-key-manager.mjs +29 -0
  34. package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
  35. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
  36. package/esm2020/a11y/live-announcer/live-announcer.mjs +178 -0
  37. package/esm2020/a11y/public-api.mjs +26 -0
  38. package/esm2020/accordion/accordion-item.mjs +167 -0
  39. package/esm2020/accordion/accordion-module.mjs +24 -0
  40. package/esm2020/accordion/accordion.mjs +70 -0
  41. package/esm2020/accordion/accordion_public_index.mjs +5 -0
  42. package/esm2020/accordion/index.mjs +9 -0
  43. package/esm2020/accordion/public-api.mjs +11 -0
  44. package/esm2020/bidi/bidi-module.mjs +23 -0
  45. package/esm2020/bidi/bidi_public_index.mjs +5 -0
  46. package/esm2020/bidi/dir-document-token.mjs +33 -0
  47. package/esm2020/bidi/dir.mjs +69 -0
  48. package/esm2020/bidi/directionality.mjs +52 -0
  49. package/esm2020/bidi/index.mjs +9 -0
  50. package/esm2020/bidi/public-api.mjs +12 -0
  51. package/esm2020/clipboard/clipboard-module.mjs +23 -0
  52. package/esm2020/clipboard/clipboard.mjs +53 -0
  53. package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
  54. package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
  55. package/esm2020/clipboard/index.mjs +9 -0
  56. package/esm2020/clipboard/pending-copy.mjs +69 -0
  57. package/esm2020/clipboard/public-api.mjs +12 -0
  58. package/esm2020/coercion/array.mjs +11 -0
  59. package/esm2020/coercion/boolean-property.mjs +12 -0
  60. package/esm2020/coercion/css-pixel-value.mjs +15 -0
  61. package/esm2020/coercion/element.mjs +16 -0
  62. package/esm2020/coercion/index.mjs +9 -0
  63. package/esm2020/coercion/number-property.mjs +21 -0
  64. package/esm2020/coercion/public-api.mjs +14 -0
  65. package/esm2020/coercion/string-array.mjs +38 -0
  66. package/esm2020/collections/array-data-source.mjs +21 -0
  67. package/esm2020/collections/collection-viewer.mjs +9 -0
  68. package/esm2020/collections/collections_public_index.mjs +5 -0
  69. package/esm2020/collections/data-source.mjs +19 -0
  70. package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
  71. package/esm2020/collections/index.mjs +9 -0
  72. package/esm2020/collections/public-api.mjs +17 -0
  73. package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
  74. package/esm2020/collections/selection-model.mjs +216 -0
  75. package/esm2020/collections/tree-adapter.mjs +9 -0
  76. package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
  77. package/esm2020/collections/view-repeater.mjs +14 -0
  78. package/esm2020/dialog/dialog-config.mjs +63 -0
  79. package/esm2020/dialog/dialog-container.mjs +278 -0
  80. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  81. package/esm2020/dialog/dialog-module.mjs +42 -0
  82. package/esm2020/dialog/dialog-ref.mjs +76 -0
  83. package/esm2020/dialog/dialog.mjs +301 -0
  84. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  85. package/esm2020/dialog/index.mjs +9 -0
  86. package/esm2020/dialog/public-api.mjs +14 -0
  87. package/esm2020/drag-drop/directives/assertions.mjs +18 -0
  88. package/esm2020/drag-drop/directives/config.mjs +14 -0
  89. package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
  90. package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
  91. package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
  92. package/esm2020/drag-drop/directives/drag.mjs +487 -0
  93. package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
  94. package/esm2020/drag-drop/directives/drop-list.mjs +345 -0
  95. package/esm2020/drag-drop/dom/client-rect.mjs +64 -0
  96. package/esm2020/drag-drop/dom/clone-node.mjs +65 -0
  97. package/esm2020/drag-drop/dom/parent-position-tracker.mjs +76 -0
  98. package/esm2020/drag-drop/dom/styling.mjs +69 -0
  99. package/esm2020/drag-drop/dom/transition-duration.mjs +36 -0
  100. package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
  101. package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
  102. package/esm2020/drag-drop/drag-drop.mjs +57 -0
  103. package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
  104. package/esm2020/drag-drop/drag-events.mjs +9 -0
  105. package/esm2020/drag-drop/drag-parent.mjs +16 -0
  106. package/esm2020/drag-drop/drag-ref.mjs +1146 -0
  107. package/esm2020/drag-drop/drag-utils.mjs +60 -0
  108. package/esm2020/drag-drop/drop-list-ref.mjs +577 -0
  109. package/esm2020/drag-drop/index.mjs +9 -0
  110. package/esm2020/drag-drop/public-api.mjs +23 -0
  111. package/esm2020/drag-drop/sorting/drop-list-sort-strategy.mjs +9 -0
  112. package/esm2020/drag-drop/sorting/single-axis-sort-strategy.mjs +341 -0
  113. package/esm2020/index.mjs +9 -0
  114. package/esm2020/keycodes/index.mjs +9 -0
  115. package/esm2020/keycodes/keycodes.mjs +127 -0
  116. package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
  117. package/esm2020/keycodes/modifiers.mjs +18 -0
  118. package/esm2020/keycodes/public-api.mjs +10 -0
  119. package/esm2020/layout/breakpoints-observer.mjs +105 -0
  120. package/esm2020/layout/breakpoints.mjs +29 -0
  121. package/esm2020/layout/index.mjs +9 -0
  122. package/esm2020/layout/layout-module.mjs +19 -0
  123. package/esm2020/layout/layout_public_index.mjs +5 -0
  124. package/esm2020/layout/media-matcher.mjs +85 -0
  125. package/esm2020/layout/public-api.mjs +12 -0
  126. package/esm2020/listbox/index.mjs +9 -0
  127. package/esm2020/listbox/listbox-module.mjs +24 -0
  128. package/esm2020/listbox/listbox.mjs +872 -0
  129. package/esm2020/listbox/listbox_public_index.mjs +5 -0
  130. package/esm2020/listbox/public-api.mjs +10 -0
  131. package/esm2020/menu/context-menu-trigger.mjs +212 -0
  132. package/esm2020/menu/index.mjs +9 -0
  133. package/esm2020/menu/menu-aim.mjs +203 -0
  134. package/esm2020/menu/menu-bar.mjs +133 -0
  135. package/esm2020/menu/menu-base.mjs +187 -0
  136. package/esm2020/menu/menu-errors.mjs +22 -0
  137. package/esm2020/menu/menu-group.mjs +30 -0
  138. package/esm2020/menu/menu-interface.mjs +11 -0
  139. package/esm2020/menu/menu-item-checkbox.mjs +49 -0
  140. package/esm2020/menu/menu-item-radio.mjs +71 -0
  141. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  142. package/esm2020/menu/menu-item.mjs +267 -0
  143. package/esm2020/menu/menu-module.mjs +62 -0
  144. package/esm2020/menu/menu-stack.mjs +156 -0
  145. package/esm2020/menu/menu-trigger-base.mjs +107 -0
  146. package/esm2020/menu/menu-trigger.mjs +291 -0
  147. package/esm2020/menu/menu.mjs +134 -0
  148. package/esm2020/menu/menu_public_index.mjs +5 -0
  149. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  150. package/esm2020/menu/public-api.mjs +24 -0
  151. package/esm2020/observers/index.mjs +9 -0
  152. package/esm2020/observers/observe-content.mjs +187 -0
  153. package/esm2020/observers/observers_public_index.mjs +5 -0
  154. package/esm2020/observers/public-api.mjs +9 -0
  155. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
  156. package/esm2020/overlay/dispatchers/index.mjs +10 -0
  157. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +81 -0
  158. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +138 -0
  159. package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
  160. package/esm2020/overlay/index.mjs +9 -0
  161. package/esm2020/overlay/overlay-config.mjs +45 -0
  162. package/esm2020/overlay/overlay-container.mjs +81 -0
  163. package/esm2020/overlay/overlay-directives.mjs +427 -0
  164. package/esm2020/overlay/overlay-module.mjs +29 -0
  165. package/esm2020/overlay/overlay-ref.mjs +427 -0
  166. package/esm2020/overlay/overlay-reference.mjs +9 -0
  167. package/esm2020/overlay/overlay.mjs +125 -0
  168. package/esm2020/overlay/overlay_public_index.mjs +5 -0
  169. package/esm2020/overlay/position/connected-position.mjs +88 -0
  170. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +985 -0
  171. package/esm2020/overlay/position/global-position-strategy.mjs +237 -0
  172. package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
  173. package/esm2020/overlay/position/position-strategy.mjs +9 -0
  174. package/esm2020/overlay/position/scroll-clip.mjs +40 -0
  175. package/esm2020/overlay/public-api.mjs +22 -0
  176. package/esm2020/overlay/scroll/block-scroll-strategy.mjs +80 -0
  177. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
  178. package/esm2020/overlay/scroll/index.mjs +14 -0
  179. package/esm2020/overlay/scroll/noop-scroll-strategy.mjs +17 -0
  180. package/esm2020/overlay/scroll/reposition-scroll-strategy.mjs +61 -0
  181. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
  182. package/esm2020/overlay/scroll/scroll-strategy.mjs +14 -0
  183. package/esm2020/platform/features/input-types.mjs +59 -0
  184. package/esm2020/platform/features/passive-listeners.mjs +36 -0
  185. package/esm2020/platform/features/scrolling.mjs +85 -0
  186. package/esm2020/platform/features/shadow-dom.mjs +54 -0
  187. package/esm2020/platform/features/test-environment.mjs +24 -0
  188. package/esm2020/platform/index.mjs +9 -0
  189. package/esm2020/platform/platform-module.mjs +19 -0
  190. package/esm2020/platform/platform.mjs +85 -0
  191. package/esm2020/platform/platform_public_index.mjs +5 -0
  192. package/esm2020/platform/public-api.mjs +15 -0
  193. package/esm2020/portal/dom-portal-outlet.mjs +158 -0
  194. package/esm2020/portal/index.mjs +9 -0
  195. package/esm2020/portal/portal-directives.mjs +246 -0
  196. package/esm2020/portal/portal-errors.mjs +51 -0
  197. package/esm2020/portal/portal-injector.mjs +28 -0
  198. package/esm2020/portal/portal.mjs +188 -0
  199. package/esm2020/portal/portal_public_index.mjs +5 -0
  200. package/esm2020/portal/public-api.mjs +12 -0
  201. package/esm2020/public-api.mjs +9 -0
  202. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
  203. package/esm2020/scrolling/index.mjs +9 -0
  204. package/esm2020/scrolling/public-api.mjs +20 -0
  205. package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
  206. package/esm2020/scrolling/scrollable.mjs +176 -0
  207. package/esm2020/scrolling/scrolling-module.mjs +67 -0
  208. package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
  209. package/esm2020/scrolling/viewport-ruler.mjs +146 -0
  210. package/esm2020/scrolling/virtual-for-of.mjs +298 -0
  211. package/esm2020/scrolling/virtual-scroll-repeater.mjs +9 -0
  212. package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
  213. package/esm2020/scrolling/virtual-scroll-viewport.mjs +437 -0
  214. package/esm2020/scrolling/virtual-scrollable-element.mjs +41 -0
  215. package/esm2020/scrolling/virtual-scrollable-window.mjs +40 -0
  216. package/esm2020/scrolling/virtual-scrollable.mjs +40 -0
  217. package/esm2020/stepper/index.mjs +9 -0
  218. package/esm2020/stepper/public-api.mjs +13 -0
  219. package/esm2020/stepper/step-header.mjs +30 -0
  220. package/esm2020/stepper/step-label.mjs +23 -0
  221. package/esm2020/stepper/stepper-button.mjs +56 -0
  222. package/esm2020/stepper/stepper-module.mjs +40 -0
  223. package/esm2020/stepper/stepper.mjs +458 -0
  224. package/esm2020/stepper/stepper_public_index.mjs +5 -0
  225. package/esm2020/table/can-stick.mjs +44 -0
  226. package/esm2020/table/cell.mjs +217 -0
  227. package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
  228. package/esm2020/table/index.mjs +9 -0
  229. package/esm2020/table/public-api.mjs +20 -0
  230. package/esm2020/table/row.mjs +262 -0
  231. package/esm2020/table/sticky-position-listener.mjs +11 -0
  232. package/esm2020/table/sticky-styler.mjs +345 -0
  233. package/esm2020/table/table-errors.mjs +67 -0
  234. package/esm2020/table/table-module.mjs +94 -0
  235. package/esm2020/table/table.mjs +1065 -0
  236. package/esm2020/table/table_public_index.mjs +5 -0
  237. package/esm2020/table/text-column.mjs +153 -0
  238. package/esm2020/table/tokens.mjs +16 -0
  239. package/esm2020/text-field/autofill.mjs +113 -0
  240. package/esm2020/text-field/autosize.mjs +309 -0
  241. package/esm2020/text-field/index.mjs +9 -0
  242. package/esm2020/text-field/public-api.mjs +11 -0
  243. package/esm2020/text-field/text-field-module.mjs +24 -0
  244. package/esm2020/text-field/text-field_public_index.mjs +5 -0
  245. package/esm2020/tree/control/base-tree-control.mjs +57 -0
  246. package/esm2020/tree/control/flat-tree-control.mjs +51 -0
  247. package/esm2020/tree/control/nested-tree-control.mjs +58 -0
  248. package/esm2020/tree/control/tree-control.mjs +2 -0
  249. package/esm2020/tree/index.mjs +9 -0
  250. package/esm2020/tree/nested-node.mjs +112 -0
  251. package/esm2020/tree/node.mjs +35 -0
  252. package/esm2020/tree/outlet.mjs +39 -0
  253. package/esm2020/tree/padding.mjs +131 -0
  254. package/esm2020/tree/public-api.mjs +20 -0
  255. package/esm2020/tree/toggle.mjs +50 -0
  256. package/esm2020/tree/tree-errors.mjs +43 -0
  257. package/esm2020/tree/tree-module.mjs +49 -0
  258. package/esm2020/tree/tree.mjs +347 -0
  259. package/esm2020/tree/tree_public_index.mjs +5 -0
  260. package/esm2020/version.mjs +11 -0
  261. package/fesm2015/a11y.mjs +2473 -0
  262. package/fesm2015/a11y.mjs.map +1 -0
  263. package/fesm2015/accordion.mjs +414 -0
  264. package/fesm2015/accordion.mjs.map +1 -0
  265. package/fesm2015/bidi.mjs +194 -0
  266. package/fesm2015/bidi.mjs.map +1 -0
  267. package/fesm2015/cdk.mjs +30 -0
  268. package/fesm2015/cdk.mjs.map +1 -0
  269. package/fesm2015/clipboard.mjs +263 -0
  270. package/fesm2015/clipboard.mjs.map +1 -0
  271. package/fesm2015/coercion.mjs +132 -0
  272. package/fesm2015/coercion.mjs.map +1 -0
  273. package/fesm2015/collections.mjs +519 -0
  274. package/fesm2015/collections.mjs.map +1 -0
  275. package/fesm2015/dialog.mjs +1050 -0
  276. package/fesm2015/dialog.mjs.map +1 -0
  277. package/fesm2015/drag-drop.mjs +3812 -0
  278. package/fesm2015/drag-drop.mjs.map +1 -0
  279. package/fesm2015/keycodes.mjs +167 -0
  280. package/fesm2015/keycodes.mjs.map +1 -0
  281. package/fesm2015/layout.mjs +337 -0
  282. package/fesm2015/layout.mjs.map +1 -0
  283. package/fesm2015/listbox.mjs +1200 -0
  284. package/fesm2015/listbox.mjs.map +1 -0
  285. package/fesm2015/menu.mjs +2719 -0
  286. package/fesm2015/menu.mjs.map +1 -0
  287. package/fesm2015/observers.mjs +326 -0
  288. package/fesm2015/observers.mjs.map +1 -0
  289. package/fesm2015/overlay.mjs +3137 -0
  290. package/fesm2015/overlay.mjs.map +1 -0
  291. package/fesm2015/platform.mjs +385 -0
  292. package/fesm2015/platform.mjs.map +1 -0
  293. package/fesm2015/portal.mjs +691 -0
  294. package/fesm2015/portal.mjs.map +1 -0
  295. package/fesm2015/scrolling.mjs +1558 -0
  296. package/fesm2015/scrolling.mjs.map +1 -0
  297. package/fesm2015/stepper.mjs +989 -0
  298. package/fesm2015/stepper.mjs.map +1 -0
  299. package/fesm2015/table.mjs +2356 -0
  300. package/fesm2015/table.mjs.map +1 -0
  301. package/fesm2015/testing.mjs +833 -0
  302. package/fesm2015/testing.mjs.map +1 -0
  303. package/fesm2015/text-field.mjs +461 -0
  304. package/fesm2015/text-field.mjs.map +1 -0
  305. package/fesm2015/tree.mjs +1303 -0
  306. package/fesm2015/tree.mjs.map +1 -0
  307. package/fesm2020/a11y.mjs +2476 -0
  308. package/fesm2020/a11y.mjs.map +1 -0
  309. package/fesm2020/accordion.mjs +414 -0
  310. package/fesm2020/accordion.mjs.map +1 -0
  311. package/fesm2020/bidi.mjs +192 -0
  312. package/fesm2020/bidi.mjs.map +1 -0
  313. package/fesm2020/cdk.mjs +30 -0
  314. package/fesm2020/cdk.mjs.map +1 -0
  315. package/fesm2020/clipboard.mjs +259 -0
  316. package/fesm2020/clipboard.mjs.map +1 -0
  317. package/fesm2020/coercion.mjs +132 -0
  318. package/fesm2020/coercion.mjs.map +1 -0
  319. package/fesm2020/collections.mjs +535 -0
  320. package/fesm2020/collections.mjs.map +1 -0
  321. package/fesm2020/dialog.mjs +787 -0
  322. package/fesm2020/dialog.mjs.map +1 -0
  323. package/fesm2020/drag-drop.mjs +3808 -0
  324. package/fesm2020/drag-drop.mjs.map +1 -0
  325. package/fesm2020/keycodes.mjs +167 -0
  326. package/fesm2020/keycodes.mjs.map +1 -0
  327. package/fesm2020/layout.mjs +337 -0
  328. package/fesm2020/layout.mjs.map +1 -0
  329. package/fesm2020/listbox.mjs +1164 -0
  330. package/fesm2020/listbox.mjs.map +1 -0
  331. package/fesm2020/menu.mjs +2615 -0
  332. package/fesm2020/menu.mjs.map +1 -0
  333. package/fesm2020/observers.mjs +325 -0
  334. package/fesm2020/observers.mjs.map +1 -0
  335. package/fesm2020/overlay.mjs +3145 -0
  336. package/fesm2020/overlay.mjs.map +1 -0
  337. package/fesm2020/platform.mjs +383 -0
  338. package/fesm2020/platform.mjs.map +1 -0
  339. package/fesm2020/portal.mjs +689 -0
  340. package/fesm2020/portal.mjs.map +1 -0
  341. package/fesm2020/scrolling.mjs +1591 -0
  342. package/fesm2020/scrolling.mjs.map +1 -0
  343. package/fesm2020/stepper.mjs +985 -0
  344. package/fesm2020/stepper.mjs.map +1 -0
  345. package/fesm2020/table.mjs +2348 -0
  346. package/fesm2020/table.mjs.map +1 -0
  347. package/fesm2020/testing.mjs +797 -0
  348. package/fesm2020/testing.mjs.map +1 -0
  349. package/fesm2020/text-field.mjs +459 -0
  350. package/fesm2020/text-field.mjs.map +1 -0
  351. package/fesm2020/tree.mjs +1305 -0
  352. package/fesm2020/tree.mjs.map +1 -0
  353. package/index.d.ts +6 -0
  354. package/keycodes/index.d.ts +249 -0
  355. package/layout/index.d.ts +90 -0
  356. package/listbox/index.d.ts +419 -0
  357. package/menu/index.d.ts +1013 -0
  358. package/observers/index.d.ts +109 -0
  359. package/overlay/_index-deprecated.scss +13 -0
  360. package/overlay/_index.import.scss +13 -0
  361. package/overlay/_index.scss +152 -0
  362. package/overlay/index.d.ts +1343 -0
  363. package/overlay-prebuilt.css +1 -0
  364. package/package.json +232 -0
  365. package/platform/index.d.ts +106 -0
  366. package/portal/index.d.ts +328 -0
  367. package/scrolling/index.d.ts +849 -0
  368. package/stepper/index.d.ts +419 -0
  369. package/table/index.d.ts +1483 -0
  370. package/text-field/_index.import.scss +2 -0
  371. package/text-field/_index.scss +89 -0
  372. package/text-field/index.d.ts +203 -0
  373. package/text-field-prebuilt.css +1 -0
  374. package/tree/index.d.ts +593 -0
@@ -0,0 +1 @@
1
+ .cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
package/package.json ADDED
@@ -0,0 +1,232 @@
1
+ {
2
+ "name": "@kato-lee/cdk",
3
+ "version": "14.2.7",
4
+ "description": "Angular Material Component Development Kit",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/angular/components.git"
8
+ },
9
+ "keywords": [
10
+ "angular",
11
+ "cdk",
12
+ "component",
13
+ "development",
14
+ "kit"
15
+ ],
16
+ "license": "MIT",
17
+ "bugs": {
18
+ "url": "https://github.com/angular/components/issues"
19
+ },
20
+ "homepage": "https://github.com/angular/components#readme",
21
+ "exports": {
22
+ ".": {
23
+ "sass": "./_index.scss",
24
+ "types": "./index.d.ts",
25
+ "esm2020": "./esm2020/index.mjs",
26
+ "es2020": "./fesm2020/cdk.mjs",
27
+ "es2015": "./fesm2015/cdk.mjs",
28
+ "node": "./fesm2015/cdk.mjs",
29
+ "default": "./fesm2020/cdk.mjs"
30
+ },
31
+ "./a11y-prebuilt.css": {
32
+ "style": "./a11y-prebuilt.css"
33
+ },
34
+ "./a11y-prebuilt": {
35
+ "style": "./a11y-prebuilt.css"
36
+ },
37
+ "./overlay-prebuilt.css": {
38
+ "style": "./overlay-prebuilt.css"
39
+ },
40
+ "./overlay-prebuilt": {
41
+ "style": "./overlay-prebuilt.css"
42
+ },
43
+ "./text-field-prebuilt.css": {
44
+ "style": "./text-field-prebuilt.css"
45
+ },
46
+ "./text-field-prebuilt": {
47
+ "style": "./text-field-prebuilt.css"
48
+ },
49
+ "./schematics": {
50
+ "default": "./schematics/index.js"
51
+ },
52
+ "./package.json": {
53
+ "default": "./package.json"
54
+ },
55
+ "./a11y": {
56
+ "types": "./a11y/index.d.ts",
57
+ "esm2020": "./esm2020/a11y/a11y_public_index.mjs",
58
+ "es2020": "./fesm2020/a11y.mjs",
59
+ "es2015": "./fesm2015/a11y.mjs",
60
+ "node": "./fesm2015/a11y.mjs",
61
+ "default": "./fesm2020/a11y.mjs"
62
+ },
63
+ "./accordion": {
64
+ "types": "./accordion/index.d.ts",
65
+ "esm2020": "./esm2020/accordion/accordion_public_index.mjs",
66
+ "es2020": "./fesm2020/accordion.mjs",
67
+ "es2015": "./fesm2015/accordion.mjs",
68
+ "node": "./fesm2015/accordion.mjs",
69
+ "default": "./fesm2020/accordion.mjs"
70
+ },
71
+ "./bidi": {
72
+ "types": "./bidi/index.d.ts",
73
+ "esm2020": "./esm2020/bidi/bidi_public_index.mjs",
74
+ "es2020": "./fesm2020/bidi.mjs",
75
+ "es2015": "./fesm2015/bidi.mjs",
76
+ "node": "./fesm2015/bidi.mjs",
77
+ "default": "./fesm2020/bidi.mjs"
78
+ },
79
+ "./clipboard": {
80
+ "types": "./clipboard/index.d.ts",
81
+ "esm2020": "./esm2020/clipboard/clipboard_public_index.mjs",
82
+ "es2020": "./fesm2020/clipboard.mjs",
83
+ "es2015": "./fesm2015/clipboard.mjs",
84
+ "node": "./fesm2015/clipboard.mjs",
85
+ "default": "./fesm2020/clipboard.mjs"
86
+ },
87
+ "./coercion": {
88
+ "types": "./coercion/index.d.ts",
89
+ "esm2020": "./esm2020/coercion/index.mjs",
90
+ "es2020": "./fesm2020/coercion.mjs",
91
+ "es2015": "./fesm2015/coercion.mjs",
92
+ "node": "./fesm2015/coercion.mjs",
93
+ "default": "./fesm2020/coercion.mjs"
94
+ },
95
+ "./collections": {
96
+ "types": "./collections/index.d.ts",
97
+ "esm2020": "./esm2020/collections/collections_public_index.mjs",
98
+ "es2020": "./fesm2020/collections.mjs",
99
+ "es2015": "./fesm2015/collections.mjs",
100
+ "node": "./fesm2015/collections.mjs",
101
+ "default": "./fesm2020/collections.mjs"
102
+ },
103
+ "./dialog": {
104
+ "types": "./dialog/index.d.ts",
105
+ "esm2020": "./esm2020/dialog/dialog_public_index.mjs",
106
+ "es2020": "./fesm2020/dialog.mjs",
107
+ "es2015": "./fesm2015/dialog.mjs",
108
+ "node": "./fesm2015/dialog.mjs",
109
+ "default": "./fesm2020/dialog.mjs"
110
+ },
111
+ "./drag-drop": {
112
+ "types": "./drag-drop/index.d.ts",
113
+ "esm2020": "./esm2020/drag-drop/drag-drop_public_index.mjs",
114
+ "es2020": "./fesm2020/drag-drop.mjs",
115
+ "es2015": "./fesm2015/drag-drop.mjs",
116
+ "node": "./fesm2015/drag-drop.mjs",
117
+ "default": "./fesm2020/drag-drop.mjs"
118
+ },
119
+ "./keycodes": {
120
+ "types": "./keycodes/index.d.ts",
121
+ "esm2020": "./esm2020/keycodes/keycodes_public_index.mjs",
122
+ "es2020": "./fesm2020/keycodes.mjs",
123
+ "es2015": "./fesm2015/keycodes.mjs",
124
+ "node": "./fesm2015/keycodes.mjs",
125
+ "default": "./fesm2020/keycodes.mjs"
126
+ },
127
+ "./layout": {
128
+ "types": "./layout/index.d.ts",
129
+ "esm2020": "./esm2020/layout/layout_public_index.mjs",
130
+ "es2020": "./fesm2020/layout.mjs",
131
+ "es2015": "./fesm2015/layout.mjs",
132
+ "node": "./fesm2015/layout.mjs",
133
+ "default": "./fesm2020/layout.mjs"
134
+ },
135
+ "./listbox": {
136
+ "types": "./listbox/index.d.ts",
137
+ "esm2020": "./esm2020/listbox/listbox_public_index.mjs",
138
+ "es2020": "./fesm2020/listbox.mjs",
139
+ "es2015": "./fesm2015/listbox.mjs",
140
+ "node": "./fesm2015/listbox.mjs",
141
+ "default": "./fesm2020/listbox.mjs"
142
+ },
143
+ "./menu": {
144
+ "types": "./menu/index.d.ts",
145
+ "esm2020": "./esm2020/menu/menu_public_index.mjs",
146
+ "es2020": "./fesm2020/menu.mjs",
147
+ "es2015": "./fesm2015/menu.mjs",
148
+ "node": "./fesm2015/menu.mjs",
149
+ "default": "./fesm2020/menu.mjs"
150
+ },
151
+ "./observers": {
152
+ "types": "./observers/index.d.ts",
153
+ "esm2020": "./esm2020/observers/observers_public_index.mjs",
154
+ "es2020": "./fesm2020/observers.mjs",
155
+ "es2015": "./fesm2015/observers.mjs",
156
+ "node": "./fesm2015/observers.mjs",
157
+ "default": "./fesm2020/observers.mjs"
158
+ },
159
+ "./overlay": {
160
+ "types": "./overlay/index.d.ts",
161
+ "esm2020": "./esm2020/overlay/overlay_public_index.mjs",
162
+ "es2020": "./fesm2020/overlay.mjs",
163
+ "es2015": "./fesm2015/overlay.mjs",
164
+ "node": "./fesm2015/overlay.mjs",
165
+ "default": "./fesm2020/overlay.mjs"
166
+ },
167
+ "./platform": {
168
+ "types": "./platform/index.d.ts",
169
+ "esm2020": "./esm2020/platform/platform_public_index.mjs",
170
+ "es2020": "./fesm2020/platform.mjs",
171
+ "es2015": "./fesm2015/platform.mjs",
172
+ "node": "./fesm2015/platform.mjs",
173
+ "default": "./fesm2020/platform.mjs"
174
+ },
175
+ "./portal": {
176
+ "types": "./portal/index.d.ts",
177
+ "esm2020": "./esm2020/portal/portal_public_index.mjs",
178
+ "es2020": "./fesm2020/portal.mjs",
179
+ "es2015": "./fesm2015/portal.mjs",
180
+ "node": "./fesm2015/portal.mjs",
181
+ "default": "./fesm2020/portal.mjs"
182
+ },
183
+ "./scrolling": {
184
+ "types": "./scrolling/index.d.ts",
185
+ "esm2020": "./esm2020/scrolling/scrolling_public_index.mjs",
186
+ "es2020": "./fesm2020/scrolling.mjs",
187
+ "es2015": "./fesm2015/scrolling.mjs",
188
+ "node": "./fesm2015/scrolling.mjs",
189
+ "default": "./fesm2020/scrolling.mjs"
190
+ },
191
+ "./stepper": {
192
+ "types": "./stepper/index.d.ts",
193
+ "esm2020": "./esm2020/stepper/stepper_public_index.mjs",
194
+ "es2020": "./fesm2020/stepper.mjs",
195
+ "es2015": "./fesm2015/stepper.mjs",
196
+ "node": "./fesm2015/stepper.mjs",
197
+ "default": "./fesm2020/stepper.mjs"
198
+ },
199
+ "./table": {
200
+ "types": "./table/index.d.ts",
201
+ "esm2020": "./esm2020/table/table_public_index.mjs",
202
+ "es2020": "./fesm2020/table.mjs",
203
+ "es2015": "./fesm2015/table.mjs",
204
+ "node": "./fesm2015/table.mjs",
205
+ "default": "./fesm2020/table.mjs"
206
+ },
207
+ "./text-field": {
208
+ "types": "./text-field/index.d.ts",
209
+ "esm2020": "./esm2020/text-field/text-field_public_index.mjs",
210
+ "es2020": "./fesm2020/text-field.mjs",
211
+ "es2015": "./fesm2015/text-field.mjs",
212
+ "node": "./fesm2015/text-field.mjs",
213
+ "default": "./fesm2020/text-field.mjs"
214
+ },
215
+ "./tree": {
216
+ "types": "./tree/index.d.ts",
217
+ "esm2020": "./esm2020/tree/tree_public_index.mjs",
218
+ "es2020": "./fesm2020/tree.mjs",
219
+ "es2015": "./fesm2015/tree.mjs",
220
+ "node": "./fesm2015/tree.mjs",
221
+ "default": "./fesm2020/tree.mjs"
222
+ }
223
+ },
224
+ "sideEffects": false,
225
+ "fesm2020": "./fesm2020/cdk.mjs",
226
+ "fesm2015": "./fesm2015/cdk.mjs",
227
+ "esm2020": "./esm2020/index.mjs",
228
+ "typings": "./index.d.ts",
229
+ "module": "./fesm2015/cdk.mjs",
230
+ "es2020": "./fesm2020/cdk.mjs",
231
+ "type": "module"
232
+ }
@@ -0,0 +1,106 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ /** Gets the target of an event while accounting for Shadow DOM. */
4
+ export declare function _getEventTarget<T extends EventTarget>(event: Event): T | null;
5
+
6
+ /**
7
+ * Gets the currently-focused element on the page while
8
+ * also piercing through Shadow DOM boundaries.
9
+ */
10
+ export declare function _getFocusedElementPierceShadowDom(): HTMLElement | null;
11
+
12
+ /**
13
+ * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
14
+ * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
15
+ */
16
+ export declare function getRtlScrollAxisType(): RtlScrollAxisType;
17
+
18
+ /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */
19
+ export declare function _getShadowRoot(element: HTMLElement): ShadowRoot | null;
20
+
21
+
22
+ /** @returns The input types supported by this browser. */
23
+ export declare function getSupportedInputTypes(): Set<string>;
24
+
25
+
26
+ /** Gets whether the code is currently running in a test environment. */
27
+ export declare function _isTestEnvironment(): boolean;
28
+
29
+ /**
30
+ * Normalizes an `AddEventListener` object to something that can be passed
31
+ * to `addEventListener` on any browser, no matter whether it supports the
32
+ * `options` parameter.
33
+ * @param options Object to be normalized.
34
+ */
35
+ export declare function normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
36
+
37
+ /**
38
+ * Service to detect the current platform by comparing the userAgent strings and
39
+ * checking browser-specific global properties.
40
+ */
41
+ export declare class Platform {
42
+ private _platformId;
43
+ /** Whether the Angular application is being rendered in the browser. */
44
+ isBrowser: boolean;
45
+ /** Whether the current browser is Microsoft Edge. */
46
+ EDGE: boolean;
47
+ /** Whether the current rendering engine is Microsoft Trident. */
48
+ TRIDENT: boolean;
49
+ /** Whether the current rendering engine is Blink. */
50
+ BLINK: boolean;
51
+ /** Whether the current rendering engine is WebKit. */
52
+ WEBKIT: boolean;
53
+ /** Whether the current platform is Apple iOS. */
54
+ IOS: boolean;
55
+ /** Whether the current browser is Firefox. */
56
+ FIREFOX: boolean;
57
+ /** Whether the current platform is Android. */
58
+ ANDROID: boolean;
59
+ /** Whether the current browser is Safari. */
60
+ SAFARI: boolean;
61
+ constructor(_platformId: Object);
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
63
+ static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
64
+ }
65
+
66
+ export declare class PlatformModule {
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformModule, never>;
68
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformModule, never, never, never>;
69
+ static ɵinj: i0.ɵɵInjectorDeclaration<PlatformModule>;
70
+ }
71
+
72
+
73
+ /** The possible ways the browser may handle the horizontal scroll axis in RTL languages. */
74
+ export declare const enum RtlScrollAxisType {
75
+ /**
76
+ * scrollLeft is 0 when scrolled all the way left and (scrollWidth - clientWidth) when scrolled
77
+ * all the way right.
78
+ */
79
+ NORMAL = 0,
80
+ /**
81
+ * scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
82
+ * all the way right.
83
+ */
84
+ NEGATED = 1,
85
+ /**
86
+ * scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
87
+ * all the way right.
88
+ */
89
+ INVERTED = 2
90
+ }
91
+
92
+
93
+ /**
94
+ * Checks whether the user's browser supports passive event listeners.
95
+ * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
96
+ */
97
+ export declare function supportsPassiveEventListeners(): boolean;
98
+
99
+ /** Check whether the browser supports scroll behaviors. */
100
+ export declare function supportsScrollBehavior(): boolean;
101
+
102
+
103
+ /** Checks whether the user's browser support Shadow DOM. */
104
+ export declare function _supportsShadowDom(): boolean;
105
+
106
+ export { }
@@ -0,0 +1,328 @@
1
+ import { ApplicationRef } from '@angular/core';
2
+ import { ComponentFactoryResolver } from '@angular/core';
3
+ import { ComponentRef } from '@angular/core';
4
+ import { ElementRef } from '@angular/core';
5
+ import { EmbeddedViewRef } from '@angular/core';
6
+ import { EventEmitter } from '@angular/core';
7
+ import * as i0 from '@angular/core';
8
+ import { Injector } from '@angular/core';
9
+ import { OnDestroy } from '@angular/core';
10
+ import { OnInit } from '@angular/core';
11
+ import { TemplateRef } from '@angular/core';
12
+ import { ViewContainerRef } from '@angular/core';
13
+
14
+ /**
15
+ * @deprecated Use `BasePortalOutlet` instead.
16
+ * @breaking-change 9.0.0
17
+ */
18
+ export declare abstract class BasePortalHost extends BasePortalOutlet {
19
+ }
20
+
21
+ /**
22
+ * Partial implementation of PortalOutlet that handles attaching
23
+ * ComponentPortal and TemplatePortal.
24
+ */
25
+ export declare abstract class BasePortalOutlet implements PortalOutlet {
26
+ /** The portal currently attached to the host. */
27
+ protected _attachedPortal: Portal<any> | null;
28
+ /** A function that will permanently dispose this host. */
29
+ private _disposeFn;
30
+ /** Whether this host has already been permanently disposed. */
31
+ private _isDisposed;
32
+ /** Whether this host has an attached portal. */
33
+ hasAttached(): boolean;
34
+ attach<T>(portal: ComponentPortal<T>): ComponentRef<T>;
35
+ attach<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
36
+ attach(portal: any): any;
37
+ abstract attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
38
+ abstract attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
39
+ readonly attachDomPortal: null | ((portal: DomPortal) => any);
40
+ /** Detaches a previously attached portal. */
41
+ detach(): void;
42
+ /** Permanently dispose of this portal host. */
43
+ dispose(): void;
44
+ /** @docs-private */
45
+ setDisposeFn(fn: () => void): void;
46
+ private _invokeDisposeFn;
47
+ }
48
+
49
+ /**
50
+ * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
51
+ * the directive instance itself can be attached to a host, enabling declarative use of portals.
52
+ */
53
+ export declare class CdkPortal extends TemplatePortal {
54
+ constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortal, never>;
56
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortal, "[cdkPortal]", ["cdkPortal"], {}, {}, never, never, false>;
57
+ }
58
+
59
+ /**
60
+ * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
61
+ * directly attached to it, enabling declarative use.
62
+ *
63
+ * Usage:
64
+ * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
65
+ */
66
+ export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
67
+ private _componentFactoryResolver;
68
+ private _viewContainerRef;
69
+ private _document;
70
+ /** Whether the portal component is initialized. */
71
+ private _isInitialized;
72
+ /** Reference to the currently-attached component/view ref. */
73
+ private _attachedRef;
74
+ constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef,
75
+ /**
76
+ * @deprecated `_document` parameter to be made required.
77
+ * @breaking-change 9.0.0
78
+ */
79
+ _document?: any);
80
+ /** Portal associated with the Portal outlet. */
81
+ get portal(): Portal<any> | null;
82
+ set portal(portal: Portal<any> | null | undefined | '');
83
+ /** Emits when a portal is attached to the outlet. */
84
+ readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
85
+ /** Component or view reference that is attached to the portal. */
86
+ get attachedRef(): CdkPortalOutletAttachedRef;
87
+ ngOnInit(): void;
88
+ ngOnDestroy(): void;
89
+ /**
90
+ * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
91
+ *
92
+ * @param portal Portal to be attached to the portal outlet.
93
+ * @returns Reference to the created component.
94
+ */
95
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
96
+ /**
97
+ * Attach the given TemplatePortal to this PortalHost as an embedded View.
98
+ * @param portal Portal to be attached.
99
+ * @returns Reference to the created embedded view.
100
+ */
101
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
102
+ /**
103
+ * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
104
+ * @param portal Portal to be attached.
105
+ * @deprecated To be turned into a method.
106
+ * @breaking-change 10.0.0
107
+ */
108
+ attachDomPortal: (portal: DomPortal) => void;
109
+ /** Gets the root node of the portal outlet. */
110
+ private _getRootNode;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<CdkPortalOutlet, never>;
112
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CdkPortalOutlet, "[cdkPortalOutlet]", ["cdkPortalOutlet"], { "portal": "cdkPortalOutlet"; }, { "attached": "attached"; }, never, never, false>;
113
+ }
114
+
115
+ /**
116
+ * Possible attached references to the CdkPortalOutlet.
117
+ */
118
+ export declare type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
119
+
120
+ /**
121
+ * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
122
+ */
123
+ export declare class ComponentPortal<T> extends Portal<ComponentRef<T>> {
124
+ /** The type of the component that will be instantiated for attachment. */
125
+ component: ComponentType<T>;
126
+ /**
127
+ * [Optional] Where the attached component should live in Angular's *logical* component tree.
128
+ * This is different from where the component *renders*, which is determined by the PortalOutlet.
129
+ * The origin is necessary when the host is outside of the Angular application context.
130
+ */
131
+ viewContainerRef?: ViewContainerRef | null;
132
+ /** [Optional] Injector used for the instantiation of the component. */
133
+ injector?: Injector | null;
134
+ /**
135
+ * Alternate `ComponentFactoryResolver` to use when resolving the associated component.
136
+ * Defaults to using the resolver from the outlet that the portal is attached to.
137
+ */
138
+ componentFactoryResolver?: ComponentFactoryResolver | null;
139
+ constructor(component: ComponentType<T>, viewContainerRef?: ViewContainerRef | null, injector?: Injector | null, componentFactoryResolver?: ComponentFactoryResolver | null);
140
+ }
141
+
142
+ /** Interface that can be used to generically type a class. */
143
+ export declare interface ComponentType<T> {
144
+ new (...args: any[]): T;
145
+ }
146
+
147
+ /**
148
+ * A `DomPortal` is a portal whose DOM element will be taken from its current position
149
+ * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
150
+ * will be restored to its original position.
151
+ */
152
+ export declare class DomPortal<T = HTMLElement> extends Portal<T> {
153
+ /** DOM node hosting the portal's content. */
154
+ readonly element: T;
155
+ constructor(element: T | ElementRef<T>);
156
+ }
157
+
158
+ /**
159
+ * @deprecated Use `DomPortalOutlet` instead.
160
+ * @breaking-change 9.0.0
161
+ */
162
+ export declare class DomPortalHost extends DomPortalOutlet {
163
+ }
164
+
165
+ /**
166
+ * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
167
+ * application context.
168
+ */
169
+ export declare class DomPortalOutlet extends BasePortalOutlet {
170
+ /** Element into which the content is projected. */
171
+ outletElement: Element;
172
+ private _componentFactoryResolver?;
173
+ private _appRef?;
174
+ private _defaultInjector?;
175
+ private _document;
176
+ /**
177
+ * @param outletElement Element into which the content is projected.
178
+ * @param _componentFactoryResolver Used to resolve the component factory.
179
+ * Only required when attaching component portals.
180
+ * @param _appRef Reference to the application. Only used in component portals when there
181
+ * is no `ViewContainerRef` available.
182
+ * @param _defaultInjector Injector to use as a fallback when the portal being attached doesn't
183
+ * have one. Only used for component portals.
184
+ * @param _document Reference to the document. Used when attaching a DOM portal. Will eventually
185
+ * become a required parameter.
186
+ */
187
+ constructor(
188
+ /** Element into which the content is projected. */
189
+ outletElement: Element, _componentFactoryResolver?: ComponentFactoryResolver | undefined, _appRef?: ApplicationRef | undefined, _defaultInjector?: Injector | undefined,
190
+ /**
191
+ * @deprecated `_document` Parameter to be made required.
192
+ * @breaking-change 10.0.0
193
+ */
194
+ _document?: any);
195
+ /**
196
+ * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
197
+ * @param portal Portal to be attached
198
+ * @returns Reference to the created component.
199
+ */
200
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
201
+ /**
202
+ * Attaches a template portal to the DOM as an embedded view.
203
+ * @param portal Portal to be attached.
204
+ * @returns Reference to the created embedded view.
205
+ */
206
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
207
+ /**
208
+ * Attaches a DOM portal by transferring its content into the outlet.
209
+ * @param portal Portal to be attached.
210
+ * @deprecated To be turned into a method.
211
+ * @breaking-change 10.0.0
212
+ */
213
+ attachDomPortal: (portal: DomPortal) => void;
214
+ /**
215
+ * Clears out a portal from the DOM.
216
+ */
217
+ dispose(): void;
218
+ /** Gets the root HTMLElement for an instantiated component. */
219
+ private _getComponentRootNode;
220
+ }
221
+
222
+ /**
223
+ * A `Portal` is something that you want to render somewhere else.
224
+ * It can be attach to / detached from a `PortalOutlet`.
225
+ */
226
+ export declare abstract class Portal<T> {
227
+ private _attachedHost;
228
+ /** Attach this portal to a host. */
229
+ attach(host: PortalOutlet): T;
230
+ /** Detach this portal from its host */
231
+ detach(): void;
232
+ /** Whether this portal is attached to a host. */
233
+ get isAttached(): boolean;
234
+ /**
235
+ * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
236
+ * the PortalOutlet when it is performing an `attach()` or `detach()`.
237
+ */
238
+ setAttachedHost(host: PortalOutlet | null): void;
239
+ }
240
+
241
+ /**
242
+ * @deprecated Use `PortalOutlet` instead.
243
+ * @breaking-change 9.0.0
244
+ */
245
+ export declare type PortalHost = PortalOutlet;
246
+
247
+ /**
248
+ * @deprecated Use `CdkPortalOutlet` instead.
249
+ * @breaking-change 9.0.0
250
+ */
251
+ export declare class PortalHostDirective extends CdkPortalOutlet {
252
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalHostDirective, never>;
253
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalHostDirective, "[cdkPortalHost], [portalHost]", ["cdkPortalHost"], { "portal": "cdkPortalHost"; }, {}, never, never, false>;
254
+ }
255
+
256
+ /**
257
+ * Custom injector to be used when providing custom
258
+ * injection tokens to components inside a portal.
259
+ * @docs-private
260
+ * @deprecated Use `Injector.create` instead.
261
+ * @breaking-change 11.0.0
262
+ */
263
+ export declare class PortalInjector implements Injector {
264
+ private _parentInjector;
265
+ private _customTokens;
266
+ constructor(_parentInjector: Injector, _customTokens: WeakMap<any, any>);
267
+ get(token: any, notFoundValue?: any): any;
268
+ }
269
+
270
+ export declare class PortalModule {
271
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalModule, never>;
272
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PortalModule, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective], never, [typeof CdkPortal, typeof CdkPortalOutlet, typeof TemplatePortalDirective, typeof PortalHostDirective]>;
273
+ static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
274
+ }
275
+
276
+ /** A `PortalOutlet` is an space that can contain a single `Portal`. */
277
+ export declare interface PortalOutlet {
278
+ /** Attaches a portal to this outlet. */
279
+ attach(portal: Portal<any>): any;
280
+ /** Detaches the currently attached portal from this outlet. */
281
+ detach(): any;
282
+ /** Performs cleanup before the outlet is destroyed. */
283
+ dispose(): void;
284
+ /** Whether there is currently a portal attached to this outlet. */
285
+ hasAttached(): boolean;
286
+ }
287
+
288
+ /**
289
+ * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
290
+ */
291
+ export declare class TemplatePortal<C = any> extends Portal<EmbeddedViewRef<C>> {
292
+ /** The embedded template that will be used to instantiate an embedded View in the host. */
293
+ templateRef: TemplateRef<C>;
294
+ /** Reference to the ViewContainer into which the template will be stamped out. */
295
+ viewContainerRef: ViewContainerRef;
296
+ /** Contextual data to be passed in to the embedded view. */
297
+ context?: C | undefined;
298
+ /** The injector to use for the embedded view. */
299
+ injector?: Injector | undefined;
300
+ constructor(
301
+ /** The embedded template that will be used to instantiate an embedded View in the host. */
302
+ templateRef: TemplateRef<C>,
303
+ /** Reference to the ViewContainer into which the template will be stamped out. */
304
+ viewContainerRef: ViewContainerRef,
305
+ /** Contextual data to be passed in to the embedded view. */
306
+ context?: C | undefined,
307
+ /** The injector to use for the embedded view. */
308
+ injector?: Injector | undefined);
309
+ get origin(): ElementRef;
310
+ /**
311
+ * Attach the portal to the provided `PortalOutlet`.
312
+ * When a context is provided it will override the `context` property of the `TemplatePortal`
313
+ * instance.
314
+ */
315
+ attach(host: PortalOutlet, context?: C | undefined): EmbeddedViewRef<C>;
316
+ detach(): void;
317
+ }
318
+
319
+ /**
320
+ * @deprecated Use `CdkPortal` instead.
321
+ * @breaking-change 9.0.0
322
+ */
323
+ export declare class TemplatePortalDirective extends CdkPortal {
324
+ static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePortalDirective, never>;
325
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TemplatePortalDirective, "[cdk-portal], [portal]", ["cdkPortal"], {}, {}, never, never, false>;
326
+ }
327
+
328
+ export { }