@angular/material-experimental 13.1.0 → 13.2.0-next.1

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 (318) hide show
  1. package/LICENSE +1 -1
  2. package/_index.scss +2 -1
  3. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  4. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
  5. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  6. package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  7. package/esm2020/column-resize/column-resize-module.mjs +13 -13
  8. package/esm2020/column-resize/overlay-handle.mjs +4 -4
  9. package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
  10. package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
  11. package/esm2020/column-resize/resize-strategy.mjs +4 -4
  12. package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +4 -4
  13. package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +4 -4
  14. package/esm2020/mdc-autocomplete/autocomplete.mjs +4 -4
  15. package/esm2020/mdc-autocomplete/module.mjs +5 -5
  16. package/esm2020/mdc-button/button-base.mjs +14 -7
  17. package/esm2020/mdc-button/button.mjs +9 -9
  18. package/esm2020/mdc-button/fab.mjs +18 -18
  19. package/esm2020/mdc-button/icon-button.mjs +7 -7
  20. package/esm2020/mdc-button/module.mjs +5 -5
  21. package/esm2020/mdc-card/card.mjs +44 -44
  22. package/esm2020/mdc-card/module.mjs +5 -5
  23. package/esm2020/mdc-checkbox/checkbox.mjs +5 -5
  24. package/esm2020/mdc-checkbox/module.mjs +5 -5
  25. package/esm2020/mdc-chips/chip-action.mjs +123 -0
  26. package/esm2020/mdc-chips/chip-edit-input.mjs +5 -5
  27. package/esm2020/mdc-chips/chip-grid.mjs +46 -96
  28. package/esm2020/mdc-chips/chip-icons.mjs +46 -101
  29. package/esm2020/mdc-chips/chip-input.mjs +6 -13
  30. package/esm2020/mdc-chips/chip-listbox.mjs +51 -156
  31. package/esm2020/mdc-chips/chip-option.mjs +84 -95
  32. package/esm2020/mdc-chips/chip-row.mjs +82 -90
  33. package/esm2020/mdc-chips/chip-set.mjs +119 -120
  34. package/esm2020/mdc-chips/chip.mjs +189 -181
  35. package/esm2020/mdc-chips/emit-event.mjs +27 -0
  36. package/esm2020/mdc-chips/module.mjs +8 -10
  37. package/esm2020/mdc-chips/testing/chip-harness.mjs +5 -1
  38. package/esm2020/mdc-chips/testing/chip-option-harness.mjs +2 -2
  39. package/esm2020/mdc-chips/testing/chip-row-harness.mjs +10 -1
  40. package/esm2020/mdc-core/option/index.mjs +5 -5
  41. package/esm2020/mdc-core/option/optgroup.mjs +4 -4
  42. package/esm2020/mdc-core/option/option.mjs +4 -4
  43. package/esm2020/mdc-core/public-api.mjs +2 -2
  44. package/esm2020/mdc-dialog/dialog-container.mjs +5 -5
  45. package/esm2020/mdc-dialog/dialog-content-directives.mjs +13 -13
  46. package/esm2020/mdc-dialog/dialog.mjs +4 -4
  47. package/esm2020/mdc-dialog/module.mjs +5 -5
  48. package/esm2020/mdc-form-field/directives/error.mjs +4 -4
  49. package/esm2020/mdc-form-field/directives/floating-label.mjs +4 -4
  50. package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
  51. package/esm2020/mdc-form-field/directives/label.mjs +4 -4
  52. package/esm2020/mdc-form-field/directives/line-ripple.mjs +4 -4
  53. package/esm2020/mdc-form-field/directives/notched-outline.mjs +4 -4
  54. package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
  55. package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
  56. package/esm2020/mdc-form-field/form-field.mjs +4 -4
  57. package/esm2020/mdc-form-field/module.mjs +5 -5
  58. package/esm2020/mdc-input/input.mjs +4 -4
  59. package/esm2020/mdc-input/module.mjs +5 -5
  60. package/esm2020/mdc-list/action-list.mjs +5 -5
  61. package/esm2020/mdc-list/interactive-list-base.mjs +12 -10
  62. package/esm2020/mdc-list/list-base.mjs +138 -41
  63. package/esm2020/mdc-list/list-item-sections.mjs +138 -0
  64. package/esm2020/mdc-list/list-option.mjs +25 -17
  65. package/esm2020/mdc-list/list.mjs +24 -18
  66. package/esm2020/mdc-list/module.mjs +46 -23
  67. package/esm2020/mdc-list/nav-list.mjs +5 -5
  68. package/esm2020/mdc-list/public-api.mjs +3 -2
  69. package/esm2020/mdc-list/selection-list.mjs +8 -8
  70. package/esm2020/mdc-list/subheader.mjs +27 -0
  71. package/esm2020/mdc-list/testing/list-harness-filters.mjs +1 -1
  72. package/esm2020/mdc-list/testing/list-item-harness-base.mjs +96 -12
  73. package/esm2020/mdc-list/testing/public-api.mjs +2 -1
  74. package/esm2020/mdc-menu/directives.mjs +7 -7
  75. package/esm2020/mdc-menu/menu-item.mjs +4 -4
  76. package/esm2020/mdc-menu/menu.mjs +4 -4
  77. package/esm2020/mdc-menu/module.mjs +5 -5
  78. package/esm2020/mdc-paginator/module.mjs +5 -5
  79. package/esm2020/mdc-paginator/paginator.mjs +4 -4
  80. package/esm2020/mdc-progress-bar/module.mjs +5 -5
  81. package/esm2020/mdc-progress-bar/progress-bar.mjs +5 -5
  82. package/esm2020/mdc-progress-spinner/module.mjs +5 -5
  83. package/esm2020/mdc-progress-spinner/progress-spinner.mjs +4 -4
  84. package/esm2020/mdc-radio/module.mjs +5 -5
  85. package/esm2020/mdc-radio/radio.mjs +8 -8
  86. package/esm2020/mdc-select/module.mjs +5 -5
  87. package/esm2020/mdc-select/select.mjs +9 -9
  88. package/esm2020/mdc-sidenav/module.mjs +5 -5
  89. package/esm2020/mdc-slide-toggle/module.mjs +5 -5
  90. package/esm2020/mdc-slide-toggle/slide-toggle.mjs +5 -5
  91. package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
  92. package/esm2020/mdc-slider/module.mjs +5 -5
  93. package/esm2020/mdc-slider/slider.mjs +33 -12
  94. package/esm2020/mdc-snack-bar/module.mjs +5 -5
  95. package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +4 -4
  96. package/esm2020/mdc-snack-bar/snack-bar-container.mjs +5 -5
  97. package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
  98. package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
  99. package/esm2020/mdc-table/cell.mjs +22 -22
  100. package/esm2020/mdc-table/module.mjs +5 -5
  101. package/esm2020/mdc-table/row.mjs +22 -22
  102. package/esm2020/mdc-table/table.mjs +9 -9
  103. package/esm2020/mdc-table/text-column.mjs +4 -4
  104. package/esm2020/mdc-tabs/module.mjs +10 -6
  105. package/esm2020/mdc-tabs/public-api.mjs +2 -2
  106. package/esm2020/mdc-tabs/tab-body.mjs +7 -7
  107. package/esm2020/mdc-tabs/tab-content.mjs +4 -4
  108. package/esm2020/mdc-tabs/tab-group.mjs +6 -6
  109. package/esm2020/mdc-tabs/tab-header.mjs +12 -5
  110. package/esm2020/mdc-tabs/tab-label-wrapper.mjs +4 -4
  111. package/esm2020/mdc-tabs/tab-label.mjs +4 -4
  112. package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +47 -10
  113. package/esm2020/mdc-tabs/tab.mjs +4 -4
  114. package/esm2020/mdc-tabs/testing/tab-harness-filters.mjs +1 -1
  115. package/esm2020/mdc-tabs/testing/tab-nav-bar-harness.mjs +13 -1
  116. package/esm2020/mdc-tabs/testing/tab-nav-panel-harness.mjs +27 -0
  117. package/esm2020/mdc-tooltip/module.mjs +5 -5
  118. package/esm2020/mdc-tooltip/tooltip.mjs +8 -8
  119. package/esm2020/menubar/menubar-item.mjs +4 -4
  120. package/esm2020/menubar/menubar-module.mjs +5 -5
  121. package/esm2020/menubar/menubar.mjs +4 -4
  122. package/esm2020/popover-edit/lens-directives.mjs +10 -10
  123. package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
  124. package/esm2020/popover-edit/table-directives.mjs +13 -13
  125. package/esm2020/selection/row-selection.mjs +4 -4
  126. package/esm2020/selection/select-all.mjs +4 -4
  127. package/esm2020/selection/selection-column.mjs +4 -4
  128. package/esm2020/selection/selection-module.mjs +5 -5
  129. package/esm2020/selection/selection-toggle.mjs +4 -4
  130. package/esm2020/selection/selection.mjs +4 -4
  131. package/esm2020/version.mjs +1 -1
  132. package/fesm2015/column-resize.mjs +36 -36
  133. package/fesm2015/column-resize.mjs.map +1 -1
  134. package/fesm2015/material-experimental.mjs +1 -1
  135. package/fesm2015/material-experimental.mjs.map +1 -1
  136. package/fesm2015/mdc-autocomplete.mjs +13 -13
  137. package/fesm2015/mdc-autocomplete.mjs.map +1 -1
  138. package/fesm2015/mdc-button.mjs +40 -40
  139. package/fesm2015/mdc-button.mjs.map +1 -1
  140. package/fesm2015/mdc-card.mjs +47 -47
  141. package/fesm2015/mdc-card.mjs.map +1 -1
  142. package/fesm2015/mdc-checkbox.mjs +8 -8
  143. package/fesm2015/mdc-checkbox.mjs.map +1 -1
  144. package/fesm2015/mdc-chips/testing.mjs +18 -8
  145. package/fesm2015/mdc-chips/testing.mjs.map +1 -1
  146. package/fesm2015/mdc-chips.mjs +758 -1061
  147. package/fesm2015/mdc-chips.mjs.map +1 -1
  148. package/fesm2015/mdc-core.mjs +11 -11
  149. package/fesm2015/mdc-core.mjs.map +1 -1
  150. package/fesm2015/mdc-dialog.mjs +23 -23
  151. package/fesm2015/mdc-dialog.mjs.map +1 -1
  152. package/fesm2015/mdc-form-field.mjs +31 -31
  153. package/fesm2015/mdc-form-field.mjs.map +1 -1
  154. package/fesm2015/mdc-input.mjs +7 -7
  155. package/fesm2015/mdc-input.mjs.map +1 -1
  156. package/fesm2015/mdc-list/testing.mjs +104 -12
  157. package/fesm2015/mdc-list/testing.mjs.map +1 -1
  158. package/fesm2015/mdc-list.mjs +361 -154
  159. package/fesm2015/mdc-list.mjs.map +1 -1
  160. package/fesm2015/mdc-menu.mjs +16 -16
  161. package/fesm2015/mdc-menu.mjs.map +1 -1
  162. package/fesm2015/mdc-paginator.mjs +7 -7
  163. package/fesm2015/mdc-paginator.mjs.map +1 -1
  164. package/fesm2015/mdc-progress-bar.mjs +8 -8
  165. package/fesm2015/mdc-progress-bar.mjs.map +1 -1
  166. package/fesm2015/mdc-progress-spinner.mjs +7 -7
  167. package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
  168. package/fesm2015/mdc-radio.mjs +11 -11
  169. package/fesm2015/mdc-radio.mjs.map +1 -1
  170. package/fesm2015/mdc-select.mjs +12 -12
  171. package/fesm2015/mdc-select.mjs.map +1 -1
  172. package/fesm2015/mdc-sidenav.mjs +4 -4
  173. package/fesm2015/mdc-sidenav.mjs.map +1 -1
  174. package/fesm2015/mdc-slide-toggle.mjs +8 -8
  175. package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
  176. package/fesm2015/mdc-slider.mjs +39 -18
  177. package/fesm2015/mdc-slider.mjs.map +1 -1
  178. package/fesm2015/mdc-snack-bar.mjs +23 -23
  179. package/fesm2015/mdc-snack-bar.mjs.map +1 -1
  180. package/fesm2015/mdc-table.mjs +57 -57
  181. package/fesm2015/mdc-table.mjs.map +1 -1
  182. package/fesm2015/mdc-tabs/testing.mjs +34 -0
  183. package/fesm2015/mdc-tabs/testing.mjs.map +1 -1
  184. package/fesm2015/mdc-tabs.mjs +89 -41
  185. package/fesm2015/mdc-tabs.mjs.map +1 -1
  186. package/fesm2015/mdc-tooltip.mjs +11 -11
  187. package/fesm2015/mdc-tooltip.mjs.map +1 -1
  188. package/fesm2015/menubar.mjs +10 -10
  189. package/fesm2015/menubar.mjs.map +1 -1
  190. package/fesm2015/popover-edit.mjs +25 -25
  191. package/fesm2015/popover-edit.mjs.map +1 -1
  192. package/fesm2015/selection.mjs +19 -19
  193. package/fesm2015/selection.mjs.map +1 -1
  194. package/fesm2020/column-resize.mjs +36 -36
  195. package/fesm2020/column-resize.mjs.map +1 -1
  196. package/fesm2020/material-experimental.mjs +1 -1
  197. package/fesm2020/material-experimental.mjs.map +1 -1
  198. package/fesm2020/mdc-autocomplete.mjs +13 -13
  199. package/fesm2020/mdc-autocomplete.mjs.map +1 -1
  200. package/fesm2020/mdc-button.mjs +48 -41
  201. package/fesm2020/mdc-button.mjs.map +1 -1
  202. package/fesm2020/mdc-card.mjs +47 -47
  203. package/fesm2020/mdc-card.mjs.map +1 -1
  204. package/fesm2020/mdc-checkbox.mjs +8 -8
  205. package/fesm2020/mdc-checkbox.mjs.map +1 -1
  206. package/fesm2020/mdc-chips/testing.mjs +14 -1
  207. package/fesm2020/mdc-chips/testing.mjs.map +1 -1
  208. package/fesm2020/mdc-chips.mjs +738 -1066
  209. package/fesm2020/mdc-chips.mjs.map +1 -1
  210. package/fesm2020/mdc-core.mjs +11 -11
  211. package/fesm2020/mdc-core.mjs.map +1 -1
  212. package/fesm2020/mdc-dialog.mjs +23 -23
  213. package/fesm2020/mdc-dialog.mjs.map +1 -1
  214. package/fesm2020/mdc-form-field.mjs +31 -31
  215. package/fesm2020/mdc-form-field.mjs.map +1 -1
  216. package/fesm2020/mdc-input.mjs +7 -7
  217. package/fesm2020/mdc-input.mjs.map +1 -1
  218. package/fesm2020/mdc-list/testing.mjs +96 -12
  219. package/fesm2020/mdc-list/testing.mjs.map +1 -1
  220. package/fesm2020/mdc-list.mjs +359 -154
  221. package/fesm2020/mdc-list.mjs.map +1 -1
  222. package/fesm2020/mdc-menu.mjs +16 -16
  223. package/fesm2020/mdc-menu.mjs.map +1 -1
  224. package/fesm2020/mdc-paginator.mjs +7 -7
  225. package/fesm2020/mdc-paginator.mjs.map +1 -1
  226. package/fesm2020/mdc-progress-bar.mjs +8 -8
  227. package/fesm2020/mdc-progress-bar.mjs.map +1 -1
  228. package/fesm2020/mdc-progress-spinner.mjs +7 -7
  229. package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
  230. package/fesm2020/mdc-radio.mjs +11 -11
  231. package/fesm2020/mdc-radio.mjs.map +1 -1
  232. package/fesm2020/mdc-select.mjs +12 -12
  233. package/fesm2020/mdc-select.mjs.map +1 -1
  234. package/fesm2020/mdc-sidenav.mjs +4 -4
  235. package/fesm2020/mdc-sidenav.mjs.map +1 -1
  236. package/fesm2020/mdc-slide-toggle.mjs +8 -8
  237. package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
  238. package/fesm2020/mdc-slider.mjs +39 -18
  239. package/fesm2020/mdc-slider.mjs.map +1 -1
  240. package/fesm2020/mdc-snack-bar.mjs +23 -23
  241. package/fesm2020/mdc-snack-bar.mjs.map +1 -1
  242. package/fesm2020/mdc-table.mjs +57 -57
  243. package/fesm2020/mdc-table.mjs.map +1 -1
  244. package/fesm2020/mdc-tabs/testing.mjs +37 -0
  245. package/fesm2020/mdc-tabs/testing.mjs.map +1 -1
  246. package/fesm2020/mdc-tabs.mjs +89 -41
  247. package/fesm2020/mdc-tabs.mjs.map +1 -1
  248. package/fesm2020/mdc-tooltip.mjs +11 -11
  249. package/fesm2020/mdc-tooltip.mjs.map +1 -1
  250. package/fesm2020/menubar.mjs +10 -10
  251. package/fesm2020/menubar.mjs.map +1 -1
  252. package/fesm2020/popover-edit.mjs +25 -25
  253. package/fesm2020/popover-edit.mjs.map +1 -1
  254. package/fesm2020/selection.mjs +19 -19
  255. package/fesm2020/selection.mjs.map +1 -1
  256. package/mdc-button/button-base.d.ts +0 -3
  257. package/mdc-button/fab.d.ts +5 -7
  258. package/mdc-checkbox/_checkbox-theme.scss +32 -30
  259. package/mdc-checkbox/checkbox.d.ts +4 -9
  260. package/mdc-chips/_chips-theme.scss +53 -53
  261. package/mdc-chips/chip-action.d.ts +40 -0
  262. package/mdc-chips/chip-grid.d.ts +8 -26
  263. package/mdc-chips/chip-icons.d.ts +14 -40
  264. package/mdc-chips/chip-input.d.ts +2 -4
  265. package/mdc-chips/chip-listbox.d.ts +7 -46
  266. package/mdc-chips/chip-option.d.ts +17 -15
  267. package/mdc-chips/chip-row.d.ts +13 -30
  268. package/mdc-chips/chip-set.d.ts +27 -46
  269. package/mdc-chips/chip.d.ts +41 -45
  270. package/mdc-chips/emit-event.d.ts +16 -0
  271. package/mdc-chips/module.d.ts +13 -12
  272. package/mdc-chips/testing/chip-harness.d.ts +1 -0
  273. package/mdc-chips/testing/chip-row-harness.d.ts +4 -0
  274. package/mdc-core/_core-theme.scss +47 -14
  275. package/mdc-core/public-api.d.ts +1 -1
  276. package/mdc-form-field/form-field.d.ts +1 -2
  277. package/mdc-helpers/_focus-indicators.scss +15 -3
  278. package/mdc-list/_interactive-list-theme.scss +17 -11
  279. package/mdc-list/_list-option-theme.scss +2 -2
  280. package/mdc-list/_list-theme.scss +7 -3
  281. package/mdc-list/list-base.d.ts +59 -18
  282. package/mdc-list/list-item-sections.d.ts +77 -0
  283. package/mdc-list/list-option.d.ts +12 -10
  284. package/mdc-list/list.d.ts +6 -2
  285. package/mdc-list/module.d.ts +7 -5
  286. package/mdc-list/public-api.d.ts +2 -1
  287. package/mdc-list/selection-list.d.ts +1 -2
  288. package/mdc-list/subheader.d.ts +9 -0
  289. package/mdc-list/testing/list-harness-filters.d.ts +8 -0
  290. package/mdc-list/testing/list-item-harness-base.d.ts +34 -3
  291. package/mdc-list/testing/public-api.d.ts +1 -1
  292. package/mdc-progress-spinner/progress-spinner.d.ts +3 -6
  293. package/mdc-select/_select-theme.scss +6 -27
  294. package/mdc-slide-toggle/slide-toggle.d.ts +5 -10
  295. package/mdc-slider/slider.d.ts +20 -16
  296. package/mdc-table/_table-theme.scss +1 -1
  297. package/mdc-tabs/_tabs-common.scss +0 -1
  298. package/mdc-tabs/module.d.ts +1 -1
  299. package/mdc-tabs/public-api.d.ts +1 -1
  300. package/mdc-tabs/tab-group.d.ts +1 -2
  301. package/mdc-tabs/tab-header.d.ts +0 -2
  302. package/mdc-tabs/tab-label-wrapper.d.ts +1 -2
  303. package/mdc-tabs/tab-nav-bar/tab-nav-bar.d.ts +12 -3
  304. package/mdc-tabs/testing/tab-harness-filters.d.ts +3 -0
  305. package/mdc-tabs/testing/tab-nav-bar-harness.d.ts +3 -0
  306. package/mdc-tabs/testing/tab-nav-panel-harness.d.ts +23 -0
  307. package/mdc-theming/prebuilt/deeppurple-amber.css +1 -0
  308. package/mdc-theming/prebuilt/indigo-pink.css +1 -1
  309. package/mdc-theming/prebuilt/pink-bluegrey.css +1 -0
  310. package/mdc-theming/prebuilt/purple-green.css +1 -0
  311. package/mdc-tooltip/_tooltip-theme.scss +1 -1
  312. package/package.json +17 -3
  313. package/esm2020/mdc-chips/grid-focus-key-manager.mjs +0 -21
  314. package/esm2020/mdc-chips/grid-key-manager.mjs +0 -218
  315. package/esm2020/mdc-list/list-styling.mjs +0 -92
  316. package/mdc-chips/grid-focus-key-manager.d.ts +0 -28
  317. package/mdc-chips/grid-key-manager.d.ts +0 -116
  318. package/mdc-list/list-styling.d.ts +0 -40
@@ -6,12 +6,11 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { Directionality } from '@angular/cdk/bidi';
9
- import { BooleanInput } from '@angular/cdk/coercion';
10
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
9
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core';
11
10
  import { RippleGlobalOptions } from '@angular/material-experimental/mdc-core';
11
+ import { FocusMonitor } from '@angular/cdk/a11y';
12
12
  import { MatChip, MatChipEvent } from './chip';
13
13
  import { MatChipEditInput } from './chip-edit-input';
14
- import { GridKeyManagerRow } from './grid-key-manager';
15
14
  import * as i0 from "@angular/core";
16
15
  /** Represents an event fired on an individual `mat-chip` when it is edited. */
17
16
  export interface MatChipEditedEvent extends MatChipEvent {
@@ -22,58 +21,42 @@ export interface MatChipEditedEvent extends MatChipEvent {
22
21
  * An extension of the MatChip component used with MatChipGrid and
23
22
  * the matChipInputFor directive.
24
23
  */
25
- export declare class MatChipRow extends MatChip implements AfterContentInit, AfterViewInit, GridKeyManagerRow<HTMLElement> {
26
- private readonly _document;
24
+ export declare class MatChipRow extends MatChip implements AfterViewInit {
27
25
  protected basicChipAttrName: string;
28
26
  editable: boolean;
29
27
  /** Emitted when the chip is edited. */
30
28
  readonly edited: EventEmitter<MatChipEditedEvent>;
31
- /**
32
- * The focusable wrapper element in the first gridcell, which contains all
33
- * chip content other than the remove icon.
34
- */
35
- chipContent: ElementRef;
36
29
  /** The default chip edit input that is used if none is projected into this chip row. */
37
30
  defaultEditInput?: MatChipEditInput;
38
31
  /** The projected chip edit input. */
39
32
  contentEditInput?: MatChipEditInput;
40
- /** The focusable grid cells for this row. Implemented as part of GridKeyManagerRow. */
41
- cells: HTMLElement[];
33
+ _isEditing: boolean;
42
34
  /**
43
35
  * Timeout used to give some time between `focusin` and `focusout`
44
36
  * in order to determine whether focus has left the chip.
45
37
  */
46
38
  private _focusoutTimeout;
47
- constructor(_document: any, changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, ngZone: NgZone, dir: Directionality, animationMode?: string, globalRippleOptions?: RippleGlobalOptions);
48
- ngAfterContentInit(): void;
49
- ngAfterViewInit(): void;
50
- /**
51
- * Allows for programmatic focusing of the chip.
52
- * Sends focus to the first grid cell. The row chip element itself
53
- * is never focused.
54
- */
55
- focus(): void;
39
+ constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, ngZone: NgZone, focusMonitor: FocusMonitor, _document: any, dir: Directionality, animationMode?: string, globalRippleOptions?: RippleGlobalOptions, tabIndex?: string);
40
+ _hasTrailingIcon(): boolean;
56
41
  /**
57
42
  * Emits a blur event when one of the gridcells loses focus, unless focus moved
58
43
  * to the other gridcell.
59
44
  */
60
- _focusout(event: FocusEvent): void;
45
+ _focusout(): void;
61
46
  /** Records that the chip has focus when one of the gridcells is focused. */
62
- _focusin(event: FocusEvent): void;
47
+ _focusin(): void;
63
48
  /** Sends focus to the first gridcell when the user clicks anywhere inside the chip. */
64
49
  _mousedown(event: MouseEvent): void;
65
- _dblclick(event: MouseEvent): void;
66
50
  /** Handles custom key presses. */
67
51
  _keydown(event: KeyboardEvent): void;
68
- _isEditing(): boolean;
69
- protected _onEditStart(): void;
70
- protected _onEditFinish(): void;
52
+ _doubleclick(): void;
53
+ private _startEditing;
54
+ private _onEditFinish;
71
55
  /**
72
56
  * Gets the projected chip edit input, or the default input if none is projected in. One of these
73
57
  * two values is guaranteed to be defined.
74
58
  */
75
59
  private _getEditInput;
76
- static ngAcceptInputType_editable: BooleanInput;
77
- static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, mat-basic-chip-row", never, { "color": "color"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "editable": "editable"; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipTrailingIcon]", "[matChipRemove]", "[matChipEditInput]"]>;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, mat-basic-chip-row", never, { "color": "color"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "editable": "editable"; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "*", "[matChipEditInput]", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"]>;
79
62
  }
@@ -5,11 +5,11 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- import { Directionality } from '@angular/cdk/bidi';
9
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
8
+ import { LiveAnnouncer } from '@angular/cdk/a11y';
9
+ import { BooleanInput } from '@angular/cdk/coercion';
10
10
  import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, QueryList } from '@angular/core';
11
11
  import { HasTabIndex } from '@angular/material-experimental/mdc-core';
12
- import { deprecated } from '@material/chips';
12
+ import { MDCChipSetFoundation, MDCChipSetAdapter } from '@material/chips';
13
13
  import { Observable, Subject } from 'rxjs';
14
14
  import { MatChip, MatChipEvent } from './chip';
15
15
  import * as i0 from "@angular/core";
@@ -28,15 +28,10 @@ declare const _MatChipSetMixinBase: import("@angular/material-experimental/mdc-c
28
28
  * Extended by MatChipListbox and MatChipGrid for different interaction patterns.
29
29
  */
30
30
  export declare class MatChipSet extends _MatChipSetMixinBase implements AfterContentInit, AfterViewInit, HasTabIndex, OnDestroy {
31
- protected _elementRef: ElementRef;
31
+ private _liveAnnouncer;
32
+ private _document;
33
+ protected _elementRef: ElementRef<HTMLElement>;
32
34
  protected _changeDetectorRef: ChangeDetectorRef;
33
- protected _dir: Directionality;
34
- /** Subscription to remove changes in chips. */
35
- private _chipRemoveSubscription;
36
- /** Subscription to destroyed events in chips. */
37
- private _chipDestroyedSubscription;
38
- /** Subscription to chip interactions. */
39
- private _chipInteractionSubscription;
40
35
  /**
41
36
  * When a chip is destroyed, we store the index of the destroyed chip until the chips
42
37
  * query list notifies about the update. This is necessary because we cannot determine an
@@ -44,18 +39,18 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
44
39
  */
45
40
  protected _lastDestroyedChipIndex: number | null;
46
41
  /** The MDC foundation containing business logic for MDC chip-set. */
47
- protected _chipSetFoundation: deprecated.MDCChipSetFoundation;
42
+ protected _chipSetFoundation: MDCChipSetFoundation;
48
43
  /** Subject that emits when the component has been destroyed. */
49
44
  protected _destroyed: Subject<void>;
45
+ /** Combined stream of all of the child chips' remove events. */
46
+ get chipDestroyedChanges(): Observable<MatChipEvent>;
50
47
  /**
51
48
  * Implementation of the MDC chip-set adapter interface.
52
49
  * These methods are called by the chip set foundation.
53
50
  */
54
- protected _chipSetAdapter: deprecated.MDCChipSetAdapter;
51
+ protected _chipSetAdapter: MDCChipSetAdapter;
55
52
  /** The aria-describedby attribute on the chip list for improved a11y. */
56
53
  _ariaDescribedby: string;
57
- /** Uid of the chip set */
58
- _uid: string;
59
54
  /**
60
55
  * Map from class to whether the class is enabled.
61
56
  * Enabled classes are set on the MDC chip-set div.
@@ -65,7 +60,7 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
65
60
  };
66
61
  /** Whether the chip set is disabled. */
67
62
  get disabled(): boolean;
68
- set disabled(value: boolean);
63
+ set disabled(value: BooleanInput);
69
64
  protected _disabled: boolean;
70
65
  /** Whether the chip list contains chips or not. */
71
66
  get empty(): boolean;
@@ -75,15 +70,9 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
75
70
  private _role;
76
71
  /** Whether any of the chips inside of this chip-set has focus. */
77
72
  get focused(): boolean;
78
- /** Combined stream of all of the child chips' remove events. */
79
- get chipRemoveChanges(): Observable<MatChipEvent>;
80
- /** Combined stream of all of the child chips' remove events. */
81
- get chipDestroyedChanges(): Observable<MatChipEvent>;
82
- /** Combined stream of all of the child chips' interaction events. */
83
- get chipInteractionChanges(): Observable<string>;
84
73
  /** The chips that are part of this chip set. */
85
74
  _chips: QueryList<MatChip>;
86
- constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _dir: Directionality);
75
+ constructor(_liveAnnouncer: LiveAnnouncer, _document: any, _elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef);
87
76
  ngAfterViewInit(): void;
88
77
  ngAfterContentInit(): void;
89
78
  ngOnDestroy(): void;
@@ -91,22 +80,6 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
91
80
  protected _hasFocusedChip(): boolean;
92
81
  /** Syncs the chip-set's state with the individual chips. */
93
82
  protected _syncChipsState(): void;
94
- /** Sets whether the given CSS class should be applied to the MDC chip. */
95
- protected _setMdcClass(cssClass: string, active: boolean): void;
96
- /** Adapter method that returns true if the chip set has the given MDC class. */
97
- protected _hasMdcClass(className: string): any;
98
- /** Updates subscriptions to chip events. */
99
- private _resetChips;
100
- /** Subscribes to events on the child chips. */
101
- protected _subscribeToChipEvents(): void;
102
- /** Subscribes to chip removal events. */
103
- private _listenToChipsRemove;
104
- /** Subscribes to chip destroyed events. */
105
- private _listenToChipsDestroyed;
106
- /** Subscribes to chip interaction events. */
107
- private _listenToChipsInteraction;
108
- /** Unsubscribes from all chip events. */
109
- protected _dropSubscriptions(): void;
110
83
  /** Dummy method for subclasses to override. Base chip set cannot be focused. */
111
84
  focus(): void;
112
85
  /**
@@ -119,14 +92,22 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
119
92
  /** Checks whether an event comes from inside a chip element. */
120
93
  protected _originatesFromChip(event: Event): boolean;
121
94
  /**
122
- * Checks whether an event comes from inside a chip element in the editing
123
- * state.
95
+ * Removes the `tabindex` from the chip grid and resets it back afterwards, allowing the
96
+ * user to tab out of it. This prevents the grid from capturing focus and redirecting
97
+ * it back to the first chip, creating a focus trap, if it user tries to tab away.
98
+ */
99
+ protected _allowFocusEscape(): void;
100
+ /**
101
+ * Gets a stream of events from all the chips within the set.
102
+ * The stream will automatically incorporate any newly-added chips.
124
103
  */
125
- protected _originatesFromEditingChip(event: Event): boolean;
126
- private _checkForClassInHierarchy;
127
- static ngAcceptInputType_disabled: BooleanInput;
128
- static ngAcceptInputType_tabIndex: NumberInput;
129
- static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, [null, null, { optional: true; }]>;
104
+ protected _getChipStream<T, C extends MatChip = MatChip>(mappingFunction: (chip: C) => Observable<T>): Observable<T>;
105
+ protected _checkForClassInHierarchy(event: Event, className: string): boolean;
106
+ private _chipFoundation;
107
+ private _handleChipAnimation;
108
+ private _handleChipInteraction;
109
+ private _handleChipNavigation;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, never>;
130
111
  static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": "disabled"; "role": "role"; }, {}, ["_chips"], ["*"]>;
131
112
  }
132
113
  export {};
@@ -6,26 +6,20 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import { Directionality } from '@angular/cdk/bidi';
9
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
10
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
9
+ import { BooleanInput } from '@angular/cdk/coercion';
10
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
11
11
  import { CanColor, CanDisable, CanDisableRipple, HasTabIndex, MatRipple, RippleGlobalOptions } from '@angular/material-experimental/mdc-core';
12
- import { deprecated } from '@material/chips';
12
+ import { MDCChipFoundation, MDCChipAdapter, MDCChipActionType, MDCChipActionFoundation, ActionInteractionEvent } from '@material/chips';
13
+ import { FocusMonitor } from '@angular/cdk/a11y';
13
14
  import { Subject } from 'rxjs';
14
15
  import { MatChipAvatar, MatChipTrailingIcon, MatChipRemove } from './chip-icons';
16
+ import { MatChipAction } from './chip-action';
15
17
  import * as i0 from "@angular/core";
16
18
  /** Represents an event fired on an individual `mat-chip`. */
17
19
  export interface MatChipEvent {
18
20
  /** The chip the event was fired on. */
19
21
  chip: MatChip;
20
22
  }
21
- /**
22
- * Directive to add MDC CSS to non-basic chips.
23
- * @docs-private
24
- */
25
- export declare class MatChipCssInternalOnly {
26
- static ɵfac: i0.ɵɵFactoryDeclaration<MatChipCssInternalOnly, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipCssInternalOnly, "mat-chip, mat-chip-option, mat-chip-row, [mat-chip], [mat-chip-option], [mat-chip-row]", never, {}, {}, never>;
28
- }
29
23
  /**
30
24
  * Boilerplate for applying mixins to MatChip.
31
25
  * @docs-private
@@ -41,35 +35,42 @@ declare const _MatChipMixinBase: import("@angular/material-experimental/mdc-core
41
35
  *
42
36
  * Extended by MatChipOption and MatChipRow for different interaction patterns.
43
37
  */
44
- export declare class MatChip extends _MatChipMixinBase implements AfterContentInit, AfterViewInit, CanColor, CanDisableRipple, CanDisable, HasTabIndex, OnDestroy {
38
+ export declare class MatChip extends _MatChipMixinBase implements AfterViewInit, CanColor, CanDisableRipple, CanDisable, HasTabIndex, OnDestroy {
45
39
  _changeDetectorRef: ChangeDetectorRef;
46
40
  protected _ngZone: NgZone;
41
+ private _focusMonitor;
47
42
  private _dir;
48
43
  private _globalRippleOptions?;
44
+ protected _document: Document;
49
45
  /** Whether the ripple is centered on the chip. */
50
46
  readonly _isRippleCentered = false;
51
47
  /** Emits when the chip is focused. */
52
48
  readonly _onFocus: Subject<MatChipEvent>;
53
49
  /** Emits when the chip is blurred. */
54
50
  readonly _onBlur: Subject<MatChipEvent>;
55
- readonly REMOVE_ICON_HANDLED_KEYS: ReadonlySet<number>;
56
51
  /** Whether this chip is a basic (unstyled) chip. */
57
52
  readonly _isBasicChip: boolean;
53
+ /** Role for the root of the chip. */
54
+ role: string | null;
58
55
  /** Whether the chip has focus. */
59
56
  protected _hasFocusInternal: boolean;
57
+ /** Whether moving focus into the chip is pending. */
58
+ private _pendingFocus;
60
59
  /** Whether animations for the chip are enabled. */
61
60
  _animationsDisabled: boolean;
62
- _handleTransitionEnd(event: TransitionEvent): void;
63
61
  _hasFocus(): boolean;
64
- /** Default unique id for the chip. */
65
- private _uniqueId;
66
62
  /** A unique id for the chip. If none is supplied, it will be auto-generated. */
67
63
  id: string;
64
+ /** ARIA label for the content of the chip. */
65
+ ariaLabel: string | null;
68
66
  get disabled(): boolean;
69
- set disabled(value: boolean);
67
+ set disabled(value: BooleanInput);
70
68
  protected _disabled: boolean;
71
69
  private _textElement;
72
- /** The value of the chip. Defaults to the content inside the mdc-chip__text element. */
70
+ /**
71
+ * The value of the chip. Defaults to the content inside
72
+ * the `mat-mdc-chip-action-label` element.
73
+ */
73
74
  get value(): any;
74
75
  set value(value: any);
75
76
  protected _value: any;
@@ -77,22 +78,20 @@ export declare class MatChip extends _MatChipMixinBase implements AfterContentIn
77
78
  * Determines whether or not the chip displays the remove styling and emits (removed) events.
78
79
  */
79
80
  get removable(): boolean;
80
- set removable(value: boolean);
81
+ set removable(value: BooleanInput);
81
82
  protected _removable: boolean;
82
83
  /**
83
84
  * Colors the chip for emphasis as if it were selected.
84
85
  */
85
86
  get highlighted(): boolean;
86
- set highlighted(value: boolean);
87
+ set highlighted(value: BooleanInput);
87
88
  protected _highlighted: boolean;
88
- /** Emitted when the user interacts with the chip. */
89
- readonly interaction: EventEmitter<string>;
90
- /** Emitted when the chip is destroyed. */
91
- readonly destroyed: EventEmitter<MatChipEvent>;
92
89
  /** Emitted when a chip is to be removed. */
93
90
  readonly removed: EventEmitter<MatChipEvent>;
91
+ /** Emitted when the chip is destroyed. */
92
+ readonly destroyed: EventEmitter<MatChipEvent>;
94
93
  /** The MDC foundation containing business logic for MDC chip. */
95
- _chipFoundation: deprecated.MDCChipFoundation;
94
+ _chipFoundation: MDCChipFoundation;
96
95
  /** The unstyled chip selector for this component. */
97
96
  protected basicChipAttrName: string;
98
97
  /** The chip's leading icon. */
@@ -103,17 +102,16 @@ export declare class MatChip extends _MatChipMixinBase implements AfterContentIn
103
102
  removeIcon: MatChipRemove;
104
103
  /** Reference to the MatRipple instance of the chip. */
105
104
  ripple: MatRipple;
105
+ /** Action receiving the primary set of user interactions. */
106
+ primaryAction: MatChipAction;
106
107
  /**
107
108
  * Implementation of the MDC chip adapter interface.
108
109
  * These methods are called by the chip foundation.
109
110
  */
110
- protected _chipAdapter: deprecated.MDCChipAdapter;
111
- constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, _ngZone: NgZone, _dir: Directionality, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined);
112
- ngAfterContentInit(): void;
111
+ protected _chipAdapter: MDCChipAdapter;
112
+ constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _focusMonitor: FocusMonitor, _document: any, _dir: Directionality, animationMode?: string, _globalRippleOptions?: RippleGlobalOptions | undefined, tabIndex?: string);
113
113
  ngAfterViewInit(): void;
114
114
  ngOnDestroy(): void;
115
- /** Sets up the remove icon chip foundation, and subscribes to remove icon events. */
116
- private _initRemoveIcon;
117
115
  /**
118
116
  * Allows for programmatic removal of the chip.
119
117
  *
@@ -122,22 +120,20 @@ export declare class MatChip extends _MatChipMixinBase implements AfterContentIn
122
120
  remove(): void;
123
121
  /** Sets whether the given CSS class should be applied to the MDC chip. */
124
122
  private _setMdcClass;
125
- /** Forwards interaction events to the MDC chip foundation. */
126
- _handleInteraction(event: MouseEvent | KeyboardEvent | FocusEvent): void;
127
123
  /** Whether or not the ripple should be disabled. */
128
124
  _isRippleDisabled(): boolean;
129
- _notifyInteraction(): void;
130
- _notifyNavigation(): void;
131
- /** Overridden by MatChipRow. */
132
- protected _onEditStart(): void;
133
- /** Overridden by MatChipRow. */
134
- protected _onEditFinish(): void;
135
- static ngAcceptInputType_disabled: BooleanInput;
136
- static ngAcceptInputType_removable: BooleanInput;
137
- static ngAcceptInputType_highlighted: BooleanInput;
138
- static ngAcceptInputType_disableRipple: BooleanInput;
139
- static ngAcceptInputType_tabIndex: NumberInput;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, mat-chip", ["matChip"], { "color": "color"; "disableRipple": "disableRipple"; "id": "id"; "disabled": "disabled"; "value": "value"; "removable": "removable"; "highlighted": "highlighted"; }, { "interaction": "interaction"; "destroyed": "destroyed"; "removed": "removed"; }, ["leadingIcon", "trailingIcon", "removeIcon"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"]>;
125
+ _getAction(type: MDCChipActionType): MDCChipActionFoundation | undefined;
126
+ _getFoundation(): MDCChipFoundation;
127
+ _hasTrailingIcon(): boolean;
128
+ /** Allows for programmatic focusing of the chip. */
129
+ focus(): void;
130
+ /** Overridden by MatChipOption. */
131
+ protected _onChipInteraction(event: ActionInteractionEvent): void;
132
+ private _handleActionInteraction;
133
+ private _handleActionNavigation;
134
+ private _handleTransitionend;
135
+ private _handleAnimationend;
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
137
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, mat-chip", ["matChip"], { "color": "color"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "role": "role"; "id": "id"; "ariaLabel": "aria-label"; "disabled": "disabled"; "value": "value"; "removable": "removable"; "highlighted": "highlighted"; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"]>;
142
138
  }
143
139
  export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /**
9
+ * Emits a custom event from an element.
10
+ * @param element Element from which to emit the event.
11
+ * @param _document Document that the element is placed in.
12
+ * @param eventName Name of the event.
13
+ * @param data Data attached to the event.
14
+ * @param shouldBubble Whether the event should bubble.
15
+ */
16
+ export declare function emitCustomEvent<T>(element: HTMLElement, _document: Document, eventName: string, data: T, shouldBubble: boolean): void;
@@ -1,17 +1,18 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./chip";
3
- import * as i2 from "./chip-icons";
4
- import * as i3 from "./chip-edit-input";
5
- import * as i4 from "./chip-grid";
6
- import * as i5 from "./chip-input";
7
- import * as i6 from "./chip-listbox";
8
- import * as i7 from "./chip-option";
9
- import * as i8 from "./chip-row";
10
- import * as i9 from "./chip-set";
11
- import * as i10 from "@angular/material-experimental/mdc-core";
12
- import * as i11 from "@angular/common";
2
+ import * as i1 from "./chip-action";
3
+ import * as i2 from "./chip";
4
+ import * as i3 from "./chip-icons";
5
+ import * as i4 from "./chip-edit-input";
6
+ import * as i5 from "./chip-grid";
7
+ import * as i6 from "./chip-input";
8
+ import * as i7 from "./chip-listbox";
9
+ import * as i8 from "./chip-option";
10
+ import * as i9 from "./chip-row";
11
+ import * as i10 from "./chip-set";
12
+ import * as i11 from "@angular/material-experimental/mdc-core";
13
+ import * as i12 from "@angular/common";
13
14
  export declare class MatChipsModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.MatChip, typeof i2.MatChipAvatar, typeof i1.MatChipCssInternalOnly, typeof i3.MatChipEditInput, typeof i4.MatChipGrid, typeof i5.MatChipInput, typeof i6.MatChipListbox, typeof i7.MatChipOption, typeof i2.MatChipRemove, typeof i8.MatChipRow, typeof i9.MatChipSet, typeof i2.MatChipTrailingIcon], [typeof i10.MatCommonModule, typeof i11.CommonModule, typeof i10.MatRippleModule], [typeof i10.MatCommonModule, typeof i1.MatChip, typeof i2.MatChipAvatar, typeof i1.MatChipCssInternalOnly, typeof i3.MatChipEditInput, typeof i4.MatChipGrid, typeof i5.MatChipInput, typeof i6.MatChipListbox, typeof i7.MatChipOption, typeof i2.MatChipRemove, typeof i8.MatChipRow, typeof i9.MatChipSet, typeof i2.MatChipTrailingIcon]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, [typeof i1.MatChipAction, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon], [typeof i11.MatCommonModule, typeof i12.CommonModule, typeof i11.MatRippleModule], [typeof i11.MatCommonModule, typeof i2.MatChip, typeof i3.MatChipAvatar, typeof i4.MatChipEditInput, typeof i5.MatChipGrid, typeof i6.MatChipInput, typeof i7.MatChipListbox, typeof i8.MatChipOption, typeof i3.MatChipRemove, typeof i9.MatChipRow, typeof i10.MatChipSet, typeof i3.MatChipTrailingIcon]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<MatChipsModule>;
17
18
  }
@@ -11,6 +11,7 @@ import { ChipAvatarHarnessFilters, ChipHarnessFilters, ChipRemoveHarnessFilters
11
11
  import { MatChipRemoveHarness } from './chip-remove-harness';
12
12
  /** Harness for interacting with a mat-chip in tests. */
13
13
  export declare class MatChipHarness extends ContentContainerComponentHarness {
14
+ protected _primaryAction: import("@angular/cdk/testing").AsyncFactoryFn<import("@angular/cdk/testing").TestElement>;
14
15
  static hostSelector: string;
15
16
  /**
16
17
  * Gets a `HarnessPredicate` that can be used to search for a chip with specific attributes.
@@ -15,4 +15,8 @@ export declare class MatChipRowHarness extends MatChipHarness {
15
15
  * Gets a `HarnessPredicate` that can be used to search for a chip row with specific attributes.
16
16
  */
17
17
  static with<T extends typeof MatChipHarness>(this: T, options?: ChipRowHarnessFilters): HarnessPredicate<InstanceType<T>>;
18
+ /** Whether the chip is editable. */
19
+ isEditable(): Promise<boolean>;
20
+ /** Whether the chip is currently being edited. */
21
+ isEditing(): Promise<boolean>;
18
22
  }
@@ -1,8 +1,46 @@
1
1
  @use '../../material/core/theming/theming';
2
+ @use '../../material/core/typography/typography';
2
3
  @use './option/option-theme';
3
4
  @use './option/optgroup-theme';
4
5
  @use './elevation';
5
6
 
7
+
8
+ @mixin color($config-or-theme) {
9
+ $config: theming.get-color-config($config-or-theme);
10
+
11
+ @include option-theme.color($config);
12
+ @include optgroup-theme.color($config);
13
+
14
+ @if $config != null {
15
+ // Provides external CSS classes for each elevation value. Each CSS class is formatted as
16
+ // `mat-mdc-elevation-z$zValue` where `$zValue` corresponds to the z-space to which the
17
+ // element is elevated.
18
+ @for $zValue from 0 through 24 {
19
+ $selector: elevation.$prefix + $zValue;
20
+ // We need the `mat-mdc-elevation-specific`, because some MDC mixins
21
+ // come with elevation baked in and we don't have a way of removing it.
22
+ .#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
23
+ @include elevation.private-theme-elevation($zValue, $config);
24
+ }
25
+ }
26
+ }
27
+ }
28
+
29
+ @mixin typography($config-or-theme) {
30
+ $config: typography.private-typography-to-2018-config(
31
+ theming.get-typography-config($config-or-theme));
32
+
33
+ @include option-theme.typography($config-or-theme);
34
+ @include optgroup-theme.typography($config-or-theme);
35
+ }
36
+
37
+ @mixin density($config-or-theme) {
38
+ $density-scale: theming.get-density-config($config-or-theme);
39
+
40
+ @include option-theme.density($density-scale);
41
+ @include optgroup-theme.density($density-scale);
42
+ }
43
+
6
44
  // Mixin that renders all of the core styles that depend on the theme.
7
45
  @mixin theme($theme-or-color-config) {
8
46
  $theme: theming.private-legacy-get-theme($theme-or-color-config);
@@ -12,22 +50,17 @@
12
50
  // the imported themes (such as `mat-ripple-theme`) should not report again.
13
51
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-mdc-core') {
14
52
  $color: theming.get-color-config($theme);
15
-
16
- @include option-theme.theme($theme);
17
- @include optgroup-theme.theme($theme);
53
+ $density: theming.get-density-config($theme);
54
+ $typography: theming.get-typography-config($theme);
18
55
 
19
56
  @if $color != null {
20
- // Provides external CSS classes for each elevation value. Each CSS class is formatted as
21
- // `mat-mdc-elevation-z$zValue` where `$zValue` corresponds to the z-space to which the
22
- // element is elevated.
23
- @for $zValue from 0 through 24 {
24
- $selector: elevation.$prefix + $zValue;
25
- // We need the `mat-mdc-elevation-specific`, because some MDC mixins
26
- // come with elevation baked in and we don't have a way of removing it.
27
- .#{$selector}, .mat-mdc-elevation-specific.#{$selector} {
28
- @include elevation.private-theme-elevation($zValue, $color);
29
- }
30
- }
57
+ @include color($color);
58
+ }
59
+ @if $density != null {
60
+ @include density($density);
61
+ }
62
+ @if $typography != null {
63
+ @include typography($typography);
31
64
  }
32
65
  }
33
66
  }
@@ -6,4 +6,4 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  export * from './option/index';
9
- export { AnimationCurves, AnimationDurations, CanColor, CanDisable, CanDisableRipple, CanUpdateErrorState, DateAdapter, defaultRippleAnimationConfig, ErrorStateMatcher, GranularSanityChecks, HasInitialized, HasTabIndex, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatDateFormats, MATERIAL_SANITY_CHECKS, MatLine, MatLineModule, MatNativeDateModule, MatPseudoCheckbox, MatPseudoCheckboxModule, MatPseudoCheckboxState, MatRipple, MatRippleModule, mixinColor, mixinDisabled, mixinDisableRipple, mixinErrorState, mixinInitialized, mixinTabIndex, NativeDateAdapter, NativeDateModule, RippleAnimationConfig, RippleConfig, RippleGlobalOptions, RippleRef, RippleRenderer, RippleState, RippleTarget, SanityChecks, setLines, ShowOnDirtyErrorStateMatcher, ThemePalette, VERSION, _AbstractConstructor, _Constructor, } from '@angular/material/core';
9
+ export { AnimationCurves, AnimationDurations, CanColor, CanDisable, CanDisableRipple, CanUpdateErrorState, DateAdapter, defaultRippleAnimationConfig, ErrorStateMatcher, GranularSanityChecks, HasInitialized, HasTabIndex, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_NATIVE_DATE_FORMATS, MAT_OPTGROUP, MAT_RIPPLE_GLOBAL_OPTIONS, MatCommonModule, MatDateFormats, MATERIAL_SANITY_CHECKS, MatNativeDateModule, MatPseudoCheckbox, MatPseudoCheckboxModule, MatPseudoCheckboxState, MatRipple, MatRippleModule, mixinColor, mixinDisabled, mixinDisableRipple, mixinErrorState, mixinInitialized, mixinTabIndex, NativeDateAdapter, NativeDateModule, RippleAnimationConfig, RippleConfig, RippleGlobalOptions, RippleRef, RippleRenderer, RippleState, RippleTarget, SanityChecks, setLines, ShowOnDirtyErrorStateMatcher, ThemePalette, VERSION, _AbstractConstructor, _Constructor, } from '@angular/material/core';
@@ -64,7 +64,7 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
64
64
  _hintChildren: QueryList<MatHint>;
65
65
  /** Whether the required marker should be hidden. */
66
66
  get hideRequiredMarker(): boolean;
67
- set hideRequiredMarker(value: boolean);
67
+ set hideRequiredMarker(value: BooleanInput);
68
68
  private _hideRequiredMarker;
69
69
  /** The color palette for the form-field. */
70
70
  color: ThemePalette;
@@ -184,7 +184,6 @@ export declare class MatFormField implements AfterViewInit, OnDestroy, AfterCont
184
184
  private _updateOutlineLabelOffset;
185
185
  /** Checks whether the form field is attached to the DOM. */
186
186
  private _isAttachedToDom;
187
- static ngAcceptInputType_hideRequiredMarker: BooleanInput;
188
187
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFormField, [null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
189
188
  static ɵcmp: i0.ɵɵComponentDeclaration<MatFormField, "mat-form-field", ["matFormField"], { "hideRequiredMarker": "hideRequiredMarker"; "color": "color"; "floatLabel": "floatLabel"; "appearance": "appearance"; "hintLabel": "hintLabel"; }, {}, ["_labelChildNonStatic", "_labelChildStatic", "_formFieldControl", "_prefixChildren", "_suffixChildren", "_errorChildren", "_hintChildren"], ["mat-label", "[matPrefix], [matIconPrefix]", "[matTextPrefix]", "*", "[matTextSuffix]", "[matSuffix], [matIconSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]>;
190
189
  }
@@ -28,6 +28,10 @@
28
28
  pointer-events: none;
29
29
  border: $border-width $border-style transparent;
30
30
  border-radius: $border-radius;
31
+
32
+ .cdk-high-contrast-active & {
33
+ display: none;
34
+ }
31
35
  }
32
36
 
33
37
  // By default, all focus indicators are flush with the bounding box of their
@@ -38,7 +42,7 @@
38
42
  .mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,
39
43
  .mat-mdc-raised-button .mat-mdc-focus-indicator::before,
40
44
  .mdc-fab .mat-mdc-focus-indicator::before,
41
- .mat-mdc-focus-indicator.mdc-chip::before {
45
+ .mat-mdc-chip-action-label .mat-mdc-focus-indicator::before {
42
46
  margin: -($border-width + 2px);
43
47
  }
44
48
 
@@ -46,11 +50,16 @@
46
50
  margin: -($border-width + 3px);
47
51
  }
48
52
 
49
- .mat-mdc-focus-indicator.mat-mdc-chip-remove::before,
50
- .mat-mdc-focus-indicator.mat-mdc-chip-row-focusable-text-content::before {
53
+ .mat-mdc-focus-indicator.mat-mdc-chip-remove::before {
51
54
  margin: -$border-width;
52
55
  }
53
56
 
57
+ // MDC sets a padding a on the button which stretches out the focus indicator.
58
+ .mat-mdc-focus-indicator.mat-mdc-chip-remove::before {
59
+ left: 8px;
60
+ right: 8px;
61
+ }
62
+
54
63
  .mat-mdc-focus-indicator.mat-mdc-tab::before,
55
64
  .mat-mdc-focus-indicator.mat-mdc-tab-link::before {
56
65
  margin: 5px;
@@ -74,6 +83,9 @@
74
83
  .mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before,
75
84
  .mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before,
76
85
 
86
+ // In the chips the individual actions have focus so we target a different element.
87
+ .mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before,
88
+
77
89
  // For buttons and list items, render the focus indicator when the parent
78
90
  // button or list item is focused.
79
91
  .mat-mdc-button-base:focus .mat-mdc-focus-indicator::before,