@angular/cdk 19.2.13 → 19.2.15

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 (429) hide show
  1. package/_adev_assets/cdk_testing.json +7032 -1
  2. package/_adev_assets/cdk_testing_protractor.json +1747 -1
  3. package/_adev_assets/cdk_testing_selenium_webdriver.json +1801 -1
  4. package/_adev_assets/cdk_testing_testbed.json +1903 -1
  5. package/dialog/index.d.ts +17 -12
  6. package/fesm2022/cdk.mjs +1 -1
  7. package/fesm2022/cdk.mjs.map +1 -1
  8. package/fesm2022/dialog.mjs +21 -9
  9. package/fesm2022/dialog.mjs.map +1 -1
  10. package/fesm2022/testing.mjs +255 -52
  11. package/fesm2022/testing.mjs.map +1 -1
  12. package/{harness-environment.d-BatBdODN.d.ts → harness-environment.d-BbFzIFDE.d.ts} +362 -89
  13. package/package.json +1 -1
  14. package/schematics/ng-add/index.js +1 -1
  15. package/testing/index.d.ts +6 -2
  16. package/testing/selenium-webdriver/index.d.ts +1 -1
  17. package/testing/testbed/index.d.ts +1 -1
  18. package/npm_package/LICENSE +0 -21
  19. package/npm_package/README.md +0 -6
  20. package/npm_package/_adev_assets/cdk_testing.json +0 -1
  21. package/npm_package/_adev_assets/cdk_testing_protractor.json +0 -1
  22. package/npm_package/_adev_assets/cdk_testing_selenium_webdriver.json +0 -1
  23. package/npm_package/_adev_assets/cdk_testing_testbed.json +0 -1
  24. package/npm_package/_index.scss +0 -8
  25. package/npm_package/a11y/_index.scss +0 -60
  26. package/npm_package/a11y/index.d.ts +0 -550
  27. package/npm_package/a11y-module.d-DBHGyKoh.d.ts +0 -314
  28. package/npm_package/a11y-prebuilt.css +0 -1
  29. package/npm_package/accordion/index.d.ts +0 -90
  30. package/npm_package/activedescendant-key-manager.d-Bjic5obv.d.ts +0 -32
  31. package/npm_package/bidi/index.d.ts +0 -21
  32. package/npm_package/bidi-module.d-D-fEBKdS.d.ts +0 -54
  33. package/npm_package/clipboard/index.d.ts +0 -101
  34. package/npm_package/coercion/index.d.ts +0 -45
  35. package/npm_package/coercion/private/index.d.ts +0 -9
  36. package/npm_package/collections/index.d.ts +0 -99
  37. package/npm_package/data-source.d-Bblv7Zvh.d.ts +0 -43
  38. package/npm_package/dialog/index.d.ts +0 -426
  39. package/npm_package/drag-drop/index.d.ts +0 -1383
  40. package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs +0 -952
  41. package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs.map +0 -1
  42. package/npm_package/fesm2022/a11y.mjs +0 -539
  43. package/npm_package/fesm2022/a11y.mjs.map +0 -1
  44. package/npm_package/fesm2022/accordion.mjs +0 -210
  45. package/npm_package/fesm2022/accordion.mjs.map +0 -1
  46. package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs +0 -16
  47. package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs.map +0 -1
  48. package/npm_package/fesm2022/array-I1yfCXUO.mjs +0 -6
  49. package/npm_package/fesm2022/array-I1yfCXUO.mjs.map +0 -1
  50. package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs +0 -25
  51. package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs.map +0 -1
  52. package/npm_package/fesm2022/bidi.mjs +0 -80
  53. package/npm_package/fesm2022/bidi.mjs.map +0 -1
  54. package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs +0 -7
  55. package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs.map +0 -1
  56. package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs +0 -179
  57. package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs.map +0 -1
  58. package/npm_package/fesm2022/cdk.mjs +0 -7
  59. package/npm_package/fesm2022/cdk.mjs.map +0 -1
  60. package/npm_package/fesm2022/clipboard.mjs +0 -211
  61. package/npm_package/fesm2022/clipboard.mjs.map +0 -1
  62. package/npm_package/fesm2022/coercion/private.mjs +0 -15
  63. package/npm_package/fesm2022/coercion/private.mjs.map +0 -1
  64. package/npm_package/fesm2022/coercion.mjs +0 -39
  65. package/npm_package/fesm2022/coercion.mjs.map +0 -1
  66. package/npm_package/fesm2022/collections.mjs +0 -8
  67. package/npm_package/fesm2022/collections.mjs.map +0 -1
  68. package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs +0 -10
  69. package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +0 -1
  70. package/npm_package/fesm2022/data-source-D34wiQZj.mjs +0 -15
  71. package/npm_package/fesm2022/data-source-D34wiQZj.mjs.map +0 -1
  72. package/npm_package/fesm2022/dialog.mjs +0 -870
  73. package/npm_package/fesm2022/dialog.mjs.map +0 -1
  74. package/npm_package/fesm2022/directionality-CBXD4hga.mjs +0 -72
  75. package/npm_package/fesm2022/directionality-CBXD4hga.mjs.map +0 -1
  76. package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs +0 -44
  77. package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +0 -1
  78. package/npm_package/fesm2022/drag-drop.mjs +0 -4359
  79. package/npm_package/fesm2022/drag-drop.mjs.map +0 -1
  80. package/npm_package/fesm2022/element-x4z00URv.mjs +0 -29
  81. package/npm_package/fesm2022/element-x4z00URv.mjs.map +0 -1
  82. package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs +0 -24
  83. package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +0 -1
  84. package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs +0 -22
  85. package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs.map +0 -1
  86. package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs +0 -629
  87. package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs.map +0 -1
  88. package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs +0 -37
  89. package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs.map +0 -1
  90. package/npm_package/fesm2022/keycodes-CpHkExLC.mjs +0 -122
  91. package/npm_package/fesm2022/keycodes-CpHkExLC.mjs.map +0 -1
  92. package/npm_package/fesm2022/keycodes.mjs +0 -15
  93. package/npm_package/fesm2022/keycodes.mjs.map +0 -1
  94. package/npm_package/fesm2022/layout.mjs +0 -43
  95. package/npm_package/fesm2022/layout.mjs.map +0 -1
  96. package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs +0 -360
  97. package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs.map +0 -1
  98. package/npm_package/fesm2022/listbox.mjs +0 -925
  99. package/npm_package/fesm2022/listbox.mjs.map +0 -1
  100. package/npm_package/fesm2022/menu.mjs +0 -1966
  101. package/npm_package/fesm2022/menu.mjs.map +0 -1
  102. package/npm_package/fesm2022/observers/private.mjs +0 -124
  103. package/npm_package/fesm2022/observers/private.mjs.map +0 -1
  104. package/npm_package/fesm2022/observers.mjs +0 -210
  105. package/npm_package/fesm2022/observers.mjs.map +0 -1
  106. package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs +0 -3029
  107. package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs.map +0 -1
  108. package/npm_package/fesm2022/overlay.mjs +0 -102
  109. package/npm_package/fesm2022/overlay.mjs.map +0 -1
  110. package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs +0 -31
  111. package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs.map +0 -1
  112. package/npm_package/fesm2022/platform-DmdVEw_C.mjs +0 -77
  113. package/npm_package/fesm2022/platform-DmdVEw_C.mjs.map +0 -1
  114. package/npm_package/fesm2022/platform.mjs +0 -74
  115. package/npm_package/fesm2022/platform.mjs.map +0 -1
  116. package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs +0 -653
  117. package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs.map +0 -1
  118. package/npm_package/fesm2022/portal.mjs +0 -29
  119. package/npm_package/fesm2022/portal.mjs.map +0 -1
  120. package/npm_package/fesm2022/private.mjs +0 -19
  121. package/npm_package/fesm2022/private.mjs.map +0 -1
  122. package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs +0 -156
  123. package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +0 -1
  124. package/npm_package/fesm2022/scrolling-BkvA05C8.mjs +0 -99
  125. package/npm_package/fesm2022/scrolling-BkvA05C8.mjs.map +0 -1
  126. package/npm_package/fesm2022/scrolling.mjs +0 -1464
  127. package/npm_package/fesm2022/scrolling.mjs.map +0 -1
  128. package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs +0 -226
  129. package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs.map +0 -1
  130. package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs +0 -49
  131. package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs.map +0 -1
  132. package/npm_package/fesm2022/stepper.mjs +0 -614
  133. package/npm_package/fesm2022/stepper.mjs.map +0 -1
  134. package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs +0 -47
  135. package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs.map +0 -1
  136. package/npm_package/fesm2022/table.mjs +0 -2602
  137. package/npm_package/fesm2022/table.mjs.map +0 -1
  138. package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs +0 -19
  139. package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs.map +0 -1
  140. package/npm_package/fesm2022/testing/selenium-webdriver.mjs +0 -353
  141. package/npm_package/fesm2022/testing/selenium-webdriver.mjs.map +0 -1
  142. package/npm_package/fesm2022/testing/testbed.mjs +0 -782
  143. package/npm_package/fesm2022/testing/testbed.mjs.map +0 -1
  144. package/npm_package/fesm2022/testing.mjs +0 -698
  145. package/npm_package/fesm2022/testing.mjs.map +0 -1
  146. package/npm_package/fesm2022/text-field.mjs +0 -437
  147. package/npm_package/fesm2022/text-field.mjs.map +0 -1
  148. package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs +0 -360
  149. package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +0 -1
  150. package/npm_package/fesm2022/tree.mjs +0 -1795
  151. package/npm_package/fesm2022/tree.mjs.map +0 -1
  152. package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs +0 -88
  153. package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +0 -1
  154. package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs +0 -49
  155. package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs.map +0 -1
  156. package/npm_package/focus-key-manager.d-BIKDy8oD.d.ts +0 -34
  157. package/npm_package/focus-monitor.d-CvvJeQRc.d.ts +0 -210
  158. package/npm_package/harness-environment.d-BatBdODN.d.ts +0 -620
  159. package/npm_package/index.d.ts +0 -6
  160. package/npm_package/keycodes/index.d.ts +0 -129
  161. package/npm_package/layout/index.d.ts +0 -89
  162. package/npm_package/list-key-manager.d-BlK3jyRn.d.ts +0 -165
  163. package/npm_package/listbox/index.d.ts +0 -353
  164. package/npm_package/menu/index.d.ts +0 -821
  165. package/npm_package/number-property.d-CJVxXUcb.d.ts +0 -16
  166. package/npm_package/observers/index.d.ts +0 -84
  167. package/npm_package/observers/private/index.d.ts +0 -34
  168. package/npm_package/overlay/_index-deprecated.scss +0 -13
  169. package/npm_package/overlay/_index.scss +0 -193
  170. package/npm_package/overlay/index.d.ts +0 -42
  171. package/npm_package/overlay-module.d-B3qEQtts.d.ts +0 -791
  172. package/npm_package/overlay-prebuilt.css +0 -1
  173. package/npm_package/overlay.d-BdoMy0hX.d.ts +0 -296
  174. package/npm_package/package.json +0 -186
  175. package/npm_package/platform/index.d.ts +0 -83
  176. package/npm_package/platform.d-B3vREl3q.d.ts +0 -33
  177. package/npm_package/portal/index.d.ts +0 -86
  178. package/npm_package/portal-directives.d-BoG39gYN.d.ts +0 -232
  179. package/npm_package/private/index.d.ts +0 -13
  180. package/npm_package/schematics/collection.json +0 -18
  181. package/npm_package/schematics/index.d.ts +0 -14
  182. package/npm_package/schematics/index.js +0 -37
  183. package/npm_package/schematics/index.js.map +0 -1
  184. package/npm_package/schematics/migration.json +0 -15
  185. package/npm_package/schematics/ng-add/index.d.ts +0 -17
  186. package/npm_package/schematics/ng-add/index.js +0 -39
  187. package/npm_package/schematics/ng-add/index.js.map +0 -1
  188. package/npm_package/schematics/ng-add/package-config.d.ts +0 -12
  189. package/npm_package/schematics/ng-add/package-config.js +0 -51
  190. package/npm_package/schematics/ng-add/package-config.js.map +0 -1
  191. package/npm_package/schematics/ng-add/schema.d.ts +0 -11
  192. package/npm_package/schematics/ng-add/schema.js +0 -10
  193. package/npm_package/schematics/ng-add/schema.js.map +0 -1
  194. package/npm_package/schematics/ng-add/schema.json +0 -16
  195. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +0 -53
  196. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +0 -21
  197. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +0 -25
  198. package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +0 -45
  199. package/npm_package/schematics/ng-generate/drag-drop/index.d.ts +0 -11
  200. package/npm_package/schematics/ng-generate/drag-drop/index.js +0 -42
  201. package/npm_package/schematics/ng-generate/drag-drop/index.js.map +0 -1
  202. package/npm_package/schematics/ng-generate/drag-drop/schema.d.ts +0 -10
  203. package/npm_package/schematics/ng-generate/drag-drop/schema.js +0 -10
  204. package/npm_package/schematics/ng-generate/drag-drop/schema.js.map +0 -1
  205. package/npm_package/schematics/ng-generate/drag-drop/schema.json +0 -100
  206. package/npm_package/schematics/ng-update/data/attribute-selectors.d.ts +0 -15
  207. package/npm_package/schematics/ng-update/data/attribute-selectors.js +0 -12
  208. package/npm_package/schematics/ng-update/data/attribute-selectors.js.map +0 -1
  209. package/npm_package/schematics/ng-update/data/class-names.d.ts +0 -15
  210. package/npm_package/schematics/ng-update/data/class-names.js +0 -12
  211. package/npm_package/schematics/ng-update/data/class-names.js.map +0 -1
  212. package/npm_package/schematics/ng-update/data/constructor-checks.d.ts +0 -15
  213. package/npm_package/schematics/ng-update/data/constructor-checks.js +0 -17
  214. package/npm_package/schematics/ng-update/data/constructor-checks.js.map +0 -1
  215. package/npm_package/schematics/ng-update/data/css-selectors.d.ts +0 -27
  216. package/npm_package/schematics/ng-update/data/css-selectors.js +0 -12
  217. package/npm_package/schematics/ng-update/data/css-selectors.js.map +0 -1
  218. package/npm_package/schematics/ng-update/data/css-tokens.d.ts +0 -27
  219. package/npm_package/schematics/ng-update/data/css-tokens.js +0 -12
  220. package/npm_package/schematics/ng-update/data/css-tokens.js.map +0 -1
  221. package/npm_package/schematics/ng-update/data/element-selectors.d.ts +0 -15
  222. package/npm_package/schematics/ng-update/data/element-selectors.js +0 -12
  223. package/npm_package/schematics/ng-update/data/element-selectors.js.map +0 -1
  224. package/npm_package/schematics/ng-update/data/index.d.ts +0 -18
  225. package/npm_package/schematics/ng-update/data/index.js +0 -35
  226. package/npm_package/schematics/ng-update/data/index.js.map +0 -1
  227. package/npm_package/schematics/ng-update/data/input-names.d.ts +0 -22
  228. package/npm_package/schematics/ng-update/data/input-names.js +0 -12
  229. package/npm_package/schematics/ng-update/data/input-names.js.map +0 -1
  230. package/npm_package/schematics/ng-update/data/method-call-checks.d.ts +0 -17
  231. package/npm_package/schematics/ng-update/data/method-call-checks.js +0 -12
  232. package/npm_package/schematics/ng-update/data/method-call-checks.js.map +0 -1
  233. package/npm_package/schematics/ng-update/data/output-names.d.ts +0 -22
  234. package/npm_package/schematics/ng-update/data/output-names.js +0 -12
  235. package/npm_package/schematics/ng-update/data/output-names.js.map +0 -1
  236. package/npm_package/schematics/ng-update/data/property-names.d.ts +0 -20
  237. package/npm_package/schematics/ng-update/data/property-names.js +0 -12
  238. package/npm_package/schematics/ng-update/data/property-names.js.map +0 -1
  239. package/npm_package/schematics/ng-update/data/symbol-removal.d.ts +0 -17
  240. package/npm_package/schematics/ng-update/data/symbol-removal.js +0 -12
  241. package/npm_package/schematics/ng-update/data/symbol-removal.js.map +0 -1
  242. package/npm_package/schematics/ng-update/devkit-file-system.d.ts +0 -30
  243. package/npm_package/schematics/ng-update/devkit-file-system.js +0 -83
  244. package/npm_package/schematics/ng-update/devkit-file-system.js.map +0 -1
  245. package/npm_package/schematics/ng-update/devkit-migration-rule.d.ts +0 -24
  246. package/npm_package/schematics/ng-update/devkit-migration-rule.js +0 -142
  247. package/npm_package/schematics/ng-update/devkit-migration-rule.js.map +0 -1
  248. package/npm_package/schematics/ng-update/devkit-migration.d.ts +0 -35
  249. package/npm_package/schematics/ng-update/devkit-migration.js +0 -20
  250. package/npm_package/schematics/ng-update/devkit-migration.js.map +0 -1
  251. package/npm_package/schematics/ng-update/find-stylesheets.d.ts +0 -16
  252. package/npm_package/schematics/ng-update/find-stylesheets.js +0 -41
  253. package/npm_package/schematics/ng-update/find-stylesheets.js.map +0 -1
  254. package/npm_package/schematics/ng-update/html-parsing/angular.d.ts +0 -15
  255. package/npm_package/schematics/ng-update/html-parsing/angular.js +0 -51
  256. package/npm_package/schematics/ng-update/html-parsing/angular.js.map +0 -1
  257. package/npm_package/schematics/ng-update/html-parsing/elements.d.ts +0 -24
  258. package/npm_package/schematics/ng-update/html-parsing/elements.js +0 -63
  259. package/npm_package/schematics/ng-update/html-parsing/elements.js.map +0 -1
  260. package/npm_package/schematics/ng-update/index.d.ts +0 -10
  261. package/npm_package/schematics/ng-update/index.js +0 -29
  262. package/npm_package/schematics/ng-update/index.js.map +0 -1
  263. package/npm_package/schematics/ng-update/migrations/attribute-selectors.d.ts +0 -26
  264. package/npm_package/schematics/ng-update/migrations/attribute-selectors.js +0 -71
  265. package/npm_package/schematics/ng-update/migrations/attribute-selectors.js.map +0 -1
  266. package/npm_package/schematics/ng-update/migrations/class-inheritance.d.ts +0 -26
  267. package/npm_package/schematics/ng-update/migrations/class-inheritance.js +0 -58
  268. package/npm_package/schematics/ng-update/migrations/class-inheritance.js.map +0 -1
  269. package/npm_package/schematics/ng-update/migrations/class-names.d.ts +0 -32
  270. package/npm_package/schematics/ng-update/migrations/class-names.js +0 -91
  271. package/npm_package/schematics/ng-update/migrations/class-names.js.map +0 -1
  272. package/npm_package/schematics/ng-update/migrations/constructor-signature.d.ts +0 -29
  273. package/npm_package/schematics/ng-update/migrations/constructor-signature.js +0 -139
  274. package/npm_package/schematics/ng-update/migrations/constructor-signature.js.map +0 -1
  275. package/npm_package/schematics/ng-update/migrations/css-selectors.d.ts +0 -26
  276. package/npm_package/schematics/ng-update/migrations/css-selectors.js +0 -75
  277. package/npm_package/schematics/ng-update/migrations/css-selectors.js.map +0 -1
  278. package/npm_package/schematics/ng-update/migrations/css-tokens.d.ts +0 -26
  279. package/npm_package/schematics/ng-update/migrations/css-tokens.js +0 -83
  280. package/npm_package/schematics/ng-update/migrations/css-tokens.js.map +0 -1
  281. package/npm_package/schematics/ng-update/migrations/element-selectors.d.ts +0 -26
  282. package/npm_package/schematics/ng-update/migrations/element-selectors.js +0 -66
  283. package/npm_package/schematics/ng-update/migrations/element-selectors.js.map +0 -1
  284. package/npm_package/schematics/ng-update/migrations/input-names.d.ts +0 -26
  285. package/npm_package/schematics/ng-update/migrations/input-names.js +0 -59
  286. package/npm_package/schematics/ng-update/migrations/input-names.js.map +0 -1
  287. package/npm_package/schematics/ng-update/migrations/method-call-arguments.d.ts +0 -22
  288. package/npm_package/schematics/ng-update/migrations/method-call-arguments.js +0 -62
  289. package/npm_package/schematics/ng-update/migrations/method-call-arguments.js.map +0 -1
  290. package/npm_package/schematics/ng-update/migrations/misc-template.d.ts +0 -18
  291. package/npm_package/schematics/ng-update/migrations/misc-template.js +0 -25
  292. package/npm_package/schematics/ng-update/migrations/misc-template.js.map +0 -1
  293. package/npm_package/schematics/ng-update/migrations/output-names.d.ts +0 -22
  294. package/npm_package/schematics/ng-update/migrations/output-names.js +0 -46
  295. package/npm_package/schematics/ng-update/migrations/output-names.js.map +0 -1
  296. package/npm_package/schematics/ng-update/migrations/property-names.d.ts +0 -22
  297. package/npm_package/schematics/ng-update/migrations/property-names.js +0 -60
  298. package/npm_package/schematics/ng-update/migrations/property-names.js.map +0 -1
  299. package/npm_package/schematics/ng-update/migrations/symbol-removal.d.ts +0 -18
  300. package/npm_package/schematics/ng-update/migrations/symbol-removal.js +0 -47
  301. package/npm_package/schematics/ng-update/migrations/symbol-removal.js.map +0 -1
  302. package/npm_package/schematics/ng-update/public-api.d.ts +0 -19
  303. package/npm_package/schematics/ng-update/public-api.js +0 -36
  304. package/npm_package/schematics/ng-update/public-api.js.map +0 -1
  305. package/npm_package/schematics/ng-update/typescript/base-types.d.ts +0 -10
  306. package/npm_package/schematics/ng-update/typescript/base-types.js +0 -23
  307. package/npm_package/schematics/ng-update/typescript/base-types.js.map +0 -1
  308. package/npm_package/schematics/ng-update/typescript/imports.d.ts +0 -18
  309. package/npm_package/schematics/ng-update/typescript/imports.js +0 -53
  310. package/npm_package/schematics/ng-update/typescript/imports.js.map +0 -1
  311. package/npm_package/schematics/ng-update/typescript/literal.d.ts +0 -18
  312. package/npm_package/schematics/ng-update/typescript/literal.js +0 -32
  313. package/npm_package/schematics/ng-update/typescript/literal.js.map +0 -1
  314. package/npm_package/schematics/ng-update/typescript/module-specifiers.d.ts +0 -16
  315. package/npm_package/schematics/ng-update/typescript/module-specifiers.js +0 -35
  316. package/npm_package/schematics/ng-update/typescript/module-specifiers.js.map +0 -1
  317. package/npm_package/schematics/ng-update/upgrade-data.d.ts +0 -35
  318. package/npm_package/schematics/ng-update/upgrade-data.js +0 -40
  319. package/npm_package/schematics/ng-update/upgrade-data.js.map +0 -1
  320. package/npm_package/schematics/package.json +0 -3
  321. package/npm_package/schematics/paths.d.ts +0 -11
  322. package/npm_package/schematics/paths.js +0 -16
  323. package/npm_package/schematics/paths.js.map +0 -1
  324. package/npm_package/schematics/update-tool/component-resource-collector.d.ts +0 -44
  325. package/npm_package/schematics/update-tool/component-resource-collector.js +0 -164
  326. package/npm_package/schematics/update-tool/component-resource-collector.js.map +0 -1
  327. package/npm_package/schematics/update-tool/file-system.d.ts +0 -72
  328. package/npm_package/schematics/update-tool/file-system.js +0 -18
  329. package/npm_package/schematics/update-tool/file-system.js.map +0 -1
  330. package/npm_package/schematics/update-tool/index.d.ts +0 -74
  331. package/npm_package/schematics/update-tool/index.js +0 -172
  332. package/npm_package/schematics/update-tool/index.js.map +0 -1
  333. package/npm_package/schematics/update-tool/logger.d.ts +0 -15
  334. package/npm_package/schematics/update-tool/logger.js +0 -18
  335. package/npm_package/schematics/update-tool/logger.js.map +0 -1
  336. package/npm_package/schematics/update-tool/migration.d.ts +0 -87
  337. package/npm_package/schematics/update-tool/migration.js +0 -70
  338. package/npm_package/schematics/update-tool/migration.js.map +0 -1
  339. package/npm_package/schematics/update-tool/public-api.d.ts +0 -16
  340. package/npm_package/schematics/update-tool/public-api.js +0 -33
  341. package/npm_package/schematics/update-tool/public-api.js.map +0 -1
  342. package/npm_package/schematics/update-tool/target-version.d.ts +0 -16
  343. package/npm_package/schematics/update-tool/target-version.js +0 -27
  344. package/npm_package/schematics/update-tool/target-version.js.map +0 -1
  345. package/npm_package/schematics/update-tool/update-recorder.d.ts +0 -13
  346. package/npm_package/schematics/update-tool/update-recorder.js +0 -10
  347. package/npm_package/schematics/update-tool/update-recorder.js.map +0 -1
  348. package/npm_package/schematics/update-tool/utils/decorators.d.ts +0 -22
  349. package/npm_package/schematics/update-tool/utils/decorators.js +0 -41
  350. package/npm_package/schematics/update-tool/utils/decorators.js.map +0 -1
  351. package/npm_package/schematics/update-tool/utils/diagnostics.d.ts +0 -11
  352. package/npm_package/schematics/update-tool/utils/diagnostics.js +0 -18
  353. package/npm_package/schematics/update-tool/utils/diagnostics.js.map +0 -1
  354. package/npm_package/schematics/update-tool/utils/functions.d.ts +0 -14
  355. package/npm_package/schematics/update-tool/utils/functions.js +0 -20
  356. package/npm_package/schematics/update-tool/utils/functions.js.map +0 -1
  357. package/npm_package/schematics/update-tool/utils/imports.d.ts +0 -17
  358. package/npm_package/schematics/update-tool/utils/imports.js +0 -110
  359. package/npm_package/schematics/update-tool/utils/imports.js.map +0 -1
  360. package/npm_package/schematics/update-tool/utils/line-mappings.d.ts +0 -21
  361. package/npm_package/schematics/update-tool/utils/line-mappings.js +0 -75
  362. package/npm_package/schematics/update-tool/utils/line-mappings.js.map +0 -1
  363. package/npm_package/schematics/update-tool/utils/parse-tsconfig.d.ts +0 -18
  364. package/npm_package/schematics/update-tool/utils/parse-tsconfig.js +0 -45
  365. package/npm_package/schematics/update-tool/utils/parse-tsconfig.js.map +0 -1
  366. package/npm_package/schematics/update-tool/utils/property-name.d.ts +0 -18
  367. package/npm_package/schematics/update-tool/utils/property-name.js +0 -27
  368. package/npm_package/schematics/update-tool/utils/property-name.js.map +0 -1
  369. package/npm_package/schematics/update-tool/utils/virtual-host.d.ts +0 -36
  370. package/npm_package/schematics/update-tool/utils/virtual-host.js +0 -71
  371. package/npm_package/schematics/update-tool/utils/virtual-host.js.map +0 -1
  372. package/npm_package/schematics/update-tool/version-changes.d.ts +0 -32
  373. package/npm_package/schematics/update-tool/version-changes.js +0 -38
  374. package/npm_package/schematics/update-tool/version-changes.js.map +0 -1
  375. package/npm_package/schematics/utils/ast/ng-module-imports.d.ts +0 -12
  376. package/npm_package/schematics/utils/ast/ng-module-imports.js +0 -82
  377. package/npm_package/schematics/utils/ast/ng-module-imports.js.map +0 -1
  378. package/npm_package/schematics/utils/ast.d.ts +0 -25
  379. package/npm_package/schematics/utils/ast.js +0 -79
  380. package/npm_package/schematics/utils/ast.js.map +0 -1
  381. package/npm_package/schematics/utils/build-component.d.ts +0 -20
  382. package/npm_package/schematics/utils/build-component.js +0 -188
  383. package/npm_package/schematics/utils/build-component.js.map +0 -1
  384. package/npm_package/schematics/utils/get-project.d.ts +0 -13
  385. package/npm_package/schematics/utils/get-project.js +0 -28
  386. package/npm_package/schematics/utils/get-project.js.map +0 -1
  387. package/npm_package/schematics/utils/html-manipulation.d.ts +0 -15
  388. package/npm_package/schematics/utils/html-manipulation.js +0 -91
  389. package/npm_package/schematics/utils/html-manipulation.js.map +0 -1
  390. package/npm_package/schematics/utils/index.d.ts +0 -19
  391. package/npm_package/schematics/utils/index.js +0 -36
  392. package/npm_package/schematics/utils/index.js.map +0 -1
  393. package/npm_package/schematics/utils/parse5-element.d.ts +0 -12
  394. package/npm_package/schematics/utils/parse5-element.js +0 -30
  395. package/npm_package/schematics/utils/parse5-element.js.map +0 -1
  396. package/npm_package/schematics/utils/project-index-file.d.ts +0 -10
  397. package/npm_package/schematics/utils/project-index-file.js +0 -20
  398. package/npm_package/schematics/utils/project-index-file.js.map +0 -1
  399. package/npm_package/schematics/utils/project-main-file.d.ts +0 -10
  400. package/npm_package/schematics/utils/project-main-file.js +0 -25
  401. package/npm_package/schematics/utils/project-main-file.js.map +0 -1
  402. package/npm_package/schematics/utils/project-style-file.d.ts +0 -13
  403. package/npm_package/schematics/utils/project-style-file.js +0 -42
  404. package/npm_package/schematics/utils/project-style-file.js.map +0 -1
  405. package/npm_package/schematics/utils/project-targets.d.ts +0 -14
  406. package/npm_package/schematics/utils/project-targets.js +0 -46
  407. package/npm_package/schematics/utils/project-targets.js.map +0 -1
  408. package/npm_package/schematics/utils/project-tsconfig-paths.d.ts +0 -14
  409. package/npm_package/schematics/utils/project-tsconfig-paths.js +0 -46
  410. package/npm_package/schematics/utils/project-tsconfig-paths.js.map +0 -1
  411. package/npm_package/schematics/utils/schematic-options.d.ts +0 -20
  412. package/npm_package/schematics/utils/schematic-options.js +0 -89
  413. package/npm_package/schematics/utils/schematic-options.js.map +0 -1
  414. package/npm_package/scrolling/index.d.ts +0 -62
  415. package/npm_package/scrolling-module.d-ud2XrbF8.d.ts +0 -552
  416. package/npm_package/selection-model.d-C_vvNGP-.d.ts +0 -117
  417. package/npm_package/stepper/index.d.ts +0 -228
  418. package/npm_package/style-loader.d-BXZfQZTF.d.ts +0 -21
  419. package/npm_package/table/index.d.ts +0 -1100
  420. package/npm_package/testing/index.d.ts +0 -94
  421. package/npm_package/testing/selenium-webdriver/index.d.ts +0 -150
  422. package/npm_package/testing/testbed/index.d.ts +0 -157
  423. package/npm_package/text-field/_index.scss +0 -89
  424. package/npm_package/text-field/index.d.ts +0 -156
  425. package/npm_package/text-field-prebuilt.css +0 -1
  426. package/npm_package/tree/index.d.ts +0 -720
  427. package/npm_package/tree-key-manager-strategy.d-XB6M79l-.d.ts +0 -116
  428. package/npm_package/unique-selection-dispatcher.d-DSFqf1MM.d.ts +0 -33
  429. package/npm_package/view-repeater.d-BKljR8u8.d.ts +0 -89
@@ -1,614 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ElementRef, Directive, TemplateRef, InjectionToken, EventEmitter, booleanAttribute, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChild, ContentChildren, ViewChild, Input, Output, ChangeDetectorRef, QueryList, numberAttribute, NgModule } from '@angular/core';
3
- import { ControlContainer } from '@angular/forms';
4
- import { Subject, of } from 'rxjs';
5
- import { startWith, takeUntil } from 'rxjs/operators';
6
- import { D as Directionality } from './directionality-CBXD4hga.mjs';
7
- import { _ as _IdGenerator } from './id-generator-Dw_9dSDu.mjs';
8
- import { F as FocusKeyManager } from './focus-key-manager-C1rAQJ5z.mjs';
9
- import { hasModifierKey } from './keycodes.mjs';
10
- import { S as SPACE, c as ENTER } from './keycodes-CpHkExLC.mjs';
11
- import { c as _getFocusedElementPierceShadowDom } from './shadow-dom-B0oHn41l.mjs';
12
- import { BidiModule } from './bidi.mjs';
13
- import '@angular/common';
14
- import './list-key-manager-CyOIXo8P.mjs';
15
- import './typeahead-9ZW4Dtsf.mjs';
16
-
17
- class CdkStepHeader {
18
- _elementRef = inject(ElementRef);
19
- constructor() { }
20
- /** Focuses the step header. */
21
- focus() {
22
- this._elementRef.nativeElement.focus();
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: CdkStepHeader, isStandalone: true, selector: "[cdkStepHeader]", host: { attributes: { "role": "tab" } }, ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepHeader, decorators: [{
28
- type: Directive,
29
- args: [{
30
- selector: '[cdkStepHeader]',
31
- host: {
32
- 'role': 'tab',
33
- },
34
- }]
35
- }], ctorParameters: () => [] });
36
-
37
- class CdkStepLabel {
38
- template = inject(TemplateRef);
39
- constructor() { }
40
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
41
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: CdkStepLabel, isStandalone: true, selector: "[cdkStepLabel]", ngImport: i0 });
42
- }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepLabel, decorators: [{
44
- type: Directive,
45
- args: [{
46
- selector: '[cdkStepLabel]',
47
- }]
48
- }], ctorParameters: () => [] });
49
-
50
- /** Change event emitted on selection changes. */
51
- class StepperSelectionEvent {
52
- /** Index of the step now selected. */
53
- selectedIndex;
54
- /** Index of the step previously selected. */
55
- previouslySelectedIndex;
56
- /** The step instance now selected. */
57
- selectedStep;
58
- /** The step instance previously selected. */
59
- previouslySelectedStep;
60
- }
61
- /** Enum to represent the different states of the steps. */
62
- const STEP_STATE = {
63
- NUMBER: 'number',
64
- EDIT: 'edit',
65
- DONE: 'done',
66
- ERROR: 'error',
67
- };
68
- /** InjectionToken that can be used to specify the global stepper options. */
69
- const STEPPER_GLOBAL_OPTIONS = new InjectionToken('STEPPER_GLOBAL_OPTIONS');
70
- class CdkStep {
71
- _stepperOptions;
72
- _stepper = inject(CdkStepper);
73
- _displayDefaultIndicatorType;
74
- /** Template for step label if it exists. */
75
- stepLabel;
76
- /** Forms that have been projected into the step. */
77
- _childForms;
78
- /** Template for step content. */
79
- content;
80
- /** The top level abstract control of the step. */
81
- stepControl;
82
- /** Whether user has attempted to move away from the step. */
83
- interacted = false;
84
- /** Emits when the user has attempted to move away from the step. */
85
- interactedStream = new EventEmitter();
86
- /** Plain text label of the step. */
87
- label;
88
- /** Error message to display when there's an error. */
89
- errorMessage;
90
- /** Aria label for the tab. */
91
- ariaLabel;
92
- /**
93
- * Reference to the element that the tab is labelled by.
94
- * Will be cleared if `aria-label` is set at the same time.
95
- */
96
- ariaLabelledby;
97
- /** State of the step. */
98
- state;
99
- /** Whether the user can return to this step once it has been marked as completed. */
100
- editable = true;
101
- /** Whether the completion of step is optional. */
102
- optional = false;
103
- /** Whether step is marked as completed. */
104
- get completed() {
105
- return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;
106
- }
107
- set completed(value) {
108
- this._completedOverride = value;
109
- }
110
- _completedOverride = null;
111
- _getDefaultCompleted() {
112
- return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
113
- }
114
- /** Whether step has an error. */
115
- get hasError() {
116
- return this._customError == null ? this._getDefaultError() : this._customError;
117
- }
118
- set hasError(value) {
119
- this._customError = value;
120
- }
121
- _customError = null;
122
- _getDefaultError() {
123
- return this.stepControl && this.stepControl.invalid && this.interacted;
124
- }
125
- constructor() {
126
- const stepperOptions = inject(STEPPER_GLOBAL_OPTIONS, { optional: true });
127
- this._stepperOptions = stepperOptions ? stepperOptions : {};
128
- this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;
129
- }
130
- /** Selects this step component. */
131
- select() {
132
- this._stepper.selected = this;
133
- }
134
- /** Resets the step to its initial state. Note that this includes resetting form data. */
135
- reset() {
136
- this.interacted = false;
137
- if (this._completedOverride != null) {
138
- this._completedOverride = false;
139
- }
140
- if (this._customError != null) {
141
- this._customError = false;
142
- }
143
- if (this.stepControl) {
144
- // Reset the forms since the default error state matchers will show errors on submit and we
145
- // want the form to be back to its initial state (see #29781). Submitted state is on the
146
- // individual directives, rather than the control, so we need to reset them ourselves.
147
- this._childForms?.forEach(form => form.resetForm?.());
148
- this.stepControl.reset();
149
- }
150
- }
151
- ngOnChanges() {
152
- // Since basically all inputs of the MatStep get proxied through the view down to the
153
- // underlying MatStepHeader, we have to make sure that change detection runs correctly.
154
- this._stepper._stateChanged();
155
- }
156
- _markAsInteracted() {
157
- if (!this.interacted) {
158
- this.interacted = true;
159
- this.interactedStream.emit(this);
160
- }
161
- }
162
- /** Determines whether the error state can be shown. */
163
- _showError() {
164
- // We want to show the error state either if the user opted into/out of it using the
165
- // global options, or if they've explicitly set it through the `hasError` input.
166
- return this._stepperOptions.showError ?? this._customError != null;
167
- }
168
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStep, deps: [], target: i0.ɵɵFactoryTarget.Component });
169
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.6", type: CdkStep, isStandalone: true, selector: "cdk-step", inputs: { stepControl: "stepControl", label: "label", errorMessage: "errorMessage", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], state: "state", editable: ["editable", "editable", booleanAttribute], optional: ["optional", "optional", booleanAttribute], completed: ["completed", "completed", booleanAttribute], hasError: ["hasError", "hasError", booleanAttribute] }, outputs: { interactedStream: "interacted" }, queries: [{ propertyName: "stepLabel", first: true, predicate: CdkStepLabel, descendants: true }, { propertyName: "_childForms", predicate:
170
- // Note: we look for `ControlContainer` here, because both `NgForm` and `FormGroupDirective`
171
- // provides themselves as such, but we don't want to have a concrete reference to both of
172
- // the directives. The type is marked as `Partial` in case we run into a class that provides
173
- // itself as `ControlContainer` but doesn't have the same interface as the directives.
174
- ControlContainer, 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-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
175
- }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStep, decorators: [{
177
- type: Component,
178
- args: [{
179
- selector: 'cdk-step',
180
- exportAs: 'cdkStep',
181
- template: '<ng-template><ng-content/></ng-template>',
182
- encapsulation: ViewEncapsulation.None,
183
- changeDetection: ChangeDetectionStrategy.OnPush,
184
- }]
185
- }], ctorParameters: () => [], propDecorators: { stepLabel: [{
186
- type: ContentChild,
187
- args: [CdkStepLabel]
188
- }], _childForms: [{
189
- type: ContentChildren,
190
- args: [
191
- // Note: we look for `ControlContainer` here, because both `NgForm` and `FormGroupDirective`
192
- // provides themselves as such, but we don't want to have a concrete reference to both of
193
- // the directives. The type is marked as `Partial` in case we run into a class that provides
194
- // itself as `ControlContainer` but doesn't have the same interface as the directives.
195
- ControlContainer,
196
- {
197
- descendants: true,
198
- }]
199
- }], content: [{
200
- type: ViewChild,
201
- args: [TemplateRef, { static: true }]
202
- }], stepControl: [{
203
- type: Input
204
- }], interactedStream: [{
205
- type: Output,
206
- args: ['interacted']
207
- }], label: [{
208
- type: Input
209
- }], errorMessage: [{
210
- type: Input
211
- }], ariaLabel: [{
212
- type: Input,
213
- args: ['aria-label']
214
- }], ariaLabelledby: [{
215
- type: Input,
216
- args: ['aria-labelledby']
217
- }], state: [{
218
- type: Input
219
- }], editable: [{
220
- type: Input,
221
- args: [{ transform: booleanAttribute }]
222
- }], optional: [{
223
- type: Input,
224
- args: [{ transform: booleanAttribute }]
225
- }], completed: [{
226
- type: Input,
227
- args: [{ transform: booleanAttribute }]
228
- }], hasError: [{
229
- type: Input,
230
- args: [{ transform: booleanAttribute }]
231
- }] } });
232
- class CdkStepper {
233
- _dir = inject(Directionality, { optional: true });
234
- _changeDetectorRef = inject(ChangeDetectorRef);
235
- _elementRef = inject(ElementRef);
236
- /** Emits when the component is destroyed. */
237
- _destroyed = new Subject();
238
- /** Used for managing keyboard focus. */
239
- _keyManager;
240
- /** Full list of steps inside the stepper, including inside nested steppers. */
241
- _steps;
242
- /** Steps that belong to the current stepper, excluding ones from nested steppers. */
243
- steps = new QueryList();
244
- /** The list of step headers of the steps in the stepper. */
245
- _stepHeader;
246
- /** List of step headers sorted based on their DOM order. */
247
- _sortedHeaders = new QueryList();
248
- /** Whether the validity of previous steps should be checked or not. */
249
- linear = false;
250
- /** The index of the selected step. */
251
- get selectedIndex() {
252
- return this._selectedIndex;
253
- }
254
- set selectedIndex(index) {
255
- if (this._steps) {
256
- // Ensure that the index can't be out of bounds.
257
- if (!this._isValidIndex(index) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
258
- throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');
259
- }
260
- if (this._selectedIndex !== index) {
261
- this.selected?._markAsInteracted();
262
- if (!this._anyControlsInvalidOrPending(index) &&
263
- (index >= this._selectedIndex || this.steps.toArray()[index].editable)) {
264
- this._updateSelectedItemIndex(index);
265
- }
266
- }
267
- }
268
- else {
269
- this._selectedIndex = index;
270
- }
271
- }
272
- _selectedIndex = 0;
273
- /** The step that is selected. */
274
- get selected() {
275
- return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;
276
- }
277
- set selected(step) {
278
- this.selectedIndex = step && this.steps ? this.steps.toArray().indexOf(step) : -1;
279
- }
280
- /** Event emitted when the selected step has changed. */
281
- selectionChange = new EventEmitter();
282
- /** Output to support two-way binding on `[(selectedIndex)]` */
283
- selectedIndexChange = new EventEmitter();
284
- /** Used to track unique ID for each stepper component. */
285
- _groupId = inject(_IdGenerator).getId('cdk-stepper-');
286
- /** Orientation of the stepper. */
287
- get orientation() {
288
- return this._orientation;
289
- }
290
- set orientation(value) {
291
- // This is a protected method so that `MatStepper` can hook into it.
292
- this._orientation = value;
293
- if (this._keyManager) {
294
- this._keyManager.withVerticalOrientation(value === 'vertical');
295
- }
296
- }
297
- _orientation = 'horizontal';
298
- constructor() { }
299
- ngAfterContentInit() {
300
- this._steps.changes
301
- .pipe(startWith(this._steps), takeUntil(this._destroyed))
302
- .subscribe((steps) => {
303
- this.steps.reset(steps.filter(step => step._stepper === this));
304
- this.steps.notifyOnChanges();
305
- });
306
- }
307
- ngAfterViewInit() {
308
- // If the step headers are defined outside of the `ngFor` that renders the steps, like in the
309
- // Material stepper, they won't appear in the `QueryList` in the same order as they're
310
- // rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort
311
- // them manually to ensure that they're correct. Alternatively, we can change the Material
312
- // template to inline the headers in the `ngFor`, but that'll result in a lot of
313
- // code duplication. See #23539.
314
- this._stepHeader.changes
315
- .pipe(startWith(this._stepHeader), takeUntil(this._destroyed))
316
- .subscribe((headers) => {
317
- this._sortedHeaders.reset(headers.toArray().sort((a, b) => {
318
- const documentPosition = a._elementRef.nativeElement.compareDocumentPosition(b._elementRef.nativeElement);
319
- // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
320
- // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
321
- // tslint:disable-next-line:no-bitwise
322
- return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
323
- }));
324
- this._sortedHeaders.notifyOnChanges();
325
- });
326
- // Note that while the step headers are content children by default, any components that
327
- // extend this one might have them as view children. We initialize the keyboard handling in
328
- // AfterViewInit so we're guaranteed for both view and content children to be defined.
329
- this._keyManager = new FocusKeyManager(this._sortedHeaders)
330
- .withWrap()
331
- .withHomeAndEnd()
332
- .withVerticalOrientation(this._orientation === 'vertical');
333
- // The selected index may have changed between when the component was created and when the
334
- // key manager was initialized. Use `updateActiveItem` so it's correct, but it doesn't steal
335
- // away focus from the user.
336
- this._keyManager.updateActiveItem(this.selectedIndex);
337
- (this._dir ? this._dir.change : of())
338
- .pipe(startWith(this._layoutDirection()), takeUntil(this._destroyed))
339
- .subscribe(direction => this._keyManager?.withHorizontalOrientation(direction));
340
- this._keyManager.updateActiveItem(this._selectedIndex);
341
- // No need to `takeUntil` here, because we're the ones destroying `steps`.
342
- this.steps.changes.subscribe(() => {
343
- if (!this.selected) {
344
- this._selectedIndex = Math.max(this._selectedIndex - 1, 0);
345
- }
346
- });
347
- // The logic which asserts that the selected index is within bounds doesn't run before the
348
- // steps are initialized, because we don't how many steps there are yet so we may have an
349
- // invalid index on init. If that's the case, auto-correct to the default so we don't throw.
350
- if (!this._isValidIndex(this._selectedIndex)) {
351
- this._selectedIndex = 0;
352
- }
353
- // For linear step and selected index is greater than zero,
354
- // set all the previous steps to interacted so that we can navigate to previous steps.
355
- if (this.linear && this._selectedIndex > 0) {
356
- const visitedSteps = this.steps.toArray().slice(0, this._selectedIndex);
357
- for (const step of visitedSteps) {
358
- step._markAsInteracted();
359
- }
360
- }
361
- }
362
- ngOnDestroy() {
363
- this._keyManager?.destroy();
364
- this.steps.destroy();
365
- this._sortedHeaders.destroy();
366
- this._destroyed.next();
367
- this._destroyed.complete();
368
- }
369
- /** Selects and focuses the next step in list. */
370
- next() {
371
- this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);
372
- }
373
- /** Selects and focuses the previous step in list. */
374
- previous() {
375
- this.selectedIndex = Math.max(this._selectedIndex - 1, 0);
376
- }
377
- /** Resets the stepper to its initial state. Note that this includes clearing form data. */
378
- reset() {
379
- this._updateSelectedItemIndex(0);
380
- this.steps.forEach(step => step.reset());
381
- this._stateChanged();
382
- }
383
- /** Returns a unique id for each step label element. */
384
- _getStepLabelId(i) {
385
- return `${this._groupId}-label-${i}`;
386
- }
387
- /** Returns unique id for each step content element. */
388
- _getStepContentId(i) {
389
- return `${this._groupId}-content-${i}`;
390
- }
391
- /** Marks the component to be change detected. */
392
- _stateChanged() {
393
- this._changeDetectorRef.markForCheck();
394
- }
395
- /** Returns position state of the step with the given index. */
396
- _getAnimationDirection(index) {
397
- const position = index - this._selectedIndex;
398
- if (position < 0) {
399
- return this._layoutDirection() === 'rtl' ? 'next' : 'previous';
400
- }
401
- else if (position > 0) {
402
- return this._layoutDirection() === 'rtl' ? 'previous' : 'next';
403
- }
404
- return 'current';
405
- }
406
- /** Returns the type of icon to be displayed. */
407
- _getIndicatorType(index, state = STEP_STATE.NUMBER) {
408
- const step = this.steps.toArray()[index];
409
- const isCurrentStep = this._isCurrentStep(index);
410
- return step._displayDefaultIndicatorType
411
- ? this._getDefaultIndicatorLogic(step, isCurrentStep)
412
- : this._getGuidelineLogic(step, isCurrentStep, state);
413
- }
414
- _getDefaultIndicatorLogic(step, isCurrentStep) {
415
- if (step._showError() && step.hasError && !isCurrentStep) {
416
- return STEP_STATE.ERROR;
417
- }
418
- else if (!step.completed || isCurrentStep) {
419
- return STEP_STATE.NUMBER;
420
- }
421
- else {
422
- return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;
423
- }
424
- }
425
- _getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) {
426
- if (step._showError() && step.hasError && !isCurrentStep) {
427
- return STEP_STATE.ERROR;
428
- }
429
- else if (step.completed && !isCurrentStep) {
430
- return STEP_STATE.DONE;
431
- }
432
- else if (step.completed && isCurrentStep) {
433
- return state;
434
- }
435
- else if (step.editable && isCurrentStep) {
436
- return STEP_STATE.EDIT;
437
- }
438
- else {
439
- return state;
440
- }
441
- }
442
- _isCurrentStep(index) {
443
- return this._selectedIndex === index;
444
- }
445
- /** Returns the index of the currently-focused step header. */
446
- _getFocusIndex() {
447
- return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;
448
- }
449
- _updateSelectedItemIndex(newIndex) {
450
- const stepsArray = this.steps.toArray();
451
- this.selectionChange.emit({
452
- selectedIndex: newIndex,
453
- previouslySelectedIndex: this._selectedIndex,
454
- selectedStep: stepsArray[newIndex],
455
- previouslySelectedStep: stepsArray[this._selectedIndex],
456
- });
457
- // If focus is inside the stepper, move it to the next header, otherwise it may become
458
- // lost when the active step content is hidden. We can't be more granular with the check
459
- // (e.g. checking whether focus is inside the active step), because we don't have a
460
- // reference to the elements that are rendering out the content.
461
- if (this._keyManager) {
462
- this._containsFocus()
463
- ? this._keyManager.setActiveItem(newIndex)
464
- : this._keyManager.updateActiveItem(newIndex);
465
- }
466
- this._selectedIndex = newIndex;
467
- this.selectedIndexChange.emit(this._selectedIndex);
468
- this._stateChanged();
469
- }
470
- _onKeydown(event) {
471
- const hasModifier = hasModifierKey(event);
472
- const keyCode = event.keyCode;
473
- const manager = this._keyManager;
474
- if (manager?.activeItemIndex != null &&
475
- !hasModifier &&
476
- (keyCode === SPACE || keyCode === ENTER)) {
477
- this.selectedIndex = manager.activeItemIndex;
478
- event.preventDefault();
479
- }
480
- else {
481
- manager?.setFocusOrigin('keyboard').onKeydown(event);
482
- }
483
- }
484
- _anyControlsInvalidOrPending(index) {
485
- if (this.linear && index >= 0) {
486
- return this.steps
487
- .toArray()
488
- .slice(0, index)
489
- .some(step => {
490
- const control = step.stepControl;
491
- const isIncomplete = control
492
- ? control.invalid || control.pending || !step.interacted
493
- : !step.completed;
494
- return isIncomplete && !step.optional && !step._completedOverride;
495
- });
496
- }
497
- return false;
498
- }
499
- _layoutDirection() {
500
- return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
501
- }
502
- /** Checks whether the stepper contains the focused element. */
503
- _containsFocus() {
504
- const stepperElement = this._elementRef.nativeElement;
505
- const focusedElement = _getFocusedElementPierceShadowDom();
506
- return stepperElement === focusedElement || stepperElement.contains(focusedElement);
507
- }
508
- /** Checks whether the passed-in index is a valid step index. */
509
- _isValidIndex(index) {
510
- return index > -1 && (!this.steps || index < this.steps.length);
511
- }
512
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepper, deps: [], target: i0.ɵɵFactoryTarget.Directive });
513
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.6", type: CdkStepper, isStandalone: true, selector: "[cdkStepper]", inputs: { linear: ["linear", "linear", booleanAttribute], selectedIndex: ["selectedIndex", "selectedIndex", numberAttribute], selected: "selected", orientation: "orientation" }, outputs: { selectionChange: "selectionChange", selectedIndexChange: "selectedIndexChange" }, queries: [{ propertyName: "_steps", predicate: CdkStep, descendants: true }, { propertyName: "_stepHeader", predicate: CdkStepHeader, descendants: true }], exportAs: ["cdkStepper"], ngImport: i0 });
514
- }
515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepper, decorators: [{
516
- type: Directive,
517
- args: [{
518
- selector: '[cdkStepper]',
519
- exportAs: 'cdkStepper',
520
- }]
521
- }], ctorParameters: () => [], propDecorators: { _steps: [{
522
- type: ContentChildren,
523
- args: [CdkStep, { descendants: true }]
524
- }], _stepHeader: [{
525
- type: ContentChildren,
526
- args: [CdkStepHeader, { descendants: true }]
527
- }], linear: [{
528
- type: Input,
529
- args: [{ transform: booleanAttribute }]
530
- }], selectedIndex: [{
531
- type: Input,
532
- args: [{ transform: numberAttribute }]
533
- }], selected: [{
534
- type: Input
535
- }], selectionChange: [{
536
- type: Output
537
- }], selectedIndexChange: [{
538
- type: Output
539
- }], orientation: [{
540
- type: Input
541
- }] } });
542
-
543
- /** Button that moves to the next step in a stepper workflow. */
544
- class CdkStepperNext {
545
- _stepper = inject(CdkStepper);
546
- /** Type of the next button. Defaults to "submit" if not specified. */
547
- type = 'submit';
548
- constructor() { }
549
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperNext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
550
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: CdkStepperNext, isStandalone: true, selector: "button[cdkStepperNext]", inputs: { type: "type" }, host: { listeners: { "click": "_stepper.next()" }, properties: { "type": "type" } }, ngImport: i0 });
551
- }
552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperNext, decorators: [{
553
- type: Directive,
554
- args: [{
555
- selector: 'button[cdkStepperNext]',
556
- host: {
557
- '[type]': 'type',
558
- '(click)': '_stepper.next()',
559
- },
560
- }]
561
- }], ctorParameters: () => [], propDecorators: { type: [{
562
- type: Input
563
- }] } });
564
- /** Button that moves to the previous step in a stepper workflow. */
565
- class CdkStepperPrevious {
566
- _stepper = inject(CdkStepper);
567
- /** Type of the previous button. Defaults to "button" if not specified. */
568
- type = 'button';
569
- constructor() { }
570
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperPrevious, deps: [], target: i0.ɵɵFactoryTarget.Directive });
571
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: CdkStepperPrevious, isStandalone: true, selector: "button[cdkStepperPrevious]", inputs: { type: "type" }, host: { listeners: { "click": "_stepper.previous()" }, properties: { "type": "type" } }, ngImport: i0 });
572
- }
573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperPrevious, decorators: [{
574
- type: Directive,
575
- args: [{
576
- selector: 'button[cdkStepperPrevious]',
577
- host: {
578
- '[type]': 'type',
579
- '(click)': '_stepper.previous()',
580
- },
581
- }]
582
- }], ctorParameters: () => [], propDecorators: { type: [{
583
- type: Input
584
- }] } });
585
-
586
- class CdkStepperModule {
587
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
588
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperModule, imports: [BidiModule,
589
- CdkStep,
590
- CdkStepper,
591
- CdkStepHeader,
592
- CdkStepLabel,
593
- CdkStepperNext,
594
- CdkStepperPrevious], exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious] });
595
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperModule, imports: [BidiModule] });
596
- }
597
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CdkStepperModule, decorators: [{
598
- type: NgModule,
599
- args: [{
600
- imports: [
601
- BidiModule,
602
- CdkStep,
603
- CdkStepper,
604
- CdkStepHeader,
605
- CdkStepLabel,
606
- CdkStepperNext,
607
- CdkStepperPrevious,
608
- ],
609
- exports: [CdkStep, CdkStepper, CdkStepHeader, CdkStepLabel, CdkStepperNext, CdkStepperPrevious],
610
- }]
611
- }] });
612
-
613
- export { CdkStep, CdkStepHeader, CdkStepLabel, CdkStepper, CdkStepperModule, CdkStepperNext, CdkStepperPrevious, STEPPER_GLOBAL_OPTIONS, STEP_STATE, StepperSelectionEvent };
614
- //# sourceMappingURL=stepper.mjs.map