@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,1308 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/collections'), require('rxjs'), require('rxjs/operators'), require('@angular/core'), require('@angular/cdk/coercion'), require('@angular/cdk/bidi')) :
3
- typeof define === 'function' && define.amd ? define('@angular/cdk/tree', ['exports', '@angular/cdk/collections', 'rxjs', 'rxjs/operators', '@angular/core', '@angular/cdk/coercion', '@angular/cdk/bidi'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.tree = {}), global.ng.cdk.collections, global.rxjs, global.rxjs.operators, global.ng.core, global.ng.cdk.coercion, global.ng.cdk.bidi));
5
- }(this, (function (exports, collections, rxjs, operators, core, coercion, bidi) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
- var extendStatics = function (d, b) {
23
- extendStatics = Object.setPrototypeOf ||
24
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
- function (d, b) { for (var p in b)
26
- if (Object.prototype.hasOwnProperty.call(b, p))
27
- d[p] = b[p]; };
28
- return extendStatics(d, b);
29
- };
30
- function __extends(d, b) {
31
- if (typeof b !== "function" && b !== null)
32
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
- extendStatics(d, b);
34
- function __() { this.constructor = d; }
35
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
- }
37
- var __assign = function () {
38
- __assign = Object.assign || function __assign(t) {
39
- for (var s, i = 1, n = arguments.length; i < n; i++) {
40
- s = arguments[i];
41
- for (var p in s)
42
- if (Object.prototype.hasOwnProperty.call(s, p))
43
- t[p] = s[p];
44
- }
45
- return t;
46
- };
47
- return __assign.apply(this, arguments);
48
- };
49
- function __rest(s, e) {
50
- var t = {};
51
- for (var p in s)
52
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
53
- t[p] = s[p];
54
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
55
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
56
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
57
- t[p[i]] = s[p[i]];
58
- }
59
- return t;
60
- }
61
- function __decorate(decorators, target, key, desc) {
62
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
64
- r = Reflect.decorate(decorators, target, key, desc);
65
- else
66
- for (var i = decorators.length - 1; i >= 0; i--)
67
- if (d = decorators[i])
68
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
69
- return c > 3 && r && Object.defineProperty(target, key, r), r;
70
- }
71
- function __param(paramIndex, decorator) {
72
- return function (target, key) { decorator(target, key, paramIndex); };
73
- }
74
- function __metadata(metadataKey, metadataValue) {
75
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
76
- return Reflect.metadata(metadataKey, metadataValue);
77
- }
78
- function __awaiter(thisArg, _arguments, P, generator) {
79
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
80
- return new (P || (P = Promise))(function (resolve, reject) {
81
- function fulfilled(value) { try {
82
- step(generator.next(value));
83
- }
84
- catch (e) {
85
- reject(e);
86
- } }
87
- function rejected(value) { try {
88
- step(generator["throw"](value));
89
- }
90
- catch (e) {
91
- reject(e);
92
- } }
93
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
94
- step((generator = generator.apply(thisArg, _arguments || [])).next());
95
- });
96
- }
97
- function __generator(thisArg, body) {
98
- var _ = { label: 0, sent: function () { if (t[0] & 1)
99
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
100
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
101
- function verb(n) { return function (v) { return step([n, v]); }; }
102
- function step(op) {
103
- if (f)
104
- throw new TypeError("Generator is already executing.");
105
- while (_)
106
- try {
107
- 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)
108
- return t;
109
- if (y = 0, t)
110
- op = [op[0] & 2, t.value];
111
- switch (op[0]) {
112
- case 0:
113
- case 1:
114
- t = op;
115
- break;
116
- case 4:
117
- _.label++;
118
- return { value: op[1], done: false };
119
- case 5:
120
- _.label++;
121
- y = op[1];
122
- op = [0];
123
- continue;
124
- case 7:
125
- op = _.ops.pop();
126
- _.trys.pop();
127
- continue;
128
- default:
129
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
130
- _ = 0;
131
- continue;
132
- }
133
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
134
- _.label = op[1];
135
- break;
136
- }
137
- if (op[0] === 6 && _.label < t[1]) {
138
- _.label = t[1];
139
- t = op;
140
- break;
141
- }
142
- if (t && _.label < t[2]) {
143
- _.label = t[2];
144
- _.ops.push(op);
145
- break;
146
- }
147
- if (t[2])
148
- _.ops.pop();
149
- _.trys.pop();
150
- continue;
151
- }
152
- op = body.call(thisArg, _);
153
- }
154
- catch (e) {
155
- op = [6, e];
156
- y = 0;
157
- }
158
- finally {
159
- f = t = 0;
160
- }
161
- if (op[0] & 5)
162
- throw op[1];
163
- return { value: op[0] ? op[1] : void 0, done: true };
164
- }
165
- }
166
- var __createBinding = Object.create ? (function (o, m, k, k2) {
167
- if (k2 === undefined)
168
- k2 = k;
169
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
170
- }) : (function (o, m, k, k2) {
171
- if (k2 === undefined)
172
- k2 = k;
173
- o[k2] = m[k];
174
- });
175
- function __exportStar(m, o) {
176
- for (var p in m)
177
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
178
- __createBinding(o, m, p);
179
- }
180
- function __values(o) {
181
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
182
- if (m)
183
- return m.call(o);
184
- if (o && typeof o.length === "number")
185
- return {
186
- next: function () {
187
- if (o && i >= o.length)
188
- o = void 0;
189
- return { value: o && o[i++], done: !o };
190
- }
191
- };
192
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
193
- }
194
- function __read(o, n) {
195
- var m = typeof Symbol === "function" && o[Symbol.iterator];
196
- if (!m)
197
- return o;
198
- var i = m.call(o), r, ar = [], e;
199
- try {
200
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
201
- ar.push(r.value);
202
- }
203
- catch (error) {
204
- e = { error: error };
205
- }
206
- finally {
207
- try {
208
- if (r && !r.done && (m = i["return"]))
209
- m.call(i);
210
- }
211
- finally {
212
- if (e)
213
- throw e.error;
214
- }
215
- }
216
- return ar;
217
- }
218
- /** @deprecated */
219
- function __spread() {
220
- for (var ar = [], i = 0; i < arguments.length; i++)
221
- ar = ar.concat(__read(arguments[i]));
222
- return ar;
223
- }
224
- /** @deprecated */
225
- function __spreadArrays() {
226
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
227
- s += arguments[i].length;
228
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
229
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
230
- r[k] = a[j];
231
- return r;
232
- }
233
- function __spreadArray(to, from, pack) {
234
- if (pack || arguments.length === 2)
235
- for (var i = 0, l = from.length, ar; i < l; i++) {
236
- if (ar || !(i in from)) {
237
- if (!ar)
238
- ar = Array.prototype.slice.call(from, 0, i);
239
- ar[i] = from[i];
240
- }
241
- }
242
- return to.concat(ar || Array.prototype.slice.call(from));
243
- }
244
- function __await(v) {
245
- return this instanceof __await ? (this.v = v, this) : new __await(v);
246
- }
247
- function __asyncGenerator(thisArg, _arguments, generator) {
248
- if (!Symbol.asyncIterator)
249
- throw new TypeError("Symbol.asyncIterator is not defined.");
250
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
251
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
252
- function verb(n) { if (g[n])
253
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
254
- function resume(n, v) { try {
255
- step(g[n](v));
256
- }
257
- catch (e) {
258
- settle(q[0][3], e);
259
- } }
260
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
261
- function fulfill(value) { resume("next", value); }
262
- function reject(value) { resume("throw", value); }
263
- function settle(f, v) { if (f(v), q.shift(), q.length)
264
- resume(q[0][0], q[0][1]); }
265
- }
266
- function __asyncDelegator(o) {
267
- var i, p;
268
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
269
- 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; }
270
- }
271
- function __asyncValues(o) {
272
- if (!Symbol.asyncIterator)
273
- throw new TypeError("Symbol.asyncIterator is not defined.");
274
- var m = o[Symbol.asyncIterator], i;
275
- 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);
276
- 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); }); }; }
277
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
278
- }
279
- function __makeTemplateObject(cooked, raw) {
280
- if (Object.defineProperty) {
281
- Object.defineProperty(cooked, "raw", { value: raw });
282
- }
283
- else {
284
- cooked.raw = raw;
285
- }
286
- return cooked;
287
- }
288
- ;
289
- var __setModuleDefault = Object.create ? (function (o, v) {
290
- Object.defineProperty(o, "default", { enumerable: true, value: v });
291
- }) : function (o, v) {
292
- o["default"] = v;
293
- };
294
- function __importStar(mod) {
295
- if (mod && mod.__esModule)
296
- return mod;
297
- var result = {};
298
- if (mod != null)
299
- for (var k in mod)
300
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
301
- __createBinding(result, mod, k);
302
- __setModuleDefault(result, mod);
303
- return result;
304
- }
305
- function __importDefault(mod) {
306
- return (mod && mod.__esModule) ? mod : { default: mod };
307
- }
308
- function __classPrivateFieldGet(receiver, state, kind, f) {
309
- if (kind === "a" && !f)
310
- throw new TypeError("Private accessor was defined without a getter");
311
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
312
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
313
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
314
- }
315
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
316
- if (kind === "m")
317
- throw new TypeError("Private method is not writable");
318
- if (kind === "a" && !f)
319
- throw new TypeError("Private accessor was defined without a setter");
320
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
321
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
322
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
323
- }
324
-
325
- /** Base tree control. It has basic toggle/expand/collapse operations on a single data node. */
326
- var BaseTreeControl = /** @class */ (function () {
327
- function BaseTreeControl() {
328
- /** A selection model with multi-selection to track expansion status. */
329
- this.expansionModel = new collections.SelectionModel(true);
330
- }
331
- /** Toggles one single data node's expanded/collapsed state. */
332
- BaseTreeControl.prototype.toggle = function (dataNode) {
333
- this.expansionModel.toggle(this._trackByValue(dataNode));
334
- };
335
- /** Expands one single data node. */
336
- BaseTreeControl.prototype.expand = function (dataNode) {
337
- this.expansionModel.select(this._trackByValue(dataNode));
338
- };
339
- /** Collapses one single data node. */
340
- BaseTreeControl.prototype.collapse = function (dataNode) {
341
- this.expansionModel.deselect(this._trackByValue(dataNode));
342
- };
343
- /** Whether a given data node is expanded or not. Returns true if the data node is expanded. */
344
- BaseTreeControl.prototype.isExpanded = function (dataNode) {
345
- return this.expansionModel.isSelected(this._trackByValue(dataNode));
346
- };
347
- /** Toggles a subtree rooted at `node` recursively. */
348
- BaseTreeControl.prototype.toggleDescendants = function (dataNode) {
349
- this.expansionModel.isSelected(this._trackByValue(dataNode)) ?
350
- this.collapseDescendants(dataNode) :
351
- this.expandDescendants(dataNode);
352
- };
353
- /** Collapse all dataNodes in the tree. */
354
- BaseTreeControl.prototype.collapseAll = function () {
355
- this.expansionModel.clear();
356
- };
357
- /** Expands a subtree rooted at given data node recursively. */
358
- BaseTreeControl.prototype.expandDescendants = function (dataNode) {
359
- var _a;
360
- var _this = this;
361
- var toBeProcessed = [dataNode];
362
- toBeProcessed.push.apply(toBeProcessed, __spreadArray([], __read(this.getDescendants(dataNode))));
363
- (_a = this.expansionModel).select.apply(_a, __spreadArray([], __read(toBeProcessed.map(function (value) { return _this._trackByValue(value); }))));
364
- };
365
- /** Collapses a subtree rooted at given data node recursively. */
366
- BaseTreeControl.prototype.collapseDescendants = function (dataNode) {
367
- var _a;
368
- var _this = this;
369
- var toBeProcessed = [dataNode];
370
- toBeProcessed.push.apply(toBeProcessed, __spreadArray([], __read(this.getDescendants(dataNode))));
371
- (_a = this.expansionModel).deselect.apply(_a, __spreadArray([], __read(toBeProcessed.map(function (value) { return _this._trackByValue(value); }))));
372
- };
373
- BaseTreeControl.prototype._trackByValue = function (value) {
374
- return this.trackBy ? this.trackBy(value) : value;
375
- };
376
- return BaseTreeControl;
377
- }());
378
-
379
- /** Flat tree control. Able to expand/collapse a subtree recursively for flattened tree. */
380
- var FlatTreeControl = /** @class */ (function (_super) {
381
- __extends(FlatTreeControl, _super);
382
- /** Construct with flat tree data node functions getLevel and isExpandable. */
383
- function FlatTreeControl(getLevel, isExpandable, options) {
384
- var _this = _super.call(this) || this;
385
- _this.getLevel = getLevel;
386
- _this.isExpandable = isExpandable;
387
- _this.options = options;
388
- if (_this.options) {
389
- _this.trackBy = _this.options.trackBy;
390
- }
391
- return _this;
392
- }
393
- /**
394
- * Gets a list of the data node's subtree of descendent data nodes.
395
- *
396
- * To make this working, the `dataNodes` of the TreeControl must be flattened tree nodes
397
- * with correct levels.
398
- */
399
- FlatTreeControl.prototype.getDescendants = function (dataNode) {
400
- var startIndex = this.dataNodes.indexOf(dataNode);
401
- var results = [];
402
- // Goes through flattened tree nodes in the `dataNodes` array, and get all descendants.
403
- // The level of descendants of a tree node must be greater than the level of the given
404
- // tree node.
405
- // If we reach a node whose level is equal to the level of the tree node, we hit a sibling.
406
- // If we reach a node whose level is greater than the level of the tree node, we hit a
407
- // sibling of an ancestor.
408
- for (var i = startIndex + 1; i < this.dataNodes.length && this.getLevel(dataNode) < this.getLevel(this.dataNodes[i]); i++) {
409
- results.push(this.dataNodes[i]);
410
- }
411
- return results;
412
- };
413
- /**
414
- * Expands all data nodes in the tree.
415
- *
416
- * To make this working, the `dataNodes` variable of the TreeControl must be set to all flattened
417
- * data nodes of the tree.
418
- */
419
- FlatTreeControl.prototype.expandAll = function () {
420
- var _a;
421
- var _this = this;
422
- (_a = this.expansionModel).select.apply(_a, __spreadArray([], __read(this.dataNodes.map(function (node) { return _this._trackByValue(node); }))));
423
- };
424
- return FlatTreeControl;
425
- }(BaseTreeControl));
426
-
427
- /** Nested tree control. Able to expand/collapse a subtree recursively for NestedNode type. */
428
- var NestedTreeControl = /** @class */ (function (_super) {
429
- __extends(NestedTreeControl, _super);
430
- /** Construct with nested tree function getChildren. */
431
- function NestedTreeControl(getChildren, options) {
432
- var _this = _super.call(this) || this;
433
- _this.getChildren = getChildren;
434
- _this.options = options;
435
- if (_this.options) {
436
- _this.trackBy = _this.options.trackBy;
437
- }
438
- return _this;
439
- }
440
- /**
441
- * Expands all dataNodes in the tree.
442
- *
443
- * To make this working, the `dataNodes` variable of the TreeControl must be set to all root level
444
- * data nodes of the tree.
445
- */
446
- NestedTreeControl.prototype.expandAll = function () {
447
- var _a;
448
- var _this = this;
449
- this.expansionModel.clear();
450
- var allNodes = this.dataNodes.reduce(function (accumulator, dataNode) { return __spreadArray(__spreadArray(__spreadArray([], __read(accumulator)), __read(_this.getDescendants(dataNode))), [dataNode]); }, []);
451
- (_a = this.expansionModel).select.apply(_a, __spreadArray([], __read(allNodes.map(function (node) { return _this._trackByValue(node); }))));
452
- };
453
- /** Gets a list of descendant dataNodes of a subtree rooted at given data node recursively. */
454
- NestedTreeControl.prototype.getDescendants = function (dataNode) {
455
- var descendants = [];
456
- this._getDescendants(descendants, dataNode);
457
- // Remove the node itself
458
- return descendants.splice(1);
459
- };
460
- /** A helper function to get descendants recursively. */
461
- NestedTreeControl.prototype._getDescendants = function (descendants, dataNode) {
462
- var _this = this;
463
- descendants.push(dataNode);
464
- var childrenNodes = this.getChildren(dataNode);
465
- if (Array.isArray(childrenNodes)) {
466
- childrenNodes.forEach(function (child) { return _this._getDescendants(descendants, child); });
467
- }
468
- else if (rxjs.isObservable(childrenNodes)) {
469
- // TypeScript as of version 3.5 doesn't seem to treat `Boolean` like a function that
470
- // returns a `boolean` specifically in the context of `filter`, so we manually clarify that.
471
- childrenNodes.pipe(operators.take(1), operators.filter(Boolean))
472
- .subscribe(function (children) {
473
- var e_1, _a;
474
- try {
475
- for (var children_1 = __values(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {
476
- var child = children_1_1.value;
477
- _this._getDescendants(descendants, child);
478
- }
479
- }
480
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
481
- finally {
482
- try {
483
- if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);
484
- }
485
- finally { if (e_1) throw e_1.error; }
486
- }
487
- });
488
- }
489
- };
490
- return NestedTreeControl;
491
- }(BaseTreeControl));
492
-
493
- /**
494
- * @license
495
- * Copyright Google LLC All Rights Reserved.
496
- *
497
- * Use of this source code is governed by an MIT-style license that can be
498
- * found in the LICENSE file at https://angular.io/license
499
- */
500
- /**
501
- * Injection token used to provide a `CdkTreeNode` to its outlet.
502
- * Used primarily to avoid circular imports.
503
- * @docs-private
504
- */
505
- var CDK_TREE_NODE_OUTLET_NODE = new core.InjectionToken('CDK_TREE_NODE_OUTLET_NODE');
506
- /**
507
- * Outlet for nested CdkNode. Put `[cdkTreeNodeOutlet]` on a tag to place children dataNodes
508
- * inside the outlet.
509
- */
510
- var CdkTreeNodeOutlet = /** @class */ (function () {
511
- function CdkTreeNodeOutlet(viewContainer, _node) {
512
- this.viewContainer = viewContainer;
513
- this._node = _node;
514
- }
515
- return CdkTreeNodeOutlet;
516
- }());
517
- CdkTreeNodeOutlet.decorators = [
518
- { type: core.Directive, args: [{
519
- selector: '[cdkTreeNodeOutlet]'
520
- },] }
521
- ];
522
- CdkTreeNodeOutlet.ctorParameters = function () { return [
523
- { type: core.ViewContainerRef },
524
- { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TREE_NODE_OUTLET_NODE,] }, { type: core.Optional }] }
525
- ]; };
526
-
527
- /**
528
- * @license
529
- * Copyright Google LLC All Rights Reserved.
530
- *
531
- * Use of this source code is governed by an MIT-style license that can be
532
- * found in the LICENSE file at https://angular.io/license
533
- */
534
- /** Context provided to the tree node component. */
535
- var CdkTreeNodeOutletContext = /** @class */ (function () {
536
- function CdkTreeNodeOutletContext(data) {
537
- this.$implicit = data;
538
- }
539
- return CdkTreeNodeOutletContext;
540
- }());
541
- /**
542
- * Data node definition for the CdkTree.
543
- * Captures the node's template and a when predicate that describes when this node should be used.
544
- */
545
- var CdkTreeNodeDef = /** @class */ (function () {
546
- /** @docs-private */
547
- function CdkTreeNodeDef(template) {
548
- this.template = template;
549
- }
550
- return CdkTreeNodeDef;
551
- }());
552
- CdkTreeNodeDef.decorators = [
553
- { type: core.Directive, args: [{
554
- selector: '[cdkTreeNodeDef]',
555
- inputs: [
556
- 'when: cdkTreeNodeDefWhen'
557
- ],
558
- },] }
559
- ];
560
- CdkTreeNodeDef.ctorParameters = function () { return [
561
- { type: core.TemplateRef }
562
- ]; };
563
-
564
- /**
565
- * @license
566
- * Copyright Google LLC All Rights Reserved.
567
- *
568
- * Use of this source code is governed by an MIT-style license that can be
569
- * found in the LICENSE file at https://angular.io/license
570
- */
571
- /**
572
- * Returns an error to be thrown when there is no usable data.
573
- * @docs-private
574
- */
575
- function getTreeNoValidDataSourceError() {
576
- return Error("A valid data source must be provided.");
577
- }
578
- /**
579
- * Returns an error to be thrown when there are multiple nodes that are missing a when function.
580
- * @docs-private
581
- */
582
- function getTreeMultipleDefaultNodeDefsError() {
583
- return Error("There can only be one default row without a when predicate function.");
584
- }
585
- /**
586
- * Returns an error to be thrown when there are no matching node defs for a particular set of data.
587
- * @docs-private
588
- */
589
- function getTreeMissingMatchingNodeDefError() {
590
- return Error("Could not find a matching node definition for the provided node data.");
591
- }
592
- /**
593
- * Returns an error to be thrown when there are tree control.
594
- * @docs-private
595
- */
596
- function getTreeControlMissingError() {
597
- return Error("Could not find a tree control for the tree.");
598
- }
599
- /**
600
- * Returns an error to be thrown when tree control did not implement functions for flat/nested node.
601
- * @docs-private
602
- */
603
- function getTreeControlFunctionsMissingError() {
604
- return Error("Could not find functions for nested/flat tree in tree control.");
605
- }
606
-
607
- /**
608
- * CDK tree component that connects with a data source to retrieve data of type `T` and renders
609
- * dataNodes with hierarchy. Updates the dataNodes when new data is provided by the data source.
610
- */
611
- var CdkTree = /** @class */ (function () {
612
- function CdkTree(_differs, _changeDetectorRef) {
613
- this._differs = _differs;
614
- this._changeDetectorRef = _changeDetectorRef;
615
- /** Subject that emits when the component has been destroyed. */
616
- this._onDestroy = new rxjs.Subject();
617
- /** Level of nodes */
618
- this._levels = new Map();
619
- // TODO(tinayuangao): Setup a listener for scrolling, emit the calculated view to viewChange.
620
- // Remove the MAX_VALUE in viewChange
621
- /**
622
- * Stream containing the latest information on what rows are being displayed on screen.
623
- * Can be used by the data source to as a heuristic of what data should be provided.
624
- */
625
- this.viewChange = new rxjs.BehaviorSubject({ start: 0, end: Number.MAX_VALUE });
626
- }
627
- Object.defineProperty(CdkTree.prototype, "dataSource", {
628
- /**
629
- * Provides a stream containing the latest data array to render. Influenced by the tree's
630
- * stream of view window (what dataNodes are currently on screen).
631
- * Data source can be an observable of data array, or a data array to render.
632
- */
633
- get: function () { return this._dataSource; },
634
- set: function (dataSource) {
635
- if (this._dataSource !== dataSource) {
636
- this._switchDataSource(dataSource);
637
- }
638
- },
639
- enumerable: false,
640
- configurable: true
641
- });
642
- CdkTree.prototype.ngOnInit = function () {
643
- this._dataDiffer = this._differs.find([]).create(this.trackBy);
644
- if (!this.treeControl && (typeof ngDevMode === 'undefined' || ngDevMode)) {
645
- throw getTreeControlMissingError();
646
- }
647
- };
648
- CdkTree.prototype.ngOnDestroy = function () {
649
- this._nodeOutlet.viewContainer.clear();
650
- this.viewChange.complete();
651
- this._onDestroy.next();
652
- this._onDestroy.complete();
653
- if (this._dataSource && typeof this._dataSource.disconnect === 'function') {
654
- this.dataSource.disconnect(this);
655
- }
656
- if (this._dataSubscription) {
657
- this._dataSubscription.unsubscribe();
658
- this._dataSubscription = null;
659
- }
660
- };
661
- CdkTree.prototype.ngAfterContentChecked = function () {
662
- var defaultNodeDefs = this._nodeDefs.filter(function (def) { return !def.when; });
663
- if (defaultNodeDefs.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {
664
- throw getTreeMultipleDefaultNodeDefsError();
665
- }
666
- this._defaultNodeDef = defaultNodeDefs[0];
667
- if (this.dataSource && this._nodeDefs && !this._dataSubscription) {
668
- this._observeRenderChanges();
669
- }
670
- };
671
- // TODO(tinayuangao): Work on keyboard traversal and actions, make sure it's working for RTL
672
- // and nested trees.
673
- /**
674
- * Switch to the provided data source by resetting the data and unsubscribing from the current
675
- * render change subscription if one exists. If the data source is null, interpret this by
676
- * clearing the node outlet. Otherwise start listening for new data.
677
- */
678
- CdkTree.prototype._switchDataSource = function (dataSource) {
679
- if (this._dataSource && typeof this._dataSource.disconnect === 'function') {
680
- this.dataSource.disconnect(this);
681
- }
682
- if (this._dataSubscription) {
683
- this._dataSubscription.unsubscribe();
684
- this._dataSubscription = null;
685
- }
686
- // Remove the all dataNodes if there is now no data source
687
- if (!dataSource) {
688
- this._nodeOutlet.viewContainer.clear();
689
- }
690
- this._dataSource = dataSource;
691
- if (this._nodeDefs) {
692
- this._observeRenderChanges();
693
- }
694
- };
695
- /** Set up a subscription for the data provided by the data source. */
696
- CdkTree.prototype._observeRenderChanges = function () {
697
- var _this = this;
698
- var dataStream;
699
- if (collections.isDataSource(this._dataSource)) {
700
- dataStream = this._dataSource.connect(this);
701
- }
702
- else if (rxjs.isObservable(this._dataSource)) {
703
- dataStream = this._dataSource;
704
- }
705
- else if (Array.isArray(this._dataSource)) {
706
- dataStream = rxjs.of(this._dataSource);
707
- }
708
- if (dataStream) {
709
- this._dataSubscription = dataStream.pipe(operators.takeUntil(this._onDestroy))
710
- .subscribe(function (data) { return _this.renderNodeChanges(data); });
711
- }
712
- else if (typeof ngDevMode === 'undefined' || ngDevMode) {
713
- throw getTreeNoValidDataSourceError();
714
- }
715
- };
716
- /** Check for changes made in the data and render each change (node added/removed/moved). */
717
- CdkTree.prototype.renderNodeChanges = function (data, dataDiffer, viewContainer, parentData) {
718
- var _this = this;
719
- if (dataDiffer === void 0) { dataDiffer = this._dataDiffer; }
720
- if (viewContainer === void 0) { viewContainer = this._nodeOutlet.viewContainer; }
721
- var changes = dataDiffer.diff(data);
722
- if (!changes) {
723
- return;
724
- }
725
- changes.forEachOperation(function (item, adjustedPreviousIndex, currentIndex) {
726
- if (item.previousIndex == null) {
727
- _this.insertNode(data[currentIndex], currentIndex, viewContainer, parentData);
728
- }
729
- else if (currentIndex == null) {
730
- viewContainer.remove(adjustedPreviousIndex);
731
- _this._levels.delete(item.item);
732
- }
733
- else {
734
- var view = viewContainer.get(adjustedPreviousIndex);
735
- viewContainer.move(view, currentIndex);
736
- }
737
- });
738
- this._changeDetectorRef.detectChanges();
739
- };
740
- /**
741
- * Finds the matching node definition that should be used for this node data. If there is only
742
- * one node definition, it is returned. Otherwise, find the node definition that has a when
743
- * predicate that returns true with the data. If none return true, return the default node
744
- * definition.
745
- */
746
- CdkTree.prototype._getNodeDef = function (data, i) {
747
- if (this._nodeDefs.length === 1) {
748
- return this._nodeDefs.first;
749
- }
750
- var nodeDef = this._nodeDefs.find(function (def) { return def.when && def.when(i, data); }) || this._defaultNodeDef;
751
- if (!nodeDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
752
- throw getTreeMissingMatchingNodeDefError();
753
- }
754
- return nodeDef;
755
- };
756
- /**
757
- * Create the embedded view for the data node template and place it in the correct index location
758
- * within the data node view container.
759
- */
760
- CdkTree.prototype.insertNode = function (nodeData, index, viewContainer, parentData) {
761
- var node = this._getNodeDef(nodeData, index);
762
- // Node context that will be provided to created embedded view
763
- var context = new CdkTreeNodeOutletContext(nodeData);
764
- // If the tree is flat tree, then use the `getLevel` function in flat tree control
765
- // Otherwise, use the level of parent node.
766
- if (this.treeControl.getLevel) {
767
- context.level = this.treeControl.getLevel(nodeData);
768
- }
769
- else if (typeof parentData !== 'undefined' && this._levels.has(parentData)) {
770
- context.level = this._levels.get(parentData) + 1;
771
- }
772
- else {
773
- context.level = 0;
774
- }
775
- this._levels.set(nodeData, context.level);
776
- // Use default tree nodeOutlet, or nested node's nodeOutlet
777
- var container = viewContainer ? viewContainer : this._nodeOutlet.viewContainer;
778
- container.createEmbeddedView(node.template, context, index);
779
- // Set the data to just created `CdkTreeNode`.
780
- // The `CdkTreeNode` created from `createEmbeddedView` will be saved in static variable
781
- // `mostRecentTreeNode`. We get it from static variable and pass the node data to it.
782
- if (CdkTreeNode.mostRecentTreeNode) {
783
- CdkTreeNode.mostRecentTreeNode.data = nodeData;
784
- }
785
- };
786
- return CdkTree;
787
- }());
788
- CdkTree.decorators = [
789
- { type: core.Component, args: [{
790
- selector: 'cdk-tree',
791
- exportAs: 'cdkTree',
792
- template: "<ng-container cdkTreeNodeOutlet></ng-container>",
793
- host: {
794
- 'class': 'cdk-tree',
795
- 'role': 'tree',
796
- },
797
- encapsulation: core.ViewEncapsulation.None,
798
- // The "OnPush" status for the `CdkTree` component is effectively a noop, so we are removing it.
799
- // The view for `CdkTree` consists entirely of templates declared in other views. As they are
800
- // declared elsewhere, they are checked when their declaration points are checked.
801
- // tslint:disable-next-line:validate-decorators
802
- changeDetection: core.ChangeDetectionStrategy.Default
803
- },] }
804
- ];
805
- CdkTree.ctorParameters = function () { return [
806
- { type: core.IterableDiffers },
807
- { type: core.ChangeDetectorRef }
808
- ]; };
809
- CdkTree.propDecorators = {
810
- dataSource: [{ type: core.Input }],
811
- treeControl: [{ type: core.Input }],
812
- trackBy: [{ type: core.Input }],
813
- _nodeOutlet: [{ type: core.ViewChild, args: [CdkTreeNodeOutlet, { static: true },] }],
814
- _nodeDefs: [{ type: core.ContentChildren, args: [CdkTreeNodeDef, {
815
- // We need to use `descendants: true`, because Ivy will no longer match
816
- // indirect descendants if it's left as false.
817
- descendants: true
818
- },] }]
819
- };
820
- /**
821
- * Tree node for CdkTree. It contains the data in the tree node.
822
- */
823
- var CdkTreeNode = /** @class */ (function () {
824
- function CdkTreeNode(_elementRef, _tree) {
825
- this._elementRef = _elementRef;
826
- this._tree = _tree;
827
- /** Subject that emits when the component has been destroyed. */
828
- this._destroyed = new rxjs.Subject();
829
- /** Emits when the node's data has changed. */
830
- this._dataChanges = new rxjs.Subject();
831
- CdkTreeNode.mostRecentTreeNode = this;
832
- // The classes are directly added here instead of in the host property because classes on
833
- // the host property are not inherited with View Engine. It is not set as a @HostBinding because
834
- // it is not set by the time it's children nodes try to read the class from it.
835
- // TODO: move to host after View Engine deprecation
836
- this._elementRef.nativeElement.classList.add('cdk-tree-node');
837
- this.role = 'treeitem';
838
- }
839
- Object.defineProperty(CdkTreeNode.prototype, "role", {
840
- /**
841
- * The role of the tree node.
842
- * @deprecated The correct role is 'treeitem', 'group' should not be used. This input will be
843
- * removed in a future version.
844
- * @breaking-change 12.0.0 Remove this input
845
- */
846
- get: function () { return 'treeitem'; },
847
- set: function (_role) {
848
- // TODO: move to host after View Engine deprecation
849
- this._elementRef.nativeElement.setAttribute('role', _role);
850
- },
851
- enumerable: false,
852
- configurable: true
853
- });
854
- Object.defineProperty(CdkTreeNode.prototype, "data", {
855
- /** The tree node's data. */
856
- get: function () { return this._data; },
857
- set: function (value) {
858
- if (value !== this._data) {
859
- this._data = value;
860
- this._setRoleFromData();
861
- this._dataChanges.next();
862
- }
863
- },
864
- enumerable: false,
865
- configurable: true
866
- });
867
- Object.defineProperty(CdkTreeNode.prototype, "isExpanded", {
868
- get: function () {
869
- return this._tree.treeControl.isExpanded(this._data);
870
- },
871
- enumerable: false,
872
- configurable: true
873
- });
874
- CdkTreeNode.prototype._setExpanded = function (_expanded) {
875
- this._isAriaExpanded = _expanded;
876
- this._elementRef.nativeElement.setAttribute('aria-expanded', "" + _expanded);
877
- };
878
- Object.defineProperty(CdkTreeNode.prototype, "level", {
879
- get: function () {
880
- // If the treeControl has a getLevel method, use it to get the level. Otherwise read the
881
- // aria-level off the parent node and use it as the level for this node (note aria-level is
882
- // 1-indexed, while this property is 0-indexed, so we don't need to increment).
883
- return this._tree.treeControl.getLevel ?
884
- this._tree.treeControl.getLevel(this._data) : this._parentNodeAriaLevel;
885
- },
886
- enumerable: false,
887
- configurable: true
888
- });
889
- CdkTreeNode.prototype.ngOnInit = function () {
890
- this._parentNodeAriaLevel = getParentNodeAriaLevel(this._elementRef.nativeElement);
891
- this._elementRef.nativeElement.setAttribute('aria-level', "" + (this.level + 1));
892
- };
893
- CdkTreeNode.prototype.ngDoCheck = function () {
894
- // aria-expanded is be set here because the expanded state is stored in the tree control and
895
- // the node isn't aware when the state is changed.
896
- // It is not set using a @HostBinding because they sometimes get lost with Mixin based classes.
897
- // TODO: move to host after View Engine deprecation
898
- if (this.isExpanded != this._isAriaExpanded) {
899
- this._setExpanded(this.isExpanded);
900
- }
901
- };
902
- CdkTreeNode.prototype.ngOnDestroy = function () {
903
- // If this is the last tree node being destroyed,
904
- // clear out the reference to avoid leaking memory.
905
- if (CdkTreeNode.mostRecentTreeNode === this) {
906
- CdkTreeNode.mostRecentTreeNode = null;
907
- }
908
- this._dataChanges.complete();
909
- this._destroyed.next();
910
- this._destroyed.complete();
911
- };
912
- /** Focuses the menu item. Implements for FocusableOption. */
913
- CdkTreeNode.prototype.focus = function () {
914
- this._elementRef.nativeElement.focus();
915
- };
916
- // TODO: role should eventually just be set in the component host
917
- CdkTreeNode.prototype._setRoleFromData = function () {
918
- if (!this._tree.treeControl.isExpandable && !this._tree.treeControl.getChildren &&
919
- (typeof ngDevMode === 'undefined' || ngDevMode)) {
920
- throw getTreeControlFunctionsMissingError();
921
- }
922
- this.role = 'treeitem';
923
- };
924
- return CdkTreeNode;
925
- }());
926
- /**
927
- * The most recently created `CdkTreeNode`. We save it in static variable so we can retrieve it
928
- * in `CdkTree` and set the data to it.
929
- */
930
- CdkTreeNode.mostRecentTreeNode = null;
931
- CdkTreeNode.decorators = [
932
- { type: core.Directive, args: [{
933
- selector: 'cdk-tree-node',
934
- exportAs: 'cdkTreeNode',
935
- },] }
936
- ];
937
- CdkTreeNode.ctorParameters = function () { return [
938
- { type: core.ElementRef },
939
- { type: CdkTree }
940
- ]; };
941
- CdkTreeNode.propDecorators = {
942
- role: [{ type: core.Input }]
943
- };
944
- function getParentNodeAriaLevel(nodeElement) {
945
- var parent = nodeElement.parentElement;
946
- while (parent && !isNodeElement(parent)) {
947
- parent = parent.parentElement;
948
- }
949
- if (!parent) {
950
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
951
- throw Error('Incorrect tree structure containing detached node.');
952
- }
953
- else {
954
- return -1;
955
- }
956
- }
957
- else if (parent.classList.contains('cdk-nested-tree-node')) {
958
- return coercion.coerceNumberProperty(parent.getAttribute('aria-level'));
959
- }
960
- else {
961
- // The ancestor element is the cdk-tree itself
962
- return 0;
963
- }
964
- }
965
- function isNodeElement(element) {
966
- var classList = element.classList;
967
- return !!((classList === null || classList === void 0 ? void 0 : classList.contains('cdk-nested-tree-node')) || (classList === null || classList === void 0 ? void 0 : classList.contains('cdk-tree')));
968
- }
969
-
970
- /**
971
- * Nested node is a child of `<cdk-tree>`. It works with nested tree.
972
- * By using `cdk-nested-tree-node` component in tree node template, children of the parent node will
973
- * be added in the `cdkTreeNodeOutlet` in tree node template.
974
- * The children of node will be automatically added to `cdkTreeNodeOutlet`.
975
- */
976
- var CdkNestedTreeNode = /** @class */ (function (_super) {
977
- __extends(CdkNestedTreeNode, _super);
978
- function CdkNestedTreeNode(elementRef, tree, _differs) {
979
- var _this = _super.call(this, elementRef, tree) || this;
980
- _this._differs = _differs;
981
- // The classes are directly added here instead of in the host property because classes on
982
- // the host property are not inherited with View Engine. It is not set as a @HostBinding because
983
- // it is not set by the time it's children nodes try to read the class from it.
984
- // TODO: move to host after View Engine deprecation
985
- elementRef.nativeElement.classList.add('cdk-nested-tree-node');
986
- return _this;
987
- }
988
- CdkNestedTreeNode.prototype.ngAfterContentInit = function () {
989
- var _this = this;
990
- this._dataDiffer = this._differs.find([]).create(this._tree.trackBy);
991
- if (!this._tree.treeControl.getChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {
992
- throw getTreeControlFunctionsMissingError();
993
- }
994
- var childrenNodes = this._tree.treeControl.getChildren(this.data);
995
- if (Array.isArray(childrenNodes)) {
996
- this.updateChildrenNodes(childrenNodes);
997
- }
998
- else if (rxjs.isObservable(childrenNodes)) {
999
- childrenNodes.pipe(operators.takeUntil(this._destroyed))
1000
- .subscribe(function (result) { return _this.updateChildrenNodes(result); });
1001
- }
1002
- this.nodeOutlet.changes.pipe(operators.takeUntil(this._destroyed))
1003
- .subscribe(function () { return _this.updateChildrenNodes(); });
1004
- };
1005
- // This is a workaround for https://github.com/angular/angular/issues/23091
1006
- // In aot mode, the lifecycle hooks from parent class are not called.
1007
- CdkNestedTreeNode.prototype.ngOnInit = function () {
1008
- _super.prototype.ngOnInit.call(this);
1009
- };
1010
- CdkNestedTreeNode.prototype.ngDoCheck = function () {
1011
- _super.prototype.ngDoCheck.call(this);
1012
- };
1013
- CdkNestedTreeNode.prototype.ngOnDestroy = function () {
1014
- this._clear();
1015
- _super.prototype.ngOnDestroy.call(this);
1016
- };
1017
- /** Add children dataNodes to the NodeOutlet */
1018
- CdkNestedTreeNode.prototype.updateChildrenNodes = function (children) {
1019
- var outlet = this._getNodeOutlet();
1020
- if (children) {
1021
- this._children = children;
1022
- }
1023
- if (outlet && this._children) {
1024
- var viewContainer = outlet.viewContainer;
1025
- this._tree.renderNodeChanges(this._children, this._dataDiffer, viewContainer, this._data);
1026
- }
1027
- else {
1028
- // Reset the data differ if there's no children nodes displayed
1029
- this._dataDiffer.diff([]);
1030
- }
1031
- };
1032
- /** Clear the children dataNodes. */
1033
- CdkNestedTreeNode.prototype._clear = function () {
1034
- var outlet = this._getNodeOutlet();
1035
- if (outlet) {
1036
- outlet.viewContainer.clear();
1037
- this._dataDiffer.diff([]);
1038
- }
1039
- };
1040
- /** Gets the outlet for the current node. */
1041
- CdkNestedTreeNode.prototype._getNodeOutlet = function () {
1042
- var _this = this;
1043
- var outlets = this.nodeOutlet;
1044
- // Note that since we use `descendants: true` on the query, we have to ensure
1045
- // that we don't pick up the outlet of a child node by accident.
1046
- return outlets && outlets.find(function (outlet) { return !outlet._node || outlet._node === _this; });
1047
- };
1048
- return CdkNestedTreeNode;
1049
- }(CdkTreeNode));
1050
- CdkNestedTreeNode.decorators = [
1051
- { type: core.Directive, args: [{
1052
- selector: 'cdk-nested-tree-node',
1053
- exportAs: 'cdkNestedTreeNode',
1054
- inputs: ['role', 'disabled', 'tabIndex'],
1055
- providers: [
1056
- { provide: CdkTreeNode, useExisting: CdkNestedTreeNode },
1057
- { provide: CDK_TREE_NODE_OUTLET_NODE, useExisting: CdkNestedTreeNode }
1058
- ]
1059
- },] }
1060
- ];
1061
- CdkNestedTreeNode.ctorParameters = function () { return [
1062
- { type: core.ElementRef },
1063
- { type: CdkTree },
1064
- { type: core.IterableDiffers }
1065
- ]; };
1066
- CdkNestedTreeNode.propDecorators = {
1067
- nodeOutlet: [{ type: core.ContentChildren, args: [CdkTreeNodeOutlet, {
1068
- // We need to use `descendants: true`, because Ivy will no longer match
1069
- // indirect descendants if it's left as false.
1070
- descendants: true
1071
- },] }]
1072
- };
1073
-
1074
- /**
1075
- * @license
1076
- * Copyright Google LLC All Rights Reserved.
1077
- *
1078
- * Use of this source code is governed by an MIT-style license that can be
1079
- * found in the LICENSE file at https://angular.io/license
1080
- */
1081
- /** Regex used to split a string on its CSS units. */
1082
- var cssUnitPattern = /([A-Za-z%]+)$/;
1083
- /**
1084
- * Indent for the children tree dataNodes.
1085
- * This directive will add left-padding to the node to show hierarchy.
1086
- */
1087
- var CdkTreeNodePadding = /** @class */ (function () {
1088
- function CdkTreeNodePadding(_treeNode, _tree, _element, _dir) {
1089
- var _this = this;
1090
- this._treeNode = _treeNode;
1091
- this._tree = _tree;
1092
- this._element = _element;
1093
- this._dir = _dir;
1094
- /** Subject that emits when the component has been destroyed. */
1095
- this._destroyed = new rxjs.Subject();
1096
- /** CSS units used for the indentation value. */
1097
- this.indentUnits = 'px';
1098
- this._indent = 40;
1099
- this._setPadding();
1100
- if (_dir) {
1101
- _dir.change.pipe(operators.takeUntil(this._destroyed)).subscribe(function () { return _this._setPadding(true); });
1102
- }
1103
- // In Ivy the indentation binding might be set before the tree node's data has been added,
1104
- // which means that we'll miss the first render. We have to subscribe to changes in the
1105
- // data to ensure that everything is up to date.
1106
- _treeNode._dataChanges.subscribe(function () { return _this._setPadding(); });
1107
- }
1108
- Object.defineProperty(CdkTreeNodePadding.prototype, "level", {
1109
- /** The level of depth of the tree node. The padding will be `level * indent` pixels. */
1110
- get: function () { return this._level; },
1111
- set: function (value) { this._setLevelInput(value); },
1112
- enumerable: false,
1113
- configurable: true
1114
- });
1115
- Object.defineProperty(CdkTreeNodePadding.prototype, "indent", {
1116
- /**
1117
- * The indent for each level. Can be a number or a CSS string.
1118
- * Default number 40px from material design menu sub-menu spec.
1119
- */
1120
- get: function () { return this._indent; },
1121
- set: function (indent) { this._setIndentInput(indent); },
1122
- enumerable: false,
1123
- configurable: true
1124
- });
1125
- CdkTreeNodePadding.prototype.ngOnDestroy = function () {
1126
- this._destroyed.next();
1127
- this._destroyed.complete();
1128
- };
1129
- /** The padding indent value for the tree node. Returns a string with px numbers if not null. */
1130
- CdkTreeNodePadding.prototype._paddingIndent = function () {
1131
- var nodeLevel = (this._treeNode.data && this._tree.treeControl.getLevel)
1132
- ? this._tree.treeControl.getLevel(this._treeNode.data)
1133
- : null;
1134
- var level = this._level == null ? nodeLevel : this._level;
1135
- return typeof level === 'number' ? "" + level * this._indent + this.indentUnits : null;
1136
- };
1137
- CdkTreeNodePadding.prototype._setPadding = function (forceChange) {
1138
- if (forceChange === void 0) { forceChange = false; }
1139
- var padding = this._paddingIndent();
1140
- if (padding !== this._currentPadding || forceChange) {
1141
- var element = this._element.nativeElement;
1142
- var paddingProp = this._dir && this._dir.value === 'rtl' ? 'paddingRight' : 'paddingLeft';
1143
- var resetProp = paddingProp === 'paddingLeft' ? 'paddingRight' : 'paddingLeft';
1144
- element.style[paddingProp] = padding || '';
1145
- element.style[resetProp] = '';
1146
- this._currentPadding = padding;
1147
- }
1148
- };
1149
- /**
1150
- * This has been extracted to a util because of TS 4 and VE.
1151
- * View Engine doesn't support property rename inheritance.
1152
- * TS 4.0 doesn't allow properties to override accessors or vice-versa.
1153
- * @docs-private
1154
- */
1155
- CdkTreeNodePadding.prototype._setLevelInput = function (value) {
1156
- // Set to null as the fallback value so that _setPadding can fall back to the node level if the
1157
- // consumer set the directive as `cdkTreeNodePadding=""`. We still want to take this value if
1158
- // they set 0 explicitly.
1159
- this._level = coercion.coerceNumberProperty(value, null);
1160
- this._setPadding();
1161
- };
1162
- /**
1163
- * This has been extracted to a util because of TS 4 and VE.
1164
- * View Engine doesn't support property rename inheritance.
1165
- * TS 4.0 doesn't allow properties to override accessors or vice-versa.
1166
- * @docs-private
1167
- */
1168
- CdkTreeNodePadding.prototype._setIndentInput = function (indent) {
1169
- var value = indent;
1170
- var units = 'px';
1171
- if (typeof indent === 'string') {
1172
- var parts = indent.split(cssUnitPattern);
1173
- value = parts[0];
1174
- units = parts[1] || units;
1175
- }
1176
- this.indentUnits = units;
1177
- this._indent = coercion.coerceNumberProperty(value);
1178
- this._setPadding();
1179
- };
1180
- return CdkTreeNodePadding;
1181
- }());
1182
- CdkTreeNodePadding.decorators = [
1183
- { type: core.Directive, args: [{
1184
- selector: '[cdkTreeNodePadding]',
1185
- },] }
1186
- ];
1187
- CdkTreeNodePadding.ctorParameters = function () { return [
1188
- { type: CdkTreeNode },
1189
- { type: CdkTree },
1190
- { type: core.ElementRef },
1191
- { type: bidi.Directionality, decorators: [{ type: core.Optional }] }
1192
- ]; };
1193
- CdkTreeNodePadding.propDecorators = {
1194
- level: [{ type: core.Input, args: ['cdkTreeNodePadding',] }],
1195
- indent: [{ type: core.Input, args: ['cdkTreeNodePaddingIndent',] }]
1196
- };
1197
-
1198
- /**
1199
- * @license
1200
- * Copyright Google LLC All Rights Reserved.
1201
- *
1202
- * Use of this source code is governed by an MIT-style license that can be
1203
- * found in the LICENSE file at https://angular.io/license
1204
- */
1205
- /**
1206
- * Node toggle to expand/collapse the node.
1207
- */
1208
- var CdkTreeNodeToggle = /** @class */ (function () {
1209
- function CdkTreeNodeToggle(_tree, _treeNode) {
1210
- this._tree = _tree;
1211
- this._treeNode = _treeNode;
1212
- this._recursive = false;
1213
- }
1214
- Object.defineProperty(CdkTreeNodeToggle.prototype, "recursive", {
1215
- /** Whether expand/collapse the node recursively. */
1216
- get: function () { return this._recursive; },
1217
- set: function (value) { this._recursive = coercion.coerceBooleanProperty(value); },
1218
- enumerable: false,
1219
- configurable: true
1220
- });
1221
- // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
1222
- // In Ivy the `host` bindings will be merged when this class is extended, whereas in
1223
- // ViewEngine they're overwritten.
1224
- // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
1225
- // tslint:disable-next-line:no-host-decorator-in-concrete
1226
- CdkTreeNodeToggle.prototype._toggle = function (event) {
1227
- this.recursive
1228
- ? this._tree.treeControl.toggleDescendants(this._treeNode.data)
1229
- : this._tree.treeControl.toggle(this._treeNode.data);
1230
- event.stopPropagation();
1231
- };
1232
- return CdkTreeNodeToggle;
1233
- }());
1234
- CdkTreeNodeToggle.decorators = [
1235
- { type: core.Directive, args: [{ selector: '[cdkTreeNodeToggle]' },] }
1236
- ];
1237
- CdkTreeNodeToggle.ctorParameters = function () { return [
1238
- { type: CdkTree },
1239
- { type: CdkTreeNode }
1240
- ]; };
1241
- CdkTreeNodeToggle.propDecorators = {
1242
- recursive: [{ type: core.Input, args: ['cdkTreeNodeToggleRecursive',] }],
1243
- _toggle: [{ type: core.HostListener, args: ['click', ['$event'],] }]
1244
- };
1245
-
1246
- /**
1247
- * @license
1248
- * Copyright Google LLC All Rights Reserved.
1249
- *
1250
- * Use of this source code is governed by an MIT-style license that can be
1251
- * found in the LICENSE file at https://angular.io/license
1252
- */
1253
- var EXPORTED_DECLARATIONS = [
1254
- CdkNestedTreeNode,
1255
- CdkTreeNodeDef,
1256
- CdkTreeNodePadding,
1257
- CdkTreeNodeToggle,
1258
- CdkTree,
1259
- CdkTreeNode,
1260
- CdkTreeNodeOutlet,
1261
- ];
1262
- var CdkTreeModule = /** @class */ (function () {
1263
- function CdkTreeModule() {
1264
- }
1265
- return CdkTreeModule;
1266
- }());
1267
- CdkTreeModule.decorators = [
1268
- { type: core.NgModule, args: [{
1269
- exports: EXPORTED_DECLARATIONS,
1270
- declarations: EXPORTED_DECLARATIONS,
1271
- },] }
1272
- ];
1273
-
1274
- /**
1275
- * @license
1276
- * Copyright Google LLC All Rights Reserved.
1277
- *
1278
- * Use of this source code is governed by an MIT-style license that can be
1279
- * found in the LICENSE file at https://angular.io/license
1280
- */
1281
-
1282
- /**
1283
- * Generated bundle index. Do not edit.
1284
- */
1285
-
1286
- exports.BaseTreeControl = BaseTreeControl;
1287
- exports.CDK_TREE_NODE_OUTLET_NODE = CDK_TREE_NODE_OUTLET_NODE;
1288
- exports.CdkNestedTreeNode = CdkNestedTreeNode;
1289
- exports.CdkTree = CdkTree;
1290
- exports.CdkTreeModule = CdkTreeModule;
1291
- exports.CdkTreeNode = CdkTreeNode;
1292
- exports.CdkTreeNodeDef = CdkTreeNodeDef;
1293
- exports.CdkTreeNodeOutlet = CdkTreeNodeOutlet;
1294
- exports.CdkTreeNodeOutletContext = CdkTreeNodeOutletContext;
1295
- exports.CdkTreeNodePadding = CdkTreeNodePadding;
1296
- exports.CdkTreeNodeToggle = CdkTreeNodeToggle;
1297
- exports.FlatTreeControl = FlatTreeControl;
1298
- exports.NestedTreeControl = NestedTreeControl;
1299
- exports.getTreeControlFunctionsMissingError = getTreeControlFunctionsMissingError;
1300
- exports.getTreeControlMissingError = getTreeControlMissingError;
1301
- exports.getTreeMissingMatchingNodeDefError = getTreeMissingMatchingNodeDefError;
1302
- exports.getTreeMultipleDefaultNodeDefsError = getTreeMultipleDefaultNodeDefsError;
1303
- exports.getTreeNoValidDataSourceError = getTreeNoValidDataSourceError;
1304
-
1305
- Object.defineProperty(exports, '__esModule', { value: true });
1306
-
1307
- })));
1308
- //# sourceMappingURL=cdk-tree.umd.js.map