@angular/material 10.0.0-rc.3 → 10.1.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 (627) hide show
  1. package/_theming.scss +17 -17
  2. package/autocomplete/index.metadata.json +1 -1
  3. package/autocomplete/testing/autocomplete-harness.d.ts +2 -0
  4. package/bundles/material-autocomplete-testing.umd.js +11 -0
  5. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  6. package/bundles/material-autocomplete-testing.umd.min.js +2 -2
  7. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  8. package/bundles/material-autocomplete.umd.js +3 -1
  9. package/bundles/material-autocomplete.umd.js.map +1 -1
  10. package/bundles/material-autocomplete.umd.min.js +5 -5
  11. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  12. package/bundles/material-badge-testing.umd.min.js +1 -1
  13. package/bundles/material-badge-testing.umd.min.js.map +1 -1
  14. package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
  15. package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
  16. package/bundles/material-button-testing.umd.js +11 -0
  17. package/bundles/material-button-testing.umd.js.map +1 -1
  18. package/bundles/material-button-testing.umd.min.js +2 -2
  19. package/bundles/material-button-testing.umd.min.js.map +1 -1
  20. package/bundles/material-button-toggle-testing.umd.js +11 -0
  21. package/bundles/material-button-toggle-testing.umd.js.map +1 -1
  22. package/bundles/material-button-toggle-testing.umd.min.js +3 -3
  23. package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
  24. package/bundles/material-button-toggle.umd.js +12 -3
  25. package/bundles/material-button-toggle.umd.js.map +1 -1
  26. package/bundles/material-button-toggle.umd.min.js +2 -2
  27. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  28. package/bundles/material-button.umd.js +7 -2
  29. package/bundles/material-button.umd.js.map +1 -1
  30. package/bundles/material-button.umd.min.js +4 -4
  31. package/bundles/material-button.umd.min.js.map +1 -1
  32. package/bundles/material-card-testing.umd.js +335 -0
  33. package/bundles/material-card-testing.umd.js.map +1 -0
  34. package/bundles/material-card-testing.umd.min.js +44 -0
  35. package/bundles/material-card-testing.umd.min.js.map +1 -0
  36. package/bundles/material-checkbox-testing.umd.js +11 -0
  37. package/bundles/material-checkbox-testing.umd.js.map +1 -1
  38. package/bundles/material-checkbox-testing.umd.min.js +3 -3
  39. package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
  40. package/bundles/material-checkbox.umd.js.map +1 -1
  41. package/bundles/material-chips.umd.js +36 -12
  42. package/bundles/material-chips.umd.js.map +1 -1
  43. package/bundles/material-chips.umd.min.js +4 -4
  44. package/bundles/material-chips.umd.min.js.map +1 -1
  45. package/bundles/material-core-testing.umd.min.js +1 -1
  46. package/bundles/material-core-testing.umd.min.js.map +1 -1
  47. package/bundles/material-core.umd.js +11 -3
  48. package/bundles/material-core.umd.js.map +1 -1
  49. package/bundles/material-core.umd.min.js +11 -11
  50. package/bundles/material-core.umd.min.js.map +1 -1
  51. package/bundles/material-datepicker.umd.js +20 -11
  52. package/bundles/material-datepicker.umd.js.map +1 -1
  53. package/bundles/material-datepicker.umd.min.js +5 -5
  54. package/bundles/material-datepicker.umd.min.js.map +1 -1
  55. package/bundles/material-dialog-testing.umd.min.js +1 -1
  56. package/bundles/material-dialog-testing.umd.min.js.map +1 -1
  57. package/bundles/material-dialog.umd.js +45 -8
  58. package/bundles/material-dialog.umd.js.map +1 -1
  59. package/bundles/material-dialog.umd.min.js +14 -7
  60. package/bundles/material-dialog.umd.min.js.map +1 -1
  61. package/bundles/material-divider-testing.umd.min.js +1 -1
  62. package/bundles/material-divider-testing.umd.min.js.map +1 -1
  63. package/bundles/material-expansion-testing.umd.js +11 -0
  64. package/bundles/material-expansion-testing.umd.js.map +1 -1
  65. package/bundles/material-expansion-testing.umd.min.js +3 -3
  66. package/bundles/material-expansion-testing.umd.min.js.map +1 -1
  67. package/bundles/material-form-field-testing.umd.js +32 -0
  68. package/bundles/material-form-field-testing.umd.js.map +1 -1
  69. package/bundles/material-form-field-testing.umd.min.js +4 -4
  70. package/bundles/material-form-field-testing.umd.min.js.map +1 -1
  71. package/bundles/material-form-field.umd.js +47 -21
  72. package/bundles/material-form-field.umd.js.map +1 -1
  73. package/bundles/material-form-field.umd.min.js +5 -5
  74. package/bundles/material-form-field.umd.min.js.map +1 -1
  75. package/bundles/material-grid-list-testing.umd.min.js +1 -1
  76. package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
  77. package/bundles/material-grid-list.umd.js +2 -2
  78. package/bundles/material-grid-list.umd.js.map +1 -1
  79. package/bundles/material-grid-list.umd.min.js +2 -2
  80. package/bundles/material-grid-list.umd.min.js.map +1 -1
  81. package/bundles/material-input-testing.umd.js +23 -6
  82. package/bundles/material-input-testing.umd.js.map +1 -1
  83. package/bundles/material-input-testing.umd.min.js +3 -3
  84. package/bundles/material-input-testing.umd.min.js.map +1 -1
  85. package/bundles/material-input.umd.js +28 -3
  86. package/bundles/material-input.umd.js.map +1 -1
  87. package/bundles/material-input.umd.min.js +3 -3
  88. package/bundles/material-input.umd.min.js.map +1 -1
  89. package/bundles/material-list-testing.umd.js +33 -0
  90. package/bundles/material-list-testing.umd.js.map +1 -1
  91. package/bundles/material-list-testing.umd.min.js +2 -2
  92. package/bundles/material-list-testing.umd.min.js.map +1 -1
  93. package/bundles/material-list.umd.js +3 -3
  94. package/bundles/material-list.umd.min.js +1 -1
  95. package/bundles/material-list.umd.min.js.map +1 -1
  96. package/bundles/material-menu-testing.umd.js +22 -0
  97. package/bundles/material-menu-testing.umd.js.map +1 -1
  98. package/bundles/material-menu-testing.umd.min.js +2 -2
  99. package/bundles/material-menu-testing.umd.min.js.map +1 -1
  100. package/bundles/material-menu.umd.js +13 -2
  101. package/bundles/material-menu.umd.js.map +1 -1
  102. package/bundles/material-menu.umd.min.js +4 -4
  103. package/bundles/material-menu.umd.min.js.map +1 -1
  104. package/bundles/material-paginator-testing.umd.min.js +1 -1
  105. package/bundles/material-paginator-testing.umd.min.js.map +1 -1
  106. package/bundles/material-progress-bar-testing.umd.min.js +1 -1
  107. package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
  108. package/bundles/material-progress-spinner-testing.umd.js +1 -1
  109. package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
  110. package/bundles/material-progress-spinner-testing.umd.min.js +2 -2
  111. package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
  112. package/bundles/material-progress-spinner.umd.js +2 -2
  113. package/bundles/material-progress-spinner.umd.min.js +3 -3
  114. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  115. package/bundles/material-radio-testing.umd.js +11 -0
  116. package/bundles/material-radio-testing.umd.js.map +1 -1
  117. package/bundles/material-radio-testing.umd.min.js +3 -3
  118. package/bundles/material-radio-testing.umd.min.js.map +1 -1
  119. package/bundles/material-radio.umd.js +15 -5
  120. package/bundles/material-radio.umd.js.map +1 -1
  121. package/bundles/material-radio.umd.min.js +2 -2
  122. package/bundles/material-radio.umd.min.js.map +1 -1
  123. package/bundles/material-select-testing.umd.js +11 -0
  124. package/bundles/material-select-testing.umd.js.map +1 -1
  125. package/bundles/material-select-testing.umd.min.js +2 -2
  126. package/bundles/material-select-testing.umd.min.js.map +1 -1
  127. package/bundles/material-select.umd.js +11 -3
  128. package/bundles/material-select.umd.js.map +1 -1
  129. package/bundles/material-select.umd.min.js +4 -4
  130. package/bundles/material-select.umd.min.js.map +1 -1
  131. package/bundles/material-sidenav-testing.umd.min.js +1 -1
  132. package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
  133. package/bundles/material-sidenav.umd.js +41 -17
  134. package/bundles/material-sidenav.umd.js.map +1 -1
  135. package/bundles/material-sidenav.umd.min.js +2 -2
  136. package/bundles/material-sidenav.umd.min.js.map +1 -1
  137. package/bundles/material-slide-toggle-testing.umd.js +11 -0
  138. package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
  139. package/bundles/material-slide-toggle-testing.umd.min.js +2 -2
  140. package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
  141. package/bundles/material-slide-toggle.umd.js.map +1 -1
  142. package/bundles/material-slider-testing.umd.js +11 -0
  143. package/bundles/material-slider-testing.umd.js.map +1 -1
  144. package/bundles/material-slider-testing.umd.min.js +2 -2
  145. package/bundles/material-slider-testing.umd.min.js.map +1 -1
  146. package/bundles/material-snack-bar-testing.umd.min.js +1 -1
  147. package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
  148. package/bundles/material-snack-bar.umd.js +47 -39
  149. package/bundles/material-snack-bar.umd.js.map +1 -1
  150. package/bundles/material-snack-bar.umd.min.js +2 -2
  151. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  152. package/bundles/material-sort-testing.umd.js +10 -10
  153. package/bundles/material-sort-testing.umd.js.map +1 -1
  154. package/bundles/material-sort-testing.umd.min.js +3 -3
  155. package/bundles/material-sort-testing.umd.min.js.map +1 -1
  156. package/bundles/material-sort.umd.js +25 -12
  157. package/bundles/material-sort.umd.js.map +1 -1
  158. package/bundles/material-sort.umd.min.js +5 -5
  159. package/bundles/material-sort.umd.min.js.map +1 -1
  160. package/bundles/material-table-testing.umd.min.js +1 -1
  161. package/bundles/material-table-testing.umd.min.js.map +1 -1
  162. package/bundles/material-table.umd.min.js +2 -2
  163. package/bundles/material-table.umd.min.js.map +1 -1
  164. package/bundles/material-tabs-testing.umd.min.js +1 -1
  165. package/bundles/material-tabs-testing.umd.min.js.map +1 -1
  166. package/bundles/material-tabs.umd.js +23 -4
  167. package/bundles/material-tabs.umd.js.map +1 -1
  168. package/bundles/material-tabs.umd.min.js +5 -12
  169. package/bundles/material-tabs.umd.min.js.map +1 -1
  170. package/bundles/material-toolbar-testing.umd.js +330 -0
  171. package/bundles/material-toolbar-testing.umd.js.map +1 -0
  172. package/bundles/material-toolbar-testing.umd.min.js +44 -0
  173. package/bundles/material-toolbar-testing.umd.min.js.map +1 -0
  174. package/bundles/material-tooltip-testing.umd.min.js +1 -1
  175. package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
  176. package/bundles/material-tooltip.umd.js +14 -1
  177. package/bundles/material-tooltip.umd.js.map +1 -1
  178. package/bundles/material-tooltip.umd.min.js +3 -3
  179. package/bundles/material-tooltip.umd.min.js.map +1 -1
  180. package/bundles/material-tree.umd.js.map +1 -1
  181. package/button/_button-base.scss +1 -1
  182. package/button/_button-theme.scss +8 -8
  183. package/button/index.metadata.json +1 -1
  184. package/button/testing/button-harness.d.ts +2 -0
  185. package/button-toggle/button-toggle.d.ts +10 -3
  186. package/button-toggle/index.metadata.json +1 -1
  187. package/button-toggle/testing/button-toggle-harness.d.ts +2 -0
  188. package/card/testing/card-harness-filters.d.ts +17 -0
  189. package/card/testing/card-harness.d.ts +36 -0
  190. package/card/testing/index.d.ts +8 -0
  191. package/card/testing/package.json +9 -0
  192. package/card/testing/public-api.d.ts +9 -0
  193. package/checkbox/index.metadata.json +1 -1
  194. package/checkbox/testing/checkbox-harness.d.ts +2 -0
  195. package/chips/chip.d.ts +19 -1
  196. package/chips/index.metadata.json +1 -1
  197. package/core/focus-indicators/_focus-indicators.scss +6 -6
  198. package/core/index.metadata.json +1 -1
  199. package/core/option/optgroup.d.ts +7 -0
  200. package/core/ripple/ripple-ref.d.ts +21 -2
  201. package/core/ripple/ripple-renderer.d.ts +1 -19
  202. package/core/ripple/ripple.d.ts +2 -2
  203. package/core/style/_list-common.scss +1 -1
  204. package/datepicker/date-range-input-parts.d.ts +2 -4
  205. package/datepicker/date-range-input.d.ts +4 -4
  206. package/datepicker/date-range-picker.d.ts +10 -3
  207. package/datepicker/datepicker.d.ts +2 -3
  208. package/datepicker/index.metadata.json +1 -1
  209. package/datepicker/public-api.d.ts +1 -1
  210. package/dialog/dialog-container.d.ts +9 -2
  211. package/dialog/dialog-content-directives.d.ts +1 -0
  212. package/dialog/dialog-ref.d.ts +7 -0
  213. package/dialog/index.metadata.json +1 -1
  214. package/esm2015/autocomplete/autocomplete-module.js +18 -22
  215. package/esm2015/autocomplete/autocomplete-origin.js +16 -20
  216. package/esm2015/autocomplete/autocomplete-trigger.js +519 -521
  217. package/esm2015/autocomplete/autocomplete.js +126 -130
  218. package/esm2015/autocomplete/testing/autocomplete-harness.js +99 -97
  219. package/esm2015/badge/badge-module.js +13 -17
  220. package/esm2015/badge/badge.js +184 -188
  221. package/esm2015/badge/testing/badge-harness.js +74 -78
  222. package/esm2015/bottom-sheet/bottom-sheet-container.js +161 -165
  223. package/esm2015/bottom-sheet/bottom-sheet-module.js +15 -19
  224. package/esm2015/bottom-sheet/bottom-sheet.js +124 -128
  225. package/esm2015/bottom-sheet/testing/bottom-sheet-harness.js +29 -33
  226. package/esm2015/button/button-module.js +20 -24
  227. package/esm2015/button/button.js +111 -114
  228. package/esm2015/button/testing/button-harness.js +60 -58
  229. package/esm2015/button-toggle/button-toggle-module.js +10 -14
  230. package/esm2015/button-toggle/button-toggle.js +368 -368
  231. package/esm2015/button-toggle/testing/button-toggle-group-harness.js +42 -46
  232. package/esm2015/button-toggle/testing/button-toggle-harness.js +113 -111
  233. package/esm2015/card/card-module.js +30 -34
  234. package/esm2015/card/card.js +147 -203
  235. package/esm2015/card/testing/card-harness-filters.js +8 -0
  236. package/esm2015/card/testing/card-harness.js +52 -0
  237. package/esm2015/card/testing/index.js +9 -0
  238. package/esm2015/card/testing/public-api.js +10 -0
  239. package/esm2015/card/testing/testing.externs.js +0 -0
  240. package/esm2015/checkbox/checkbox-module.js +21 -29
  241. package/esm2015/checkbox/checkbox-required-validator.js +9 -13
  242. package/esm2015/checkbox/checkbox.js +315 -319
  243. package/esm2015/checkbox/testing/checkbox-harness.js +150 -148
  244. package/esm2015/chips/chip-input.js +119 -123
  245. package/esm2015/chips/chip-list.js +572 -576
  246. package/esm2015/chips/chip.js +333 -328
  247. package/esm2015/chips/chips-module.js +16 -20
  248. package/esm2015/core/animation/animation.js +12 -20
  249. package/esm2015/core/common-behaviors/common-module.js +91 -95
  250. package/esm2015/core/datetime/index.js +19 -27
  251. package/esm2015/core/datetime/native-date-adapter.js +202 -206
  252. package/esm2015/core/error/error-options.js +16 -24
  253. package/esm2015/core/line/line.js +18 -26
  254. package/esm2015/core/option/index.js +10 -14
  255. package/esm2015/core/option/optgroup.js +36 -33
  256. package/esm2015/core/option/option.js +181 -185
  257. package/esm2015/core/ripple/index.js +10 -14
  258. package/esm2015/core/ripple/ripple-ref.js +1 -1
  259. package/esm2015/core/ripple/ripple-renderer.js +1 -1
  260. package/esm2015/core/ripple/ripple.js +102 -106
  261. package/esm2015/core/selection/index.js +9 -13
  262. package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +32 -36
  263. package/esm2015/core/testing/optgroup-harness.js +39 -43
  264. package/esm2015/core/testing/option-harness.js +51 -55
  265. package/esm2015/core/version.js +1 -1
  266. package/esm2015/datepicker/calendar-body.js +214 -218
  267. package/esm2015/datepicker/calendar.js +295 -303
  268. package/esm2015/datepicker/date-range-input-parts.js +214 -229
  269. package/esm2015/datepicker/date-range-input.js +244 -242
  270. package/esm2015/datepicker/date-range-picker.js +19 -23
  271. package/esm2015/datepicker/date-range-selection-strategy.js +31 -35
  272. package/esm2015/datepicker/date-selection-model.js +110 -122
  273. package/esm2015/datepicker/datepicker-base.js +418 -426
  274. package/esm2015/datepicker/datepicker-input-base.js +227 -224
  275. package/esm2015/datepicker/datepicker-input.js +111 -115
  276. package/esm2015/datepicker/datepicker-intl.js +37 -41
  277. package/esm2015/datepicker/datepicker-module.js +62 -66
  278. package/esm2015/datepicker/datepicker-toggle.js +81 -89
  279. package/esm2015/datepicker/datepicker.js +13 -17
  280. package/esm2015/datepicker/month-view.js +283 -287
  281. package/esm2015/datepicker/multi-year-view.js +198 -202
  282. package/esm2015/datepicker/public-api.js +2 -2
  283. package/esm2015/datepicker/year-view.js +220 -224
  284. package/esm2015/dialog/dialog-container.js +175 -164
  285. package/esm2015/dialog/dialog-content-directives.js +105 -114
  286. package/esm2015/dialog/dialog-module.js +32 -36
  287. package/esm2015/dialog/dialog-ref.js +17 -3
  288. package/esm2015/dialog/dialog.js +236 -240
  289. package/esm2015/dialog/testing/dialog-harness.js +58 -62
  290. package/esm2015/divider/divider-module.js +10 -14
  291. package/esm2015/divider/divider.js +33 -37
  292. package/esm2015/divider/testing/divider-harness.js +16 -20
  293. package/esm2015/expansion/accordion.js +73 -77
  294. package/esm2015/expansion/expansion-module.js +26 -30
  295. package/esm2015/expansion/expansion-panel-content.js +13 -17
  296. package/esm2015/expansion/expansion-panel-header.js +168 -180
  297. package/esm2015/expansion/expansion-panel.js +144 -152
  298. package/esm2015/expansion/testing/accordion-harness.js +24 -28
  299. package/esm2015/expansion/testing/expansion-harness.js +136 -134
  300. package/esm2015/form-field/error.js +26 -23
  301. package/esm2015/form-field/form-field-control.js +6 -10
  302. package/esm2015/form-field/form-field-module.js +31 -35
  303. package/esm2015/form-field/form-field.js +407 -409
  304. package/esm2015/form-field/hint.js +35 -29
  305. package/esm2015/form-field/label.js +8 -12
  306. package/esm2015/form-field/placeholder.js +8 -12
  307. package/esm2015/form-field/prefix.js +16 -13
  308. package/esm2015/form-field/suffix.js +16 -13
  309. package/esm2015/form-field/testing/form-field-harness.js +220 -206
  310. package/esm2015/grid-list/grid-list-module.js +26 -30
  311. package/esm2015/grid-list/grid-list.js +108 -112
  312. package/esm2015/grid-list/grid-tile.js +91 -111
  313. package/esm2015/grid-list/testing/grid-list-harness.js +62 -66
  314. package/esm2015/grid-list/testing/grid-tile-harness.js +69 -73
  315. package/esm2015/grid-list/tile-styler.js +1 -1
  316. package/esm2015/icon/icon-module.js +10 -14
  317. package/esm2015/icon/icon-registry.js +406 -410
  318. package/esm2015/icon/icon.js +228 -232
  319. package/esm2015/icon/testing/fake-icon-registry.js +66 -74
  320. package/esm2015/input/autosize.js +30 -34
  321. package/esm2015/input/input-module.js +21 -25
  322. package/esm2015/input/input.js +305 -284
  323. package/esm2015/input/testing/input-harness.js +129 -123
  324. package/esm2015/list/list-module.js +32 -36
  325. package/esm2015/list/list.js +165 -189
  326. package/esm2015/list/selection-list.js +503 -511
  327. package/esm2015/list/testing/action-list-harness.js +55 -57
  328. package/esm2015/list/testing/list-harness.js +31 -39
  329. package/esm2015/list/testing/list-item-harness-base.js +13 -17
  330. package/esm2015/list/testing/nav-list-harness.js +62 -64
  331. package/esm2015/list/testing/selection-list-harness.js +136 -138
  332. package/esm2015/menu/menu-content.js +74 -71
  333. package/esm2015/menu/menu-item.js +119 -123
  334. package/esm2015/menu/menu-module.js +29 -37
  335. package/esm2015/menu/menu-panel.js +1 -1
  336. package/esm2015/menu/menu-trigger.js +402 -405
  337. package/esm2015/menu/menu.js +329 -339
  338. package/esm2015/menu/testing/menu-harness.js +193 -189
  339. package/esm2015/paginator/paginator-intl.js +36 -40
  340. package/esm2015/paginator/paginator-module.js +16 -20
  341. package/esm2015/paginator/paginator.js +205 -209
  342. package/esm2015/paginator/testing/paginator-harness.js +91 -95
  343. package/esm2015/progress-bar/progress-bar-module.js +10 -14
  344. package/esm2015/progress-bar/progress-bar.js +114 -118
  345. package/esm2015/progress-bar/testing/progress-bar-harness.js +27 -31
  346. package/esm2015/progress-spinner/progress-spinner-module.js +17 -21
  347. package/esm2015/progress-spinner/progress-spinner.js +181 -189
  348. package/esm2015/progress-spinner/testing/progress-spinner-harness.js +28 -32
  349. package/esm2015/radio/radio-module.js +10 -14
  350. package/esm2015/radio/radio.js +437 -444
  351. package/esm2015/radio/testing/radio-harness.js +241 -243
  352. package/esm2015/select/select-module.js +23 -27
  353. package/esm2015/select/select.js +917 -918
  354. package/esm2015/select/testing/select-harness.js +138 -136
  355. package/esm2015/sidenav/drawer.js +632 -620
  356. package/esm2015/sidenav/sidenav-module.js +31 -35
  357. package/esm2015/sidenav/sidenav.js +104 -116
  358. package/esm2015/sidenav/testing/drawer-harness.js +40 -44
  359. package/esm2015/sidenav/testing/sidenav-harness.js +20 -24
  360. package/esm2015/slide-toggle/slide-toggle-module.js +27 -35
  361. package/esm2015/slide-toggle/slide-toggle-required-validator.js +9 -13
  362. package/esm2015/slide-toggle/slide-toggle.js +184 -188
  363. package/esm2015/slide-toggle/testing/slide-toggle-harness.js +123 -121
  364. package/esm2015/slider/slider-module.js +10 -14
  365. package/esm2015/slider/slider.js +640 -644
  366. package/esm2015/slider/testing/slider-harness.js +129 -127
  367. package/esm2015/snack-bar/simple-snack-bar.js +32 -36
  368. package/esm2015/snack-bar/snack-bar-container.js +144 -148
  369. package/esm2015/snack-bar/snack-bar-module.js +17 -21
  370. package/esm2015/snack-bar/snack-bar-ref.js +1 -1
  371. package/esm2015/snack-bar/snack-bar.js +208 -205
  372. package/esm2015/snack-bar/testing/snack-bar-harness.js +112 -116
  373. package/esm2015/sort/sort-header-intl.js +21 -21
  374. package/esm2015/sort/sort-header.js +200 -194
  375. package/esm2015/sort/sort-module.js +11 -15
  376. package/esm2015/sort/sort.js +92 -96
  377. package/esm2015/sort/testing/sort-harness.js +28 -32
  378. package/esm2015/sort/testing/sort-header-harness.js +66 -67
  379. package/esm2015/stepper/step-header.js +78 -82
  380. package/esm2015/stepper/step-label.js +8 -12
  381. package/esm2015/stepper/stepper-button.js +23 -31
  382. package/esm2015/stepper/stepper-icon.js +16 -20
  383. package/esm2015/stepper/stepper-intl.js +15 -19
  384. package/esm2015/stepper/stepper-module.js +40 -44
  385. package/esm2015/stepper/stepper.js +139 -155
  386. package/esm2015/table/cell.js +94 -122
  387. package/esm2015/table/row.js +90 -118
  388. package/esm2015/table/table-module.js +13 -17
  389. package/esm2015/table/table.js +26 -30
  390. package/esm2015/table/testing/cell-harness.js +56 -68
  391. package/esm2015/table/testing/row-harness.js +90 -102
  392. package/esm2015/table/testing/table-harness.js +65 -69
  393. package/esm2015/table/text-column.js +17 -21
  394. package/esm2015/tabs/index.js +4 -2
  395. package/esm2015/tabs/ink-bar.js +55 -59
  396. package/esm2015/tabs/paginated-tab-header.js +415 -419
  397. package/esm2015/tabs/tab-body.js +179 -191
  398. package/esm2015/tabs/tab-content.js +21 -16
  399. package/esm2015/tabs/tab-group.js +263 -271
  400. package/esm2015/tabs/tab-header.js +69 -77
  401. package/esm2015/tabs/tab-label-wrapper.js +29 -33
  402. package/esm2015/tabs/tab-label.js +16 -13
  403. package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +199 -215
  404. package/esm2015/tabs/tab.js +80 -83
  405. package/esm2015/tabs/tabs-module.js +38 -42
  406. package/esm2015/tabs/testing/tab-group-harness.js +52 -56
  407. package/esm2015/tabs/testing/tab-harness.js +78 -82
  408. package/esm2015/toolbar/testing/index.js +9 -0
  409. package/esm2015/toolbar/testing/public-api.js +10 -0
  410. package/esm2015/toolbar/testing/testing.externs.js +0 -0
  411. package/esm2015/toolbar/testing/toolbar-harness-filters.js +8 -0
  412. package/esm2015/toolbar/testing/toolbar-harness.js +47 -0
  413. package/esm2015/toolbar/toolbar-module.js +10 -14
  414. package/esm2015/toolbar/toolbar.js +61 -69
  415. package/esm2015/tooltip/testing/tooltip-harness.js +43 -47
  416. package/esm2015/tooltip/tooltip-module.js +17 -21
  417. package/esm2015/tooltip/tooltip.js +502 -497
  418. package/esm2015/tree/data-source/flat-data-source.js +1 -1
  419. package/esm2015/tree/node.js +99 -111
  420. package/esm2015/tree/outlet.js +19 -23
  421. package/esm2015/tree/padding.js +13 -17
  422. package/esm2015/tree/toggle.js +15 -19
  423. package/esm2015/tree/tree-module.js +10 -14
  424. package/esm2015/tree/tree.js +23 -27
  425. package/expansion/testing/expansion-harness.d.ts +2 -0
  426. package/fesm2015/autocomplete/testing.js +98 -95
  427. package/fesm2015/autocomplete/testing.js.map +1 -1
  428. package/fesm2015/autocomplete.js +677 -687
  429. package/fesm2015/autocomplete.js.map +1 -1
  430. package/fesm2015/badge/testing.js +73 -76
  431. package/fesm2015/badge/testing.js.map +1 -1
  432. package/fesm2015/badge.js +195 -201
  433. package/fesm2015/badge.js.map +1 -1
  434. package/fesm2015/bottom-sheet/testing.js +28 -31
  435. package/fesm2015/bottom-sheet/testing.js.map +1 -1
  436. package/fesm2015/bottom-sheet.js +297 -306
  437. package/fesm2015/bottom-sheet.js.map +1 -1
  438. package/fesm2015/button/testing.js +59 -56
  439. package/fesm2015/button/testing.js.map +1 -1
  440. package/fesm2015/button-toggle/testing.js +155 -155
  441. package/fesm2015/button-toggle/testing.js.map +1 -1
  442. package/fesm2015/button-toggle.js +377 -378
  443. package/fesm2015/button-toggle.js.map +1 -1
  444. package/fesm2015/button.js +129 -133
  445. package/fesm2015/button.js.map +1 -1
  446. package/fesm2015/card/testing.js +79 -0
  447. package/fesm2015/card/testing.js.map +1 -0
  448. package/fesm2015/card.js +175 -220
  449. package/fesm2015/card.js.map +1 -1
  450. package/fesm2015/checkbox/testing.js +149 -146
  451. package/fesm2015/checkbox/testing.js.map +1 -1
  452. package/fesm2015/checkbox.js +342 -354
  453. package/fesm2015/checkbox.js.map +1 -1
  454. package/fesm2015/chips.js +1039 -1039
  455. package/fesm2015/chips.js.map +1 -1
  456. package/fesm2015/core/testing.js +88 -94
  457. package/fesm2015/core/testing.js.map +1 -1
  458. package/fesm2015/core.js +729 -773
  459. package/fesm2015/core.js.map +1 -1
  460. package/fesm2015/datepicker.js +2821 -2884
  461. package/fesm2015/datepicker.js.map +1 -1
  462. package/fesm2015/dialog/testing.js +57 -60
  463. package/fesm2015/dialog/testing.js.map +1 -1
  464. package/fesm2015/dialog.js +564 -549
  465. package/fesm2015/dialog.js.map +1 -1
  466. package/fesm2015/divider/testing.js +15 -18
  467. package/fesm2015/divider/testing.js.map +1 -1
  468. package/fesm2015/divider.js +41 -47
  469. package/fesm2015/divider.js.map +1 -1
  470. package/fesm2015/expansion/testing.js +159 -159
  471. package/fesm2015/expansion/testing.js.map +1 -1
  472. package/fesm2015/expansion.js +422 -446
  473. package/fesm2015/expansion.js.map +1 -1
  474. package/fesm2015/form-field/testing.js +219 -204
  475. package/fesm2015/form-field/testing.js.map +1 -1
  476. package/fesm2015/form-field.js +538 -532
  477. package/fesm2015/form-field.js.map +1 -1
  478. package/fesm2015/grid-list/testing.js +129 -135
  479. package/fesm2015/grid-list/testing.js.map +1 -1
  480. package/fesm2015/grid-list.js +221 -242
  481. package/fesm2015/grid-list.js.map +1 -1
  482. package/fesm2015/icon/testing.js +65 -71
  483. package/fesm2015/icon/testing.js.map +1 -1
  484. package/fesm2015/icon.js +660 -669
  485. package/fesm2015/icon.js.map +1 -1
  486. package/fesm2015/input/testing.js +128 -121
  487. package/fesm2015/input/testing.js.map +1 -1
  488. package/fesm2015/input.js +353 -337
  489. package/fesm2015/input.js.map +1 -1
  490. package/fesm2015/list/testing.js +298 -307
  491. package/fesm2015/list/testing.js.map +1 -1
  492. package/fesm2015/list.js +698 -725
  493. package/fesm2015/list.js.map +1 -1
  494. package/fesm2015/menu/testing.js +192 -186
  495. package/fesm2015/menu/testing.js.map +1 -1
  496. package/fesm2015/menu.js +948 -962
  497. package/fesm2015/menu.js.map +1 -1
  498. package/fesm2015/paginator/testing.js +90 -93
  499. package/fesm2015/paginator/testing.js.map +1 -1
  500. package/fesm2015/paginator.js +247 -256
  501. package/fesm2015/paginator.js.map +1 -1
  502. package/fesm2015/progress-bar/testing.js +26 -29
  503. package/fesm2015/progress-bar/testing.js.map +1 -1
  504. package/fesm2015/progress-bar.js +122 -128
  505. package/fesm2015/progress-bar.js.map +1 -1
  506. package/fesm2015/progress-spinner/testing.js +27 -30
  507. package/fesm2015/progress-spinner/testing.js.map +1 -1
  508. package/fesm2015/progress-spinner.js +196 -205
  509. package/fesm2015/progress-spinner.js.map +1 -1
  510. package/fesm2015/radio/testing.js +240 -240
  511. package/fesm2015/radio/testing.js.map +1 -1
  512. package/fesm2015/radio.js +447 -453
  513. package/fesm2015/radio.js.map +1 -1
  514. package/fesm2015/select/testing.js +137 -134
  515. package/fesm2015/select/testing.js.map +1 -1
  516. package/fesm2015/select.js +939 -941
  517. package/fesm2015/select.js.map +1 -1
  518. package/fesm2015/sidenav/testing.js +58 -64
  519. package/fesm2015/sidenav/testing.js.map +1 -1
  520. package/fesm2015/sidenav.js +765 -762
  521. package/fesm2015/sidenav.js.map +1 -1
  522. package/fesm2015/slide-toggle/testing.js +122 -119
  523. package/fesm2015/slide-toggle/testing.js.map +1 -1
  524. package/fesm2015/slide-toggle.js +217 -229
  525. package/fesm2015/slide-toggle.js.map +1 -1
  526. package/fesm2015/slider/testing.js +128 -125
  527. package/fesm2015/slider/testing.js.map +1 -1
  528. package/fesm2015/slider.js +648 -654
  529. package/fesm2015/slider.js.map +1 -1
  530. package/fesm2015/snack-bar/testing.js +111 -114
  531. package/fesm2015/snack-bar/testing.js.map +1 -1
  532. package/fesm2015/snack-bar.js +426 -431
  533. package/fesm2015/snack-bar.js.map +1 -1
  534. package/fesm2015/sort/testing.js +92 -95
  535. package/fesm2015/sort/testing.js.map +1 -1
  536. package/fesm2015/sort.js +320 -318
  537. package/fesm2015/sort.js.map +1 -1
  538. package/fesm2015/stepper.js +312 -345
  539. package/fesm2015/stepper.js.map +1 -1
  540. package/fesm2015/table/testing.js +208 -229
  541. package/fesm2015/table/testing.js.map +1 -1
  542. package/fesm2015/table.js +235 -286
  543. package/fesm2015/table.js.map +1 -1
  544. package/fesm2015/tabs/testing.js +128 -134
  545. package/fesm2015/tabs/testing.js.map +1 -1
  546. package/fesm2015/tabs.js +1362 -1399
  547. package/fesm2015/tabs.js.map +1 -1
  548. package/fesm2015/toolbar/testing.js +74 -0
  549. package/fesm2015/toolbar/testing.js.map +1 -0
  550. package/fesm2015/toolbar.js +69 -78
  551. package/fesm2015/toolbar.js.map +1 -1
  552. package/fesm2015/tooltip/testing.js +42 -45
  553. package/fesm2015/tooltip/testing.js.map +1 -1
  554. package/fesm2015/tooltip.js +517 -513
  555. package/fesm2015/tooltip.js.map +1 -1
  556. package/fesm2015/tree.js +173 -197
  557. package/fesm2015/tree.js.map +1 -1
  558. package/form-field/error.d.ts +7 -0
  559. package/form-field/hint.d.ts +10 -0
  560. package/form-field/index.metadata.json +1 -1
  561. package/form-field/prefix.d.ts +7 -0
  562. package/form-field/suffix.d.ts +7 -0
  563. package/form-field/testing/form-field-harness.d.ts +8 -0
  564. package/grid-list/grid-list.d.ts +2 -1
  565. package/grid-list/index.metadata.json +1 -1
  566. package/grid-list/tile-styler.d.ts +10 -5
  567. package/input/_input-theme.scss +2 -2
  568. package/input/index.metadata.json +1 -1
  569. package/input/input.d.ts +6 -2
  570. package/input/testing/input-harness.d.ts +2 -0
  571. package/list/index.metadata.json +1 -1
  572. package/list/testing/action-list-harness.d.ts +2 -0
  573. package/list/testing/nav-list-harness.d.ts +2 -0
  574. package/list/testing/selection-list-harness.d.ts +2 -0
  575. package/menu/index.metadata.json +1 -1
  576. package/menu/menu-content.d.ts +7 -1
  577. package/menu/menu-panel.d.ts +1 -0
  578. package/menu/menu.d.ts +4 -0
  579. package/menu/testing/menu-harness.d.ts +4 -0
  580. package/package.json +6 -6
  581. package/prebuilt-themes/deeppurple-amber.css +1 -1
  582. package/prebuilt-themes/indigo-pink.css +1 -1
  583. package/prebuilt-themes/pink-bluegrey.css +1 -1
  584. package/prebuilt-themes/purple-green.css +1 -1
  585. package/progress-spinner/index.metadata.json +1 -1
  586. package/radio/index.metadata.json +1 -1
  587. package/radio/radio.d.ts +6 -0
  588. package/radio/testing/radio-harness.d.ts +2 -0
  589. package/schematics/migration.json +5 -0
  590. package/schematics/ng-add/index.js +2 -2
  591. package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +3 -3
  592. package/schematics/ng-generate/navigation/schema.json +5 -0
  593. package/schematics/ng-update/data/index.js +1 -1
  594. package/schematics/ng-update/index.d.ts +2 -0
  595. package/schematics/ng-update/index.js +7 -2
  596. package/schematics/ng-update/migrations/hammer-gestures-v9/hammer-gestures-migration.js +639 -639
  597. package/schematics/ng-update/migrations/misc-ripples-v7/ripple-speed-factor-migration.js +1 -1
  598. package/select/index.metadata.json +1 -1
  599. package/select/select.d.ts +6 -0
  600. package/select/testing/select-harness.d.ts +2 -0
  601. package/sidenav/drawer.d.ts +15 -3
  602. package/sidenav/index.metadata.json +1 -1
  603. package/slide-toggle/index.metadata.json +1 -1
  604. package/slide-toggle/testing/slide-toggle-harness.d.ts +2 -0
  605. package/slider/testing/slider-harness.d.ts +2 -0
  606. package/snack-bar/index.metadata.json +1 -1
  607. package/snack-bar/simple-snack-bar.d.ts +13 -1
  608. package/snack-bar/snack-bar-container.d.ts +16 -3
  609. package/snack-bar/snack-bar-ref.d.ts +3 -3
  610. package/snack-bar/snack-bar.d.ts +10 -3
  611. package/sort/index.metadata.json +1 -1
  612. package/sort/sort-header-intl.d.ts +5 -1
  613. package/sort/sort-header.d.ts +3 -1
  614. package/sort/testing/sort-header-harness.d.ts +6 -2
  615. package/tabs/index.d.ts +3 -1
  616. package/tabs/index.metadata.json +1 -1
  617. package/tabs/tab-content.d.ts +7 -1
  618. package/tabs/tab-label.d.ts +7 -0
  619. package/toolbar/testing/index.d.ts +8 -0
  620. package/toolbar/testing/package.json +9 -0
  621. package/toolbar/testing/public-api.d.ts +9 -0
  622. package/toolbar/testing/toolbar-harness-filters.d.ts +13 -0
  623. package/toolbar/testing/toolbar-harness.d.ts +31 -0
  624. package/tooltip/index.metadata.json +1 -1
  625. package/tooltip/tooltip.d.ts +1 -0
  626. package/tree/data-source/flat-data-source.d.ts +4 -4
  627. package/tree/index.metadata.json +1 -1
package/fesm2015/list.js CHANGED
@@ -39,209 +39,191 @@ const MAT_LIST = new InjectionToken('MatList');
39
39
  * retention of the class and its component metadata.
40
40
  */
41
41
  const MAT_NAV_LIST = new InjectionToken('MatNavList');
42
- let MatNavList = /** @class */ (() => {
43
- class MatNavList extends _MatListMixinBase {
44
- constructor() {
45
- super(...arguments);
46
- /** Emits when the state of the list changes. */
47
- this._stateChanges = new Subject();
48
- }
49
- ngOnChanges() {
50
- this._stateChanges.next();
51
- }
52
- ngOnDestroy() {
53
- this._stateChanges.complete();
54
- }
42
+ class MatNavList extends _MatListMixinBase {
43
+ constructor() {
44
+ super(...arguments);
45
+ /** Emits when the state of the list changes. */
46
+ this._stateChanges = new Subject();
55
47
  }
56
- MatNavList.decorators = [
57
- { type: Component, args: [{
58
- selector: 'mat-nav-list',
59
- exportAs: 'matNavList',
60
- host: {
61
- 'role': 'navigation',
62
- 'class': 'mat-nav-list mat-list-base'
63
- },
64
- template: "<ng-content></ng-content>\n\n",
65
- inputs: ['disableRipple', 'disabled'],
66
- encapsulation: ViewEncapsulation.None,
67
- changeDetection: ChangeDetectionStrategy.OnPush,
68
- providers: [{ provide: MAT_NAV_LIST, useExisting: MatNavList }],
69
- styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
70
- },] }
71
- ];
72
- return MatNavList;
73
- })();
74
- let MatList = /** @class */ (() => {
75
- class MatList extends _MatListMixinBase {
76
- constructor(_elementRef) {
77
- super();
78
- this._elementRef = _elementRef;
79
- /** Emits when the state of the list changes. */
80
- this._stateChanges = new Subject();
81
- if (this._getListType() === 'action-list') {
82
- _elementRef.nativeElement.classList.add('mat-action-list');
83
- }
84
- }
85
- _getListType() {
86
- const nodeName = this._elementRef.nativeElement.nodeName.toLowerCase();
87
- if (nodeName === 'mat-list') {
88
- return 'list';
89
- }
90
- if (nodeName === 'mat-action-list') {
91
- return 'action-list';
92
- }
93
- return null;
48
+ ngOnChanges() {
49
+ this._stateChanges.next();
50
+ }
51
+ ngOnDestroy() {
52
+ this._stateChanges.complete();
53
+ }
54
+ }
55
+ MatNavList.decorators = [
56
+ { type: Component, args: [{
57
+ selector: 'mat-nav-list',
58
+ exportAs: 'matNavList',
59
+ host: {
60
+ 'role': 'navigation',
61
+ 'class': 'mat-nav-list mat-list-base'
62
+ },
63
+ template: "<ng-content></ng-content>\n\n",
64
+ inputs: ['disableRipple', 'disabled'],
65
+ encapsulation: ViewEncapsulation.None,
66
+ changeDetection: ChangeDetectionStrategy.OnPush,
67
+ providers: [{ provide: MAT_NAV_LIST, useExisting: MatNavList }],
68
+ styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
69
+ },] }
70
+ ];
71
+ class MatList extends _MatListMixinBase {
72
+ constructor(_elementRef) {
73
+ super();
74
+ this._elementRef = _elementRef;
75
+ /** Emits when the state of the list changes. */
76
+ this._stateChanges = new Subject();
77
+ if (this._getListType() === 'action-list') {
78
+ _elementRef.nativeElement.classList.add('mat-action-list');
94
79
  }
95
- ngOnChanges() {
96
- this._stateChanges.next();
80
+ }
81
+ _getListType() {
82
+ const nodeName = this._elementRef.nativeElement.nodeName.toLowerCase();
83
+ if (nodeName === 'mat-list') {
84
+ return 'list';
97
85
  }
98
- ngOnDestroy() {
99
- this._stateChanges.complete();
86
+ if (nodeName === 'mat-action-list') {
87
+ return 'action-list';
100
88
  }
89
+ return null;
101
90
  }
102
- MatList.decorators = [
103
- { type: Component, args: [{
104
- selector: 'mat-list, mat-action-list',
105
- exportAs: 'matList',
106
- template: "<ng-content></ng-content>\n\n",
107
- host: {
108
- 'class': 'mat-list mat-list-base'
109
- },
110
- inputs: ['disableRipple', 'disabled'],
111
- encapsulation: ViewEncapsulation.None,
112
- changeDetection: ChangeDetectionStrategy.OnPush,
113
- providers: [{ provide: MAT_LIST, useExisting: MatList }],
114
- styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
115
- },] }
116
- ];
117
- MatList.ctorParameters = () => [
118
- { type: ElementRef }
119
- ];
120
- return MatList;
121
- })();
91
+ ngOnChanges() {
92
+ this._stateChanges.next();
93
+ }
94
+ ngOnDestroy() {
95
+ this._stateChanges.complete();
96
+ }
97
+ }
98
+ MatList.decorators = [
99
+ { type: Component, args: [{
100
+ selector: 'mat-list, mat-action-list',
101
+ exportAs: 'matList',
102
+ template: "<ng-content></ng-content>\n\n",
103
+ host: {
104
+ 'class': 'mat-list mat-list-base'
105
+ },
106
+ inputs: ['disableRipple', 'disabled'],
107
+ encapsulation: ViewEncapsulation.None,
108
+ changeDetection: ChangeDetectionStrategy.OnPush,
109
+ providers: [{ provide: MAT_LIST, useExisting: MatList }],
110
+ styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
111
+ },] }
112
+ ];
113
+ MatList.ctorParameters = () => [
114
+ { type: ElementRef }
115
+ ];
122
116
  /**
123
117
  * Directive whose purpose is to add the mat- CSS styling to this selector.
124
118
  * @docs-private
125
119
  */
126
- let MatListAvatarCssMatStyler = /** @class */ (() => {
127
- class MatListAvatarCssMatStyler {
128
- }
129
- MatListAvatarCssMatStyler.decorators = [
130
- { type: Directive, args: [{
131
- selector: '[mat-list-avatar], [matListAvatar]',
132
- host: { 'class': 'mat-list-avatar' }
133
- },] }
134
- ];
135
- return MatListAvatarCssMatStyler;
136
- })();
120
+ class MatListAvatarCssMatStyler {
121
+ }
122
+ MatListAvatarCssMatStyler.decorators = [
123
+ { type: Directive, args: [{
124
+ selector: '[mat-list-avatar], [matListAvatar]',
125
+ host: { 'class': 'mat-list-avatar' }
126
+ },] }
127
+ ];
137
128
  /**
138
129
  * Directive whose purpose is to add the mat- CSS styling to this selector.
139
130
  * @docs-private
140
131
  */
141
- let MatListIconCssMatStyler = /** @class */ (() => {
142
- class MatListIconCssMatStyler {
143
- }
144
- MatListIconCssMatStyler.decorators = [
145
- { type: Directive, args: [{
146
- selector: '[mat-list-icon], [matListIcon]',
147
- host: { 'class': 'mat-list-icon' }
148
- },] }
149
- ];
150
- return MatListIconCssMatStyler;
151
- })();
132
+ class MatListIconCssMatStyler {
133
+ }
134
+ MatListIconCssMatStyler.decorators = [
135
+ { type: Directive, args: [{
136
+ selector: '[mat-list-icon], [matListIcon]',
137
+ host: { 'class': 'mat-list-icon' }
138
+ },] }
139
+ ];
152
140
  /**
153
141
  * Directive whose purpose is to add the mat- CSS styling to this selector.
154
142
  * @docs-private
155
143
  */
156
- let MatListSubheaderCssMatStyler = /** @class */ (() => {
157
- class MatListSubheaderCssMatStyler {
158
- }
159
- MatListSubheaderCssMatStyler.decorators = [
160
- { type: Directive, args: [{
161
- selector: '[mat-subheader], [matSubheader]',
162
- host: { 'class': 'mat-subheader' }
163
- },] }
164
- ];
165
- return MatListSubheaderCssMatStyler;
166
- })();
144
+ class MatListSubheaderCssMatStyler {
145
+ }
146
+ MatListSubheaderCssMatStyler.decorators = [
147
+ { type: Directive, args: [{
148
+ selector: '[mat-subheader], [matSubheader]',
149
+ host: { 'class': 'mat-subheader' }
150
+ },] }
151
+ ];
167
152
  /** An item within a Material Design list. */
168
- let MatListItem = /** @class */ (() => {
169
- class MatListItem extends _MatListItemMixinBase {
170
- constructor(_element, _changeDetectorRef, navList, list) {
171
- super();
172
- this._element = _element;
173
- this._isInteractiveList = false;
174
- this._destroyed = new Subject();
175
- this._disabled = false;
176
- this._isInteractiveList = !!(navList || (list && list._getListType() === 'action-list'));
177
- this._list = navList || list;
178
- // If no type attributed is specified for <button>, set it to "button".
179
- // If a type attribute is already specified, do nothing.
180
- const element = this._getHostElement();
181
- if (element.nodeName.toLowerCase() === 'button' && !element.hasAttribute('type')) {
182
- element.setAttribute('type', 'button');
183
- }
184
- if (this._list) {
185
- // React to changes in the state of the parent list since
186
- // some of the item's properties depend on it (e.g. `disableRipple`).
187
- this._list._stateChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {
188
- _changeDetectorRef.markForCheck();
189
- });
190
- }
191
- }
192
- /** Whether the option is disabled. */
193
- get disabled() { return this._disabled || !!(this._list && this._list.disabled); }
194
- set disabled(value) {
195
- this._disabled = coerceBooleanProperty(value);
196
- }
197
- ngAfterContentInit() {
198
- setLines(this._lines, this._element);
199
- }
200
- ngOnDestroy() {
201
- this._destroyed.next();
202
- this._destroyed.complete();
203
- }
204
- /** Whether this list item should show a ripple effect when clicked. */
205
- _isRippleDisabled() {
206
- return !this._isInteractiveList || this.disableRipple ||
207
- !!(this._list && this._list.disableRipple);
208
- }
209
- /** Retrieves the DOM element of the component host. */
210
- _getHostElement() {
211
- return this._element.nativeElement;
153
+ class MatListItem extends _MatListItemMixinBase {
154
+ constructor(_element, _changeDetectorRef, navList, list) {
155
+ super();
156
+ this._element = _element;
157
+ this._isInteractiveList = false;
158
+ this._destroyed = new Subject();
159
+ this._disabled = false;
160
+ this._isInteractiveList = !!(navList || (list && list._getListType() === 'action-list'));
161
+ this._list = navList || list;
162
+ // If no type attributed is specified for <button>, set it to "button".
163
+ // If a type attribute is already specified, do nothing.
164
+ const element = this._getHostElement();
165
+ if (element.nodeName.toLowerCase() === 'button' && !element.hasAttribute('type')) {
166
+ element.setAttribute('type', 'button');
167
+ }
168
+ if (this._list) {
169
+ // React to changes in the state of the parent list since
170
+ // some of the item's properties depend on it (e.g. `disableRipple`).
171
+ this._list._stateChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {
172
+ _changeDetectorRef.markForCheck();
173
+ });
212
174
  }
213
175
  }
214
- MatListItem.decorators = [
215
- { type: Component, args: [{
216
- selector: 'mat-list-item, a[mat-list-item], button[mat-list-item]',
217
- exportAs: 'matListItem',
218
- host: {
219
- 'class': 'mat-list-item mat-focus-indicator',
220
- '[class.mat-list-item-disabled]': 'disabled',
221
- // @breaking-change 8.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`.
222
- '[class.mat-list-item-avatar]': '_avatar || _icon',
223
- '[class.mat-list-item-with-avatar]': '_avatar || _icon',
224
- },
225
- inputs: ['disableRipple'],
226
- template: "<div class=\"mat-list-item-content\">\n <div class=\"mat-list-item-ripple\" mat-ripple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"_isRippleDisabled()\">\n </div>\n\n <ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\">\n </ng-content>\n\n <div class=\"mat-list-text\"><ng-content select=\"[mat-line], [matLine]\"></ng-content></div>\n\n <ng-content></ng-content>\n</div>\n",
227
- encapsulation: ViewEncapsulation.None,
228
- changeDetection: ChangeDetectionStrategy.OnPush
229
- },] }
230
- ];
231
- MatListItem.ctorParameters = () => [
232
- { type: ElementRef },
233
- { type: ChangeDetectorRef },
234
- { type: MatNavList, decorators: [{ type: Optional }, { type: Inject, args: [MAT_NAV_LIST,] }] },
235
- { type: MatList, decorators: [{ type: Optional }, { type: Inject, args: [MAT_LIST,] }] }
236
- ];
237
- MatListItem.propDecorators = {
238
- _lines: [{ type: ContentChildren, args: [MatLine, { descendants: true },] }],
239
- _avatar: [{ type: ContentChild, args: [MatListAvatarCssMatStyler,] }],
240
- _icon: [{ type: ContentChild, args: [MatListIconCssMatStyler,] }],
241
- disabled: [{ type: Input }]
242
- };
243
- return MatListItem;
244
- })();
176
+ /** Whether the option is disabled. */
177
+ get disabled() { return this._disabled || !!(this._list && this._list.disabled); }
178
+ set disabled(value) {
179
+ this._disabled = coerceBooleanProperty(value);
180
+ }
181
+ ngAfterContentInit() {
182
+ setLines(this._lines, this._element);
183
+ }
184
+ ngOnDestroy() {
185
+ this._destroyed.next();
186
+ this._destroyed.complete();
187
+ }
188
+ /** Whether this list item should show a ripple effect when clicked. */
189
+ _isRippleDisabled() {
190
+ return !this._isInteractiveList || this.disableRipple ||
191
+ !!(this._list && this._list.disableRipple);
192
+ }
193
+ /** Retrieves the DOM element of the component host. */
194
+ _getHostElement() {
195
+ return this._element.nativeElement;
196
+ }
197
+ }
198
+ MatListItem.decorators = [
199
+ { type: Component, args: [{
200
+ selector: 'mat-list-item, a[mat-list-item], button[mat-list-item]',
201
+ exportAs: 'matListItem',
202
+ host: {
203
+ 'class': 'mat-list-item mat-focus-indicator',
204
+ '[class.mat-list-item-disabled]': 'disabled',
205
+ // @breaking-change 8.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`.
206
+ '[class.mat-list-item-avatar]': '_avatar || _icon',
207
+ '[class.mat-list-item-with-avatar]': '_avatar || _icon',
208
+ },
209
+ inputs: ['disableRipple'],
210
+ template: "<div class=\"mat-list-item-content\">\n <div class=\"mat-list-item-ripple\" mat-ripple\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"_isRippleDisabled()\">\n </div>\n\n <ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\">\n </ng-content>\n\n <div class=\"mat-list-text\"><ng-content select=\"[mat-line], [matLine]\"></ng-content></div>\n\n <ng-content></ng-content>\n</div>\n",
211
+ encapsulation: ViewEncapsulation.None,
212
+ changeDetection: ChangeDetectionStrategy.OnPush
213
+ },] }
214
+ ];
215
+ MatListItem.ctorParameters = () => [
216
+ { type: ElementRef },
217
+ { type: ChangeDetectorRef },
218
+ { type: MatNavList, decorators: [{ type: Optional }, { type: Inject, args: [MAT_NAV_LIST,] }] },
219
+ { type: MatList, decorators: [{ type: Optional }, { type: Inject, args: [MAT_LIST,] }] }
220
+ ];
221
+ MatListItem.propDecorators = {
222
+ _lines: [{ type: ContentChildren, args: [MatLine, { descendants: true },] }],
223
+ _avatar: [{ type: ContentChild, args: [MatListAvatarCssMatStyler,] }],
224
+ _icon: [{ type: ContentChild, args: [MatListIconCssMatStyler,] }],
225
+ disabled: [{ type: Input }]
226
+ };
245
227
 
246
228
  /**
247
229
  * @license
@@ -278,553 +260,547 @@ class MatSelectionListChange {
278
260
  * generate a checkbox and can put current item into the selectionModel of selection-list
279
261
  * if the current item is selected.
280
262
  */
281
- let MatListOption = /** @class */ (() => {
282
- class MatListOption extends _MatListOptionMixinBase {
283
- constructor(_element, _changeDetector,
284
- /** @docs-private */
285
- selectionList) {
286
- super();
287
- this._element = _element;
288
- this._changeDetector = _changeDetector;
289
- this.selectionList = selectionList;
290
- this._selected = false;
291
- this._disabled = false;
292
- this._hasFocus = false;
293
- /** Whether the label should appear before or after the checkbox. Defaults to 'after' */
294
- this.checkboxPosition = 'after';
295
- /**
296
- * This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
297
- * in the first cycle.
298
- */
299
- this._inputsInitialized = false;
263
+ class MatListOption extends _MatListOptionMixinBase {
264
+ constructor(_element, _changeDetector,
265
+ /** @docs-private */
266
+ selectionList) {
267
+ super();
268
+ this._element = _element;
269
+ this._changeDetector = _changeDetector;
270
+ this.selectionList = selectionList;
271
+ this._selected = false;
272
+ this._disabled = false;
273
+ this._hasFocus = false;
274
+ /** Whether the label should appear before or after the checkbox. Defaults to 'after' */
275
+ this.checkboxPosition = 'after';
276
+ /**
277
+ * This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
278
+ * in the first cycle.
279
+ */
280
+ this._inputsInitialized = false;
281
+ }
282
+ /** Theme color of the list option. This sets the color of the checkbox. */
283
+ get color() { return this._color || this.selectionList.color; }
284
+ set color(newValue) { this._color = newValue; }
285
+ /** Value of the option */
286
+ get value() { return this._value; }
287
+ set value(newValue) {
288
+ if (this.selected && newValue !== this.value && this._inputsInitialized) {
289
+ this.selected = false;
290
+ }
291
+ this._value = newValue;
292
+ }
293
+ /** Whether the option is disabled. */
294
+ get disabled() { return this._disabled || (this.selectionList && this.selectionList.disabled); }
295
+ set disabled(value) {
296
+ const newValue = coerceBooleanProperty(value);
297
+ if (newValue !== this._disabled) {
298
+ this._disabled = newValue;
299
+ this._changeDetector.markForCheck();
300
300
  }
301
- /** Theme color of the list option. This sets the color of the checkbox. */
302
- get color() { return this._color || this.selectionList.color; }
303
- set color(newValue) { this._color = newValue; }
304
- /** Value of the option */
305
- get value() { return this._value; }
306
- set value(newValue) {
307
- if (this.selected && newValue !== this.value && this._inputsInitialized) {
308
- this.selected = false;
309
- }
310
- this._value = newValue;
301
+ }
302
+ /** Whether the option is selected. */
303
+ get selected() { return this.selectionList.selectedOptions.isSelected(this); }
304
+ set selected(value) {
305
+ const isSelected = coerceBooleanProperty(value);
306
+ if (isSelected !== this._selected) {
307
+ this._setSelected(isSelected);
308
+ this.selectionList._reportValueChange();
311
309
  }
312
- /** Whether the option is disabled. */
313
- get disabled() { return this._disabled || (this.selectionList && this.selectionList.disabled); }
314
- set disabled(value) {
315
- const newValue = coerceBooleanProperty(value);
316
- if (newValue !== this._disabled) {
317
- this._disabled = newValue;
310
+ }
311
+ ngOnInit() {
312
+ const list = this.selectionList;
313
+ if (list._value && list._value.some(value => list.compareWith(value, this._value))) {
314
+ this._setSelected(true);
315
+ }
316
+ const wasSelected = this._selected;
317
+ // List options that are selected at initialization can't be reported properly to the form
318
+ // control. This is because it takes some time until the selection-list knows about all
319
+ // available options. Also it can happen that the ControlValueAccessor has an initial value
320
+ // that should be used instead. Deferring the value change report to the next tick ensures
321
+ // that the form control value is not being overwritten.
322
+ Promise.resolve().then(() => {
323
+ if (this._selected || wasSelected) {
324
+ this.selected = true;
318
325
  this._changeDetector.markForCheck();
319
326
  }
320
- }
321
- /** Whether the option is selected. */
322
- get selected() { return this.selectionList.selectedOptions.isSelected(this); }
323
- set selected(value) {
324
- const isSelected = coerceBooleanProperty(value);
325
- if (isSelected !== this._selected) {
326
- this._setSelected(isSelected);
327
- this.selectionList._reportValueChange();
328
- }
329
- }
330
- ngOnInit() {
331
- const list = this.selectionList;
332
- if (list._value && list._value.some(value => list.compareWith(value, this._value))) {
333
- this._setSelected(true);
334
- }
335
- const wasSelected = this._selected;
336
- // List options that are selected at initialization can't be reported properly to the form
337
- // control. This is because it takes some time until the selection-list knows about all
338
- // available options. Also it can happen that the ControlValueAccessor has an initial value
339
- // that should be used instead. Deferring the value change report to the next tick ensures
340
- // that the form control value is not being overwritten.
327
+ });
328
+ this._inputsInitialized = true;
329
+ }
330
+ ngAfterContentInit() {
331
+ setLines(this._lines, this._element);
332
+ }
333
+ ngOnDestroy() {
334
+ if (this.selected) {
335
+ // We have to delay this until the next tick in order
336
+ // to avoid changed after checked errors.
341
337
  Promise.resolve().then(() => {
342
- if (this._selected || wasSelected) {
343
- this.selected = true;
344
- this._changeDetector.markForCheck();
345
- }
338
+ this.selected = false;
346
339
  });
347
- this._inputsInitialized = true;
348
- }
349
- ngAfterContentInit() {
350
- setLines(this._lines, this._element);
351
- }
352
- ngOnDestroy() {
353
- if (this.selected) {
354
- // We have to delay this until the next tick in order
355
- // to avoid changed after checked errors.
356
- Promise.resolve().then(() => {
357
- this.selected = false;
358
- });
359
- }
360
- const hadFocus = this._hasFocus;
361
- const newActiveItem = this.selectionList._removeOptionFromList(this);
362
- // Only move focus if this option was focused at the time it was destroyed.
363
- if (hadFocus && newActiveItem) {
364
- newActiveItem.focus();
365
- }
366
340
  }
367
- /** Toggles the selection state of the option. */
368
- toggle() {
369
- this.selected = !this.selected;
341
+ const hadFocus = this._hasFocus;
342
+ const newActiveItem = this.selectionList._removeOptionFromList(this);
343
+ // Only move focus if this option was focused at the time it was destroyed.
344
+ if (hadFocus && newActiveItem) {
345
+ newActiveItem.focus();
370
346
  }
371
- /** Allows for programmatic focusing of the option. */
372
- focus() {
373
- this._element.nativeElement.focus();
374
- }
375
- /**
376
- * Returns the list item's text label. Implemented as a part of the FocusKeyManager.
377
- * @docs-private
378
- */
379
- getLabel() {
380
- return this._text ? (this._text.nativeElement.textContent || '') : '';
381
- }
382
- /** Whether this list item should show a ripple effect when clicked. */
383
- _isRippleDisabled() {
384
- return this.disabled || this.disableRipple || this.selectionList.disableRipple;
385
- }
386
- _handleClick() {
387
- if (!this.disabled && (this.selectionList.multiple || !this.selected)) {
388
- this.toggle();
389
- // Emit a change event if the selected state of the option changed through user interaction.
390
- this.selectionList._emitChangeEvent(this);
391
- }
392
- }
393
- _handleFocus() {
394
- this.selectionList._setFocusedOption(this);
395
- this._hasFocus = true;
396
- }
397
- _handleBlur() {
398
- this.selectionList._onTouched();
399
- this._hasFocus = false;
347
+ }
348
+ /** Toggles the selection state of the option. */
349
+ toggle() {
350
+ this.selected = !this.selected;
351
+ }
352
+ /** Allows for programmatic focusing of the option. */
353
+ focus() {
354
+ this._element.nativeElement.focus();
355
+ }
356
+ /**
357
+ * Returns the list item's text label. Implemented as a part of the FocusKeyManager.
358
+ * @docs-private
359
+ */
360
+ getLabel() {
361
+ return this._text ? (this._text.nativeElement.textContent || '') : '';
362
+ }
363
+ /** Whether this list item should show a ripple effect when clicked. */
364
+ _isRippleDisabled() {
365
+ return this.disabled || this.disableRipple || this.selectionList.disableRipple;
366
+ }
367
+ _handleClick() {
368
+ if (!this.disabled && (this.selectionList.multiple || !this.selected)) {
369
+ this.toggle();
370
+ // Emit a change event if the selected state of the option changed through user interaction.
371
+ this.selectionList._emitChangeEvent(this);
400
372
  }
401
- /** Retrieves the DOM element of the component host. */
402
- _getHostElement() {
403
- return this._element.nativeElement;
373
+ }
374
+ _handleFocus() {
375
+ this.selectionList._setFocusedOption(this);
376
+ this._hasFocus = true;
377
+ }
378
+ _handleBlur() {
379
+ this.selectionList._onTouched();
380
+ this._hasFocus = false;
381
+ }
382
+ /** Retrieves the DOM element of the component host. */
383
+ _getHostElement() {
384
+ return this._element.nativeElement;
385
+ }
386
+ /** Sets the selected state of the option. Returns whether the value has changed. */
387
+ _setSelected(selected) {
388
+ if (selected === this._selected) {
389
+ return false;
404
390
  }
405
- /** Sets the selected state of the option. Returns whether the value has changed. */
406
- _setSelected(selected) {
407
- if (selected === this._selected) {
408
- return false;
409
- }
410
- this._selected = selected;
411
- if (selected) {
412
- this.selectionList.selectedOptions.select(this);
413
- }
414
- else {
415
- this.selectionList.selectedOptions.deselect(this);
416
- }
417
- this._changeDetector.markForCheck();
418
- return true;
391
+ this._selected = selected;
392
+ if (selected) {
393
+ this.selectionList.selectedOptions.select(this);
419
394
  }
420
- /**
421
- * Notifies Angular that the option needs to be checked in the next change detection run. Mainly
422
- * used to trigger an update of the list option if the disabled state of the selection list
423
- * changed.
424
- */
425
- _markForCheck() {
426
- this._changeDetector.markForCheck();
395
+ else {
396
+ this.selectionList.selectedOptions.deselect(this);
427
397
  }
398
+ this._changeDetector.markForCheck();
399
+ return true;
400
+ }
401
+ /**
402
+ * Notifies Angular that the option needs to be checked in the next change detection run. Mainly
403
+ * used to trigger an update of the list option if the disabled state of the selection list
404
+ * changed.
405
+ */
406
+ _markForCheck() {
407
+ this._changeDetector.markForCheck();
428
408
  }
429
- MatListOption.decorators = [
430
- { type: Component, args: [{
431
- selector: 'mat-list-option',
432
- exportAs: 'matListOption',
433
- inputs: ['disableRipple'],
434
- host: {
435
- 'role': 'option',
436
- 'class': 'mat-list-item mat-list-option mat-focus-indicator',
437
- '(focus)': '_handleFocus()',
438
- '(blur)': '_handleBlur()',
439
- '(click)': '_handleClick()',
440
- '[class.mat-list-item-disabled]': 'disabled',
441
- '[class.mat-list-item-with-avatar]': '_avatar || _icon',
442
- // Manually set the "primary" or "warn" class if the color has been explicitly
443
- // set to "primary" or "warn". The pseudo checkbox picks up these classes for
444
- // its theme.
445
- '[class.mat-primary]': 'color === "primary"',
446
- // Even though accent is the default, we need to set this class anyway, because the list might
447
- // be placed inside a parent that has one of the other colors with a higher specificity.
448
- '[class.mat-accent]': 'color !== "primary" && color !== "warn"',
449
- '[class.mat-warn]': 'color === "warn"',
450
- '[class.mat-list-single-selected-option]': 'selected && !selectionList.multiple',
451
- '[attr.aria-selected]': 'selected',
452
- '[attr.aria-disabled]': 'disabled',
453
- '[attr.tabindex]': '-1',
454
- },
455
- template: "<div class=\"mat-list-item-content\"\n [class.mat-list-item-content-reverse]=\"checkboxPosition == 'after'\">\n\n <div mat-ripple\n class=\"mat-list-item-ripple\"\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"_isRippleDisabled()\"></div>\n\n <mat-pseudo-checkbox\n *ngIf=\"selectionList.multiple\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\"></mat-pseudo-checkbox>\n\n <div class=\"mat-list-text\" #text><ng-content></ng-content></div>\n\n <ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\">\n </ng-content>\n\n</div>\n",
456
- encapsulation: ViewEncapsulation.None,
457
- changeDetection: ChangeDetectionStrategy.OnPush
458
- },] }
459
- ];
460
- MatListOption.ctorParameters = () => [
461
- { type: ElementRef },
462
- { type: ChangeDetectorRef },
463
- { type: MatSelectionList, decorators: [{ type: Inject, args: [forwardRef(() => MatSelectionList),] }] }
464
- ];
465
- MatListOption.propDecorators = {
466
- _avatar: [{ type: ContentChild, args: [MatListAvatarCssMatStyler,] }],
467
- _icon: [{ type: ContentChild, args: [MatListIconCssMatStyler,] }],
468
- _lines: [{ type: ContentChildren, args: [MatLine, { descendants: true },] }],
469
- _text: [{ type: ViewChild, args: ['text',] }],
470
- checkboxPosition: [{ type: Input }],
471
- color: [{ type: Input }],
472
- value: [{ type: Input }],
473
- disabled: [{ type: Input }],
474
- selected: [{ type: Input }]
475
- };
476
- return MatListOption;
477
- })();
409
+ }
410
+ MatListOption.decorators = [
411
+ { type: Component, args: [{
412
+ selector: 'mat-list-option',
413
+ exportAs: 'matListOption',
414
+ inputs: ['disableRipple'],
415
+ host: {
416
+ 'role': 'option',
417
+ 'class': 'mat-list-item mat-list-option mat-focus-indicator',
418
+ '(focus)': '_handleFocus()',
419
+ '(blur)': '_handleBlur()',
420
+ '(click)': '_handleClick()',
421
+ '[class.mat-list-item-disabled]': 'disabled',
422
+ '[class.mat-list-item-with-avatar]': '_avatar || _icon',
423
+ // Manually set the "primary" or "warn" class if the color has been explicitly
424
+ // set to "primary" or "warn". The pseudo checkbox picks up these classes for
425
+ // its theme.
426
+ '[class.mat-primary]': 'color === "primary"',
427
+ // Even though accent is the default, we need to set this class anyway, because the list might
428
+ // be placed inside a parent that has one of the other colors with a higher specificity.
429
+ '[class.mat-accent]': 'color !== "primary" && color !== "warn"',
430
+ '[class.mat-warn]': 'color === "warn"',
431
+ '[class.mat-list-single-selected-option]': 'selected && !selectionList.multiple',
432
+ '[attr.aria-selected]': 'selected',
433
+ '[attr.aria-disabled]': 'disabled',
434
+ '[attr.tabindex]': '-1',
435
+ },
436
+ template: "<div class=\"mat-list-item-content\"\n [class.mat-list-item-content-reverse]=\"checkboxPosition == 'after'\">\n\n <div mat-ripple\n class=\"mat-list-item-ripple\"\n [matRippleTrigger]=\"_getHostElement()\"\n [matRippleDisabled]=\"_isRippleDisabled()\"></div>\n\n <mat-pseudo-checkbox\n *ngIf=\"selectionList.multiple\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\"></mat-pseudo-checkbox>\n\n <div class=\"mat-list-text\" #text><ng-content></ng-content></div>\n\n <ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\">\n </ng-content>\n\n</div>\n",
437
+ encapsulation: ViewEncapsulation.None,
438
+ changeDetection: ChangeDetectionStrategy.OnPush
439
+ },] }
440
+ ];
441
+ MatListOption.ctorParameters = () => [
442
+ { type: ElementRef },
443
+ { type: ChangeDetectorRef },
444
+ { type: MatSelectionList, decorators: [{ type: Inject, args: [forwardRef(() => MatSelectionList),] }] }
445
+ ];
446
+ MatListOption.propDecorators = {
447
+ _avatar: [{ type: ContentChild, args: [MatListAvatarCssMatStyler,] }],
448
+ _icon: [{ type: ContentChild, args: [MatListIconCssMatStyler,] }],
449
+ _lines: [{ type: ContentChildren, args: [MatLine, { descendants: true },] }],
450
+ _text: [{ type: ViewChild, args: ['text',] }],
451
+ checkboxPosition: [{ type: Input }],
452
+ color: [{ type: Input }],
453
+ value: [{ type: Input }],
454
+ disabled: [{ type: Input }],
455
+ selected: [{ type: Input }]
456
+ };
478
457
  /**
479
458
  * Material Design list component where each item is a selectable option. Behaves as a listbox.
480
459
  */
481
- let MatSelectionList = /** @class */ (() => {
482
- class MatSelectionList extends _MatSelectionListMixinBase {
483
- constructor(_element,
484
- // @breaking-change 11.0.0 Remove `tabIndex` parameter.
485
- tabIndex, _changeDetector) {
486
- super();
487
- this._element = _element;
488
- this._changeDetector = _changeDetector;
489
- this._multiple = true;
490
- this._contentInitialized = false;
491
- /** Emits a change event whenever the selected state of an option changes. */
492
- this.selectionChange = new EventEmitter();
493
- /**
494
- * Tabindex of the selection list.
495
- * @breaking-change 11.0.0 Remove `tabIndex` input.
496
- */
497
- this.tabIndex = 0;
498
- /** Theme color of the selection list. This sets the checkbox color for all list options. */
499
- this.color = 'accent';
500
- /**
501
- * Function used for comparing an option against the selected value when determining which
502
- * options should appear as selected. The first argument is the value of an options. The second
503
- * one is a value from the selected value. A boolean must be returned.
504
- */
505
- this.compareWith = (a1, a2) => a1 === a2;
506
- this._disabled = false;
507
- /** The currently selected options. */
508
- this.selectedOptions = new SelectionModel(this._multiple);
509
- /** The tabindex of the selection list. */
510
- this._tabIndex = -1;
511
- /** View to model callback that should be called whenever the selected options change. */
512
- this._onChange = (_) => { };
513
- /** Emits when the list has been destroyed. */
514
- this._destroyed = new Subject();
515
- /** View to model callback that should be called if the list or its options lost focus. */
516
- this._onTouched = () => { };
517
- }
518
- /** Whether the selection list is disabled. */
519
- get disabled() { return this._disabled; }
520
- set disabled(value) {
521
- this._disabled = coerceBooleanProperty(value);
522
- // The `MatSelectionList` and `MatListOption` are using the `OnPush` change detection
523
- // strategy. Therefore the options will not check for any changes if the `MatSelectionList`
524
- // changed its state. Since we know that a change to `disabled` property of the list affects
525
- // the state of the options, we manually mark each option for check.
526
- this._markOptionsForCheck();
527
- }
528
- /** Whether selection is limited to one or multiple items (default multiple). */
529
- get multiple() { return this._multiple; }
530
- set multiple(value) {
531
- const newValue = coerceBooleanProperty(value);
532
- if (newValue !== this._multiple) {
533
- if (isDevMode() && this._contentInitialized) {
534
- throw new Error('Cannot change `multiple` mode of mat-selection-list after initialization.');
535
- }
536
- this._multiple = newValue;
537
- this.selectedOptions = new SelectionModel(this._multiple, this.selectedOptions.selected);
460
+ class MatSelectionList extends _MatSelectionListMixinBase {
461
+ constructor(_element,
462
+ // @breaking-change 11.0.0 Remove `tabIndex` parameter.
463
+ tabIndex, _changeDetector) {
464
+ super();
465
+ this._element = _element;
466
+ this._changeDetector = _changeDetector;
467
+ this._multiple = true;
468
+ this._contentInitialized = false;
469
+ /** Emits a change event whenever the selected state of an option changes. */
470
+ this.selectionChange = new EventEmitter();
471
+ /**
472
+ * Tabindex of the selection list.
473
+ * @breaking-change 11.0.0 Remove `tabIndex` input.
474
+ */
475
+ this.tabIndex = 0;
476
+ /** Theme color of the selection list. This sets the checkbox color for all list options. */
477
+ this.color = 'accent';
478
+ /**
479
+ * Function used for comparing an option against the selected value when determining which
480
+ * options should appear as selected. The first argument is the value of an options. The second
481
+ * one is a value from the selected value. A boolean must be returned.
482
+ */
483
+ this.compareWith = (a1, a2) => a1 === a2;
484
+ this._disabled = false;
485
+ /** The currently selected options. */
486
+ this.selectedOptions = new SelectionModel(this._multiple);
487
+ /** The tabindex of the selection list. */
488
+ this._tabIndex = -1;
489
+ /** View to model callback that should be called whenever the selected options change. */
490
+ this._onChange = (_) => { };
491
+ /** Emits when the list has been destroyed. */
492
+ this._destroyed = new Subject();
493
+ /** View to model callback that should be called if the list or its options lost focus. */
494
+ this._onTouched = () => { };
495
+ }
496
+ /** Whether the selection list is disabled. */
497
+ get disabled() { return this._disabled; }
498
+ set disabled(value) {
499
+ this._disabled = coerceBooleanProperty(value);
500
+ // The `MatSelectionList` and `MatListOption` are using the `OnPush` change detection
501
+ // strategy. Therefore the options will not check for any changes if the `MatSelectionList`
502
+ // changed its state. Since we know that a change to `disabled` property of the list affects
503
+ // the state of the options, we manually mark each option for check.
504
+ this._markOptionsForCheck();
505
+ }
506
+ /** Whether selection is limited to one or multiple items (default multiple). */
507
+ get multiple() { return this._multiple; }
508
+ set multiple(value) {
509
+ const newValue = coerceBooleanProperty(value);
510
+ if (newValue !== this._multiple) {
511
+ if (isDevMode() && this._contentInitialized) {
512
+ throw new Error('Cannot change `multiple` mode of mat-selection-list after initialization.');
538
513
  }
514
+ this._multiple = newValue;
515
+ this.selectedOptions = new SelectionModel(this._multiple, this.selectedOptions.selected);
539
516
  }
540
- ngAfterContentInit() {
541
- this._contentInitialized = true;
542
- this._keyManager = new FocusKeyManager(this.options)
543
- .withWrap()
544
- .withTypeAhead()
545
- // Allow disabled items to be focusable. For accessibility reasons, there must be a way for
546
- // screenreader users, that allows reading the different options of the list.
547
- .skipPredicate(() => false)
548
- .withAllowedModifierKeys(['shiftKey']);
549
- if (this._value) {
550
- this._setOptionsFromValues(this._value);
551
- }
552
- // If the user attempts to tab out of the selection list, allow focus to escape.
553
- this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {
554
- this._allowFocusEscape();
555
- });
556
- // When the number of options change, update the tabindex of the selection list.
557
- this.options.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
558
- this._updateTabIndex();
559
- });
560
- // Sync external changes to the model back to the options.
561
- this.selectedOptions.changed.pipe(takeUntil(this._destroyed)).subscribe(event => {
562
- if (event.added) {
563
- for (let item of event.added) {
564
- item.selected = true;
565
- }
566
- }
567
- if (event.removed) {
568
- for (let item of event.removed) {
569
- item.selected = false;
570
- }
517
+ }
518
+ ngAfterContentInit() {
519
+ this._contentInitialized = true;
520
+ this._keyManager = new FocusKeyManager(this.options)
521
+ .withWrap()
522
+ .withTypeAhead()
523
+ // Allow disabled items to be focusable. For accessibility reasons, there must be a way for
524
+ // screenreader users, that allows reading the different options of the list.
525
+ .skipPredicate(() => false)
526
+ .withAllowedModifierKeys(['shiftKey']);
527
+ if (this._value) {
528
+ this._setOptionsFromValues(this._value);
529
+ }
530
+ // If the user attempts to tab out of the selection list, allow focus to escape.
531
+ this._keyManager.tabOut.pipe(takeUntil(this._destroyed)).subscribe(() => {
532
+ this._allowFocusEscape();
533
+ });
534
+ // When the number of options change, update the tabindex of the selection list.
535
+ this.options.changes.pipe(startWith(null), takeUntil(this._destroyed)).subscribe(() => {
536
+ this._updateTabIndex();
537
+ });
538
+ // Sync external changes to the model back to the options.
539
+ this.selectedOptions.changed.pipe(takeUntil(this._destroyed)).subscribe(event => {
540
+ if (event.added) {
541
+ for (let item of event.added) {
542
+ item.selected = true;
571
543
  }
572
- });
573
- }
574
- ngOnChanges(changes) {
575
- const disableRippleChanges = changes['disableRipple'];
576
- const colorChanges = changes['color'];
577
- if ((disableRippleChanges && !disableRippleChanges.firstChange) ||
578
- (colorChanges && !colorChanges.firstChange)) {
579
- this._markOptionsForCheck();
580
544
  }
581
- }
582
- ngOnDestroy() {
583
- this._destroyed.next();
584
- this._destroyed.complete();
585
- this._isDestroyed = true;
586
- }
587
- /** Focuses the selection list. */
588
- focus(options) {
589
- this._element.nativeElement.focus(options);
590
- }
591
- /** Selects all of the options. */
592
- selectAll() {
593
- this._setAllOptionsSelected(true);
594
- }
595
- /** Deselects all of the options. */
596
- deselectAll() {
597
- this._setAllOptionsSelected(false);
598
- }
599
- /** Sets the focused option of the selection-list. */
600
- _setFocusedOption(option) {
601
- this._keyManager.updateActiveItem(option);
602
- }
603
- /**
604
- * Removes an option from the selection list and updates the active item.
605
- * @returns Currently-active item.
606
- */
607
- _removeOptionFromList(option) {
608
- const optionIndex = this._getOptionIndex(option);
609
- if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) {
610
- // Check whether the option is the last item
611
- if (optionIndex > 0) {
612
- this._keyManager.updateActiveItem(optionIndex - 1);
613
- }
614
- else if (optionIndex === 0 && this.options.length > 1) {
615
- this._keyManager.updateActiveItem(Math.min(optionIndex + 1, this.options.length - 1));
545
+ if (event.removed) {
546
+ for (let item of event.removed) {
547
+ item.selected = false;
616
548
  }
617
549
  }
618
- return this._keyManager.activeItem;
550
+ });
551
+ }
552
+ ngOnChanges(changes) {
553
+ const disableRippleChanges = changes['disableRipple'];
554
+ const colorChanges = changes['color'];
555
+ if ((disableRippleChanges && !disableRippleChanges.firstChange) ||
556
+ (colorChanges && !colorChanges.firstChange)) {
557
+ this._markOptionsForCheck();
619
558
  }
620
- /** Passes relevant key presses to our key manager. */
621
- _keydown(event) {
622
- const keyCode = event.keyCode;
623
- const manager = this._keyManager;
624
- const previousFocusIndex = manager.activeItemIndex;
625
- const hasModifier = hasModifierKey(event);
626
- switch (keyCode) {
627
- case SPACE:
628
- case ENTER:
629
- if (!hasModifier && !manager.isTyping()) {
630
- this._toggleFocusedOption();
631
- // Always prevent space from scrolling the page since the list has focus
632
- event.preventDefault();
633
- }
634
- break;
635
- case HOME:
636
- case END:
637
- if (!hasModifier) {
638
- keyCode === HOME ? manager.setFirstItemActive() : manager.setLastItemActive();
639
- event.preventDefault();
640
- }
641
- break;
642
- default:
643
- // The "A" key gets special treatment, because it's used for the "select all" functionality.
644
- if (keyCode === A && this.multiple && hasModifierKey(event, 'ctrlKey') &&
645
- !manager.isTyping()) {
646
- const shouldSelect = this.options.some(option => !option.disabled && !option.selected);
647
- this._setAllOptionsSelected(shouldSelect, true);
648
- event.preventDefault();
649
- }
650
- else {
651
- manager.onKeydown(event);
652
- }
653
- }
654
- if (this.multiple && (keyCode === UP_ARROW || keyCode === DOWN_ARROW) && event.shiftKey &&
655
- manager.activeItemIndex !== previousFocusIndex) {
656
- this._toggleFocusedOption();
559
+ }
560
+ ngOnDestroy() {
561
+ this._destroyed.next();
562
+ this._destroyed.complete();
563
+ this._isDestroyed = true;
564
+ }
565
+ /** Focuses the selection list. */
566
+ focus(options) {
567
+ this._element.nativeElement.focus(options);
568
+ }
569
+ /** Selects all of the options. */
570
+ selectAll() {
571
+ this._setAllOptionsSelected(true);
572
+ }
573
+ /** Deselects all of the options. */
574
+ deselectAll() {
575
+ this._setAllOptionsSelected(false);
576
+ }
577
+ /** Sets the focused option of the selection-list. */
578
+ _setFocusedOption(option) {
579
+ this._keyManager.updateActiveItem(option);
580
+ }
581
+ /**
582
+ * Removes an option from the selection list and updates the active item.
583
+ * @returns Currently-active item.
584
+ */
585
+ _removeOptionFromList(option) {
586
+ const optionIndex = this._getOptionIndex(option);
587
+ if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) {
588
+ // Check whether the option is the last item
589
+ if (optionIndex > 0) {
590
+ this._keyManager.updateActiveItem(optionIndex - 1);
657
591
  }
658
- }
659
- /** Reports a value change to the ControlValueAccessor */
660
- _reportValueChange() {
661
- // Stop reporting value changes after the list has been destroyed. This avoids
662
- // cases where the list might wrongly reset its value once it is removed, but
663
- // the form control is still live.
664
- if (this.options && !this._isDestroyed) {
665
- const value = this._getSelectedOptionValues();
666
- this._onChange(value);
667
- this._value = value;
592
+ else if (optionIndex === 0 && this.options.length > 1) {
593
+ this._keyManager.updateActiveItem(Math.min(optionIndex + 1, this.options.length - 1));
668
594
  }
669
595
  }
670
- /** Emits a change event if the selected state of an option changed. */
671
- _emitChangeEvent(option) {
672
- this.selectionChange.emit(new MatSelectionListChange(this, option));
673
- }
674
- /**
675
- * When the selection list is focused, we want to move focus to an option within the list. Do this
676
- * by setting the appropriate option to be active.
677
- */
678
- _onFocus() {
679
- const activeIndex = this._keyManager.activeItemIndex;
680
- if (!activeIndex || (activeIndex === -1)) {
681
- // If there is no active index, set focus to the first option.
682
- this._keyManager.setFirstItemActive();
683
- }
684
- else {
685
- // Otherwise, set focus to the active option.
686
- this._keyManager.setActiveItem(activeIndex);
687
- }
596
+ return this._keyManager.activeItem;
597
+ }
598
+ /** Passes relevant key presses to our key manager. */
599
+ _keydown(event) {
600
+ const keyCode = event.keyCode;
601
+ const manager = this._keyManager;
602
+ const previousFocusIndex = manager.activeItemIndex;
603
+ const hasModifier = hasModifierKey(event);
604
+ switch (keyCode) {
605
+ case SPACE:
606
+ case ENTER:
607
+ if (!hasModifier && !manager.isTyping()) {
608
+ this._toggleFocusedOption();
609
+ // Always prevent space from scrolling the page since the list has focus
610
+ event.preventDefault();
611
+ }
612
+ break;
613
+ case HOME:
614
+ case END:
615
+ if (!hasModifier) {
616
+ keyCode === HOME ? manager.setFirstItemActive() : manager.setLastItemActive();
617
+ event.preventDefault();
618
+ }
619
+ break;
620
+ default:
621
+ // The "A" key gets special treatment, because it's used for the "select all" functionality.
622
+ if (keyCode === A && this.multiple && hasModifierKey(event, 'ctrlKey') &&
623
+ !manager.isTyping()) {
624
+ const shouldSelect = this.options.some(option => !option.disabled && !option.selected);
625
+ this._setAllOptionsSelected(shouldSelect, true);
626
+ event.preventDefault();
627
+ }
628
+ else {
629
+ manager.onKeydown(event);
630
+ }
688
631
  }
689
- /** Implemented as part of ControlValueAccessor. */
690
- writeValue(values) {
691
- this._value = values;
692
- if (this.options) {
693
- this._setOptionsFromValues(values || []);
694
- }
632
+ if (this.multiple && (keyCode === UP_ARROW || keyCode === DOWN_ARROW) && event.shiftKey &&
633
+ manager.activeItemIndex !== previousFocusIndex) {
634
+ this._toggleFocusedOption();
695
635
  }
696
- /** Implemented as a part of ControlValueAccessor. */
697
- setDisabledState(isDisabled) {
698
- this.disabled = isDisabled;
636
+ }
637
+ /** Reports a value change to the ControlValueAccessor */
638
+ _reportValueChange() {
639
+ // Stop reporting value changes after the list has been destroyed. This avoids
640
+ // cases where the list might wrongly reset its value once it is removed, but
641
+ // the form control is still live.
642
+ if (this.options && !this._isDestroyed) {
643
+ const value = this._getSelectedOptionValues();
644
+ this._onChange(value);
645
+ this._value = value;
699
646
  }
700
- /** Implemented as part of ControlValueAccessor. */
701
- registerOnChange(fn) {
702
- this._onChange = fn;
647
+ }
648
+ /** Emits a change event if the selected state of an option changed. */
649
+ _emitChangeEvent(option) {
650
+ this.selectionChange.emit(new MatSelectionListChange(this, option));
651
+ }
652
+ /**
653
+ * When the selection list is focused, we want to move focus to an option within the list. Do this
654
+ * by setting the appropriate option to be active.
655
+ */
656
+ _onFocus() {
657
+ const activeIndex = this._keyManager.activeItemIndex;
658
+ if (!activeIndex || (activeIndex === -1)) {
659
+ // If there is no active index, set focus to the first option.
660
+ this._keyManager.setFirstItemActive();
661
+ }
662
+ else {
663
+ // Otherwise, set focus to the active option.
664
+ this._keyManager.setActiveItem(activeIndex);
703
665
  }
704
- /** Implemented as part of ControlValueAccessor. */
705
- registerOnTouched(fn) {
706
- this._onTouched = fn;
666
+ }
667
+ /** Implemented as part of ControlValueAccessor. */
668
+ writeValue(values) {
669
+ this._value = values;
670
+ if (this.options) {
671
+ this._setOptionsFromValues(values || []);
707
672
  }
708
- /** Sets the selected options based on the specified values. */
709
- _setOptionsFromValues(values) {
710
- this.options.forEach(option => option._setSelected(false));
711
- values.forEach(value => {
712
- const correspondingOption = this.options.find(option => {
713
- // Skip options that are already in the model. This allows us to handle cases
714
- // where the same primitive value is selected multiple times.
715
- return option.selected ? false : this.compareWith(option.value, value);
716
- });
717
- if (correspondingOption) {
718
- correspondingOption._setSelected(true);
719
- }
673
+ }
674
+ /** Implemented as a part of ControlValueAccessor. */
675
+ setDisabledState(isDisabled) {
676
+ this.disabled = isDisabled;
677
+ }
678
+ /** Implemented as part of ControlValueAccessor. */
679
+ registerOnChange(fn) {
680
+ this._onChange = fn;
681
+ }
682
+ /** Implemented as part of ControlValueAccessor. */
683
+ registerOnTouched(fn) {
684
+ this._onTouched = fn;
685
+ }
686
+ /** Sets the selected options based on the specified values. */
687
+ _setOptionsFromValues(values) {
688
+ this.options.forEach(option => option._setSelected(false));
689
+ values.forEach(value => {
690
+ const correspondingOption = this.options.find(option => {
691
+ // Skip options that are already in the model. This allows us to handle cases
692
+ // where the same primitive value is selected multiple times.
693
+ return option.selected ? false : this.compareWith(option.value, value);
720
694
  });
721
- }
722
- /** Returns the values of the selected options. */
723
- _getSelectedOptionValues() {
724
- return this.options.filter(option => option.selected).map(option => option.value);
725
- }
726
- /** Toggles the state of the currently focused option if enabled. */
727
- _toggleFocusedOption() {
728
- let focusedIndex = this._keyManager.activeItemIndex;
729
- if (focusedIndex != null && this._isValidIndex(focusedIndex)) {
730
- let focusedOption = this.options.toArray()[focusedIndex];
731
- if (focusedOption && !focusedOption.disabled && (this._multiple || !focusedOption.selected)) {
732
- focusedOption.toggle();
733
- // Emit a change event because the focused option changed its state through user
734
- // interaction.
735
- this._emitChangeEvent(focusedOption);
736
- }
695
+ if (correspondingOption) {
696
+ correspondingOption._setSelected(true);
737
697
  }
738
- }
739
- /**
740
- * Sets the selected state on all of the options
741
- * and emits an event if anything changed.
742
- */
743
- _setAllOptionsSelected(isSelected, skipDisabled) {
744
- // Keep track of whether anything changed, because we only want to
745
- // emit the changed event when something actually changed.
746
- let hasChanged = false;
747
- this.options.forEach(option => {
748
- if ((!skipDisabled || !option.disabled) && option._setSelected(isSelected)) {
749
- hasChanged = true;
750
- }
751
- });
752
- if (hasChanged) {
753
- this._reportValueChange();
698
+ });
699
+ }
700
+ /** Returns the values of the selected options. */
701
+ _getSelectedOptionValues() {
702
+ return this.options.filter(option => option.selected).map(option => option.value);
703
+ }
704
+ /** Toggles the state of the currently focused option if enabled. */
705
+ _toggleFocusedOption() {
706
+ let focusedIndex = this._keyManager.activeItemIndex;
707
+ if (focusedIndex != null && this._isValidIndex(focusedIndex)) {
708
+ let focusedOption = this.options.toArray()[focusedIndex];
709
+ if (focusedOption && !focusedOption.disabled && (this._multiple || !focusedOption.selected)) {
710
+ focusedOption.toggle();
711
+ // Emit a change event because the focused option changed its state through user
712
+ // interaction.
713
+ this._emitChangeEvent(focusedOption);
754
714
  }
755
715
  }
756
- /**
757
- * Utility to ensure all indexes are valid.
758
- * @param index The index to be checked.
759
- * @returns True if the index is valid for our list of options.
760
- */
761
- _isValidIndex(index) {
762
- return index >= 0 && index < this.options.length;
763
- }
764
- /** Returns the index of the specified list option. */
765
- _getOptionIndex(option) {
766
- return this.options.toArray().indexOf(option);
767
- }
768
- /** Marks all the options to be checked in the next change detection run. */
769
- _markOptionsForCheck() {
770
- if (this.options) {
771
- this.options.forEach(option => option._markForCheck());
716
+ }
717
+ /**
718
+ * Sets the selected state on all of the options
719
+ * and emits an event if anything changed.
720
+ */
721
+ _setAllOptionsSelected(isSelected, skipDisabled) {
722
+ // Keep track of whether anything changed, because we only want to
723
+ // emit the changed event when something actually changed.
724
+ let hasChanged = false;
725
+ this.options.forEach(option => {
726
+ if ((!skipDisabled || !option.disabled) && option._setSelected(isSelected)) {
727
+ hasChanged = true;
772
728
  }
729
+ });
730
+ if (hasChanged) {
731
+ this._reportValueChange();
773
732
  }
774
- /**
775
- * Removes the tabindex from the selection list and resets it back afterwards, allowing the user
776
- * to tab out of it. This prevents the list from capturing focus and redirecting it back within
777
- * the list, creating a focus trap if it user tries to tab away.
778
- */
779
- _allowFocusEscape() {
780
- this._tabIndex = -1;
781
- setTimeout(() => {
782
- this._tabIndex = 0;
783
- this._changeDetector.markForCheck();
784
- });
785
- }
786
- /** Updates the tabindex based upon if the selection list is empty. */
787
- _updateTabIndex() {
788
- this._tabIndex = (this.options.length === 0) ? -1 : 0;
733
+ }
734
+ /**
735
+ * Utility to ensure all indexes are valid.
736
+ * @param index The index to be checked.
737
+ * @returns True if the index is valid for our list of options.
738
+ */
739
+ _isValidIndex(index) {
740
+ return index >= 0 && index < this.options.length;
741
+ }
742
+ /** Returns the index of the specified list option. */
743
+ _getOptionIndex(option) {
744
+ return this.options.toArray().indexOf(option);
745
+ }
746
+ /** Marks all the options to be checked in the next change detection run. */
747
+ _markOptionsForCheck() {
748
+ if (this.options) {
749
+ this.options.forEach(option => option._markForCheck());
789
750
  }
790
751
  }
791
- MatSelectionList.decorators = [
792
- { type: Component, args: [{
793
- selector: 'mat-selection-list',
794
- exportAs: 'matSelectionList',
795
- inputs: ['disableRipple'],
796
- host: {
797
- 'role': 'listbox',
798
- 'class': 'mat-selection-list mat-list-base',
799
- '(focus)': '_onFocus()',
800
- '(keydown)': '_keydown($event)',
801
- '[attr.aria-multiselectable]': 'multiple',
802
- '[attr.aria-disabled]': 'disabled.toString()',
803
- '[attr.tabindex]': '_tabIndex',
804
- },
805
- template: '<ng-content></ng-content>',
806
- encapsulation: ViewEncapsulation.None,
807
- providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR],
808
- changeDetection: ChangeDetectionStrategy.OnPush,
809
- styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
810
- },] }
811
- ];
812
- MatSelectionList.ctorParameters = () => [
813
- { type: ElementRef },
814
- { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
815
- { type: ChangeDetectorRef }
816
- ];
817
- MatSelectionList.propDecorators = {
818
- options: [{ type: ContentChildren, args: [MatListOption, { descendants: true },] }],
819
- selectionChange: [{ type: Output }],
820
- tabIndex: [{ type: Input }],
821
- color: [{ type: Input }],
822
- compareWith: [{ type: Input }],
823
- disabled: [{ type: Input }],
824
- multiple: [{ type: Input }]
825
- };
826
- return MatSelectionList;
827
- })();
752
+ /**
753
+ * Removes the tabindex from the selection list and resets it back afterwards, allowing the user
754
+ * to tab out of it. This prevents the list from capturing focus and redirecting it back within
755
+ * the list, creating a focus trap if it user tries to tab away.
756
+ */
757
+ _allowFocusEscape() {
758
+ this._tabIndex = -1;
759
+ setTimeout(() => {
760
+ this._tabIndex = 0;
761
+ this._changeDetector.markForCheck();
762
+ });
763
+ }
764
+ /** Updates the tabindex based upon if the selection list is empty. */
765
+ _updateTabIndex() {
766
+ this._tabIndex = (this.options.length === 0) ? -1 : 0;
767
+ }
768
+ }
769
+ MatSelectionList.decorators = [
770
+ { type: Component, args: [{
771
+ selector: 'mat-selection-list',
772
+ exportAs: 'matSelectionList',
773
+ inputs: ['disableRipple'],
774
+ host: {
775
+ 'role': 'listbox',
776
+ 'class': 'mat-selection-list mat-list-base',
777
+ '(focus)': '_onFocus()',
778
+ '(keydown)': '_keydown($event)',
779
+ '[attr.aria-multiselectable]': 'multiple',
780
+ '[attr.aria-disabled]': 'disabled.toString()',
781
+ '[attr.tabindex]': '_tabIndex',
782
+ },
783
+ template: '<ng-content></ng-content>',
784
+ encapsulation: ViewEncapsulation.None,
785
+ providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR],
786
+ changeDetection: ChangeDetectionStrategy.OnPush,
787
+ styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
788
+ },] }
789
+ ];
790
+ MatSelectionList.ctorParameters = () => [
791
+ { type: ElementRef },
792
+ { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
793
+ { type: ChangeDetectorRef }
794
+ ];
795
+ MatSelectionList.propDecorators = {
796
+ options: [{ type: ContentChildren, args: [MatListOption, { descendants: true },] }],
797
+ selectionChange: [{ type: Output }],
798
+ tabIndex: [{ type: Input }],
799
+ color: [{ type: Input }],
800
+ compareWith: [{ type: Input }],
801
+ disabled: [{ type: Input }],
802
+ multiple: [{ type: Input }]
803
+ };
828
804
 
829
805
  /**
830
806
  * @license
@@ -833,40 +809,37 @@ let MatSelectionList = /** @class */ (() => {
833
809
  * Use of this source code is governed by an MIT-style license that can be
834
810
  * found in the LICENSE file at https://angular.io/license
835
811
  */
836
- let MatListModule = /** @class */ (() => {
837
- class MatListModule {
838
- }
839
- MatListModule.decorators = [
840
- { type: NgModule, args: [{
841
- imports: [MatLineModule, MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, CommonModule],
842
- exports: [
843
- MatList,
844
- MatNavList,
845
- MatListItem,
846
- MatListAvatarCssMatStyler,
847
- MatLineModule,
848
- MatCommonModule,
849
- MatListIconCssMatStyler,
850
- MatListSubheaderCssMatStyler,
851
- MatPseudoCheckboxModule,
852
- MatSelectionList,
853
- MatListOption,
854
- MatDividerModule
855
- ],
856
- declarations: [
857
- MatList,
858
- MatNavList,
859
- MatListItem,
860
- MatListAvatarCssMatStyler,
861
- MatListIconCssMatStyler,
862
- MatListSubheaderCssMatStyler,
863
- MatSelectionList,
864
- MatListOption
865
- ],
866
- },] }
867
- ];
868
- return MatListModule;
869
- })();
812
+ class MatListModule {
813
+ }
814
+ MatListModule.decorators = [
815
+ { type: NgModule, args: [{
816
+ imports: [MatLineModule, MatRippleModule, MatCommonModule, MatPseudoCheckboxModule, CommonModule],
817
+ exports: [
818
+ MatList,
819
+ MatNavList,
820
+ MatListItem,
821
+ MatListAvatarCssMatStyler,
822
+ MatLineModule,
823
+ MatCommonModule,
824
+ MatListIconCssMatStyler,
825
+ MatListSubheaderCssMatStyler,
826
+ MatPseudoCheckboxModule,
827
+ MatSelectionList,
828
+ MatListOption,
829
+ MatDividerModule
830
+ ],
831
+ declarations: [
832
+ MatList,
833
+ MatNavList,
834
+ MatListItem,
835
+ MatListAvatarCssMatStyler,
836
+ MatListIconCssMatStyler,
837
+ MatListSubheaderCssMatStyler,
838
+ MatSelectionList,
839
+ MatListOption
840
+ ],
841
+ },] }
842
+ ];
870
843
 
871
844
  /**
872
845
  * @license