@angular/cdk 14.0.0-next.9 → 14.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/a11y/_index.scss +11 -0
  2. package/a11y/index.d.ts +1119 -5
  3. package/a11y-prebuilt.css +1 -1
  4. package/accordion/index.d.ts +108 -6
  5. package/bidi/index.d.ts +77 -5
  6. package/clipboard/index.d.ts +112 -5
  7. package/coercion/index.d.ts +64 -5
  8. package/collections/index.d.ts +348 -5
  9. package/dialog/index.d.ts +410 -0
  10. package/drag-drop/index.d.ts +1456 -5
  11. package/esm2020/a11y/a11y-module.mjs +5 -5
  12. package/esm2020/a11y/aria-describer/aria-describer.mjs +4 -4
  13. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +10 -10
  14. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
  15. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +4 -4
  16. package/esm2020/a11y/focus-trap/focus-trap.mjs +7 -7
  17. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +10 -10
  18. package/esm2020/a11y/input-modality/input-modality-detector.mjs +4 -4
  19. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
  20. package/esm2020/a11y/live-announcer/live-announcer.mjs +7 -7
  21. package/esm2020/accordion/accordion-item.mjs +4 -4
  22. package/esm2020/accordion/accordion-module.mjs +5 -5
  23. package/esm2020/accordion/accordion.mjs +4 -4
  24. package/esm2020/bidi/bidi-module.mjs +5 -5
  25. package/esm2020/bidi/dir.mjs +4 -4
  26. package/esm2020/bidi/directionality.mjs +4 -4
  27. package/esm2020/clipboard/clipboard-module.mjs +5 -5
  28. package/esm2020/clipboard/clipboard.mjs +4 -4
  29. package/esm2020/clipboard/copy-to-clipboard.mjs +4 -4
  30. package/esm2020/collections/dispose-view-repeater-strategy.mjs +4 -4
  31. package/esm2020/collections/recycle-view-repeater-strategy.mjs +4 -4
  32. package/esm2020/collections/unique-selection-dispatcher.mjs +4 -4
  33. package/esm2020/dialog/dialog-config.mjs +63 -0
  34. package/esm2020/dialog/dialog-container.mjs +278 -0
  35. package/esm2020/dialog/dialog-injectors.mjs +26 -0
  36. package/esm2020/dialog/dialog-module.mjs +42 -0
  37. package/esm2020/dialog/dialog-ref.mjs +76 -0
  38. package/esm2020/dialog/dialog.mjs +298 -0
  39. package/esm2020/dialog/dialog_public_index.mjs +5 -0
  40. package/esm2020/dialog/index.mjs +9 -0
  41. package/esm2020/dialog/public-api.mjs +14 -0
  42. package/esm2020/drag-drop/directives/drag-handle.mjs +4 -4
  43. package/esm2020/drag-drop/directives/drag-placeholder.mjs +4 -4
  44. package/esm2020/drag-drop/directives/drag-preview.mjs +4 -4
  45. package/esm2020/drag-drop/directives/drag.mjs +11 -4
  46. package/esm2020/drag-drop/directives/drop-list-group.mjs +4 -4
  47. package/esm2020/drag-drop/directives/drop-list.mjs +4 -4
  48. package/esm2020/drag-drop/drag-drop-module.mjs +5 -5
  49. package/esm2020/drag-drop/drag-drop-registry.mjs +4 -4
  50. package/esm2020/drag-drop/drag-drop.mjs +4 -4
  51. package/esm2020/drag-drop/drop-list-ref.mjs +23 -23
  52. package/esm2020/layout/breakpoints-observer.mjs +4 -4
  53. package/esm2020/layout/layout-module.mjs +5 -5
  54. package/esm2020/layout/media-matcher.mjs +4 -4
  55. package/esm2020/menu/context-menu-trigger.mjs +229 -0
  56. package/esm2020/menu/index.mjs +9 -0
  57. package/esm2020/menu/menu-aim.mjs +204 -0
  58. package/esm2020/menu/menu-bar.mjs +159 -0
  59. package/esm2020/menu/menu-base.mjs +203 -0
  60. package/esm2020/menu/menu-errors.mjs +22 -0
  61. package/esm2020/menu/menu-group.mjs +30 -0
  62. package/esm2020/menu/menu-interface.mjs +11 -0
  63. package/esm2020/menu/menu-item-checkbox.mjs +48 -0
  64. package/esm2020/menu/menu-item-radio.mjs +114 -0
  65. package/esm2020/menu/menu-item-selectable.mjs +42 -0
  66. package/esm2020/menu/menu-item.mjs +289 -0
  67. package/esm2020/menu/menu-module.mjs +62 -0
  68. package/esm2020/menu/menu-stack.mjs +156 -0
  69. package/esm2020/menu/menu-trigger-base.mjs +114 -0
  70. package/esm2020/menu/menu-trigger.mjs +304 -0
  71. package/esm2020/menu/menu.mjs +168 -0
  72. package/esm2020/menu/menu_public_index.mjs +5 -0
  73. package/esm2020/menu/pointer-focus-tracker.mjs +51 -0
  74. package/esm2020/menu/public-api.mjs +24 -0
  75. package/esm2020/observers/observe-content.mjs +14 -14
  76. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
  77. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
  78. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
  79. package/esm2020/overlay/fullscreen-overlay-container.mjs +4 -4
  80. package/esm2020/overlay/overlay-container.mjs +4 -4
  81. package/esm2020/overlay/overlay-directives.mjs +7 -7
  82. package/esm2020/overlay/overlay-module.mjs +5 -5
  83. package/esm2020/overlay/overlay-ref.mjs +14 -5
  84. package/esm2020/overlay/overlay.mjs +14 -8
  85. package/esm2020/overlay/position/overlay-position-builder.mjs +4 -4
  86. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +4 -4
  87. package/esm2020/platform/features/scrolling.mjs +4 -4
  88. package/esm2020/platform/platform-module.mjs +5 -5
  89. package/esm2020/platform/platform.mjs +4 -4
  90. package/esm2020/portal/dom-portal-outlet.mjs +6 -2
  91. package/esm2020/portal/portal-directives.mjs +17 -17
  92. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +4 -4
  93. package/esm2020/scrolling/scroll-dispatcher.mjs +4 -4
  94. package/esm2020/scrolling/scrollable.mjs +9 -9
  95. package/esm2020/scrolling/scrolling-module.mjs +9 -9
  96. package/esm2020/scrolling/viewport-ruler.mjs +4 -4
  97. package/esm2020/scrolling/virtual-for-of.mjs +4 -4
  98. package/esm2020/scrolling/virtual-scroll-viewport.mjs +4 -4
  99. package/esm2020/stepper/step-header.mjs +4 -4
  100. package/esm2020/stepper/step-label.mjs +4 -4
  101. package/esm2020/stepper/stepper-button.mjs +7 -7
  102. package/esm2020/stepper/stepper-module.mjs +5 -5
  103. package/esm2020/stepper/stepper.mjs +7 -7
  104. package/esm2020/table/cell.mjs +22 -22
  105. package/esm2020/table/coalesced-style-scheduler.mjs +4 -4
  106. package/esm2020/table/row.mjs +28 -28
  107. package/esm2020/table/table-module.mjs +5 -5
  108. package/esm2020/table/table.mjs +21 -21
  109. package/esm2020/table/text-column.mjs +5 -5
  110. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +1 -1
  111. package/esm2020/testing/test-element.mjs +1 -1
  112. package/esm2020/text-field/autofill.mjs +7 -7
  113. package/esm2020/text-field/autosize.mjs +4 -4
  114. package/esm2020/text-field/text-field-module.mjs +5 -5
  115. package/esm2020/tree/nested-node.mjs +4 -4
  116. package/esm2020/tree/node.mjs +4 -4
  117. package/esm2020/tree/outlet.mjs +4 -4
  118. package/esm2020/tree/padding.mjs +4 -4
  119. package/esm2020/tree/toggle.mjs +4 -4
  120. package/esm2020/tree/tree-module.mjs +5 -5
  121. package/esm2020/tree/tree.mjs +7 -7
  122. package/esm2020/version.mjs +1 -1
  123. package/fesm2015/a11y.mjs +49 -49
  124. package/fesm2015/a11y.mjs.map +1 -1
  125. package/fesm2015/accordion.mjs +10 -10
  126. package/fesm2015/accordion.mjs.map +1 -1
  127. package/fesm2015/bidi.mjs +10 -10
  128. package/fesm2015/bidi.mjs.map +1 -1
  129. package/fesm2015/cdk.mjs +1 -1
  130. package/fesm2015/cdk.mjs.map +1 -1
  131. package/fesm2015/clipboard.mjs +10 -10
  132. package/fesm2015/clipboard.mjs.map +1 -1
  133. package/fesm2015/collections.mjs +9 -9
  134. package/fesm2015/collections.mjs.map +1 -1
  135. package/fesm2015/dialog.mjs +780 -0
  136. package/fesm2015/dialog.mjs.map +1 -0
  137. package/fesm2015/drag-drop.mjs +57 -50
  138. package/fesm2015/drag-drop.mjs.map +1 -1
  139. package/fesm2015/layout.mjs +10 -10
  140. package/fesm2015/layout.mjs.map +1 -1
  141. package/fesm2015/menu.mjs +2135 -0
  142. package/fesm2015/menu.mjs.map +1 -0
  143. package/fesm2015/observers.mjs +13 -13
  144. package/fesm2015/observers.mjs.map +1 -1
  145. package/fesm2015/overlay.mjs +57 -42
  146. package/fesm2015/overlay.mjs.map +1 -1
  147. package/fesm2015/platform.mjs +10 -10
  148. package/fesm2015/platform.mjs.map +1 -1
  149. package/fesm2015/portal.mjs +21 -17
  150. package/fesm2015/portal.mjs.map +1 -1
  151. package/fesm2015/scrolling.mjs +31 -31
  152. package/fesm2015/scrolling.mjs.map +1 -1
  153. package/fesm2015/stepper.mjs +22 -22
  154. package/fesm2015/stepper.mjs.map +1 -1
  155. package/fesm2015/table.mjs +79 -79
  156. package/fesm2015/table.mjs.map +1 -1
  157. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -1
  158. package/fesm2015/testing.mjs.map +1 -1
  159. package/fesm2015/text-field.mjs +13 -13
  160. package/fesm2015/text-field.mjs.map +1 -1
  161. package/fesm2015/tree.mjs +25 -25
  162. package/fesm2015/tree.mjs.map +1 -1
  163. package/fesm2020/a11y.mjs +49 -49
  164. package/fesm2020/a11y.mjs.map +1 -1
  165. package/fesm2020/accordion.mjs +10 -10
  166. package/fesm2020/accordion.mjs.map +1 -1
  167. package/fesm2020/bidi.mjs +10 -10
  168. package/fesm2020/bidi.mjs.map +1 -1
  169. package/fesm2020/cdk.mjs +1 -1
  170. package/fesm2020/cdk.mjs.map +1 -1
  171. package/fesm2020/clipboard.mjs +10 -10
  172. package/fesm2020/clipboard.mjs.map +1 -1
  173. package/fesm2020/collections.mjs +9 -9
  174. package/fesm2020/collections.mjs.map +1 -1
  175. package/fesm2020/dialog.mjs +784 -0
  176. package/fesm2020/dialog.mjs.map +1 -0
  177. package/fesm2020/drag-drop.mjs +57 -50
  178. package/fesm2020/drag-drop.mjs.map +1 -1
  179. package/fesm2020/layout.mjs +10 -10
  180. package/fesm2020/layout.mjs.map +1 -1
  181. package/fesm2020/menu.mjs +2108 -0
  182. package/fesm2020/menu.mjs.map +1 -0
  183. package/fesm2020/observers.mjs +13 -13
  184. package/fesm2020/observers.mjs.map +1 -1
  185. package/fesm2020/overlay.mjs +57 -42
  186. package/fesm2020/overlay.mjs.map +1 -1
  187. package/fesm2020/platform.mjs +10 -10
  188. package/fesm2020/platform.mjs.map +1 -1
  189. package/fesm2020/portal.mjs +21 -17
  190. package/fesm2020/portal.mjs.map +1 -1
  191. package/fesm2020/scrolling.mjs +31 -31
  192. package/fesm2020/scrolling.mjs.map +1 -1
  193. package/fesm2020/stepper.mjs +22 -22
  194. package/fesm2020/stepper.mjs.map +1 -1
  195. package/fesm2020/table.mjs +79 -79
  196. package/fesm2020/table.mjs.map +1 -1
  197. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -1
  198. package/fesm2020/testing.mjs.map +1 -1
  199. package/fesm2020/text-field.mjs +13 -13
  200. package/fesm2020/text-field.mjs.map +1 -1
  201. package/fesm2020/tree.mjs +25 -25
  202. package/fesm2020/tree.mjs.map +1 -1
  203. package/index.d.ts +6 -8
  204. package/keycodes/index.d.ts +247 -6
  205. package/layout/index.d.ts +91 -8
  206. package/menu/index.d.ts +992 -0
  207. package/observers/index.d.ts +89 -6
  208. package/overlay/_index.scss +4 -0
  209. package/overlay/index.d.ts +1202 -5
  210. package/overlay-prebuilt.css +1 -1
  211. package/package.json +34 -18
  212. package/platform/index.d.ts +104 -6
  213. package/portal/index.d.ts +325 -5
  214. package/schematics/ng-add/index.js +1 -1
  215. package/schematics/ng-add/index.mjs +1 -1
  216. package/schematics/utils/build-component.js +2 -2
  217. package/schematics/utils/build-component.mjs +2 -2
  218. package/schematics/utils/schematic-options.js +2 -2
  219. package/schematics/utils/schematic-options.mjs +2 -2
  220. package/scrolling/index.d.ts +647 -6
  221. package/stepper/index.d.ts +328 -6
  222. package/table/index.d.ts +1172 -5
  223. package/testing/index.d.ts +726 -5
  224. package/testing/selenium-webdriver/index.d.ts +134 -8
  225. package/testing/testbed/index.d.ts +161 -8
  226. package/text-field/index.d.ts +175 -6
  227. package/tree/index.d.ts +498 -6
  228. package/a11y/a11y-module.d.ts +0 -12
  229. package/a11y/a11y_public_index.d.ts +0 -4
  230. package/a11y/aria-describer/aria-describer.d.ts +0 -101
  231. package/a11y/aria-describer/aria-reference.d.ts +0 -22
  232. package/a11y/fake-event-detection.d.ts +0 -11
  233. package/a11y/focus-monitor/focus-monitor.d.ts +0 -209
  234. package/a11y/focus-trap/configurable-focus-trap-config.d.ts +0 -16
  235. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +0 -30
  236. package/a11y/focus-trap/configurable-focus-trap.d.ts +0 -33
  237. package/a11y/focus-trap/event-listener-inert-strategy.d.ts +0 -29
  238. package/a11y/focus-trap/focus-trap-inert-strategy.d.ts +0 -21
  239. package/a11y/focus-trap/focus-trap-manager.d.ts +0 -26
  240. package/a11y/focus-trap/focus-trap.d.ts +0 -163
  241. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +0 -48
  242. package/a11y/input-modality/input-modality-detector.d.ts +0 -99
  243. package/a11y/interactivity-checker/interactivity-checker.d.ts +0 -60
  244. package/a11y/key-manager/activedescendant-key-manager.d.ts +0 -35
  245. package/a11y/key-manager/focus-key-manager.d.ts +0 -37
  246. package/a11y/key-manager/list-key-manager.d.ts +0 -152
  247. package/a11y/live-announcer/live-announcer-tokens.d.ts +0 -22
  248. package/a11y/live-announcer/live-announcer.d.ts +0 -85
  249. package/a11y/package.json +0 -9
  250. package/a11y/public-api.d.ts +0 -25
  251. package/accordion/accordion-item.d.ts +0 -59
  252. package/accordion/accordion-module.d.ts +0 -8
  253. package/accordion/accordion.d.ts +0 -40
  254. package/accordion/accordion_public_index.d.ts +0 -4
  255. package/accordion/package.json +0 -9
  256. package/accordion/public-api.d.ts +0 -10
  257. package/bidi/bidi-module.d.ts +0 -7
  258. package/bidi/bidi_public_index.d.ts +0 -4
  259. package/bidi/dir-document-token.d.ts +0 -26
  260. package/bidi/dir.d.ts +0 -36
  261. package/bidi/directionality.d.ts +0 -26
  262. package/bidi/package.json +0 -9
  263. package/bidi/public-api.d.ts +0 -11
  264. package/clipboard/clipboard-module.d.ts +0 -7
  265. package/clipboard/clipboard.d.ts +0 -28
  266. package/clipboard/clipboard_public_index.d.ts +0 -4
  267. package/clipboard/copy-to-clipboard.d.ts +0 -49
  268. package/clipboard/package.json +0 -9
  269. package/clipboard/pending-copy.d.ts +0 -29
  270. package/clipboard/public-api.d.ts +0 -11
  271. package/coercion/array.d.ts +0 -10
  272. package/coercion/boolean-property.d.ts +0 -14
  273. package/coercion/css-pixel-value.d.ts +0 -9
  274. package/coercion/element.d.ts +0 -13
  275. package/coercion/number-property.d.ts +0 -20
  276. package/coercion/package.json +0 -9
  277. package/coercion/public-api.d.ts +0 -13
  278. package/coercion/string-array.d.ts +0 -25
  279. package/collections/array-data-source.d.ts +0 -16
  280. package/collections/collection-viewer.d.ts +0 -24
  281. package/collections/collections_public_index.d.ts +0 -4
  282. package/collections/data-source.d.ts +0 -30
  283. package/collections/dispose-view-repeater-strategy.d.ts +0 -22
  284. package/collections/package.json +0 -9
  285. package/collections/public-api.d.ts +0 -16
  286. package/collections/recycle-view-repeater-strategy.d.ts +0 -54
  287. package/collections/selection-model.d.ts +0 -95
  288. package/collections/tree-adapter.d.ts +0 -26
  289. package/collections/unique-selection-dispatcher.d.ts +0 -36
  290. package/collections/view-repeater.d.ts +0 -92
  291. package/drag-drop/client-rect.d.ts +0 -38
  292. package/drag-drop/clone-node.d.ts +0 -9
  293. package/drag-drop/directives/assertions.d.ts +0 -13
  294. package/drag-drop/directives/config.d.ts +0 -43
  295. package/drag-drop/directives/drag-handle.d.ts +0 -33
  296. package/drag-drop/directives/drag-placeholder.d.ts +0 -27
  297. package/drag-drop/directives/drag-preview.d.ts +0 -32
  298. package/drag-drop/directives/drag.d.ts +0 -160
  299. package/drag-drop/directives/drop-list-group.d.ts +0 -33
  300. package/drag-drop/directives/drop-list.d.ts +0 -123
  301. package/drag-drop/drag-drop-module.d.ts +0 -13
  302. package/drag-drop/drag-drop-registry.d.ts +0 -89
  303. package/drag-drop/drag-drop.d.ts +0 -36
  304. package/drag-drop/drag-drop_public_index.d.ts +0 -4
  305. package/drag-drop/drag-events.d.ts +0 -124
  306. package/drag-drop/drag-parent.d.ts +0 -15
  307. package/drag-drop/drag-ref.d.ts +0 -448
  308. package/drag-drop/drag-styling.d.ts +0 -42
  309. package/drag-drop/drag-utils.d.ts +0 -32
  310. package/drag-drop/drop-list-ref.d.ts +0 -312
  311. package/drag-drop/package.json +0 -9
  312. package/drag-drop/parent-position-tracker.d.ts +0 -39
  313. package/drag-drop/public-api.d.ts +0 -22
  314. package/drag-drop/transition-duration.d.ts +0 -9
  315. package/keycodes/keycodes.d.ts +0 -126
  316. package/keycodes/keycodes_public_index.d.ts +0 -4
  317. package/keycodes/modifiers.d.ts +0 -14
  318. package/keycodes/package.json +0 -9
  319. package/keycodes/public-api.d.ts +0 -9
  320. package/layout/breakpoints-observer.d.ts +0 -45
  321. package/layout/breakpoints.d.ts +0 -23
  322. package/layout/layout-module.d.ts +0 -6
  323. package/layout/layout_public_index.d.ts +0 -4
  324. package/layout/media-matcher.d.ts +0 -18
  325. package/layout/package.json +0 -9
  326. package/layout/public-api.d.ts +0 -11
  327. package/observers/observe-content.d.ts +0 -87
  328. package/observers/observers_public_index.d.ts +0 -4
  329. package/observers/package.json +0 -9
  330. package/observers/public-api.d.ts +0 -8
  331. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +0 -24
  332. package/overlay/dispatchers/index.d.ts +0 -9
  333. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +0 -24
  334. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +0 -32
  335. package/overlay/fullscreen-overlay-container.d.ts +0 -35
  336. package/overlay/overlay-config.d.ts +0 -47
  337. package/overlay/overlay-container.d.ts +0 -25
  338. package/overlay/overlay-directives.d.ts +0 -148
  339. package/overlay/overlay-module.d.ts +0 -10
  340. package/overlay/overlay-ref.d.ts +0 -144
  341. package/overlay/overlay-reference.d.ts +0 -38
  342. package/overlay/overlay.d.ts +0 -75
  343. package/overlay/overlay_public_index.d.ts +0 -4
  344. package/overlay/package.json +0 -9
  345. package/overlay/position/connected-position.d.ts +0 -102
  346. package/overlay/position/flexible-connected-position-strategy.d.ts +0 -282
  347. package/overlay/position/global-position-strategy.d.ts +0 -99
  348. package/overlay/position/overlay-position-builder.d.ts +0 -32
  349. package/overlay/position/position-strategy.d.ts +0 -19
  350. package/overlay/position/scroll-clip.d.ts +0 -26
  351. package/overlay/public-api.d.ts +0 -23
  352. package/overlay/scroll/block-scroll-strategy.d.ts +0 -27
  353. package/overlay/scroll/close-scroll-strategy.d.ts +0 -40
  354. package/overlay/scroll/index.d.ts +0 -14
  355. package/overlay/scroll/noop-scroll-strategy.d.ts +0 -17
  356. package/overlay/scroll/reposition-scroll-strategy.d.ts +0 -39
  357. package/overlay/scroll/scroll-strategy-options.d.ts +0 -44
  358. package/overlay/scroll/scroll-strategy.d.ts +0 -25
  359. package/platform/features/input-types.d.ts +0 -9
  360. package/platform/features/passive-listeners.d.ts +0 -19
  361. package/platform/features/scrolling.d.ts +0 -32
  362. package/platform/features/shadow-dom.d.ts +0 -18
  363. package/platform/features/test-environment.d.ts +0 -9
  364. package/platform/package.json +0 -9
  365. package/platform/platform-module.d.ts +0 -6
  366. package/platform/platform.d.ts +0 -29
  367. package/platform/platform_public_index.d.ts +0 -4
  368. package/platform/public-api.d.ts +0 -14
  369. package/portal/dom-portal-outlet.d.ts +0 -71
  370. package/portal/package.json +0 -9
  371. package/portal/portal-directives.d.ts +0 -99
  372. package/portal/portal-errors.d.ts +0 -37
  373. package/portal/portal-injector.d.ts +0 -21
  374. package/portal/portal.d.ts +0 -140
  375. package/portal/portal_public_index.d.ts +0 -4
  376. package/portal/public-api.d.ts +0 -11
  377. package/public-api.d.ts +0 -8
  378. package/scrolling/fixed-size-virtual-scroll.d.ts +0 -97
  379. package/scrolling/package.json +0 -9
  380. package/scrolling/public-api.d.ts +0 -16
  381. package/scrolling/scroll-dispatcher.d.ts +0 -71
  382. package/scrolling/scrollable.d.ts +0 -85
  383. package/scrolling/scrolling-module.d.ts +0 -19
  384. package/scrolling/scrolling_public_index.d.ts +0 -4
  385. package/scrolling/viewport-ruler.d.ts +0 -63
  386. package/scrolling/virtual-for-of.d.ts +0 -117
  387. package/scrolling/virtual-scroll-repeater.d.ts +0 -16
  388. package/scrolling/virtual-scroll-strategy.d.ts +0 -38
  389. package/scrolling/virtual-scroll-viewport.d.ts +0 -147
  390. package/stepper/package.json +0 -9
  391. package/stepper/public-api.d.ts +0 -12
  392. package/stepper/step-header.d.ts +0 -18
  393. package/stepper/step-label.d.ts +0 -15
  394. package/stepper/stepper-button.d.ts +0 -20
  395. package/stepper/stepper-module.d.ts +0 -11
  396. package/stepper/stepper.d.ts +0 -233
  397. package/stepper/stepper_public_index.d.ts +0 -4
  398. package/table/can-stick.d.ts +0 -34
  399. package/table/cell.d.ts +0 -126
  400. package/table/coalesced-style-scheduler.d.ts +0 -46
  401. package/table/package.json +0 -9
  402. package/table/public-api.d.ts +0 -19
  403. package/table/row.d.ts +0 -175
  404. package/table/sticky-position-listener.d.ts +0 -31
  405. package/table/sticky-styler.d.ts +0 -126
  406. package/table/table-errors.d.ts +0 -48
  407. package/table/table-module.d.ts +0 -11
  408. package/table/table.d.ts +0 -494
  409. package/table/table_public_index.d.ts +0 -4
  410. package/table/text-column.d.ts +0 -73
  411. package/table/tokens.d.ts +0 -25
  412. package/testing/change-detection.d.ts +0 -83
  413. package/testing/component-harness.d.ts +0 -426
  414. package/testing/element-dimensions.d.ts +0 -16
  415. package/testing/harness-environment.d.ts +0 -62
  416. package/testing/package.json +0 -9
  417. package/testing/public-api.d.ts +0 -14
  418. package/testing/selenium-webdriver/package.json +0 -9
  419. package/testing/selenium-webdriver/public-api.d.ts +0 -9
  420. package/testing/selenium-webdriver/selenium-web-driver-element.d.ts +0 -91
  421. package/testing/selenium-webdriver/selenium-web-driver-harness-environment.d.ts +0 -66
  422. package/testing/selenium-webdriver/selenium-webdriver-keys.d.ts +0 -46
  423. package/testing/test-element-errors.d.ts +0 -12
  424. package/testing/test-element.d.ts +0 -135
  425. package/testing/testbed/fake-events/dispatch-events.d.ts +0 -39
  426. package/testing/testbed/fake-events/element-focus.d.ts +0 -18
  427. package/testing/testbed/fake-events/event-objects.d.ts +0 -39
  428. package/testing/testbed/fake-events/index.d.ts +0 -11
  429. package/testing/testbed/fake-events/type-in-element.d.ts +0 -41
  430. package/testing/testbed/package.json +0 -9
  431. package/testing/testbed/proxy-zone-types.d.ts +0 -29
  432. package/testing/testbed/public-api.d.ts +0 -9
  433. package/testing/testbed/task-state-zone-interceptor.d.ts +0 -37
  434. package/testing/testbed/testbed-harness-environment.d.ts +0 -64
  435. package/testing/testbed/unit-test-element.d.ts +0 -98
  436. package/testing/testbed/zone-types.d.ts +0 -22
  437. package/testing/text-filtering.d.ts +0 -13
  438. package/text-field/autofill.d.ts +0 -66
  439. package/text-field/autosize.d.ts +0 -95
  440. package/text-field/package.json +0 -9
  441. package/text-field/public-api.d.ts +0 -10
  442. package/text-field/text-field-module.d.ts +0 -8
  443. package/text-field/text-field_public_index.d.ts +0 -4
  444. package/tree/control/base-tree-control.d.ts +0 -54
  445. package/tree/control/flat-tree-control.d.ts +0 -34
  446. package/tree/control/nested-tree-control.d.ts +0 -31
  447. package/tree/control/tree-control.d.ts +0 -49
  448. package/tree/nested-node.d.ts +0 -38
  449. package/tree/node.d.ts +0 -40
  450. package/tree/outlet.d.ts +0 -26
  451. package/tree/package.json +0 -9
  452. package/tree/padding.d.ts +0 -60
  453. package/tree/public-api.d.ts +0 -19
  454. package/tree/toggle.d.ts +0 -25
  455. package/tree/tree-errors.d.ts +0 -32
  456. package/tree/tree-module.d.ts +0 -12
  457. package/tree/tree.d.ts +0 -128
  458. package/tree/tree_public_index.d.ts +0 -4
  459. package/version.d.ts +0 -10
@@ -1,38 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Portal } from '@angular/cdk/portal';
9
- import { Direction, Directionality } from '@angular/cdk/bidi';
10
- import { Observable, Subject } from 'rxjs';
11
- /**
12
- * Basic interface for an overlay. Used to avoid circular type references between
13
- * `OverlayRef`, `PositionStrategy` and `ScrollStrategy`, and `OverlayConfig`.
14
- * @docs-private
15
- */
16
- export interface OverlayReference {
17
- attach: (portal: Portal<any>) => any;
18
- detach: () => any;
19
- dispose: () => void;
20
- overlayElement: HTMLElement;
21
- hostElement: HTMLElement;
22
- backdropElement: HTMLElement | null;
23
- getConfig: () => any;
24
- hasAttached: () => boolean;
25
- updateSize: (config: any) => void;
26
- updatePosition: () => void;
27
- getDirection: () => Direction;
28
- setDirection: (dir: Direction | Directionality) => void;
29
- backdropClick: () => Observable<MouseEvent>;
30
- attachments: () => Observable<void>;
31
- detachments: () => Observable<void>;
32
- keydownEvents: () => Observable<KeyboardEvent>;
33
- outsidePointerEvents: () => Observable<MouseEvent>;
34
- addPanelClass: (classes: string | string[]) => void;
35
- removePanelClass: (classes: string | string[]) => void;
36
- readonly _outsidePointerEvents: Subject<MouseEvent>;
37
- readonly _keydownEvents: Subject<KeyboardEvent>;
38
- }
@@ -1,75 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { Location } from '@angular/common';
10
- import { ComponentFactoryResolver, Injector, NgZone } from '@angular/core';
11
- import { OverlayKeyboardDispatcher } from './dispatchers/overlay-keyboard-dispatcher';
12
- import { OverlayOutsideClickDispatcher } from './dispatchers/overlay-outside-click-dispatcher';
13
- import { OverlayConfig } from './overlay-config';
14
- import { OverlayContainer } from './overlay-container';
15
- import { OverlayRef } from './overlay-ref';
16
- import { OverlayPositionBuilder } from './position/overlay-position-builder';
17
- import { ScrollStrategyOptions } from './scroll/index';
18
- import * as i0 from "@angular/core";
19
- /**
20
- * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
21
- * used as a low-level building block for other components. Dialogs, tooltips, menus,
22
- * selects, etc. can all be built using overlays. The service should primarily be used by authors
23
- * of re-usable components rather than developers building end-user applications.
24
- *
25
- * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
26
- */
27
- export declare class Overlay {
28
- /** Scrolling strategies that can be used when creating an overlay. */
29
- scrollStrategies: ScrollStrategyOptions;
30
- private _overlayContainer;
31
- private _componentFactoryResolver;
32
- private _positionBuilder;
33
- private _keyboardDispatcher;
34
- private _injector;
35
- private _ngZone;
36
- private _document;
37
- private _directionality;
38
- private _location;
39
- private _outsideClickDispatcher;
40
- private _appRef;
41
- constructor(
42
- /** Scrolling strategies that can be used when creating an overlay. */
43
- scrollStrategies: ScrollStrategyOptions, _overlayContainer: OverlayContainer, _componentFactoryResolver: ComponentFactoryResolver, _positionBuilder: OverlayPositionBuilder, _keyboardDispatcher: OverlayKeyboardDispatcher, _injector: Injector, _ngZone: NgZone, _document: any, _directionality: Directionality, _location: Location, _outsideClickDispatcher: OverlayOutsideClickDispatcher);
44
- /**
45
- * Creates an overlay.
46
- * @param config Configuration applied to the overlay.
47
- * @returns Reference to the created overlay.
48
- */
49
- create(config?: OverlayConfig): OverlayRef;
50
- /**
51
- * Gets a position builder that can be used, via fluent API,
52
- * to construct and configure a position strategy.
53
- * @returns An overlay position builder.
54
- */
55
- position(): OverlayPositionBuilder;
56
- /**
57
- * Creates the DOM element for an overlay and appends it to the overlay container.
58
- * @returns Newly-created pane element
59
- */
60
- private _createPaneElement;
61
- /**
62
- * Creates the host element that wraps around an overlay
63
- * and can be used for advanced positioning.
64
- * @returns Newly-create host element.
65
- */
66
- private _createHostElement;
67
- /**
68
- * Create a DomPortalOutlet into which the overlay content can be loaded.
69
- * @param pane The DOM element to turn into a portal outlet.
70
- * @returns A portal outlet for the given DOM element.
71
- */
72
- private _createPortalOutlet;
73
- static ɵfac: i0.ɵɵFactoryDeclaration<Overlay, never>;
74
- static ɵprov: i0.ɵɵInjectableDeclaration<Overlay>;
75
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
@@ -1,9 +0,0 @@
1
- {
2
- "name": "@angular/cdk/overlay",
3
- "fesm2020": "../fesm2020/overlay.mjs",
4
- "fesm2015": "../fesm2015/overlay.mjs",
5
- "esm2020": "../esm2020/overlay/overlay_public_index.mjs",
6
- "typings": "./overlay_public_index.d.ts",
7
- "module": "../fesm2015/overlay.mjs",
8
- "es2020": "../fesm2020/overlay.mjs"
9
- }
@@ -1,102 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /** Horizontal dimension of a connection point on the perimeter of the origin or overlay element. */
9
- export declare type HorizontalConnectionPos = 'start' | 'center' | 'end';
10
- /** Vertical dimension of a connection point on the perimeter of the origin or overlay element. */
11
- export declare type VerticalConnectionPos = 'top' | 'center' | 'bottom';
12
- /** A connection point on the origin element. */
13
- export interface OriginConnectionPosition {
14
- originX: HorizontalConnectionPos;
15
- originY: VerticalConnectionPos;
16
- }
17
- /** A connection point on the overlay element. */
18
- export interface OverlayConnectionPosition {
19
- overlayX: HorizontalConnectionPos;
20
- overlayY: VerticalConnectionPos;
21
- }
22
- /** The points of the origin element and the overlay element to connect. */
23
- export declare class ConnectionPositionPair {
24
- /** Offset along the X axis. */
25
- offsetX?: number | undefined;
26
- /** Offset along the Y axis. */
27
- offsetY?: number | undefined;
28
- /** Class(es) to be applied to the panel while this position is active. */
29
- panelClass?: string | string[] | undefined;
30
- /** X-axis attachment point for connected overlay origin. Can be 'start', 'end', or 'center'. */
31
- originX: HorizontalConnectionPos;
32
- /** Y-axis attachment point for connected overlay origin. Can be 'top', 'bottom', or 'center'. */
33
- originY: VerticalConnectionPos;
34
- /** X-axis attachment point for connected overlay. Can be 'start', 'end', or 'center'. */
35
- overlayX: HorizontalConnectionPos;
36
- /** Y-axis attachment point for connected overlay. Can be 'top', 'bottom', or 'center'. */
37
- overlayY: VerticalConnectionPos;
38
- constructor(origin: OriginConnectionPosition, overlay: OverlayConnectionPosition,
39
- /** Offset along the X axis. */
40
- offsetX?: number | undefined,
41
- /** Offset along the Y axis. */
42
- offsetY?: number | undefined,
43
- /** Class(es) to be applied to the panel while this position is active. */
44
- panelClass?: string | string[] | undefined);
45
- }
46
- /**
47
- * Set of properties regarding the position of the origin and overlay relative to the viewport
48
- * with respect to the containing Scrollable elements.
49
- *
50
- * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the
51
- * bounds of any one of the strategy's Scrollable's bounding client rectangle.
52
- *
53
- * The overlay and origin are outside view if there is no overlap between their bounding client
54
- * rectangle and any one of the strategy's Scrollable's bounding client rectangle.
55
- *
56
- * ----------- -----------
57
- * | outside | | clipped |
58
- * | view | --------------------------
59
- * | | | | | |
60
- * ---------- | ----------- |
61
- * -------------------------- | |
62
- * | | | Scrollable |
63
- * | | | |
64
- * | | --------------------------
65
- * | Scrollable |
66
- * | |
67
- * --------------------------
68
- *
69
- * @docs-private
70
- */
71
- export declare class ScrollingVisibility {
72
- isOriginClipped: boolean;
73
- isOriginOutsideView: boolean;
74
- isOverlayClipped: boolean;
75
- isOverlayOutsideView: boolean;
76
- }
77
- /** The change event emitted by the strategy when a fallback position is used. */
78
- export declare class ConnectedOverlayPositionChange {
79
- /** The position used as a result of this change. */
80
- connectionPair: ConnectionPositionPair;
81
- /** @docs-private */
82
- scrollableViewProperties: ScrollingVisibility;
83
- constructor(
84
- /** The position used as a result of this change. */
85
- connectionPair: ConnectionPositionPair,
86
- /** @docs-private */
87
- scrollableViewProperties: ScrollingVisibility);
88
- }
89
- /**
90
- * Validates whether a vertical position property matches the expected values.
91
- * @param property Name of the property being validated.
92
- * @param value Value of the property being validated.
93
- * @docs-private
94
- */
95
- export declare function validateVerticalPosition(property: string, value: VerticalConnectionPos): void;
96
- /**
97
- * Validates whether a horizontal position property matches the expected values.
98
- * @param property Name of the property being validated.
99
- * @param value Value of the property being validated.
100
- * @docs-private
101
- */
102
- export declare function validateHorizontalPosition(property: string, value: HorizontalConnectionPos): void;
@@ -1,282 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { PositionStrategy } from './position-strategy';
9
- import { ElementRef } from '@angular/core';
10
- import { ViewportRuler, CdkScrollable } from '@angular/cdk/scrolling';
11
- import { ConnectedOverlayPositionChange, ConnectionPositionPair } from './connected-position';
12
- import { Observable } from 'rxjs';
13
- import { OverlayReference } from '../overlay-reference';
14
- import { Platform } from '@angular/cdk/platform';
15
- import { OverlayContainer } from '../overlay-container';
16
- /** Possible values that can be set as the origin of a FlexibleConnectedPositionStrategy. */
17
- export declare type FlexibleConnectedPositionStrategyOrigin = ElementRef | Element | (Point & {
18
- width?: number;
19
- height?: number;
20
- });
21
- /**
22
- * A strategy for positioning overlays. Using this strategy, an overlay is given an
23
- * implicit position relative some origin element. The relative position is defined in terms of
24
- * a point on the origin element that is connected to a point on the overlay element. For example,
25
- * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
26
- * of the overlay.
27
- */
28
- export declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
29
- private _viewportRuler;
30
- private _document;
31
- private _platform;
32
- private _overlayContainer;
33
- /** The overlay to which this strategy is attached. */
34
- private _overlayRef;
35
- /** Whether we're performing the very first positioning of the overlay. */
36
- private _isInitialRender;
37
- /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */
38
- private _lastBoundingBoxSize;
39
- /** Whether the overlay was pushed in a previous positioning. */
40
- private _isPushed;
41
- /** Whether the overlay can be pushed on-screen on the initial open. */
42
- private _canPush;
43
- /** Whether the overlay can grow via flexible width/height after the initial open. */
44
- private _growAfterOpen;
45
- /** Whether the overlay's width and height can be constrained to fit within the viewport. */
46
- private _hasFlexibleDimensions;
47
- /** Whether the overlay position is locked. */
48
- private _positionLocked;
49
- /** Cached origin dimensions */
50
- private _originRect;
51
- /** Cached overlay dimensions */
52
- private _overlayRect;
53
- /** Cached viewport dimensions */
54
- private _viewportRect;
55
- /** Cached container dimensions */
56
- private _containerRect;
57
- /** Amount of space that must be maintained between the overlay and the edge of the viewport. */
58
- private _viewportMargin;
59
- /** The Scrollable containers used to check scrollable view properties on position change. */
60
- private _scrollables;
61
- /** Ordered list of preferred positions, from most to least desirable. */
62
- _preferredPositions: ConnectionPositionPair[];
63
- /** The origin element against which the overlay will be positioned. */
64
- private _origin;
65
- /** The overlay pane element. */
66
- private _pane;
67
- /** Whether the strategy has been disposed of already. */
68
- private _isDisposed;
69
- /**
70
- * Parent element for the overlay panel used to constrain the overlay panel's size to fit
71
- * within the viewport.
72
- */
73
- private _boundingBox;
74
- /** The last position to have been calculated as the best fit position. */
75
- private _lastPosition;
76
- /** Subject that emits whenever the position changes. */
77
- private readonly _positionChanges;
78
- /** Subscription to viewport size changes. */
79
- private _resizeSubscription;
80
- /** Default offset for the overlay along the x axis. */
81
- private _offsetX;
82
- /** Default offset for the overlay along the y axis. */
83
- private _offsetY;
84
- /** Selector to be used when finding the elements on which to set the transform origin. */
85
- private _transformOriginSelector;
86
- /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */
87
- private _appliedPanelClasses;
88
- /** Amount by which the overlay was pushed in each axis during the last time it was positioned. */
89
- private _previousPushAmount;
90
- /** Observable sequence of position changes. */
91
- positionChanges: Observable<ConnectedOverlayPositionChange>;
92
- /** Ordered list of preferred positions, from most to least desirable. */
93
- get positions(): ConnectionPositionPair[];
94
- constructor(connectedTo: FlexibleConnectedPositionStrategyOrigin, _viewportRuler: ViewportRuler, _document: Document, _platform: Platform, _overlayContainer: OverlayContainer);
95
- /** Attaches this position strategy to an overlay. */
96
- attach(overlayRef: OverlayReference): void;
97
- /**
98
- * Updates the position of the overlay element, using whichever preferred position relative
99
- * to the origin best fits on-screen.
100
- *
101
- * The selection of a position goes as follows:
102
- * - If any positions fit completely within the viewport as-is,
103
- * choose the first position that does so.
104
- * - If flexible dimensions are enabled and at least one satifies the given minimum width/height,
105
- * choose the position with the greatest available size modified by the positions' weight.
106
- * - If pushing is enabled, take the position that went off-screen the least and push it
107
- * on-screen.
108
- * - If none of the previous criteria were met, use the position that goes off-screen the least.
109
- * @docs-private
110
- */
111
- apply(): void;
112
- detach(): void;
113
- /** Cleanup after the element gets destroyed. */
114
- dispose(): void;
115
- /**
116
- * This re-aligns the overlay element with the trigger in its last calculated position,
117
- * even if a position higher in the "preferred positions" list would now fit. This
118
- * allows one to re-align the panel without changing the orientation of the panel.
119
- */
120
- reapplyLastPosition(): void;
121
- /**
122
- * Sets the list of Scrollable containers that host the origin element so that
123
- * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every
124
- * Scrollable must be an ancestor element of the strategy's origin element.
125
- */
126
- withScrollableContainers(scrollables: CdkScrollable[]): this;
127
- /**
128
- * Adds new preferred positions.
129
- * @param positions List of positions options for this overlay.
130
- */
131
- withPositions(positions: ConnectedPosition[]): this;
132
- /**
133
- * Sets a minimum distance the overlay may be positioned to the edge of the viewport.
134
- * @param margin Required margin between the overlay and the viewport edge in pixels.
135
- */
136
- withViewportMargin(margin: number): this;
137
- /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */
138
- withFlexibleDimensions(flexibleDimensions?: boolean): this;
139
- /** Sets whether the overlay can grow after the initial open via flexible width/height. */
140
- withGrowAfterOpen(growAfterOpen?: boolean): this;
141
- /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */
142
- withPush(canPush?: boolean): this;
143
- /**
144
- * Sets whether the overlay's position should be locked in after it is positioned
145
- * initially. When an overlay is locked in, it won't attempt to reposition itself
146
- * when the position is re-applied (e.g. when the user scrolls away).
147
- * @param isLocked Whether the overlay should locked in.
148
- */
149
- withLockedPosition(isLocked?: boolean): this;
150
- /**
151
- * Sets the origin, relative to which to position the overlay.
152
- * Using an element origin is useful for building components that need to be positioned
153
- * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be
154
- * used for cases like contextual menus which open relative to the user's pointer.
155
- * @param origin Reference to the new origin.
156
- */
157
- setOrigin(origin: FlexibleConnectedPositionStrategyOrigin): this;
158
- /**
159
- * Sets the default offset for the overlay's connection point on the x-axis.
160
- * @param offset New offset in the X axis.
161
- */
162
- withDefaultOffsetX(offset: number): this;
163
- /**
164
- * Sets the default offset for the overlay's connection point on the y-axis.
165
- * @param offset New offset in the Y axis.
166
- */
167
- withDefaultOffsetY(offset: number): this;
168
- /**
169
- * Configures that the position strategy should set a `transform-origin` on some elements
170
- * inside the overlay, depending on the current position that is being applied. This is
171
- * useful for the cases where the origin of an animation can change depending on the
172
- * alignment of the overlay.
173
- * @param selector CSS selector that will be used to find the target
174
- * elements onto which to set the transform origin.
175
- */
176
- withTransformOriginOn(selector: string): this;
177
- /**
178
- * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.
179
- */
180
- private _getOriginPoint;
181
- /**
182
- * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and
183
- * origin point to which the overlay should be connected.
184
- */
185
- private _getOverlayPoint;
186
- /** Gets how well an overlay at the given point will fit within the viewport. */
187
- private _getOverlayFit;
188
- /**
189
- * Whether the overlay can fit within the viewport when it may resize either its width or height.
190
- * @param fit How well the overlay fits in the viewport at some position.
191
- * @param point The (x, y) coordinates of the overlay at some position.
192
- * @param viewport The geometry of the viewport.
193
- */
194
- private _canFitWithFlexibleDimensions;
195
- /**
196
- * Gets the point at which the overlay can be "pushed" on-screen. If the overlay is larger than
197
- * the viewport, the top-left corner will be pushed on-screen (with overflow occuring on the
198
- * right and bottom).
199
- *
200
- * @param start Starting point from which the overlay is pushed.
201
- * @param rawOverlayRect Dimensions of the overlay.
202
- * @param scrollPosition Current viewport scroll position.
203
- * @returns The point at which to position the overlay after pushing. This is effectively a new
204
- * originPoint.
205
- */
206
- private _pushOverlayOnScreen;
207
- /**
208
- * Applies a computed position to the overlay and emits a position change.
209
- * @param position The position preference
210
- * @param originPoint The point on the origin element where the overlay is connected.
211
- */
212
- private _applyPosition;
213
- /** Sets the transform origin based on the configured selector and the passed-in position. */
214
- private _setTransformOrigin;
215
- /**
216
- * Gets the position and size of the overlay's sizing container.
217
- *
218
- * This method does no measuring and applies no styles so that we can cheaply compute the
219
- * bounds for all positions and choose the best fit based on these results.
220
- */
221
- private _calculateBoundingBoxRect;
222
- /**
223
- * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the
224
- * origin's connection point and stetches to the bounds of the viewport.
225
- *
226
- * @param origin The point on the origin element where the overlay is connected.
227
- * @param position The position preference
228
- */
229
- private _setBoundingBoxStyles;
230
- /** Resets the styles for the bounding box so that a new positioning can be computed. */
231
- private _resetBoundingBoxStyles;
232
- /** Resets the styles for the overlay pane so that a new positioning can be computed. */
233
- private _resetOverlayElementStyles;
234
- /** Sets positioning styles to the overlay element. */
235
- private _setOverlayElementStyles;
236
- /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */
237
- private _getExactOverlayY;
238
- /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */
239
- private _getExactOverlayX;
240
- /**
241
- * Gets the view properties of the trigger and overlay, including whether they are clipped
242
- * or completely outside the view of any of the strategy's scrollables.
243
- */
244
- private _getScrollVisibility;
245
- /** Subtracts the amount that an element is overflowing on an axis from its length. */
246
- private _subtractOverflows;
247
- /** Narrows the given viewport rect by the current _viewportMargin. */
248
- private _getNarrowedViewportRect;
249
- /** Whether the we're dealing with an RTL context */
250
- private _isRtl;
251
- /** Determines whether the overlay uses exact or flexible positioning. */
252
- private _hasExactPosition;
253
- /** Retrieves the offset of a position along the x or y axis. */
254
- private _getOffset;
255
- /** Validates that the current position match the expected values. */
256
- private _validatePositions;
257
- /** Adds a single CSS class or an array of classes on the overlay panel. */
258
- private _addPanelClasses;
259
- /** Clears the classes that the position strategy has applied from the overlay panel. */
260
- private _clearPanelClasses;
261
- /** Returns the ClientRect of the current origin. */
262
- private _getOriginRect;
263
- }
264
- /** A simple (x, y) coordinate. */
265
- interface Point {
266
- x: number;
267
- y: number;
268
- }
269
- /** A connected position as specified by the user. */
270
- export interface ConnectedPosition {
271
- originX: 'start' | 'center' | 'end';
272
- originY: 'top' | 'center' | 'bottom';
273
- overlayX: 'start' | 'center' | 'end';
274
- overlayY: 'top' | 'center' | 'bottom';
275
- weight?: number;
276
- offsetX?: number;
277
- offsetY?: number;
278
- panelClass?: string | string[];
279
- }
280
- export declare const STANDARD_DROPDOWN_BELOW_POSITIONS: ConnectedPosition[];
281
- export declare const STANDARD_DROPDOWN_ADJACENT_POSITIONS: ConnectedPosition[];
282
- export {};
@@ -1,99 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { PositionStrategy } from './position-strategy';
9
- import { OverlayReference } from '../overlay-reference';
10
- /**
11
- * A strategy for positioning overlays. Using this strategy, an overlay is given an
12
- * explicit position relative to the browser's viewport. We use flexbox, instead of
13
- * transforms, in order to avoid issues with subpixel rendering which can cause the
14
- * element to become blurry.
15
- */
16
- export declare class GlobalPositionStrategy implements PositionStrategy {
17
- /** The overlay to which this strategy is attached. */
18
- private _overlayRef;
19
- private _cssPosition;
20
- private _topOffset;
21
- private _bottomOffset;
22
- private _alignItems;
23
- private _xPosition;
24
- private _xOffset;
25
- private _width;
26
- private _height;
27
- private _isDisposed;
28
- attach(overlayRef: OverlayReference): void;
29
- /**
30
- * Sets the top position of the overlay. Clears any previously set vertical position.
31
- * @param value New top offset.
32
- */
33
- top(value?: string): this;
34
- /**
35
- * Sets the left position of the overlay. Clears any previously set horizontal position.
36
- * @param value New left offset.
37
- */
38
- left(value?: string): this;
39
- /**
40
- * Sets the bottom position of the overlay. Clears any previously set vertical position.
41
- * @param value New bottom offset.
42
- */
43
- bottom(value?: string): this;
44
- /**
45
- * Sets the right position of the overlay. Clears any previously set horizontal position.
46
- * @param value New right offset.
47
- */
48
- right(value?: string): this;
49
- /**
50
- * Sets the overlay to the start of the viewport, depending on the overlay direction.
51
- * This will be to the left in LTR layouts and to the right in RTL.
52
- * @param offset Offset from the edge of the screen.
53
- */
54
- start(value?: string): this;
55
- /**
56
- * Sets the overlay to the end of the viewport, depending on the overlay direction.
57
- * This will be to the right in LTR layouts and to the left in RTL.
58
- * @param offset Offset from the edge of the screen.
59
- */
60
- end(value?: string): this;
61
- /**
62
- * Sets the overlay width and clears any previously set width.
63
- * @param value New width for the overlay
64
- * @deprecated Pass the `width` through the `OverlayConfig`.
65
- * @breaking-change 8.0.0
66
- */
67
- width(value?: string): this;
68
- /**
69
- * Sets the overlay height and clears any previously set height.
70
- * @param value New height for the overlay
71
- * @deprecated Pass the `height` through the `OverlayConfig`.
72
- * @breaking-change 8.0.0
73
- */
74
- height(value?: string): this;
75
- /**
76
- * Centers the overlay horizontally with an optional offset.
77
- * Clears any previously set horizontal position.
78
- *
79
- * @param offset Overlay offset from the horizontal center.
80
- */
81
- centerHorizontally(offset?: string): this;
82
- /**
83
- * Centers the overlay vertically with an optional offset.
84
- * Clears any previously set vertical position.
85
- *
86
- * @param offset Overlay offset from the vertical center.
87
- */
88
- centerVertically(offset?: string): this;
89
- /**
90
- * Apply the position to the element.
91
- * @docs-private
92
- */
93
- apply(): void;
94
- /**
95
- * Cleans up the DOM changes from the position strategy.
96
- * @docs-private
97
- */
98
- dispose(): void;
99
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { Platform } from '@angular/cdk/platform';
9
- import { ViewportRuler } from '@angular/cdk/scrolling';
10
- import { OverlayContainer } from '../overlay-container';
11
- import { FlexibleConnectedPositionStrategy, FlexibleConnectedPositionStrategyOrigin } from './flexible-connected-position-strategy';
12
- import { GlobalPositionStrategy } from './global-position-strategy';
13
- import * as i0 from "@angular/core";
14
- /** Builder for overlay position strategy. */
15
- export declare class OverlayPositionBuilder {
16
- private _viewportRuler;
17
- private _document;
18
- private _platform;
19
- private _overlayContainer;
20
- constructor(_viewportRuler: ViewportRuler, _document: any, _platform: Platform, _overlayContainer: OverlayContainer);
21
- /**
22
- * Creates a global position strategy.
23
- */
24
- global(): GlobalPositionStrategy;
25
- /**
26
- * Creates a flexible position strategy.
27
- * @param origin Origin relative to which to position the overlay.
28
- */
29
- flexibleConnectedTo(origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<OverlayPositionBuilder, never>;
31
- static ɵprov: i0.ɵɵInjectableDeclaration<OverlayPositionBuilder>;
32
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { OverlayReference } from '../overlay-reference';
9
- /** Strategy for setting the position on an overlay. */
10
- export interface PositionStrategy {
11
- /** Attaches this position strategy to an overlay. */
12
- attach(overlayRef: OverlayReference): void;
13
- /** Updates the position of the overlay element. */
14
- apply(): void;
15
- /** Called when the overlay is detached. */
16
- detach?(): void;
17
- /** Cleans up any DOM modifications made by the position strategy, if necessary. */
18
- dispose(): void;
19
- }