@angular/material 11.0.0-rc.4 → 11.0.3

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 (367) hide show
  1. package/_theming.scss +31 -1
  2. package/autocomplete/autocomplete.d.ts +6 -0
  3. package/autocomplete/index.metadata.json +1 -1
  4. package/bottom-sheet/index.metadata.json +1 -1
  5. package/bundles/material-autocomplete-testing.umd.js +5 -5
  6. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  7. package/bundles/material-autocomplete-testing.umd.min.js +1 -1
  8. package/bundles/material-autocomplete-testing.umd.min.js.map +1 -1
  9. package/bundles/material-autocomplete.umd.js +17 -7
  10. package/bundles/material-autocomplete.umd.js.map +1 -1
  11. package/bundles/material-autocomplete.umd.min.js +3 -3
  12. package/bundles/material-autocomplete.umd.min.js.map +1 -1
  13. package/bundles/material-badge-testing.umd.js +5 -5
  14. package/bundles/material-badge-testing.umd.js.map +1 -1
  15. package/bundles/material-badge-testing.umd.min.js +1 -1
  16. package/bundles/material-badge-testing.umd.min.js.map +1 -1
  17. package/bundles/material-badge.umd.js +5 -5
  18. package/bundles/material-badge.umd.js.map +1 -1
  19. package/bundles/material-badge.umd.min.js +1 -1
  20. package/bundles/material-badge.umd.min.js.map +1 -1
  21. package/bundles/material-bottom-sheet-testing.umd.js +5 -5
  22. package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
  23. package/bundles/material-bottom-sheet-testing.umd.min.js +1 -1
  24. package/bundles/material-bottom-sheet-testing.umd.min.js.map +1 -1
  25. package/bundles/material-bottom-sheet.umd.js +10 -6
  26. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  27. package/bundles/material-bottom-sheet.umd.min.js +1 -1
  28. package/bundles/material-bottom-sheet.umd.min.js.map +1 -1
  29. package/bundles/material-button-testing.umd.js +5 -5
  30. package/bundles/material-button-testing.umd.js.map +1 -1
  31. package/bundles/material-button-testing.umd.min.js +1 -1
  32. package/bundles/material-button-testing.umd.min.js.map +1 -1
  33. package/bundles/material-button-toggle-testing.umd.js +5 -5
  34. package/bundles/material-button-toggle-testing.umd.js.map +1 -1
  35. package/bundles/material-button-toggle-testing.umd.min.js +1 -1
  36. package/bundles/material-button-toggle-testing.umd.min.js.map +1 -1
  37. package/bundles/material-button-toggle.umd.js +6 -8
  38. package/bundles/material-button-toggle.umd.js.map +1 -1
  39. package/bundles/material-button-toggle.umd.min.js +1 -1
  40. package/bundles/material-button-toggle.umd.min.js.map +1 -1
  41. package/bundles/material-button.umd.js +5 -5
  42. package/bundles/material-button.umd.js.map +1 -1
  43. package/bundles/material-button.umd.min.js +1 -1
  44. package/bundles/material-button.umd.min.js.map +1 -1
  45. package/bundles/material-card-testing.umd.js +5 -5
  46. package/bundles/material-card-testing.umd.js.map +1 -1
  47. package/bundles/material-card-testing.umd.min.js +1 -1
  48. package/bundles/material-card-testing.umd.min.js.map +1 -1
  49. package/bundles/material-checkbox-testing.umd.js +8 -8
  50. package/bundles/material-checkbox-testing.umd.js.map +1 -1
  51. package/bundles/material-checkbox-testing.umd.min.js +1 -1
  52. package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
  53. package/bundles/material-checkbox.umd.js +11 -11
  54. package/bundles/material-checkbox.umd.js.map +1 -1
  55. package/bundles/material-checkbox.umd.min.js +3 -3
  56. package/bundles/material-checkbox.umd.min.js.map +1 -1
  57. package/bundles/material-chips-testing.umd.js +5 -5
  58. package/bundles/material-chips-testing.umd.js.map +1 -1
  59. package/bundles/material-chips-testing.umd.min.js +1 -1
  60. package/bundles/material-chips-testing.umd.min.js.map +1 -1
  61. package/bundles/material-chips.umd.js +8 -6
  62. package/bundles/material-chips.umd.js.map +1 -1
  63. package/bundles/material-chips.umd.min.js +4 -4
  64. package/bundles/material-chips.umd.min.js.map +1 -1
  65. package/bundles/material-core-testing.umd.js +5 -5
  66. package/bundles/material-core-testing.umd.js.map +1 -1
  67. package/bundles/material-core-testing.umd.min.js +2 -2
  68. package/bundles/material-core-testing.umd.min.js.map +1 -1
  69. package/bundles/material-core.umd.js +9 -8
  70. package/bundles/material-core.umd.js.map +1 -1
  71. package/bundles/material-core.umd.min.js +4 -4
  72. package/bundles/material-core.umd.min.js.map +1 -1
  73. package/bundles/material-datepicker-testing.umd.js +5 -5
  74. package/bundles/material-datepicker-testing.umd.js.map +1 -1
  75. package/bundles/material-datepicker-testing.umd.min.js +1 -1
  76. package/bundles/material-datepicker-testing.umd.min.js.map +1 -1
  77. package/bundles/material-datepicker.umd.js +31 -11
  78. package/bundles/material-datepicker.umd.js.map +1 -1
  79. package/bundles/material-datepicker.umd.min.js +5 -5
  80. package/bundles/material-datepicker.umd.min.js.map +1 -1
  81. package/bundles/material-dialog-testing.umd.js +5 -5
  82. package/bundles/material-dialog-testing.umd.js.map +1 -1
  83. package/bundles/material-dialog-testing.umd.min.js +2 -2
  84. package/bundles/material-dialog-testing.umd.min.js.map +1 -1
  85. package/bundles/material-dialog.umd.js +5 -5
  86. package/bundles/material-dialog.umd.js.map +1 -1
  87. package/bundles/material-dialog.umd.min.js +4 -4
  88. package/bundles/material-dialog.umd.min.js.map +1 -1
  89. package/bundles/material-divider-testing.umd.js +5 -5
  90. package/bundles/material-divider-testing.umd.js.map +1 -1
  91. package/bundles/material-divider-testing.umd.min.js +1 -1
  92. package/bundles/material-divider-testing.umd.min.js.map +1 -1
  93. package/bundles/material-expansion-testing.umd.js +5 -5
  94. package/bundles/material-expansion-testing.umd.js.map +1 -1
  95. package/bundles/material-expansion-testing.umd.min.js +1 -1
  96. package/bundles/material-expansion-testing.umd.min.js.map +1 -1
  97. package/bundles/material-expansion.umd.js +14 -10
  98. package/bundles/material-expansion.umd.js.map +1 -1
  99. package/bundles/material-expansion.umd.min.js +6 -6
  100. package/bundles/material-expansion.umd.min.js.map +1 -1
  101. package/bundles/material-form-field-testing-control.umd.js +5 -5
  102. package/bundles/material-form-field-testing-control.umd.js.map +1 -1
  103. package/bundles/material-form-field-testing-control.umd.min.js +2 -2
  104. package/bundles/material-form-field-testing-control.umd.min.js.map +1 -1
  105. package/bundles/material-form-field-testing.umd.js +5 -5
  106. package/bundles/material-form-field-testing.umd.js.map +1 -1
  107. package/bundles/material-form-field-testing.umd.min.js +3 -3
  108. package/bundles/material-form-field-testing.umd.min.js.map +1 -1
  109. package/bundles/material-form-field.umd.js +5 -5
  110. package/bundles/material-form-field.umd.js.map +1 -1
  111. package/bundles/material-form-field.umd.min.js +1 -1
  112. package/bundles/material-form-field.umd.min.js.map +1 -1
  113. package/bundles/material-grid-list-testing.umd.js +5 -5
  114. package/bundles/material-grid-list-testing.umd.js.map +1 -1
  115. package/bundles/material-grid-list-testing.umd.min.js +1 -1
  116. package/bundles/material-grid-list-testing.umd.min.js.map +1 -1
  117. package/bundles/material-grid-list.umd.js +5 -5
  118. package/bundles/material-grid-list.umd.js.map +1 -1
  119. package/bundles/material-grid-list.umd.min.js +1 -1
  120. package/bundles/material-grid-list.umd.min.js.map +1 -1
  121. package/bundles/material-icon-testing.umd.js +5 -5
  122. package/bundles/material-icon-testing.umd.js.map +1 -1
  123. package/bundles/material-icon-testing.umd.min.js +1 -1
  124. package/bundles/material-icon-testing.umd.min.js.map +1 -1
  125. package/bundles/material-icon.umd.js +5 -5
  126. package/bundles/material-icon.umd.js.map +1 -1
  127. package/bundles/material-icon.umd.min.js +3 -3
  128. package/bundles/material-icon.umd.min.js.map +1 -1
  129. package/bundles/material-input-testing.umd.js +5 -5
  130. package/bundles/material-input-testing.umd.js.map +1 -1
  131. package/bundles/material-input-testing.umd.min.js +1 -1
  132. package/bundles/material-input-testing.umd.min.js.map +1 -1
  133. package/bundles/material-input.umd.js +6 -5
  134. package/bundles/material-input.umd.js.map +1 -1
  135. package/bundles/material-input.umd.min.js +3 -3
  136. package/bundles/material-input.umd.min.js.map +1 -1
  137. package/bundles/material-list-testing.umd.js +5 -5
  138. package/bundles/material-list-testing.umd.js.map +1 -1
  139. package/bundles/material-list-testing.umd.min.js +1 -1
  140. package/bundles/material-list-testing.umd.min.js.map +1 -1
  141. package/bundles/material-list.umd.js +5 -5
  142. package/bundles/material-list.umd.js.map +1 -1
  143. package/bundles/material-list.umd.min.js +1 -1
  144. package/bundles/material-list.umd.min.js.map +1 -1
  145. package/bundles/material-menu-testing.umd.js +5 -5
  146. package/bundles/material-menu-testing.umd.js.map +1 -1
  147. package/bundles/material-menu-testing.umd.min.js +1 -1
  148. package/bundles/material-menu-testing.umd.min.js.map +1 -1
  149. package/bundles/material-menu.umd.js +10 -5
  150. package/bundles/material-menu.umd.js.map +1 -1
  151. package/bundles/material-menu.umd.min.js +5 -5
  152. package/bundles/material-menu.umd.min.js.map +1 -1
  153. package/bundles/material-paginator-testing.umd.js +5 -5
  154. package/bundles/material-paginator-testing.umd.js.map +1 -1
  155. package/bundles/material-paginator-testing.umd.min.js +1 -1
  156. package/bundles/material-paginator-testing.umd.min.js.map +1 -1
  157. package/bundles/material-paginator.umd.js +10 -9
  158. package/bundles/material-paginator.umd.js.map +1 -1
  159. package/bundles/material-paginator.umd.min.js +2 -2
  160. package/bundles/material-paginator.umd.min.js.map +1 -1
  161. package/bundles/material-progress-bar-testing.umd.js +5 -5
  162. package/bundles/material-progress-bar-testing.umd.js.map +1 -1
  163. package/bundles/material-progress-bar-testing.umd.min.js +1 -1
  164. package/bundles/material-progress-bar-testing.umd.min.js.map +1 -1
  165. package/bundles/material-progress-bar.umd.js +5 -5
  166. package/bundles/material-progress-bar.umd.js.map +1 -1
  167. package/bundles/material-progress-bar.umd.min.js +1 -1
  168. package/bundles/material-progress-bar.umd.min.js.map +1 -1
  169. package/bundles/material-progress-spinner-testing.umd.js +5 -5
  170. package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
  171. package/bundles/material-progress-spinner-testing.umd.min.js +1 -1
  172. package/bundles/material-progress-spinner-testing.umd.min.js.map +1 -1
  173. package/bundles/material-progress-spinner.umd.js +5 -5
  174. package/bundles/material-progress-spinner.umd.js.map +1 -1
  175. package/bundles/material-progress-spinner.umd.min.js +1 -1
  176. package/bundles/material-progress-spinner.umd.min.js.map +1 -1
  177. package/bundles/material-radio-testing.umd.js +5 -5
  178. package/bundles/material-radio-testing.umd.js.map +1 -1
  179. package/bundles/material-radio-testing.umd.min.js +1 -1
  180. package/bundles/material-radio-testing.umd.min.js.map +1 -1
  181. package/bundles/material-radio.umd.js +10 -7
  182. package/bundles/material-radio.umd.js.map +1 -1
  183. package/bundles/material-radio.umd.min.js +2 -2
  184. package/bundles/material-radio.umd.min.js.map +1 -1
  185. package/bundles/material-select-testing.umd.js +5 -5
  186. package/bundles/material-select-testing.umd.js.map +1 -1
  187. package/bundles/material-select-testing.umd.min.js +1 -1
  188. package/bundles/material-select-testing.umd.min.js.map +1 -1
  189. package/bundles/material-select.umd.js +12 -8
  190. package/bundles/material-select.umd.js.map +1 -1
  191. package/bundles/material-select.umd.min.js +3 -3
  192. package/bundles/material-select.umd.min.js.map +1 -1
  193. package/bundles/material-sidenav-testing.umd.js +5 -5
  194. package/bundles/material-sidenav-testing.umd.js.map +1 -1
  195. package/bundles/material-sidenav-testing.umd.min.js +1 -1
  196. package/bundles/material-sidenav-testing.umd.min.js.map +1 -1
  197. package/bundles/material-sidenav.umd.js +5 -5
  198. package/bundles/material-sidenav.umd.js.map +1 -1
  199. package/bundles/material-sidenav.umd.min.js +1 -1
  200. package/bundles/material-sidenav.umd.min.js.map +1 -1
  201. package/bundles/material-slide-toggle-testing.umd.js +5 -5
  202. package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
  203. package/bundles/material-slide-toggle-testing.umd.min.js +1 -1
  204. package/bundles/material-slide-toggle-testing.umd.min.js.map +1 -1
  205. package/bundles/material-slide-toggle.umd.js +5 -5
  206. package/bundles/material-slide-toggle.umd.js.map +1 -1
  207. package/bundles/material-slide-toggle.umd.min.js +1 -1
  208. package/bundles/material-slide-toggle.umd.min.js.map +1 -1
  209. package/bundles/material-slider-testing.umd.js +5 -5
  210. package/bundles/material-slider-testing.umd.js.map +1 -1
  211. package/bundles/material-slider-testing.umd.min.js +1 -1
  212. package/bundles/material-slider-testing.umd.min.js.map +1 -1
  213. package/bundles/material-slider.umd.js +6 -6
  214. package/bundles/material-slider.umd.js.map +1 -1
  215. package/bundles/material-slider.umd.min.js +1 -1
  216. package/bundles/material-slider.umd.min.js.map +1 -1
  217. package/bundles/material-snack-bar-testing.umd.js +5 -5
  218. package/bundles/material-snack-bar-testing.umd.js.map +1 -1
  219. package/bundles/material-snack-bar-testing.umd.min.js +1 -1
  220. package/bundles/material-snack-bar-testing.umd.min.js.map +1 -1
  221. package/bundles/material-snack-bar.umd.js +5 -5
  222. package/bundles/material-snack-bar.umd.js.map +1 -1
  223. package/bundles/material-snack-bar.umd.min.js +1 -1
  224. package/bundles/material-snack-bar.umd.min.js.map +1 -1
  225. package/bundles/material-sort-testing.umd.js +5 -5
  226. package/bundles/material-sort-testing.umd.js.map +1 -1
  227. package/bundles/material-sort-testing.umd.min.js +1 -1
  228. package/bundles/material-sort-testing.umd.min.js.map +1 -1
  229. package/bundles/material-sort.umd.js +6 -6
  230. package/bundles/material-sort.umd.js.map +1 -1
  231. package/bundles/material-sort.umd.min.js +2 -2
  232. package/bundles/material-sort.umd.min.js.map +1 -1
  233. package/bundles/material-stepper-testing.umd.js +5 -5
  234. package/bundles/material-stepper-testing.umd.js.map +1 -1
  235. package/bundles/material-stepper-testing.umd.min.js +2 -2
  236. package/bundles/material-stepper-testing.umd.min.js.map +1 -1
  237. package/bundles/material-stepper.umd.js +5 -5
  238. package/bundles/material-stepper.umd.js.map +1 -1
  239. package/bundles/material-stepper.umd.min.js +1 -1
  240. package/bundles/material-stepper.umd.min.js.map +1 -1
  241. package/bundles/material-table-testing.umd.js +5 -5
  242. package/bundles/material-table-testing.umd.js.map +1 -1
  243. package/bundles/material-table-testing.umd.min.js +1 -1
  244. package/bundles/material-table-testing.umd.min.js.map +1 -1
  245. package/bundles/material-table.umd.js +5 -5
  246. package/bundles/material-table.umd.js.map +1 -1
  247. package/bundles/material-table.umd.min.js +1 -1
  248. package/bundles/material-table.umd.min.js.map +1 -1
  249. package/bundles/material-tabs-testing.umd.js +5 -5
  250. package/bundles/material-tabs-testing.umd.js.map +1 -1
  251. package/bundles/material-tabs-testing.umd.min.js +1 -1
  252. package/bundles/material-tabs-testing.umd.min.js.map +1 -1
  253. package/bundles/material-tabs.umd.js +5 -5
  254. package/bundles/material-tabs.umd.js.map +1 -1
  255. package/bundles/material-tabs.umd.min.js +5 -5
  256. package/bundles/material-tabs.umd.min.js.map +1 -1
  257. package/bundles/material-toolbar-testing.umd.js +5 -5
  258. package/bundles/material-toolbar-testing.umd.js.map +1 -1
  259. package/bundles/material-toolbar-testing.umd.min.js +1 -1
  260. package/bundles/material-toolbar-testing.umd.min.js.map +1 -1
  261. package/bundles/material-toolbar.umd.js +5 -5
  262. package/bundles/material-toolbar.umd.js.map +1 -1
  263. package/bundles/material-toolbar.umd.min.js +1 -1
  264. package/bundles/material-toolbar.umd.min.js.map +1 -1
  265. package/bundles/material-tooltip-testing.umd.js +5 -5
  266. package/bundles/material-tooltip-testing.umd.js.map +1 -1
  267. package/bundles/material-tooltip-testing.umd.min.js +1 -1
  268. package/bundles/material-tooltip-testing.umd.min.js.map +1 -1
  269. package/bundles/material-tooltip.umd.js +5 -5
  270. package/bundles/material-tooltip.umd.js.map +1 -1
  271. package/bundles/material-tooltip.umd.min.js.map +1 -1
  272. package/bundles/material-tree-testing.umd.js +5 -5
  273. package/bundles/material-tree-testing.umd.js.map +1 -1
  274. package/bundles/material-tree-testing.umd.min.js +1 -1
  275. package/bundles/material-tree-testing.umd.min.js.map +1 -1
  276. package/bundles/material-tree.umd.js +5 -5
  277. package/bundles/material-tree.umd.js.map +1 -1
  278. package/bundles/material-tree.umd.min.js +3 -3
  279. package/bundles/material-tree.umd.min.js.map +1 -1
  280. package/button-toggle/index.metadata.json +1 -1
  281. package/checkbox/index.metadata.json +1 -1
  282. package/checkbox/testing/checkbox-harness.d.ts +3 -3
  283. package/chips/index.metadata.json +1 -1
  284. package/core/index.metadata.json +1 -1
  285. package/core/typography/_typography.scss +28 -0
  286. package/datepicker/calendar.d.ts +1 -0
  287. package/datepicker/datepicker-input-base.d.ts +2 -0
  288. package/datepicker/index.metadata.json +1 -1
  289. package/datepicker/month-view.d.ts +1 -1
  290. package/esm2015/autocomplete/autocomplete-trigger.js +3 -2
  291. package/esm2015/autocomplete/autocomplete.js +11 -2
  292. package/esm2015/bottom-sheet/bottom-sheet-container.js +6 -2
  293. package/esm2015/button-toggle/button-toggle.js +2 -4
  294. package/esm2015/checkbox/checkbox.js +8 -8
  295. package/esm2015/checkbox/testing/checkbox-harness.js +4 -4
  296. package/esm2015/chips/chip.js +3 -2
  297. package/esm2015/chips/chips-module.js +3 -2
  298. package/esm2015/core/common-behaviors/common-module.js +1 -1
  299. package/esm2015/core/option/index.js +3 -2
  300. package/esm2015/core/selection/index.js +3 -1
  301. package/esm2015/core/version.js +1 -1
  302. package/esm2015/datepicker/calendar.js +5 -2
  303. package/esm2015/datepicker/date-range-input.js +11 -2
  304. package/esm2015/datepicker/datepicker-base.js +1 -1
  305. package/esm2015/datepicker/datepicker-input-base.js +7 -3
  306. package/esm2015/datepicker/datepicker-input.js +5 -2
  307. package/esm2015/datepicker/datepicker-module.js +3 -1
  308. package/esm2015/datepicker/month-view.js +1 -1
  309. package/esm2015/expansion/accordion.js +6 -2
  310. package/esm2015/expansion/expansion-module.js +3 -2
  311. package/esm2015/input/input-module.js +3 -2
  312. package/esm2015/menu/menu.js +6 -1
  313. package/esm2015/paginator/paginator-module.js +3 -1
  314. package/esm2015/radio/radio.js +6 -3
  315. package/esm2015/select/select.js +8 -4
  316. package/esm2015/slider/slider.js +2 -2
  317. package/esm2015/sort/sort-module.js +3 -2
  318. package/expansion/accordion.d.ts +3 -2
  319. package/expansion/index.metadata.json +1 -1
  320. package/fesm2015/autocomplete.js +12 -2
  321. package/fesm2015/autocomplete.js.map +1 -1
  322. package/fesm2015/bottom-sheet.js +5 -1
  323. package/fesm2015/bottom-sheet.js.map +1 -1
  324. package/fesm2015/button-toggle.js +1 -3
  325. package/fesm2015/button-toggle.js.map +1 -1
  326. package/fesm2015/checkbox/testing.js +3 -3
  327. package/fesm2015/checkbox/testing.js.map +1 -1
  328. package/fesm2015/checkbox.js +6 -6
  329. package/fesm2015/checkbox.js.map +1 -1
  330. package/fesm2015/chips.js +4 -2
  331. package/fesm2015/chips.js.map +1 -1
  332. package/fesm2015/core.js +4 -3
  333. package/fesm2015/core.js.map +1 -1
  334. package/fesm2015/datepicker.js +27 -7
  335. package/fesm2015/datepicker.js.map +1 -1
  336. package/fesm2015/expansion.js +6 -1
  337. package/fesm2015/expansion.js.map +1 -1
  338. package/fesm2015/input.js +2 -1
  339. package/fesm2015/input.js.map +1 -1
  340. package/fesm2015/menu.js +5 -0
  341. package/fesm2015/menu.js.map +1 -1
  342. package/fesm2015/paginator.js +2 -1
  343. package/fesm2015/paginator.js.map +1 -1
  344. package/fesm2015/radio.js +5 -2
  345. package/fesm2015/radio.js.map +1 -1
  346. package/fesm2015/select.js +7 -3
  347. package/fesm2015/select.js.map +1 -1
  348. package/fesm2015/slider.js +1 -1
  349. package/fesm2015/slider.js.map +1 -1
  350. package/fesm2015/sort.js +2 -2
  351. package/fesm2015/sort.js.map +1 -1
  352. package/input/index.metadata.json +1 -1
  353. package/menu/_menu-theme.scss +3 -1
  354. package/menu/index.metadata.json +1 -1
  355. package/package.json +6 -6
  356. package/paginator/index.metadata.json +1 -1
  357. package/prebuilt-themes/deeppurple-amber.css +1 -1
  358. package/prebuilt-themes/indigo-pink.css +1 -1
  359. package/prebuilt-themes/pink-bluegrey.css +1 -1
  360. package/prebuilt-themes/purple-green.css +1 -1
  361. package/radio/index.metadata.json +1 -1
  362. package/schematics/migration.json +5 -0
  363. package/schematics/ng-add/index.js +2 -2
  364. package/schematics/ng-update/index.d.ts +2 -0
  365. package/schematics/ng-update/index.js +7 -2
  366. package/select/index.metadata.json +1 -1
  367. package/sort/index.metadata.json +1 -1
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/common"),require("@angular/core"),require("@angular/material/core"),require("@angular/material/form-field"),require("@angular/cdk/scrolling"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/collections"),require("@angular/cdk/keycodes"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@angular/material/select",["exports","@angular/cdk/overlay","@angular/common","@angular/core","@angular/material/core","@angular/material/form-field","@angular/cdk/scrolling","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/collections","@angular/cdk/keycodes","@angular/forms","rxjs","rxjs/operators","@angular/animations"],t):t(((e=e||self).ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.select={}),e.ng.cdk.overlay,e.ng.common,e.ng.core,e.ng.material.core,e.ng.material.formField,e.ng.cdk.scrolling,e.ng.cdk.a11y,e.ng.cdk.bidi,e.ng.cdk.coercion,e.ng.cdk.collections,e.ng.cdk.keycodes,e.ng.forms,e.rxjs,e.rxjs.operators,e.ng.animations)}(this,(function(e,t,n,i,r,o,a,l,s,c,p,u,h,d,g,_){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/cdk/overlay"),require("@angular/common"),require("@angular/core"),require("@angular/material/core"),require("@angular/material/form-field"),require("@angular/cdk/scrolling"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/collections"),require("@angular/cdk/keycodes"),require("@angular/forms"),require("rxjs"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define("@angular/material/select",["exports","@angular/cdk/overlay","@angular/common","@angular/core","@angular/material/core","@angular/material/form-field","@angular/cdk/scrolling","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/collections","@angular/cdk/keycodes","@angular/forms","rxjs","rxjs/operators","@angular/animations"],t):t(((e=e||self).ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.select={}),e.ng.cdk.overlay,e.ng.common,e.ng.core,e.ng.material.core,e.ng.material.formField,e.ng.cdk.scrolling,e.ng.cdk.a11y,e.ng.cdk.bidi,e.ng.cdk.coercion,e.ng.cdk.collections,e.ng.cdk.keycodes,e.ng.forms,e.rxjs,e.rxjs.operators,e.ng.animations)}(this,(function(e,t,n,i,r,a,o,l,s,c,p,u,h,d,g,_){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,7 +12,7 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function y(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}
15
+ ***************************************************************************** */var y=function(e,t){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function f(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}
16
16
  /**
17
17
  * @license
18
18
  * Copyright Google LLC All Rights Reserved.
@@ -27,7 +27,7 @@ var b={transformPanelWrap:_.trigger("transformPanelWrap",[_.transition("* => voi
27
27
  *
28
28
  * Use of this source code is governed by an MIT-style license that can be
29
29
  * found in the LICENSE file at https://angular.io/license
30
- */function k(e){return function(){return e.scrollStrategies.reposition()}}var w,M=new i.InjectionToken("MAT_SELECT_CONFIG"),I={provide:C,deps:[t.Overlay],useFactory:k},S=function S(e,t){this.source=e,this.value=t},x=r.mixinDisableRipple(r.mixinTabIndex(r.mixinDisabled(r.mixinErrorState((function E(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}))))),A=new i.InjectionToken("MatSelectTrigger");(w=function w(){}).decorators=[{type:i.Directive,args:[{selector:"mat-select-trigger",providers:[{provide:A,useExisting:w}]}]}];var T=function(e){function t(t,n,r,o,a,l,s,c,p,u,h,_,f,y){var m,b,C,k,w,M=this;return(M=e.call(this,a,o,s,c,u)||this)._viewportRuler=t,M._changeDetectorRef=n,M._ngZone=r,M._dir=l,M._parentFormField=p,M.ngControl=u,M._liveAnnouncer=f,M._defaultOptions=y,M._panelOpen=!1,M._compareWith=function(e,t){return e===t},M._uid="mat-select-"+O++,M._triggerAriaLabelledBy=null,M._destroy=new d.Subject,M._onChange=function(){},M._onTouched=function(){},M._valueId="mat-select-value-"+O++,M._panelDoneAnimatingStream=new d.Subject,M._overlayPanelClass=(null===(m=M._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",M._focused=!1,M.controlType="mat-select",M._required=!1,M._multiple=!1,M._disableOptionCentering=null!==(C=null===(b=M._defaultOptions)||void 0===b?void 0:b.disableOptionCentering)&&void 0!==C&&C,M.ariaLabel="",M._typeaheadDebounceInterval=null!==(w=null===(k=M._defaultOptions)||void 0===k?void 0:k.typeaheadDebounceInterval)&&void 0!==w?w:0,M.optionSelectionChanges=d.defer((function(){var e=M.options;return e?e.changes.pipe(g.startWith(e),g.switchMap((function(){return d.merge.apply(void 0,v(e.map((function(e){return e.onSelectionChange}))))}))):M._ngZone.onStable.pipe(g.take(1),g.switchMap((function(){return M.optionSelectionChanges})))})),M.openedChange=new i.EventEmitter,M._openedStream=M.openedChange.pipe(g.filter((function(e){return e})),g.map((function(){}))),M._closedStream=M.openedChange.pipe(g.filter((function(e){return!e})),g.map((function(){}))),M.selectionChange=new i.EventEmitter,M.valueChange=new i.EventEmitter,M.ngControl&&(M.ngControl.valueAccessor=M),M._scrollStrategyFactory=_,M._scrollStrategy=M._scrollStrategyFactory(),M.tabIndex=parseInt(h)||0,M.id=M.id,M}return y(t,e),Object.defineProperty(t.prototype,"focused",{get:function(){return this._focused||this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=c.coerceBooleanProperty(e),this.stateChanges.next()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=c.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this._selectionModel=new p.SelectionModel(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(g.distinctUntilChanged(),g.takeUntil(this._destroy)).subscribe((function(){return e._panelDoneAnimating(e.panelOpen)}))},t.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(g.takeUntil(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(g.startWith(null),g.takeUntil(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))},t.prototype.ngDoCheck=function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()},t.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},t.prototype.toggle=function(){this.panelOpen?this.close():this.open()},t.prototype.open=function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())},t.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this._onChange=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!1,configurable:!0}),t.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},t.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},t.prototype._handleClosedKeydown=function(e){var t=e.keyCode,n=t===u.DOWN_ARROW||t===u.UP_ARROW||t===u.LEFT_ARROW||t===u.RIGHT_ARROW,i=t===u.ENTER||t===u.SPACE,r=this._keyManager;if(!r.isTyping()&&i&&!u.hasModifierKey(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}},t.prototype._handleOpenKeydown=function(e){var t=this._keyManager,n=e.keyCode,i=n===u.DOWN_ARROW||n===u.UP_ARROW,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==u.ENTER&&n!==u.SPACE||!t.activeItem||u.hasModifierKey(e))if(!r&&this._multiple&&n===u.A&&e.ctrlKey){e.preventDefault();var o=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(o?e.select():e.deselect())}))}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()},t.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},t.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},t.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(g.take(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()}))},t.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(t.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!1,configurable:!0}),t.prototype._initializeSelection=function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))},t.prototype._setSelectionByValue=function(e){var t=this;if(this._selectionModel.selected.forEach((function(e){return e.setInactiveStyles()})),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach((function(e){return t._selectValue(e)})),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()},t.prototype._selectValue=function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(e){return!1}}));return n&&this._selectionModel.select(n),n},t.prototype._initKeyManager=function(){var e=this;this._keyManager=new l.ActiveDescendantKeyManager(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(g.takeUntil(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(g.takeUntil(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))},t.prototype._resetOptions=function(){var e=this,t=d.merge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g.takeUntil(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),d.merge.apply(void 0,v(this.options.map((function(e){return e._stateChanges})))).pipe(g.takeUntil(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}))},t.prototype._onSelect=function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()},t.prototype._sortValues=function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)})),this.stateChanges.next()}},t.prototype._propagateChanges=function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()},t.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},t.prototype._canOpen=function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0},t.prototype.focus=function(e){this._elementRef.nativeElement.focus(e)},t.prototype._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e},t.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},t.prototype._getLabelId=function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""},t.prototype._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e},t.prototype._panelDoneAnimating=function(e){this.openedChange.emit(e)},t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!1,configurable:!0}),t}(x);T.decorators=[{type:i.Directive}],T.ctorParameters=function(){return[{type:a.ViewportRuler},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:r.ErrorStateMatcher},{type:i.ElementRef},{type:s.Directionality,decorators:[{type:i.Optional}]},{type:h.NgForm,decorators:[{type:i.Optional}]},{type:h.FormGroupDirective,decorators:[{type:i.Optional}]},{type:o.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[o.MAT_FORM_FIELD]}]},{type:h.NgControl,decorators:[{type:i.Self},{type:i.Optional}]},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:i.Inject,args:[C]}]},{type:l.LiveAnnouncer},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[M]}]}]},T.propDecorators={trigger:[{type:i.ViewChild,args:["trigger"]}],panel:[{type:i.ViewChild,args:["panel"]}],overlayDir:[{type:i.ViewChild,args:[t.CdkConnectedOverlay]}],panelClass:[{type:i.Input}],placeholder:[{type:i.Input}],required:[{type:i.Input}],multiple:[{type:i.Input}],disableOptionCentering:[{type:i.Input}],compareWith:[{type:i.Input}],value:[{type:i.Input}],ariaLabel:[{type:i.Input,args:["aria-label"]}],ariaLabelledby:[{type:i.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:i.Input}],typeaheadDebounceInterval:[{type:i.Input}],sortComparator:[{type:i.Input}],id:[{type:i.Input}],openedChange:[{type:i.Output}],_openedStream:[{type:i.Output,args:["opened"]}],_closedStream:[{type:i.Output,args:["closed"]}],selectionChange:[{type:i.Output}],valueChange:[{type:i.Output}]};var D,R=function(e){function t(){var t=e.apply(this,v(arguments))||this;return t._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return y(t,e),t.prototype._calculateOverlayScroll=function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._viewportRuler.change().pipe(g.takeUntil(this._destroy)).subscribe((function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},t.prototype.open=function(){var t=this;e.prototype._canOpen.call(this)&&(e.prototype.open.call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(g.take(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},t.prototype._scrollOptionIntoView=function(e){var t=r._countGroupLabelsBeforeOption(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=r._getOptionScrollPosition((e+t)*n,n,this.panel.nativeElement.scrollTop,256)},t.prototype._positioningSettled=function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop},t.prototype._panelDoneAnimating=function(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),e.prototype._panelDoneAnimating.call(this,t)},t.prototype._getChangeEvent=function(e){return new S(this,e)},t.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),l=t.right+e-n.width+(i?0:r);a>0?e+=a+8:l>0&&(e-=l+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()},t.prototype._calculateOverlayOffsetY=function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))},t.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()},t.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},t.prototype._adjustPanelDown=function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},t.prototype._calculateOverlayPosition=function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),o=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=r._countGroupLabelsBeforeOption(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,o),this._offsetY=this._calculateOverlayOffsetY(e,a,o),this._checkOverlayWithinViewport(o)},t.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},t.prototype._getItemHeight=function(){return 3*this._triggerFontSize},t.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},t}(T);R.decorators=[{type:i.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'\x3c!--\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\n While aria-owns is not required for the ARIA 1.2 `role="combobox"` interaction pattern,\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model="true"`\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\n VoiceOver from "seeing" the select\'s listbox overlay for aria-activedescendant.\n Using `aria-owns` re-parents the select overlay so that it works again.\n See https://github.com/angular/components/issues/20694\n--\x3e\n<div cdk-overlay-origin\n [attr.aria-owns]="panelOpen ? id + \'-panel\' : null"\n class="mat-select-trigger"\n (click)="toggle()"\n #origin="cdkOverlayOrigin"\n #trigger>\n <div class="mat-select-value" [ngSwitch]="empty" [attr.id]="_valueId">\n <span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \'\\u00A0\'}}</span>\n <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger">\n <span *ngSwitchDefault>{{triggerValue || \'\\u00A0\'}}</span>\n <ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content>\n </span>\n </div>\n\n <div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"\n [cdkConnectedOverlayPanelClass]="_overlayPanelClass"\n [cdkConnectedOverlayScrollStrategy]="_scrollStrategy"\n [cdkConnectedOverlayOrigin]="origin"\n [cdkConnectedOverlayOpen]="panelOpen"\n [cdkConnectedOverlayPositions]="_positions"\n [cdkConnectedOverlayMinWidth]="_triggerRect?.width!"\n [cdkConnectedOverlayOffsetY]="_offsetY"\n (backdropClick)="close()"\n (attach)="_onAttached()"\n (detach)="close()">\n <div class="mat-select-panel-wrap" [@transformPanelWrap]>\n <div\n #panel\n role="listbox"\n tabindex="-1"\n class="mat-select-panel {{ _getPanelTheme() }}"\n [attr.id]="id + \'-panel\'"\n [attr.aria-multiselectable]="multiple"\n [attr.aria-label]="ariaLabel || null"\n [attr.aria-labelledby]="_getPanelAriaLabelledby()"\n [ngClass]="panelClass"\n [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'"\n (@transformPanel.done)="_panelDoneAnimatingStream.next($event.toState)"\n [style.transformOrigin]="_transformOrigin"\n [style.font-size.px]="_triggerFontSize"\n (keydown)="_handleKeydown($event)">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n',inputs:["disabled","disableRipple","tabIndex"],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,host:{role:"combobox","aria-autocomplete":"none","aria-haspopup":"true",class:"mat-select","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-controls]":'panelOpen ? id + "-panel" : null',"[attr.aria-expanded]":"panelOpen","[attr.aria-label]":"ariaLabel || null","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required","[class.mat-select-empty]":"empty","[class.mat-select-multiple]":"multiple","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[b.transformPanelWrap,b.transformPanel],providers:[{provide:o.MatFormFieldControl,useExisting:R},{provide:r.MAT_OPTION_PARENT_COMPONENT,useExisting:R}],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"]}]}],R.propDecorators={options:[{type:i.ContentChildren,args:[r.MatOption,{descendants:!0}]}],optionGroups:[{type:i.ContentChildren,args:[r.MAT_OPTGROUP,{descendants:!0}]}],customTrigger:[{type:i.ContentChild,args:[A]}]},(D=function D(){}).decorators=[{type:i.NgModule,args:[{imports:[n.CommonModule,t.OverlayModule,r.MatOptionModule,r.MatCommonModule],exports:[a.CdkScrollableModule,o.MatFormFieldModule,R,w,r.MatOptionModule,r.MatCommonModule],declarations:[R,w],providers:[I]}]}],
30
+ */function k(e){return function(){return e.scrollStrategies.reposition()}}var w,M=new i.InjectionToken("MAT_SELECT_CONFIG"),I={provide:C,deps:[t.Overlay],useFactory:k},S=function S(e,t){this.source=e,this.value=t},x=r.mixinDisableRipple(r.mixinTabIndex(r.mixinDisabled(r.mixinErrorState((function E(e,t,n,i,r){this._elementRef=e,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}))))),A=new i.InjectionToken("MatSelectTrigger");(w=function w(){}).decorators=[{type:i.Directive,args:[{selector:"mat-select-trigger",providers:[{provide:A,useExisting:w}]}]}];var T=function(e){function t(t,n,r,a,o,l,s,c,p,u,h,_,y,f){var m,b,C,k=this;return(k=e.call(this,o,a,s,c,u)||this)._viewportRuler=t,k._changeDetectorRef=n,k._ngZone=r,k._dir=l,k._parentFormField=p,k.ngControl=u,k._liveAnnouncer=y,k._defaultOptions=f,k._panelOpen=!1,k._compareWith=function(e,t){return e===t},k._uid="mat-select-"+O++,k._triggerAriaLabelledBy=null,k._destroy=new d.Subject,k._onChange=function(){},k._onTouched=function(){},k._valueId="mat-select-value-"+O++,k._panelDoneAnimatingStream=new d.Subject,k._overlayPanelClass=(null===(m=k._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",k._focused=!1,k.controlType="mat-select",k._required=!1,k._multiple=!1,k._disableOptionCentering=null!==(C=null===(b=k._defaultOptions)||void 0===b?void 0:b.disableOptionCentering)&&void 0!==C&&C,k.ariaLabel="",k.optionSelectionChanges=d.defer((function(){var e=k.options;return e?e.changes.pipe(g.startWith(e),g.switchMap((function(){return d.merge.apply(void 0,v(e.map((function(e){return e.onSelectionChange}))))}))):k._ngZone.onStable.pipe(g.take(1),g.switchMap((function(){return k.optionSelectionChanges})))})),k.openedChange=new i.EventEmitter,k._openedStream=k.openedChange.pipe(g.filter((function(e){return e})),g.map((function(){}))),k._closedStream=k.openedChange.pipe(g.filter((function(e){return!e})),g.map((function(){}))),k.selectionChange=new i.EventEmitter,k.valueChange=new i.EventEmitter,k.ngControl&&(k.ngControl.valueAccessor=k),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(k._typeaheadDebounceInterval=f.typeaheadDebounceInterval),k._scrollStrategyFactory=_,k._scrollStrategy=k._scrollStrategyFactory(),k.tabIndex=parseInt(h)||0,k.id=k.id,k}return f(t,e),Object.defineProperty(t.prototype,"focused",{get:function(){return this._focused||this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=c.coerceBooleanProperty(e),this.stateChanges.next()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=c.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this.options&&this._setSelectionByValue(e),this._value=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadDebounceInterval",{get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=c.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this._selectionModel=new p.SelectionModel(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(g.distinctUntilChanged(),g.takeUntil(this._destroy)).subscribe((function(){return e._panelDoneAnimating(e.panelOpen)}))},t.prototype.ngAfterContentInit=function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(g.takeUntil(this._destroy)).subscribe((function(e){e.added.forEach((function(e){return e.select()})),e.removed.forEach((function(e){return e.deselect()}))})),this.options.changes.pipe(g.startWith(null),g.takeUntil(this._destroy)).subscribe((function(){e._resetOptions(),e._initializeSelection()}))},t.prototype.ngDoCheck=function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()},t.prototype.ngOnChanges=function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)},t.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},t.prototype.toggle=function(){this.panelOpen?this.close():this.open()},t.prototype.open=function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())},t.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this._onChange=e},t.prototype.registerOnTouched=function(e){this._onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map((function(e){return e.viewValue}));return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!1,configurable:!0}),t.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},t.prototype._handleKeydown=function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))},t.prototype._handleClosedKeydown=function(e){var t=e.keyCode,n=t===u.DOWN_ARROW||t===u.UP_ARROW||t===u.LEFT_ARROW||t===u.RIGHT_ARROW,i=t===u.ENTER||t===u.SPACE,r=this._keyManager;if(!r.isTyping()&&i&&!u.hasModifierKey(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}},t.prototype._handleOpenKeydown=function(e){var t=this._keyManager,n=e.keyCode,i=n===u.DOWN_ARROW||n===u.UP_ARROW,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==u.ENTER&&n!==u.SPACE||!t.activeItem||u.hasModifierKey(e))if(!r&&this._multiple&&n===u.A&&e.ctrlKey){e.preventDefault();var a=this.options.some((function(e){return!e.disabled&&!e.selected}));this.options.forEach((function(e){e.disabled||(a?e.select():e.deselect())}))}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()},t.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},t.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},t.prototype._onAttached=function(){var e=this;this.overlayDir.positionChange.pipe(g.take(1)).subscribe((function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()}))},t.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(t.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!1,configurable:!0}),t.prototype._initializeSelection=function(){var e=this;Promise.resolve().then((function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()}))},t.prototype._setSelectionByValue=function(e){var t=this;if(this._selectionModel.selected.forEach((function(e){return e.setInactiveStyles()})),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach((function(e){return t._selectValue(e)})),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()},t.prototype._selectValue=function(e){var t=this,n=this.options.find((function(n){try{return null!=n.value&&t._compareWith(n.value,e)}catch(e){return!1}}));return n&&this._selectionModel.select(n),n},t.prototype._initKeyManager=function(){var e=this;this._keyManager=new l.ActiveDescendantKeyManager(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(g.takeUntil(this._destroy)).subscribe((function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())})),this._keyManager.change.pipe(g.takeUntil(this._destroy)).subscribe((function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()}))},t.prototype._resetOptions=function(){var e=this,t=d.merge(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g.takeUntil(t)).subscribe((function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())})),d.merge.apply(void 0,v(this.options.map((function(e){return e._stateChanges})))).pipe(g.takeUntil(t)).subscribe((function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()}))},t.prototype._onSelect=function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()},t.prototype._sortValues=function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort((function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)})),this.stateChanges.next()}},t.prototype._propagateChanges=function(e){var t;t=this.multiple?this.selected.map((function(e){return e.value})):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()},t.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},t.prototype._canOpen=function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0},t.prototype.focus=function(e){this._elementRef.nativeElement.focus(e)},t.prototype._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var e=this._getLabelId();return this.ariaLabelledby?e+" "+this.ariaLabelledby:e},t.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},t.prototype._getLabelId=function(){var e;return(null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId())||""},t.prototype._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var e=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e},t.prototype._panelDoneAnimating=function(e){this.openedChange.emit(e)},t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!1,configurable:!0}),t}(x);T.decorators=[{type:i.Directive}],T.ctorParameters=function(){return[{type:o.ViewportRuler},{type:i.ChangeDetectorRef},{type:i.NgZone},{type:r.ErrorStateMatcher},{type:i.ElementRef},{type:s.Directionality,decorators:[{type:i.Optional}]},{type:h.NgForm,decorators:[{type:i.Optional}]},{type:h.FormGroupDirective,decorators:[{type:i.Optional}]},{type:a.MatFormField,decorators:[{type:i.Optional},{type:i.Inject,args:[a.MAT_FORM_FIELD]}]},{type:h.NgControl,decorators:[{type:i.Self},{type:i.Optional}]},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:i.Inject,args:[C]}]},{type:l.LiveAnnouncer},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[M]}]}]},T.propDecorators={trigger:[{type:i.ViewChild,args:["trigger"]}],panel:[{type:i.ViewChild,args:["panel"]}],overlayDir:[{type:i.ViewChild,args:[t.CdkConnectedOverlay]}],panelClass:[{type:i.Input}],placeholder:[{type:i.Input}],required:[{type:i.Input}],multiple:[{type:i.Input}],disableOptionCentering:[{type:i.Input}],compareWith:[{type:i.Input}],value:[{type:i.Input}],ariaLabel:[{type:i.Input,args:["aria-label"]}],ariaLabelledby:[{type:i.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:i.Input}],typeaheadDebounceInterval:[{type:i.Input}],sortComparator:[{type:i.Input}],id:[{type:i.Input}],openedChange:[{type:i.Output}],_openedStream:[{type:i.Output,args:["opened"]}],_closedStream:[{type:i.Output,args:["closed"]}],selectionChange:[{type:i.Output}],valueChange:[{type:i.Output}]};var D,R=function(e){function t(){var t=e.apply(this,v(arguments))||this;return t._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return f(t,e),t.prototype._calculateOverlayScroll=function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._viewportRuler.change().pipe(g.takeUntil(this._destroy)).subscribe((function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},t.prototype.open=function(){var t=this;e.prototype._canOpen.call(this)&&(e.prototype.open.call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(g.take(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},t.prototype._scrollOptionIntoView=function(e){var t=r._countGroupLabelsBeforeOption(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=r._getOptionScrollPosition((e+t)*n,n,this.panel.nativeElement.scrollTop,256)},t.prototype._positioningSettled=function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop},t.prototype._panelDoneAnimating=function(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),e.prototype._panelDoneAnimating.call(this,t)},t.prototype._getChangeEvent=function(e){return new S(this,e)},t.prototype._calculateOverlayOffsetX=function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),l=t.right+e-n.width+(i?0:r);o>0?e+=o+8:l>0&&(e-=l+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()},t.prototype._calculateOverlayOffsetY=function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-a))},t.prototype._checkOverlayWithinViewport=function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,256)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()},t.prototype._adjustPanelUp=function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},t.prototype._adjustPanelDown=function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},t.prototype._calculateOverlayPosition=function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),a=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=r._countGroupLabelsBeforeOption(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,a),this._offsetY=this._calculateOverlayOffsetY(e,o,a),this._checkOverlayWithinViewport(a)},t.prototype._getOriginBasedOnOption=function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-t+e/2)+"px 0px"},t.prototype._getItemHeight=function(){return 3*this._triggerFontSize},t.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},t}(T);R.decorators=[{type:i.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'\x3c!--\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\n While aria-owns is not required for the ARIA 1.2 `role="combobox"` interaction pattern,\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model="true"`\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\n VoiceOver from "seeing" the select\'s listbox overlay for aria-activedescendant.\n Using `aria-owns` re-parents the select overlay so that it works again.\n See https://github.com/angular/components/issues/20694\n--\x3e\n<div cdk-overlay-origin\n [attr.aria-owns]="panelOpen ? id + \'-panel\' : null"\n class="mat-select-trigger"\n (click)="toggle()"\n #origin="cdkOverlayOrigin"\n #trigger>\n <div class="mat-select-value" [ngSwitch]="empty" [attr.id]="_valueId">\n <span class="mat-select-placeholder" *ngSwitchCase="true">{{placeholder || \'\\u00A0\'}}</span>\n <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger">\n <span *ngSwitchDefault>{{triggerValue || \'\\u00A0\'}}</span>\n <ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content>\n </span>\n </div>\n\n <div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"\n [cdkConnectedOverlayPanelClass]="_overlayPanelClass"\n [cdkConnectedOverlayScrollStrategy]="_scrollStrategy"\n [cdkConnectedOverlayOrigin]="origin"\n [cdkConnectedOverlayOpen]="panelOpen"\n [cdkConnectedOverlayPositions]="_positions"\n [cdkConnectedOverlayMinWidth]="_triggerRect?.width!"\n [cdkConnectedOverlayOffsetY]="_offsetY"\n (backdropClick)="close()"\n (attach)="_onAttached()"\n (detach)="close()">\n <div class="mat-select-panel-wrap" [@transformPanelWrap]>\n <div\n #panel\n role="listbox"\n tabindex="-1"\n class="mat-select-panel {{ _getPanelTheme() }}"\n [attr.id]="id + \'-panel\'"\n [attr.aria-multiselectable]="multiple"\n [attr.aria-label]="ariaLabel || null"\n [attr.aria-labelledby]="_getPanelAriaLabelledby()"\n [ngClass]="panelClass"\n [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'"\n (@transformPanel.done)="_panelDoneAnimatingStream.next($event.toState)"\n [style.transformOrigin]="_transformOrigin"\n [style.font-size.px]="_triggerFontSize"\n (keydown)="_handleKeydown($event)">\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n',inputs:["disabled","disableRipple","tabIndex"],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,host:{role:"combobox","aria-autocomplete":"none","aria-haspopup":"true",class:"mat-select","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-controls]":'panelOpen ? id + "-panel" : null',"[attr.aria-expanded]":"panelOpen","[attr.aria-label]":"ariaLabel || null","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required","[class.mat-select-empty]":"empty","[class.mat-select-multiple]":"multiple","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[b.transformPanelWrap,b.transformPanel],providers:[{provide:a.MatFormFieldControl,useExisting:R},{provide:r.MAT_OPTION_PARENT_COMPONENT,useExisting:R}],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"]}]}],R.propDecorators={options:[{type:i.ContentChildren,args:[r.MatOption,{descendants:!0}]}],optionGroups:[{type:i.ContentChildren,args:[r.MAT_OPTGROUP,{descendants:!0}]}],customTrigger:[{type:i.ContentChild,args:[A]}]},(D=function D(){}).decorators=[{type:i.NgModule,args:[{imports:[n.CommonModule,t.OverlayModule,r.MatOptionModule,r.MatCommonModule],exports:[o.CdkScrollableModule,a.MatFormFieldModule,R,w,r.MatOptionModule,r.MatCommonModule],declarations:[R,w],providers:[I]}]}],
31
31
  /**
32
32
  * @license
33
33
  * Copyright Google LLC All Rights Reserved.