@angular/material-experimental 14.2.1 → 15.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (590) hide show
  1. package/_index.scss +0 -69
  2. package/esm2020/selection/selection-column.mjs +11 -11
  3. package/esm2020/selection/selection-module.mjs +5 -5
  4. package/esm2020/version.mjs +1 -1
  5. package/fesm2015/material-experimental.mjs +1 -1
  6. package/fesm2015/material-experimental.mjs.map +1 -1
  7. package/fesm2015/selection.mjs +13 -13
  8. package/fesm2015/selection.mjs.map +1 -1
  9. package/fesm2020/material-experimental.mjs +1 -1
  10. package/fesm2020/material-experimental.mjs.map +1 -1
  11. package/fesm2020/selection.mjs +13 -13
  12. package/fesm2020/selection.mjs.map +1 -1
  13. package/package.json +55 -422
  14. package/selection/index.d.ts +4 -4
  15. package/esm2020/mdc-autocomplete/animations.mjs +0 -25
  16. package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +0 -26
  17. package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +0 -54
  18. package/esm2020/mdc-autocomplete/autocomplete.mjs +0 -35
  19. package/esm2020/mdc-autocomplete/index.mjs +0 -9
  20. package/esm2020/mdc-autocomplete/mdc-autocomplete_public_index.mjs +0 -5
  21. package/esm2020/mdc-autocomplete/module.mjs +0 -46
  22. package/esm2020/mdc-autocomplete/public-api.mjs +0 -14
  23. package/esm2020/mdc-autocomplete/testing/autocomplete-harness-filters.mjs +0 -9
  24. package/esm2020/mdc-autocomplete/testing/autocomplete-harness.mjs +0 -31
  25. package/esm2020/mdc-autocomplete/testing/index.mjs +0 -9
  26. package/esm2020/mdc-autocomplete/testing/public-api.mjs +0 -10
  27. package/esm2020/mdc-button/button-base.mjs +0 -152
  28. package/esm2020/mdc-button/button.mjs +0 -69
  29. package/esm2020/mdc-button/fab.mjs +0 -175
  30. package/esm2020/mdc-button/icon-button.mjs +0 -57
  31. package/esm2020/mdc-button/index.mjs +0 -9
  32. package/esm2020/mdc-button/mdc-button_public_index.mjs +0 -5
  33. package/esm2020/mdc-button/module.mjs +0 -61
  34. package/esm2020/mdc-button/public-api.mjs +0 -12
  35. package/esm2020/mdc-button/testing/button-harness.mjs +0 -50
  36. package/esm2020/mdc-button/testing/index.mjs +0 -9
  37. package/esm2020/mdc-button/testing/public-api.mjs +0 -9
  38. package/esm2020/mdc-card/card.mjs +0 -261
  39. package/esm2020/mdc-card/index.mjs +0 -9
  40. package/esm2020/mdc-card/mdc-card_public_index.mjs +0 -5
  41. package/esm2020/mdc-card/module.mjs +0 -68
  42. package/esm2020/mdc-card/public-api.mjs +0 -10
  43. package/esm2020/mdc-card/testing/card-harness-filters.mjs +0 -9
  44. package/esm2020/mdc-card/testing/card-harness.mjs +0 -42
  45. package/esm2020/mdc-card/testing/index.mjs +0 -9
  46. package/esm2020/mdc-card/testing/public-api.mjs +0 -10
  47. package/esm2020/mdc-checkbox/checkbox.mjs +0 -93
  48. package/esm2020/mdc-checkbox/index.mjs +0 -9
  49. package/esm2020/mdc-checkbox/mdc-checkbox_public_index.mjs +0 -5
  50. package/esm2020/mdc-checkbox/module.mjs +0 -26
  51. package/esm2020/mdc-checkbox/public-api.mjs +0 -11
  52. package/esm2020/mdc-checkbox/testing/checkbox-harness.mjs +0 -41
  53. package/esm2020/mdc-checkbox/testing/index.mjs +0 -9
  54. package/esm2020/mdc-checkbox/testing/public-api.mjs +0 -9
  55. package/esm2020/mdc-chips/chip-action.mjs +0 -90
  56. package/esm2020/mdc-chips/chip-edit-input.mjs +0 -60
  57. package/esm2020/mdc-chips/chip-grid.mjs +0 -407
  58. package/esm2020/mdc-chips/chip-icons.mjs +0 -110
  59. package/esm2020/mdc-chips/chip-input.mjs +0 -212
  60. package/esm2020/mdc-chips/chip-listbox.mjs +0 -332
  61. package/esm2020/mdc-chips/chip-option.mjs +0 -160
  62. package/esm2020/mdc-chips/chip-row.mjs +0 -176
  63. package/esm2020/mdc-chips/chip-set.mjs +0 -271
  64. package/esm2020/mdc-chips/chip-text-control.mjs +0 -9
  65. package/esm2020/mdc-chips/chip.mjs +0 -287
  66. package/esm2020/mdc-chips/index.mjs +0 -9
  67. package/esm2020/mdc-chips/mdc-chips_public_index.mjs +0 -5
  68. package/esm2020/mdc-chips/module.mjs +0 -87
  69. package/esm2020/mdc-chips/public-api.mjs +0 -20
  70. package/esm2020/mdc-chips/testing/chip-avatar-harness.mjs +0 -22
  71. package/esm2020/mdc-chips/testing/chip-grid-harness.mjs +0 -43
  72. package/esm2020/mdc-chips/testing/chip-harness-filters.mjs +0 -9
  73. package/esm2020/mdc-chips/testing/chip-harness.mjs +0 -58
  74. package/esm2020/mdc-chips/testing/chip-input-harness.mjs +0 -82
  75. package/esm2020/mdc-chips/testing/chip-listbox-harness.mjs +0 -59
  76. package/esm2020/mdc-chips/testing/chip-option-harness.mjs +0 -45
  77. package/esm2020/mdc-chips/testing/chip-remove-harness.mjs +0 -26
  78. package/esm2020/mdc-chips/testing/chip-row-harness.mjs +0 -22
  79. package/esm2020/mdc-chips/testing/chip-set-harness.mjs +0 -26
  80. package/esm2020/mdc-chips/testing/index.mjs +0 -9
  81. package/esm2020/mdc-chips/testing/public-api.mjs +0 -18
  82. package/esm2020/mdc-chips/tokens.mjs +0 -33
  83. package/esm2020/mdc-core/index.mjs +0 -9
  84. package/esm2020/mdc-core/mdc-core_public_index.mjs +0 -5
  85. package/esm2020/mdc-core/option/index.mjs +0 -30
  86. package/esm2020/mdc-core/option/optgroup.mjs +0 -46
  87. package/esm2020/mdc-core/option/option.mjs +0 -52
  88. package/esm2020/mdc-core/public-api.mjs +0 -10
  89. package/esm2020/mdc-core/testing/index.mjs +0 -9
  90. package/esm2020/mdc-core/testing/optgroup-harness-filters.mjs +0 -9
  91. package/esm2020/mdc-core/testing/optgroup-harness.mjs +0 -43
  92. package/esm2020/mdc-core/testing/option-harness-filters.mjs +0 -9
  93. package/esm2020/mdc-core/testing/option-harness.mjs +0 -53
  94. package/esm2020/mdc-core/testing/public-api.mjs +0 -12
  95. package/esm2020/mdc-dialog/dialog-container.mjs +0 -171
  96. package/esm2020/mdc-dialog/dialog-content-directives.mjs +0 -179
  97. package/esm2020/mdc-dialog/dialog-ref.mjs +0 -14
  98. package/esm2020/mdc-dialog/dialog.mjs +0 -82
  99. package/esm2020/mdc-dialog/index.mjs +0 -9
  100. package/esm2020/mdc-dialog/mdc-dialog_public_index.mjs +0 -5
  101. package/esm2020/mdc-dialog/module.mjs +0 -53
  102. package/esm2020/mdc-dialog/public-api.mjs +0 -14
  103. package/esm2020/mdc-dialog/testing/dialog-harness.mjs +0 -29
  104. package/esm2020/mdc-dialog/testing/dialog-opener.mjs +0 -45
  105. package/esm2020/mdc-dialog/testing/index.mjs +0 -9
  106. package/esm2020/mdc-dialog/testing/public-api.mjs +0 -10
  107. package/esm2020/mdc-form-field/directives/error.mjs +0 -47
  108. package/esm2020/mdc-form-field/directives/floating-label.mjs +0 -73
  109. package/esm2020/mdc-form-field/directives/hint.mjs +0 -39
  110. package/esm2020/mdc-form-field/directives/label.mjs +0 -21
  111. package/esm2020/mdc-form-field/directives/line-ripple.mjs +0 -59
  112. package/esm2020/mdc-form-field/directives/notched-outline.mjs +0 -68
  113. package/esm2020/mdc-form-field/directives/prefix.mjs +0 -32
  114. package/esm2020/mdc-form-field/directives/suffix.mjs +0 -32
  115. package/esm2020/mdc-form-field/form-field.mjs +0 -608
  116. package/esm2020/mdc-form-field/index.mjs +0 -9
  117. package/esm2020/mdc-form-field/mdc-form-field_public_index.mjs +0 -5
  118. package/esm2020/mdc-form-field/module.mjs +0 -53
  119. package/esm2020/mdc-form-field/public-api.mjs +0 -16
  120. package/esm2020/mdc-form-field/testing/form-field-harness.mjs +0 -58
  121. package/esm2020/mdc-form-field/testing/index.mjs +0 -9
  122. package/esm2020/mdc-form-field/testing/public-api.mjs +0 -13
  123. package/esm2020/mdc-input/index.mjs +0 -9
  124. package/esm2020/mdc-input/input.mjs +0 -55
  125. package/esm2020/mdc-input/mdc-input_public_index.mjs +0 -5
  126. package/esm2020/mdc-input/module.mjs +0 -27
  127. package/esm2020/mdc-input/public-api.mjs +0 -11
  128. package/esm2020/mdc-input/testing/index.mjs +0 -9
  129. package/esm2020/mdc-input/testing/public-api.mjs +0 -9
  130. package/esm2020/mdc-list/action-list.mjs +0 -31
  131. package/esm2020/mdc-list/index.mjs +0 -9
  132. package/esm2020/mdc-list/list-base.mjs +0 -272
  133. package/esm2020/mdc-list/list-item-sections.mjs +0 -138
  134. package/esm2020/mdc-list/list-option-types.mjs +0 -16
  135. package/esm2020/mdc-list/list-option.mjs +0 -253
  136. package/esm2020/mdc-list/list.mjs +0 -82
  137. package/esm2020/mdc-list/mdc-list_public_index.mjs +0 -5
  138. package/esm2020/mdc-list/module.mjs +0 -98
  139. package/esm2020/mdc-list/nav-list.mjs +0 -31
  140. package/esm2020/mdc-list/public-api.mjs +0 -18
  141. package/esm2020/mdc-list/selection-list.mjs +0 -338
  142. package/esm2020/mdc-list/subheader.mjs +0 -27
  143. package/esm2020/mdc-list/testing/action-list-harness.mjs +0 -59
  144. package/esm2020/mdc-list/testing/index.mjs +0 -9
  145. package/esm2020/mdc-list/testing/list-harness-base.mjs +0 -95
  146. package/esm2020/mdc-list/testing/list-harness-filters.mjs +0 -9
  147. package/esm2020/mdc-list/testing/list-harness.mjs +0 -41
  148. package/esm2020/mdc-list/testing/list-item-harness-base.mjs +0 -150
  149. package/esm2020/mdc-list/testing/nav-list-harness.mjs +0 -69
  150. package/esm2020/mdc-list/testing/public-api.mjs +0 -14
  151. package/esm2020/mdc-list/testing/selection-list-harness.mjs +0 -117
  152. package/esm2020/mdc-menu/directives.mjs +0 -38
  153. package/esm2020/mdc-menu/index.mjs +0 -9
  154. package/esm2020/mdc-menu/mdc-menu_public_index.mjs +0 -5
  155. package/esm2020/mdc-menu/menu-item.mjs +0 -36
  156. package/esm2020/mdc-menu/menu.mjs +0 -43
  157. package/esm2020/mdc-menu/module.mjs +0 -44
  158. package/esm2020/mdc-menu/public-api.mjs +0 -13
  159. package/esm2020/mdc-menu/testing/index.mjs +0 -9
  160. package/esm2020/mdc-menu/testing/menu-harness.mjs +0 -46
  161. package/esm2020/mdc-menu/testing/public-api.mjs +0 -9
  162. package/esm2020/mdc-paginator/index.mjs +0 -9
  163. package/esm2020/mdc-paginator/mdc-paginator_public_index.mjs +0 -5
  164. package/esm2020/mdc-paginator/module.mjs +0 -30
  165. package/esm2020/mdc-paginator/paginator.mjs +0 -48
  166. package/esm2020/mdc-paginator/public-api.mjs +0 -11
  167. package/esm2020/mdc-paginator/testing/index.mjs +0 -9
  168. package/esm2020/mdc-paginator/testing/paginator-harness.mjs +0 -36
  169. package/esm2020/mdc-paginator/testing/public-api.mjs +0 -9
  170. package/esm2020/mdc-progress-bar/index.mjs +0 -9
  171. package/esm2020/mdc-progress-bar/mdc-progress-bar_public_index.mjs +0 -5
  172. package/esm2020/mdc-progress-bar/module.mjs +0 -24
  173. package/esm2020/mdc-progress-bar/progress-bar.mjs +0 -152
  174. package/esm2020/mdc-progress-bar/public-api.mjs +0 -11
  175. package/esm2020/mdc-progress-bar/testing/index.mjs +0 -9
  176. package/esm2020/mdc-progress-bar/testing/progress-bar-harness.mjs +0 -33
  177. package/esm2020/mdc-progress-bar/testing/public-api.mjs +0 -9
  178. package/esm2020/mdc-progress-bar/testing/testing_public_index.mjs +0 -5
  179. package/esm2020/mdc-progress-spinner/index.mjs +0 -9
  180. package/esm2020/mdc-progress-spinner/mdc-progress-spinner_public_index.mjs +0 -5
  181. package/esm2020/mdc-progress-spinner/module.mjs +0 -26
  182. package/esm2020/mdc-progress-spinner/progress-spinner.mjs +0 -151
  183. package/esm2020/mdc-progress-spinner/public-api.mjs +0 -11
  184. package/esm2020/mdc-progress-spinner/testing/index.mjs +0 -9
  185. package/esm2020/mdc-progress-spinner/testing/progress-spinner-harness.mjs +0 -35
  186. package/esm2020/mdc-progress-spinner/testing/public-api.mjs +0 -9
  187. package/esm2020/mdc-progress-spinner/testing/testing_public_index.mjs +0 -5
  188. package/esm2020/mdc-radio/index.mjs +0 -9
  189. package/esm2020/mdc-radio/mdc-radio_public_index.mjs +0 -5
  190. package/esm2020/mdc-radio/module.mjs +0 -26
  191. package/esm2020/mdc-radio/public-api.mjs +0 -11
  192. package/esm2020/mdc-radio/radio.mjs +0 -111
  193. package/esm2020/mdc-radio/testing/index.mjs +0 -9
  194. package/esm2020/mdc-radio/testing/public-api.mjs +0 -9
  195. package/esm2020/mdc-radio/testing/radio-harness.mjs +0 -50
  196. package/esm2020/mdc-select/index.mjs +0 -9
  197. package/esm2020/mdc-select/mdc-select_public_index.mjs +0 -5
  198. package/esm2020/mdc-select/module.mjs +0 -46
  199. package/esm2020/mdc-select/public-api.mjs +0 -12
  200. package/esm2020/mdc-select/select-animations.mjs +0 -38
  201. package/esm2020/mdc-select/select-errors.mjs +0 -35
  202. package/esm2020/mdc-select/select.mjs +0 -172
  203. package/esm2020/mdc-select/testing/index.mjs +0 -9
  204. package/esm2020/mdc-select/testing/public-api.mjs +0 -10
  205. package/esm2020/mdc-select/testing/select-harness-filters.mjs +0 -9
  206. package/esm2020/mdc-select/testing/select-harness.mjs +0 -29
  207. package/esm2020/mdc-slide-toggle/index.mjs +0 -9
  208. package/esm2020/mdc-slide-toggle/mdc-slide-toggle_public_index.mjs +0 -5
  209. package/esm2020/mdc-slide-toggle/module.mjs +0 -27
  210. package/esm2020/mdc-slide-toggle/public-api.mjs +0 -12
  211. package/esm2020/mdc-slide-toggle/slide-toggle-config.mjs +0 -14
  212. package/esm2020/mdc-slide-toggle/slide-toggle.mjs +0 -99
  213. package/esm2020/mdc-slide-toggle/testing/index.mjs +0 -9
  214. package/esm2020/mdc-slide-toggle/testing/public-api.mjs +0 -9
  215. package/esm2020/mdc-slide-toggle/testing/slide-toggle-harness.mjs +0 -47
  216. package/esm2020/mdc-slider/global-change-and-input-listener.mjs +0 -59
  217. package/esm2020/mdc-slider/index.mjs +0 -9
  218. package/esm2020/mdc-slider/mdc-slider_public_index.mjs +0 -5
  219. package/esm2020/mdc-slider/module.mjs +0 -26
  220. package/esm2020/mdc-slider/public-api.mjs +0 -10
  221. package/esm2020/mdc-slider/slider.mjs +0 -1094
  222. package/esm2020/mdc-slider/testing/index.mjs +0 -9
  223. package/esm2020/mdc-slider/testing/public-api.mjs +0 -11
  224. package/esm2020/mdc-slider/testing/slider-harness-filters.mjs +0 -2
  225. package/esm2020/mdc-slider/testing/slider-harness.mjs +0 -62
  226. package/esm2020/mdc-slider/testing/slider-thumb-harness.mjs +0 -94
  227. package/esm2020/mdc-snack-bar/index.mjs +0 -9
  228. package/esm2020/mdc-snack-bar/mdc-snack-bar_public_index.mjs +0 -5
  229. package/esm2020/mdc-snack-bar/module.mjs +0 -51
  230. package/esm2020/mdc-snack-bar/public-api.mjs +0 -14
  231. package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +0 -40
  232. package/esm2020/mdc-snack-bar/snack-bar-container.mjs +0 -41
  233. package/esm2020/mdc-snack-bar/snack-bar-content.mjs +0 -52
  234. package/esm2020/mdc-snack-bar/snack-bar.mjs +0 -45
  235. package/esm2020/mdc-snack-bar/testing/index.mjs +0 -9
  236. package/esm2020/mdc-snack-bar/testing/public-api.mjs +0 -9
  237. package/esm2020/mdc-snack-bar/testing/snack-bar-harness.mjs +0 -34
  238. package/esm2020/mdc-table/cell.mjs +0 -141
  239. package/esm2020/mdc-table/index.mjs +0 -9
  240. package/esm2020/mdc-table/mdc-table_public_index.mjs +0 -5
  241. package/esm2020/mdc-table/module.mjs +0 -94
  242. package/esm2020/mdc-table/public-api.mjs +0 -14
  243. package/esm2020/mdc-table/row.mjs +0 -143
  244. package/esm2020/mdc-table/table-data-source.mjs +0 -24
  245. package/esm2020/mdc-table/table.mjs +0 -74
  246. package/esm2020/mdc-table/testing/cell-harness.mjs +0 -50
  247. package/esm2020/mdc-table/testing/index.mjs +0 -9
  248. package/esm2020/mdc-table/testing/public-api.mjs +0 -11
  249. package/esm2020/mdc-table/testing/row-harness.mjs +0 -64
  250. package/esm2020/mdc-table/testing/table-harness.mjs +0 -30
  251. package/esm2020/mdc-table/text-column.mjs +0 -58
  252. package/esm2020/mdc-tabs/index.mjs +0 -9
  253. package/esm2020/mdc-tabs/ink-bar.mjs +0 -130
  254. package/esm2020/mdc-tabs/mdc-tabs_public_index.mjs +0 -5
  255. package/esm2020/mdc-tabs/module.mjs +0 -93
  256. package/esm2020/mdc-tabs/public-api.mjs +0 -19
  257. package/esm2020/mdc-tabs/tab-body.mjs +0 -60
  258. package/esm2020/mdc-tabs/tab-content.mjs +0 -20
  259. package/esm2020/mdc-tabs/tab-group.mjs +0 -98
  260. package/esm2020/mdc-tabs/tab-header.mjs +0 -73
  261. package/esm2020/mdc-tabs/tab-label-wrapper.mjs +0 -32
  262. package/esm2020/mdc-tabs/tab-label.mjs +0 -22
  263. package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +0 -202
  264. package/esm2020/mdc-tabs/tab.mjs +0 -34
  265. package/esm2020/mdc-tabs/testing/index.mjs +0 -9
  266. package/esm2020/mdc-tabs/testing/public-api.mjs +0 -13
  267. package/esm2020/mdc-tabs/testing/tab-group-harness.mjs +0 -56
  268. package/esm2020/mdc-tabs/testing/tab-harness-filters.mjs +0 -2
  269. package/esm2020/mdc-tabs/testing/tab-harness.mjs +0 -64
  270. package/esm2020/mdc-tabs/testing/tab-link-harness.mjs +0 -40
  271. package/esm2020/mdc-tabs/testing/tab-nav-bar-harness.mjs +0 -66
  272. package/esm2020/mdc-tabs/testing/tab-nav-panel-harness.mjs +0 -27
  273. package/esm2020/mdc-tooltip/index.mjs +0 -9
  274. package/esm2020/mdc-tooltip/mdc-tooltip_public_index.mjs +0 -5
  275. package/esm2020/mdc-tooltip/module.mjs +0 -31
  276. package/esm2020/mdc-tooltip/public-api.mjs +0 -12
  277. package/esm2020/mdc-tooltip/testing/index.mjs +0 -9
  278. package/esm2020/mdc-tooltip/testing/public-api.mjs +0 -9
  279. package/esm2020/mdc-tooltip/testing/tooltip-harness.mjs +0 -30
  280. package/esm2020/mdc-tooltip/tooltip-animations.mjs +0 -24
  281. package/esm2020/mdc-tooltip/tooltip.mjs +0 -132
  282. package/fesm2015/mdc-autocomplete/testing.mjs +0 -50
  283. package/fesm2015/mdc-autocomplete/testing.mjs.map +0 -1
  284. package/fesm2015/mdc-autocomplete.mjs +0 -196
  285. package/fesm2015/mdc-autocomplete.mjs.map +0 -1
  286. package/fesm2015/mdc-button/testing.mjs +0 -75
  287. package/fesm2015/mdc-button/testing.mjs.map +0 -1
  288. package/fesm2015/mdc-button.mjs +0 -490
  289. package/fesm2015/mdc-button.mjs.map +0 -1
  290. package/fesm2015/mdc-card/testing.mjs +0 -63
  291. package/fesm2015/mdc-card/testing.mjs.map +0 -1
  292. package/fesm2015/mdc-card.mjs +0 -351
  293. package/fesm2015/mdc-card.mjs.map +0 -1
  294. package/fesm2015/mdc-checkbox/testing.mjs +0 -56
  295. package/fesm2015/mdc-checkbox/testing.mjs.map +0 -1
  296. package/fesm2015/mdc-checkbox.mjs +0 -142
  297. package/fesm2015/mdc-checkbox.mjs.map +0 -1
  298. package/fesm2015/mdc-chips/testing.mjs +0 -394
  299. package/fesm2015/mdc-chips/testing.mjs.map +0 -1
  300. package/fesm2015/mdc-chips.mjs +0 -2169
  301. package/fesm2015/mdc-chips.mjs.map +0 -1
  302. package/fesm2015/mdc-core/testing.mjs +0 -118
  303. package/fesm2015/mdc-core/testing.mjs.map +0 -1
  304. package/fesm2015/mdc-core.mjs +0 -141
  305. package/fesm2015/mdc-core.mjs.map +0 -1
  306. package/fesm2015/mdc-dialog/testing.mjs +0 -90
  307. package/fesm2015/mdc-dialog/testing.mjs.map +0 -1
  308. package/fesm2015/mdc-dialog.mjs +0 -500
  309. package/fesm2015/mdc-dialog.mjs.map +0 -1
  310. package/fesm2015/mdc-form-field/testing.mjs +0 -78
  311. package/fesm2015/mdc-form-field/testing.mjs.map +0 -1
  312. package/fesm2015/mdc-form-field.mjs +0 -1018
  313. package/fesm2015/mdc-form-field.mjs.map +0 -1
  314. package/fesm2015/mdc-input/testing.mjs +0 -18
  315. package/fesm2015/mdc-input/testing.mjs.map +0 -1
  316. package/fesm2015/mdc-input.mjs +0 -103
  317. package/fesm2015/mdc-input.mjs.map +0 -1
  318. package/fesm2015/mdc-list/testing.mjs +0 -574
  319. package/fesm2015/mdc-list/testing.mjs.map +0 -1
  320. package/fesm2015/mdc-list.mjs +0 -1264
  321. package/fesm2015/mdc-list.mjs.map +0 -1
  322. package/fesm2015/mdc-menu/testing.mjs +0 -59
  323. package/fesm2015/mdc-menu/testing.mjs.map +0 -1
  324. package/fesm2015/mdc-menu.mjs +0 -174
  325. package/fesm2015/mdc-menu.mjs.map +0 -1
  326. package/fesm2015/mdc-paginator/testing.mjs +0 -55
  327. package/fesm2015/mdc-paginator/testing.mjs.map +0 -1
  328. package/fesm2015/mdc-paginator.mjs +0 -100
  329. package/fesm2015/mdc-paginator.mjs.map +0 -1
  330. package/fesm2015/mdc-progress-bar/testing.mjs +0 -54
  331. package/fesm2015/mdc-progress-bar/testing.mjs.map +0 -1
  332. package/fesm2015/mdc-progress-bar.mjs +0 -198
  333. package/fesm2015/mdc-progress-bar.mjs.map +0 -1
  334. package/fesm2015/mdc-progress-spinner/testing.mjs +0 -56
  335. package/fesm2015/mdc-progress-spinner/testing.mjs.map +0 -1
  336. package/fesm2015/mdc-progress-spinner.mjs +0 -200
  337. package/fesm2015/mdc-progress-spinner.mjs.map +0 -1
  338. package/fesm2015/mdc-radio/testing.mjs +0 -63
  339. package/fesm2015/mdc-radio/testing.mjs.map +0 -1
  340. package/fesm2015/mdc-radio.mjs +0 -155
  341. package/fesm2015/mdc-radio.mjs.map +0 -1
  342. package/fesm2015/mdc-select/testing.mjs +0 -48
  343. package/fesm2015/mdc-select/testing.mjs.map +0 -1
  344. package/fesm2015/mdc-select.mjs +0 -273
  345. package/fesm2015/mdc-select.mjs.map +0 -1
  346. package/fesm2015/mdc-slide-toggle/testing.mjs +0 -66
  347. package/fesm2015/mdc-slide-toggle/testing.mjs.map +0 -1
  348. package/fesm2015/mdc-slide-toggle.mjs +0 -159
  349. package/fesm2015/mdc-slide-toggle.mjs.map +0 -1
  350. package/fesm2015/mdc-slider/testing.mjs +0 -199
  351. package/fesm2015/mdc-slider/testing.mjs.map +0 -1
  352. package/fesm2015/mdc-slider.mjs +0 -1212
  353. package/fesm2015/mdc-slider.mjs.map +0 -1
  354. package/fesm2015/mdc-snack-bar/testing.mjs +0 -49
  355. package/fesm2015/mdc-snack-bar/testing.mjs.map +0 -1
  356. package/fesm2015/mdc-snack-bar.mjs +0 -229
  357. package/fesm2015/mdc-snack-bar.mjs.map +0 -1
  358. package/fesm2015/mdc-table/testing.mjs +0 -158
  359. package/fesm2015/mdc-table/testing.mjs.map +0 -1
  360. package/fesm2015/mdc-table.mjs +0 -540
  361. package/fesm2015/mdc-table.mjs.map +0 -1
  362. package/fesm2015/mdc-tabs/testing.mjs +0 -273
  363. package/fesm2015/mdc-tabs/testing.mjs.map +0 -1
  364. package/fesm2015/mdc-tabs.mjs +0 -737
  365. package/fesm2015/mdc-tabs.mjs.map +0 -1
  366. package/fesm2015/mdc-tooltip/testing.mjs +0 -49
  367. package/fesm2015/mdc-tooltip/testing.mjs.map +0 -1
  368. package/fesm2015/mdc-tooltip.mjs +0 -206
  369. package/fesm2015/mdc-tooltip.mjs.map +0 -1
  370. package/fesm2020/mdc-autocomplete/testing.mjs +0 -58
  371. package/fesm2020/mdc-autocomplete/testing.mjs.map +0 -1
  372. package/fesm2020/mdc-autocomplete.mjs +0 -196
  373. package/fesm2020/mdc-autocomplete.mjs.map +0 -1
  374. package/fesm2020/mdc-button/testing.mjs +0 -69
  375. package/fesm2020/mdc-button/testing.mjs.map +0 -1
  376. package/fesm2020/mdc-button.mjs +0 -510
  377. package/fesm2020/mdc-button.mjs.map +0 -1
  378. package/fesm2020/mdc-card/testing.mjs +0 -69
  379. package/fesm2020/mdc-card/testing.mjs.map +0 -1
  380. package/fesm2020/mdc-card.mjs +0 -349
  381. package/fesm2020/mdc-card.mjs.map +0 -1
  382. package/fesm2020/mdc-checkbox/testing.mjs +0 -60
  383. package/fesm2020/mdc-checkbox/testing.mjs.map +0 -1
  384. package/fesm2020/mdc-checkbox.mjs +0 -139
  385. package/fesm2020/mdc-checkbox.mjs.map +0 -1
  386. package/fesm2020/mdc-chips/testing.mjs +0 -395
  387. package/fesm2020/mdc-chips/testing.mjs.map +0 -1
  388. package/fesm2020/mdc-chips.mjs +0 -2161
  389. package/fesm2020/mdc-chips.mjs.map +0 -1
  390. package/fesm2020/mdc-core/testing.mjs +0 -129
  391. package/fesm2020/mdc-core/testing.mjs.map +0 -1
  392. package/fesm2020/mdc-core.mjs +0 -139
  393. package/fesm2020/mdc-core.mjs.map +0 -1
  394. package/fesm2020/mdc-dialog/testing.mjs +0 -90
  395. package/fesm2020/mdc-dialog/testing.mjs.map +0 -1
  396. package/fesm2020/mdc-dialog.mjs +0 -499
  397. package/fesm2020/mdc-dialog.mjs.map +0 -1
  398. package/fesm2020/mdc-form-field/testing.mjs +0 -78
  399. package/fesm2020/mdc-form-field/testing.mjs.map +0 -1
  400. package/fesm2020/mdc-form-field.mjs +0 -1014
  401. package/fesm2020/mdc-form-field.mjs.map +0 -1
  402. package/fesm2020/mdc-input/testing.mjs +0 -18
  403. package/fesm2020/mdc-input/testing.mjs.map +0 -1
  404. package/fesm2020/mdc-input.mjs +0 -103
  405. package/fesm2020/mdc-input.mjs.map +0 -1
  406. package/fesm2020/mdc-list/testing.mjs +0 -544
  407. package/fesm2020/mdc-list/testing.mjs.map +0 -1
  408. package/fesm2020/mdc-list.mjs +0 -1260
  409. package/fesm2020/mdc-list.mjs.map +0 -1
  410. package/fesm2020/mdc-menu/testing.mjs +0 -65
  411. package/fesm2020/mdc-menu/testing.mjs.map +0 -1
  412. package/fesm2020/mdc-menu.mjs +0 -172
  413. package/fesm2020/mdc-menu.mjs.map +0 -1
  414. package/fesm2020/mdc-paginator/testing.mjs +0 -55
  415. package/fesm2020/mdc-paginator/testing.mjs.map +0 -1
  416. package/fesm2020/mdc-paginator.mjs +0 -98
  417. package/fesm2020/mdc-paginator.mjs.map +0 -1
  418. package/fesm2020/mdc-progress-bar/testing.mjs +0 -56
  419. package/fesm2020/mdc-progress-bar/testing.mjs.map +0 -1
  420. package/fesm2020/mdc-progress-bar.mjs +0 -196
  421. package/fesm2020/mdc-progress-bar.mjs.map +0 -1
  422. package/fesm2020/mdc-progress-spinner/testing.mjs +0 -58
  423. package/fesm2020/mdc-progress-spinner/testing.mjs.map +0 -1
  424. package/fesm2020/mdc-progress-spinner.mjs +0 -197
  425. package/fesm2020/mdc-progress-spinner.mjs.map +0 -1
  426. package/fesm2020/mdc-radio/testing.mjs +0 -69
  427. package/fesm2020/mdc-radio/testing.mjs.map +0 -1
  428. package/fesm2020/mdc-radio.mjs +0 -153
  429. package/fesm2020/mdc-radio.mjs.map +0 -1
  430. package/fesm2020/mdc-select/testing.mjs +0 -56
  431. package/fesm2020/mdc-select/testing.mjs.map +0 -1
  432. package/fesm2020/mdc-select.mjs +0 -273
  433. package/fesm2020/mdc-select.mjs.map +0 -1
  434. package/fesm2020/mdc-slide-toggle/testing.mjs +0 -66
  435. package/fesm2020/mdc-slide-toggle/testing.mjs.map +0 -1
  436. package/fesm2020/mdc-slide-toggle.mjs +0 -157
  437. package/fesm2020/mdc-slide-toggle.mjs.map +0 -1
  438. package/fesm2020/mdc-slider/testing.mjs +0 -172
  439. package/fesm2020/mdc-slider/testing.mjs.map +0 -1
  440. package/fesm2020/mdc-slider.mjs +0 -1191
  441. package/fesm2020/mdc-slider.mjs.map +0 -1
  442. package/fesm2020/mdc-snack-bar/testing.mjs +0 -53
  443. package/fesm2020/mdc-snack-bar/testing.mjs.map +0 -1
  444. package/fesm2020/mdc-snack-bar.mjs +0 -232
  445. package/fesm2020/mdc-snack-bar.mjs.map +0 -1
  446. package/fesm2020/mdc-table/testing.mjs +0 -158
  447. package/fesm2020/mdc-table/testing.mjs.map +0 -1
  448. package/fesm2020/mdc-table.mjs +0 -539
  449. package/fesm2020/mdc-table.mjs.map +0 -1
  450. package/fesm2020/mdc-tabs/testing.mjs +0 -265
  451. package/fesm2020/mdc-tabs/testing.mjs.map +0 -1
  452. package/fesm2020/mdc-tabs.mjs +0 -723
  453. package/fesm2020/mdc-tabs.mjs.map +0 -1
  454. package/fesm2020/mdc-tooltip/testing.mjs +0 -49
  455. package/fesm2020/mdc-tooltip/testing.mjs.map +0 -1
  456. package/fesm2020/mdc-tooltip.mjs +0 -202
  457. package/fesm2020/mdc-tooltip.mjs.map +0 -1
  458. package/mdc-autocomplete/_autocomplete-theme.import.scss +0 -5
  459. package/mdc-autocomplete/_autocomplete-theme.scss +0 -48
  460. package/mdc-autocomplete/index.d.ts +0 -97
  461. package/mdc-autocomplete/testing/index.d.ts +0 -32
  462. package/mdc-button/_button-base.import.scss +0 -4
  463. package/mdc-button/_button-base.scss +0 -95
  464. package/mdc-button/_button-theme-private.scss +0 -62
  465. package/mdc-button/_button-theme.import.scss +0 -16
  466. package/mdc-button/_button-theme.scss +0 -224
  467. package/mdc-button/_fab-theme.scss +0 -90
  468. package/mdc-button/_icon-button-theme.scss +0 -76
  469. package/mdc-button/index.d.ts +0 -216
  470. package/mdc-button/testing/index.d.ts +0 -41
  471. package/mdc-card/_card-theme.import.scss +0 -7
  472. package/mdc-card/_card-theme.scss +0 -74
  473. package/mdc-card/index.d.ts +0 -194
  474. package/mdc-card/testing/index.d.ts +0 -44
  475. package/mdc-checkbox/_checkbox-private.scss +0 -53
  476. package/mdc-checkbox/_checkbox-theme.import.scss +0 -15
  477. package/mdc-checkbox/_checkbox-theme.scss +0 -122
  478. package/mdc-checkbox/index.d.ts +0 -87
  479. package/mdc-checkbox/testing/index.d.ts +0 -28
  480. package/mdc-chips/_chips-theme.import.scss +0 -8
  481. package/mdc-chips/_chips-theme.scss +0 -117
  482. package/mdc-chips/index.d.ts +0 -979
  483. package/mdc-chips/testing/index.d.ts +0 -232
  484. package/mdc-core/_core-theme.import.scss +0 -10
  485. package/mdc-core/_core-theme.scss +0 -78
  486. package/mdc-core/_elevation.scss +0 -38
  487. package/mdc-core/color/_all-color.scss +0 -25
  488. package/mdc-core/density/_all-density.scss +0 -25
  489. package/mdc-core/index.d.ts +0 -206
  490. package/mdc-core/mdc-helpers/_focus-indicators-theme.scss +0 -39
  491. package/mdc-core/mdc-helpers/_focus-indicators.import.scss +0 -10
  492. package/mdc-core/mdc-helpers/_focus-indicators.scss +0 -15
  493. package/mdc-core/mdc-helpers/_mdc-helpers.import.scss +0 -8
  494. package/mdc-core/mdc-helpers/_mdc-helpers.scss +0 -221
  495. package/mdc-core/option/_optgroup-theme.import.scss +0 -7
  496. package/mdc-core/option/_optgroup-theme.scss +0 -44
  497. package/mdc-core/option/_option-theme.import.scss +0 -7
  498. package/mdc-core/option/_option-theme.scss +0 -87
  499. package/mdc-core/testing/index.d.ts +0 -64
  500. package/mdc-core/theming/_all-theme.scss +0 -61
  501. package/mdc-core/theming/prebuilt/deeppurple-amber.css +0 -1
  502. package/mdc-core/theming/prebuilt/indigo-pink.css +0 -1
  503. package/mdc-core/theming/prebuilt/pink-bluegrey.css +0 -1
  504. package/mdc-core/theming/prebuilt/purple-green.css +0 -1
  505. package/mdc-core/typography/_all-typography.scss +0 -99
  506. package/mdc-dialog/_dialog-legacy-padding.import.scss +0 -1
  507. package/mdc-dialog/_dialog-legacy-padding.scss +0 -31
  508. package/mdc-dialog/_dialog-theme.import.scss +0 -5
  509. package/mdc-dialog/_dialog-theme.scss +0 -78
  510. package/mdc-dialog/_mdc-dialog-structure-overrides.import.scss +0 -1
  511. package/mdc-dialog/_mdc-dialog-structure-overrides.scss +0 -56
  512. package/mdc-dialog/index.d.ts +0 -217
  513. package/mdc-dialog/testing/index.d.ts +0 -47
  514. package/mdc-form-field/_form-field-density.scss +0 -119
  515. package/mdc-form-field/_form-field-focus-overlay.scss +0 -34
  516. package/mdc-form-field/_form-field-high-contrast.scss +0 -39
  517. package/mdc-form-field/_form-field-native-select.scss +0 -133
  518. package/mdc-form-field/_form-field-sizing.scss +0 -40
  519. package/mdc-form-field/_form-field-subscript.scss +0 -83
  520. package/mdc-form-field/_form-field-theme.scss +0 -148
  521. package/mdc-form-field/_mdc-text-field-structure-overrides.scss +0 -129
  522. package/mdc-form-field/_mdc-text-field-textarea-overrides.scss +0 -36
  523. package/mdc-form-field/_mdc-text-field-theme-variable-refresh.scss +0 -63
  524. package/mdc-form-field/index.d.ts +0 -431
  525. package/mdc-form-field/testing/index.d.ts +0 -48
  526. package/mdc-input/_input-theme.import.scss +0 -5
  527. package/mdc-input/_input-theme.scss +0 -35
  528. package/mdc-input/index.d.ts +0 -30
  529. package/mdc-input/testing/index.d.ts +0 -20
  530. package/mdc-list/_interactive-list-theme.import.scss +0 -5
  531. package/mdc-list/_interactive-list-theme.scss +0 -40
  532. package/mdc-list/_list-option-theme.import.scss +0 -13
  533. package/mdc-list/_list-option-theme.scss +0 -28
  534. package/mdc-list/_list-option-trailing-avatar-compat.scss +0 -58
  535. package/mdc-list/_list-theme.import.scss +0 -17
  536. package/mdc-list/_list-theme.scss +0 -81
  537. package/mdc-list/index.d.ts +0 -534
  538. package/mdc-list/testing/index.d.ts +0 -372
  539. package/mdc-menu/_menu-theme.import.scss +0 -5
  540. package/mdc-menu/_menu-theme.scss +0 -88
  541. package/mdc-menu/index.d.ts +0 -110
  542. package/mdc-menu/testing/index.d.ts +0 -38
  543. package/mdc-paginator/_paginator-theme.import.scss +0 -9
  544. package/mdc-paginator/_paginator-theme.scss +0 -106
  545. package/mdc-paginator/_paginator-variables.import.scss +0 -1
  546. package/mdc-paginator/_paginator-variables.scss +0 -13
  547. package/mdc-paginator/index.d.ts +0 -72
  548. package/mdc-paginator/testing/index.d.ts +0 -30
  549. package/mdc-progress-bar/_progress-bar-theme.import.scss +0 -6
  550. package/mdc-progress-bar/_progress-bar-theme.scss +0 -57
  551. package/mdc-progress-bar/index.d.ts +0 -98
  552. package/mdc-progress-bar/testing/index.d.ts +0 -24
  553. package/mdc-progress-spinner/_progress-spinner-theme.import.scss +0 -6
  554. package/mdc-progress-spinner/_progress-spinner-theme.scss +0 -48
  555. package/mdc-progress-spinner/index.d.ts +0 -90
  556. package/mdc-progress-spinner/testing/index.d.ts +0 -26
  557. package/mdc-radio/_radio-theme.import.scss +0 -7
  558. package/mdc-radio/_radio-theme.scss +0 -110
  559. package/mdc-radio/index.d.ts +0 -72
  560. package/mdc-radio/testing/index.d.ts +0 -43
  561. package/mdc-select/_select-theme.import.scss +0 -10
  562. package/mdc-select/_select-theme.scss +0 -100
  563. package/mdc-select/index.d.ts +0 -111
  564. package/mdc-select/testing/index.d.ts +0 -28
  565. package/mdc-slide-toggle/_slide-toggle-theme.import.scss +0 -11
  566. package/mdc-slide-toggle/_slide-toggle-theme.scss +0 -140
  567. package/mdc-slide-toggle/index.d.ts +0 -83
  568. package/mdc-slide-toggle/testing/index.d.ts +0 -27
  569. package/mdc-slider/_slider-theme.import.scss +0 -5
  570. package/mdc-slider/_slider-theme.scss +0 -125
  571. package/mdc-slider/index.d.ts +0 -435
  572. package/mdc-slider/testing/index.d.ts +0 -92
  573. package/mdc-snack-bar/_snack-bar-theme.import.scss +0 -8
  574. package/mdc-snack-bar/_snack-bar-theme.scss +0 -81
  575. package/mdc-snack-bar/index.d.ts +0 -136
  576. package/mdc-snack-bar/testing/index.d.ts +0 -23
  577. package/mdc-table/_table-theme.import.scss +0 -11
  578. package/mdc-table/_table-theme.scss +0 -78
  579. package/mdc-table/index.d.ts +0 -238
  580. package/mdc-table/testing/index.d.ts +0 -118
  581. package/mdc-tabs/_tabs-common.import.scss +0 -14
  582. package/mdc-tabs/_tabs-common.scss +0 -196
  583. package/mdc-tabs/_tabs-theme.import.scss +0 -8
  584. package/mdc-tabs/_tabs-theme.scss +0 -146
  585. package/mdc-tabs/index.d.ts +0 -307
  586. package/mdc-tabs/testing/index.d.ts +0 -151
  587. package/mdc-tooltip/_tooltip-theme.import.scss +0 -5
  588. package/mdc-tooltip/_tooltip-theme.scss +0 -49
  589. package/mdc-tooltip/index.d.ts +0 -118
  590. package/mdc-tooltip/testing/index.d.ts +0 -26
@@ -1,32 +0,0 @@
1
- import { BaseHarnessFilters } from '@angular/cdk/testing';
2
- import { ComponentHarnessConstructor } from '@angular/cdk/testing';
3
- import { HarnessPredicate } from '@angular/cdk/testing';
4
- import { _MatAutocompleteHarnessBase } from '@angular/material/autocomplete/testing';
5
- import { MatOptgroupHarness } from '@angular/material-experimental/mdc-core/testing';
6
- import { MatOptionHarness } from '@angular/material-experimental/mdc-core/testing';
7
- import { OptgroupHarnessFilters } from '@angular/material-experimental/mdc-core/testing';
8
- import { OptionHarnessFilters } from '@angular/material-experimental/mdc-core/testing';
9
-
10
- /** A set of criteria that can be used to filter a list of `MatAutocompleteHarness` instances. */
11
- export declare interface AutocompleteHarnessFilters extends BaseHarnessFilters {
12
- /** Only find instances whose associated input element matches the given value. */
13
- value?: string | RegExp;
14
- }
15
-
16
- /** Harness for interacting with an MDC-based mat-autocomplete in tests. */
17
- export declare class MatAutocompleteHarness extends _MatAutocompleteHarnessBase<typeof MatOptionHarness, MatOptionHarness, OptionHarnessFilters, typeof MatOptgroupHarness, MatOptgroupHarness, OptgroupHarnessFilters> {
18
- protected _prefix: string;
19
- protected _optionClass: typeof MatOptionHarness;
20
- protected _optionGroupClass: typeof MatOptgroupHarness;
21
- /** The selector for the host element of a `MatAutocomplete` instance. */
22
- static hostSelector: string;
23
- /**
24
- * Gets a `HarnessPredicate` that can be used to search for an autocomplete with specific
25
- * attributes.
26
- * @param options Options for filtering which autocomplete instances are considered a match.
27
- * @return a `HarnessPredicate` configured with the given options.
28
- */
29
- static with<T extends MatAutocompleteHarness>(this: ComponentHarnessConstructor<T>, options?: AutocompleteHarnessFilters): HarnessPredicate<T>;
30
- }
31
-
32
- export { }
@@ -1,4 +0,0 @@
1
- @forward '../../material/core/style/layout-common.import';
2
- @forward 'button-base';
3
-
4
- @import '../../material/core/style/layout-common';
@@ -1,95 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '@material/touch-target' as mdc-touch-target;
4
-
5
- @use '../mdc-core/mdc-helpers/mdc-helpers';
6
-
7
- // Adds styles necessary to provide stateful interactions with the button. This includes providing
8
- // content for the state container's ::before and ::after so that they can be given a background
9
- // color and opacity for states like hover, active, and focus. Additionally, adds styles to the
10
- // ripple and state container so that they fill the button, match the border radius, and avoid
11
- // pointer events.
12
- @mixin mat-private-button-interactive() {
13
- // The ripple container should match the bounds of the entire button.
14
- .mat-mdc-button-ripple,
15
- .mat-mdc-button-persistent-ripple,
16
- .mat-mdc-button-persistent-ripple::before {
17
- @include mat.private-fill;
18
-
19
- // Disable pointer events for the ripple container and state overlay because the container
20
- // will overlay the user content and we don't want to disable mouse events on the user content.
21
- // Pointer events can be safely disabled because the ripple trigger element is the host element.
22
- pointer-events: none;
23
-
24
- // Inherit the border radius from the parent so that state overlay and ripples don't exceed the
25
- // parent button boundaries. Note that an inherited border radius does not work properly if
26
- // the actual button element does have a border because it causes the inner content to be
27
- // smaller. We have special logic for stroked buttons to handle this scenario.
28
- border-radius: inherit;
29
- }
30
-
31
- // We use ::before so that we can reuse some of MDC's theming.
32
- .mat-mdc-button-persistent-ripple::before {
33
- content: '';
34
- opacity: 0;
35
- background-color: var(--mat-mdc-button-persistent-ripple-color);
36
- }
37
-
38
- .mat-ripple-element {
39
- background-color: var(--mat-mdc-button-ripple-color);
40
- }
41
-
42
- // The content should appear over the state and ripple layers, otherwise they may adversely affect
43
- // the accessibility of the text content.
44
- .mdc-button__label {
45
- z-index: 1;
46
- }
47
-
48
- // The focus indicator should match the bounds of the entire button.
49
- .mat-mdc-focus-indicator {
50
- @include mat.private-fill();
51
- }
52
-
53
- &:focus .mat-mdc-focus-indicator::before {
54
- content: '';
55
- }
56
- }
57
-
58
- // MDC's disabled buttons define a default cursor with pointer-events none. However, they select
59
- // :disabled for this, which does not affect anchor tags.
60
- // TODO(andrewseguin): Discuss with the MDC team about a mixin we can call for applying this style,
61
- // and note that having pointer-events may have unintended side-effects, e.g. allowing the user
62
- // to click the target underneath the button.
63
- @mixin mat-private-button-disabled() {
64
- &[disabled] {
65
- cursor: default;
66
- pointer-events: none;
67
- @content;
68
- }
69
- }
70
-
71
- @mixin mat-private-button-touch-target($is-square) {
72
- // Element used to ensure that the button has a touch target that meets the required minimum.
73
- // Note that we use this, instead of MDC's built-in `mdc-button--touch` class, because the MDC
74
- // class is implemented as `margin-top: 6px; margin-bottom: 6px` on the host element which
75
- // goes against our rule of not having margins on the host node. Furthermore, having the margin on
76
- // the button itself would require us to wrap it in another div. See:
77
- // https://github.com/material-components/material-components-web/tree/master/packages/mdc-button#making-buttons-accessible
78
- .mat-mdc-button-touch-target {
79
- @include mdc-touch-target.touch-target(
80
- $set-width: $is-square,
81
- $query: mdc-helpers.$mat-base-styles-query);
82
- }
83
- }
84
-
85
- // Changes a button theme to exclude the ripple styles.
86
- @function mat-private-button-remove-ripple($theme) {
87
- @return map.merge($theme, (
88
- focus-state-layer-color: null,
89
- focus-state-layer-opacity: null,
90
- hover-state-layer-color: null,
91
- hover-state-layer-opacity: null,
92
- pressed-state-layer-color: null,
93
- pressed-state-layer-opacity: null,
94
- ));
95
- }
@@ -1,62 +0,0 @@
1
- @use 'sass:map';
2
- @use '@material/ripple/ripple-theme' as mdc-ripple-theme;
3
- @use '@material/theme/theme-color' as mdc-theme-color;
4
- @use '../mdc-core/mdc-helpers/mdc-helpers';
5
-
6
- @mixin _ripple-color($color) {
7
- --mat-mdc-button-persistent-ripple-color: #{$color};
8
- --mat-mdc-button-ripple-color: #{rgba($color, 0.1)};
9
- }
10
-
11
- @mixin ripple-theme-styles($config, $is-filled) {
12
- $opacities: if(map.get($config, is-dark),
13
- mdc-ripple-theme.$light-ink-opacities, mdc-ripple-theme.$dark-ink-opacities);
14
-
15
- // Ideally these styles would be structural, but MDC bases some of the opacities on the theme.
16
- &:hover .mat-mdc-button-persistent-ripple::before {
17
- opacity: map.get($opacities, hover);
18
- }
19
-
20
- &:focus .mat-mdc-button-persistent-ripple::before {
21
- opacity: map.get($opacities, focus);
22
- }
23
-
24
- &:active .mat-mdc-button-persistent-ripple::before {
25
- opacity: map.get($opacities, press);
26
- }
27
-
28
- @include _ripple-color(mdc-theme-color.prop-value(on-surface));
29
-
30
- &.mat-primary {
31
- @include _ripple-color(mdc-theme-color.prop-value(if($is-filled, on-primary, primary)));
32
- }
33
-
34
- &.mat-accent {
35
- @include _ripple-color(mdc-theme-color.prop-value(if($is-filled, on-secondary, secondary)));
36
- }
37
-
38
- &.mat-warn {
39
- @include _ripple-color(mdc-theme-color.prop-value(if($is-filled, on-error, error)));
40
- }
41
- }
42
-
43
- // Wraps the content style in a selector for the disabled state.
44
- // MDC adds theme color by using :not(:disabled), so just using [disabled] once will not
45
- // override this, neither will it apply to anchor tags. This needs to override the
46
- // previously set theme color, so it must be ordered after the theme styles.
47
- // TODO(andrewseguin): Discuss with the MDC team to see if we can avoid the :not(:disabled) by
48
- // manually styling disabled buttons with a [disabled] selector.
49
- @mixin apply-disabled-style() {
50
- &[disabled][disabled] {
51
- @content;
52
- }
53
- }
54
-
55
- // Hides the touch target on lower densities.
56
- @mixin touch-target-density($scale) {
57
- @include mdc-helpers.if-touch-targets-unsupported($scale) {
58
- .mat-mdc-button-touch-target {
59
- display: none;
60
- }
61
- }
62
- }
@@ -1,16 +0,0 @@
1
- @forward '../mdc-core/mdc-helpers/mdc-helpers.import';
2
- @forward '../../material/core/ripple/ripple.import';
3
- @forward '../mdc-core/mdc-helpers/mdc-helpers';
4
- @forward 'button-theme' hide color, density, theme, typography;
5
- @forward 'button-theme' as mat-mdc-* hide $mat-mdc-mat-button-state-target, mat-mdc-color,
6
- mat-mdc-density, mat-mdc-mat-button-apply-disabled-style, mat-mdc-mat-button-disabled-background,
7
- mat-mdc-mat-button-disabled-color, mat-mdc-mat-button-ripple-ink-color, mat-mdc-theme,
8
- mat-mdc-typography;
9
- @forward 'button-theme' as mat-mdc-button-* hide $mat-mdc-button-mat-button-state-target,
10
- mat-mdc-button-mat-button-apply-disabled-style, mat-mdc-button-mat-button-disabled-background,
11
- mat-mdc-button-mat-button-disabled-color, mat-mdc-button-mat-button-ripple-ink-color;
12
- @forward 'fab-theme' as mat-mdc-fab-*;
13
- @forward 'icon-button-theme' as mat-mdc-icon-button-*;
14
-
15
- @import '../../material/core/ripple/ripple';
16
- @import '../mdc-core/mdc-helpers/mdc-helpers';
@@ -1,224 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '@material/button/button' as mdc-button;
4
- @use '@material/button/button-theme' as mdc-button-theme;
5
- @use '@material/button/button-text-theme' as mdc-button-text-theme;
6
- @use '@material/button/button-filled-theme' as mdc-button-filled-theme;
7
- @use '@material/button/button-protected-theme' as mdc-button-protected-theme;
8
- @use '@material/button/button-outlined-theme' as mdc-button-outlined-theme;
9
- @use '@material/theme/theme-color' as mdc-theme-color;
10
-
11
- @use '../mdc-core/mdc-helpers/mdc-helpers';
12
- @use './button-theme-private';
13
-
14
- @mixin _button-variant($color) {
15
- @include mdc-button-text-theme.theme((
16
- label-text-color: $color,
17
- ));
18
- }
19
-
20
- @mixin _unelevated-button-variant($foreground, $background) {
21
- @include mdc-button-filled-theme.theme((
22
- container-color: $background,
23
- label-text-color: $foreground,
24
- ));
25
- }
26
-
27
- @mixin _raised-button-variant($foreground, $background) {
28
- @include mdc-button-protected-theme.theme((
29
- container-color: $background,
30
- label-text-color: $foreground,
31
- ));
32
- }
33
-
34
- @mixin _outlined-button-variant($color) {
35
- @include mdc-button-outlined-theme.theme((
36
- label-text-color: $color,
37
- ));
38
- }
39
-
40
- @mixin color($config-or-theme) {
41
- $config: mat.get-color-config($config-or-theme);
42
- @include mdc-helpers.mat-using-mdc-theme($config) {
43
- $is-dark: map.get($config, is-dark);
44
- $on-surface: mdc-theme-color.prop-value(on-surface);
45
- $surface: mdc-theme-color.prop-value(surface);
46
- $disabled-ink-color: rgba($on-surface, if($is-dark, 0.5, 0.38));
47
- $disabled-container-color: rgba($on-surface, 0.12);
48
- $primary: mdc-theme-color.prop-value(primary);
49
- $on-primary: mdc-theme-color.prop-value(on-primary);
50
- $secondary: mdc-theme-color.prop-value(secondary);
51
- $on-secondary: mdc-theme-color.prop-value(on-secondary);
52
- $error: mdc-theme-color.prop-value(error);
53
- $on-error: mdc-theme-color.prop-value(on-error);
54
-
55
- .mat-mdc-button {
56
- &.mat-unthemed {
57
- @include _button-variant($on-surface);
58
- }
59
-
60
- &.mat-primary {
61
- @include _button-variant($primary);
62
- }
63
-
64
- &.mat-accent {
65
- @include _button-variant($secondary);
66
- }
67
-
68
- &.mat-warn {
69
- @include _button-variant($error);
70
- }
71
-
72
- @include button-theme-private.apply-disabled-style() {
73
- @include mdc-button-text-theme.theme((
74
- // We need to pass both the disabled and enabled values, because the enabled
75
- // ones apply to anchors while the disabled ones are for buttons.
76
- disabled-label-text-color: $disabled-ink-color,
77
- label-text-color: $disabled-ink-color
78
- ));
79
- }
80
- }
81
-
82
- .mat-mdc-unelevated-button {
83
- &.mat-unthemed {
84
- @include _unelevated-button-variant($on-surface, $surface);
85
- }
86
-
87
- &.mat-primary {
88
- @include _unelevated-button-variant($on-primary, $primary);
89
- }
90
-
91
- &.mat-accent {
92
- @include _unelevated-button-variant($on-secondary, $secondary);
93
- }
94
-
95
- &.mat-warn {
96
- @include _unelevated-button-variant($on-error, $error);
97
- }
98
-
99
- @include button-theme-private.apply-disabled-style() {
100
- @include mdc-button-filled-theme.theme((
101
- // We need to pass both the disabled and enabled values, because the enabled
102
- // ones apply to anchors while the disabled ones are for buttons.
103
- disabled-container-color: $disabled-container-color,
104
- disabled-label-text-color: $disabled-ink-color,
105
- container-color: $disabled-container-color,
106
- label-text-color: $disabled-ink-color,
107
- ));
108
- }
109
- }
110
-
111
- .mat-mdc-raised-button {
112
- &.mat-unthemed {
113
- @include _raised-button-variant($on-surface, $surface);
114
- }
115
-
116
- &.mat-primary {
117
- @include _raised-button-variant($on-primary, $primary);
118
- }
119
-
120
- &.mat-accent {
121
- @include _raised-button-variant($on-secondary, $secondary);
122
- }
123
-
124
- &.mat-warn {
125
- @include _raised-button-variant($on-error, $error);
126
- }
127
-
128
- @include button-theme-private.apply-disabled-style() {
129
- @include mdc-button-protected-theme.theme((
130
- // We need to pass both the disabled and enabled values, because the enabled
131
- // ones apply to anchors while the disabled ones are for buttons.
132
- disabled-container-color: $disabled-container-color,
133
- disabled-label-text-color: $disabled-ink-color,
134
- container-color: $disabled-container-color,
135
- label-text-color: $disabled-ink-color,
136
- container-elevation: 0,
137
- ));
138
- }
139
- }
140
-
141
- .mat-mdc-outlined-button {
142
- @include mdc-button-outlined-theme.theme((
143
- outline-color: rgba(mdc-theme-color.prop-value(on-surface), 0.12)
144
- ));
145
-
146
- &.mat-unthemed {
147
- @include _outlined-button-variant($on-surface);
148
- }
149
-
150
- &.mat-primary {
151
- @include _outlined-button-variant($primary);
152
- }
153
-
154
- &.mat-accent {
155
- @include _outlined-button-variant($secondary);
156
- }
157
-
158
- &.mat-warn {
159
- @include _outlined-button-variant($error);
160
- }
161
-
162
- @include button-theme-private.apply-disabled-style() {
163
- @include mdc-button-outlined-theme.theme((
164
- // We need to pass both the disabled and enabled values, because the enabled
165
- // ones apply to anchors while the disabled ones are for buttons.
166
- label-text-color: $disabled-ink-color,
167
- disabled-label-text-color: $disabled-ink-color,
168
- outline-color: rgba($on-surface, 0.12),
169
- disabled-outline-color: rgba($on-surface, 0.12),
170
- ));
171
- }
172
- }
173
-
174
- // Ripple colors
175
- .mat-mdc-button, .mat-mdc-outlined-button {
176
- @include button-theme-private.ripple-theme-styles($config, false);
177
- }
178
-
179
- .mat-mdc-raised-button, .mat-mdc-unelevated-button {
180
- @include button-theme-private.ripple-theme-styles($config, true);
181
- }
182
- }
183
- }
184
-
185
- @mixin typography($config-or-theme) {
186
- $config: mat.private-typography-to-2018-config(
187
- mat.get-typography-config($config-or-theme));
188
- @include mdc-helpers.mat-using-mdc-typography($config) {
189
- @include mdc-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
190
- }
191
- }
192
-
193
- @mixin density($config-or-theme) {
194
- $density-scale: mat.get-density-config($config-or-theme);
195
- .mat-mdc-button,
196
- .mat-mdc-raised-button,
197
- .mat-mdc-unelevated-button,
198
- .mat-mdc-outlined-button {
199
- // Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
200
- &.mat-mdc-button-base {
201
- @include mdc-button-theme.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
202
- @include button-theme-private.touch-target-density($density-scale);
203
- }
204
- }
205
- }
206
-
207
- @mixin theme($theme-or-color-config) {
208
- $theme: mat.private-legacy-get-theme($theme-or-color-config);
209
- @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-button') {
210
- $color: mat.get-color-config($theme);
211
- $density: mat.get-density-config($theme);
212
- $typography: mat.get-typography-config($theme);
213
-
214
- @if $color != null {
215
- @include color($color);
216
- }
217
- @if $density != null {
218
- @include density($density);
219
- }
220
- @if $typography != null {
221
- @include typography($typography);
222
- }
223
- }
224
- }
@@ -1,90 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '@material/fab/fab' as mdc-fab;
4
- @use '@material/fab/fab-theme' as mdc-fab-theme;
5
- @use '@material/theme/theme-color' as mdc-theme-color;
6
-
7
- @use '../mdc-core/mdc-helpers/mdc-helpers';
8
- @use './button-theme-private';
9
-
10
- @mixin _fab-variant($foreground, $background) {
11
- @include mdc-fab-theme.theme((
12
- container-color: $background,
13
- icon-color: $foreground,
14
- ));
15
-
16
- --mat-mdc-fab-color: #{$foreground};
17
- }
18
-
19
- @mixin color($config-or-theme) {
20
- $config: mat.get-color-config($config-or-theme);
21
- @include mdc-helpers.mat-using-mdc-theme($config) {
22
- $on-surface: mdc-theme-color.prop-value(on-surface);
23
- $is-dark: map.get($config, is-dark);
24
-
25
- .mat-mdc-fab, .mat-mdc-mini-fab {
26
- @include button-theme-private.ripple-theme-styles($config, true);
27
-
28
- &.mat-unthemed {
29
- @include _fab-variant($on-surface, mdc-theme-color.prop-value(surface));
30
- }
31
-
32
- &.mat-primary {
33
- @include _fab-variant(
34
- mdc-theme-color.prop-value(on-primary),
35
- mdc-theme-color.prop-value(primary)
36
- );
37
- }
38
-
39
- &.mat-accent {
40
- @include _fab-variant(
41
- mdc-theme-color.prop-value(on-secondary),
42
- mdc-theme-color.prop-value(secondary)
43
- );
44
- }
45
-
46
- &.mat-warn {
47
- @include _fab-variant(
48
- mdc-theme-color.prop-value(on-error),
49
- mdc-theme-color.prop-value(error)
50
- );
51
- }
52
-
53
- @include button-theme-private.apply-disabled-style() {
54
- @include _fab-variant(
55
- rgba($on-surface, if(map.get($config, is-dark), 0.5, 0.38)),
56
- rgba($on-surface, 0.12)
57
- );
58
- }
59
- }
60
- }
61
- }
62
-
63
- @mixin typography($config-or-theme) {
64
- $config: mat.private-typography-to-2018-config(
65
- mat.get-typography-config($config-or-theme));
66
- @include mdc-helpers.mat-using-mdc-typography($config) {
67
- @include mdc-fab.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
68
- }
69
- }
70
-
71
- @mixin density($config-or-theme) {}
72
-
73
- @mixin theme($theme-or-color-config) {
74
- $theme: mat.private-legacy-get-theme($theme-or-color-config);
75
- @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-fab') {
76
- $color: mat.get-color-config($theme);
77
- $density: mat.get-density-config($theme);
78
- $typography: mat.get-typography-config($theme);
79
-
80
- @if $color != null {
81
- @include color($color);
82
- }
83
- @if $density != null {
84
- @include density($density);
85
- }
86
- @if $typography != null {
87
- @include typography($typography);
88
- }
89
- }
90
- }
@@ -1,76 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '@material/icon-button/mixins' as mdc-icon-button;
4
- @use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
5
- @use '@material/theme/theme-color' as mdc-theme-color;
6
-
7
- @use '../mdc-core/mdc-helpers/mdc-helpers';
8
- @use './button-theme-private';
9
-
10
- @mixin color($config-or-theme) {
11
- $config: mat.get-color-config($config-or-theme);
12
- @include mdc-helpers.mat-using-mdc-theme($config) {
13
- $is-dark: map.get($config, is-dark);
14
- $on-surface: mdc-theme-color.prop-value(on-surface);
15
- $disabled-color: rgba($on-surface, if($is-dark, 0.5, 0.38));
16
-
17
- .mat-mdc-icon-button {
18
- @include button-theme-private.ripple-theme-styles($config, false);
19
-
20
- &.mat-primary {
21
- @include mdc-icon-button-theme.theme((icon-color: mdc-theme-color.prop-value(primary)));
22
- }
23
-
24
- &.mat-accent {
25
- @include mdc-icon-button-theme.theme((icon-color: mdc-theme-color.prop-value(secondary)));
26
- }
27
-
28
- &.mat-warn {
29
- @include mdc-icon-button-theme.theme((icon-color: (mdc-theme-color.prop-value(error))));
30
- }
31
-
32
- @include button-theme-private.apply-disabled-style() {
33
- @include mdc-icon-button-theme.theme((
34
- icon-color: $disabled-color,
35
- disabled-icon-color: $disabled-color,
36
- ));
37
- }
38
- }
39
- }
40
- }
41
-
42
- @mixin typography($config-or-theme) {
43
- $config: mat.private-typography-to-2018-config(
44
- mat.get-typography-config($config-or-theme));
45
- @include mdc-helpers.mat-using-mdc-typography($config) {
46
- @include mdc-icon-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
47
- }
48
- }
49
-
50
- @mixin density($config-or-theme) {
51
- $density-scale: mat.get-density-config($config-or-theme);
52
- // Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
53
- .mat-mdc-icon-button.mat-mdc-button-base {
54
- @include mdc-icon-button.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
55
- @include button-theme-private.touch-target-density($density-scale);
56
- }
57
- }
58
-
59
- @mixin theme($theme-or-color-config) {
60
- $theme: mat.private-legacy-get-theme($theme-or-color-config);
61
- @include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-icon-button') {
62
- $color: mat.get-color-config($theme);
63
- $density: mat.get-density-config($theme);
64
- $typography: mat.get-typography-config($theme);
65
-
66
- @if $color != null {
67
- @include color($color);
68
- }
69
- @if $density != null {
70
- @include density($density);
71
- }
72
- @if $typography != null {
73
- @include typography($typography);
74
- }
75
- }
76
- }