@angular/material 17.1.0-next.0 → 17.1.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 (322) hide show
  1. package/autocomplete/_autocomplete-theme.scss +47 -14
  2. package/autocomplete/index.d.ts +14 -10
  3. package/badge/_badge-theme.scss +67 -35
  4. package/badge/index.d.ts +5 -5
  5. package/bottom-sheet/_bottom-sheet-theme.scss +51 -18
  6. package/bottom-sheet/index.d.ts +6 -6
  7. package/button/_button-theme.scss +4 -1
  8. package/button/_fab-theme.scss +65 -32
  9. package/button/_icon-button-theme.scss +89 -56
  10. package/button/index.d.ts +13 -13
  11. package/button-toggle/_button-toggle-theme.scss +66 -32
  12. package/button-toggle/index.d.ts +5 -5
  13. package/card/index.d.ts +18 -18
  14. package/checkbox/index.d.ts +6 -6
  15. package/chips/_chips-theme.scss +64 -32
  16. package/chips/index.d.ts +46 -73
  17. package/core/_core-theme.scss +1 -3
  18. package/core/index.d.ts +50 -31
  19. package/core/option/_optgroup-theme.scss +47 -16
  20. package/core/option/_option-theme.scss +54 -23
  21. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +18 -58
  22. package/core/tokens/m2/_index.scss +38 -0
  23. package/core/tokens/m2/mat/_full-pseudo-checkbox.scss +49 -0
  24. package/core/tokens/m2/mat/_minimal-pseudo-checkbox.scss +43 -0
  25. package/datepicker/_datepicker-theme.scss +70 -38
  26. package/datepicker/index.d.ts +88 -86
  27. package/dialog/_dialog-theme.scss +48 -17
  28. package/divider/_divider-theme.scss +49 -16
  29. package/divider/index.d.ts +4 -4
  30. package/esm2022/autocomplete/autocomplete-origin.mjs +5 -4
  31. package/esm2022/autocomplete/autocomplete-trigger.mjs +27 -11
  32. package/esm2022/autocomplete/autocomplete.mjs +6 -6
  33. package/esm2022/autocomplete/module.mjs +23 -7
  34. package/esm2022/autocomplete/public-api.mjs +3 -1
  35. package/esm2022/badge/badge-module.mjs +6 -7
  36. package/esm2022/badge/badge.mjs +5 -4
  37. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +6 -6
  38. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +8 -7
  39. package/esm2022/bottom-sheet/bottom-sheet.mjs +5 -6
  40. package/esm2022/button/button-base.mjs +6 -6
  41. package/esm2022/button/button.mjs +9 -9
  42. package/esm2022/button/fab.mjs +17 -17
  43. package/esm2022/button/icon-button.mjs +9 -9
  44. package/esm2022/button/module.mjs +16 -12
  45. package/esm2022/button-toggle/button-toggle-module.mjs +6 -7
  46. package/esm2022/button-toggle/button-toggle.mjs +10 -9
  47. package/esm2022/card/card.mjs +57 -46
  48. package/esm2022/card/module.mjs +7 -8
  49. package/esm2022/checkbox/checkbox-required-validator.mjs +6 -4
  50. package/esm2022/checkbox/checkbox.mjs +5 -6
  51. package/esm2022/checkbox/module.mjs +11 -12
  52. package/esm2022/chips/chip-action.mjs +5 -4
  53. package/esm2022/chips/chip-edit-input.mjs +5 -4
  54. package/esm2022/chips/chip-grid.mjs +39 -51
  55. package/esm2022/chips/chip-icons.mjs +13 -10
  56. package/esm2022/chips/chip-input.mjs +5 -4
  57. package/esm2022/chips/chip-listbox.mjs +5 -5
  58. package/esm2022/chips/chip-option.mjs +7 -7
  59. package/esm2022/chips/chip-row.mjs +7 -8
  60. package/esm2022/chips/chip-set.mjs +5 -5
  61. package/esm2022/chips/chip.mjs +5 -6
  62. package/esm2022/chips/module.mjs +7 -8
  63. package/esm2022/chips/tokens.mjs +8 -2
  64. package/esm2022/core/common-behaviors/common-module.mjs +4 -4
  65. package/esm2022/core/common-behaviors/error-state.mjs +50 -11
  66. package/esm2022/core/common-behaviors/index.mjs +2 -2
  67. package/esm2022/core/datetime/index.mjs +8 -8
  68. package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
  69. package/esm2022/core/error/error-options.mjs +6 -6
  70. package/esm2022/core/line/line.mjs +10 -10
  71. package/esm2022/core/option/index.mjs +6 -7
  72. package/esm2022/core/option/optgroup.mjs +5 -5
  73. package/esm2022/core/option/option.mjs +9 -9
  74. package/esm2022/core/private/ripple-loader.mjs +3 -3
  75. package/esm2022/core/ripple/index.mjs +6 -7
  76. package/esm2022/core/ripple/ripple.mjs +5 -4
  77. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +6 -7
  78. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +5 -5
  79. package/esm2022/core/version.mjs +1 -1
  80. package/esm2022/datepicker/calendar-body.mjs +6 -6
  81. package/esm2022/datepicker/calendar.mjs +12 -16
  82. package/esm2022/datepicker/date-range-input-parts.mjs +41 -20
  83. package/esm2022/datepicker/date-range-input.mjs +7 -7
  84. package/esm2022/datepicker/date-range-picker.mjs +5 -4
  85. package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
  86. package/esm2022/datepicker/date-selection-model.mjs +9 -9
  87. package/esm2022/datepicker/datepicker-actions.mjs +13 -11
  88. package/esm2022/datepicker/datepicker-base.mjs +23 -20
  89. package/esm2022/datepicker/datepicker-input-base.mjs +6 -5
  90. package/esm2022/datepicker/datepicker-input.mjs +5 -4
  91. package/esm2022/datepicker/datepicker-intl.mjs +3 -3
  92. package/esm2022/datepicker/datepicker-module.mjs +18 -16
  93. package/esm2022/datepicker/datepicker-toggle.mjs +10 -10
  94. package/esm2022/datepicker/datepicker.mjs +5 -4
  95. package/esm2022/datepicker/month-view.mjs +5 -6
  96. package/esm2022/datepicker/multi-year-view.mjs +5 -6
  97. package/esm2022/datepicker/year-view.mjs +5 -6
  98. package/esm2022/dialog/dialog-container.mjs +7 -8
  99. package/esm2022/dialog/dialog-content-directives.mjs +12 -12
  100. package/esm2022/dialog/dialog.mjs +3 -3
  101. package/esm2022/dialog/module.mjs +5 -5
  102. package/esm2022/dialog/testing/dialog-opener.mjs +3 -3
  103. package/esm2022/divider/divider-module.mjs +6 -7
  104. package/esm2022/divider/divider.mjs +5 -5
  105. package/esm2022/expansion/accordion.mjs +5 -4
  106. package/esm2022/expansion/expansion-module.mjs +16 -9
  107. package/esm2022/expansion/expansion-panel-content.mjs +5 -4
  108. package/esm2022/expansion/expansion-panel-header.mjs +13 -11
  109. package/esm2022/expansion/expansion-panel.mjs +11 -11
  110. package/esm2022/form-field/directives/error.mjs +5 -4
  111. package/esm2022/form-field/directives/floating-label.mjs +5 -4
  112. package/esm2022/form-field/directives/hint.mjs +5 -4
  113. package/esm2022/form-field/directives/label.mjs +5 -4
  114. package/esm2022/form-field/directives/line-ripple.mjs +5 -4
  115. package/esm2022/form-field/directives/notched-outline.mjs +5 -5
  116. package/esm2022/form-field/directives/prefix.mjs +5 -4
  117. package/esm2022/form-field/directives/suffix.mjs +5 -4
  118. package/esm2022/form-field/form-field-control.mjs +3 -3
  119. package/esm2022/form-field/form-field.mjs +14 -13
  120. package/esm2022/form-field/module.mjs +16 -18
  121. package/esm2022/grid-list/grid-list-module.mjs +15 -11
  122. package/esm2022/grid-list/grid-list.mjs +5 -5
  123. package/esm2022/grid-list/grid-tile.mjs +21 -18
  124. package/esm2022/grid-list/tile-coordinator.mjs +1 -1
  125. package/esm2022/icon/icon-module.mjs +6 -7
  126. package/esm2022/icon/icon-registry.mjs +3 -3
  127. package/esm2022/icon/icon.mjs +5 -5
  128. package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
  129. package/esm2022/input/input.mjs +28 -30
  130. package/esm2022/input/module.mjs +6 -7
  131. package/esm2022/input/public-api.mjs +3 -1
  132. package/esm2022/list/action-list.mjs +5 -5
  133. package/esm2022/list/list-base.mjs +9 -7
  134. package/esm2022/list/list-item-sections.mjs +25 -19
  135. package/esm2022/list/list-module.mjs +15 -16
  136. package/esm2022/list/list-option.mjs +8 -8
  137. package/esm2022/list/list.mjs +10 -10
  138. package/esm2022/list/nav-list.mjs +5 -5
  139. package/esm2022/list/selection-list.mjs +5 -5
  140. package/esm2022/list/subheader.mjs +5 -4
  141. package/esm2022/menu/menu-content.mjs +5 -4
  142. package/esm2022/menu/menu-item.mjs +6 -6
  143. package/esm2022/menu/menu-trigger.mjs +12 -5
  144. package/esm2022/menu/menu.mjs +6 -6
  145. package/esm2022/menu/module.mjs +25 -7
  146. package/esm2022/paginator/module.mjs +6 -7
  147. package/esm2022/paginator/paginator-intl.mjs +3 -3
  148. package/esm2022/paginator/paginator.mjs +10 -11
  149. package/esm2022/progress-bar/module.mjs +6 -6
  150. package/esm2022/progress-bar/progress-bar.mjs +5 -5
  151. package/esm2022/progress-spinner/module.mjs +6 -7
  152. package/esm2022/progress-spinner/progress-spinner.mjs +6 -6
  153. package/esm2022/radio/module.mjs +6 -7
  154. package/esm2022/radio/radio.mjs +10 -9
  155. package/esm2022/select/module.mjs +21 -7
  156. package/esm2022/select/public-api.mjs +5 -1
  157. package/esm2022/select/select.mjs +51 -42
  158. package/esm2022/sidenav/drawer.mjs +13 -12
  159. package/esm2022/sidenav/sidenav-module.mjs +14 -10
  160. package/esm2022/sidenav/sidenav.mjs +13 -12
  161. package/esm2022/slide-toggle/module.mjs +20 -12
  162. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +5 -4
  163. package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
  164. package/esm2022/slider/module.mjs +19 -7
  165. package/esm2022/slider/slider-input.mjs +9 -7
  166. package/esm2022/slider/slider-thumb.mjs +5 -6
  167. package/esm2022/slider/slider.mjs +6 -6
  168. package/esm2022/snack-bar/module.mjs +6 -6
  169. package/esm2022/snack-bar/simple-snack-bar.mjs +6 -8
  170. package/esm2022/snack-bar/snack-bar-container.mjs +7 -8
  171. package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
  172. package/esm2022/snack-bar/snack-bar-ref.mjs +1 -1
  173. package/esm2022/snack-bar/snack-bar.mjs +3 -3
  174. package/esm2022/sort/sort-header-intl.mjs +3 -3
  175. package/esm2022/sort/sort-header.mjs +5 -5
  176. package/esm2022/sort/sort-module.mjs +6 -7
  177. package/esm2022/sort/sort.mjs +5 -4
  178. package/esm2022/stepper/step-content.mjs +5 -4
  179. package/esm2022/stepper/step-header.mjs +8 -8
  180. package/esm2022/stepper/step-label.mjs +5 -4
  181. package/esm2022/stepper/stepper-button.mjs +9 -7
  182. package/esm2022/stepper/stepper-icon.mjs +5 -4
  183. package/esm2022/stepper/stepper-intl.mjs +3 -3
  184. package/esm2022/stepper/stepper-module.mjs +17 -16
  185. package/esm2022/stepper/stepper.mjs +14 -16
  186. package/esm2022/table/cell.mjs +29 -22
  187. package/esm2022/table/module.mjs +7 -8
  188. package/esm2022/table/row.mjs +33 -24
  189. package/esm2022/table/table.mjs +11 -11
  190. package/esm2022/table/text-column.mjs +8 -6
  191. package/esm2022/tabs/module.mjs +10 -43
  192. package/esm2022/tabs/paginated-tab-header.mjs +3 -3
  193. package/esm2022/tabs/tab-body.mjs +10 -8
  194. package/esm2022/tabs/tab-content.mjs +5 -4
  195. package/esm2022/tabs/tab-group.mjs +20 -13
  196. package/esm2022/tabs/tab-header.mjs +7 -7
  197. package/esm2022/tabs/tab-label-wrapper.mjs +5 -4
  198. package/esm2022/tabs/tab-label.mjs +5 -4
  199. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -17
  200. package/esm2022/tabs/tab.mjs +5 -5
  201. package/esm2022/toolbar/toolbar-module.mjs +6 -7
  202. package/esm2022/toolbar/toolbar.mjs +9 -8
  203. package/esm2022/tooltip/module.mjs +6 -7
  204. package/esm2022/tooltip/tooltip.mjs +18 -12
  205. package/esm2022/tree/node.mjs +13 -10
  206. package/esm2022/tree/outlet.mjs +5 -4
  207. package/esm2022/tree/padding.mjs +5 -4
  208. package/esm2022/tree/toggle.mjs +5 -4
  209. package/esm2022/tree/tree-module.mjs +7 -8
  210. package/esm2022/tree/tree.mjs +5 -6
  211. package/expansion/_expansion-theme.scss +56 -22
  212. package/expansion/index.d.ts +15 -15
  213. package/fesm2022/autocomplete.mjs +60 -27
  214. package/fesm2022/autocomplete.mjs.map +1 -1
  215. package/fesm2022/badge.mjs +9 -9
  216. package/fesm2022/badge.mjs.map +1 -1
  217. package/fesm2022/bottom-sheet.mjs +25 -26
  218. package/fesm2022/bottom-sheet.mjs.map +1 -1
  219. package/fesm2022/button-toggle.mjs +14 -15
  220. package/fesm2022/button-toggle.mjs.map +1 -1
  221. package/fesm2022/button.mjs +53 -49
  222. package/fesm2022/button.mjs.map +1 -1
  223. package/fesm2022/card.mjs +62 -52
  224. package/fesm2022/card.mjs.map +1 -1
  225. package/fesm2022/checkbox.mjs +19 -19
  226. package/fesm2022/checkbox.mjs.map +1 -1
  227. package/fesm2022/chips.mjs +94 -96
  228. package/fesm2022/chips.mjs.map +1 -1
  229. package/fesm2022/core.mjs +115 -78
  230. package/fesm2022/core.mjs.map +1 -1
  231. package/fesm2022/datepicker.mjs +178 -146
  232. package/fesm2022/datepicker.mjs.map +1 -1
  233. package/fesm2022/dialog/testing.mjs +2 -2
  234. package/fesm2022/dialog/testing.mjs.map +1 -1
  235. package/fesm2022/dialog.mjs +25 -26
  236. package/fesm2022/dialog.mjs.map +1 -1
  237. package/fesm2022/divider.mjs +9 -10
  238. package/fesm2022/divider.mjs.map +1 -1
  239. package/fesm2022/expansion.mjs +47 -36
  240. package/fesm2022/expansion.mjs.map +1 -1
  241. package/fesm2022/form-field.mjs +61 -48
  242. package/fesm2022/form-field.mjs.map +1 -1
  243. package/fesm2022/grid-list.mjs +38 -31
  244. package/fesm2022/grid-list.mjs.map +1 -1
  245. package/fesm2022/icon/testing.mjs +7 -7
  246. package/fesm2022/icon.mjs +12 -13
  247. package/fesm2022/icon.mjs.map +1 -1
  248. package/fesm2022/input.mjs +33 -35
  249. package/fesm2022/input.mjs.map +1 -1
  250. package/fesm2022/list.mjs +77 -71
  251. package/fesm2022/list.mjs.map +1 -1
  252. package/fesm2022/menu.mjs +51 -27
  253. package/fesm2022/menu.mjs.map +1 -1
  254. package/fesm2022/paginator.mjs +17 -22
  255. package/fesm2022/paginator.mjs.map +1 -1
  256. package/fesm2022/progress-bar.mjs +9 -9
  257. package/fesm2022/progress-bar.mjs.map +1 -1
  258. package/fesm2022/progress-spinner.mjs +10 -12
  259. package/fesm2022/progress-spinner.mjs.map +1 -1
  260. package/fesm2022/radio.mjs +14 -15
  261. package/fesm2022/radio.mjs.map +1 -1
  262. package/fesm2022/select.mjs +72 -48
  263. package/fesm2022/select.mjs.map +1 -1
  264. package/fesm2022/sidenav.mjs +37 -31
  265. package/fesm2022/sidenav.mjs.map +1 -1
  266. package/fesm2022/slide-toggle.mjs +28 -20
  267. package/fesm2022/slide-toggle.mjs.map +1 -1
  268. package/fesm2022/slider.mjs +36 -23
  269. package/fesm2022/slider.mjs.map +1 -1
  270. package/fesm2022/snack-bar.mjs +32 -34
  271. package/fesm2022/snack-bar.mjs.map +1 -1
  272. package/fesm2022/sort.mjs +16 -16
  273. package/fesm2022/sort.mjs.map +1 -1
  274. package/fesm2022/stepper.mjs +58 -55
  275. package/fesm2022/stepper.mjs.map +1 -1
  276. package/fesm2022/table.mjs +81 -63
  277. package/fesm2022/table.mjs.map +1 -1
  278. package/fesm2022/tabs.mjs +408 -424
  279. package/fesm2022/tabs.mjs.map +1 -1
  280. package/fesm2022/toolbar.mjs +13 -13
  281. package/fesm2022/toolbar.mjs.map +1 -1
  282. package/fesm2022/tooltip.mjs +22 -17
  283. package/fesm2022/tooltip.mjs.map +1 -1
  284. package/fesm2022/tree.mjs +34 -29
  285. package/fesm2022/tree.mjs.map +1 -1
  286. package/form-field/index.d.ts +33 -45
  287. package/grid-list/index.d.ts +10 -10
  288. package/icon/_icon-theme.scss +55 -23
  289. package/icon/index.d.ts +4 -4
  290. package/input/index.d.ts +33 -32
  291. package/list/index.d.ts +36 -36
  292. package/menu/_menu-theme.scss +50 -18
  293. package/menu/index.d.ts +12 -12
  294. package/package.json +2 -2
  295. package/paginator/_paginator-theme.scss +62 -29
  296. package/paginator/index.d.ts +6 -6
  297. package/prebuilt-themes/deeppurple-amber.css +1 -1
  298. package/prebuilt-themes/indigo-pink.css +1 -1
  299. package/prebuilt-themes/pink-bluegrey.css +1 -1
  300. package/prebuilt-themes/purple-green.css +1 -1
  301. package/progress-bar/index.d.ts +2 -2
  302. package/progress-spinner/index.d.ts +4 -4
  303. package/radio/index.d.ts +6 -6
  304. package/schematics/ng-add/index.js +1 -1
  305. package/schematics/ng-add/index.mjs +1 -1
  306. package/schematics/ng-generate/mdc-migration/index_bundled.js +427 -201
  307. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
  308. package/schematics/ng-update/index_bundled.js +41 -37
  309. package/schematics/ng-update/index_bundled.js.map +2 -2
  310. package/select/_select-theme.scss +71 -38
  311. package/select/index.d.ts +47 -35
  312. package/sidenav/_sidenav-theme.scss +49 -16
  313. package/sidenav/index.d.ts +11 -11
  314. package/slide-toggle/index.d.ts +6 -6
  315. package/slider/index.d.ts +9 -9
  316. package/sort/index.d.ts +6 -6
  317. package/stepper/index.d.ts +29 -29
  318. package/table/index.d.ts +24 -24
  319. package/tabs/index.d.ts +18 -43
  320. package/toolbar/index.d.ts +5 -5
  321. package/tooltip/index.d.ts +8 -8
  322. package/tree/index.d.ts +15 -15
@@ -6,7 +6,7 @@ import { ElementRef } from '@angular/core';
6
6
  import { EventEmitter } from '@angular/core';
7
7
  import { FocusableOption } from '@angular/cdk/a11y';
8
8
  import * as i0 from '@angular/core';
9
- import * as i3 from '@angular/material/core';
9
+ import * as i2 from '@angular/material/core';
10
10
  import { InjectionToken } from '@angular/core';
11
11
  import { MatRipple } from '@angular/material/core';
12
12
  import { NgZone } from '@angular/core';
@@ -20,7 +20,7 @@ declare namespace i1 {
20
20
  }
21
21
  }
22
22
 
23
- declare namespace i2 {
23
+ declare namespace i3 {
24
24
  export {
25
25
  TransitionCheckState,
26
26
  MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR,
@@ -166,7 +166,7 @@ export declare class MatCheckbox implements AfterViewInit, ControlValueAccessor,
166
166
  */
167
167
  _preventBubblingFromLabel(event: MouseEvent): void;
168
168
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckbox, [null, null, null, { attribute: "tabindex"; }, { optional: true; }, { optional: true; }]>;
169
- static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*"], false, never>;
169
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*"], true, never>;
170
170
  static ngAcceptInputType_required: unknown;
171
171
  static ngAcceptInputType_disableRipple: unknown;
172
172
  static ngAcceptInputType_tabIndex: unknown;
@@ -202,7 +202,7 @@ export declare interface MatCheckboxDefaultOptions {
202
202
 
203
203
  export declare class MatCheckboxModule {
204
204
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxModule, never>;
205
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, [typeof i2.MatCheckbox], [typeof i3.MatCommonModule, typeof i3.MatRippleModule, typeof _MatCheckboxRequiredValidatorModule], [typeof i2.MatCheckbox, typeof i3.MatCommonModule, typeof _MatCheckboxRequiredValidatorModule]>;
205
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatCheckboxModule, never, [typeof i2.MatCommonModule, typeof i2.MatRippleModule, typeof _MatCheckboxRequiredValidatorModule, typeof i3.MatCheckbox], [typeof i3.MatCheckbox, typeof i2.MatCommonModule, typeof _MatCheckboxRequiredValidatorModule]>;
206
206
  static ɵinj: i0.ɵɵInjectorDeclaration<MatCheckboxModule>;
207
207
  }
208
208
 
@@ -213,13 +213,13 @@ export declare class MatCheckboxModule {
213
213
  */
214
214
  export declare class MatCheckboxRequiredValidator extends CheckboxRequiredValidator {
215
215
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckboxRequiredValidator, never>;
216
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxRequiredValidator, "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]", never, {}, {}, never, never, false, never>;
216
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatCheckboxRequiredValidator, "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]", never, {}, {}, never, never, true, never>;
217
217
  }
218
218
 
219
219
  /** This module is used by both original and MDC-based checkbox implementations. */
220
220
  export declare class _MatCheckboxRequiredValidatorModule {
221
221
  static ɵfac: i0.ɵɵFactoryDeclaration<_MatCheckboxRequiredValidatorModule, never>;
222
- static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, [typeof i1.MatCheckboxRequiredValidator], never, [typeof i1.MatCheckboxRequiredValidator]>;
222
+ static ɵmod: i0.ɵɵNgModuleDeclaration<_MatCheckboxRequiredValidatorModule, never, [typeof i1.MatCheckboxRequiredValidator], [typeof i1.MatCheckboxRequiredValidator]>;
223
223
  static ɵinj: i0.ɵɵInjectorDeclaration<_MatCheckboxRequiredValidatorModule>;
224
224
  }
225
225
 
@@ -1,3 +1,4 @@
1
+ @use 'sass:map';
1
2
  @use 'sass:color';
2
3
  @use '@material/chips/chip-theme' as mdc-chip-theme;
3
4
  @use '../core/tokens/m2/mdc/chip' as tokens-mdc-chip;
@@ -6,63 +7,94 @@
6
7
  @use '../core/typography/typography';
7
8
 
8
9
  @mixin base($theme) {
9
- .mat-mdc-standard-chip {
10
- @include mdc-chip-theme.theme(tokens-mdc-chip.get-unthemable-tokens());
10
+ @if inspection.get-theme-version($theme) == 1 {
11
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
12
+ }
13
+ @else {
14
+ .mat-mdc-standard-chip {
15
+ @include mdc-chip-theme.theme(tokens-mdc-chip.get-unthemable-tokens());
16
+ }
11
17
  }
12
18
  }
13
19
 
14
20
  @mixin color($theme) {
15
- .mat-mdc-standard-chip {
16
- $default-color-tokens: tokens-mdc-chip.get-color-tokens($theme);
17
- @include mdc-chip-theme.theme($default-color-tokens);
21
+ @if inspection.get-theme-version($theme) == 1 {
22
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
23
+ }
24
+ @else {
25
+ .mat-mdc-standard-chip {
26
+ $default-color-tokens: tokens-mdc-chip.get-color-tokens($theme);
27
+ @include mdc-chip-theme.theme($default-color-tokens);
18
28
 
19
- &.mat-mdc-chip-selected,
20
- &.mat-mdc-chip-highlighted {
21
- &.mat-primary {
22
- $primary-color-tokens: tokens-mdc-chip.get-color-tokens($theme, primary);
23
- @include mdc-chip-theme.theme($primary-color-tokens);
24
- }
29
+ &.mat-mdc-chip-selected,
30
+ &.mat-mdc-chip-highlighted {
31
+ &.mat-primary {
32
+ $primary-color-tokens: tokens-mdc-chip.get-color-tokens($theme, primary);
33
+ @include mdc-chip-theme.theme($primary-color-tokens);
34
+ }
25
35
 
26
- &.mat-accent {
27
- $accent-color-tokens: tokens-mdc-chip.get-color-tokens($theme, accent);
28
- @include mdc-chip-theme.theme($accent-color-tokens);
29
- }
36
+ &.mat-accent {
37
+ $accent-color-tokens: tokens-mdc-chip.get-color-tokens($theme, accent);
38
+ @include mdc-chip-theme.theme($accent-color-tokens);
39
+ }
30
40
 
31
- &.mat-warn {
32
- $warn-color-tokens: tokens-mdc-chip.get-color-tokens($theme, warn);
33
- @include mdc-chip-theme.theme($warn-color-tokens);
41
+ &.mat-warn {
42
+ $warn-color-tokens: tokens-mdc-chip.get-color-tokens($theme, warn);
43
+ @include mdc-chip-theme.theme($warn-color-tokens);
44
+ }
34
45
  }
35
46
  }
36
47
  }
37
48
  }
38
49
 
39
50
  @mixin typography($theme) {
40
- $typography-tokens: tokens-mdc-chip.get-typography-tokens($theme);
51
+ @if inspection.get-theme-version($theme) == 1 {
52
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
53
+ }
54
+ @else {
55
+ $typography-tokens: tokens-mdc-chip.get-typography-tokens($theme);
41
56
 
42
- .mat-mdc-standard-chip {
43
- @include mdc-chip-theme.theme($typography-tokens);
57
+ .mat-mdc-standard-chip {
58
+ @include mdc-chip-theme.theme($typography-tokens);
59
+ }
44
60
  }
45
61
  }
46
62
 
47
63
  @mixin density($theme) {
48
- $density-tokens: tokens-mdc-chip.get-density-tokens($theme);
64
+ @if inspection.get-theme-version($theme) == 1 {
65
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
66
+ }
67
+ @else {
68
+ $density-tokens: tokens-mdc-chip.get-density-tokens($theme);
49
69
 
50
- .mat-mdc-chip.mat-mdc-standard-chip {
51
- @include mdc-chip-theme.theme($density-tokens);
70
+ .mat-mdc-chip.mat-mdc-standard-chip {
71
+ @include mdc-chip-theme.theme($density-tokens);
72
+ }
52
73
  }
53
74
  }
54
75
 
55
76
  @mixin theme($theme) {
56
77
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-chips') {
57
- @include base($theme);
58
- @if inspection.theme-has($theme, color) {
59
- @include color($theme);
60
- }
61
- @if inspection.theme-has($theme, density) {
62
- @include density($theme);
78
+ @if inspection.get-theme-version($theme) == 1 {
79
+ @include _theme-from-tokens(inspection.get-theme-tokens($theme));
63
80
  }
64
- @if inspection.theme-has($theme, typography) {
65
- @include typography($theme);
81
+ @else {
82
+ @include base($theme);
83
+ @if inspection.theme-has($theme, color) {
84
+ @include color($theme);
85
+ }
86
+ @if inspection.theme-has($theme, density) {
87
+ @include density($theme);
88
+ }
89
+ @if inspection.theme-has($theme, typography) {
90
+ @include typography($theme);
91
+ }
66
92
  }
67
93
  }
68
94
  }
95
+
96
+ @mixin _theme-from-tokens($tokens) {
97
+ @if ($tokens != ()) {
98
+ @include mdc-chip-theme.theme(map.get($tokens, tokens-mdc-chip.$prefix));
99
+ }
100
+ }
package/chips/index.d.ts CHANGED
@@ -1,9 +1,6 @@
1
- import { _AbstractConstructor } from '@angular/material/core';
2
1
  import { AfterContentInit } from '@angular/core';
3
2
  import { AfterViewInit } from '@angular/core';
4
- import { CanUpdateErrorState } from '@angular/material/core';
5
3
  import { ChangeDetectorRef } from '@angular/core';
6
- import { _Constructor } from '@angular/material/core';
7
4
  import { ControlValueAccessor } from '@angular/forms';
8
5
  import { Directionality } from '@angular/cdk/bidi';
9
6
  import { DoCheck } from '@angular/core';
@@ -14,7 +11,7 @@ import { FocusKeyManager } from '@angular/cdk/a11y';
14
11
  import { FocusMonitor } from '@angular/cdk/a11y';
15
12
  import { FormGroupDirective } from '@angular/forms';
16
13
  import * as i0 from '@angular/core';
17
- import * as i11 from '@angular/material/core';
14
+ import * as i1 from '@angular/material/core';
18
15
  import { InjectionToken } from '@angular/core';
19
16
  import { MatFormField } from '@angular/material/form-field';
20
17
  import { MatFormFieldControl } from '@angular/material/form-field';
@@ -31,26 +28,33 @@ import { QueryList } from '@angular/core';
31
28
  import { RippleGlobalOptions } from '@angular/material/core';
32
29
  import { Subject } from 'rxjs';
33
30
 
34
- declare namespace i1 {
31
+ declare namespace i10 {
35
32
  export {
36
- MatChipAction
33
+ MatChipEditedEvent,
34
+ MatChipRow
37
35
  }
38
36
  }
39
37
 
40
- declare namespace i10 {
38
+ declare namespace i11 {
41
39
  export {
42
40
  MatChipSet
43
41
  }
44
42
  }
45
43
 
46
44
  declare namespace i2 {
45
+ export {
46
+ MatChipAction
47
+ }
48
+ }
49
+
50
+ declare namespace i3 {
47
51
  export {
48
52
  MatChipEvent,
49
53
  MatChip
50
54
  }
51
55
  }
52
56
 
53
- declare namespace i3 {
57
+ declare namespace i4 {
54
58
  export {
55
59
  MatChipAvatar,
56
60
  MatChipTrailingIcon,
@@ -58,27 +62,27 @@ declare namespace i3 {
58
62
  }
59
63
  }
60
64
 
61
- declare namespace i4 {
65
+ declare namespace i5 {
62
66
  export {
63
67
  MatChipEditInput
64
68
  }
65
69
  }
66
70
 
67
- declare namespace i5 {
71
+ declare namespace i6 {
68
72
  export {
69
73
  MatChipGridChange,
70
74
  MatChipGrid
71
75
  }
72
76
  }
73
77
 
74
- declare namespace i6 {
78
+ declare namespace i7 {
75
79
  export {
76
80
  MatChipInputEvent,
77
81
  MatChipInput
78
82
  }
79
83
  }
80
84
 
81
- declare namespace i7 {
85
+ declare namespace i8 {
82
86
  export {
83
87
  MatChipListboxChange,
84
88
  MAT_CHIP_LISTBOX_CONTROL_VALUE_ACCESSOR,
@@ -86,20 +90,13 @@ declare namespace i7 {
86
90
  }
87
91
  }
88
92
 
89
- declare namespace i8 {
93
+ declare namespace i9 {
90
94
  export {
91
95
  MatChipSelectionChange,
92
96
  MatChipOption
93
97
  }
94
98
  }
95
99
 
96
- declare namespace i9 {
97
- export {
98
- MatChipEditedEvent,
99
- MatChipRow
100
- }
101
- }
102
-
103
100
  /**
104
101
  * Injection token used to avoid a circular dependency between the `MatChip` and `MatChipAction`.
105
102
  */
@@ -260,7 +257,7 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
260
257
  /** Starts the focus monitoring process on the chip. */
261
258
  private _monitorFocus;
262
259
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChip, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
263
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "role": { "alias": "role"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescription": { "alias": "aria-description"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon", "_allLeadingIcons", "_allTrailingIcons", "_allRemoveIcons"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false, never>;
260
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChip, "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", ["matChip"], { "role": { "alias": "role"; "required": false; }; "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaDescription": { "alias": "aria-description"; "required": false; }; "value": { "alias": "value"; "required": false; }; "color": { "alias": "color"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "removed": "removed"; "destroyed": "destroyed"; }, ["leadingIcon", "trailingIcon", "removeIcon", "_allLeadingIcons", "_allTrailingIcons", "_allRemoveIcons"], ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], true, never>;
264
261
  static ngAcceptInputType_removable: unknown;
265
262
  static ngAcceptInputType_highlighted: unknown;
266
263
  static ngAcceptInputType_disableRipple: unknown;
@@ -312,7 +309,7 @@ declare class MatChipAction {
312
309
  _handleClick(event: MouseEvent): void;
313
310
  _handleKeydown(event: KeyboardEvent): void;
314
311
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAction, never>;
315
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "isInteractive": { "alias": "isInteractive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_allowFocusWhenDisabled": { "alias": "_allowFocusWhenDisabled"; "required": false; }; }, {}, never, never, false, never>;
312
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAction, "[matChipAction]", never, { "isInteractive": { "alias": "isInteractive"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "_allowFocusWhenDisabled": { "alias": "_allowFocusWhenDisabled"; "required": false; }; }, {}, never, never, true, never>;
316
313
  static ngAcceptInputType_disabled: unknown;
317
314
  static ngAcceptInputType_tabIndex: unknown;
318
315
  }
@@ -320,7 +317,7 @@ declare class MatChipAction {
320
317
  /** Avatar image within a chip. */
321
318
  export declare class MatChipAvatar {
322
319
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipAvatar, never>;
323
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAvatar, "mat-chip-avatar, [matChipAvatar]", never, {}, {}, never, never, false, never>;
320
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipAvatar, "mat-chip-avatar, [matChipAvatar]", never, {}, {}, never, never, true, never>;
324
321
  }
325
322
 
326
323
  /** Represents an event fired on an individual `mat-chip` when it is edited. */
@@ -343,7 +340,7 @@ export declare class MatChipEditInput {
343
340
  getValue(): string;
344
341
  private _moveCursorToEndOfInput;
345
342
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipEditInput, never>;
346
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipEditInput, "span[matChipEditInput]", never, {}, {}, never, never, false, never>;
343
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipEditInput, "span[matChipEditInput]", never, {}, {}, never, never, true, never>;
347
344
  }
348
345
 
349
346
  /** Represents an event fired on an individual `mat-chip`. */
@@ -356,7 +353,8 @@ export declare interface MatChipEvent {
356
353
  * An extension of the MatChipSet component used with MatChipRow chips and
357
354
  * the matChipInputFor directive.
358
355
  */
359
- export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterContentInit, AfterViewInit, CanUpdateErrorState, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy {
356
+ export declare class MatChipGrid extends MatChipSet implements AfterContentInit, AfterViewInit, ControlValueAccessor, DoCheck, MatFormFieldControl<any>, OnDestroy {
357
+ ngControl: NgControl;
360
358
  /**
361
359
  * Implemented as part of MatFormFieldControl.
362
360
  * @docs-private
@@ -365,6 +363,7 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
365
363
  /** The chip input to add more chips */
366
364
  protected _chipInput: MatChipTextControl;
367
365
  protected _defaultRole: string;
366
+ private _errorStateTracker;
368
367
  /**
369
368
  * List of element ids to propagate to the chipInput's aria-describedby attribute.
370
369
  */
@@ -424,7 +423,8 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
424
423
  set value(value: any);
425
424
  protected _value: any[];
426
425
  /** An object used to control when error messages are shown. */
427
- errorStateMatcher: ErrorStateMatcher;
426
+ get errorStateMatcher(): ErrorStateMatcher;
427
+ set errorStateMatcher(value: ErrorStateMatcher);
428
428
  /** Combined stream of all of the child chips' blur events. */
429
429
  get chipBlurChanges(): Observable<MatChipEvent>;
430
430
  /** Emits when the chip grid value has been changed by the user. */
@@ -436,6 +436,15 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
436
436
  */
437
437
  readonly valueChange: EventEmitter<any>;
438
438
  _chips: QueryList<MatChipRow>;
439
+ /**
440
+ * Emits whenever the component state changes and should cause the parent
441
+ * form-field to update. Implemented as part of `MatFormFieldControl`.
442
+ * @docs-private
443
+ */
444
+ readonly stateChanges: Subject<void>;
445
+ /** Whether the chip grid is in an error state. */
446
+ get errorState(): boolean;
447
+ set errorState(value: boolean);
439
448
  constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, ngControl: NgControl);
440
449
  ngAfterContentInit(): void;
441
450
  ngAfterViewInit(): void;
@@ -478,6 +487,8 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
478
487
  * @docs-private
479
488
  */
480
489
  setDisabledState(isDisabled: boolean): void;
490
+ /** Refreshes the error state of the chip grid. */
491
+ updateErrorState(): void;
481
492
  /** When blurred, mark the field as touched when focus moved outside the chip grid. */
482
493
  _blur(): void;
483
494
  /**
@@ -494,47 +505,11 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
494
505
  /** Mark the field as touched */
495
506
  private _markAsTouched;
496
507
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGrid, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
497
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, ["_chips"], ["*"], false, never>;
508
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGrid, "mat-chip-grid", never, { "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; }, { "change": "change"; "valueChange": "valueChange"; }, ["_chips"], ["*"], true, never>;
498
509
  static ngAcceptInputType_disabled: unknown;
499
510
  static ngAcceptInputType_required: unknown;
500
511
  }
501
512
 
502
- /**
503
- * Boilerplate for applying mixins to MatChipGrid.
504
- * Important! this class needs to be marked as a component or a directive, because
505
- * leaving it without metadata cuases the framework to execute the host bindings multiple
506
- * times which breaks the keyboard navigation. We can't use `@Directive()` here, because
507
- * `MatChipSet` is a component. We should able to remove this class altogether once
508
- * the error state is moved away from using mixins.
509
- * @docs-private
510
- */
511
- declare class MatChipGridBase extends MatChipSet {
512
- _defaultErrorStateMatcher: ErrorStateMatcher;
513
- _parentForm: NgForm;
514
- _parentFormGroup: FormGroupDirective;
515
- /**
516
- * Form control bound to the component.
517
- * Implemented as part of `MatFormFieldControl`.
518
- * @docs-private
519
- */
520
- ngControl: NgControl;
521
- /**
522
- * Emits whenever the component state changes and should cause the parent
523
- * form-field to update. Implemented as part of `MatFormFieldControl`.
524
- * @docs-private
525
- */
526
- readonly stateChanges: Subject<void>;
527
- constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, dir: Directionality, _defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective,
528
- /**
529
- * Form control bound to the component.
530
- * Implemented as part of `MatFormFieldControl`.
531
- * @docs-private
532
- */
533
- ngControl: NgControl);
534
- static ɵfac: i0.ɵɵFactoryDeclaration<MatChipGridBase, never>;
535
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipGridBase, "ng-component", never, {}, {}, never, never, false, never>;
536
- }
537
-
538
513
  /** Change event object that is emitted when the chip grid value has changed. */
539
514
  export declare class MatChipGridChange {
540
515
  /** Chip grid that emitted the event. */
@@ -548,8 +523,6 @@ export declare class MatChipGridChange {
548
523
  value: any);
549
524
  }
550
525
 
551
- declare const _MatChipGridMixinBase: _Constructor<CanUpdateErrorState> & _AbstractConstructor<CanUpdateErrorState> & typeof MatChipGridBase;
552
-
553
526
  /**
554
527
  * Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.
555
528
  * May be placed inside or outside of a `<mat-chip-grid>`.
@@ -612,7 +585,7 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
612
585
  /** Checks whether a keycode is one of the configured separators. */
613
586
  private _isSeparatorKey;
614
587
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipInput, [null, null, { optional: true; }]>;
615
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipInput, "input[matChipInputFor]", ["matChipInput", "matChipInputFor"], { "chipGrid": { "alias": "matChipInputFor"; "required": false; }; "addOnBlur": { "alias": "matChipInputAddOnBlur"; "required": false; }; "separatorKeyCodes": { "alias": "matChipInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipEnd": "matChipInputTokenEnd"; }, never, never, false, never>;
588
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipInput, "input[matChipInputFor]", ["matChipInput", "matChipInputFor"], { "chipGrid": { "alias": "matChipInputFor"; "required": false; }; "addOnBlur": { "alias": "matChipInputAddOnBlur"; "required": false; }; "separatorKeyCodes": { "alias": "matChipInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "chipEnd": "matChipInputTokenEnd"; }, never, never, true, never>;
616
589
  static ngAcceptInputType_addOnBlur: unknown;
617
590
  static ngAcceptInputType_disabled: unknown;
618
591
  }
@@ -746,7 +719,7 @@ export declare class MatChipListbox extends MatChipSet implements AfterContentIn
746
719
  */
747
720
  protected _skipPredicate(action: MatChipAction): boolean;
748
721
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipListbox, never>;
749
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "multiple": { "alias": "multiple"; "required": false; }; "ariaOrientation": { "alias": "aria-orientation"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["_chips"], ["*"], false, never>;
722
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipListbox, "mat-chip-listbox", never, { "multiple": { "alias": "multiple"; "required": false; }; "ariaOrientation": { "alias": "aria-orientation"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideSingleSelectionIndicator": { "alias": "hideSingleSelectionIndicator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; }, ["_chips"], ["*"], true, never>;
750
723
  static ngAcceptInputType_multiple: unknown;
751
724
  static ngAcceptInputType_selectable: unknown;
752
725
  static ngAcceptInputType_required: unknown;
@@ -826,7 +799,7 @@ export declare class MatChipOption extends MatChip implements OnInit {
826
799
  _hasLeadingGraphic(): boolean;
827
800
  _setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean): void;
828
801
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipOption, never>;
829
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", never, { "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false, never>;
802
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipOption, "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", never, { "selectable": { "alias": "selectable"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, ["mat-chip-avatar, [matChipAvatar]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], true, never>;
830
803
  static ngAcceptInputType_selectable: unknown;
831
804
  static ngAcceptInputType_selected: unknown;
832
805
  }
@@ -851,7 +824,7 @@ export declare class MatChipRemove extends MatChipAction {
851
824
  _handleClick(event: MouseEvent): void;
852
825
  _handleKeydown(event: KeyboardEvent): void;
853
826
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRemove, never>;
854
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipRemove, "[matChipRemove]", never, {}, {}, never, never, false, never>;
827
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipRemove, "[matChipRemove]", never, {}, {}, never, never, true, never>;
855
828
  }
856
829
 
857
830
  /**
@@ -889,7 +862,7 @@ export declare class MatChipRow extends MatChip implements AfterViewInit {
889
862
  */
890
863
  private _getEditInput;
891
864
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipRow, [null, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
892
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "editable": { "alias": "editable"; "required": false; }; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "[matChipEditInput]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], false, never>;
865
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipRow, "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", never, { "editable": { "alias": "editable"; "required": false; }; }, { "edited": "edited"; }, ["contentEditInput"], ["mat-chip-avatar, [matChipAvatar]", "[matChipEditInput]", "*", "mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"], true, never>;
893
866
  }
894
867
 
895
868
  /** Default options, for the chips module, that can be overridden. */
@@ -1006,14 +979,14 @@ export declare class MatChipSet implements AfterViewInit, OnDestroy {
1006
979
  */
1007
980
  private _redirectDestroyedChipFocus;
1008
981
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipSet, [null, null, { optional: true; }]>;
1009
- static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["_chips"], ["*"], false, never>;
982
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatChipSet, "mat-chip-set", never, { "disabled": { "alias": "disabled"; "required": false; }; "role": { "alias": "role"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, ["_chips"], ["*"], true, never>;
1010
983
  static ngAcceptInputType_disabled: unknown;
1011
984
  static ngAcceptInputType_tabIndex: unknown;
1012
985
  }
1013
986
 
1014
987
  export declare class MatChipsModule {
1015
988
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipsModule, never>;
1016
- 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 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]>;
989
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatChipsModule, never, [typeof i1.MatCommonModule, typeof i1.MatRippleModule, typeof i2.MatChipAction, typeof i3.MatChip, typeof i4.MatChipAvatar, typeof i5.MatChipEditInput, typeof i6.MatChipGrid, typeof i7.MatChipInput, typeof i8.MatChipListbox, typeof i9.MatChipOption, typeof i4.MatChipRemove, typeof i10.MatChipRow, typeof i11.MatChipSet, typeof i4.MatChipTrailingIcon], [typeof i1.MatCommonModule, typeof i3.MatChip, typeof i4.MatChipAvatar, typeof i5.MatChipEditInput, typeof i6.MatChipGrid, typeof i7.MatChipInput, typeof i8.MatChipListbox, typeof i9.MatChipOption, typeof i4.MatChipRemove, typeof i10.MatChipRow, typeof i11.MatChipSet, typeof i4.MatChipTrailingIcon]>;
1017
990
  static ɵinj: i0.ɵɵInjectorDeclaration<MatChipsModule>;
1018
991
  }
1019
992
 
@@ -1043,7 +1016,7 @@ export declare class MatChipTrailingIcon extends MatChipAction {
1043
1016
  isInteractive: boolean;
1044
1017
  _isPrimary: boolean;
1045
1018
  static ɵfac: i0.ɵɵFactoryDeclaration<MatChipTrailingIcon, never>;
1046
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipTrailingIcon, "mat-chip-trailing-icon, [matChipTrailingIcon]", never, {}, {}, never, never, false, never>;
1019
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatChipTrailingIcon, "mat-chip-trailing-icon, [matChipTrailingIcon]", never, {}, {}, never, never, true, never>;
1047
1020
  }
1048
1021
 
1049
1022
  export { }
@@ -60,10 +60,8 @@
60
60
  @mixin density($theme) {
61
61
  @include option-theme.density($theme);
62
62
  @include optgroup-theme.density($theme);
63
+ @include pseudo-checkbox-theme.density($theme);
63
64
  @include ripple-theme.density($theme);
64
-
65
- // TODO(mmalerba): add density mixins for these.
66
- // @include pseudo-checkbox-theme.density($theme);
67
65
  }
68
66
 
69
67
  // Mixin that renders all of the core styles that depend on the theme.