@angular/cdk 13.0.0-next.7 → 13.0.0-rc.2

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 (855) hide show
  1. package/a11y/a11y-module.d.ts +9 -7
  2. package/a11y/a11y_public_index.d.ts +4 -0
  3. package/a11y/aria-describer/aria-describer.d.ts +3 -7
  4. package/a11y/focus-monitor/focus-monitor.d.ts +5 -0
  5. package/a11y/focus-trap/configurable-focus-trap-factory.d.ts +3 -7
  6. package/a11y/focus-trap/focus-trap-manager.d.ts +3 -7
  7. package/a11y/focus-trap/focus-trap.d.ts +5 -0
  8. package/a11y/high-contrast-mode/high-contrast-mode-detector.d.ts +3 -0
  9. package/a11y/index.d.ts +5 -2
  10. package/a11y/input-modality/input-modality-detector.d.ts +3 -7
  11. package/a11y/interactivity-checker/interactivity-checker.d.ts +3 -0
  12. package/a11y/live-announcer/live-announcer.d.ts +6 -1
  13. package/a11y/package.json +6 -6
  14. package/accordion/accordion-item.d.ts +3 -0
  15. package/accordion/accordion-module.d.ts +6 -7
  16. package/accordion/accordion.d.ts +3 -0
  17. package/accordion/accordion_public_index.d.ts +4 -0
  18. package/accordion/index.d.ts +5 -2
  19. package/accordion/package.json +6 -6
  20. package/bidi/bidi-module.d.ts +5 -7
  21. package/bidi/bidi_public_index.d.ts +4 -0
  22. package/bidi/dir.d.ts +3 -0
  23. package/bidi/directionality.d.ts +3 -0
  24. package/bidi/index.d.ts +5 -2
  25. package/bidi/package.json +6 -6
  26. package/clipboard/clipboard-module.d.ts +5 -7
  27. package/clipboard/clipboard.d.ts +3 -7
  28. package/clipboard/clipboard_public_index.d.ts +4 -0
  29. package/clipboard/copy-to-clipboard.d.ts +3 -0
  30. package/clipboard/index.d.ts +5 -1
  31. package/clipboard/package.json +6 -6
  32. package/coercion/package.json +5 -5
  33. package/collections/collections_public_index.d.ts +4 -0
  34. package/collections/index.d.ts +5 -1
  35. package/collections/package.json +6 -6
  36. package/collections/unique-selection-dispatcher.d.ts +3 -0
  37. package/drag-drop/client-rect.d.ts +8 -1
  38. package/drag-drop/directives/drag-handle.d.ts +3 -0
  39. package/drag-drop/directives/drag-placeholder.d.ts +3 -0
  40. package/drag-drop/directives/drag-preview.d.ts +3 -0
  41. package/drag-drop/directives/drag.d.ts +3 -0
  42. package/drag-drop/directives/drop-list-group.d.ts +3 -0
  43. package/drag-drop/directives/drop-list.d.ts +3 -0
  44. package/drag-drop/drag-drop-module.d.ts +11 -7
  45. package/drag-drop/drag-drop-registry.d.ts +3 -0
  46. package/drag-drop/drag-drop.d.ts +3 -0
  47. package/drag-drop/drag-drop_public_index.d.ts +4 -0
  48. package/drag-drop/index.d.ts +5 -2
  49. package/drag-drop/package.json +6 -6
  50. package/esm2020/a11y/a11y-module.mjs +33 -0
  51. package/esm2020/a11y/a11y_public_index.mjs +5 -0
  52. package/esm2020/a11y/aria-describer/aria-describer.mjs +208 -0
  53. package/{esm2015/a11y/aria-describer/aria-reference.js → esm2020/a11y/aria-describer/aria-reference.mjs} +1 -1
  54. package/esm2020/a11y/fake-event-detection.mjs +29 -0
  55. package/esm2020/a11y/focus-monitor/focus-monitor.mjs +400 -0
  56. package/{esm2015/a11y/focus-trap/configurable-focus-trap-config.js → esm2020/a11y/focus-trap/configurable-focus-trap-config.mjs} +0 -0
  57. package/esm2020/a11y/focus-trap/configurable-focus-trap-factory.mjs +53 -0
  58. package/esm2020/a11y/focus-trap/configurable-focus-trap.mjs +51 -0
  59. package/esm2020/a11y/focus-trap/event-listener-inert-strategy.mjs +61 -0
  60. package/esm2020/a11y/focus-trap/focus-trap-inert-strategy.mjs +11 -0
  61. package/esm2020/a11y/focus-trap/focus-trap-manager.mjs +53 -0
  62. package/esm2020/a11y/focus-trap/focus-trap.mjs +399 -0
  63. package/esm2020/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +95 -0
  64. package/esm2020/a11y/index.mjs +9 -0
  65. package/esm2020/a11y/input-modality/input-modality-detector.mjs +176 -0
  66. package/esm2020/a11y/interactivity-checker/interactivity-checker.mjs +238 -0
  67. package/{esm2015/a11y/key-manager/activedescendant-key-manager.js → esm2020/a11y/key-manager/activedescendant-key-manager.mjs} +1 -1
  68. package/{esm2015/a11y/key-manager/focus-key-manager.js → esm2020/a11y/key-manager/focus-key-manager.mjs} +0 -0
  69. package/esm2020/a11y/key-manager/list-key-manager.mjs +321 -0
  70. package/esm2020/a11y/live-announcer/live-announcer-tokens.mjs +19 -0
  71. package/esm2020/a11y/live-announcer/live-announcer.mjs +170 -0
  72. package/{esm2015/a11y/public-api.js → esm2020/a11y/public-api.mjs} +0 -0
  73. package/esm2020/accordion/accordion-item.mjs +167 -0
  74. package/esm2020/accordion/accordion-module.mjs +24 -0
  75. package/esm2020/accordion/accordion.mjs +70 -0
  76. package/esm2020/accordion/accordion_public_index.mjs +5 -0
  77. package/esm2020/accordion/index.mjs +9 -0
  78. package/{esm2015/accordion/public-api.js → esm2020/accordion/public-api.mjs} +0 -0
  79. package/esm2020/bidi/bidi-module.mjs +23 -0
  80. package/esm2020/bidi/bidi_public_index.mjs +5 -0
  81. package/{esm2015/bidi/dir-document-token.js → esm2020/bidi/dir-document-token.mjs} +1 -1
  82. package/esm2020/bidi/dir.mjs +67 -0
  83. package/esm2020/bidi/directionality.mjs +47 -0
  84. package/esm2020/bidi/index.mjs +9 -0
  85. package/{esm2015/bidi/public-api.js → esm2020/bidi/public-api.mjs} +1 -1
  86. package/esm2020/clipboard/clipboard-module.mjs +23 -0
  87. package/esm2020/clipboard/clipboard.mjs +53 -0
  88. package/esm2020/clipboard/clipboard_public_index.mjs +5 -0
  89. package/esm2020/clipboard/copy-to-clipboard.mjs +99 -0
  90. package/esm2020/clipboard/index.mjs +9 -0
  91. package/esm2020/clipboard/pending-copy.mjs +67 -0
  92. package/{esm2015/clipboard/public-api.js → esm2020/clipboard/public-api.mjs} +0 -0
  93. package/{esm2015/coercion/array.js → esm2020/coercion/array.mjs} +0 -0
  94. package/{esm2015/coercion/boolean-property.js → esm2020/coercion/boolean-property.mjs} +0 -0
  95. package/{esm2015/coercion/css-pixel-value.js → esm2020/coercion/css-pixel-value.mjs} +0 -0
  96. package/{esm2015/coercion/element.js → esm2020/coercion/element.mjs} +0 -0
  97. package/{esm2015/coercion/index.js → esm2020/coercion/index.mjs} +0 -0
  98. package/{esm2015/coercion/number-property.js → esm2020/coercion/number-property.mjs} +0 -0
  99. package/{esm2015/coercion/public-api.js → esm2020/coercion/public-api.mjs} +0 -0
  100. package/{esm2015/coercion/string-array.js → esm2020/coercion/string-array.mjs} +0 -0
  101. package/{esm2015/collections/array-data-source.js → esm2020/collections/array-data-source.mjs} +1 -1
  102. package/esm2020/collections/collection-viewer.mjs +9 -0
  103. package/esm2020/collections/collections_public_index.mjs +5 -0
  104. package/{esm2015/collections/data-source.js → esm2020/collections/data-source.mjs} +0 -0
  105. package/esm2020/collections/dispose-view-repeater-strategy.mjs +47 -0
  106. package/esm2020/collections/index.mjs +9 -0
  107. package/{esm2015/collections/public-api.js → esm2020/collections/public-api.mjs} +0 -0
  108. package/esm2020/collections/recycle-view-repeater-strategy.mjs +128 -0
  109. package/{esm2015/collections/selection-model.js → esm2020/collections/selection-model.mjs} +2 -2
  110. package/esm2020/collections/tree-adapter.mjs +9 -0
  111. package/esm2020/collections/unique-selection-dispatcher.mjs +55 -0
  112. package/esm2020/collections/view-repeater.mjs +14 -0
  113. package/esm2020/drag-drop/client-rect.mjs +64 -0
  114. package/esm2020/drag-drop/clone-node.mjs +65 -0
  115. package/esm2020/drag-drop/directives/assertions.mjs +18 -0
  116. package/{esm2015/drag-drop/directives/config.js → esm2020/drag-drop/directives/config.mjs} +1 -1
  117. package/esm2020/drag-drop/directives/drag-handle.mjs +66 -0
  118. package/esm2020/drag-drop/directives/drag-placeholder.mjs +36 -0
  119. package/esm2020/drag-drop/directives/drag-preview.mjs +47 -0
  120. package/esm2020/drag-drop/directives/drag.mjs +483 -0
  121. package/esm2020/drag-drop/directives/drop-list-group.mjs +53 -0
  122. package/esm2020/drag-drop/directives/drop-list.mjs +344 -0
  123. package/esm2020/drag-drop/drag-drop-module.mjs +57 -0
  124. package/esm2020/drag-drop/drag-drop-registry.mjs +231 -0
  125. package/esm2020/drag-drop/drag-drop.mjs +57 -0
  126. package/esm2020/drag-drop/drag-drop_public_index.mjs +5 -0
  127. package/esm2020/drag-drop/drag-events.mjs +9 -0
  128. package/{esm2015/drag-drop/drag-parent.js → esm2020/drag-drop/drag-parent.mjs} +0 -0
  129. package/esm2020/drag-drop/drag-ref.mjs +1108 -0
  130. package/esm2020/drag-drop/drag-styling.mjs +69 -0
  131. package/esm2020/drag-drop/drag-utils.mjs +60 -0
  132. package/esm2020/drag-drop/drop-list-ref.mjs +830 -0
  133. package/esm2020/drag-drop/index.mjs +9 -0
  134. package/{esm2015/drag-drop/parent-position-tracker.js → esm2020/drag-drop/parent-position-tracker.mjs} +2 -2
  135. package/{esm2015/drag-drop/public-api.js → esm2020/drag-drop/public-api.mjs} +0 -0
  136. package/esm2020/drag-drop/transition-duration.mjs +36 -0
  137. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  138. package/esm2020/keycodes/index.mjs +9 -0
  139. package/{esm2015/keycodes/keycodes.js → esm2020/keycodes/keycodes.mjs} +1 -1
  140. package/esm2020/keycodes/keycodes_public_index.mjs +5 -0
  141. package/{esm2015/keycodes/modifiers.js → esm2020/keycodes/modifiers.mjs} +0 -0
  142. package/{esm2015/keycodes/public-api.js → esm2020/keycodes/public-api.mjs} +0 -0
  143. package/esm2020/layout/breakpoints-observer.mjs +105 -0
  144. package/{esm2015/layout/breakpoints.js → esm2020/layout/breakpoints.mjs} +1 -1
  145. package/esm2020/layout/index.mjs +9 -0
  146. package/esm2020/layout/layout-module.mjs +19 -0
  147. package/esm2020/layout/layout_public_index.mjs +5 -0
  148. package/esm2020/layout/media-matcher.mjs +85 -0
  149. package/{esm2015/layout/public-api.js → esm2020/layout/public-api.mjs} +0 -0
  150. package/esm2020/observers/index.mjs +9 -0
  151. package/esm2020/observers/observe-content.mjs +187 -0
  152. package/esm2020/observers/observers_public_index.mjs +5 -0
  153. package/{esm2015/observers/public-api.js → esm2020/observers/public-api.mjs} +0 -0
  154. package/esm2020/overlay/dispatchers/base-overlay-dispatcher.mjs +52 -0
  155. package/{esm2015/overlay/dispatchers/index.js → esm2020/overlay/dispatchers/index.mjs} +0 -0
  156. package/esm2020/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +63 -0
  157. package/esm2020/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +116 -0
  158. package/esm2020/overlay/fullscreen-overlay-container.mjs +94 -0
  159. package/esm2020/overlay/index.mjs +9 -0
  160. package/esm2020/overlay/overlay-config.mjs +45 -0
  161. package/esm2020/overlay/overlay-container.mjs +81 -0
  162. package/esm2020/overlay/overlay-directives.mjs +427 -0
  163. package/esm2020/overlay/overlay-module.mjs +29 -0
  164. package/esm2020/overlay/overlay-ref.mjs +402 -0
  165. package/{esm2015/overlay/overlay-reference.js → esm2020/overlay/overlay-reference.mjs} +0 -0
  166. package/esm2020/overlay/overlay.mjs +119 -0
  167. package/esm2020/overlay/overlay_public_index.mjs +5 -0
  168. package/esm2020/overlay/position/connected-position.mjs +97 -0
  169. package/esm2020/overlay/position/flexible-connected-position-strategy.mjs +959 -0
  170. package/esm2020/overlay/position/global-position-strategy.mjs +203 -0
  171. package/esm2020/overlay/position/overlay-position-builder.mjs +50 -0
  172. package/{esm2015/overlay/position/position-strategy.js → esm2020/overlay/position/position-strategy.mjs} +0 -0
  173. package/esm2020/overlay/position/scroll-clip.mjs +40 -0
  174. package/{esm2015/overlay/public-api.js → esm2020/overlay/public-api.mjs} +0 -0
  175. package/{esm2015/overlay/scroll/block-scroll-strategy.js → esm2020/overlay/scroll/block-scroll-strategy.mjs} +1 -1
  176. package/esm2020/overlay/scroll/close-scroll-strategy.mjs +61 -0
  177. package/{esm2015/overlay/scroll/index.js → esm2020/overlay/scroll/index.mjs} +2 -2
  178. package/{esm2015/overlay/scroll/noop-scroll-strategy.js → esm2020/overlay/scroll/noop-scroll-strategy.mjs} +1 -1
  179. package/{esm2015/overlay/scroll/reposition-scroll-strategy.js → esm2020/overlay/scroll/reposition-scroll-strategy.mjs} +1 -1
  180. package/esm2020/overlay/scroll/scroll-strategy-options.mjs +55 -0
  181. package/{esm2015/overlay/scroll/scroll-strategy.js → esm2020/overlay/scroll/scroll-strategy.mjs} +0 -0
  182. package/{esm2015/platform/features/input-types.js → esm2020/platform/features/input-types.mjs} +1 -1
  183. package/esm2020/platform/features/passive-listeners.mjs +36 -0
  184. package/esm2020/platform/features/scrolling.mjs +85 -0
  185. package/{esm2015/platform/features/shadow-dom.js → esm2020/platform/features/shadow-dom.mjs} +4 -3
  186. package/esm2020/platform/features/test-environment.mjs +27 -0
  187. package/esm2020/platform/index.mjs +9 -0
  188. package/esm2020/platform/platform-module.mjs +19 -0
  189. package/esm2020/platform/platform.mjs +85 -0
  190. package/esm2020/platform/platform_public_index.mjs +5 -0
  191. package/{esm2015/platform/public-api.js → esm2020/platform/public-api.mjs} +0 -0
  192. package/esm2020/portal/dom-portal-outlet.mjs +134 -0
  193. package/esm2020/portal/index.mjs +9 -0
  194. package/esm2020/portal/portal-directives.mjs +244 -0
  195. package/{esm2015/portal/portal-errors.js → esm2020/portal/portal-errors.mjs} +1 -1
  196. package/esm2020/portal/portal-injector.mjs +28 -0
  197. package/esm2020/portal/portal.mjs +179 -0
  198. package/esm2020/portal/portal_public_index.mjs +5 -0
  199. package/{esm2015/portal/public-api.js → esm2020/portal/public-api.mjs} +0 -0
  200. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  201. package/esm2020/scrolling/fixed-size-virtual-scroll.mjs +217 -0
  202. package/esm2020/scrolling/index.mjs +9 -0
  203. package/{esm2015/scrolling/public-api.js → esm2020/scrolling/public-api.mjs} +0 -0
  204. package/esm2020/scrolling/scroll-dispatcher.mjs +163 -0
  205. package/esm2020/scrolling/scrollable.mjs +176 -0
  206. package/esm2020/scrolling/scrolling-module.mjs +52 -0
  207. package/esm2020/scrolling/scrolling_public_index.mjs +5 -0
  208. package/esm2020/scrolling/viewport-ruler.mjs +146 -0
  209. package/esm2020/scrolling/virtual-for-of.mjs +296 -0
  210. package/{esm2015/scrolling/virtual-scroll-repeater.js → esm2020/scrolling/virtual-scroll-repeater.mjs} +0 -0
  211. package/esm2020/scrolling/virtual-scroll-strategy.mjs +11 -0
  212. package/esm2020/scrolling/virtual-scroll-viewport.mjs +378 -0
  213. package/esm2020/stepper/index.mjs +9 -0
  214. package/{esm2015/stepper/public-api.js → esm2020/stepper/public-api.mjs} +0 -0
  215. package/esm2020/stepper/step-header.mjs +30 -0
  216. package/esm2020/stepper/step-label.mjs +23 -0
  217. package/esm2020/stepper/stepper-button.mjs +76 -0
  218. package/esm2020/stepper/stepper-module.mjs +40 -0
  219. package/esm2020/stepper/stepper.mjs +471 -0
  220. package/esm2020/stepper/stepper_public_index.mjs +5 -0
  221. package/esm2020/table/can-stick.mjs +44 -0
  222. package/esm2020/table/cell.mjs +222 -0
  223. package/esm2020/table/coalesced-style-scheduler.mjs +91 -0
  224. package/esm2020/table/index.mjs +9 -0
  225. package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
  226. package/esm2020/table/row.mjs +254 -0
  227. package/esm2020/table/sticky-position-listener.mjs +11 -0
  228. package/esm2020/table/sticky-styler.mjs +345 -0
  229. package/{esm2015/table/table-errors.js → esm2020/table/table-errors.mjs} +1 -1
  230. package/esm2020/table/table-module.mjs +94 -0
  231. package/esm2020/table/table.mjs +1023 -0
  232. package/esm2020/table/table_public_index.mjs +5 -0
  233. package/esm2020/table/text-column.mjs +153 -0
  234. package/{esm2015/table/tokens.js → esm2020/table/tokens.mjs} +1 -1
  235. package/esm2020/testing/change-detection.mjs +102 -0
  236. package/esm2020/testing/component-harness.mjs +322 -0
  237. package/{esm2015/testing/element-dimensions.js → esm2020/testing/element-dimensions.mjs} +1 -1
  238. package/esm2020/testing/harness-environment.mjs +202 -0
  239. package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
  240. package/{esm2015/testing/protractor/index.js → esm2020/testing/protractor/index.mjs} +0 -0
  241. package/esm2020/testing/protractor/protractor-element.mjs +234 -0
  242. package/esm2020/testing/protractor/protractor-harness-environment.mjs +72 -0
  243. package/{esm2015/testing/protractor/public-api.js → esm2020/testing/protractor/public-api.mjs} +0 -0
  244. package/{esm2015/testing/public-api.js → esm2020/testing/public-api.mjs} +0 -0
  245. package/{esm2015/testing/selenium-webdriver/index.js → esm2020/testing/selenium-webdriver/index.mjs} +0 -0
  246. package/{esm2015/testing/selenium-webdriver/public-api.js → esm2020/testing/selenium-webdriver/public-api.mjs} +0 -0
  247. package/esm2020/testing/selenium-webdriver/selenium-web-driver-element.mjs +199 -0
  248. package/esm2020/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +87 -0
  249. package/{esm2015/testing/selenium-webdriver/selenium-webdriver-keys.js → esm2020/testing/selenium-webdriver/selenium-webdriver-keys.mjs} +2 -2
  250. package/esm2020/testing/test-element.mjs +48 -0
  251. package/esm2020/testing/testbed/fake-events/dispatch-events.mjs +53 -0
  252. package/esm2020/testing/testbed/fake-events/element-focus.mjs +39 -0
  253. package/esm2020/testing/testbed/fake-events/event-objects.mjs +113 -0
  254. package/{esm2015/testing/testbed/fake-events/index.js → esm2020/testing/testbed/fake-events/index.mjs} +0 -0
  255. package/esm2020/testing/testbed/fake-events/type-in-element.mjs +88 -0
  256. package/{esm2015/testing/testbed/index.js → esm2020/testing/testbed/index.mjs} +0 -0
  257. package/{esm2015/testing/testbed/public-api.js → esm2020/testing/testbed/public-api.mjs} +0 -0
  258. package/esm2020/testing/testbed/task-state-zone-interceptor.mjs +82 -0
  259. package/esm2020/testing/testbed/testbed-harness-environment.mjs +162 -0
  260. package/esm2020/testing/testbed/unit-test-element.mjs +224 -0
  261. package/esm2020/testing/text-filtering.mjs +21 -0
  262. package/esm2020/text-field/autofill.mjs +113 -0
  263. package/esm2020/text-field/autosize.mjs +310 -0
  264. package/esm2020/text-field/index.mjs +9 -0
  265. package/{esm2015/text-field/public-api.js → esm2020/text-field/public-api.mjs} +0 -0
  266. package/esm2020/text-field/text-field-module.mjs +26 -0
  267. package/esm2020/text-field/text-field_public_index.mjs +5 -0
  268. package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +4 -4
  269. package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +1 -1
  270. package/esm2020/tree/control/nested-tree-control.mjs +58 -0
  271. package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
  272. package/esm2020/tree/index.mjs +9 -0
  273. package/esm2020/tree/nested-node.mjs +117 -0
  274. package/esm2020/tree/node.mjs +35 -0
  275. package/esm2020/tree/outlet.mjs +39 -0
  276. package/esm2020/tree/padding.mjs +131 -0
  277. package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
  278. package/esm2020/tree/toggle.mjs +53 -0
  279. package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
  280. package/esm2020/tree/tree-module.mjs +49 -0
  281. package/esm2020/tree/tree.mjs +361 -0
  282. package/esm2020/tree/tree_public_index.mjs +5 -0
  283. package/{esm2015/version.js → esm2020/version.mjs} +1 -1
  284. package/fesm2015/{a11y.js → a11y.mjs} +289 -254
  285. package/fesm2015/a11y.mjs.map +1 -0
  286. package/fesm2015/accordion.mjs +275 -0
  287. package/fesm2015/accordion.mjs.map +1 -0
  288. package/fesm2015/bidi.mjs +187 -0
  289. package/fesm2015/bidi.mjs.map +1 -0
  290. package/fesm2015/{cdk.js → cdk.mjs} +2 -2
  291. package/fesm2015/cdk.mjs.map +1 -0
  292. package/fesm2015/clipboard.mjs +261 -0
  293. package/fesm2015/clipboard.mjs.map +1 -0
  294. package/fesm2015/{coercion.js → coercion.mjs} +1 -1
  295. package/fesm2015/coercion.mjs.map +1 -0
  296. package/fesm2015/{collections.js → collections.mjs} +20 -24
  297. package/fesm2015/collections.mjs.map +1 -0
  298. package/fesm2015/drag-drop.mjs +3675 -0
  299. package/fesm2015/drag-drop.mjs.map +1 -0
  300. package/fesm2015/{keycodes.js → keycodes.mjs} +9 -1
  301. package/fesm2015/keycodes.mjs.map +1 -0
  302. package/fesm2015/{layout.js → layout.mjs} +38 -28
  303. package/fesm2015/layout.mjs.map +1 -0
  304. package/fesm2015/{observers.js → observers.mjs} +58 -41
  305. package/fesm2015/observers.mjs.map +1 -0
  306. package/fesm2015/overlay.mjs +3012 -0
  307. package/fesm2015/overlay.mjs.map +1 -0
  308. package/fesm2015/platform.mjs +388 -0
  309. package/fesm2015/platform.mjs.map +1 -0
  310. package/fesm2015/portal.mjs +657 -0
  311. package/fesm2015/portal.mjs.map +1 -0
  312. package/fesm2015/scrolling.mjs +1402 -0
  313. package/fesm2015/scrolling.mjs.map +1 -0
  314. package/fesm2015/{stepper.js → stepper.mjs} +194 -133
  315. package/fesm2015/stepper.mjs.map +1 -0
  316. package/fesm2015/{table.js → table.mjs} +508 -359
  317. package/fesm2015/table.mjs.map +1 -0
  318. package/fesm2015/testing/{protractor.js → protractor.mjs} +12 -25
  319. package/fesm2015/testing/protractor.mjs.map +1 -0
  320. package/fesm2015/testing/{selenium-webdriver.js → selenium-webdriver.mjs} +14 -28
  321. package/fesm2015/testing/selenium-webdriver.mjs.map +1 -0
  322. package/fesm2015/testing/{testbed.js → testbed.mjs} +23 -29
  323. package/fesm2015/testing/testbed.mjs.map +1 -0
  324. package/fesm2015/{testing.js → testing.mjs} +19 -45
  325. package/fesm2015/testing.mjs.map +1 -0
  326. package/fesm2015/text-field.mjs +463 -0
  327. package/fesm2015/text-field.mjs.map +1 -0
  328. package/fesm2015/{tree.js → tree.mjs} +206 -152
  329. package/fesm2015/tree.mjs.map +1 -0
  330. package/fesm2020/a11y.mjs +2376 -0
  331. package/fesm2020/a11y.mjs.map +1 -0
  332. package/{fesm2015/accordion.js → fesm2020/accordion.mjs} +95 -57
  333. package/fesm2020/accordion.mjs.map +1 -0
  334. package/{fesm2015/bidi.js → fesm2020/bidi.mjs} +55 -31
  335. package/fesm2020/bidi.mjs.map +1 -0
  336. package/fesm2020/cdk.mjs +30 -0
  337. package/fesm2020/cdk.mjs.map +1 -0
  338. package/{fesm2015/clipboard.js → fesm2020/clipboard.mjs} +59 -40
  339. package/fesm2020/clipboard.mjs.map +1 -0
  340. package/fesm2020/coercion.mjs +132 -0
  341. package/fesm2020/coercion.mjs.map +1 -0
  342. package/fesm2020/collections.mjs +480 -0
  343. package/fesm2020/collections.mjs.map +1 -0
  344. package/{fesm2015/drag-drop.js → fesm2020/drag-drop.mjs} +528 -369
  345. package/fesm2020/drag-drop.mjs.map +1 -0
  346. package/fesm2020/keycodes.mjs +167 -0
  347. package/fesm2020/keycodes.mjs.map +1 -0
  348. package/fesm2020/layout.mjs +254 -0
  349. package/fesm2020/layout.mjs.map +1 -0
  350. package/fesm2020/observers.mjs +210 -0
  351. package/fesm2020/observers.mjs.map +1 -0
  352. package/{fesm2015/overlay.js → fesm2020/overlay.mjs} +320 -228
  353. package/fesm2020/overlay.mjs.map +1 -0
  354. package/{fesm2015/platform.js → fesm2020/platform.mjs} +60 -28
  355. package/fesm2020/platform.mjs.map +1 -0
  356. package/{fesm2015/portal.js → fesm2020/portal.mjs} +93 -64
  357. package/fesm2020/portal.mjs.map +1 -0
  358. package/{fesm2015/scrolling.js → fesm2020/scrolling.mjs} +221 -170
  359. package/fesm2020/scrolling.mjs.map +1 -0
  360. package/fesm2020/stepper.mjs +646 -0
  361. package/fesm2020/stepper.mjs.map +1 -0
  362. package/fesm2020/table.mjs +2303 -0
  363. package/fesm2020/table.mjs.map +1 -0
  364. package/fesm2020/testing/protractor.mjs +322 -0
  365. package/fesm2020/testing/protractor.mjs.map +1 -0
  366. package/fesm2020/testing/selenium-webdriver.mjs +362 -0
  367. package/fesm2020/testing/selenium-webdriver.mjs.map +1 -0
  368. package/fesm2020/testing/testbed.mjs +780 -0
  369. package/fesm2020/testing/testbed.mjs.map +1 -0
  370. package/fesm2020/testing.mjs +719 -0
  371. package/fesm2020/testing.mjs.map +1 -0
  372. package/{fesm2015/text-field.js → fesm2020/text-field.mjs} +91 -68
  373. package/fesm2020/text-field.mjs.map +1 -0
  374. package/fesm2020/tree.mjs +975 -0
  375. package/fesm2020/tree.mjs.map +1 -0
  376. package/keycodes/index.d.ts +5 -1
  377. package/keycodes/keycodes_public_index.d.ts +4 -0
  378. package/keycodes/package.json +6 -6
  379. package/layout/breakpoints-observer.d.ts +3 -7
  380. package/layout/index.d.ts +5 -1
  381. package/layout/layout-module.d.ts +4 -0
  382. package/layout/layout_public_index.d.ts +4 -0
  383. package/layout/media-matcher.d.ts +3 -0
  384. package/layout/package.json +6 -6
  385. package/observers/index.d.ts +5 -1
  386. package/observers/observe-content.d.ts +10 -0
  387. package/observers/observers_public_index.d.ts +4 -0
  388. package/observers/package.json +6 -6
  389. package/overlay/dispatchers/base-overlay-dispatcher.d.ts +3 -7
  390. package/overlay/dispatchers/overlay-keyboard-dispatcher.d.ts +3 -7
  391. package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +6 -7
  392. package/overlay/fullscreen-overlay-container.d.ts +3 -0
  393. package/overlay/index.d.ts +5 -3
  394. package/overlay/overlay-container.d.ts +3 -7
  395. package/overlay/overlay-directives.d.ts +5 -0
  396. package/overlay/overlay-module.d.ts +8 -7
  397. package/overlay/overlay.d.ts +3 -0
  398. package/overlay/overlay_public_index.d.ts +4 -0
  399. package/overlay/package.json +6 -6
  400. package/overlay/position/flexible-connected-position-strategy.d.ts +2 -2
  401. package/overlay/position/overlay-position-builder.d.ts +3 -0
  402. package/overlay/position/scroll-clip.d.ts +5 -2
  403. package/overlay/scroll/index.d.ts +1 -1
  404. package/overlay/scroll/scroll-strategy-options.d.ts +3 -0
  405. package/package.json +219 -7
  406. package/platform/index.d.ts +5 -1
  407. package/platform/package.json +6 -6
  408. package/platform/platform-module.d.ts +4 -7
  409. package/platform/platform.d.ts +3 -7
  410. package/platform/platform_public_index.d.ts +4 -0
  411. package/portal/index.d.ts +5 -1
  412. package/portal/package.json +6 -6
  413. package/portal/portal-directives.d.ts +12 -0
  414. package/portal/portal_public_index.d.ts +4 -0
  415. package/schematics/ng-add/index.js +3 -3
  416. package/schematics/ng-add/index.mjs +3 -3
  417. package/schematics/ng-add/package-config.js +4 -2
  418. package/schematics/ng-add/package-config.mjs +4 -2
  419. package/schematics/ng-add/schema.js +1 -1
  420. package/schematics/ng-add/schema.mjs +1 -1
  421. package/schematics/ng-generate/drag-drop/index.js +6 -6
  422. package/schematics/ng-generate/drag-drop/index.mjs +6 -6
  423. package/schematics/ng-update/data/attribute-selectors.js +7 -5
  424. package/schematics/ng-update/data/attribute-selectors.mjs +7 -5
  425. package/schematics/ng-update/data/class-names.js +13 -11
  426. package/schematics/ng-update/data/class-names.mjs +13 -11
  427. package/schematics/ng-update/data/constructor-checks.js +28 -20
  428. package/schematics/ng-update/data/constructor-checks.mjs +28 -20
  429. package/schematics/ng-update/data/css-selectors.js +2 -2
  430. package/schematics/ng-update/data/css-selectors.mjs +2 -2
  431. package/schematics/ng-update/data/element-selectors.js +2 -2
  432. package/schematics/ng-update/data/element-selectors.mjs +2 -2
  433. package/schematics/ng-update/data/input-names.js +40 -16
  434. package/schematics/ng-update/data/input-names.mjs +40 -16
  435. package/schematics/ng-update/data/method-call-checks.js +32 -18
  436. package/schematics/ng-update/data/method-call-checks.mjs +32 -18
  437. package/schematics/ng-update/data/output-names.js +8 -6
  438. package/schematics/ng-update/data/output-names.mjs +8 -6
  439. package/schematics/ng-update/data/property-names.js +40 -32
  440. package/schematics/ng-update/data/property-names.mjs +40 -32
  441. package/schematics/ng-update/devkit-file-system.js +2 -2
  442. package/schematics/ng-update/devkit-file-system.mjs +2 -2
  443. package/schematics/ng-update/devkit-migration-rule.js +8 -7
  444. package/schematics/ng-update/devkit-migration-rule.mjs +8 -7
  445. package/schematics/ng-update/devkit-migration.d.ts +3 -2
  446. package/schematics/ng-update/devkit-migration.js +1 -1
  447. package/schematics/ng-update/devkit-migration.mjs +1 -1
  448. package/schematics/ng-update/find-stylesheets.js +3 -3
  449. package/schematics/ng-update/find-stylesheets.mjs +3 -3
  450. package/schematics/ng-update/html-parsing/angular.js +7 -7
  451. package/schematics/ng-update/html-parsing/angular.mjs +7 -7
  452. package/schematics/ng-update/html-parsing/elements.js +2 -2
  453. package/schematics/ng-update/html-parsing/elements.mjs +2 -2
  454. package/schematics/ng-update/index.js +11 -9
  455. package/schematics/ng-update/index.mjs +11 -9
  456. package/schematics/ng-update/migrations/attribute-selectors.js +11 -7
  457. package/schematics/ng-update/migrations/attribute-selectors.mjs +11 -7
  458. package/schematics/ng-update/migrations/class-inheritance.js +3 -3
  459. package/schematics/ng-update/migrations/class-inheritance.mjs +3 -3
  460. package/schematics/ng-update/migrations/class-names.js +7 -6
  461. package/schematics/ng-update/migrations/class-names.mjs +7 -6
  462. package/schematics/ng-update/migrations/constructor-signature.js +16 -13
  463. package/schematics/ng-update/migrations/constructor-signature.mjs +16 -13
  464. package/schematics/ng-update/migrations/css-selectors.js +7 -6
  465. package/schematics/ng-update/migrations/css-selectors.mjs +7 -6
  466. package/schematics/ng-update/migrations/element-selectors.js +7 -6
  467. package/schematics/ng-update/migrations/element-selectors.mjs +7 -6
  468. package/schematics/ng-update/migrations/input-names.js +8 -9
  469. package/schematics/ng-update/migrations/input-names.mjs +8 -9
  470. package/schematics/ng-update/migrations/method-call-arguments.js +4 -3
  471. package/schematics/ng-update/migrations/method-call-arguments.mjs +4 -3
  472. package/schematics/ng-update/migrations/misc-template.js +3 -3
  473. package/schematics/ng-update/migrations/misc-template.mjs +3 -3
  474. package/schematics/ng-update/migrations/output-names.js +7 -8
  475. package/schematics/ng-update/migrations/output-names.mjs +7 -8
  476. package/schematics/ng-update/migrations/property-names.js +4 -3
  477. package/schematics/ng-update/migrations/property-names.mjs +4 -3
  478. package/schematics/ng-update/migrations/symbol-removal.js +2 -2
  479. package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
  480. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.d.ts +14 -0
  481. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.js +38 -0
  482. package/schematics/ng-update/migrations/tilde-import-v13/tilde-import-migration.mjs +38 -0
  483. package/schematics/ng-update/typescript/base-types.js +1 -1
  484. package/schematics/ng-update/typescript/base-types.mjs +1 -1
  485. package/schematics/ng-update/typescript/literal.d.ts +1 -1
  486. package/schematics/ng-update/typescript/literal.js +1 -1
  487. package/schematics/ng-update/typescript/literal.mjs +1 -1
  488. package/schematics/ng-update/typescript/module-specifiers.js +5 -5
  489. package/schematics/ng-update/typescript/module-specifiers.mjs +5 -5
  490. package/schematics/ng-update/upgrade-data.js +2 -2
  491. package/schematics/ng-update/upgrade-data.mjs +2 -2
  492. package/schematics/package.json +3 -0
  493. package/schematics/paths.js +3 -3
  494. package/schematics/paths.mjs +3 -3
  495. package/schematics/update-tool/component-resource-collector.js +10 -10
  496. package/schematics/update-tool/component-resource-collector.mjs +10 -10
  497. package/schematics/update-tool/file-system.js +1 -1
  498. package/schematics/update-tool/file-system.mjs +1 -1
  499. package/schematics/update-tool/index.d.ts +4 -1
  500. package/schematics/update-tool/index.js +9 -5
  501. package/schematics/update-tool/index.mjs +9 -5
  502. package/schematics/update-tool/migration.d.ts +1 -1
  503. package/schematics/update-tool/migration.js +1 -1
  504. package/schematics/update-tool/migration.mjs +1 -1
  505. package/schematics/update-tool/target-version.js +1 -1
  506. package/schematics/update-tool/target-version.mjs +1 -1
  507. package/schematics/update-tool/utils/decorators.js +8 -4
  508. package/schematics/update-tool/utils/decorators.mjs +8 -4
  509. package/schematics/update-tool/utils/functions.js +1 -1
  510. package/schematics/update-tool/utils/functions.mjs +1 -1
  511. package/schematics/update-tool/utils/imports.js +2 -2
  512. package/schematics/update-tool/utils/imports.mjs +2 -2
  513. package/schematics/update-tool/utils/line-mappings.js +1 -1
  514. package/schematics/update-tool/utils/line-mappings.mjs +1 -1
  515. package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
  516. package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
  517. package/schematics/update-tool/utils/property-name.js +1 -1
  518. package/schematics/update-tool/utils/property-name.mjs +1 -1
  519. package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
  520. package/schematics/update-tool/utils/virtual-host.js +3 -3
  521. package/schematics/update-tool/utils/virtual-host.mjs +3 -3
  522. package/schematics/update-tool/version-changes.js +1 -1
  523. package/schematics/update-tool/version-changes.mjs +1 -1
  524. package/schematics/utils/ast/ng-module-imports.js +5 -3
  525. package/schematics/utils/ast/ng-module-imports.mjs +5 -3
  526. package/schematics/utils/ast.js +5 -5
  527. package/schematics/utils/ast.mjs +5 -5
  528. package/schematics/utils/build-component.js +32 -38
  529. package/schematics/utils/build-component.mjs +32 -38
  530. package/schematics/utils/get-project.js +1 -1
  531. package/schematics/utils/get-project.mjs +1 -1
  532. package/schematics/utils/html-manipulation.js +8 -7
  533. package/schematics/utils/html-manipulation.mjs +8 -7
  534. package/schematics/utils/parse5-element.js +9 -10
  535. package/schematics/utils/parse5-element.mjs +9 -10
  536. package/schematics/utils/project-index-file.js +2 -2
  537. package/schematics/utils/project-index-file.mjs +2 -2
  538. package/schematics/utils/project-main-file.js +2 -2
  539. package/schematics/utils/project-main-file.mjs +2 -2
  540. package/schematics/utils/project-style-file.js +7 -9
  541. package/schematics/utils/project-style-file.mjs +7 -9
  542. package/schematics/utils/project-targets.js +1 -1
  543. package/schematics/utils/project-targets.mjs +1 -1
  544. package/schematics/utils/project-tsconfig-paths.js +4 -4
  545. package/schematics/utils/project-tsconfig-paths.mjs +4 -4
  546. package/schematics/utils/schematic-options.js +7 -5
  547. package/schematics/utils/schematic-options.mjs +7 -5
  548. package/schematics/utils/vendored-ast-utils/index.js +17 -18
  549. package/schematics/utils/vendored-ast-utils/index.mjs +17 -18
  550. package/scrolling/fixed-size-virtual-scroll.d.ts +3 -0
  551. package/scrolling/index.d.ts +5 -1
  552. package/scrolling/package.json +6 -6
  553. package/scrolling/scroll-dispatcher.d.ts +3 -7
  554. package/scrolling/scrollable.d.ts +3 -0
  555. package/scrolling/scrolling-module.d.ts +13 -7
  556. package/scrolling/scrolling_public_index.d.ts +4 -0
  557. package/scrolling/viewport-ruler.d.ts +11 -1
  558. package/scrolling/virtual-for-of.d.ts +3 -0
  559. package/scrolling/virtual-scroll-viewport.d.ts +3 -0
  560. package/stepper/index.d.ts +5 -1
  561. package/stepper/package.json +6 -6
  562. package/stepper/step-header.d.ts +3 -0
  563. package/stepper/step-label.d.ts +3 -0
  564. package/stepper/stepper-button.d.ts +5 -7
  565. package/stepper/stepper-module.d.ts +9 -7
  566. package/stepper/stepper.d.ts +5 -7
  567. package/stepper/stepper_public_index.d.ts +4 -0
  568. package/table/cell.d.ts +15 -0
  569. package/table/coalesced-style-scheduler.d.ts +3 -0
  570. package/table/index.d.ts +5 -1
  571. package/table/package.json +6 -6
  572. package/table/row.d.ts +19 -0
  573. package/table/table-module.d.ts +9 -7
  574. package/table/table.d.ts +13 -0
  575. package/table/table_public_index.d.ts +4 -0
  576. package/table/text-column.d.ts +3 -0
  577. package/testing/package.json +5 -5
  578. package/testing/protractor/package.json +5 -5
  579. package/testing/selenium-webdriver/package.json +5 -5
  580. package/testing/testbed/package.json +5 -5
  581. package/testing/testbed/proxy-zone-types.d.ts +1 -1
  582. package/testing/testbed/zone-types.d.ts +1 -1
  583. package/text-field/autofill.d.ts +5 -0
  584. package/text-field/autosize.d.ts +3 -0
  585. package/text-field/index.d.ts +5 -1
  586. package/text-field/package.json +6 -6
  587. package/text-field/text-field-module.d.ts +7 -7
  588. package/text-field/text-field_public_index.d.ts +4 -0
  589. package/tree/control/base-tree-control.d.ts +1 -1
  590. package/tree/control/nested-tree-control.d.ts +2 -2
  591. package/tree/index.d.ts +5 -1
  592. package/tree/nested-node.d.ts +3 -0
  593. package/tree/node.d.ts +3 -0
  594. package/tree/outlet.d.ts +3 -0
  595. package/tree/package.json +6 -6
  596. package/tree/padding.d.ts +3 -0
  597. package/tree/toggle.d.ts +3 -0
  598. package/tree/tree-module.d.ts +10 -7
  599. package/tree/tree.d.ts +5 -0
  600. package/tree/tree_public_index.d.ts +4 -0
  601. package/a11y/index.metadata.json +0 -1
  602. package/accordion/index.metadata.json +0 -1
  603. package/bidi/index.metadata.json +0 -1
  604. package/bundles/cdk-a11y.umd.js +0 -2752
  605. package/bundles/cdk-a11y.umd.js.map +0 -1
  606. package/bundles/cdk-accordion.umd.js +0 -262
  607. package/bundles/cdk-accordion.umd.js.map +0 -1
  608. package/bundles/cdk-bidi.umd.js +0 -206
  609. package/bundles/cdk-bidi.umd.js.map +0 -1
  610. package/bundles/cdk-clipboard.umd.js +0 -278
  611. package/bundles/cdk-clipboard.umd.js.map +0 -1
  612. package/bundles/cdk-coercion.umd.js +0 -477
  613. package/bundles/cdk-coercion.umd.js.map +0 -1
  614. package/bundles/cdk-collections.umd.js +0 -846
  615. package/bundles/cdk-collections.umd.js.map +0 -1
  616. package/bundles/cdk-drag-drop.umd.js +0 -3921
  617. package/bundles/cdk-drag-drop.umd.js.map +0 -1
  618. package/bundles/cdk-keycodes.umd.js +0 -292
  619. package/bundles/cdk-keycodes.umd.js.map +0 -1
  620. package/bundles/cdk-layout.umd.js +0 -284
  621. package/bundles/cdk-layout.umd.js.map +0 -1
  622. package/bundles/cdk-observers.umd.js +0 -242
  623. package/bundles/cdk-observers.umd.js.map +0 -1
  624. package/bundles/cdk-overlay.umd.js +0 -3417
  625. package/bundles/cdk-overlay.umd.js.map +0 -1
  626. package/bundles/cdk-platform.umd.js +0 -397
  627. package/bundles/cdk-platform.umd.js.map +0 -1
  628. package/bundles/cdk-portal.umd.js +0 -1008
  629. package/bundles/cdk-portal.umd.js.map +0 -1
  630. package/bundles/cdk-scrolling.umd.js +0 -1787
  631. package/bundles/cdk-scrolling.umd.js.map +0 -1
  632. package/bundles/cdk-stepper.umd.js +0 -648
  633. package/bundles/cdk-stepper.umd.js.map +0 -1
  634. package/bundles/cdk-table.umd.js +0 -2730
  635. package/bundles/cdk-table.umd.js.map +0 -1
  636. package/bundles/cdk-testing-protractor.umd.js +0 -833
  637. package/bundles/cdk-testing-protractor.umd.js.map +0 -1
  638. package/bundles/cdk-testing-selenium-webdriver.umd.js +0 -1002
  639. package/bundles/cdk-testing-selenium-webdriver.umd.js.map +0 -1
  640. package/bundles/cdk-testing-testbed.umd.js +0 -1396
  641. package/bundles/cdk-testing-testbed.umd.js.map +0 -1
  642. package/bundles/cdk-testing.umd.js +0 -1285
  643. package/bundles/cdk-testing.umd.js.map +0 -1
  644. package/bundles/cdk-text-field.umd.js +0 -494
  645. package/bundles/cdk-text-field.umd.js.map +0 -1
  646. package/bundles/cdk-tree.umd.js +0 -1308
  647. package/bundles/cdk-tree.umd.js.map +0 -1
  648. package/bundles/cdk.umd.js +0 -38
  649. package/bundles/cdk.umd.js.map +0 -1
  650. package/clipboard/index.metadata.json +0 -1
  651. package/collections/index.metadata.json +0 -1
  652. package/drag-drop/index.metadata.json +0 -1
  653. package/esm2015/a11y/a11y-module.js +0 -30
  654. package/esm2015/a11y/a11y.externs.js +0 -6
  655. package/esm2015/a11y/aria-describer/aria-describer.js +0 -213
  656. package/esm2015/a11y/fake-event-detection.js +0 -28
  657. package/esm2015/a11y/focus-monitor/focus-monitor.js +0 -394
  658. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +0 -52
  659. package/esm2015/a11y/focus-trap/configurable-focus-trap.js +0 -49
  660. package/esm2015/a11y/focus-trap/event-listener-inert-strategy.js +0 -62
  661. package/esm2015/a11y/focus-trap/focus-trap-inert-strategy.js +0 -11
  662. package/esm2015/a11y/focus-trap/focus-trap-manager.js +0 -51
  663. package/esm2015/a11y/focus-trap/focus-trap.js +0 -391
  664. package/esm2015/a11y/high-contrast-mode/high-contrast-mode-detector.js +0 -92
  665. package/esm2015/a11y/index.js +0 -6
  666. package/esm2015/a11y/input-modality/input-modality-detector.js +0 -171
  667. package/esm2015/a11y/interactivity-checker/interactivity-checker.js +0 -237
  668. package/esm2015/a11y/key-manager/list-key-manager.js +0 -317
  669. package/esm2015/a11y/live-announcer/live-announcer-tokens.js +0 -19
  670. package/esm2015/a11y/live-announcer/live-announcer.js +0 -167
  671. package/esm2015/accordion/accordion-item.js +0 -146
  672. package/esm2015/accordion/accordion-module.js +0 -19
  673. package/esm2015/accordion/accordion.externs.js +0 -6
  674. package/esm2015/accordion/accordion.js +0 -63
  675. package/esm2015/accordion/index.js +0 -6
  676. package/esm2015/bidi/bidi-module.js +0 -18
  677. package/esm2015/bidi/bidi.externs.js +0 -6
  678. package/esm2015/bidi/dir.js +0 -58
  679. package/esm2015/bidi/directionality.js +0 -44
  680. package/esm2015/bidi/index.js +0 -6
  681. package/esm2015/cdk.externs.js +0 -0
  682. package/esm2015/clipboard/clipboard-module.js +0 -18
  683. package/esm2015/clipboard/clipboard.externs.js +0 -6
  684. package/esm2015/clipboard/clipboard.js +0 -52
  685. package/esm2015/clipboard/copy-to-clipboard.js +0 -90
  686. package/esm2015/clipboard/index.js +0 -5
  687. package/esm2015/clipboard/pending-copy.js +0 -68
  688. package/esm2015/coercion/coercion.externs.js +0 -0
  689. package/esm2015/collections/collection-viewer.js +0 -9
  690. package/esm2015/collections/collections.externs.js +0 -6
  691. package/esm2015/collections/dispose-view-repeater-strategy.js +0 -48
  692. package/esm2015/collections/index.js +0 -5
  693. package/esm2015/collections/recycle-view-repeater-strategy.js +0 -125
  694. package/esm2015/collections/tree-adapter.js +0 -9
  695. package/esm2015/collections/unique-selection-dispatcher.js +0 -53
  696. package/esm2015/collections/view-repeater.js +0 -14
  697. package/esm2015/drag-drop/client-rect.js +0 -60
  698. package/esm2015/drag-drop/clone-node.js +0 -65
  699. package/esm2015/drag-drop/directives/assertions.js +0 -19
  700. package/esm2015/drag-drop/directives/drag-handle.js +0 -57
  701. package/esm2015/drag-drop/directives/drag-placeholder.js +0 -36
  702. package/esm2015/drag-drop/directives/drag-preview.js +0 -42
  703. package/esm2015/drag-drop/directives/drag.js +0 -413
  704. package/esm2015/drag-drop/directives/drop-list-group.js +0 -47
  705. package/esm2015/drag-drop/directives/drop-list.js +0 -301
  706. package/esm2015/drag-drop/drag-drop-module.js +0 -43
  707. package/esm2015/drag-drop/drag-drop-registry.js +0 -231
  708. package/esm2015/drag-drop/drag-drop.externs.js +0 -6
  709. package/esm2015/drag-drop/drag-drop.js +0 -59
  710. package/esm2015/drag-drop/drag-events.js +0 -9
  711. package/esm2015/drag-drop/drag-ref.js +0 -1110
  712. package/esm2015/drag-drop/drag-styling.js +0 -69
  713. package/esm2015/drag-drop/drag-utils.js +0 -60
  714. package/esm2015/drag-drop/drop-list-ref.js +0 -813
  715. package/esm2015/drag-drop/index.js +0 -5
  716. package/esm2015/drag-drop/transition-duration.js +0 -36
  717. package/esm2015/keycodes/index.js +0 -5
  718. package/esm2015/keycodes/keycodes.externs.js +0 -6
  719. package/esm2015/layout/breakpoints-observer.js +0 -106
  720. package/esm2015/layout/index.js +0 -5
  721. package/esm2015/layout/layout-module.js +0 -14
  722. package/esm2015/layout/layout.externs.js +0 -6
  723. package/esm2015/layout/media-matcher.js +0 -85
  724. package/esm2015/observers/index.js +0 -5
  725. package/esm2015/observers/observe-content.js +0 -179
  726. package/esm2015/observers/observers.externs.js +0 -6
  727. package/esm2015/overlay/dispatchers/base-overlay-dispatcher.js +0 -51
  728. package/esm2015/overlay/dispatchers/overlay-keyboard-dispatcher.js +0 -62
  729. package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +0 -97
  730. package/esm2015/overlay/fullscreen-overlay-container.js +0 -94
  731. package/esm2015/overlay/index.js +0 -7
  732. package/esm2015/overlay/overlay-config.js +0 -45
  733. package/esm2015/overlay/overlay-container.js +0 -85
  734. package/esm2015/overlay/overlay-directives.js +0 -352
  735. package/esm2015/overlay/overlay-module.js +0 -27
  736. package/esm2015/overlay/overlay-ref.js +0 -409
  737. package/esm2015/overlay/overlay.externs.js +0 -6
  738. package/esm2015/overlay/overlay.js +0 -119
  739. package/esm2015/overlay/position/connected-position.js +0 -94
  740. package/esm2015/overlay/position/flexible-connected-position-strategy.js +0 -960
  741. package/esm2015/overlay/position/global-position-strategy.js +0 -197
  742. package/esm2015/overlay/position/overlay-position-builder.js +0 -52
  743. package/esm2015/overlay/position/scroll-clip.js +0 -42
  744. package/esm2015/overlay/scroll/close-scroll-strategy.js +0 -61
  745. package/esm2015/overlay/scroll/scroll-strategy-options.js +0 -57
  746. package/esm2015/platform/features/passive-listeners.js +0 -36
  747. package/esm2015/platform/features/scrolling.js +0 -85
  748. package/esm2015/platform/features/test-environment.js +0 -16
  749. package/esm2015/platform/index.js +0 -5
  750. package/esm2015/platform/platform-module.js +0 -14
  751. package/esm2015/platform/platform.externs.js +0 -6
  752. package/esm2015/platform/platform.js +0 -77
  753. package/esm2015/portal/dom-portal-outlet.js +0 -136
  754. package/esm2015/portal/index.js +0 -5
  755. package/esm2015/portal/portal-directives.js +0 -221
  756. package/esm2015/portal/portal-injector.js +0 -28
  757. package/esm2015/portal/portal.externs.js +0 -6
  758. package/esm2015/portal/portal.js +0 -179
  759. package/esm2015/scrolling/fixed-size-virtual-scroll.js +0 -188
  760. package/esm2015/scrolling/index.js +0 -5
  761. package/esm2015/scrolling/scroll-dispatcher.js +0 -163
  762. package/esm2015/scrolling/scrollable.js +0 -173
  763. package/esm2015/scrolling/scrolling-module.js +0 -49
  764. package/esm2015/scrolling/scrolling.externs.js +0 -6
  765. package/esm2015/scrolling/viewport-ruler.js +0 -139
  766. package/esm2015/scrolling/virtual-for-of.js +0 -293
  767. package/esm2015/scrolling/virtual-scroll-strategy.js +0 -11
  768. package/esm2015/scrolling/virtual-scroll-viewport.js +0 -371
  769. package/esm2015/stepper/index.js +0 -5
  770. package/esm2015/stepper/step-header.js +0 -29
  771. package/esm2015/stepper/step-label.js +0 -22
  772. package/esm2015/stepper/stepper-button.js +0 -72
  773. package/esm2015/stepper/stepper-module.js +0 -37
  774. package/esm2015/stepper/stepper.externs.js +0 -6
  775. package/esm2015/stepper/stepper.js +0 -428
  776. package/esm2015/table/can-stick.js +0 -42
  777. package/esm2015/table/cell.js +0 -211
  778. package/esm2015/table/coalesced-style-scheduler.js +0 -89
  779. package/esm2015/table/index.js +0 -5
  780. package/esm2015/table/row.js +0 -244
  781. package/esm2015/table/sticky-position-listener.js +0 -11
  782. package/esm2015/table/sticky-styler.js +0 -336
  783. package/esm2015/table/table-module.js +0 -47
  784. package/esm2015/table/table.externs.js +0 -6
  785. package/esm2015/table/table.js +0 -987
  786. package/esm2015/table/text-column.js +0 -127
  787. package/esm2015/testing/change-detection.js +0 -110
  788. package/esm2015/testing/component-harness.js +0 -344
  789. package/esm2015/testing/harness-environment.js +0 -219
  790. package/esm2015/testing/protractor/protractor-element.js +0 -274
  791. package/esm2015/testing/protractor/protractor-harness-environment.js +0 -79
  792. package/esm2015/testing/protractor/protractor.externs.js +0 -0
  793. package/esm2015/testing/selenium-webdriver/selenium-web-driver-element.js +0 -241
  794. package/esm2015/testing/selenium-webdriver/selenium-web-driver-harness-environment.js +0 -97
  795. package/esm2015/testing/selenium-webdriver/selenium-webdriver.externs.js +0 -0
  796. package/esm2015/testing/test-element.js +0 -48
  797. package/esm2015/testing/testbed/fake-events/dispatch-events.js +0 -53
  798. package/esm2015/testing/testbed/fake-events/element-focus.js +0 -39
  799. package/esm2015/testing/testbed/fake-events/event-objects.js +0 -107
  800. package/esm2015/testing/testbed/fake-events/type-in-element.js +0 -79
  801. package/esm2015/testing/testbed/task-state-zone-interceptor.js +0 -82
  802. package/esm2015/testing/testbed/testbed-harness-environment.js +0 -173
  803. package/esm2015/testing/testbed/testbed.externs.js +0 -0
  804. package/esm2015/testing/testbed/unit-test-element.js +0 -266
  805. package/esm2015/testing/testing.externs.js +0 -0
  806. package/esm2015/testing/text-filtering.js +0 -23
  807. package/esm2015/text-field/autofill.js +0 -117
  808. package/esm2015/text-field/autosize.js +0 -293
  809. package/esm2015/text-field/index.js +0 -5
  810. package/esm2015/text-field/text-field-module.js +0 -21
  811. package/esm2015/text-field/text-field.externs.js +0 -6
  812. package/esm2015/tree/control/nested-tree-control.js +0 -59
  813. package/esm2015/tree/index.js +0 -5
  814. package/esm2015/tree/nested-node.js +0 -112
  815. package/esm2015/tree/node.js +0 -36
  816. package/esm2015/tree/outlet.js +0 -34
  817. package/esm2015/tree/padding.js +0 -119
  818. package/esm2015/tree/toggle.js +0 -46
  819. package/esm2015/tree/tree-module.js +0 -32
  820. package/esm2015/tree/tree.externs.js +0 -6
  821. package/esm2015/tree/tree.js +0 -345
  822. package/fesm2015/a11y.js.map +0 -1
  823. package/fesm2015/accordion.js.map +0 -1
  824. package/fesm2015/bidi.js.map +0 -1
  825. package/fesm2015/cdk.js.map +0 -1
  826. package/fesm2015/clipboard.js.map +0 -1
  827. package/fesm2015/coercion.js.map +0 -1
  828. package/fesm2015/collections.js.map +0 -1
  829. package/fesm2015/drag-drop.js.map +0 -1
  830. package/fesm2015/keycodes.js.map +0 -1
  831. package/fesm2015/layout.js.map +0 -1
  832. package/fesm2015/observers.js.map +0 -1
  833. package/fesm2015/overlay.js.map +0 -1
  834. package/fesm2015/platform.js.map +0 -1
  835. package/fesm2015/portal.js.map +0 -1
  836. package/fesm2015/scrolling.js.map +0 -1
  837. package/fesm2015/stepper.js.map +0 -1
  838. package/fesm2015/table.js.map +0 -1
  839. package/fesm2015/testing/protractor.js.map +0 -1
  840. package/fesm2015/testing/selenium-webdriver.js.map +0 -1
  841. package/fesm2015/testing/testbed.js.map +0 -1
  842. package/fesm2015/testing.js.map +0 -1
  843. package/fesm2015/text-field.js.map +0 -1
  844. package/fesm2015/tree.js.map +0 -1
  845. package/keycodes/index.metadata.json +0 -1
  846. package/layout/index.metadata.json +0 -1
  847. package/observers/index.metadata.json +0 -1
  848. package/overlay/index.metadata.json +0 -1
  849. package/platform/index.metadata.json +0 -1
  850. package/portal/index.metadata.json +0 -1
  851. package/scrolling/index.metadata.json +0 -1
  852. package/stepper/index.metadata.json +0 -1
  853. package/table/index.metadata.json +0 -1
  854. package/text-field/index.metadata.json +0 -1
  855. package/tree/index.metadata.json +0 -1
@@ -1,1396 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/testing'), require('@angular/core/testing'), require('rxjs/operators'), require('rxjs'), require('@angular/cdk/keycodes')) :
3
- typeof define === 'function' && define.amd ? define('@angular/cdk/testing/testbed', ['exports', '@angular/cdk/testing', '@angular/core/testing', 'rxjs/operators', 'rxjs', '@angular/cdk/keycodes'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.testing = global.ng.cdk.testing || {}, global.ng.cdk.testing.testbed = {}), global.ng.cdk.testing, global.ng.core.testing, global.rxjs.operators, global.rxjs, global.ng.cdk.keycodes));
5
- }(this, (function (exports, testing, testing$1, operators, rxjs, keyCodes) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var keyCodes__namespace = /*#__PURE__*/_interopNamespace(keyCodes);
28
-
29
- /*! *****************************************************************************
30
- Copyright (c) Microsoft Corporation.
31
-
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
- /* global Reflect, Promise */
44
- var extendStatics = function (d, b) {
45
- extendStatics = Object.setPrototypeOf ||
46
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
47
- function (d, b) { for (var p in b)
48
- if (Object.prototype.hasOwnProperty.call(b, p))
49
- d[p] = b[p]; };
50
- return extendStatics(d, b);
51
- };
52
- function __extends(d, b) {
53
- if (typeof b !== "function" && b !== null)
54
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
55
- extendStatics(d, b);
56
- function __() { this.constructor = d; }
57
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
58
- }
59
- var __assign = function () {
60
- __assign = Object.assign || function __assign(t) {
61
- for (var s, i = 1, n = arguments.length; i < n; i++) {
62
- s = arguments[i];
63
- for (var p in s)
64
- if (Object.prototype.hasOwnProperty.call(s, p))
65
- t[p] = s[p];
66
- }
67
- return t;
68
- };
69
- return __assign.apply(this, arguments);
70
- };
71
- function __rest(s, e) {
72
- var t = {};
73
- for (var p in s)
74
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
75
- t[p] = s[p];
76
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
77
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
78
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
79
- t[p[i]] = s[p[i]];
80
- }
81
- return t;
82
- }
83
- function __decorate(decorators, target, key, desc) {
84
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
85
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
86
- r = Reflect.decorate(decorators, target, key, desc);
87
- else
88
- for (var i = decorators.length - 1; i >= 0; i--)
89
- if (d = decorators[i])
90
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
91
- return c > 3 && r && Object.defineProperty(target, key, r), r;
92
- }
93
- function __param(paramIndex, decorator) {
94
- return function (target, key) { decorator(target, key, paramIndex); };
95
- }
96
- function __metadata(metadataKey, metadataValue) {
97
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
98
- return Reflect.metadata(metadataKey, metadataValue);
99
- }
100
- function __awaiter(thisArg, _arguments, P, generator) {
101
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
102
- return new (P || (P = Promise))(function (resolve, reject) {
103
- function fulfilled(value) { try {
104
- step(generator.next(value));
105
- }
106
- catch (e) {
107
- reject(e);
108
- } }
109
- function rejected(value) { try {
110
- step(generator["throw"](value));
111
- }
112
- catch (e) {
113
- reject(e);
114
- } }
115
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
116
- step((generator = generator.apply(thisArg, _arguments || [])).next());
117
- });
118
- }
119
- function __generator(thisArg, body) {
120
- var _ = { label: 0, sent: function () { if (t[0] & 1)
121
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
122
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
123
- function verb(n) { return function (v) { return step([n, v]); }; }
124
- function step(op) {
125
- if (f)
126
- throw new TypeError("Generator is already executing.");
127
- while (_)
128
- try {
129
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
130
- return t;
131
- if (y = 0, t)
132
- op = [op[0] & 2, t.value];
133
- switch (op[0]) {
134
- case 0:
135
- case 1:
136
- t = op;
137
- break;
138
- case 4:
139
- _.label++;
140
- return { value: op[1], done: false };
141
- case 5:
142
- _.label++;
143
- y = op[1];
144
- op = [0];
145
- continue;
146
- case 7:
147
- op = _.ops.pop();
148
- _.trys.pop();
149
- continue;
150
- default:
151
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
152
- _ = 0;
153
- continue;
154
- }
155
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
156
- _.label = op[1];
157
- break;
158
- }
159
- if (op[0] === 6 && _.label < t[1]) {
160
- _.label = t[1];
161
- t = op;
162
- break;
163
- }
164
- if (t && _.label < t[2]) {
165
- _.label = t[2];
166
- _.ops.push(op);
167
- break;
168
- }
169
- if (t[2])
170
- _.ops.pop();
171
- _.trys.pop();
172
- continue;
173
- }
174
- op = body.call(thisArg, _);
175
- }
176
- catch (e) {
177
- op = [6, e];
178
- y = 0;
179
- }
180
- finally {
181
- f = t = 0;
182
- }
183
- if (op[0] & 5)
184
- throw op[1];
185
- return { value: op[0] ? op[1] : void 0, done: true };
186
- }
187
- }
188
- var __createBinding = Object.create ? (function (o, m, k, k2) {
189
- if (k2 === undefined)
190
- k2 = k;
191
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
192
- }) : (function (o, m, k, k2) {
193
- if (k2 === undefined)
194
- k2 = k;
195
- o[k2] = m[k];
196
- });
197
- function __exportStar(m, o) {
198
- for (var p in m)
199
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
200
- __createBinding(o, m, p);
201
- }
202
- function __values(o) {
203
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
204
- if (m)
205
- return m.call(o);
206
- if (o && typeof o.length === "number")
207
- return {
208
- next: function () {
209
- if (o && i >= o.length)
210
- o = void 0;
211
- return { value: o && o[i++], done: !o };
212
- }
213
- };
214
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
215
- }
216
- function __read(o, n) {
217
- var m = typeof Symbol === "function" && o[Symbol.iterator];
218
- if (!m)
219
- return o;
220
- var i = m.call(o), r, ar = [], e;
221
- try {
222
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
223
- ar.push(r.value);
224
- }
225
- catch (error) {
226
- e = { error: error };
227
- }
228
- finally {
229
- try {
230
- if (r && !r.done && (m = i["return"]))
231
- m.call(i);
232
- }
233
- finally {
234
- if (e)
235
- throw e.error;
236
- }
237
- }
238
- return ar;
239
- }
240
- /** @deprecated */
241
- function __spread() {
242
- for (var ar = [], i = 0; i < arguments.length; i++)
243
- ar = ar.concat(__read(arguments[i]));
244
- return ar;
245
- }
246
- /** @deprecated */
247
- function __spreadArrays() {
248
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
249
- s += arguments[i].length;
250
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
251
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
252
- r[k] = a[j];
253
- return r;
254
- }
255
- function __spreadArray(to, from, pack) {
256
- if (pack || arguments.length === 2)
257
- for (var i = 0, l = from.length, ar; i < l; i++) {
258
- if (ar || !(i in from)) {
259
- if (!ar)
260
- ar = Array.prototype.slice.call(from, 0, i);
261
- ar[i] = from[i];
262
- }
263
- }
264
- return to.concat(ar || Array.prototype.slice.call(from));
265
- }
266
- function __await(v) {
267
- return this instanceof __await ? (this.v = v, this) : new __await(v);
268
- }
269
- function __asyncGenerator(thisArg, _arguments, generator) {
270
- if (!Symbol.asyncIterator)
271
- throw new TypeError("Symbol.asyncIterator is not defined.");
272
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
273
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
274
- function verb(n) { if (g[n])
275
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
276
- function resume(n, v) { try {
277
- step(g[n](v));
278
- }
279
- catch (e) {
280
- settle(q[0][3], e);
281
- } }
282
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
283
- function fulfill(value) { resume("next", value); }
284
- function reject(value) { resume("throw", value); }
285
- function settle(f, v) { if (f(v), q.shift(), q.length)
286
- resume(q[0][0], q[0][1]); }
287
- }
288
- function __asyncDelegator(o) {
289
- var i, p;
290
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
291
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
292
- }
293
- function __asyncValues(o) {
294
- if (!Symbol.asyncIterator)
295
- throw new TypeError("Symbol.asyncIterator is not defined.");
296
- var m = o[Symbol.asyncIterator], i;
297
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
298
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
299
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
300
- }
301
- function __makeTemplateObject(cooked, raw) {
302
- if (Object.defineProperty) {
303
- Object.defineProperty(cooked, "raw", { value: raw });
304
- }
305
- else {
306
- cooked.raw = raw;
307
- }
308
- return cooked;
309
- }
310
- ;
311
- var __setModuleDefault = Object.create ? (function (o, v) {
312
- Object.defineProperty(o, "default", { enumerable: true, value: v });
313
- }) : function (o, v) {
314
- o["default"] = v;
315
- };
316
- function __importStar(mod) {
317
- if (mod && mod.__esModule)
318
- return mod;
319
- var result = {};
320
- if (mod != null)
321
- for (var k in mod)
322
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
323
- __createBinding(result, mod, k);
324
- __setModuleDefault(result, mod);
325
- return result;
326
- }
327
- function __importDefault(mod) {
328
- return (mod && mod.__esModule) ? mod : { default: mod };
329
- }
330
- function __classPrivateFieldGet(receiver, state, kind, f) {
331
- if (kind === "a" && !f)
332
- throw new TypeError("Private accessor was defined without a getter");
333
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
334
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
335
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
336
- }
337
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
338
- if (kind === "m")
339
- throw new TypeError("Private method is not writable");
340
- if (kind === "a" && !f)
341
- throw new TypeError("Private accessor was defined without a setter");
342
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
343
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
344
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
345
- }
346
-
347
- /** Unique symbol that is used to patch a property to a proxy zone. */
348
- var stateObservableSymbol = Symbol('ProxyZone_PATCHED#stateObservable');
349
- /**
350
- * Interceptor that can be set up in a `ProxyZone` instance. The interceptor
351
- * will keep track of the task state and emit whenever the state changes.
352
- *
353
- * This serves as a workaround for https://github.com/angular/angular/issues/32896.
354
- */
355
- var TaskStateZoneInterceptor = /** @class */ (function () {
356
- function TaskStateZoneInterceptor(_lastState) {
357
- this._lastState = _lastState;
358
- /** Subject that can be used to emit a new state change. */
359
- this._stateSubject = new rxjs.BehaviorSubject(this._lastState ? this._getTaskStateFromInternalZoneState(this._lastState) : { stable: true });
360
- /** Public observable that emits whenever the task state changes. */
361
- this.state = this._stateSubject;
362
- }
363
- /** This will be called whenever the task state changes in the intercepted zone. */
364
- TaskStateZoneInterceptor.prototype.onHasTask = function (delegate, current, target, hasTaskState) {
365
- if (current === target) {
366
- this._stateSubject.next(this._getTaskStateFromInternalZoneState(hasTaskState));
367
- }
368
- };
369
- /** Gets the task state from the internal ZoneJS task state. */
370
- TaskStateZoneInterceptor.prototype._getTaskStateFromInternalZoneState = function (state) {
371
- return { stable: !state.macroTask && !state.microTask };
372
- };
373
- /**
374
- * Sets up the custom task state Zone interceptor in the `ProxyZone`. Throws if
375
- * no `ProxyZone` could be found.
376
- * @returns an observable that emits whenever the task state changes.
377
- */
378
- TaskStateZoneInterceptor.setup = function () {
379
- if (Zone === undefined) {
380
- throw Error('Could not find ZoneJS. For test harnesses running in TestBed, ' +
381
- 'ZoneJS needs to be installed.');
382
- }
383
- // tslint:disable-next-line:variable-name
384
- var ProxyZoneSpec = Zone['ProxyZoneSpec'];
385
- // If there is no "ProxyZoneSpec" installed, we throw an error and recommend
386
- // setting up the proxy zone by pulling in the testing bundle.
387
- if (!ProxyZoneSpec) {
388
- throw Error('ProxyZoneSpec is needed for the test harnesses but could not be found. ' +
389
- 'Please make sure that your environment includes zone.js/dist/zone-testing.js');
390
- }
391
- // Ensure that there is a proxy zone instance set up, and get
392
- // a reference to the instance if present.
393
- var zoneSpec = ProxyZoneSpec.assertPresent();
394
- // If there already is a delegate registered in the proxy zone, and it
395
- // is type of the custom task state interceptor, we just use that state
396
- // observable. This allows us to only intercept Zone once per test
397
- // (similar to how `fakeAsync` or `async` work).
398
- if (zoneSpec[stateObservableSymbol]) {
399
- return zoneSpec[stateObservableSymbol];
400
- }
401
- // Since we intercept on environment creation and the fixture has been
402
- // created before, we might have missed tasks scheduled before. Fortunately
403
- // the proxy zone keeps track of the previous task state, so we can just pass
404
- // this as initial state to the task zone interceptor.
405
- var interceptor = new TaskStateZoneInterceptor(zoneSpec.lastTaskState);
406
- var zoneSpecOnHasTask = zoneSpec.onHasTask.bind(zoneSpec);
407
- // We setup the task state interceptor in the `ProxyZone`. Note that we cannot register
408
- // the interceptor as a new proxy zone delegate because it would mean that other zone
409
- // delegates (e.g. `FakeAsyncTestZone` or `AsyncTestZone`) can accidentally overwrite/disable
410
- // our interceptor. Since we just intend to monitor the task state of the proxy zone, it is
411
- // sufficient to just patch the proxy zone. This also avoids that we interfere with the task
412
- // queue scheduling logic.
413
- zoneSpec.onHasTask = function () {
414
- var args = [];
415
- for (var _i = 0; _i < arguments.length; _i++) {
416
- args[_i] = arguments[_i];
417
- }
418
- zoneSpecOnHasTask.apply(void 0, __spreadArray([], __read(args)));
419
- interceptor.onHasTask.apply(interceptor, __spreadArray([], __read(args)));
420
- };
421
- return zoneSpec[stateObservableSymbol] = interceptor.state;
422
- };
423
- return TaskStateZoneInterceptor;
424
- }());
425
-
426
- /**
427
- * @license
428
- * Copyright Google LLC All Rights Reserved.
429
- *
430
- * Use of this source code is governed by an MIT-style license that can be
431
- * found in the LICENSE file at https://angular.io/license
432
- */
433
- /** Used to generate unique IDs for events. */
434
- var uniqueIds = 0;
435
- /**
436
- * Creates a browser MouseEvent with the specified options.
437
- * @docs-private
438
- */
439
- function createMouseEvent(type, clientX, clientY, button, modifiers) {
440
- if (clientX === void 0) { clientX = 0; }
441
- if (clientY === void 0) { clientY = 0; }
442
- if (button === void 0) { button = 0; }
443
- if (modifiers === void 0) { modifiers = {}; }
444
- // Note: We cannot determine the position of the mouse event based on the screen
445
- // because the dimensions and position of the browser window are not available
446
- // To provide reasonable `screenX` and `screenY` coordinates, we simply use the
447
- // client coordinates as if the browser is opened in fullscreen.
448
- var screenX = clientX;
449
- var screenY = clientY;
450
- var event = new MouseEvent(type, {
451
- bubbles: true,
452
- cancelable: true,
453
- view: window,
454
- detail: 0,
455
- relatedTarget: null,
456
- screenX: screenX,
457
- screenY: screenY,
458
- clientX: clientX,
459
- clientY: clientY,
460
- ctrlKey: modifiers.control,
461
- altKey: modifiers.alt,
462
- shiftKey: modifiers.shift,
463
- metaKey: modifiers.meta,
464
- button: button,
465
- buttons: 1,
466
- });
467
- // The `MouseEvent` constructor doesn't allow us to pass these properties into the constructor.
468
- // Override them to `1`, because they're used for fake screen reader event detection.
469
- defineReadonlyEventProperty(event, 'offsetX', 1);
470
- defineReadonlyEventProperty(event, 'offsetY', 1);
471
- return event;
472
- }
473
- /**
474
- * Creates a browser `PointerEvent` with the specified options. Pointer events
475
- * by default will appear as if they are the primary pointer of their type.
476
- * https://www.w3.org/TR/pointerevents2/#dom-pointerevent-isprimary.
477
- *
478
- * For example, if pointer events for a multi-touch interaction are created, the non-primary
479
- * pointer touches would need to be represented by non-primary pointer events.
480
- *
481
- * @docs-private
482
- */
483
- function createPointerEvent(type, clientX, clientY, options) {
484
- if (clientX === void 0) { clientX = 0; }
485
- if (clientY === void 0) { clientY = 0; }
486
- if (options === void 0) { options = { isPrimary: true }; }
487
- return new PointerEvent(type, Object.assign({ bubbles: true, cancelable: true, view: window, clientX: clientX, clientY: clientY }, options));
488
- }
489
- /**
490
- * Creates a browser TouchEvent with the specified pointer coordinates.
491
- * @docs-private
492
- */
493
- function createTouchEvent(type, pageX, pageY, clientX, clientY) {
494
- if (pageX === void 0) { pageX = 0; }
495
- if (pageY === void 0) { pageY = 0; }
496
- if (clientX === void 0) { clientX = 0; }
497
- if (clientY === void 0) { clientY = 0; }
498
- // We cannot use the `TouchEvent` or `Touch` because Firefox and Safari lack support.
499
- // TODO: Switch to the constructor API when it is available for Firefox and Safari.
500
- var event = document.createEvent('UIEvent');
501
- var touchDetails = { pageX: pageX, pageY: pageY, clientX: clientX, clientY: clientY, identifier: uniqueIds++ };
502
- // TS3.6 removes the initUIEvent method and suggests porting to "new UIEvent()".
503
- event.initUIEvent(type, true, true, window, 0);
504
- // Most of the browsers don't have a "initTouchEvent" method that can be used to define
505
- // the touch details.
506
- defineReadonlyEventProperty(event, 'touches', [touchDetails]);
507
- defineReadonlyEventProperty(event, 'targetTouches', [touchDetails]);
508
- defineReadonlyEventProperty(event, 'changedTouches', [touchDetails]);
509
- return event;
510
- }
511
- /**
512
- * Creates a keyboard event with the specified key and modifiers.
513
- * @docs-private
514
- */
515
- function createKeyboardEvent(type, keyCode, key, modifiers) {
516
- if (keyCode === void 0) { keyCode = 0; }
517
- if (key === void 0) { key = ''; }
518
- if (modifiers === void 0) { modifiers = {}; }
519
- return new KeyboardEvent(type, {
520
- bubbles: true,
521
- cancelable: true,
522
- view: window,
523
- keyCode: keyCode,
524
- key: key,
525
- shiftKey: modifiers.shift,
526
- metaKey: modifiers.meta,
527
- altKey: modifiers.alt,
528
- ctrlKey: modifiers.control,
529
- });
530
- }
531
- /**
532
- * Creates a fake event object with any desired event type.
533
- * @docs-private
534
- */
535
- function createFakeEvent(type, bubbles, cancelable) {
536
- if (bubbles === void 0) { bubbles = false; }
537
- if (cancelable === void 0) { cancelable = true; }
538
- return new Event(type, { bubbles: bubbles, cancelable: cancelable });
539
- }
540
- /**
541
- * Defines a readonly property on the given event object. Readonly properties on an event object
542
- * are always set as configurable as that matches default readonly properties for DOM event objects.
543
- */
544
- function defineReadonlyEventProperty(event, propertyName, value) {
545
- Object.defineProperty(event, propertyName, { get: function () { return value; }, configurable: true });
546
- }
547
-
548
- /**
549
- * @license
550
- * Copyright Google LLC All Rights Reserved.
551
- *
552
- * Use of this source code is governed by an MIT-style license that can be
553
- * found in the LICENSE file at https://angular.io/license
554
- */
555
- /**
556
- * Utility to dispatch any event on a Node.
557
- * @docs-private
558
- */
559
- function dispatchEvent(node, event) {
560
- node.dispatchEvent(event);
561
- return event;
562
- }
563
- /**
564
- * Shorthand to dispatch a fake event on a specified node.
565
- * @docs-private
566
- */
567
- function dispatchFakeEvent(node, type, bubbles) {
568
- return dispatchEvent(node, createFakeEvent(type, bubbles));
569
- }
570
- /**
571
- * Shorthand to dispatch a keyboard event with a specified key code and
572
- * optional modifiers.
573
- * @docs-private
574
- */
575
- function dispatchKeyboardEvent(node, type, keyCode, key, modifiers) {
576
- return dispatchEvent(node, createKeyboardEvent(type, keyCode, key, modifiers));
577
- }
578
- /**
579
- * Shorthand to dispatch a mouse event on the specified coordinates.
580
- * @docs-private
581
- */
582
- function dispatchMouseEvent(node, type, clientX, clientY, button, modifiers) {
583
- if (clientX === void 0) { clientX = 0; }
584
- if (clientY === void 0) { clientY = 0; }
585
- return dispatchEvent(node, createMouseEvent(type, clientX, clientY, button, modifiers));
586
- }
587
- /**
588
- * Shorthand to dispatch a pointer event on the specified coordinates.
589
- * @docs-private
590
- */
591
- function dispatchPointerEvent(node, type, clientX, clientY, options) {
592
- if (clientX === void 0) { clientX = 0; }
593
- if (clientY === void 0) { clientY = 0; }
594
- return dispatchEvent(node, createPointerEvent(type, clientX, clientY, options));
595
- }
596
- /**
597
- * Shorthand to dispatch a touch event on the specified coordinates.
598
- * @docs-private
599
- */
600
- function dispatchTouchEvent(node, type, pageX, pageY, clientX, clientY) {
601
- if (pageX === void 0) { pageX = 0; }
602
- if (pageY === void 0) { pageY = 0; }
603
- if (clientX === void 0) { clientX = 0; }
604
- if (clientY === void 0) { clientY = 0; }
605
- return dispatchEvent(node, createTouchEvent(type, pageX, pageY, clientX, clientY));
606
- }
607
-
608
- /**
609
- * @license
610
- * Copyright Google LLC All Rights Reserved.
611
- *
612
- * Use of this source code is governed by an MIT-style license that can be
613
- * found in the LICENSE file at https://angular.io/license
614
- */
615
- function triggerFocusChange(element, event) {
616
- var eventFired = false;
617
- var handler = function () { return eventFired = true; };
618
- element.addEventListener(event, handler);
619
- element[event]();
620
- element.removeEventListener(event, handler);
621
- if (!eventFired) {
622
- dispatchFakeEvent(element, event);
623
- }
624
- }
625
- /**
626
- * Patches an elements focus and blur methods to emit events consistently and predictably.
627
- * This is necessary, because some browsers can call the focus handlers asynchronously,
628
- * while others won't fire them at all if the browser window is not focused.
629
- * @docs-private
630
- */
631
- // TODO: Check if this element focus patching is still needed for local testing,
632
- // where browser is not necessarily focused.
633
- function patchElementFocus(element) {
634
- element.focus = function () { return dispatchFakeEvent(element, 'focus'); };
635
- element.blur = function () { return dispatchFakeEvent(element, 'blur'); };
636
- }
637
- /** @docs-private */
638
- function triggerFocus(element) {
639
- triggerFocusChange(element, 'focus');
640
- }
641
- /** @docs-private */
642
- function triggerBlur(element) {
643
- triggerFocusChange(element, 'blur');
644
- }
645
-
646
- /** Input types for which the value can be entered incrementally. */
647
- var incrementalInputTypes = new Set(['text', 'email', 'hidden', 'password', 'search', 'tel', 'url']);
648
- /**
649
- * Checks whether the given Element is a text input element.
650
- * @docs-private
651
- */
652
- function isTextInput(element) {
653
- var nodeName = element.nodeName.toLowerCase();
654
- return nodeName === 'input' || nodeName === 'textarea';
655
- }
656
- function typeInElement(element) {
657
- var e_1, _a;
658
- var modifiersAndKeys = [];
659
- for (var _i = 1; _i < arguments.length; _i++) {
660
- modifiersAndKeys[_i - 1] = arguments[_i];
661
- }
662
- var first = modifiersAndKeys[0];
663
- var modifiers;
664
- var rest;
665
- if (typeof first !== 'string' && first.keyCode === undefined && first.key === undefined) {
666
- modifiers = first;
667
- rest = modifiersAndKeys.slice(1);
668
- }
669
- else {
670
- modifiers = {};
671
- rest = modifiersAndKeys;
672
- }
673
- var isInput = isTextInput(element);
674
- var inputType = element.getAttribute('type') || 'text';
675
- var keys = rest
676
- .map(function (k) { return typeof k === 'string' ?
677
- k.split('').map(function (c) { return ({ keyCode: c.toUpperCase().charCodeAt(0), key: c }); }) : [k]; })
678
- .reduce(function (arr, k) { return arr.concat(k); }, []);
679
- // We simulate the user typing in a value by incrementally assigning the value below. The problem
680
- // is that for some input types, the browser won't allow for an invalid value to be set via the
681
- // `value` property which will always be the case when going character-by-character. If we detect
682
- // such an input, we have to set the value all at once or listeners to the `input` event (e.g.
683
- // the `ReactiveFormsModule` uses such an approach) won't receive the correct value.
684
- var enterValueIncrementally = inputType === 'number' && keys.length > 0 ?
685
- // The value can be set character by character in number inputs if it doesn't have any decimals.
686
- keys.every(function (key) { return key.key !== '.' && key.keyCode !== keyCodes.PERIOD; }) :
687
- incrementalInputTypes.has(inputType);
688
- triggerFocus(element);
689
- // When we aren't entering the value incrementally, assign it all at once ahead
690
- // of time so that any listeners to the key events below will have access to it.
691
- if (!enterValueIncrementally) {
692
- element.value = keys.reduce(function (value, key) { return value + (key.key || ''); }, '');
693
- }
694
- try {
695
- for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
696
- var key = keys_1_1.value;
697
- dispatchKeyboardEvent(element, 'keydown', key.keyCode, key.key, modifiers);
698
- dispatchKeyboardEvent(element, 'keypress', key.keyCode, key.key, modifiers);
699
- if (isInput && key.key && key.key.length === 1) {
700
- if (enterValueIncrementally) {
701
- element.value += key.key;
702
- dispatchFakeEvent(element, 'input');
703
- }
704
- }
705
- dispatchKeyboardEvent(element, 'keyup', key.keyCode, key.key, modifiers);
706
- }
707
- }
708
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
709
- finally {
710
- try {
711
- if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1);
712
- }
713
- finally { if (e_1) throw e_1.error; }
714
- }
715
- // Since we weren't dispatching `input` events while sending the keys, we have to do it now.
716
- if (!enterValueIncrementally) {
717
- dispatchFakeEvent(element, 'input');
718
- }
719
- }
720
- /**
721
- * Clears the text in an input or textarea element.
722
- * @docs-private
723
- */
724
- function clearElement(element) {
725
- triggerFocus(element);
726
- element.value = '';
727
- dispatchFakeEvent(element, 'input');
728
- }
729
-
730
- /**
731
- * @license
732
- * Copyright Google LLC All Rights Reserved.
733
- *
734
- * Use of this source code is governed by an MIT-style license that can be
735
- * found in the LICENSE file at https://angular.io/license
736
- */
737
-
738
- var _a;
739
- /** Maps `TestKey` constants to the `keyCode` and `key` values used by native browser events. */
740
- var keyMap = (_a = {},
741
- _a[testing.TestKey.BACKSPACE] = { keyCode: keyCodes__namespace.BACKSPACE, key: 'Backspace' },
742
- _a[testing.TestKey.TAB] = { keyCode: keyCodes__namespace.TAB, key: 'Tab' },
743
- _a[testing.TestKey.ENTER] = { keyCode: keyCodes__namespace.ENTER, key: 'Enter' },
744
- _a[testing.TestKey.SHIFT] = { keyCode: keyCodes__namespace.SHIFT, key: 'Shift' },
745
- _a[testing.TestKey.CONTROL] = { keyCode: keyCodes__namespace.CONTROL, key: 'Control' },
746
- _a[testing.TestKey.ALT] = { keyCode: keyCodes__namespace.ALT, key: 'Alt' },
747
- _a[testing.TestKey.ESCAPE] = { keyCode: keyCodes__namespace.ESCAPE, key: 'Escape' },
748
- _a[testing.TestKey.PAGE_UP] = { keyCode: keyCodes__namespace.PAGE_UP, key: 'PageUp' },
749
- _a[testing.TestKey.PAGE_DOWN] = { keyCode: keyCodes__namespace.PAGE_DOWN, key: 'PageDown' },
750
- _a[testing.TestKey.END] = { keyCode: keyCodes__namespace.END, key: 'End' },
751
- _a[testing.TestKey.HOME] = { keyCode: keyCodes__namespace.HOME, key: 'Home' },
752
- _a[testing.TestKey.LEFT_ARROW] = { keyCode: keyCodes__namespace.LEFT_ARROW, key: 'ArrowLeft' },
753
- _a[testing.TestKey.UP_ARROW] = { keyCode: keyCodes__namespace.UP_ARROW, key: 'ArrowUp' },
754
- _a[testing.TestKey.RIGHT_ARROW] = { keyCode: keyCodes__namespace.RIGHT_ARROW, key: 'ArrowRight' },
755
- _a[testing.TestKey.DOWN_ARROW] = { keyCode: keyCodes__namespace.DOWN_ARROW, key: 'ArrowDown' },
756
- _a[testing.TestKey.INSERT] = { keyCode: keyCodes__namespace.INSERT, key: 'Insert' },
757
- _a[testing.TestKey.DELETE] = { keyCode: keyCodes__namespace.DELETE, key: 'Delete' },
758
- _a[testing.TestKey.F1] = { keyCode: keyCodes__namespace.F1, key: 'F1' },
759
- _a[testing.TestKey.F2] = { keyCode: keyCodes__namespace.F2, key: 'F2' },
760
- _a[testing.TestKey.F3] = { keyCode: keyCodes__namespace.F3, key: 'F3' },
761
- _a[testing.TestKey.F4] = { keyCode: keyCodes__namespace.F4, key: 'F4' },
762
- _a[testing.TestKey.F5] = { keyCode: keyCodes__namespace.F5, key: 'F5' },
763
- _a[testing.TestKey.F6] = { keyCode: keyCodes__namespace.F6, key: 'F6' },
764
- _a[testing.TestKey.F7] = { keyCode: keyCodes__namespace.F7, key: 'F7' },
765
- _a[testing.TestKey.F8] = { keyCode: keyCodes__namespace.F8, key: 'F8' },
766
- _a[testing.TestKey.F9] = { keyCode: keyCodes__namespace.F9, key: 'F9' },
767
- _a[testing.TestKey.F10] = { keyCode: keyCodes__namespace.F10, key: 'F10' },
768
- _a[testing.TestKey.F11] = { keyCode: keyCodes__namespace.F11, key: 'F11' },
769
- _a[testing.TestKey.F12] = { keyCode: keyCodes__namespace.F12, key: 'F12' },
770
- _a[testing.TestKey.META] = { keyCode: keyCodes__namespace.META, key: 'Meta' },
771
- _a);
772
- /** A `TestElement` implementation for unit tests. */
773
- var UnitTestElement = /** @class */ (function () {
774
- function UnitTestElement(element, _stabilize) {
775
- this.element = element;
776
- this._stabilize = _stabilize;
777
- }
778
- /** Blur the element. */
779
- UnitTestElement.prototype.blur = function () {
780
- return __awaiter(this, void 0, void 0, function () {
781
- return __generator(this, function (_a) {
782
- switch (_a.label) {
783
- case 0:
784
- triggerBlur(this.element);
785
- return [4 /*yield*/, this._stabilize()];
786
- case 1:
787
- _a.sent();
788
- return [2 /*return*/];
789
- }
790
- });
791
- });
792
- };
793
- /** Clear the element's input (for input and textarea elements only). */
794
- UnitTestElement.prototype.clear = function () {
795
- return __awaiter(this, void 0, void 0, function () {
796
- return __generator(this, function (_a) {
797
- switch (_a.label) {
798
- case 0:
799
- if (!isTextInput(this.element)) {
800
- throw Error('Attempting to clear an invalid element');
801
- }
802
- clearElement(this.element);
803
- return [4 /*yield*/, this._stabilize()];
804
- case 1:
805
- _a.sent();
806
- return [2 /*return*/];
807
- }
808
- });
809
- });
810
- };
811
- UnitTestElement.prototype.click = function () {
812
- var args = [];
813
- for (var _i = 0; _i < arguments.length; _i++) {
814
- args[_i] = arguments[_i];
815
- }
816
- return __awaiter(this, void 0, void 0, function () {
817
- return __generator(this, function (_a) {
818
- switch (_a.label) {
819
- case 0: return [4 /*yield*/, this._dispatchMouseEventSequence('click', args, 0)];
820
- case 1:
821
- _a.sent();
822
- return [4 /*yield*/, this._stabilize()];
823
- case 2:
824
- _a.sent();
825
- return [2 /*return*/];
826
- }
827
- });
828
- });
829
- };
830
- UnitTestElement.prototype.rightClick = function () {
831
- var args = [];
832
- for (var _i = 0; _i < arguments.length; _i++) {
833
- args[_i] = arguments[_i];
834
- }
835
- return __awaiter(this, void 0, void 0, function () {
836
- return __generator(this, function (_a) {
837
- switch (_a.label) {
838
- case 0: return [4 /*yield*/, this._dispatchMouseEventSequence('contextmenu', args, 2)];
839
- case 1:
840
- _a.sent();
841
- return [4 /*yield*/, this._stabilize()];
842
- case 2:
843
- _a.sent();
844
- return [2 /*return*/];
845
- }
846
- });
847
- });
848
- };
849
- /** Focus the element. */
850
- UnitTestElement.prototype.focus = function () {
851
- return __awaiter(this, void 0, void 0, function () {
852
- return __generator(this, function (_a) {
853
- switch (_a.label) {
854
- case 0:
855
- triggerFocus(this.element);
856
- return [4 /*yield*/, this._stabilize()];
857
- case 1:
858
- _a.sent();
859
- return [2 /*return*/];
860
- }
861
- });
862
- });
863
- };
864
- /** Get the computed value of the given CSS property for the element. */
865
- UnitTestElement.prototype.getCssValue = function (property) {
866
- return __awaiter(this, void 0, void 0, function () {
867
- return __generator(this, function (_a) {
868
- switch (_a.label) {
869
- case 0: return [4 /*yield*/, this._stabilize()];
870
- case 1:
871
- _a.sent();
872
- // TODO(mmalerba): Consider adding value normalization if we run into common cases where its
873
- // needed.
874
- return [2 /*return*/, getComputedStyle(this.element).getPropertyValue(property)];
875
- }
876
- });
877
- });
878
- };
879
- /** Hovers the mouse over the element. */
880
- UnitTestElement.prototype.hover = function () {
881
- return __awaiter(this, void 0, void 0, function () {
882
- return __generator(this, function (_a) {
883
- switch (_a.label) {
884
- case 0:
885
- this._dispatchPointerEventIfSupported('pointerenter');
886
- dispatchMouseEvent(this.element, 'mouseenter');
887
- return [4 /*yield*/, this._stabilize()];
888
- case 1:
889
- _a.sent();
890
- return [2 /*return*/];
891
- }
892
- });
893
- });
894
- };
895
- /** Moves the mouse away from the element. */
896
- UnitTestElement.prototype.mouseAway = function () {
897
- return __awaiter(this, void 0, void 0, function () {
898
- return __generator(this, function (_a) {
899
- switch (_a.label) {
900
- case 0:
901
- this._dispatchPointerEventIfSupported('pointerleave');
902
- dispatchMouseEvent(this.element, 'mouseleave');
903
- return [4 /*yield*/, this._stabilize()];
904
- case 1:
905
- _a.sent();
906
- return [2 /*return*/];
907
- }
908
- });
909
- });
910
- };
911
- UnitTestElement.prototype.sendKeys = function () {
912
- var modifiersAndKeys = [];
913
- for (var _i = 0; _i < arguments.length; _i++) {
914
- modifiersAndKeys[_i] = arguments[_i];
915
- }
916
- return __awaiter(this, void 0, void 0, function () {
917
- var args;
918
- return __generator(this, function (_a) {
919
- switch (_a.label) {
920
- case 0:
921
- args = modifiersAndKeys.map(function (k) { return typeof k === 'number' ? keyMap[k] : k; });
922
- typeInElement.apply(void 0, __spreadArray([this.element], __read(args)));
923
- return [4 /*yield*/, this._stabilize()];
924
- case 1:
925
- _a.sent();
926
- return [2 /*return*/];
927
- }
928
- });
929
- });
930
- };
931
- /**
932
- * Gets the text from the element.
933
- * @param options Options that affect what text is included.
934
- */
935
- UnitTestElement.prototype.text = function (options) {
936
- return __awaiter(this, void 0, void 0, function () {
937
- return __generator(this, function (_a) {
938
- switch (_a.label) {
939
- case 0: return [4 /*yield*/, this._stabilize()];
940
- case 1:
941
- _a.sent();
942
- if (options === null || options === void 0 ? void 0 : options.exclude) {
943
- return [2 /*return*/, testing._getTextWithExcludedElements(this.element, options.exclude)];
944
- }
945
- return [2 /*return*/, (this.element.textContent || '').trim()];
946
- }
947
- });
948
- });
949
- };
950
- /** Gets the value for the given attribute from the element. */
951
- UnitTestElement.prototype.getAttribute = function (name) {
952
- return __awaiter(this, void 0, void 0, function () {
953
- return __generator(this, function (_a) {
954
- switch (_a.label) {
955
- case 0: return [4 /*yield*/, this._stabilize()];
956
- case 1:
957
- _a.sent();
958
- return [2 /*return*/, this.element.getAttribute(name)];
959
- }
960
- });
961
- });
962
- };
963
- /** Checks whether the element has the given class. */
964
- UnitTestElement.prototype.hasClass = function (name) {
965
- return __awaiter(this, void 0, void 0, function () {
966
- return __generator(this, function (_a) {
967
- switch (_a.label) {
968
- case 0: return [4 /*yield*/, this._stabilize()];
969
- case 1:
970
- _a.sent();
971
- return [2 /*return*/, this.element.classList.contains(name)];
972
- }
973
- });
974
- });
975
- };
976
- /** Gets the dimensions of the element. */
977
- UnitTestElement.prototype.getDimensions = function () {
978
- return __awaiter(this, void 0, void 0, function () {
979
- return __generator(this, function (_a) {
980
- switch (_a.label) {
981
- case 0: return [4 /*yield*/, this._stabilize()];
982
- case 1:
983
- _a.sent();
984
- return [2 /*return*/, this.element.getBoundingClientRect()];
985
- }
986
- });
987
- });
988
- };
989
- /** Gets the value of a property of an element. */
990
- UnitTestElement.prototype.getProperty = function (name) {
991
- return __awaiter(this, void 0, void 0, function () {
992
- return __generator(this, function (_a) {
993
- switch (_a.label) {
994
- case 0: return [4 /*yield*/, this._stabilize()];
995
- case 1:
996
- _a.sent();
997
- return [2 /*return*/, this.element[name]];
998
- }
999
- });
1000
- });
1001
- };
1002
- /** Sets the value of a property of an input. */
1003
- UnitTestElement.prototype.setInputValue = function (value) {
1004
- return __awaiter(this, void 0, void 0, function () {
1005
- return __generator(this, function (_a) {
1006
- switch (_a.label) {
1007
- case 0:
1008
- this.element.value = value;
1009
- return [4 /*yield*/, this._stabilize()];
1010
- case 1:
1011
- _a.sent();
1012
- return [2 /*return*/];
1013
- }
1014
- });
1015
- });
1016
- };
1017
- /** Selects the options at the specified indexes inside of a native `select` element. */
1018
- UnitTestElement.prototype.selectOptions = function () {
1019
- var optionIndexes = [];
1020
- for (var _i = 0; _i < arguments.length; _i++) {
1021
- optionIndexes[_i] = arguments[_i];
1022
- }
1023
- return __awaiter(this, void 0, void 0, function () {
1024
- var hasChanged, options, indexes, i, option, wasSelected;
1025
- return __generator(this, function (_a) {
1026
- switch (_a.label) {
1027
- case 0:
1028
- hasChanged = false;
1029
- options = this.element.querySelectorAll('option');
1030
- indexes = new Set(optionIndexes);
1031
- for (i = 0; i < options.length; i++) {
1032
- option = options[i];
1033
- wasSelected = option.selected;
1034
- // We have to go through `option.selected`, because `HTMLSelectElement.value` doesn't
1035
- // allow for multiple options to be selected, even in `multiple` mode.
1036
- option.selected = indexes.has(i);
1037
- if (option.selected !== wasSelected) {
1038
- hasChanged = true;
1039
- dispatchFakeEvent(this.element, 'change');
1040
- }
1041
- }
1042
- if (!hasChanged) return [3 /*break*/, 2];
1043
- return [4 /*yield*/, this._stabilize()];
1044
- case 1:
1045
- _a.sent();
1046
- _a.label = 2;
1047
- case 2: return [2 /*return*/];
1048
- }
1049
- });
1050
- });
1051
- };
1052
- /** Checks whether this element matches the given selector. */
1053
- UnitTestElement.prototype.matchesSelector = function (selector) {
1054
- return __awaiter(this, void 0, void 0, function () {
1055
- var elementPrototype;
1056
- return __generator(this, function (_a) {
1057
- switch (_a.label) {
1058
- case 0: return [4 /*yield*/, this._stabilize()];
1059
- case 1:
1060
- _a.sent();
1061
- elementPrototype = Element.prototype;
1062
- return [2 /*return*/, (elementPrototype['matches'] || elementPrototype['msMatchesSelector'])
1063
- .call(this.element, selector)];
1064
- }
1065
- });
1066
- });
1067
- };
1068
- /** Checks whether the element is focused. */
1069
- UnitTestElement.prototype.isFocused = function () {
1070
- return __awaiter(this, void 0, void 0, function () {
1071
- return __generator(this, function (_a) {
1072
- switch (_a.label) {
1073
- case 0: return [4 /*yield*/, this._stabilize()];
1074
- case 1:
1075
- _a.sent();
1076
- return [2 /*return*/, document.activeElement === this.element];
1077
- }
1078
- });
1079
- });
1080
- };
1081
- /**
1082
- * Dispatches an event with a particular name.
1083
- * @param name Name of the event to be dispatched.
1084
- */
1085
- UnitTestElement.prototype.dispatchEvent = function (name, data) {
1086
- return __awaiter(this, void 0, void 0, function () {
1087
- var event;
1088
- return __generator(this, function (_a) {
1089
- switch (_a.label) {
1090
- case 0:
1091
- event = createFakeEvent(name);
1092
- if (data) {
1093
- // tslint:disable-next-line:ban Have to use `Object.assign` to preserve the original object.
1094
- Object.assign(event, data);
1095
- }
1096
- dispatchEvent(this.element, event);
1097
- return [4 /*yield*/, this._stabilize()];
1098
- case 1:
1099
- _a.sent();
1100
- return [2 /*return*/];
1101
- }
1102
- });
1103
- });
1104
- };
1105
- /**
1106
- * Dispatches a pointer event on the current element if the browser supports it.
1107
- * @param name Name of the pointer event to be dispatched.
1108
- * @param clientX Coordinate of the user's pointer along the X axis.
1109
- * @param clientY Coordinate of the user's pointer along the Y axis.
1110
- * @param button Mouse button that should be pressed when dispatching the event.
1111
- */
1112
- UnitTestElement.prototype._dispatchPointerEventIfSupported = function (name, clientX, clientY, button) {
1113
- // The latest versions of all browsers we support have the new `PointerEvent` API.
1114
- // Though since we capture the two most recent versions of these browsers, we also
1115
- // need to support Safari 12 at time of writing. Safari 12 does not have support for this,
1116
- // so we need to conditionally create and dispatch these events based on feature detection.
1117
- if (typeof PointerEvent !== 'undefined' && PointerEvent) {
1118
- dispatchPointerEvent(this.element, name, clientX, clientY, { isPrimary: true, button: button });
1119
- }
1120
- };
1121
- /** Dispatches all the events that are part of a mouse event sequence. */
1122
- UnitTestElement.prototype._dispatchMouseEventSequence = function (name, args, button) {
1123
- return __awaiter(this, void 0, void 0, function () {
1124
- var clientX, clientY, modifiers, _a, left, top, width, height, relativeX, relativeY;
1125
- return __generator(this, function (_b) {
1126
- switch (_b.label) {
1127
- case 0:
1128
- clientX = undefined;
1129
- clientY = undefined;
1130
- modifiers = {};
1131
- if (args.length && typeof args[args.length - 1] === 'object') {
1132
- modifiers = args.pop();
1133
- }
1134
- if (!args.length) return [3 /*break*/, 2];
1135
- return [4 /*yield*/, this.getDimensions()];
1136
- case 1:
1137
- _a = _b.sent(), left = _a.left, top = _a.top, width = _a.width, height = _a.height;
1138
- relativeX = args[0] === 'center' ? width / 2 : args[0];
1139
- relativeY = args[0] === 'center' ? height / 2 : args[1];
1140
- // Round the computed click position as decimal pixels are not
1141
- // supported by mouse events and could lead to unexpected results.
1142
- clientX = Math.round(left + relativeX);
1143
- clientY = Math.round(top + relativeY);
1144
- _b.label = 2;
1145
- case 2:
1146
- this._dispatchPointerEventIfSupported('pointerdown', clientX, clientY, button);
1147
- dispatchMouseEvent(this.element, 'mousedown', clientX, clientY, button, modifiers);
1148
- this._dispatchPointerEventIfSupported('pointerup', clientX, clientY, button);
1149
- dispatchMouseEvent(this.element, 'mouseup', clientX, clientY, button, modifiers);
1150
- dispatchMouseEvent(this.element, name, clientX, clientY, button, modifiers);
1151
- // This call to _stabilize should not be needed since the callers will already do that them-
1152
- // selves. Nevertheless it breaks some tests in g3 without it. It needs to be investigated
1153
- // why removing breaks those tests.
1154
- return [4 /*yield*/, this._stabilize()];
1155
- case 3:
1156
- // This call to _stabilize should not be needed since the callers will already do that them-
1157
- // selves. Nevertheless it breaks some tests in g3 without it. It needs to be investigated
1158
- // why removing breaks those tests.
1159
- _b.sent();
1160
- return [2 /*return*/];
1161
- }
1162
- });
1163
- });
1164
- };
1165
- return UnitTestElement;
1166
- }());
1167
-
1168
- /** The default environment options. */
1169
- var defaultEnvironmentOptions = {
1170
- queryFn: function (selector, root) { return root.querySelectorAll(selector); }
1171
- };
1172
- /** Whether auto change detection is currently disabled. */
1173
- var disableAutoChangeDetection = false;
1174
- /**
1175
- * The set of non-destroyed fixtures currently being used by `TestbedHarnessEnvironment` instances.
1176
- */
1177
- var activeFixtures = new Set();
1178
- /**
1179
- * Installs a handler for change detection batching status changes for a specific fixture.
1180
- * @param fixture The fixture to handle change detection batching for.
1181
- */
1182
- function installAutoChangeDetectionStatusHandler(fixture) {
1183
- if (!activeFixtures.size) {
1184
- testing.handleAutoChangeDetectionStatus(function (_a) {
1185
- var isDisabled = _a.isDisabled, onDetectChangesNow = _a.onDetectChangesNow;
1186
- disableAutoChangeDetection = isDisabled;
1187
- if (onDetectChangesNow) {
1188
- Promise.all(Array.from(activeFixtures).map(detectChanges)).then(onDetectChangesNow);
1189
- }
1190
- });
1191
- }
1192
- activeFixtures.add(fixture);
1193
- }
1194
- /**
1195
- * Uninstalls a handler for change detection batching status changes for a specific fixture.
1196
- * @param fixture The fixture to stop handling change detection batching for.
1197
- */
1198
- function uninstallAutoChangeDetectionStatusHandler(fixture) {
1199
- activeFixtures.delete(fixture);
1200
- if (!activeFixtures.size) {
1201
- testing.stopHandlingAutoChangeDetectionStatus();
1202
- }
1203
- }
1204
- /** Whether we are currently in the fake async zone. */
1205
- function isInFakeAsyncZone() {
1206
- return Zone.current.get('FakeAsyncTestZoneSpec') != null;
1207
- }
1208
- /**
1209
- * Triggers change detection for a specific fixture.
1210
- * @param fixture The fixture to trigger change detection for.
1211
- */
1212
- function detectChanges(fixture) {
1213
- return __awaiter(this, void 0, void 0, function () {
1214
- return __generator(this, function (_a) {
1215
- switch (_a.label) {
1216
- case 0:
1217
- fixture.detectChanges();
1218
- if (!isInFakeAsyncZone()) return [3 /*break*/, 1];
1219
- testing$1.flush();
1220
- return [3 /*break*/, 3];
1221
- case 1: return [4 /*yield*/, fixture.whenStable()];
1222
- case 2:
1223
- _a.sent();
1224
- _a.label = 3;
1225
- case 3: return [2 /*return*/];
1226
- }
1227
- });
1228
- });
1229
- }
1230
- /** A `HarnessEnvironment` implementation for Angular's Testbed. */
1231
- var TestbedHarnessEnvironment = /** @class */ (function (_super) {
1232
- __extends(TestbedHarnessEnvironment, _super);
1233
- function TestbedHarnessEnvironment(rawRootElement, _fixture, options) {
1234
- var _this = _super.call(this, rawRootElement) || this;
1235
- _this._fixture = _fixture;
1236
- /** Whether the environment has been destroyed. */
1237
- _this._destroyed = false;
1238
- _this._options = Object.assign(Object.assign({}, defaultEnvironmentOptions), options);
1239
- _this._taskState = TaskStateZoneInterceptor.setup();
1240
- installAutoChangeDetectionStatusHandler(_fixture);
1241
- _fixture.componentRef.onDestroy(function () {
1242
- uninstallAutoChangeDetectionStatusHandler(_fixture);
1243
- _this._destroyed = true;
1244
- });
1245
- return _this;
1246
- }
1247
- /** Creates a `HarnessLoader` rooted at the given fixture's root element. */
1248
- TestbedHarnessEnvironment.loader = function (fixture, options) {
1249
- return new TestbedHarnessEnvironment(fixture.nativeElement, fixture, options);
1250
- };
1251
- /**
1252
- * Creates a `HarnessLoader` at the document root. This can be used if harnesses are
1253
- * located outside of a fixture (e.g. overlays appended to the document body).
1254
- */
1255
- TestbedHarnessEnvironment.documentRootLoader = function (fixture, options) {
1256
- return new TestbedHarnessEnvironment(document.body, fixture, options);
1257
- };
1258
- /** Gets the native DOM element corresponding to the given TestElement. */
1259
- TestbedHarnessEnvironment.getNativeElement = function (el) {
1260
- if (el instanceof UnitTestElement) {
1261
- return el.element;
1262
- }
1263
- throw Error('This TestElement was not created by the TestbedHarnessEnvironment');
1264
- };
1265
- /**
1266
- * Creates an instance of the given harness type, using the fixture's root element as the
1267
- * harness's host element. This method should be used when creating a harness for the root element
1268
- * of a fixture, as components do not have the correct selector when they are created as the root
1269
- * of the fixture.
1270
- */
1271
- TestbedHarnessEnvironment.harnessForFixture = function (fixture, harnessType, options) {
1272
- return __awaiter(this, void 0, void 0, function () {
1273
- var environment;
1274
- return __generator(this, function (_a) {
1275
- switch (_a.label) {
1276
- case 0:
1277
- environment = new TestbedHarnessEnvironment(fixture.nativeElement, fixture, options);
1278
- return [4 /*yield*/, environment.forceStabilize()];
1279
- case 1:
1280
- _a.sent();
1281
- return [2 /*return*/, environment.createComponentHarness(harnessType, fixture.nativeElement)];
1282
- }
1283
- });
1284
- });
1285
- };
1286
- /**
1287
- * Flushes change detection and async tasks captured in the Angular zone.
1288
- * In most cases it should not be necessary to call this manually. However, there may be some edge
1289
- * cases where it is needed to fully flush animation events.
1290
- */
1291
- TestbedHarnessEnvironment.prototype.forceStabilize = function () {
1292
- return __awaiter(this, void 0, void 0, function () {
1293
- return __generator(this, function (_a) {
1294
- switch (_a.label) {
1295
- case 0:
1296
- if (!!disableAutoChangeDetection) return [3 /*break*/, 2];
1297
- if (this._destroyed) {
1298
- throw Error('Harness is attempting to use a fixture that has already been destroyed.');
1299
- }
1300
- return [4 /*yield*/, detectChanges(this._fixture)];
1301
- case 1:
1302
- _a.sent();
1303
- _a.label = 2;
1304
- case 2: return [2 /*return*/];
1305
- }
1306
- });
1307
- });
1308
- };
1309
- /**
1310
- * Waits for all scheduled or running async tasks to complete. This allows harness
1311
- * authors to wait for async tasks outside of the Angular zone.
1312
- */
1313
- TestbedHarnessEnvironment.prototype.waitForTasksOutsideAngular = function () {
1314
- return __awaiter(this, void 0, void 0, function () {
1315
- return __generator(this, function (_a) {
1316
- switch (_a.label) {
1317
- case 0:
1318
- // If we run in the fake async zone, we run "flush" to run any scheduled tasks. This
1319
- // ensures that the harnesses behave inside of the FakeAsyncTestZone similar to the
1320
- // "AsyncTestZone" and the root zone (i.e. neither fakeAsync or async). Note that we
1321
- // cannot just rely on the task state observable to become stable because the state will
1322
- // never change. This is because the task queue will be only drained if the fake async
1323
- // zone is being flushed.
1324
- if (isInFakeAsyncZone()) {
1325
- testing$1.flush();
1326
- }
1327
- // Wait until the task queue has been drained and the zone is stable. Note that
1328
- // we cannot rely on "fixture.whenStable" since it does not catch tasks scheduled
1329
- // outside of the Angular zone. For test harnesses, we want to ensure that the
1330
- // app is fully stabilized and therefore need to use our own zone interceptor.
1331
- return [4 /*yield*/, this._taskState.pipe(operators.takeWhile(function (state) { return !state.stable; })).toPromise()];
1332
- case 1:
1333
- // Wait until the task queue has been drained and the zone is stable. Note that
1334
- // we cannot rely on "fixture.whenStable" since it does not catch tasks scheduled
1335
- // outside of the Angular zone. For test harnesses, we want to ensure that the
1336
- // app is fully stabilized and therefore need to use our own zone interceptor.
1337
- _a.sent();
1338
- return [2 /*return*/];
1339
- }
1340
- });
1341
- });
1342
- };
1343
- /** Gets the root element for the document. */
1344
- TestbedHarnessEnvironment.prototype.getDocumentRoot = function () {
1345
- return document.body;
1346
- };
1347
- /** Creates a `TestElement` from a raw element. */
1348
- TestbedHarnessEnvironment.prototype.createTestElement = function (element) {
1349
- var _this = this;
1350
- return new UnitTestElement(element, function () { return _this.forceStabilize(); });
1351
- };
1352
- /** Creates a `HarnessLoader` rooted at the given raw element. */
1353
- TestbedHarnessEnvironment.prototype.createEnvironment = function (element) {
1354
- return new TestbedHarnessEnvironment(element, this._fixture, this._options);
1355
- };
1356
- /**
1357
- * Gets a list of all elements matching the given selector under this environment's root element.
1358
- */
1359
- TestbedHarnessEnvironment.prototype.getAllRawElements = function (selector) {
1360
- return __awaiter(this, void 0, void 0, function () {
1361
- return __generator(this, function (_a) {
1362
- switch (_a.label) {
1363
- case 0: return [4 /*yield*/, this.forceStabilize()];
1364
- case 1:
1365
- _a.sent();
1366
- return [2 /*return*/, Array.from(this._options.queryFn(selector, this.rawRootElement))];
1367
- }
1368
- });
1369
- });
1370
- };
1371
- return TestbedHarnessEnvironment;
1372
- }(testing.HarnessEnvironment));
1373
-
1374
- /**
1375
- * @license
1376
- * Copyright Google LLC All Rights Reserved.
1377
- *
1378
- * Use of this source code is governed by an MIT-style license that can be
1379
- * found in the LICENSE file at https://angular.io/license
1380
- */
1381
-
1382
- /**
1383
- * @license
1384
- * Copyright Google LLC All Rights Reserved.
1385
- *
1386
- * Use of this source code is governed by an MIT-style license that can be
1387
- * found in the LICENSE file at https://angular.io/license
1388
- */
1389
-
1390
- exports.TestbedHarnessEnvironment = TestbedHarnessEnvironment;
1391
- exports.UnitTestElement = UnitTestElement;
1392
-
1393
- Object.defineProperty(exports, '__esModule', { value: true });
1394
-
1395
- })));
1396
- //# sourceMappingURL=cdk-testing-testbed.umd.js.map