@angular/cdk 16.0.0-next.5 → 16.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/{esm2020 → esm2022}/a11y/a11y-module.mjs +4 -4
  2. package/{esm2020 → esm2022}/a11y/aria-describer/aria-describer.mjs +3 -3
  3. package/{esm2020 → esm2022}/a11y/focus-monitor/focus-monitor.mjs +5 -5
  4. package/{esm2020 → esm2022}/a11y/focus-trap/configurable-focus-trap-factory.mjs +3 -3
  5. package/{esm2020 → esm2022}/a11y/focus-trap/focus-trap-manager.mjs +3 -3
  6. package/{esm2020 → esm2022}/a11y/focus-trap/focus-trap.mjs +5 -5
  7. package/{esm2020 → esm2022}/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
  8. package/{esm2020 → esm2022}/a11y/input-modality/input-modality-detector.mjs +3 -3
  9. package/{esm2020 → esm2022}/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
  10. package/{esm2020 → esm2022}/a11y/live-announcer/live-announcer.mjs +5 -5
  11. package/{esm2020 → esm2022}/accordion/accordion-item.mjs +7 -7
  12. package/{esm2020 → esm2022}/accordion/accordion-module.mjs +4 -4
  13. package/{esm2020 → esm2022}/accordion/accordion.mjs +3 -3
  14. package/{esm2020 → esm2022}/bidi/bidi-module.mjs +4 -4
  15. package/{esm2020 → esm2022}/bidi/dir.mjs +3 -3
  16. package/{esm2020 → esm2022}/bidi/directionality.mjs +3 -3
  17. package/{esm2020 → esm2022}/clipboard/clipboard-module.mjs +4 -4
  18. package/{esm2020 → esm2022}/clipboard/clipboard.mjs +3 -3
  19. package/{esm2020 → esm2022}/clipboard/copy-to-clipboard.mjs +3 -3
  20. package/{esm2020 → esm2022}/collections/unique-selection-dispatcher.mjs +3 -3
  21. package/{esm2020 → esm2022}/dialog/dialog-container.mjs +3 -3
  22. package/{esm2020 → esm2022}/dialog/dialog-module.mjs +11 -11
  23. package/{esm2020 → esm2022}/dialog/dialog.mjs +3 -3
  24. package/{esm2020 → esm2022}/drag-drop/directives/drag-handle.mjs +3 -3
  25. package/{esm2020 → esm2022}/drag-drop/directives/drag-placeholder.mjs +3 -3
  26. package/{esm2020 → esm2022}/drag-drop/directives/drag-preview.mjs +3 -3
  27. package/esm2022/drag-drop/directives/drag.mjs +489 -0
  28. package/{esm2020 → esm2022}/drag-drop/directives/drop-list-group.mjs +3 -3
  29. package/esm2022/drag-drop/directives/drop-list.mjs +348 -0
  30. package/{esm2020 → esm2022}/drag-drop/drag-drop-module.mjs +14 -14
  31. package/{esm2020 → esm2022}/drag-drop/drag-drop-registry.mjs +3 -3
  32. package/{esm2020 → esm2022}/drag-drop/drag-drop.mjs +3 -3
  33. package/{esm2020 → esm2022}/layout/breakpoints-observer.mjs +3 -3
  34. package/{esm2020 → esm2022}/layout/layout-module.mjs +4 -4
  35. package/{esm2020 → esm2022}/layout/media-matcher.mjs +3 -3
  36. package/{esm2020 → esm2022}/listbox/listbox-module.mjs +4 -4
  37. package/{esm2020 → esm2022}/listbox/listbox.mjs +11 -11
  38. package/{esm2020 → esm2022}/menu/context-menu-trigger.mjs +8 -8
  39. package/{esm2020 → esm2022}/menu/menu-aim.mjs +5 -5
  40. package/{esm2020 → esm2022}/menu/menu-bar.mjs +7 -7
  41. package/{esm2020 → esm2022}/menu/menu-base.mjs +3 -3
  42. package/{esm2020 → esm2022}/menu/menu-group.mjs +3 -3
  43. package/{esm2020 → esm2022}/menu/menu-item-checkbox.mjs +6 -6
  44. package/{esm2020 → esm2022}/menu/menu-item-radio.mjs +6 -6
  45. package/{esm2020 → esm2022}/menu/menu-item-selectable.mjs +3 -3
  46. package/{esm2020 → esm2022}/menu/menu-item.mjs +3 -3
  47. package/{esm2020 → esm2022}/menu/menu-module.mjs +20 -20
  48. package/{esm2020 → esm2022}/menu/menu-stack.mjs +3 -3
  49. package/{esm2020 → esm2022}/menu/menu-trigger-base.mjs +3 -3
  50. package/{esm2020 → esm2022}/menu/menu-trigger.mjs +6 -6
  51. package/{esm2020 → esm2022}/menu/menu.mjs +7 -7
  52. package/{esm2020 → esm2022}/observers/observe-content.mjs +10 -10
  53. package/{esm2020 → esm2022}/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
  54. package/{esm2020 → esm2022}/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
  55. package/{esm2020 → esm2022}/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +3 -3
  56. package/{esm2020 → esm2022}/overlay/fullscreen-overlay-container.mjs +3 -3
  57. package/{esm2020 → esm2022}/overlay/overlay-container.mjs +3 -3
  58. package/{esm2020 → esm2022}/overlay/overlay-directives.mjs +5 -5
  59. package/{esm2020 → esm2022}/overlay/overlay-module.mjs +4 -4
  60. package/{esm2020 → esm2022}/overlay/overlay.mjs +3 -3
  61. package/{esm2020 → esm2022}/overlay/position/overlay-position-builder.mjs +3 -3
  62. package/{esm2020 → esm2022}/overlay/scroll/scroll-strategy-options.mjs +3 -3
  63. package/{esm2020 → esm2022}/platform/platform-module.mjs +4 -4
  64. package/{esm2020 → esm2022}/platform/platform.mjs +3 -3
  65. package/esm2022/portal/portal-directives.mjs +250 -0
  66. package/{esm2020 → esm2022}/scrolling/fixed-size-virtual-scroll.mjs +9 -9
  67. package/{esm2020 → esm2022}/scrolling/scroll-dispatcher.mjs +3 -3
  68. package/{esm2020 → esm2022}/scrolling/scrollable.mjs +3 -3
  69. package/{esm2020 → esm2022}/scrolling/scrolling-module.mjs +17 -17
  70. package/{esm2020 → esm2022}/scrolling/viewport-ruler.mjs +3 -3
  71. package/{esm2020 → esm2022}/scrolling/virtual-for-of.mjs +3 -3
  72. package/{esm2020 → esm2022}/scrolling/virtual-scroll-viewport.mjs +9 -9
  73. package/{esm2020 → esm2022}/scrolling/virtual-scrollable-element.mjs +3 -3
  74. package/{esm2020 → esm2022}/scrolling/virtual-scrollable-window.mjs +3 -3
  75. package/{esm2020 → esm2022}/scrolling/virtual-scrollable.mjs +3 -3
  76. package/{esm2020 → esm2022}/stepper/step-header.mjs +3 -3
  77. package/{esm2020 → esm2022}/stepper/step-label.mjs +3 -3
  78. package/{esm2020 → esm2022}/stepper/stepper-button.mjs +5 -5
  79. package/{esm2020 → esm2022}/stepper/stepper-module.mjs +9 -9
  80. package/{esm2020 → esm2022}/stepper/stepper.mjs +5 -5
  81. package/{esm2020 → esm2022}/table/cell.mjs +15 -15
  82. package/{esm2020 → esm2022}/table/coalesced-style-scheduler.mjs +3 -3
  83. package/esm2022/table/row.mjs +271 -0
  84. package/{esm2020 → esm2022}/table/table-module.mjs +46 -46
  85. package/{esm2020 → esm2022}/table/table.mjs +19 -19
  86. package/{esm2020 → esm2022}/table/text-column.mjs +5 -5
  87. package/{esm2020 → esm2022}/text-field/autofill.mjs +5 -5
  88. package/{esm2020 → esm2022}/text-field/autosize.mjs +3 -3
  89. package/{esm2020 → esm2022}/text-field/text-field-module.mjs +4 -4
  90. package/{esm2020 → esm2022}/tree/nested-node.mjs +6 -6
  91. package/{esm2020 → esm2022}/tree/node.mjs +3 -3
  92. package/{esm2020 → esm2022}/tree/outlet.mjs +3 -3
  93. package/{esm2020 → esm2022}/tree/padding.mjs +3 -3
  94. package/{esm2020 → esm2022}/tree/toggle.mjs +3 -3
  95. package/{esm2020 → esm2022}/tree/tree-module.mjs +16 -16
  96. package/esm2022/tree/tree.mjs +349 -0
  97. package/{esm2020 → esm2022}/version.mjs +1 -1
  98. package/{fesm2020 → fesm2022}/a11y.mjs +27 -27
  99. package/{fesm2020 → fesm2022}/a11y.mjs.map +1 -1
  100. package/{fesm2020 → fesm2022}/accordion.mjs +11 -11
  101. package/{fesm2020 → fesm2022}/accordion.mjs.map +1 -1
  102. package/{fesm2020 → fesm2022}/bidi.mjs +7 -7
  103. package/{fesm2020 → fesm2022}/bidi.mjs.map +1 -1
  104. package/{fesm2015 → fesm2022}/cdk.mjs +1 -1
  105. package/{fesm2015 → fesm2022}/cdk.mjs.map +1 -1
  106. package/{fesm2020 → fesm2022}/clipboard.mjs +7 -7
  107. package/{fesm2020 → fesm2022}/clipboard.mjs.map +1 -1
  108. package/{fesm2020 → fesm2022}/collections.mjs +2 -2
  109. package/{fesm2020 → fesm2022}/collections.mjs.map +1 -1
  110. package/{fesm2020 → fesm2022}/dialog.mjs +14 -14
  111. package/{fesm2020 → fesm2022}/dialog.mjs.map +1 -1
  112. package/{fesm2020 → fesm2022}/drag-drop.mjs +36 -36
  113. package/{fesm2020 → fesm2022}/drag-drop.mjs.map +1 -1
  114. package/{fesm2015 → fesm2022}/layout.mjs +7 -7
  115. package/{fesm2015 → fesm2022}/layout.mjs.map +1 -1
  116. package/{fesm2020 → fesm2022}/listbox.mjs +13 -13
  117. package/{fesm2020 → fesm2022}/listbox.mjs.map +1 -1
  118. package/{fesm2020 → fesm2022}/menu.mjs +69 -69
  119. package/{fesm2020 → fesm2022}/menu.mjs.map +1 -1
  120. package/{fesm2020 → fesm2022}/observers.mjs +9 -9
  121. package/{fesm2020 → fesm2022}/observers.mjs.map +1 -1
  122. package/{fesm2020 → fesm2022}/overlay.mjs +23 -23
  123. package/{fesm2020 → fesm2022}/overlay.mjs.map +1 -1
  124. package/{fesm2020 → fesm2022}/platform.mjs +5 -5
  125. package/{fesm2020 → fesm2022}/platform.mjs.map +1 -1
  126. package/{fesm2020 → fesm2022}/portal.mjs +21 -21
  127. package/{fesm2020 → fesm2022}/portal.mjs.map +1 -1
  128. package/{fesm2020 → fesm2022}/scrolling.mjs +46 -46
  129. package/{fesm2020 → fesm2022}/scrolling.mjs.map +1 -1
  130. package/{fesm2020 → fesm2022}/stepper.mjs +20 -20
  131. package/{fesm2020 → fesm2022}/stepper.mjs.map +1 -1
  132. package/{fesm2020 → fesm2022}/table.mjs +109 -109
  133. package/{fesm2020 → fesm2022}/table.mjs.map +1 -1
  134. package/{fesm2020 → fesm2022}/text-field.mjs +9 -9
  135. package/{fesm2020 → fesm2022}/text-field.mjs.map +1 -1
  136. package/{fesm2020 → fesm2022}/tree.mjs +37 -37
  137. package/{fesm2020 → fesm2022}/tree.mjs.map +1 -1
  138. package/package.json +77 -131
  139. package/schematics/ng-add/index.js +1 -1
  140. package/schematics/ng-add/index.mjs +1 -1
  141. package/schematics/ng-update/devkit-file-system.js +3 -2
  142. package/schematics/ng-update/devkit-file-system.mjs +3 -2
  143. package/schematics/ng-update/migrations/attribute-selectors.js +5 -8
  144. package/schematics/ng-update/migrations/attribute-selectors.mjs +5 -8
  145. package/schematics/ng-update/migrations/class-inheritance.js +8 -11
  146. package/schematics/ng-update/migrations/class-inheritance.mjs +8 -11
  147. package/schematics/ng-update/migrations/class-names.js +12 -15
  148. package/schematics/ng-update/migrations/class-names.mjs +12 -15
  149. package/schematics/ng-update/migrations/constructor-signature.js +7 -10
  150. package/schematics/ng-update/migrations/constructor-signature.mjs +7 -10
  151. package/schematics/ng-update/migrations/css-selectors.js +5 -8
  152. package/schematics/ng-update/migrations/css-selectors.mjs +5 -8
  153. package/schematics/ng-update/migrations/element-selectors.js +5 -8
  154. package/schematics/ng-update/migrations/element-selectors.mjs +5 -8
  155. package/schematics/ng-update/migrations/input-names.js +5 -8
  156. package/schematics/ng-update/migrations/input-names.mjs +5 -8
  157. package/schematics/ng-update/migrations/method-call-arguments.js +5 -8
  158. package/schematics/ng-update/migrations/method-call-arguments.mjs +5 -8
  159. package/schematics/ng-update/migrations/misc-template.js +3 -6
  160. package/schematics/ng-update/migrations/misc-template.mjs +3 -6
  161. package/schematics/ng-update/migrations/output-names.js +5 -8
  162. package/schematics/ng-update/migrations/output-names.mjs +5 -8
  163. package/schematics/ng-update/migrations/property-names.js +5 -8
  164. package/schematics/ng-update/migrations/property-names.mjs +5 -8
  165. package/schematics/ng-update/migrations/symbol-removal.js +5 -8
  166. package/schematics/ng-update/migrations/symbol-removal.mjs +5 -8
  167. package/schematics/update-tool/component-resource-collector.js +5 -3
  168. package/schematics/update-tool/component-resource-collector.mjs +5 -3
  169. package/schematics/update-tool/index.js +8 -2
  170. package/schematics/update-tool/index.mjs +8 -2
  171. package/schematics/update-tool/migration.js +10 -3
  172. package/schematics/update-tool/migration.mjs +10 -3
  173. package/schematics/update-tool/utils/virtual-host.js +3 -2
  174. package/schematics/update-tool/utils/virtual-host.mjs +3 -2
  175. package/esm2020/drag-drop/directives/drag.mjs +0 -489
  176. package/esm2020/drag-drop/directives/drop-list.mjs +0 -348
  177. package/esm2020/portal/portal-directives.mjs +0 -250
  178. package/esm2020/table/row.mjs +0 -271
  179. package/esm2020/tree/tree.mjs +0 -349
  180. package/fesm2015/a11y.mjs +0 -2409
  181. package/fesm2015/a11y.mjs.map +0 -1
  182. package/fesm2015/accordion.mjs +0 -238
  183. package/fesm2015/accordion.mjs.map +0 -1
  184. package/fesm2015/bidi.mjs +0 -150
  185. package/fesm2015/bidi.mjs.map +0 -1
  186. package/fesm2015/clipboard.mjs +0 -219
  187. package/fesm2015/clipboard.mjs.map +0 -1
  188. package/fesm2015/collections.mjs +0 -462
  189. package/fesm2015/collections.mjs.map +0 -1
  190. package/fesm2015/dialog.mjs +0 -749
  191. package/fesm2015/dialog.mjs.map +0 -1
  192. package/fesm2015/drag-drop.mjs +0 -3667
  193. package/fesm2015/drag-drop.mjs.map +0 -1
  194. package/fesm2015/listbox.mjs +0 -888
  195. package/fesm2015/listbox.mjs.map +0 -1
  196. package/fesm2015/menu.mjs +0 -1876
  197. package/fesm2015/menu.mjs.map +0 -1
  198. package/fesm2015/observers.mjs +0 -188
  199. package/fesm2015/observers.mjs.map +0 -1
  200. package/fesm2015/overlay.mjs +0 -2998
  201. package/fesm2015/overlay.mjs.map +0 -1
  202. package/fesm2015/platform.mjs +0 -320
  203. package/fesm2015/platform.mjs.map +0 -1
  204. package/fesm2015/portal.mjs +0 -640
  205. package/fesm2015/portal.mjs.map +0 -1
  206. package/fesm2015/scrolling.mjs +0 -1515
  207. package/fesm2015/scrolling.mjs.map +0 -1
  208. package/fesm2015/stepper.mjs +0 -570
  209. package/fesm2015/stepper.mjs.map +0 -1
  210. package/fesm2015/table.mjs +0 -2271
  211. package/fesm2015/table.mjs.map +0 -1
  212. package/fesm2015/testing/selenium-webdriver.mjs +0 -396
  213. package/fesm2015/testing/selenium-webdriver.mjs.map +0 -1
  214. package/fesm2015/testing/testbed.mjs +0 -811
  215. package/fesm2015/testing/testbed.mjs.map +0 -1
  216. package/fesm2015/testing.mjs +0 -748
  217. package/fesm2015/testing.mjs.map +0 -1
  218. package/fesm2015/text-field.mjs +0 -424
  219. package/fesm2015/text-field.mjs.map +0 -1
  220. package/fesm2015/tree.mjs +0 -871
  221. package/fesm2015/tree.mjs.map +0 -1
  222. package/fesm2020/cdk.mjs +0 -7
  223. package/fesm2020/cdk.mjs.map +0 -1
  224. package/fesm2020/coercion.mjs +0 -74
  225. package/fesm2020/coercion.mjs.map +0 -1
  226. package/fesm2020/keycodes.mjs +0 -137
  227. package/fesm2020/keycodes.mjs.map +0 -1
  228. package/fesm2020/layout.mjs +0 -210
  229. package/fesm2020/layout.mjs.map +0 -1
  230. /package/{esm2020 → esm2022}/a11y/a11y_public_index.mjs +0 -0
  231. /package/{esm2020 → esm2022}/a11y/aria-describer/aria-reference.mjs +0 -0
  232. /package/{esm2020 → esm2022}/a11y/fake-event-detection.mjs +0 -0
  233. /package/{esm2020 → esm2022}/a11y/focus-trap/configurable-focus-trap-config.mjs +0 -0
  234. /package/{esm2020 → esm2022}/a11y/focus-trap/configurable-focus-trap.mjs +0 -0
  235. /package/{esm2020 → esm2022}/a11y/focus-trap/event-listener-inert-strategy.mjs +0 -0
  236. /package/{esm2020 → esm2022}/a11y/focus-trap/focus-trap-inert-strategy.mjs +0 -0
  237. /package/{esm2020 → esm2022}/a11y/index.mjs +0 -0
  238. /package/{esm2020 → esm2022}/a11y/key-manager/activedescendant-key-manager.mjs +0 -0
  239. /package/{esm2020 → esm2022}/a11y/key-manager/focus-key-manager.mjs +0 -0
  240. /package/{esm2020 → esm2022}/a11y/key-manager/list-key-manager.mjs +0 -0
  241. /package/{esm2020 → esm2022}/a11y/live-announcer/live-announcer-tokens.mjs +0 -0
  242. /package/{esm2020 → esm2022}/a11y/public-api.mjs +0 -0
  243. /package/{esm2020 → esm2022}/accordion/accordion_public_index.mjs +0 -0
  244. /package/{esm2020 → esm2022}/accordion/index.mjs +0 -0
  245. /package/{esm2020 → esm2022}/accordion/public-api.mjs +0 -0
  246. /package/{esm2020 → esm2022}/bidi/bidi_public_index.mjs +0 -0
  247. /package/{esm2020 → esm2022}/bidi/dir-document-token.mjs +0 -0
  248. /package/{esm2020 → esm2022}/bidi/index.mjs +0 -0
  249. /package/{esm2020 → esm2022}/bidi/public-api.mjs +0 -0
  250. /package/{esm2020 → esm2022}/clipboard/clipboard_public_index.mjs +0 -0
  251. /package/{esm2020 → esm2022}/clipboard/index.mjs +0 -0
  252. /package/{esm2020 → esm2022}/clipboard/pending-copy.mjs +0 -0
  253. /package/{esm2020 → esm2022}/clipboard/public-api.mjs +0 -0
  254. /package/{esm2020 → esm2022}/coercion/array.mjs +0 -0
  255. /package/{esm2020 → esm2022}/coercion/boolean-property.mjs +0 -0
  256. /package/{esm2020 → esm2022}/coercion/css-pixel-value.mjs +0 -0
  257. /package/{esm2020 → esm2022}/coercion/element.mjs +0 -0
  258. /package/{esm2020 → esm2022}/coercion/index.mjs +0 -0
  259. /package/{esm2020 → esm2022}/coercion/number-property.mjs +0 -0
  260. /package/{esm2020 → esm2022}/coercion/public-api.mjs +0 -0
  261. /package/{esm2020 → esm2022}/coercion/string-array.mjs +0 -0
  262. /package/{esm2020 → esm2022}/collections/array-data-source.mjs +0 -0
  263. /package/{esm2020 → esm2022}/collections/collection-viewer.mjs +0 -0
  264. /package/{esm2020 → esm2022}/collections/collections_public_index.mjs +0 -0
  265. /package/{esm2020 → esm2022}/collections/data-source.mjs +0 -0
  266. /package/{esm2020 → esm2022}/collections/dispose-view-repeater-strategy.mjs +0 -0
  267. /package/{esm2020 → esm2022}/collections/index.mjs +0 -0
  268. /package/{esm2020 → esm2022}/collections/public-api.mjs +0 -0
  269. /package/{esm2020 → esm2022}/collections/recycle-view-repeater-strategy.mjs +0 -0
  270. /package/{esm2020 → esm2022}/collections/selection-model.mjs +0 -0
  271. /package/{esm2020 → esm2022}/collections/tree-adapter.mjs +0 -0
  272. /package/{esm2020 → esm2022}/collections/view-repeater.mjs +0 -0
  273. /package/{esm2020 → esm2022}/dialog/dialog-config.mjs +0 -0
  274. /package/{esm2020 → esm2022}/dialog/dialog-injectors.mjs +0 -0
  275. /package/{esm2020 → esm2022}/dialog/dialog-ref.mjs +0 -0
  276. /package/{esm2020 → esm2022}/dialog/dialog_public_index.mjs +0 -0
  277. /package/{esm2020 → esm2022}/dialog/index.mjs +0 -0
  278. /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
  279. /package/{esm2020 → esm2022}/drag-drop/directives/assertions.mjs +0 -0
  280. /package/{esm2020 → esm2022}/drag-drop/directives/config.mjs +0 -0
  281. /package/{esm2020 → esm2022}/drag-drop/dom/client-rect.mjs +0 -0
  282. /package/{esm2020 → esm2022}/drag-drop/dom/clone-node.mjs +0 -0
  283. /package/{esm2020 → esm2022}/drag-drop/dom/parent-position-tracker.mjs +0 -0
  284. /package/{esm2020 → esm2022}/drag-drop/dom/styling.mjs +0 -0
  285. /package/{esm2020 → esm2022}/drag-drop/dom/transition-duration.mjs +0 -0
  286. /package/{esm2020 → esm2022}/drag-drop/drag-drop_public_index.mjs +0 -0
  287. /package/{esm2020 → esm2022}/drag-drop/drag-events.mjs +0 -0
  288. /package/{esm2020 → esm2022}/drag-drop/drag-parent.mjs +0 -0
  289. /package/{esm2020 → esm2022}/drag-drop/drag-ref.mjs +0 -0
  290. /package/{esm2020 → esm2022}/drag-drop/drag-utils.mjs +0 -0
  291. /package/{esm2020 → esm2022}/drag-drop/drop-list-ref.mjs +0 -0
  292. /package/{esm2020 → esm2022}/drag-drop/index.mjs +0 -0
  293. /package/{esm2020 → esm2022}/drag-drop/public-api.mjs +0 -0
  294. /package/{esm2020 → esm2022}/drag-drop/sorting/drop-list-sort-strategy.mjs +0 -0
  295. /package/{esm2020 → esm2022}/drag-drop/sorting/single-axis-sort-strategy.mjs +0 -0
  296. /package/{esm2020 → esm2022}/index.mjs +0 -0
  297. /package/{esm2020 → esm2022}/keycodes/index.mjs +0 -0
  298. /package/{esm2020 → esm2022}/keycodes/keycodes.mjs +0 -0
  299. /package/{esm2020 → esm2022}/keycodes/keycodes_public_index.mjs +0 -0
  300. /package/{esm2020 → esm2022}/keycodes/modifiers.mjs +0 -0
  301. /package/{esm2020 → esm2022}/keycodes/public-api.mjs +0 -0
  302. /package/{esm2020 → esm2022}/layout/breakpoints.mjs +0 -0
  303. /package/{esm2020 → esm2022}/layout/index.mjs +0 -0
  304. /package/{esm2020 → esm2022}/layout/layout_public_index.mjs +0 -0
  305. /package/{esm2020 → esm2022}/layout/public-api.mjs +0 -0
  306. /package/{esm2020 → esm2022}/listbox/index.mjs +0 -0
  307. /package/{esm2020 → esm2022}/listbox/listbox_public_index.mjs +0 -0
  308. /package/{esm2020 → esm2022}/listbox/public-api.mjs +0 -0
  309. /package/{esm2020 → esm2022}/menu/index.mjs +0 -0
  310. /package/{esm2020 → esm2022}/menu/menu-errors.mjs +0 -0
  311. /package/{esm2020 → esm2022}/menu/menu-interface.mjs +0 -0
  312. /package/{esm2020 → esm2022}/menu/menu_public_index.mjs +0 -0
  313. /package/{esm2020 → esm2022}/menu/pointer-focus-tracker.mjs +0 -0
  314. /package/{esm2020 → esm2022}/menu/public-api.mjs +0 -0
  315. /package/{esm2020 → esm2022}/observers/index.mjs +0 -0
  316. /package/{esm2020 → esm2022}/observers/observers_public_index.mjs +0 -0
  317. /package/{esm2020 → esm2022}/observers/public-api.mjs +0 -0
  318. /package/{esm2020 → esm2022}/overlay/dispatchers/index.mjs +0 -0
  319. /package/{esm2020 → esm2022}/overlay/index.mjs +0 -0
  320. /package/{esm2020 → esm2022}/overlay/overlay-config.mjs +0 -0
  321. /package/{esm2020 → esm2022}/overlay/overlay-ref.mjs +0 -0
  322. /package/{esm2020 → esm2022}/overlay/overlay-reference.mjs +0 -0
  323. /package/{esm2020 → esm2022}/overlay/overlay_public_index.mjs +0 -0
  324. /package/{esm2020 → esm2022}/overlay/position/connected-position.mjs +0 -0
  325. /package/{esm2020 → esm2022}/overlay/position/flexible-connected-position-strategy.mjs +0 -0
  326. /package/{esm2020 → esm2022}/overlay/position/global-position-strategy.mjs +0 -0
  327. /package/{esm2020 → esm2022}/overlay/position/position-strategy.mjs +0 -0
  328. /package/{esm2020 → esm2022}/overlay/position/scroll-clip.mjs +0 -0
  329. /package/{esm2020 → esm2022}/overlay/public-api.mjs +0 -0
  330. /package/{esm2020 → esm2022}/overlay/scroll/block-scroll-strategy.mjs +0 -0
  331. /package/{esm2020 → esm2022}/overlay/scroll/close-scroll-strategy.mjs +0 -0
  332. /package/{esm2020 → esm2022}/overlay/scroll/index.mjs +0 -0
  333. /package/{esm2020 → esm2022}/overlay/scroll/noop-scroll-strategy.mjs +0 -0
  334. /package/{esm2020 → esm2022}/overlay/scroll/reposition-scroll-strategy.mjs +0 -0
  335. /package/{esm2020 → esm2022}/overlay/scroll/scroll-strategy.mjs +0 -0
  336. /package/{esm2020 → esm2022}/platform/features/input-types.mjs +0 -0
  337. /package/{esm2020 → esm2022}/platform/features/passive-listeners.mjs +0 -0
  338. /package/{esm2020 → esm2022}/platform/features/scrolling.mjs +0 -0
  339. /package/{esm2020 → esm2022}/platform/features/shadow-dom.mjs +0 -0
  340. /package/{esm2020 → esm2022}/platform/features/test-environment.mjs +0 -0
  341. /package/{esm2020 → esm2022}/platform/index.mjs +0 -0
  342. /package/{esm2020 → esm2022}/platform/platform_public_index.mjs +0 -0
  343. /package/{esm2020 → esm2022}/platform/public-api.mjs +0 -0
  344. /package/{esm2020 → esm2022}/portal/dom-portal-outlet.mjs +0 -0
  345. /package/{esm2020 → esm2022}/portal/index.mjs +0 -0
  346. /package/{esm2020 → esm2022}/portal/portal-errors.mjs +0 -0
  347. /package/{esm2020 → esm2022}/portal/portal-injector.mjs +0 -0
  348. /package/{esm2020 → esm2022}/portal/portal.mjs +0 -0
  349. /package/{esm2020 → esm2022}/portal/portal_public_index.mjs +0 -0
  350. /package/{esm2020 → esm2022}/portal/public-api.mjs +0 -0
  351. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  352. /package/{esm2020 → esm2022}/scrolling/index.mjs +0 -0
  353. /package/{esm2020 → esm2022}/scrolling/public-api.mjs +0 -0
  354. /package/{esm2020 → esm2022}/scrolling/scrolling_public_index.mjs +0 -0
  355. /package/{esm2020 → esm2022}/scrolling/virtual-scroll-repeater.mjs +0 -0
  356. /package/{esm2020 → esm2022}/scrolling/virtual-scroll-strategy.mjs +0 -0
  357. /package/{esm2020 → esm2022}/stepper/index.mjs +0 -0
  358. /package/{esm2020 → esm2022}/stepper/public-api.mjs +0 -0
  359. /package/{esm2020 → esm2022}/stepper/stepper_public_index.mjs +0 -0
  360. /package/{esm2020 → esm2022}/table/can-stick.mjs +0 -0
  361. /package/{esm2020 → esm2022}/table/index.mjs +0 -0
  362. /package/{esm2020 → esm2022}/table/public-api.mjs +0 -0
  363. /package/{esm2020 → esm2022}/table/sticky-position-listener.mjs +0 -0
  364. /package/{esm2020 → esm2022}/table/sticky-styler.mjs +0 -0
  365. /package/{esm2020 → esm2022}/table/table-errors.mjs +0 -0
  366. /package/{esm2020 → esm2022}/table/table_public_index.mjs +0 -0
  367. /package/{esm2020 → esm2022}/table/tokens.mjs +0 -0
  368. /package/{esm2020 → esm2022}/testing/change-detection.mjs +0 -0
  369. /package/{esm2020 → esm2022}/testing/component-harness.mjs +0 -0
  370. /package/{esm2020 → esm2022}/testing/element-dimensions.mjs +0 -0
  371. /package/{esm2020 → esm2022}/testing/harness-environment.mjs +0 -0
  372. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  373. /package/{esm2020 → esm2022}/testing/public-api.mjs +0 -0
  374. /package/{esm2020 → esm2022}/testing/selenium-webdriver/index.mjs +0 -0
  375. /package/{esm2020 → esm2022}/testing/selenium-webdriver/public-api.mjs +0 -0
  376. /package/{esm2020 → esm2022}/testing/selenium-webdriver/selenium-web-driver-element.mjs +0 -0
  377. /package/{esm2020 → esm2022}/testing/selenium-webdriver/selenium-web-driver-harness-environment.mjs +0 -0
  378. /package/{esm2020 → esm2022}/testing/selenium-webdriver/selenium-webdriver-keys.mjs +0 -0
  379. /package/{esm2020 → esm2022}/testing/test-element-errors.mjs +0 -0
  380. /package/{esm2020 → esm2022}/testing/test-element.mjs +0 -0
  381. /package/{esm2020 → esm2022}/testing/testbed/fake-events/dispatch-events.mjs +0 -0
  382. /package/{esm2020 → esm2022}/testing/testbed/fake-events/element-focus.mjs +0 -0
  383. /package/{esm2020 → esm2022}/testing/testbed/fake-events/event-objects.mjs +0 -0
  384. /package/{esm2020 → esm2022}/testing/testbed/fake-events/index.mjs +0 -0
  385. /package/{esm2020 → esm2022}/testing/testbed/fake-events/type-in-element.mjs +0 -0
  386. /package/{esm2020 → esm2022}/testing/testbed/index.mjs +0 -0
  387. /package/{esm2020 → esm2022}/testing/testbed/public-api.mjs +0 -0
  388. /package/{esm2020 → esm2022}/testing/testbed/task-state-zone-interceptor.mjs +0 -0
  389. /package/{esm2020 → esm2022}/testing/testbed/testbed-harness-environment.mjs +0 -0
  390. /package/{esm2020 → esm2022}/testing/testbed/unit-test-element.mjs +0 -0
  391. /package/{esm2020 → esm2022}/testing/text-filtering.mjs +0 -0
  392. /package/{esm2020 → esm2022}/text-field/index.mjs +0 -0
  393. /package/{esm2020 → esm2022}/text-field/public-api.mjs +0 -0
  394. /package/{esm2020 → esm2022}/text-field/text-field_public_index.mjs +0 -0
  395. /package/{esm2020 → esm2022}/tree/control/base-tree-control.mjs +0 -0
  396. /package/{esm2020 → esm2022}/tree/control/flat-tree-control.mjs +0 -0
  397. /package/{esm2020 → esm2022}/tree/control/nested-tree-control.mjs +0 -0
  398. /package/{esm2020 → esm2022}/tree/control/tree-control.mjs +0 -0
  399. /package/{esm2020 → esm2022}/tree/index.mjs +0 -0
  400. /package/{esm2020 → esm2022}/tree/public-api.mjs +0 -0
  401. /package/{esm2020 → esm2022}/tree/tree-errors.mjs +0 -0
  402. /package/{esm2020 → esm2022}/tree/tree_public_index.mjs +0 -0
  403. /package/{fesm2015 → fesm2022}/coercion.mjs +0 -0
  404. /package/{fesm2015 → fesm2022}/coercion.mjs.map +0 -0
  405. /package/{fesm2015 → fesm2022}/keycodes.mjs +0 -0
  406. /package/{fesm2015 → fesm2022}/keycodes.mjs.map +0 -0
  407. /package/{fesm2020 → fesm2022}/testing/selenium-webdriver.mjs +0 -0
  408. /package/{fesm2020 → fesm2022}/testing/selenium-webdriver.mjs.map +0 -0
  409. /package/{fesm2020 → fesm2022}/testing/testbed.mjs +0 -0
  410. /package/{fesm2020 → fesm2022}/testing/testbed.mjs.map +0 -0
  411. /package/{fesm2020 → fesm2022}/testing.mjs +0 -0
  412. /package/{fesm2020 → fesm2022}/testing.mjs.map +0 -0
@@ -1,570 +0,0 @@
1
- import { FocusKeyManager } from '@angular/cdk/a11y';
2
- import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
3
- import { hasModifierKey, SPACE, ENTER } from '@angular/cdk/keycodes';
4
- import * as i0 from '@angular/core';
5
- import { Directive, InjectionToken, EventEmitter, forwardRef, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Optional, ContentChild, ViewChild, Input, Output, QueryList, ContentChildren, NgModule } from '@angular/core';
6
- import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
7
- import { Subject, of } from 'rxjs';
8
- import { startWith, takeUntil } from 'rxjs/operators';
9
- import * as i1 from '@angular/cdk/bidi';
10
- import { BidiModule } from '@angular/cdk/bidi';
11
-
12
- class CdkStepHeader {
13
- constructor(_elementRef) {
14
- this._elementRef = _elementRef;
15
- }
16
- /** Focuses the step header. */
17
- focus() {
18
- this._elementRef.nativeElement.focus();
19
- }
20
- }
21
- CdkStepHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepHeader, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
22
- CdkStepHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkStepHeader, selector: "[cdkStepHeader]", host: { attributes: { "role": "tab" } }, ngImport: i0 });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepHeader, decorators: [{
24
- type: Directive,
25
- args: [{
26
- selector: '[cdkStepHeader]',
27
- host: {
28
- 'role': 'tab',
29
- },
30
- }]
31
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
32
-
33
- class CdkStepLabel {
34
- constructor(/** @docs-private */ template) {
35
- this.template = template;
36
- }
37
- }
38
- CdkStepLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepLabel, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
39
- CdkStepLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkStepLabel, selector: "[cdkStepLabel]", ngImport: i0 });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepLabel, decorators: [{
41
- type: Directive,
42
- args: [{
43
- selector: '[cdkStepLabel]',
44
- }]
45
- }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
46
-
47
- /** Used to generate unique ID for each stepper component. */
48
- let nextId = 0;
49
- /** Change event emitted on selection changes. */
50
- class StepperSelectionEvent {
51
- }
52
- /** Enum to represent the different states of the steps. */
53
- const STEP_STATE = {
54
- NUMBER: 'number',
55
- EDIT: 'edit',
56
- DONE: 'done',
57
- ERROR: 'error',
58
- };
59
- /** InjectionToken that can be used to specify the global stepper options. */
60
- const STEPPER_GLOBAL_OPTIONS = new InjectionToken('STEPPER_GLOBAL_OPTIONS');
61
- class CdkStep {
62
- /** Whether the user can return to this step once it has been marked as completed. */
63
- get editable() {
64
- return this._editable;
65
- }
66
- set editable(value) {
67
- this._editable = coerceBooleanProperty(value);
68
- }
69
- /** Whether the completion of step is optional. */
70
- get optional() {
71
- return this._optional;
72
- }
73
- set optional(value) {
74
- this._optional = coerceBooleanProperty(value);
75
- }
76
- /** Whether step is marked as completed. */
77
- get completed() {
78
- return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;
79
- }
80
- set completed(value) {
81
- this._completedOverride = coerceBooleanProperty(value);
82
- }
83
- _getDefaultCompleted() {
84
- return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
85
- }
86
- /** Whether step has an error. */
87
- get hasError() {
88
- return this._customError == null ? this._getDefaultError() : this._customError;
89
- }
90
- set hasError(value) {
91
- this._customError = coerceBooleanProperty(value);
92
- }
93
- _getDefaultError() {
94
- return this.stepControl && this.stepControl.invalid && this.interacted;
95
- }
96
- constructor(_stepper, stepperOptions) {
97
- this._stepper = _stepper;
98
- /** Whether user has attempted to move away from the step. */
99
- this.interacted = false;
100
- /** Emits when the user has attempted to move away from the step. */
101
- this.interactedStream = new EventEmitter();
102
- this._editable = true;
103
- this._optional = false;
104
- this._completedOverride = null;
105
- this._customError = null;
106
- this._stepperOptions = stepperOptions ? stepperOptions : {};
107
- this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;
108
- }
109
- /** Selects this step component. */
110
- select() {
111
- this._stepper.selected = this;
112
- }
113
- /** Resets the step to its initial state. Note that this includes resetting form data. */
114
- reset() {
115
- this.interacted = false;
116
- if (this._completedOverride != null) {
117
- this._completedOverride = false;
118
- }
119
- if (this._customError != null) {
120
- this._customError = false;
121
- }
122
- if (this.stepControl) {
123
- this.stepControl.reset();
124
- }
125
- }
126
- ngOnChanges() {
127
- // Since basically all inputs of the MatStep get proxied through the view down to the
128
- // underlying MatStepHeader, we have to make sure that change detection runs correctly.
129
- this._stepper._stateChanged();
130
- }
131
- _markAsInteracted() {
132
- if (!this.interacted) {
133
- this.interacted = true;
134
- this.interactedStream.emit(this);
135
- }
136
- }
137
- /** Determines whether the error state can be shown. */
138
- _showError() {
139
- var _a;
140
- // We want to show the error state either if the user opted into/out of it using the
141
- // global options, or if they've explicitly set it through the `hasError` input.
142
- return (_a = this._stepperOptions.showError) !== null && _a !== void 0 ? _a : this._customError != null;
143
- }
144
- }
145
- CdkStep.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStep, deps: [{ token: forwardRef(() => CdkStepper) }, { token: STEPPER_GLOBAL_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
146
- CdkStep.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkStep, selector: "cdk-step", inputs: { stepControl: "stepControl", label: "label", errorMessage: "errorMessage", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], state: "state", editable: "editable", optional: "optional", completed: "completed", hasError: "hasError" }, outputs: { interactedStream: "interacted" }, queries: [{ propertyName: "stepLabel", first: true, predicate: CdkStepLabel, descendants: true }], viewQueries: [{ propertyName: "content", first: true, predicate: TemplateRef, descendants: true, static: true }], exportAs: ["cdkStep"], usesOnChanges: true, ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStep, decorators: [{
148
- type: Component,
149
- args: [{
150
- selector: 'cdk-step',
151
- exportAs: 'cdkStep',
152
- template: '<ng-template><ng-content></ng-content></ng-template>',
153
- encapsulation: ViewEncapsulation.None,
154
- changeDetection: ChangeDetectionStrategy.OnPush,
155
- }]
156
- }], ctorParameters: function () {
157
- return [{ type: CdkStepper, decorators: [{
158
- type: Inject,
159
- args: [forwardRef(() => CdkStepper)]
160
- }] }, { type: undefined, decorators: [{
161
- type: Optional
162
- }, {
163
- type: Inject,
164
- args: [STEPPER_GLOBAL_OPTIONS]
165
- }] }];
166
- }, propDecorators: { stepLabel: [{
167
- type: ContentChild,
168
- args: [CdkStepLabel]
169
- }], content: [{
170
- type: ViewChild,
171
- args: [TemplateRef, { static: true }]
172
- }], stepControl: [{
173
- type: Input
174
- }], interactedStream: [{
175
- type: Output,
176
- args: ['interacted']
177
- }], label: [{
178
- type: Input
179
- }], errorMessage: [{
180
- type: Input
181
- }], ariaLabel: [{
182
- type: Input,
183
- args: ['aria-label']
184
- }], ariaLabelledby: [{
185
- type: Input,
186
- args: ['aria-labelledby']
187
- }], state: [{
188
- type: Input
189
- }], editable: [{
190
- type: Input
191
- }], optional: [{
192
- type: Input
193
- }], completed: [{
194
- type: Input
195
- }], hasError: [{
196
- type: Input
197
- }] } });
198
- class CdkStepper {
199
- /** Whether the validity of previous steps should be checked or not. */
200
- get linear() {
201
- return this._linear;
202
- }
203
- set linear(value) {
204
- this._linear = coerceBooleanProperty(value);
205
- }
206
- /** The index of the selected step. */
207
- get selectedIndex() {
208
- return this._selectedIndex;
209
- }
210
- set selectedIndex(index) {
211
- var _a;
212
- const newIndex = coerceNumberProperty(index);
213
- if (this.steps && this._steps) {
214
- // Ensure that the index can't be out of bounds.
215
- if (!this._isValidIndex(newIndex) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
216
- throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');
217
- }
218
- (_a = this.selected) === null || _a === void 0 ? void 0 : _a._markAsInteracted();
219
- if (this._selectedIndex !== newIndex &&
220
- !this._anyControlsInvalidOrPending(newIndex) &&
221
- (newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {
222
- this._updateSelectedItemIndex(newIndex);
223
- }
224
- }
225
- else {
226
- this._selectedIndex = newIndex;
227
- }
228
- }
229
- /** The step that is selected. */
230
- get selected() {
231
- return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;
232
- }
233
- set selected(step) {
234
- this.selectedIndex = step && this.steps ? this.steps.toArray().indexOf(step) : -1;
235
- }
236
- /** Orientation of the stepper. */
237
- get orientation() {
238
- return this._orientation;
239
- }
240
- set orientation(value) {
241
- // This is a protected method so that `MatStepper` can hook into it.
242
- this._orientation = value;
243
- if (this._keyManager) {
244
- this._keyManager.withVerticalOrientation(value === 'vertical');
245
- }
246
- }
247
- constructor(_dir, _changeDetectorRef, _elementRef) {
248
- this._dir = _dir;
249
- this._changeDetectorRef = _changeDetectorRef;
250
- this._elementRef = _elementRef;
251
- /** Emits when the component is destroyed. */
252
- this._destroyed = new Subject();
253
- /** Steps that belong to the current stepper, excluding ones from nested steppers. */
254
- this.steps = new QueryList();
255
- /** List of step headers sorted based on their DOM order. */
256
- this._sortedHeaders = new QueryList();
257
- this._linear = false;
258
- this._selectedIndex = 0;
259
- /** Event emitted when the selected step has changed. */
260
- this.selectionChange = new EventEmitter();
261
- this._orientation = 'horizontal';
262
- this._groupId = nextId++;
263
- }
264
- ngAfterContentInit() {
265
- this._steps.changes
266
- .pipe(startWith(this._steps), takeUntil(this._destroyed))
267
- .subscribe((steps) => {
268
- this.steps.reset(steps.filter(step => step._stepper === this));
269
- this.steps.notifyOnChanges();
270
- });
271
- }
272
- ngAfterViewInit() {
273
- // If the step headers are defined outside of the `ngFor` that renders the steps, like in the
274
- // Material stepper, they won't appear in the `QueryList` in the same order as they're
275
- // rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort
276
- // them manually to ensure that they're correct. Alternatively, we can change the Material
277
- // template to inline the headers in the `ngFor`, but that'll result in a lot of
278
- // code duplication. See #23539.
279
- this._stepHeader.changes
280
- .pipe(startWith(this._stepHeader), takeUntil(this._destroyed))
281
- .subscribe((headers) => {
282
- this._sortedHeaders.reset(headers.toArray().sort((a, b) => {
283
- const documentPosition = a._elementRef.nativeElement.compareDocumentPosition(b._elementRef.nativeElement);
284
- // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
285
- // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
286
- // tslint:disable-next-line:no-bitwise
287
- return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
288
- }));
289
- this._sortedHeaders.notifyOnChanges();
290
- });
291
- // Note that while the step headers are content children by default, any components that
292
- // extend this one might have them as view children. We initialize the keyboard handling in
293
- // AfterViewInit so we're guaranteed for both view and content children to be defined.
294
- this._keyManager = new FocusKeyManager(this._sortedHeaders)
295
- .withWrap()
296
- .withHomeAndEnd()
297
- .withVerticalOrientation(this._orientation === 'vertical');
298
- (this._dir ? this._dir.change : of())
299
- .pipe(startWith(this._layoutDirection()), takeUntil(this._destroyed))
300
- .subscribe(direction => this._keyManager.withHorizontalOrientation(direction));
301
- this._keyManager.updateActiveItem(this._selectedIndex);
302
- // No need to `takeUntil` here, because we're the ones destroying `steps`.
303
- this.steps.changes.subscribe(() => {
304
- if (!this.selected) {
305
- this._selectedIndex = Math.max(this._selectedIndex - 1, 0);
306
- }
307
- });
308
- // The logic which asserts that the selected index is within bounds doesn't run before the
309
- // steps are initialized, because we don't how many steps there are yet so we may have an
310
- // invalid index on init. If that's the case, auto-correct to the default so we don't throw.
311
- if (!this._isValidIndex(this._selectedIndex)) {
312
- this._selectedIndex = 0;
313
- }
314
- }
315
- ngOnDestroy() {
316
- var _a;
317
- (_a = this._keyManager) === null || _a === void 0 ? void 0 : _a.destroy();
318
- this.steps.destroy();
319
- this._sortedHeaders.destroy();
320
- this._destroyed.next();
321
- this._destroyed.complete();
322
- }
323
- /** Selects and focuses the next step in list. */
324
- next() {
325
- this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);
326
- }
327
- /** Selects and focuses the previous step in list. */
328
- previous() {
329
- this.selectedIndex = Math.max(this._selectedIndex - 1, 0);
330
- }
331
- /** Resets the stepper to its initial state. Note that this includes clearing form data. */
332
- reset() {
333
- this._updateSelectedItemIndex(0);
334
- this.steps.forEach(step => step.reset());
335
- this._stateChanged();
336
- }
337
- /** Returns a unique id for each step label element. */
338
- _getStepLabelId(i) {
339
- return `cdk-step-label-${this._groupId}-${i}`;
340
- }
341
- /** Returns unique id for each step content element. */
342
- _getStepContentId(i) {
343
- return `cdk-step-content-${this._groupId}-${i}`;
344
- }
345
- /** Marks the component to be change detected. */
346
- _stateChanged() {
347
- this._changeDetectorRef.markForCheck();
348
- }
349
- /** Returns position state of the step with the given index. */
350
- _getAnimationDirection(index) {
351
- const position = index - this._selectedIndex;
352
- if (position < 0) {
353
- return this._layoutDirection() === 'rtl' ? 'next' : 'previous';
354
- }
355
- else if (position > 0) {
356
- return this._layoutDirection() === 'rtl' ? 'previous' : 'next';
357
- }
358
- return 'current';
359
- }
360
- /** Returns the type of icon to be displayed. */
361
- _getIndicatorType(index, state = STEP_STATE.NUMBER) {
362
- const step = this.steps.toArray()[index];
363
- const isCurrentStep = this._isCurrentStep(index);
364
- return step._displayDefaultIndicatorType
365
- ? this._getDefaultIndicatorLogic(step, isCurrentStep)
366
- : this._getGuidelineLogic(step, isCurrentStep, state);
367
- }
368
- _getDefaultIndicatorLogic(step, isCurrentStep) {
369
- if (step._showError() && step.hasError && !isCurrentStep) {
370
- return STEP_STATE.ERROR;
371
- }
372
- else if (!step.completed || isCurrentStep) {
373
- return STEP_STATE.NUMBER;
374
- }
375
- else {
376
- return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;
377
- }
378
- }
379
- _getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) {
380
- if (step._showError() && step.hasError && !isCurrentStep) {
381
- return STEP_STATE.ERROR;
382
- }
383
- else if (step.completed && !isCurrentStep) {
384
- return STEP_STATE.DONE;
385
- }
386
- else if (step.completed && isCurrentStep) {
387
- return state;
388
- }
389
- else if (step.editable && isCurrentStep) {
390
- return STEP_STATE.EDIT;
391
- }
392
- else {
393
- return state;
394
- }
395
- }
396
- _isCurrentStep(index) {
397
- return this._selectedIndex === index;
398
- }
399
- /** Returns the index of the currently-focused step header. */
400
- _getFocusIndex() {
401
- return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;
402
- }
403
- _updateSelectedItemIndex(newIndex) {
404
- const stepsArray = this.steps.toArray();
405
- this.selectionChange.emit({
406
- selectedIndex: newIndex,
407
- previouslySelectedIndex: this._selectedIndex,
408
- selectedStep: stepsArray[newIndex],
409
- previouslySelectedStep: stepsArray[this._selectedIndex],
410
- });
411
- // If focus is inside the stepper, move it to the next header, otherwise it may become
412
- // lost when the active step content is hidden. We can't be more granular with the check
413
- // (e.g. checking whether focus is inside the active step), because we don't have a
414
- // reference to the elements that are rendering out the content.
415
- this._containsFocus()
416
- ? this._keyManager.setActiveItem(newIndex)
417
- : this._keyManager.updateActiveItem(newIndex);
418
- this._selectedIndex = newIndex;
419
- this._stateChanged();
420
- }
421
- _onKeydown(event) {
422
- const hasModifier = hasModifierKey(event);
423
- const keyCode = event.keyCode;
424
- const manager = this._keyManager;
425
- if (manager.activeItemIndex != null &&
426
- !hasModifier &&
427
- (keyCode === SPACE || keyCode === ENTER)) {
428
- this.selectedIndex = manager.activeItemIndex;
429
- event.preventDefault();
430
- }
431
- else {
432
- manager.setFocusOrigin('keyboard').onKeydown(event);
433
- }
434
- }
435
- _anyControlsInvalidOrPending(index) {
436
- if (this._linear && index >= 0) {
437
- return this.steps
438
- .toArray()
439
- .slice(0, index)
440
- .some(step => {
441
- const control = step.stepControl;
442
- const isIncomplete = control
443
- ? control.invalid || control.pending || !step.interacted
444
- : !step.completed;
445
- return isIncomplete && !step.optional && !step._completedOverride;
446
- });
447
- }
448
- return false;
449
- }
450
- _layoutDirection() {
451
- return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
452
- }
453
- /** Checks whether the stepper contains the focused element. */
454
- _containsFocus() {
455
- const stepperElement = this._elementRef.nativeElement;
456
- const focusedElement = _getFocusedElementPierceShadowDom();
457
- return stepperElement === focusedElement || stepperElement.contains(focusedElement);
458
- }
459
- /** Checks whether the passed-in index is a valid step index. */
460
- _isValidIndex(index) {
461
- return index > -1 && (!this.steps || index < this.steps.length);
462
- }
463
- }
464
- CdkStepper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepper, deps: [{ token: i1.Directionality, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
465
- CdkStepper.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkStepper, selector: "[cdkStepper]", inputs: { linear: "linear", selectedIndex: "selectedIndex", selected: "selected", orientation: "orientation" }, outputs: { selectionChange: "selectionChange" }, queries: [{ propertyName: "_steps", predicate: CdkStep, descendants: true }, { propertyName: "_stepHeader", predicate: CdkStepHeader, descendants: true }], exportAs: ["cdkStepper"], ngImport: i0 });
466
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepper, decorators: [{
467
- type: Directive,
468
- args: [{
469
- selector: '[cdkStepper]',
470
- exportAs: 'cdkStepper',
471
- }]
472
- }], ctorParameters: function () {
473
- return [{ type: i1.Directionality, decorators: [{
474
- type: Optional
475
- }] }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }];
476
- }, propDecorators: { _steps: [{
477
- type: ContentChildren,
478
- args: [CdkStep, { descendants: true }]
479
- }], _stepHeader: [{
480
- type: ContentChildren,
481
- args: [CdkStepHeader, { descendants: true }]
482
- }], linear: [{
483
- type: Input
484
- }], selectedIndex: [{
485
- type: Input
486
- }], selected: [{
487
- type: Input
488
- }], selectionChange: [{
489
- type: Output
490
- }], orientation: [{
491
- type: Input
492
- }] } });
493
-
494
- /** Button that moves to the next step in a stepper workflow. */
495
- class CdkStepperNext {
496
- constructor(_stepper) {
497
- this._stepper = _stepper;
498
- /** Type of the next button. Defaults to "submit" if not specified. */
499
- this.type = 'submit';
500
- }
501
- }
502
- CdkStepperNext.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperNext, deps: [{ token: CdkStepper }], target: i0.ɵɵFactoryTarget.Directive });
503
- CdkStepperNext.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkStepperNext, selector: "button[cdkStepperNext]", inputs: { type: "type" }, host: { listeners: { "click": "_stepper.next()" }, properties: { "type": "type" } }, ngImport: i0 });
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperNext, decorators: [{
505
- type: Directive,
506
- args: [{
507
- selector: 'button[cdkStepperNext]',
508
- host: {
509
- '[type]': 'type',
510
- '(click)': '_stepper.next()',
511
- },
512
- }]
513
- }], ctorParameters: function () { return [{ type: CdkStepper }]; }, propDecorators: { type: [{
514
- type: Input
515
- }] } });
516
- /** Button that moves to the previous step in a stepper workflow. */
517
- class CdkStepperPrevious {
518
- constructor(_stepper) {
519
- this._stepper = _stepper;
520
- /** Type of the previous button. Defaults to "button" if not specified. */
521
- this.type = 'button';
522
- }
523
- }
524
- CdkStepperPrevious.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperPrevious, deps: [{ token: CdkStepper }], target: i0.ɵɵFactoryTarget.Directive });
525
- CdkStepperPrevious.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0-next.7", type: CdkStepperPrevious, selector: "button[cdkStepperPrevious]", inputs: { type: "type" }, host: { listeners: { "click": "_stepper.previous()" }, properties: { "type": "type" } }, ngImport: i0 });
526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperPrevious, decorators: [{
527
- type: Directive,
528
- args: [{
529
- selector: 'button[cdkStepperPrevious]',
530
- host: {
531
- '[type]': 'type',
532
- '(click)': '_stepper.previous()',
533
- },
534
- }]
535
- }], ctorParameters: function () { return [{ type: CdkStepper }]; }, propDecorators: { type: [{
536
- type: Input
537
- }] } });
538
-
539
- class CdkStepperModule {
540
- }
541
- CdkStepperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
542
- CdkStepperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperModule, declarations: [CdkStep,
543
- CdkStepper,
544
- CdkStepHeader,
545
- CdkStepLabel,
546
- CdkStepperNext,
547
- CdkStepperPrevious], imports: [BidiModule], exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious] });
548
- CdkStepperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperModule, imports: [BidiModule] });
549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.7", ngImport: i0, type: CdkStepperModule, decorators: [{
550
- type: NgModule,
551
- args: [{
552
- imports: [BidiModule],
553
- exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],
554
- declarations: [
555
- CdkStep,
556
- CdkStepper,
557
- CdkStepHeader,
558
- CdkStepLabel,
559
- CdkStepperNext,
560
- CdkStepperPrevious,
561
- ],
562
- }]
563
- }] });
564
-
565
- /**
566
- * Generated bundle index. Do not edit.
567
- */
568
-
569
- export { CdkStep, CdkStepHeader, CdkStepLabel, CdkStepper, CdkStepperModule, CdkStepperNext, CdkStepperPrevious, STEPPER_GLOBAL_OPTIONS, STEP_STATE, StepperSelectionEvent };
570
- //# sourceMappingURL=stepper.mjs.map