@angular/material 16.2.1 → 17.0.0-next.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 (757) hide show
  1. package/_index.scss +19 -63
  2. package/autocomplete/index.d.ts +41 -72
  3. package/autocomplete/testing/index.d.ts +5 -23
  4. package/button/_fab-theme.scss +12 -0
  5. package/card/_card-theme.scss +86 -44
  6. package/checkbox/_checkbox-theme.scss +78 -43
  7. package/checkbox/index.d.ts +22 -42
  8. package/checkbox/testing/index.d.ts +6 -12
  9. package/core/index.d.ts +17 -28
  10. package/core/style/_validation.scss +43 -0
  11. package/core/theming/_inspection.scss +229 -0
  12. package/core/theming/_theming.scss +110 -10
  13. package/core/tokens/m2/mat/_form-field.scss +34 -1
  14. package/core/tokens/m2/mat/_slider.scss +43 -0
  15. package/core/tokens/m2/mdc/_filled-text-field.scss +1 -1
  16. package/core/tokens/m2/mdc/_outlined-text-field.scss +1 -1
  17. package/core/tokens/m2/mdc/_slider.scss +154 -0
  18. package/dialog/index.d.ts +44 -86
  19. package/dialog/testing/index.d.ts +6 -18
  20. package/esm2022/autocomplete/autocomplete-origin.mjs +9 -17
  21. package/esm2022/autocomplete/autocomplete-trigger.mjs +32 -41
  22. package/esm2022/autocomplete/autocomplete.mjs +59 -72
  23. package/esm2022/autocomplete/testing/autocomplete-harness.mjs +20 -33
  24. package/esm2022/button/fab.mjs +8 -8
  25. package/esm2022/card/card.mjs +2 -2
  26. package/esm2022/checkbox/checkbox.mjs +72 -79
  27. package/esm2022/checkbox/testing/checkbox-harness.mjs +41 -36
  28. package/esm2022/core/datetime/native-date-adapter.mjs +14 -11
  29. package/esm2022/core/option/optgroup.mjs +19 -26
  30. package/esm2022/core/option/option.mjs +25 -35
  31. package/esm2022/core/version.mjs +1 -1
  32. package/esm2022/dialog/dialog-container.mjs +50 -75
  33. package/esm2022/dialog/dialog-ref.mjs +1 -1
  34. package/esm2022/dialog/dialog.mjs +16 -46
  35. package/esm2022/dialog/public-api.mjs +2 -2
  36. package/esm2022/dialog/testing/dialog-harness.mjs +13 -16
  37. package/esm2022/dialog/testing/dialog-opener.mjs +17 -27
  38. package/esm2022/dialog/testing/index.mjs +2 -2
  39. package/esm2022/form-field/form-field.mjs +3 -3
  40. package/esm2022/form-field/testing/error-harness.mjs +10 -12
  41. package/esm2022/form-field/testing/form-field-harness.mjs +45 -48
  42. package/esm2022/list/action-list.mjs +2 -2
  43. package/esm2022/list/list.mjs +2 -2
  44. package/esm2022/list/nav-list.mjs +2 -2
  45. package/esm2022/list/selection-list.mjs +2 -2
  46. package/esm2022/menu/menu-content.mjs +9 -16
  47. package/esm2022/menu/menu-trigger.mjs +14 -25
  48. package/esm2022/menu/menu.mjs +15 -29
  49. package/esm2022/menu/public-api.mjs +3 -3
  50. package/esm2022/menu/testing/menu-harness.mjs +29 -43
  51. package/esm2022/paginator/paginator.mjs +24 -38
  52. package/esm2022/paginator/testing/paginator-harness.mjs +25 -27
  53. package/esm2022/progress-bar/progress-bar.mjs +2 -2
  54. package/esm2022/progress-spinner/progress-spinner.mjs +2 -2
  55. package/esm2022/radio/radio.mjs +58 -83
  56. package/esm2022/radio/testing/radio-harness.mjs +31 -38
  57. package/esm2022/select/select.mjs +194 -212
  58. package/esm2022/select/testing/select-harness.mjs +18 -23
  59. package/esm2022/slide-toggle/slide-toggle.mjs +43 -53
  60. package/esm2022/slide-toggle/testing/slide-toggle-harness.mjs +33 -40
  61. package/esm2022/slider/slider.mjs +2 -2
  62. package/esm2022/snack-bar/snack-bar-container.mjs +17 -32
  63. package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
  64. package/esm2022/snack-bar/snack-bar.mjs +11 -25
  65. package/esm2022/snack-bar/testing/snack-bar-harness.mjs +18 -31
  66. package/esm2022/table/table-data-source.mjs +15 -18
  67. package/esm2022/table/testing/cell-harness.mjs +4 -4
  68. package/esm2022/table/testing/row-harness.mjs +4 -4
  69. package/esm2022/table/testing/table-harness.mjs +22 -24
  70. package/esm2022/tabs/public-api.mjs +7 -8
  71. package/esm2022/tabs/tab-body.mjs +13 -29
  72. package/esm2022/tabs/tab-group.mjs +55 -79
  73. package/esm2022/tabs/tab-header.mjs +13 -34
  74. package/esm2022/tabs/tab-label-wrapper.mjs +6 -18
  75. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +119 -168
  76. package/esm2022/tabs/tab.mjs +25 -37
  77. package/esm2022/tooltip/testing/tooltip-harness.mjs +21 -23
  78. package/esm2022/tooltip/tooltip.mjs +68 -101
  79. package/fesm2022/autocomplete/testing.mjs +20 -33
  80. package/fesm2022/autocomplete/testing.mjs.map +1 -1
  81. package/fesm2022/autocomplete.mjs +97 -127
  82. package/fesm2022/autocomplete.mjs.map +1 -1
  83. package/fesm2022/button.mjs +8 -8
  84. package/fesm2022/button.mjs.map +1 -1
  85. package/fesm2022/card.mjs +2 -2
  86. package/fesm2022/card.mjs.map +1 -1
  87. package/fesm2022/checkbox/testing.mjs +41 -36
  88. package/fesm2022/checkbox/testing.mjs.map +1 -1
  89. package/fesm2022/checkbox.mjs +72 -79
  90. package/fesm2022/checkbox.mjs.map +1 -1
  91. package/fesm2022/core.mjs +49 -61
  92. package/fesm2022/core.mjs.map +1 -1
  93. package/fesm2022/dialog/testing.mjs +30 -43
  94. package/fesm2022/dialog/testing.mjs.map +1 -1
  95. package/fesm2022/dialog.mjs +65 -120
  96. package/fesm2022/dialog.mjs.map +1 -1
  97. package/fesm2022/form-field/testing.mjs +54 -59
  98. package/fesm2022/form-field/testing.mjs.map +1 -1
  99. package/fesm2022/form-field.mjs +2 -2
  100. package/fesm2022/form-field.mjs.map +1 -1
  101. package/fesm2022/list.mjs +8 -8
  102. package/fesm2022/list.mjs.map +1 -1
  103. package/fesm2022/menu/testing.mjs +30 -44
  104. package/fesm2022/menu/testing.mjs.map +1 -1
  105. package/fesm2022/menu.mjs +34 -66
  106. package/fesm2022/menu.mjs.map +1 -1
  107. package/fesm2022/paginator/testing.mjs +25 -27
  108. package/fesm2022/paginator/testing.mjs.map +1 -1
  109. package/fesm2022/paginator.mjs +24 -38
  110. package/fesm2022/paginator.mjs.map +1 -1
  111. package/fesm2022/progress-bar.mjs +2 -2
  112. package/fesm2022/progress-bar.mjs.map +1 -1
  113. package/fesm2022/progress-spinner.mjs +2 -2
  114. package/fesm2022/progress-spinner.mjs.map +1 -1
  115. package/fesm2022/radio/testing.mjs +31 -38
  116. package/fesm2022/radio/testing.mjs.map +1 -1
  117. package/fesm2022/radio.mjs +59 -84
  118. package/fesm2022/radio.mjs.map +1 -1
  119. package/fesm2022/select/testing.mjs +18 -23
  120. package/fesm2022/select/testing.mjs.map +1 -1
  121. package/fesm2022/select.mjs +196 -214
  122. package/fesm2022/select.mjs.map +1 -1
  123. package/fesm2022/slide-toggle/testing.mjs +33 -40
  124. package/fesm2022/slide-toggle/testing.mjs.map +1 -1
  125. package/fesm2022/slide-toggle.mjs +43 -53
  126. package/fesm2022/slide-toggle.mjs.map +1 -1
  127. package/fesm2022/slider.mjs +2 -2
  128. package/fesm2022/slider.mjs.map +1 -1
  129. package/fesm2022/snack-bar/testing.mjs +19 -32
  130. package/fesm2022/snack-bar/testing.mjs.map +1 -1
  131. package/fesm2022/snack-bar.mjs +26 -55
  132. package/fesm2022/snack-bar.mjs.map +1 -1
  133. package/fesm2022/table/testing.mjs +28 -30
  134. package/fesm2022/table/testing.mjs.map +1 -1
  135. package/fesm2022/table.mjs +15 -18
  136. package/fesm2022/table.mjs.map +1 -1
  137. package/fesm2022/tabs.mjs +234 -368
  138. package/fesm2022/tabs.mjs.map +1 -1
  139. package/fesm2022/tooltip/testing.mjs +21 -23
  140. package/fesm2022/tooltip/testing.mjs.map +1 -1
  141. package/fesm2022/tooltip.mjs +69 -102
  142. package/fesm2022/tooltip.mjs.map +1 -1
  143. package/form-field/_form-field-focus-overlay.scss +13 -18
  144. package/form-field/_form-field-native-select.scss +30 -67
  145. package/form-field/_form-field-subscript.scss +4 -8
  146. package/form-field/_form-field-theme.scss +15 -48
  147. package/form-field/_mdc-text-field-structure-overrides.scss +20 -0
  148. package/form-field/testing/index.d.ts +14 -44
  149. package/list/_list-theme.scss +9 -0
  150. package/menu/index.d.ts +22 -44
  151. package/menu/testing/index.d.ts +6 -23
  152. package/package.json +7 -286
  153. package/paginator/index.d.ts +6 -22
  154. package/paginator/testing/index.d.ts +9 -22
  155. package/prebuilt-themes/deeppurple-amber.css +1 -1
  156. package/prebuilt-themes/indigo-pink.css +1 -1
  157. package/prebuilt-themes/pink-bluegrey.css +1 -1
  158. package/prebuilt-themes/purple-green.css +1 -1
  159. package/progress-bar/_progress-bar-theme.scss +9 -0
  160. package/progress-spinner/_progress-spinner-theme.scss +11 -0
  161. package/radio/index.d.ts +22 -45
  162. package/radio/testing/index.d.ts +7 -23
  163. package/schematics/migration.json +4 -4
  164. package/schematics/ng-add/index.js +2 -2
  165. package/schematics/ng-add/index.mjs +2 -2
  166. package/schematics/ng-generate/mdc-migration/index_bundled.js +2 -2
  167. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
  168. package/schematics/ng-update/index_bundled.js +4 -4
  169. package/schematics/ng-update/index_bundled.js.map +1 -1
  170. package/select/index.d.ts +47 -68
  171. package/select/testing/index.d.ts +9 -22
  172. package/slide-toggle/index.d.ts +17 -27
  173. package/slide-toggle/testing/index.d.ts +6 -13
  174. package/slider/_slider-theme.scss +64 -64
  175. package/snack-bar/_snack-bar-theme.scss +8 -0
  176. package/snack-bar/index.d.ts +40 -62
  177. package/snack-bar/testing/index.d.ts +5 -20
  178. package/table/index.d.ts +2 -31
  179. package/table/testing/index.d.ts +17 -34
  180. package/tabs/index.d.ts +60 -144
  181. package/tooltip/_tooltip-theme.scss +12 -3
  182. package/tooltip/index.d.ts +26 -49
  183. package/tooltip/testing/index.d.ts +7 -17
  184. package/_theming.scss +0 -43
  185. package/_token-theming.scss +0 -2
  186. package/autocomplete/_autocomplete-theme.import.scss +0 -1
  187. package/badge/_badge-legacy-index.scss +0 -3
  188. package/badge/_badge-theme.import.scss +0 -11
  189. package/bottom-sheet/_bottom-sheet-legacy-index.scss +0 -2
  190. package/bottom-sheet/_bottom-sheet-theme.import.scss +0 -10
  191. package/button/_button-base.import.scss +0 -4
  192. package/button/_button-theme.import.scss +0 -13
  193. package/button-toggle/_button-toggle-legacy-index.scss +0 -2
  194. package/button-toggle/_button-toggle-theme.import.scss +0 -15
  195. package/button-toggle/_button-toggle-variables.import.scss +0 -1
  196. package/card/_card-theme.import.scss +0 -3
  197. package/checkbox/_checkbox-theme.import.scss +0 -10
  198. package/chips/_chips-theme.import.scss +0 -4
  199. package/core/_core-legacy-index.scss +0 -16
  200. package/core/_core.import.scss +0 -60
  201. package/core/color/_all-color.import.scss +0 -53
  202. package/core/color/_color-legacy-index.scss +0 -1
  203. package/core/density/private/_all-density.import.scss +0 -15
  204. package/core/density/private/_compatibility.import.scss +0 -4
  205. package/core/density/private/_density-legacy-index.scss +0 -5
  206. package/core/focus-indicators/_focus-indicators-legacy-index.scss +0 -5
  207. package/core/focus-indicators/_focus-indicators.import.scss +0 -23
  208. package/core/mdc-helpers/_mdc-helpers.import.scss +0 -9
  209. package/core/option/_optgroup-theme.import.scss +0 -4
  210. package/core/option/_option-legacy-index.scss +0 -5
  211. package/core/option/_option-theme.import.scss +0 -4
  212. package/core/ripple/_ripple-legacy-index.scss +0 -3
  213. package/core/ripple/_ripple.import.scss +0 -20
  214. package/core/selection/pseudo-checkbox/_pseudo-checkbox-legacy-index.scss +0 -2
  215. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.import.scss +0 -17
  216. package/core/style/_button-common.import.scss +0 -4
  217. package/core/style/_checkbox-common.import.scss +0 -11
  218. package/core/style/_elevation.import.scss +0 -17
  219. package/core/style/_form-common.import.scss +0 -16
  220. package/core/style/_layout-common.import.scss +0 -1
  221. package/core/style/_list-common.import.scss +0 -2
  222. package/core/style/_menu-common.import.scss +0 -18
  223. package/core/style/_private.import.scss +0 -15
  224. package/core/style/_style-legacy-index.scss +0 -24
  225. package/core/style/_variables.import.scss +0 -8
  226. package/core/style/_vendor-prefixes.import.scss +0 -1
  227. package/core/theming/_all-theme.import.scss +0 -86
  228. package/core/theming/_palette.import.scss +0 -12
  229. package/core/theming/_theming-legacy-index.scss +0 -22
  230. package/core/theming/_theming.import.scss +0 -24
  231. package/core/typography/_all-typography.import.scss +0 -76
  232. package/core/typography/_typography-legacy-index.scss +0 -18
  233. package/core/typography/_typography-utils.import.scss +0 -9
  234. package/core/typography/_typography.import.scss +0 -14
  235. package/datepicker/_datepicker-legacy-index.scss +0 -9
  236. package/datepicker/_datepicker-theme.import.scss +0 -17
  237. package/dialog/_dialog-legacy-padding.import.scss +0 -1
  238. package/dialog/_dialog-theme.import.scss +0 -1
  239. package/dialog/_mdc-dialog-structure-overrides.import.scss +0 -1
  240. package/divider/_divider-legacy-index.scss +0 -3
  241. package/divider/_divider-offset.import.scss +0 -1
  242. package/divider/_divider-theme.import.scss +0 -6
  243. package/esm2022/legacy-autocomplete/autocomplete-module.mjs +0 -51
  244. package/esm2022/legacy-autocomplete/autocomplete-origin.mjs +0 -28
  245. package/esm2022/legacy-autocomplete/autocomplete-trigger.mjs +0 -60
  246. package/esm2022/legacy-autocomplete/autocomplete.mjs +0 -40
  247. package/esm2022/legacy-autocomplete/index.mjs +0 -9
  248. package/esm2022/legacy-autocomplete/legacy-autocomplete_public_index.mjs +0 -5
  249. package/esm2022/legacy-autocomplete/public-api.mjs +0 -48
  250. package/esm2022/legacy-autocomplete/testing/autocomplete-harness-filters.mjs +0 -9
  251. package/esm2022/legacy-autocomplete/testing/autocomplete-harness.mjs +0 -39
  252. package/esm2022/legacy-autocomplete/testing/index.mjs +0 -9
  253. package/esm2022/legacy-autocomplete/testing/public-api.mjs +0 -9
  254. package/esm2022/legacy-button/button-module.mjs +0 -29
  255. package/esm2022/legacy-button/button.mjs +0 -177
  256. package/esm2022/legacy-button/index.mjs +0 -9
  257. package/esm2022/legacy-button/legacy-button_public_index.mjs +0 -5
  258. package/esm2022/legacy-button/public-api.mjs +0 -10
  259. package/esm2022/legacy-button/testing/button-harness.mjs +0 -82
  260. package/esm2022/legacy-button/testing/index.mjs +0 -9
  261. package/esm2022/legacy-button/testing/public-api.mjs +0 -9
  262. package/esm2022/legacy-card/card-module.mjs +0 -87
  263. package/esm2022/legacy-card/card.mjs +0 -276
  264. package/esm2022/legacy-card/index.mjs +0 -9
  265. package/esm2022/legacy-card/legacy-card_public_index.mjs +0 -5
  266. package/esm2022/legacy-card/public-api.mjs +0 -10
  267. package/esm2022/legacy-card/testing/card-harness-filters.mjs +0 -9
  268. package/esm2022/legacy-card/testing/card-harness.mjs +0 -47
  269. package/esm2022/legacy-card/testing/index.mjs +0 -9
  270. package/esm2022/legacy-card/testing/public-api.mjs +0 -9
  271. package/esm2022/legacy-checkbox/checkbox-module.mjs +0 -31
  272. package/esm2022/legacy-checkbox/checkbox.mjs +0 -137
  273. package/esm2022/legacy-checkbox/index.mjs +0 -9
  274. package/esm2022/legacy-checkbox/legacy-checkbox_public_index.mjs +0 -5
  275. package/esm2022/legacy-checkbox/public-api.mjs +0 -36
  276. package/esm2022/legacy-checkbox/testing/checkbox-harness.mjs +0 -46
  277. package/esm2022/legacy-checkbox/testing/index.mjs +0 -9
  278. package/esm2022/legacy-checkbox/testing/public-api.mjs +0 -9
  279. package/esm2022/legacy-chips/chip-default-options.mjs +0 -15
  280. package/esm2022/legacy-chips/chip-input.mjs +0 -198
  281. package/esm2022/legacy-chips/chip-list.mjs +0 -718
  282. package/esm2022/legacy-chips/chip-text-control.mjs +0 -9
  283. package/esm2022/legacy-chips/chip.mjs +0 -445
  284. package/esm2022/legacy-chips/chips-module.mjs +0 -68
  285. package/esm2022/legacy-chips/index.mjs +0 -9
  286. package/esm2022/legacy-chips/legacy-chips_public_index.mjs +0 -5
  287. package/esm2022/legacy-chips/public-api.mjs +0 -13
  288. package/esm2022/legacy-chips/testing/chip-avatar-harness.mjs +0 -26
  289. package/esm2022/legacy-chips/testing/chip-harness-filters.mjs +0 -2
  290. package/esm2022/legacy-chips/testing/chip-harness.mjs +0 -95
  291. package/esm2022/legacy-chips/testing/chip-input-harness.mjs +0 -86
  292. package/esm2022/legacy-chips/testing/chip-list-harness.mjs +0 -90
  293. package/esm2022/legacy-chips/testing/chip-listbox-harness.mjs +0 -48
  294. package/esm2022/legacy-chips/testing/chip-option-harness.mjs +0 -49
  295. package/esm2022/legacy-chips/testing/chip-remove-harness.mjs +0 -30
  296. package/esm2022/legacy-chips/testing/index.mjs +0 -9
  297. package/esm2022/legacy-chips/testing/public-api.mjs +0 -14
  298. package/esm2022/legacy-core/index.mjs +0 -9
  299. package/esm2022/legacy-core/legacy-core_public_index.mjs +0 -5
  300. package/esm2022/legacy-core/option/index.mjs +0 -69
  301. package/esm2022/legacy-core/option/optgroup.mjs +0 -30
  302. package/esm2022/legacy-core/option/option.mjs +0 -54
  303. package/esm2022/legacy-core/public-api.mjs +0 -170
  304. package/esm2022/legacy-core/testing/index.mjs +0 -9
  305. package/esm2022/legacy-core/testing/optgroup-harness-filters.mjs +0 -9
  306. package/esm2022/legacy-core/testing/optgroup-harness.mjs +0 -47
  307. package/esm2022/legacy-core/testing/option-harness-filters.mjs +0 -9
  308. package/esm2022/legacy-core/testing/option-harness.mjs +0 -58
  309. package/esm2022/legacy-core/testing/public-api.mjs +0 -12
  310. package/esm2022/legacy-dialog/dialog-animations.mjs +0 -17
  311. package/esm2022/legacy-dialog/dialog-config.mjs +0 -22
  312. package/esm2022/legacy-dialog/dialog-container.mjs +0 -85
  313. package/esm2022/legacy-dialog/dialog-content-directives.mjs +0 -209
  314. package/esm2022/legacy-dialog/dialog-module.mjs +0 -57
  315. package/esm2022/legacy-dialog/dialog-ref.mjs +0 -16
  316. package/esm2022/legacy-dialog/dialog.mjs +0 -106
  317. package/esm2022/legacy-dialog/index.mjs +0 -9
  318. package/esm2022/legacy-dialog/legacy-dialog_public_index.mjs +0 -5
  319. package/esm2022/legacy-dialog/public-api.mjs +0 -40
  320. package/esm2022/legacy-dialog/testing/dialog-harness.mjs +0 -36
  321. package/esm2022/legacy-dialog/testing/dialog-opener.mjs +0 -56
  322. package/esm2022/legacy-dialog/testing/index.mjs +0 -9
  323. package/esm2022/legacy-dialog/testing/public-api.mjs +0 -10
  324. package/esm2022/legacy-form-field/error.mjs +0 -46
  325. package/esm2022/legacy-form-field/form-field-module.mjs +0 -67
  326. package/esm2022/legacy-form-field/form-field.mjs +0 -530
  327. package/esm2022/legacy-form-field/hint.mjs +0 -56
  328. package/esm2022/legacy-form-field/index.mjs +0 -9
  329. package/esm2022/legacy-form-field/label.mjs +0 -25
  330. package/esm2022/legacy-form-field/legacy-form-field_public_index.mjs +0 -5
  331. package/esm2022/legacy-form-field/placeholder.mjs +0 -26
  332. package/esm2022/legacy-form-field/prefix.mjs +0 -27
  333. package/esm2022/legacy-form-field/public-api.mjs +0 -62
  334. package/esm2022/legacy-form-field/suffix.mjs +0 -27
  335. package/esm2022/legacy-form-field/testing/error-harness.mjs +0 -26
  336. package/esm2022/legacy-form-field/testing/form-field-harness.mjs +0 -73
  337. package/esm2022/legacy-form-field/testing/index.mjs +0 -9
  338. package/esm2022/legacy-form-field/testing/public-api.mjs +0 -19
  339. package/esm2022/legacy-input/index.mjs +0 -9
  340. package/esm2022/legacy-input/input-module.mjs +0 -45
  341. package/esm2022/legacy-input/input.mjs +0 -62
  342. package/esm2022/legacy-input/legacy-input_public_index.mjs +0 -5
  343. package/esm2022/legacy-input/public-api.mjs +0 -21
  344. package/esm2022/legacy-input/testing/index.mjs +0 -9
  345. package/esm2022/legacy-input/testing/public-api.mjs +0 -24
  346. package/esm2022/legacy-list/index.mjs +0 -9
  347. package/esm2022/legacy-list/legacy-list_public_index.mjs +0 -5
  348. package/esm2022/legacy-list/list-module.mjs +0 -75
  349. package/esm2022/legacy-list/list.mjs +0 -223
  350. package/esm2022/legacy-list/public-api.mjs +0 -22
  351. package/esm2022/legacy-list/selection-list.mjs +0 -619
  352. package/esm2022/legacy-list/testing/action-list-harness.mjs +0 -67
  353. package/esm2022/legacy-list/testing/index.mjs +0 -9
  354. package/esm2022/legacy-list/testing/list-harness-base.mjs +0 -97
  355. package/esm2022/legacy-list/testing/list-harness-filters.mjs +0 -9
  356. package/esm2022/legacy-list/testing/list-harness.mjs +0 -51
  357. package/esm2022/legacy-list/testing/list-item-harness-base.mjs +0 -74
  358. package/esm2022/legacy-list/testing/nav-list-harness.mjs +0 -71
  359. package/esm2022/legacy-list/testing/public-api.mjs +0 -12
  360. package/esm2022/legacy-list/testing/selection-list-harness.mjs +0 -129
  361. package/esm2022/legacy-menu/index.mjs +0 -9
  362. package/esm2022/legacy-menu/legacy-menu_public_index.mjs +0 -5
  363. package/esm2022/legacy-menu/menu-content.mjs +0 -27
  364. package/esm2022/legacy-menu/menu-item.mjs +0 -41
  365. package/esm2022/legacy-menu/menu-module.mjs +0 -50
  366. package/esm2022/legacy-menu/menu-trigger.mjs +0 -31
  367. package/esm2022/legacy-menu/menu.mjs +0 -40
  368. package/esm2022/legacy-menu/public-api.mjs +0 -49
  369. package/esm2022/legacy-menu/testing/index.mjs +0 -9
  370. package/esm2022/legacy-menu/testing/menu-harness.mjs +0 -56
  371. package/esm2022/legacy-menu/testing/public-api.mjs +0 -9
  372. package/esm2022/legacy-paginator/index.mjs +0 -9
  373. package/esm2022/legacy-paginator/legacy-paginator_public_index.mjs +0 -5
  374. package/esm2022/legacy-paginator/paginator-module.mjs +0 -49
  375. package/esm2022/legacy-paginator/paginator.mjs +0 -53
  376. package/esm2022/legacy-paginator/public-api.mjs +0 -36
  377. package/esm2022/legacy-paginator/testing/index.mjs +0 -9
  378. package/esm2022/legacy-paginator/testing/paginator-harness.mjs +0 -41
  379. package/esm2022/legacy-paginator/testing/public-api.mjs +0 -15
  380. package/esm2022/legacy-progress-bar/index.mjs +0 -9
  381. package/esm2022/legacy-progress-bar/legacy-progress-bar_public_index.mjs +0 -5
  382. package/esm2022/legacy-progress-bar/progress-bar-module.mjs +0 -30
  383. package/esm2022/legacy-progress-bar/progress-bar.mjs +0 -190
  384. package/esm2022/legacy-progress-bar/public-api.mjs +0 -11
  385. package/esm2022/legacy-progress-bar/testing/index.mjs +0 -9
  386. package/esm2022/legacy-progress-bar/testing/progress-bar-harness.mjs +0 -38
  387. package/esm2022/legacy-progress-bar/testing/public-api.mjs +0 -9
  388. package/esm2022/legacy-progress-spinner/index.mjs +0 -9
  389. package/esm2022/legacy-progress-spinner/legacy-progress-spinner_public_index.mjs +0 -5
  390. package/esm2022/legacy-progress-spinner/progress-spinner-module.mjs +0 -30
  391. package/esm2022/legacy-progress-spinner/progress-spinner.mjs +0 -286
  392. package/esm2022/legacy-progress-spinner/public-api.mjs +0 -19
  393. package/esm2022/legacy-progress-spinner/testing/index.mjs +0 -9
  394. package/esm2022/legacy-progress-spinner/testing/progress-spinner-harness.mjs +0 -39
  395. package/esm2022/legacy-progress-spinner/testing/public-api.mjs +0 -9
  396. package/esm2022/legacy-radio/index.mjs +0 -9
  397. package/esm2022/legacy-radio/legacy-radio_public_index.mjs +0 -5
  398. package/esm2022/legacy-radio/public-api.mjs +0 -31
  399. package/esm2022/legacy-radio/radio-module.mjs +0 -29
  400. package/esm2022/legacy-radio/radio.mjs +0 -112
  401. package/esm2022/legacy-radio/testing/index.mjs +0 -9
  402. package/esm2022/legacy-radio/testing/public-api.mjs +0 -9
  403. package/esm2022/legacy-radio/testing/radio-harness.mjs +0 -58
  404. package/esm2022/legacy-select/index.mjs +0 -9
  405. package/esm2022/legacy-select/legacy-select_public_index.mjs +0 -5
  406. package/esm2022/legacy-select/public-api.mjs +0 -37
  407. package/esm2022/legacy-select/select-animations.mjs +0 -56
  408. package/esm2022/legacy-select/select-errors.mjs +0 -39
  409. package/esm2022/legacy-select/select-module.mjs +0 -51
  410. package/esm2022/legacy-select/select.mjs +0 -447
  411. package/esm2022/legacy-select/testing/index.mjs +0 -9
  412. package/esm2022/legacy-select/testing/public-api.mjs +0 -9
  413. package/esm2022/legacy-select/testing/select-harness-filters.mjs +0 -9
  414. package/esm2022/legacy-select/testing/select-harness.mjs +0 -36
  415. package/esm2022/legacy-slide-toggle/index.mjs +0 -9
  416. package/esm2022/legacy-slide-toggle/legacy-slide-toggle_public_index.mjs +0 -5
  417. package/esm2022/legacy-slide-toggle/public-api.mjs +0 -32
  418. package/esm2022/legacy-slide-toggle/slide-toggle-config.mjs +0 -18
  419. package/esm2022/legacy-slide-toggle/slide-toggle-module.mjs +0 -42
  420. package/esm2022/legacy-slide-toggle/slide-toggle.mjs +0 -137
  421. package/esm2022/legacy-slide-toggle/testing/index.mjs +0 -9
  422. package/esm2022/legacy-slide-toggle/testing/public-api.mjs +0 -15
  423. package/esm2022/legacy-slide-toggle/testing/slide-toggle-harness.mjs +0 -50
  424. package/esm2022/legacy-slider/index.mjs +0 -9
  425. package/esm2022/legacy-slider/legacy-slider_public_index.mjs +0 -5
  426. package/esm2022/legacy-slider/public-api.mjs +0 -10
  427. package/esm2022/legacy-slider/slider-module.mjs +0 -30
  428. package/esm2022/legacy-slider/slider.mjs +0 -847
  429. package/esm2022/legacy-slider/testing/index.mjs +0 -9
  430. package/esm2022/legacy-slider/testing/public-api.mjs +0 -9
  431. package/esm2022/legacy-slider/testing/slider-harness-filters.mjs +0 -2
  432. package/esm2022/legacy-slider/testing/slider-harness.mjs +0 -122
  433. package/esm2022/legacy-snack-bar/index.mjs +0 -9
  434. package/esm2022/legacy-snack-bar/legacy-snack-bar_public_index.mjs +0 -5
  435. package/esm2022/legacy-snack-bar/public-api.mjs +0 -53
  436. package/esm2022/legacy-snack-bar/simple-snack-bar.mjs +0 -45
  437. package/esm2022/legacy-snack-bar/snack-bar-container.mjs +0 -39
  438. package/esm2022/legacy-snack-bar/snack-bar-module.mjs +0 -34
  439. package/esm2022/legacy-snack-bar/snack-bar.mjs +0 -47
  440. package/esm2022/legacy-snack-bar/testing/index.mjs +0 -9
  441. package/esm2022/legacy-snack-bar/testing/public-api.mjs +0 -9
  442. package/esm2022/legacy-snack-bar/testing/snack-bar-harness.mjs +0 -46
  443. package/esm2022/legacy-table/cell.mjs +0 -163
  444. package/esm2022/legacy-table/index.mjs +0 -9
  445. package/esm2022/legacy-table/legacy-table_public_index.mjs +0 -5
  446. package/esm2022/legacy-table/public-api.mjs +0 -20
  447. package/esm2022/legacy-table/row.mjs +0 -165
  448. package/esm2022/legacy-table/table-data-source.mjs +0 -27
  449. package/esm2022/legacy-table/table-module.mjs +0 -98
  450. package/esm2022/legacy-table/table.mjs +0 -72
  451. package/esm2022/legacy-table/testing/cell-harness.mjs +0 -62
  452. package/esm2022/legacy-table/testing/index.mjs +0 -9
  453. package/esm2022/legacy-table/testing/public-api.mjs +0 -27
  454. package/esm2022/legacy-table/testing/row-harness.mjs +0 -76
  455. package/esm2022/legacy-table/testing/table-harness.mjs +0 -34
  456. package/esm2022/legacy-table/text-column.mjs +0 -65
  457. package/esm2022/legacy-tabs/index.mjs +0 -9
  458. package/esm2022/legacy-tabs/ink-bar.mjs +0 -73
  459. package/esm2022/legacy-tabs/legacy-tabs_public_index.mjs +0 -5
  460. package/esm2022/legacy-tabs/public-api.mjs +0 -94
  461. package/esm2022/legacy-tabs/tab-body.mjs +0 -64
  462. package/esm2022/legacy-tabs/tab-content.mjs +0 -27
  463. package/esm2022/legacy-tabs/tab-group.mjs +0 -72
  464. package/esm2022/legacy-tabs/tab-header.mjs +0 -75
  465. package/esm2022/legacy-tabs/tab-label-wrapper.mjs +0 -30
  466. package/esm2022/legacy-tabs/tab-label.mjs +0 -27
  467. package/esm2022/legacy-tabs/tab-nav-bar/index.mjs +0 -9
  468. package/esm2022/legacy-tabs/tab-nav-bar/tab-nav-bar.mjs +0 -164
  469. package/esm2022/legacy-tabs/tab.mjs +0 -46
  470. package/esm2022/legacy-tabs/tabs-module.mjs +0 -99
  471. package/esm2022/legacy-tabs/testing/index.mjs +0 -9
  472. package/esm2022/legacy-tabs/testing/public-api.mjs +0 -12
  473. package/esm2022/legacy-tabs/testing/tab-group-harness.mjs +0 -61
  474. package/esm2022/legacy-tabs/testing/tab-harness-filters.mjs +0 -2
  475. package/esm2022/legacy-tabs/testing/tab-harness.mjs +0 -71
  476. package/esm2022/legacy-tabs/testing/tab-link-harness.mjs +0 -45
  477. package/esm2022/legacy-tabs/testing/tab-nav-bar-harness.mjs +0 -70
  478. package/esm2022/legacy-tabs/testing/tab-nav-panel-harness.mjs +0 -31
  479. package/esm2022/legacy-tooltip/index.mjs +0 -9
  480. package/esm2022/legacy-tooltip/legacy-tooltip_public_index.mjs +0 -5
  481. package/esm2022/legacy-tooltip/public-api.mjs +0 -47
  482. package/esm2022/legacy-tooltip/testing/index.mjs +0 -9
  483. package/esm2022/legacy-tooltip/testing/public-api.mjs +0 -9
  484. package/esm2022/legacy-tooltip/testing/tooltip-harness.mjs +0 -35
  485. package/esm2022/legacy-tooltip/tooltip-animations.mjs +0 -28
  486. package/esm2022/legacy-tooltip/tooltip-module.mjs +0 -35
  487. package/esm2022/legacy-tooltip/tooltip.mjs +0 -108
  488. package/expansion/_expansion-legacy-index.scss +0 -2
  489. package/expansion/_expansion-theme.import.scss +0 -12
  490. package/expansion/_expansion-variables.import.scss +0 -1
  491. package/fesm2022/legacy-autocomplete/testing.mjs +0 -35
  492. package/fesm2022/legacy-autocomplete/testing.mjs.map +0 -1
  493. package/fesm2022/legacy-autocomplete.mjs +0 -146
  494. package/fesm2022/legacy-autocomplete.mjs.map +0 -1
  495. package/fesm2022/legacy-button/testing.mjs +0 -78
  496. package/fesm2022/legacy-button/testing.mjs.map +0 -1
  497. package/fesm2022/legacy-button.mjs +0 -194
  498. package/fesm2022/legacy-button.mjs.map +0 -1
  499. package/fesm2022/legacy-card/testing.mjs +0 -43
  500. package/fesm2022/legacy-card/testing.mjs.map +0 -1
  501. package/fesm2022/legacy-card.mjs +0 -353
  502. package/fesm2022/legacy-card.mjs.map +0 -1
  503. package/fesm2022/legacy-checkbox/testing.mjs +0 -42
  504. package/fesm2022/legacy-checkbox/testing.mjs.map +0 -1
  505. package/fesm2022/legacy-checkbox.mjs +0 -157
  506. package/fesm2022/legacy-checkbox.mjs.map +0 -1
  507. package/fesm2022/legacy-chips/testing.mjs +0 -365
  508. package/fesm2022/legacy-chips/testing.mjs.map +0 -1
  509. package/fesm2022/legacy-chips.mjs +0 -1399
  510. package/fesm2022/legacy-chips.mjs.map +0 -1
  511. package/fesm2022/legacy-core/testing.mjs +0 -92
  512. package/fesm2022/legacy-core/testing.mjs.map +0 -1
  513. package/fesm2022/legacy-core.mjs +0 -92
  514. package/fesm2022/legacy-core.mjs.map +0 -1
  515. package/fesm2022/legacy-dialog/testing.mjs +0 -80
  516. package/fesm2022/legacy-dialog/testing.mjs.map +0 -1
  517. package/fesm2022/legacy-dialog.mjs +0 -449
  518. package/fesm2022/legacy-dialog.mjs.map +0 -1
  519. package/fesm2022/legacy-form-field/testing.mjs +0 -87
  520. package/fesm2022/legacy-form-field/testing.mjs.map +0 -1
  521. package/fesm2022/legacy-form-field.mjs +0 -726
  522. package/fesm2022/legacy-form-field.mjs.map +0 -1
  523. package/fesm2022/legacy-input/testing.mjs +0 -2
  524. package/fesm2022/legacy-input/testing.mjs.map +0 -1
  525. package/fesm2022/legacy-input.mjs +0 -97
  526. package/fesm2022/legacy-input.mjs.map +0 -1
  527. package/fesm2022/legacy-list/testing.mjs +0 -436
  528. package/fesm2022/legacy-list/testing.mjs.map +0 -1
  529. package/fesm2022/legacy-list.mjs +0 -891
  530. package/fesm2022/legacy-list.mjs.map +0 -1
  531. package/fesm2022/legacy-menu/testing.mjs +0 -52
  532. package/fesm2022/legacy-menu/testing.mjs.map +0 -1
  533. package/fesm2022/legacy-menu.mjs +0 -145
  534. package/fesm2022/legacy-menu.mjs.map +0 -1
  535. package/fesm2022/legacy-paginator/testing.mjs +0 -38
  536. package/fesm2022/legacy-paginator/testing.mjs.map +0 -1
  537. package/fesm2022/legacy-paginator.mjs +0 -92
  538. package/fesm2022/legacy-paginator.mjs.map +0 -1
  539. package/fesm2022/legacy-progress-bar/testing.mjs +0 -34
  540. package/fesm2022/legacy-progress-bar/testing.mjs.map +0 -1
  541. package/fesm2022/legacy-progress-bar.mjs +0 -210
  542. package/fesm2022/legacy-progress-bar.mjs.map +0 -1
  543. package/fesm2022/legacy-progress-spinner/testing.mjs +0 -35
  544. package/fesm2022/legacy-progress-spinner/testing.mjs.map +0 -1
  545. package/fesm2022/legacy-progress-spinner.mjs +0 -312
  546. package/fesm2022/legacy-progress-spinner.mjs.map +0 -1
  547. package/fesm2022/legacy-radio/testing.mjs +0 -54
  548. package/fesm2022/legacy-radio/testing.mjs.map +0 -1
  549. package/fesm2022/legacy-radio.mjs +0 -130
  550. package/fesm2022/legacy-radio.mjs.map +0 -1
  551. package/fesm2022/legacy-select/testing.mjs +0 -32
  552. package/fesm2022/legacy-select/testing.mjs.map +0 -1
  553. package/fesm2022/legacy-select.mjs +0 -541
  554. package/fesm2022/legacy-select.mjs.map +0 -1
  555. package/fesm2022/legacy-slide-toggle/testing.mjs +0 -47
  556. package/fesm2022/legacy-slide-toggle/testing.mjs.map +0 -1
  557. package/fesm2022/legacy-slide-toggle.mjs +0 -177
  558. package/fesm2022/legacy-slide-toggle.mjs.map +0 -1
  559. package/fesm2022/legacy-slider/testing.mjs +0 -118
  560. package/fesm2022/legacy-slider/testing.mjs.map +0 -1
  561. package/fesm2022/legacy-slider.mjs +0 -863
  562. package/fesm2022/legacy-slider.mjs.map +0 -1
  563. package/fesm2022/legacy-snack-bar/testing.mjs +0 -42
  564. package/fesm2022/legacy-snack-bar/testing.mjs.map +0 -1
  565. package/fesm2022/legacy-snack-bar.mjs +0 -128
  566. package/fesm2022/legacy-snack-bar.mjs.map +0 -1
  567. package/fesm2022/legacy-table/testing.mjs +0 -150
  568. package/fesm2022/legacy-table/testing.mjs.map +0 -1
  569. package/fesm2022/legacy-table.mjs +0 -538
  570. package/fesm2022/legacy-table.mjs.map +0 -1
  571. package/fesm2022/legacy-tabs/testing.mjs +0 -239
  572. package/fesm2022/legacy-tabs/testing.mjs.map +0 -1
  573. package/fesm2022/legacy-tabs.mjs +0 -549
  574. package/fesm2022/legacy-tabs.mjs.map +0 -1
  575. package/fesm2022/legacy-tooltip/testing.mjs +0 -31
  576. package/fesm2022/legacy-tooltip/testing.mjs.map +0 -1
  577. package/fesm2022/legacy-tooltip.mjs +0 -148
  578. package/fesm2022/legacy-tooltip.mjs.map +0 -1
  579. package/form-field/_form-field-theme.import.scss +0 -29
  580. package/form-field/_mdc-text-field-theme-variable-refresh.scss +0 -88
  581. package/grid-list/_grid-list-legacy-index.scss +0 -2
  582. package/grid-list/_grid-list-theme.import.scss +0 -10
  583. package/icon/_icon-legacy-index.scss +0 -2
  584. package/icon/_icon-theme.import.scss +0 -5
  585. package/input/_input-theme.import.scss +0 -1
  586. package/legacy-autocomplete/_autocomplete-legacy-index.scss +0 -2
  587. package/legacy-autocomplete/_autocomplete-theme.import.scss +0 -7
  588. package/legacy-autocomplete/_autocomplete-theme.scss +0 -57
  589. package/legacy-autocomplete/index.d.ts +0 -115
  590. package/legacy-autocomplete/testing/index.d.ts +0 -41
  591. package/legacy-button/_button-base.import.scss +0 -21
  592. package/legacy-button/_button-base.scss +0 -114
  593. package/legacy-button/_button-legacy-index.scss +0 -22
  594. package/legacy-button/_button-theme.import.scss +0 -11
  595. package/legacy-button/_button-theme.scss +0 -223
  596. package/legacy-button/index.d.ts +0 -87
  597. package/legacy-button/testing/index.d.ts +0 -49
  598. package/legacy-card/_card-legacy-index.scss +0 -2
  599. package/legacy-card/_card-theme.import.scss +0 -10
  600. package/legacy-card/_card-theme.scss +0 -78
  601. package/legacy-card/index.d.ts +0 -201
  602. package/legacy-card/testing/index.d.ts +0 -56
  603. package/legacy-checkbox/_checkbox-legacy-index.scss +0 -2
  604. package/legacy-checkbox/_checkbox-theme.import.scss +0 -7
  605. package/legacy-checkbox/_checkbox-theme.scss +0 -138
  606. package/legacy-checkbox/index.d.ts +0 -116
  607. package/legacy-checkbox/testing/index.d.ts +0 -30
  608. package/legacy-chips/_chips-legacy-index.scss +0 -7
  609. package/legacy-chips/_chips-theme.import.scss +0 -14
  610. package/legacy-chips/_chips-theme.scss +0 -133
  611. package/legacy-chips/index.d.ts +0 -705
  612. package/legacy-chips/testing/index.d.ts +0 -316
  613. package/legacy-core/_core-theme.scss +0 -65
  614. package/legacy-core/_core.import.scss +0 -5
  615. package/legacy-core/_core.scss +0 -18
  616. package/legacy-core/color/_all-color.import.scss +0 -4
  617. package/legacy-core/color/_all-color.scss +0 -28
  618. package/legacy-core/density/private/_all-density.import.scss +0 -3
  619. package/legacy-core/density/private/_all-density.scss +0 -46
  620. package/legacy-core/density/private/_compatibility.import.scss +0 -4
  621. package/legacy-core/density/private/_compatibility.scss +0 -74
  622. package/legacy-core/index.d.ts +0 -218
  623. package/legacy-core/option/_optgroup-theme.import.scss +0 -27
  624. package/legacy-core/option/_optgroup-theme.scss +0 -52
  625. package/legacy-core/option/_option-legacy-index.scss +0 -5
  626. package/legacy-core/option/_option-theme.import.scss +0 -27
  627. package/legacy-core/option/_option-theme.scss +0 -86
  628. package/legacy-core/testing/index.d.ts +0 -80
  629. package/legacy-core/theming/_all-theme.import.scss +0 -3
  630. package/legacy-core/theming/_all-theme.scss +0 -89
  631. package/legacy-core/typography/_all-typography.import.scss +0 -4
  632. package/legacy-core/typography/_all-typography.scss +0 -105
  633. package/legacy-dialog/_dialog-legacy-index.scss +0 -2
  634. package/legacy-dialog/_dialog-theme.import.scss +0 -10
  635. package/legacy-dialog/_dialog-theme.scss +0 -53
  636. package/legacy-dialog/index.d.ts +0 -271
  637. package/legacy-dialog/testing/index.d.ts +0 -63
  638. package/legacy-form-field/_form-field-fill-theme.import.scss +0 -13
  639. package/legacy-form-field/_form-field-fill-theme.scss +0 -136
  640. package/legacy-form-field/_form-field-legacy-index.scss +0 -29
  641. package/legacy-form-field/_form-field-legacy-theme.import.scss +0 -14
  642. package/legacy-form-field/_form-field-legacy-theme.scss +0 -204
  643. package/legacy-form-field/_form-field-outline-theme.import.scss +0 -13
  644. package/legacy-form-field/_form-field-outline-theme.scss +0 -167
  645. package/legacy-form-field/_form-field-standard-theme.import.scss +0 -11
  646. package/legacy-form-field/_form-field-standard-theme.scss +0 -55
  647. package/legacy-form-field/_form-field-theme.import.scss +0 -29
  648. package/legacy-form-field/_form-field-theme.scss +0 -278
  649. package/legacy-form-field/index.d.ts +0 -370
  650. package/legacy-form-field/testing/index.d.ts +0 -76
  651. package/legacy-input/_input-legacy-index.scss +0 -2
  652. package/legacy-input/_input-theme.import.scss +0 -11
  653. package/legacy-input/_input-theme.scss +0 -115
  654. package/legacy-input/index.d.ts +0 -41
  655. package/legacy-input/testing/index.d.ts +0 -20
  656. package/legacy-list/_list-legacy-index.scss +0 -2
  657. package/legacy-list/_list-theme.import.scss +0 -10
  658. package/legacy-list/_list-theme.scss +0 -124
  659. package/legacy-list/index.d.ts +0 -396
  660. package/legacy-list/testing/index.d.ts +0 -419
  661. package/legacy-menu/_menu-legacy-index.scss +0 -2
  662. package/legacy-menu/_menu-theme.import.scss +0 -10
  663. package/legacy-menu/_menu-theme.scss +0 -84
  664. package/legacy-menu/index.d.ts +0 -127
  665. package/legacy-menu/testing/index.d.ts +0 -47
  666. package/legacy-paginator/_paginator-legacy-index.scss +0 -2
  667. package/legacy-paginator/_paginator-theme.import.scss +0 -11
  668. package/legacy-paginator/_paginator-theme.scss +0 -92
  669. package/legacy-paginator/_paginator-variables.import.scss +0 -1
  670. package/legacy-paginator/_paginator-variables.scss +0 -13
  671. package/legacy-paginator/index.d.ts +0 -87
  672. package/legacy-paginator/testing/index.d.ts +0 -36
  673. package/legacy-prebuilt-themes/legacy-deeppurple-amber.css +0 -1
  674. package/legacy-prebuilt-themes/legacy-indigo-pink.css +0 -1
  675. package/legacy-prebuilt-themes/legacy-pink-bluegrey.css +0 -1
  676. package/legacy-prebuilt-themes/legacy-purple-green.css +0 -1
  677. package/legacy-progress-bar/_progress-bar-legacy-index.scss +0 -2
  678. package/legacy-progress-bar/_progress-bar-theme.import.scss +0 -6
  679. package/legacy-progress-bar/_progress-bar-theme.scss +0 -93
  680. package/legacy-progress-bar/index.d.ts +0 -131
  681. package/legacy-progress-bar/testing/index.d.ts +0 -28
  682. package/legacy-progress-spinner/_progress-spinner-legacy-index.scss +0 -3
  683. package/legacy-progress-spinner/_progress-spinner-theme.import.scss +0 -7
  684. package/legacy-progress-spinner/_progress-spinner-theme.scss +0 -52
  685. package/legacy-progress-spinner/index.d.ts +0 -129
  686. package/legacy-progress-spinner/testing/index.d.ts +0 -29
  687. package/legacy-radio/_radio-legacy-index.scss +0 -2
  688. package/legacy-radio/_radio-theme.import.scss +0 -8
  689. package/legacy-radio/_radio-theme.scss +0 -104
  690. package/legacy-radio/index.d.ts +0 -75
  691. package/legacy-radio/testing/index.d.ts +0 -50
  692. package/legacy-select/_select-legacy-index.scss +0 -2
  693. package/legacy-select/_select-theme.import.scss +0 -11
  694. package/legacy-select/_select-theme.scss +0 -107
  695. package/legacy-select/index.d.ts +0 -230
  696. package/legacy-select/testing/index.d.ts +0 -38
  697. package/legacy-slide-toggle/_slide-toggle-legacy-index.scss +0 -3
  698. package/legacy-slide-toggle/_slide-toggle-theme.import.scss +0 -11
  699. package/legacy-slide-toggle/_slide-toggle-theme.scss +0 -111
  700. package/legacy-slide-toggle/index.d.ts +0 -113
  701. package/legacy-slide-toggle/testing/index.d.ts +0 -34
  702. package/legacy-slider/_slider-legacy-index.scss +0 -3
  703. package/legacy-slider/_slider-theme.import.scss +0 -8
  704. package/legacy-slider/_slider-theme.scss +0 -210
  705. package/legacy-slider/index.d.ts +0 -303
  706. package/legacy-slider/testing/index.d.ts +0 -68
  707. package/legacy-snack-bar/_snack-bar-legacy-index.scss +0 -2
  708. package/legacy-snack-bar/_snack-bar-theme.import.scss +0 -11
  709. package/legacy-snack-bar/_snack-bar-theme.scss +0 -72
  710. package/legacy-snack-bar/index.d.ts +0 -118
  711. package/legacy-snack-bar/testing/index.d.ts +0 -28
  712. package/legacy-table/_table-legacy-index.scss +0 -3
  713. package/legacy-table/_table-theme.import.scss +0 -8
  714. package/legacy-table/_table-theme.scss +0 -78
  715. package/legacy-table/index.d.ts +0 -298
  716. package/legacy-table/testing/index.d.ts +0 -149
  717. package/legacy-tabs/_tabs-common.import.scss +0 -11
  718. package/legacy-tabs/_tabs-common.scss +0 -173
  719. package/legacy-tabs/_tabs-legacy-index.scss +0 -6
  720. package/legacy-tabs/_tabs-theme.import.scss +0 -9
  721. package/legacy-tabs/_tabs-theme.scss +0 -188
  722. package/legacy-tabs/index.d.ts +0 -338
  723. package/legacy-tabs/testing/index.d.ts +0 -195
  724. package/legacy-tooltip/_tooltip-legacy-index.scss +0 -3
  725. package/legacy-tooltip/_tooltip-theme.import.scss +0 -9
  726. package/legacy-tooltip/_tooltip-theme.scss +0 -67
  727. package/legacy-tooltip/index.d.ts +0 -117
  728. package/legacy-tooltip/testing/index.d.ts +0 -30
  729. package/list/_list-theme.import.scss +0 -1
  730. package/menu/_menu-theme.import.scss +0 -2
  731. package/paginator/_paginator-theme.import.scss +0 -6
  732. package/paginator/_paginator-variables.import.scss +0 -1
  733. package/progress-bar/_progress-bar-theme.import.scss +0 -3
  734. package/progress-spinner/_progress-spinner-theme.import.scss +0 -3
  735. package/radio/_radio-theme.import.scss +0 -4
  736. package/select/_select-theme.import.scss +0 -7
  737. package/sidenav/_sidenav-legacy-index.scss +0 -2
  738. package/sidenav/_sidenav-theme.import.scss +0 -8
  739. package/slide-toggle/_slide-toggle-theme.import.scss +0 -7
  740. package/slider/_slider-theme.import.scss +0 -2
  741. package/snack-bar/_snack-bar-theme.import.scss +0 -5
  742. package/sort/_sort-legacy-index.scss +0 -2
  743. package/sort/_sort-theme.import.scss +0 -5
  744. package/stepper/_stepper-legacy-index.scss +0 -7
  745. package/stepper/_stepper-theme.import.scss +0 -16
  746. package/stepper/_stepper-variables.import.scss +0 -6
  747. package/table/_table-flex-styles.import.scss +0 -1
  748. package/table/_table-theme.import.scss +0 -8
  749. package/tabs/_tabs-common.import.scss +0 -11
  750. package/tabs/_tabs-theme.import.scss +0 -5
  751. package/toolbar/_toolbar-legacy-index.scss +0 -4
  752. package/toolbar/_toolbar-theme.import.scss +0 -14
  753. package/toolbar/_toolbar-variables.import.scss +0 -1
  754. package/tooltip/_tooltip-theme.import.scss +0 -2
  755. package/tree/_tree-legacy-index.scss +0 -2
  756. package/tree/_tree-theme.import.scss +0 -9
  757. package/tree/_tree-variables.import.scss +0 -1
@@ -1,436 +0,0 @@
1
- import { HarnessPredicate, ComponentHarness, ContentContainerComponentHarness, parallel } from '@angular/cdk/testing';
2
- import { MatDividerHarness } from '@angular/material/divider/testing';
3
-
4
- const iconSelector = '.mat-list-icon';
5
- const avatarSelector = '.mat-list-avatar';
6
- /**
7
- * Gets a `HarnessPredicate` that applies the given `BaseListItemHarnessFilters` to the given
8
- * list item harness.
9
- * @template H The type of list item harness to create a predicate for.
10
- * @param harnessType A constructor for a list item harness.
11
- * @param options An instance of `BaseListItemHarnessFilters` to apply.
12
- * @return A `HarnessPredicate` for the given harness type with the given options applied.
13
- * @deprecated Use `getListItemPredicate` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
14
- * @breaking-change 17.0.0
15
- */
16
- function getListItemPredicate(harnessType, options) {
17
- return new HarnessPredicate(harnessType, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
18
- }
19
- /**
20
- * Harness for interacting with a list subheader.
21
- * @deprecated Use `MatSubheaderHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
22
- * @breaking-change 17.0.0
23
- */
24
- class MatLegacySubheaderHarness extends ComponentHarness {
25
- static { this.hostSelector = '.mat-subheader'; }
26
- static with(options = {}) {
27
- return new HarnessPredicate(MatLegacySubheaderHarness, options).addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text));
28
- }
29
- /** Gets the full text content of the list item (including text from any font icons). */
30
- async getText() {
31
- return (await this.host()).text();
32
- }
33
- }
34
- /**
35
- * Shared behavior among the harnesses for the various `MatListItem` flavors.
36
- * @docs-private
37
- * @deprecated Use `class` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
38
- * @breaking-change 17.0.0
39
- */
40
- class MatLegacyListItemHarnessBase extends ContentContainerComponentHarness {
41
- constructor() {
42
- super(...arguments);
43
- this._lines = this.locatorForAll('.mat-line');
44
- this._avatar = this.locatorForOptional(avatarSelector);
45
- this._icon = this.locatorForOptional(iconSelector);
46
- }
47
- /** Gets the full text content of the list item. */
48
- async getText() {
49
- return (await this.host()).text({ exclude: `${iconSelector}, ${avatarSelector}` });
50
- }
51
- /** Gets the lines of text (`mat-line` elements) in this nav list item. */
52
- async getLinesText() {
53
- const lines = await this._lines();
54
- return parallel(() => lines.map(l => l.text()));
55
- }
56
- /** Whether this list item has an avatar. */
57
- async hasAvatar() {
58
- return !!(await this._avatar());
59
- }
60
- /** Whether this list item has an icon. */
61
- async hasIcon() {
62
- return !!(await this._icon());
63
- }
64
- /** Whether this list option is disabled. */
65
- async isDisabled() {
66
- return (await this.host()).hasClass('mat-list-item-disabled');
67
- }
68
- }
69
-
70
- /**
71
- * Shared behavior among the harnesses for the various `MatList` flavors.
72
- * @template T A constructor type for a list item harness type used by this list harness.
73
- * @template C The list item harness type that `T` constructs.
74
- * @template F The filter type used filter list item harness of type `C`.
75
- * @docs-private
76
- * @deprecated Use `class` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
77
- * @breaking-change 17.0.0
78
- */
79
- class MatLegacyListHarnessBase extends ComponentHarness {
80
- /**
81
- * Gets a list of harnesses representing the items in this list.
82
- * @param filters Optional filters used to narrow which harnesses are included
83
- * @return The list of items matching the given filters.
84
- */
85
- async getItems(filters) {
86
- return this.locatorForAll(this._itemHarness.with(filters))();
87
- }
88
- /**
89
- * Gets a list of `ListSection` representing the list items grouped by subheaders. If the list has
90
- * no subheaders it is represented as a single `ListSection` with an undefined `heading` property.
91
- * @param filters Optional filters used to narrow which list item harnesses are included
92
- * @return The list of items matching the given filters, grouped into sections by subheader.
93
- */
94
- async getItemsGroupedBySubheader(filters) {
95
- const listSections = [];
96
- let currentSection = { items: [] };
97
- const itemsAndSubheaders = await this.getItemsWithSubheadersAndDividers({
98
- item: filters,
99
- divider: false,
100
- });
101
- for (const itemOrSubheader of itemsAndSubheaders) {
102
- if (itemOrSubheader instanceof MatLegacySubheaderHarness) {
103
- if (currentSection.heading !== undefined || currentSection.items.length) {
104
- listSections.push(currentSection);
105
- }
106
- currentSection = { heading: itemOrSubheader.getText(), items: [] };
107
- }
108
- else {
109
- currentSection.items.push(itemOrSubheader);
110
- }
111
- }
112
- if (currentSection.heading !== undefined ||
113
- currentSection.items.length ||
114
- !listSections.length) {
115
- listSections.push(currentSection);
116
- }
117
- // Concurrently wait for all sections to resolve their heading if present.
118
- return parallel(() => listSections.map(async (s) => ({ items: s.items, heading: await s.heading })));
119
- }
120
- /**
121
- * Gets a list of sub-lists representing the list items grouped by dividers. If the list has no
122
- * dividers it is represented as a list with a single sub-list.
123
- * @param filters Optional filters used to narrow which list item harnesses are included
124
- * @return The list of items matching the given filters, grouped into sub-lists by divider.
125
- */
126
- async getItemsGroupedByDividers(filters) {
127
- const listSections = [[]];
128
- const itemsAndDividers = await this.getItemsWithSubheadersAndDividers({
129
- item: filters,
130
- subheader: false,
131
- });
132
- for (const itemOrDivider of itemsAndDividers) {
133
- if (itemOrDivider instanceof MatDividerHarness) {
134
- listSections.push([]);
135
- }
136
- else {
137
- listSections[listSections.length - 1].push(itemOrDivider);
138
- }
139
- }
140
- return listSections;
141
- }
142
- async getItemsWithSubheadersAndDividers(filters = {}) {
143
- const query = [];
144
- if (filters.item !== false) {
145
- query.push(this._itemHarness.with(filters.item || {}));
146
- }
147
- if (filters.subheader !== false) {
148
- query.push(MatLegacySubheaderHarness.with(filters.subheader));
149
- }
150
- if (filters.divider !== false) {
151
- query.push(MatDividerHarness.with(filters.divider));
152
- }
153
- return this.locatorForAll(...query)();
154
- }
155
- }
156
-
157
- /**
158
- * Harness for interacting with a standard mat-action-list in tests.
159
- * @deprecated Use `MatActionListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
160
- * @breaking-change 17.0.0
161
- */
162
- class MatLegacyActionListHarness extends MatLegacyListHarnessBase {
163
- constructor() {
164
- super(...arguments);
165
- this._itemHarness = MatLegacyActionListItemHarness;
166
- }
167
- /** The selector for the host element of a `MatActionList` instance. */
168
- static { this.hostSelector = 'mat-action-list.mat-list'; }
169
- /**
170
- * Gets a `HarnessPredicate` that can be used to search for a `MatActionListHarness` that meets
171
- * certain criteria.
172
- * @param options Options for filtering which action list instances are considered a match.
173
- * @return a `HarnessPredicate` configured with the given options.
174
- */
175
- static with(options = {}) {
176
- return new HarnessPredicate(MatLegacyActionListHarness, options);
177
- }
178
- }
179
- /**
180
- * Harness for interacting with an action list item.
181
- * @deprecated Use `MatActionListItemHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
182
- * @breaking-change 17.0.0
183
- */
184
- class MatLegacyActionListItemHarness extends MatLegacyListItemHarnessBase {
185
- /** The selector for the host element of a `MatListItem` instance. */
186
- static { this.hostSelector = `${MatLegacyActionListHarness.hostSelector} .mat-list-item`; }
187
- /**
188
- * Gets a `HarnessPredicate` that can be used to search for a `MatActionListItemHarness` that
189
- * meets certain criteria.
190
- * @param options Options for filtering which action list item instances are considered a match.
191
- * @return a `HarnessPredicate` configured with the given options.
192
- */
193
- static with(options = {}) {
194
- return getListItemPredicate(MatLegacyActionListItemHarness, options);
195
- }
196
- /** Clicks on the action list item. */
197
- async click() {
198
- return (await this.host()).click();
199
- }
200
- /** Focuses the action list item. */
201
- async focus() {
202
- return (await this.host()).focus();
203
- }
204
- /** Blurs the action list item. */
205
- async blur() {
206
- return (await this.host()).blur();
207
- }
208
- /** Whether the action list item is focused. */
209
- async isFocused() {
210
- return (await this.host()).isFocused();
211
- }
212
- }
213
-
214
- /**
215
- * Harness for interacting with a standard mat-list in tests.
216
- * @deprecated Use `MatListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
217
- * @breaking-change 17.0.0
218
- */
219
- class MatLegacyListHarness extends MatLegacyListHarnessBase {
220
- constructor() {
221
- super(...arguments);
222
- this._itemHarness = MatLegacyListItemHarness;
223
- }
224
- /** The selector for the host element of a `MatList` instance. */
225
- static { this.hostSelector = '.mat-list:not(mat-action-list)'; }
226
- /**
227
- * Gets a `HarnessPredicate` that can be used to search for a `MatListHarness` that meets certain
228
- * criteria.
229
- * @param options Options for filtering which list instances are considered a match.
230
- * @return a `HarnessPredicate` configured with the given options.
231
- */
232
- static with(options = {}) {
233
- return new HarnessPredicate(MatLegacyListHarness, options);
234
- }
235
- }
236
- /**
237
- * Harness for interacting with a list item.
238
- * @deprecated Use `MatListItemHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
239
- * @breaking-change 17.0.0
240
- */
241
- class MatLegacyListItemHarness extends MatLegacyListItemHarnessBase {
242
- /** The selector for the host element of a `MatListItem` instance. */
243
- static { this.hostSelector = `${MatLegacyListHarness.hostSelector} .mat-list-item`; }
244
- /**
245
- * Gets a `HarnessPredicate` that can be used to search for a `MatListItemHarness` that meets
246
- * certain criteria.
247
- * @param options Options for filtering which list item instances are considered a match.
248
- * @return a `HarnessPredicate` configured with the given options.
249
- */
250
- static with(options = {}) {
251
- return getListItemPredicate(MatLegacyListItemHarness, options);
252
- }
253
- }
254
-
255
- /**
256
- * Harness for interacting with a standard mat-nav-list in tests.
257
- * @deprecated Use `MatNavListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
258
- * @breaking-change 17.0.0
259
- */
260
- class MatLegacyNavListHarness extends MatLegacyListHarnessBase {
261
- constructor() {
262
- super(...arguments);
263
- this._itemHarness = MatLegacyNavListItemHarness;
264
- }
265
- /** The selector for the host element of a `MatNavList` instance. */
266
- static { this.hostSelector = '.mat-nav-list'; }
267
- /**
268
- * Gets a `HarnessPredicate` that can be used to search for a `MatNavListHarness` that meets
269
- * certain criteria.
270
- * @param options Options for filtering which nav list instances are considered a match.
271
- * @return a `HarnessPredicate` configured with the given options.
272
- */
273
- static with(options = {}) {
274
- return new HarnessPredicate(MatLegacyNavListHarness, options);
275
- }
276
- }
277
- /**
278
- * Harness for interacting with a nav list item.
279
- * @deprecated Use `MatNavListItemHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
280
- * @breaking-change 17.0.0
281
- */
282
- class MatLegacyNavListItemHarness extends MatLegacyListItemHarnessBase {
283
- /** The selector for the host element of a `MatListItem` instance. */
284
- static { this.hostSelector = `${MatLegacyNavListHarness.hostSelector} .mat-list-item`; }
285
- /**
286
- * Gets a `HarnessPredicate` that can be used to search for a `MatNavListItemHarness` that
287
- * meets certain criteria.
288
- * @param options Options for filtering which nav list item instances are considered a match.
289
- * @return a `HarnessPredicate` configured with the given options.
290
- */
291
- static with(options = {}) {
292
- return getListItemPredicate(MatLegacyNavListItemHarness, options).addOption('href', options.href, async (harness, href) => HarnessPredicate.stringMatches(harness.getHref(), href));
293
- }
294
- /** Gets the href for this nav list item. */
295
- async getHref() {
296
- return (await this.host()).getAttribute('href');
297
- }
298
- /** Clicks on the nav list item. */
299
- async click() {
300
- return (await this.host()).click();
301
- }
302
- /** Focuses the nav list item. */
303
- async focus() {
304
- return (await this.host()).focus();
305
- }
306
- /** Blurs the nav list item. */
307
- async blur() {
308
- return (await this.host()).blur();
309
- }
310
- /** Whether the nav list item is focused. */
311
- async isFocused() {
312
- return (await this.host()).isFocused();
313
- }
314
- }
315
-
316
- /**
317
- * Harness for interacting with a standard mat-selection-list in tests.
318
- * @deprecated Use `MatSelectionListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
319
- * @breaking-change 17.0.0
320
- */
321
- class MatLegacySelectionListHarness extends MatLegacyListHarnessBase {
322
- constructor() {
323
- super(...arguments);
324
- this._itemHarness = MatLegacyListOptionHarness;
325
- }
326
- /** The selector for the host element of a `MatSelectionList` instance. */
327
- static { this.hostSelector = '.mat-selection-list'; }
328
- /**
329
- * Gets a `HarnessPredicate` that can be used to search for a `MatSelectionListHarness` that meets
330
- * certain criteria.
331
- * @param options Options for filtering which selection list instances are considered a match.
332
- * @return a `HarnessPredicate` configured with the given options.
333
- */
334
- static with(options = {}) {
335
- return new HarnessPredicate(MatLegacySelectionListHarness, options);
336
- }
337
- /** Whether the selection list is disabled. */
338
- async isDisabled() {
339
- return (await (await this.host()).getAttribute('aria-disabled')) === 'true';
340
- }
341
- /**
342
- * Selects all items matching any of the given filters.
343
- * @param filters Filters that specify which items should be selected.
344
- */
345
- async selectItems(...filters) {
346
- const items = await this._getItems(filters);
347
- await parallel(() => items.map(item => item.select()));
348
- }
349
- /**
350
- * Deselects all items matching any of the given filters.
351
- * @param filters Filters that specify which items should be deselected.
352
- */
353
- async deselectItems(...filters) {
354
- const items = await this._getItems(filters);
355
- await parallel(() => items.map(item => item.deselect()));
356
- }
357
- /** Gets all items matching the given list of filters. */
358
- async _getItems(filters) {
359
- if (!filters.length) {
360
- return this.getItems();
361
- }
362
- const matches = await parallel(() => {
363
- return filters.map(filter => this.locatorForAll(MatLegacyListOptionHarness.with(filter))());
364
- });
365
- return matches.reduce((result, current) => [...result, ...current], []);
366
- }
367
- }
368
- /**
369
- * Harness for interacting with a list option.
370
- * @deprecated Use `MatListOptionHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
371
- * @breaking-change 17.0.0
372
- */
373
- class MatLegacyListOptionHarness extends MatLegacyListItemHarnessBase {
374
- constructor() {
375
- super(...arguments);
376
- this._itemContent = this.locatorFor('.mat-list-item-content');
377
- }
378
- /** The selector for the host element of a `MatListOption` instance. */
379
- static { this.hostSelector = '.mat-list-option'; }
380
- /**
381
- * Gets a `HarnessPredicate` that can be used to search for a `MatListOptionHarness` that
382
- * meets certain criteria.
383
- * @param options Options for filtering which list option instances are considered a match.
384
- * @return a `HarnessPredicate` configured with the given options.
385
- */
386
- static with(options = {}) {
387
- return getListItemPredicate(MatLegacyListOptionHarness, options).addOption('is selected', options.selected, async (harness, selected) => (await harness.isSelected()) === selected);
388
- }
389
- /** Gets the position of the checkbox relative to the list option content. */
390
- async getCheckboxPosition() {
391
- return (await (await this._itemContent()).hasClass('mat-list-item-content-reverse'))
392
- ? 'after'
393
- : 'before';
394
- }
395
- /** Whether the list option is selected. */
396
- async isSelected() {
397
- return (await (await this.host()).getAttribute('aria-selected')) === 'true';
398
- }
399
- /** Focuses the list option. */
400
- async focus() {
401
- return (await this.host()).focus();
402
- }
403
- /** Blurs the list option. */
404
- async blur() {
405
- return (await this.host()).blur();
406
- }
407
- /** Whether the list option is focused. */
408
- async isFocused() {
409
- return (await this.host()).isFocused();
410
- }
411
- /** Toggles the checked state of the checkbox. */
412
- async toggle() {
413
- return (await this.host()).click();
414
- }
415
- /**
416
- * Puts the list option in a checked state by toggling it if it is currently unchecked, or doing
417
- * nothing if it is already checked.
418
- */
419
- async select() {
420
- if (!(await this.isSelected())) {
421
- return this.toggle();
422
- }
423
- }
424
- /**
425
- * Puts the list option in an unchecked state by toggling it if it is currently checked, or doing
426
- * nothing if it is already unchecked.
427
- */
428
- async deselect() {
429
- if (await this.isSelected()) {
430
- return this.toggle();
431
- }
432
- }
433
- }
434
-
435
- export { MatLegacyActionListHarness, MatLegacyActionListItemHarness, MatLegacyListHarness, MatLegacyListItemHarness, MatLegacyListOptionHarness, MatLegacyNavListHarness, MatLegacyNavListItemHarness, MatLegacySelectionListHarness };
436
- //# sourceMappingURL=testing.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testing.mjs","sources":["../../../../../../../src/material/legacy-list/testing/list-item-harness-base.ts","../../../../../../../src/material/legacy-list/testing/list-harness-base.ts","../../../../../../../src/material/legacy-list/testing/action-list-harness.ts","../../../../../../../src/material/legacy-list/testing/list-harness.ts","../../../../../../../src/material/legacy-list/testing/nav-list-harness.ts","../../../../../../../src/material/legacy-list/testing/selection-list-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n ContentContainerComponentHarness,\n parallel,\n} from '@angular/cdk/testing';\nimport {\n LegacyBaseListItemHarnessFilters,\n LegacySubheaderHarnessFilters,\n} from './list-harness-filters';\n\nconst iconSelector = '.mat-list-icon';\nconst avatarSelector = '.mat-list-avatar';\n\n/**\n * Gets a `HarnessPredicate` that applies the given `BaseListItemHarnessFilters` to the given\n * list item harness.\n * @template H The type of list item harness to create a predicate for.\n * @param harnessType A constructor for a list item harness.\n * @param options An instance of `BaseListItemHarnessFilters` to apply.\n * @return A `HarnessPredicate` for the given harness type with the given options applied.\n * @deprecated Use `getListItemPredicate` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport function getListItemPredicate<H extends MatLegacyListItemHarnessBase>(\n harnessType: ComponentHarnessConstructor<H>,\n options: LegacyBaseListItemHarnessFilters,\n): HarnessPredicate<H> {\n return new HarnessPredicate(harnessType, options).addOption(\n 'text',\n options.text,\n (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text),\n );\n}\n\n/**\n * Harness for interacting with a list subheader.\n * @deprecated Use `MatSubheaderHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacySubheaderHarness extends ComponentHarness {\n static hostSelector = '.mat-subheader';\n\n static with(\n options: LegacySubheaderHarnessFilters = {},\n ): HarnessPredicate<MatLegacySubheaderHarness> {\n return new HarnessPredicate(MatLegacySubheaderHarness, options).addOption(\n 'text',\n options.text,\n (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text),\n );\n }\n\n /** Gets the full text content of the list item (including text from any font icons). */\n async getText(): Promise<string> {\n return (await this.host()).text();\n }\n}\n\n/**\n * Selectors for the various list item sections that may contain user content.\n * @deprecated Use `enum` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport const enum MatLegacyListItemSection {\n CONTENT = '.mat-list-item-content',\n // TODO(mmalerba): consider adding sections for leading/trailing icons.\n}\n\n/**\n * Shared behavior among the harnesses for the various `MatListItem` flavors.\n * @docs-private\n * @deprecated Use `class` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport abstract class MatLegacyListItemHarnessBase extends ContentContainerComponentHarness<MatLegacyListItemSection> {\n private _lines = this.locatorForAll('.mat-line');\n private _avatar = this.locatorForOptional(avatarSelector);\n private _icon = this.locatorForOptional(iconSelector);\n\n /** Gets the full text content of the list item. */\n async getText(): Promise<string> {\n return (await this.host()).text({exclude: `${iconSelector}, ${avatarSelector}`});\n }\n\n /** Gets the lines of text (`mat-line` elements) in this nav list item. */\n async getLinesText(): Promise<string[]> {\n const lines = await this._lines();\n return parallel(() => lines.map(l => l.text()));\n }\n\n /** Whether this list item has an avatar. */\n async hasAvatar(): Promise<boolean> {\n return !!(await this._avatar());\n }\n\n /** Whether this list item has an icon. */\n async hasIcon(): Promise<boolean> {\n return !!(await this._icon());\n }\n\n /** Whether this list option is disabled. */\n async isDisabled(): Promise<boolean> {\n return (await this.host()).hasClass('mat-list-item-disabled');\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n parallel,\n} from '@angular/cdk/testing';\nimport {DividerHarnessFilters, MatDividerHarness} from '@angular/material/divider/testing';\nimport {\n LegacyBaseListItemHarnessFilters,\n LegacySubheaderHarnessFilters,\n} from './list-harness-filters';\nimport {MatLegacySubheaderHarness} from './list-item-harness-base';\n\n/**\n * Represents a section of a list falling under a specific header.\n * @deprecated Use `ListSection` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport interface ListSection<I> {\n /** The heading for this list section. `undefined` if there is no heading. */\n heading?: string;\n\n /** The items in this list section. */\n items: I[];\n}\n\n/**\n * Shared behavior among the harnesses for the various `MatList` flavors.\n * @template T A constructor type for a list item harness type used by this list harness.\n * @template C The list item harness type that `T` constructs.\n * @template F The filter type used filter list item harness of type `C`.\n * @docs-private\n * @deprecated Use `class` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport abstract class MatLegacyListHarnessBase<\n T extends ComponentHarnessConstructor<C> & {with: (options?: F) => HarnessPredicate<C>},\n C extends ComponentHarness,\n F extends LegacyBaseListItemHarnessFilters,\n> extends ComponentHarness {\n protected _itemHarness: T;\n\n /**\n * Gets a list of harnesses representing the items in this list.\n * @param filters Optional filters used to narrow which harnesses are included\n * @return The list of items matching the given filters.\n */\n async getItems(filters?: F): Promise<C[]> {\n return this.locatorForAll(this._itemHarness.with(filters))();\n }\n\n /**\n * Gets a list of `ListSection` representing the list items grouped by subheaders. If the list has\n * no subheaders it is represented as a single `ListSection` with an undefined `heading` property.\n * @param filters Optional filters used to narrow which list item harnesses are included\n * @return The list of items matching the given filters, grouped into sections by subheader.\n */\n async getItemsGroupedBySubheader(filters?: F): Promise<ListSection<C>[]> {\n type Section = {items: C[]; heading?: Promise<string>};\n const listSections: Section[] = [];\n let currentSection: Section = {items: []};\n const itemsAndSubheaders = await this.getItemsWithSubheadersAndDividers({\n item: filters,\n divider: false,\n });\n for (const itemOrSubheader of itemsAndSubheaders) {\n if (itemOrSubheader instanceof MatLegacySubheaderHarness) {\n if (currentSection.heading !== undefined || currentSection.items.length) {\n listSections.push(currentSection);\n }\n currentSection = {heading: itemOrSubheader.getText(), items: []};\n } else {\n currentSection.items.push(itemOrSubheader);\n }\n }\n if (\n currentSection.heading !== undefined ||\n currentSection.items.length ||\n !listSections.length\n ) {\n listSections.push(currentSection);\n }\n\n // Concurrently wait for all sections to resolve their heading if present.\n return parallel(() =>\n listSections.map(async s => ({items: s.items, heading: await s.heading})),\n );\n }\n\n /**\n * Gets a list of sub-lists representing the list items grouped by dividers. If the list has no\n * dividers it is represented as a list with a single sub-list.\n * @param filters Optional filters used to narrow which list item harnesses are included\n * @return The list of items matching the given filters, grouped into sub-lists by divider.\n */\n async getItemsGroupedByDividers(filters?: F): Promise<C[][]> {\n const listSections: C[][] = [[]];\n const itemsAndDividers = await this.getItemsWithSubheadersAndDividers({\n item: filters,\n subheader: false,\n });\n for (const itemOrDivider of itemsAndDividers) {\n if (itemOrDivider instanceof MatDividerHarness) {\n listSections.push([]);\n } else {\n listSections[listSections.length - 1].push(itemOrDivider);\n }\n }\n return listSections;\n }\n\n /**\n * Gets a list of harnesses representing all of the items, subheaders, and dividers\n * (in the order they appear in the list). Use `instanceof` to check which type of harness a given\n * item is.\n * @param filters Optional filters used to narrow which list items, subheaders, and dividers are\n * included. A value of `false` for the `item`, `subheader`, or `divider` properties indicates\n * that the respective harness type should be omitted completely.\n * @return The list of harnesses representing the items, subheaders, and dividers matching the\n * given filters.\n */\n getItemsWithSubheadersAndDividers(filters: {\n item: false;\n subheader: false;\n divider: false;\n }): Promise<[]>;\n getItemsWithSubheadersAndDividers(filters: {\n item?: F | false;\n subheader: false;\n divider: false;\n }): Promise<C[]>;\n getItemsWithSubheadersAndDividers(filters: {\n item: false;\n subheader?: LegacySubheaderHarnessFilters | false;\n divider: false;\n }): Promise<MatLegacySubheaderHarness[]>;\n getItemsWithSubheadersAndDividers(filters: {\n item: false;\n subheader: false;\n divider?: DividerHarnessFilters | false;\n }): Promise<MatDividerHarness[]>;\n getItemsWithSubheadersAndDividers(filters: {\n item?: F | false;\n subheader?: LegacySubheaderHarnessFilters | false;\n divider: false;\n }): Promise<(C | MatLegacySubheaderHarness)[]>;\n getItemsWithSubheadersAndDividers(filters: {\n item?: F | false;\n subheader: false;\n divider?: false | DividerHarnessFilters;\n }): Promise<(C | MatDividerHarness)[]>;\n getItemsWithSubheadersAndDividers(filters: {\n item: false;\n subheader?: false | LegacySubheaderHarnessFilters;\n divider?: false | DividerHarnessFilters;\n }): Promise<(MatLegacySubheaderHarness | MatDividerHarness)[]>;\n getItemsWithSubheadersAndDividers(filters?: {\n item?: F | false;\n subheader?: LegacySubheaderHarnessFilters | false;\n divider?: DividerHarnessFilters | false;\n }): Promise<(C | MatLegacySubheaderHarness | MatDividerHarness)[]>;\n async getItemsWithSubheadersAndDividers(\n filters: {\n item?: F | false;\n subheader?: LegacySubheaderHarnessFilters | false;\n divider?: DividerHarnessFilters | false;\n } = {},\n ): Promise<(C | MatLegacySubheaderHarness | MatDividerHarness)[]> {\n const query = [];\n if (filters.item !== false) {\n query.push(this._itemHarness.with(filters.item || ({} as F)));\n }\n if (filters.subheader !== false) {\n query.push(MatLegacySubheaderHarness.with(filters.subheader));\n }\n if (filters.divider !== false) {\n query.push(MatDividerHarness.with(filters.divider));\n }\n return this.locatorForAll(...query)();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {HarnessPredicate} from '@angular/cdk/testing';\nimport {MatLegacyListHarnessBase} from './list-harness-base';\nimport {\n LegacyActionListHarnessFilters,\n LegacyActionListItemHarnessFilters,\n} from './list-harness-filters';\nimport {getListItemPredicate, MatLegacyListItemHarnessBase} from './list-item-harness-base';\n\n/**\n * Harness for interacting with a standard mat-action-list in tests.\n * @deprecated Use `MatActionListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyActionListHarness extends MatLegacyListHarnessBase<\n typeof MatLegacyActionListItemHarness,\n MatLegacyActionListItemHarness,\n LegacyActionListItemHarnessFilters\n> {\n /** The selector for the host element of a `MatActionList` instance. */\n static hostSelector = 'mat-action-list.mat-list';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatActionListHarness` that meets\n * certain criteria.\n * @param options Options for filtering which action list instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacyActionListHarnessFilters = {},\n ): HarnessPredicate<MatLegacyActionListHarness> {\n return new HarnessPredicate(MatLegacyActionListHarness, options);\n }\n\n override _itemHarness = MatLegacyActionListItemHarness;\n}\n\n/**\n * Harness for interacting with an action list item.\n * @deprecated Use `MatActionListItemHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyActionListItemHarness extends MatLegacyListItemHarnessBase {\n /** The selector for the host element of a `MatListItem` instance. */\n static hostSelector = `${MatLegacyActionListHarness.hostSelector} .mat-list-item`;\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatActionListItemHarness` that\n * meets certain criteria.\n * @param options Options for filtering which action list item instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacyActionListItemHarnessFilters = {},\n ): HarnessPredicate<MatLegacyActionListItemHarness> {\n return getListItemPredicate(MatLegacyActionListItemHarness, options);\n }\n\n /** Clicks on the action list item. */\n async click(): Promise<void> {\n return (await this.host()).click();\n }\n\n /** Focuses the action list item. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the action list item. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the action list item is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {HarnessPredicate} from '@angular/cdk/testing';\nimport {MatLegacyListHarnessBase} from './list-harness-base';\nimport {LegacyListHarnessFilters, LegacyListItemHarnessFilters} from './list-harness-filters';\nimport {getListItemPredicate, MatLegacyListItemHarnessBase} from './list-item-harness-base';\n\n/**\n * Harness for interacting with a standard mat-list in tests.\n * @deprecated Use `MatListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyListHarness extends MatLegacyListHarnessBase<\n typeof MatLegacyListItemHarness,\n MatLegacyListItemHarness,\n LegacyListItemHarnessFilters\n> {\n /** The selector for the host element of a `MatList` instance. */\n static hostSelector = '.mat-list:not(mat-action-list)';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatListHarness` that meets certain\n * criteria.\n * @param options Options for filtering which list instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: LegacyListHarnessFilters = {}): HarnessPredicate<MatLegacyListHarness> {\n return new HarnessPredicate(MatLegacyListHarness, options);\n }\n\n override _itemHarness = MatLegacyListItemHarness;\n}\n\n/**\n * Harness for interacting with a list item.\n * @deprecated Use `MatListItemHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyListItemHarness extends MatLegacyListItemHarnessBase {\n /** The selector for the host element of a `MatListItem` instance. */\n static hostSelector = `${MatLegacyListHarness.hostSelector} .mat-list-item`;\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatListItemHarness` that meets\n * certain criteria.\n * @param options Options for filtering which list item instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacyListItemHarnessFilters = {},\n ): HarnessPredicate<MatLegacyListItemHarness> {\n return getListItemPredicate(MatLegacyListItemHarness, options);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {HarnessPredicate} from '@angular/cdk/testing';\nimport {MatLegacyListHarnessBase} from './list-harness-base';\nimport {LegacyNavListHarnessFilters, LegacyNavListItemHarnessFilters} from './list-harness-filters';\nimport {getListItemPredicate, MatLegacyListItemHarnessBase} from './list-item-harness-base';\n\n/**\n * Harness for interacting with a standard mat-nav-list in tests.\n * @deprecated Use `MatNavListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyNavListHarness extends MatLegacyListHarnessBase<\n typeof MatLegacyNavListItemHarness,\n MatLegacyNavListItemHarness,\n LegacyNavListItemHarnessFilters\n> {\n /** The selector for the host element of a `MatNavList` instance. */\n static hostSelector = '.mat-nav-list';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatNavListHarness` that meets\n * certain criteria.\n * @param options Options for filtering which nav list instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacyNavListHarnessFilters = {},\n ): HarnessPredicate<MatLegacyNavListHarness> {\n return new HarnessPredicate(MatLegacyNavListHarness, options);\n }\n\n override _itemHarness = MatLegacyNavListItemHarness;\n}\n\n/**\n * Harness for interacting with a nav list item.\n * @deprecated Use `MatNavListItemHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyNavListItemHarness extends MatLegacyListItemHarnessBase {\n /** The selector for the host element of a `MatListItem` instance. */\n static hostSelector = `${MatLegacyNavListHarness.hostSelector} .mat-list-item`;\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatNavListItemHarness` that\n * meets certain criteria.\n * @param options Options for filtering which nav list item instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacyNavListItemHarnessFilters = {},\n ): HarnessPredicate<MatLegacyNavListItemHarness> {\n return getListItemPredicate(MatLegacyNavListItemHarness, options).addOption(\n 'href',\n options.href,\n async (harness, href) => HarnessPredicate.stringMatches(harness.getHref(), href),\n );\n }\n\n /** Gets the href for this nav list item. */\n async getHref(): Promise<string | null> {\n return (await this.host()).getAttribute('href');\n }\n\n /** Clicks on the nav list item. */\n async click(): Promise<void> {\n return (await this.host()).click();\n }\n\n /** Focuses the nav list item. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the nav list item. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the nav list item is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {HarnessPredicate, parallel} from '@angular/cdk/testing';\nimport {MatLegacyListOptionCheckboxPosition} from '@angular/material/legacy-list';\nimport {MatLegacyListHarnessBase} from './list-harness-base';\nimport {\n LegacyListItemHarnessFilters,\n LegacyListOptionHarnessFilters,\n LegacySelectionListHarnessFilters,\n} from './list-harness-filters';\nimport {getListItemPredicate, MatLegacyListItemHarnessBase} from './list-item-harness-base';\n\n/**\n * Harness for interacting with a standard mat-selection-list in tests.\n * @deprecated Use `MatSelectionListHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacySelectionListHarness extends MatLegacyListHarnessBase<\n typeof MatLegacyListOptionHarness,\n MatLegacyListOptionHarness,\n LegacyListOptionHarnessFilters\n> {\n /** The selector for the host element of a `MatSelectionList` instance. */\n static hostSelector = '.mat-selection-list';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatSelectionListHarness` that meets\n * certain criteria.\n * @param options Options for filtering which selection list instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacySelectionListHarnessFilters = {},\n ): HarnessPredicate<MatLegacySelectionListHarness> {\n return new HarnessPredicate(MatLegacySelectionListHarness, options);\n }\n\n override _itemHarness = MatLegacyListOptionHarness;\n\n /** Whether the selection list is disabled. */\n async isDisabled(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-disabled')) === 'true';\n }\n\n /**\n * Selects all items matching any of the given filters.\n * @param filters Filters that specify which items should be selected.\n */\n async selectItems(...filters: LegacyListOptionHarnessFilters[]): Promise<void> {\n const items = await this._getItems(filters);\n await parallel(() => items.map(item => item.select()));\n }\n\n /**\n * Deselects all items matching any of the given filters.\n * @param filters Filters that specify which items should be deselected.\n */\n async deselectItems(...filters: LegacyListItemHarnessFilters[]): Promise<void> {\n const items = await this._getItems(filters);\n await parallel(() => items.map(item => item.deselect()));\n }\n\n /** Gets all items matching the given list of filters. */\n private async _getItems(\n filters: LegacyListOptionHarnessFilters[],\n ): Promise<MatLegacyListOptionHarness[]> {\n if (!filters.length) {\n return this.getItems();\n }\n const matches = await parallel(() => {\n return filters.map(filter => this.locatorForAll(MatLegacyListOptionHarness.with(filter))());\n });\n return matches.reduce((result, current) => [...result, ...current], []);\n }\n}\n\n/**\n * Harness for interacting with a list option.\n * @deprecated Use `MatListOptionHarness` from `@angular/material/list/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacyListOptionHarness extends MatLegacyListItemHarnessBase {\n /** The selector for the host element of a `MatListOption` instance. */\n static hostSelector = '.mat-list-option';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatListOptionHarness` that\n * meets certain criteria.\n * @param options Options for filtering which list option instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(\n options: LegacyListOptionHarnessFilters = {},\n ): HarnessPredicate<MatLegacyListOptionHarness> {\n return getListItemPredicate(MatLegacyListOptionHarness, options).addOption(\n 'is selected',\n options.selected,\n async (harness, selected) => (await harness.isSelected()) === selected,\n );\n }\n\n private _itemContent = this.locatorFor('.mat-list-item-content');\n\n /** Gets the position of the checkbox relative to the list option content. */\n async getCheckboxPosition(): Promise<MatLegacyListOptionCheckboxPosition> {\n return (await (await this._itemContent()).hasClass('mat-list-item-content-reverse'))\n ? 'after'\n : 'before';\n }\n\n /** Whether the list option is selected. */\n async isSelected(): Promise<boolean> {\n return (await (await this.host()).getAttribute('aria-selected')) === 'true';\n }\n\n /** Focuses the list option. */\n async focus(): Promise<void> {\n return (await this.host()).focus();\n }\n\n /** Blurs the list option. */\n async blur(): Promise<void> {\n return (await this.host()).blur();\n }\n\n /** Whether the list option is focused. */\n async isFocused(): Promise<boolean> {\n return (await this.host()).isFocused();\n }\n\n /** Toggles the checked state of the checkbox. */\n async toggle() {\n return (await this.host()).click();\n }\n\n /**\n * Puts the list option in a checked state by toggling it if it is currently unchecked, or doing\n * nothing if it is already checked.\n */\n async select() {\n if (!(await this.isSelected())) {\n return this.toggle();\n }\n }\n\n /**\n * Puts the list option in an unchecked state by toggling it if it is currently checked, or doing\n * nothing if it is already unchecked.\n */\n async deselect() {\n if (await this.isSelected()) {\n return this.toggle();\n }\n }\n}\n"],"names":[],"mappings":";;;AAoBA,MAAM,YAAY,GAAG,gBAAgB,CAAC;AACtC,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAE1C;;;;;;;;;AASG;AACa,SAAA,oBAAoB,CAClC,WAA2C,EAC3C,OAAyC,EAAA;AAEzC,IAAA,OAAO,IAAI,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CACzD,MAAM,EACN,OAAO,CAAC,IAAI,EACZ,CAAC,OAAO,EAAE,IAAI,KAAK,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAC3E,CAAC;AACJ,CAAC;AAED;;;;AAIG;AACG,MAAO,yBAA0B,SAAQ,gBAAgB,CAAA;aACtD,IAAY,CAAA,YAAA,GAAG,gBAAgB,CAAC,EAAA;AAEvC,IAAA,OAAO,IAAI,CACT,OAAA,GAAyC,EAAE,EAAA;AAE3C,QAAA,OAAO,IAAI,gBAAgB,CAAC,yBAAyB,EAA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