@angular/material 12.1.4 → 12.2.2

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 (195) hide show
  1. package/bundles/material-autocomplete-testing.umd.js +10 -4
  2. package/bundles/material-autocomplete-testing.umd.js.map +1 -1
  3. package/bundles/material-autocomplete.umd.js +10 -4
  4. package/bundles/material-autocomplete.umd.js.map +1 -1
  5. package/bundles/material-badge-testing.umd.js +10 -4
  6. package/bundles/material-badge-testing.umd.js.map +1 -1
  7. package/bundles/material-badge.umd.js +10 -4
  8. package/bundles/material-badge.umd.js.map +1 -1
  9. package/bundles/material-bottom-sheet-testing.umd.js +10 -4
  10. package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
  11. package/bundles/material-bottom-sheet.umd.js +10 -4
  12. package/bundles/material-bottom-sheet.umd.js.map +1 -1
  13. package/bundles/material-button-testing.umd.js +10 -4
  14. package/bundles/material-button-testing.umd.js.map +1 -1
  15. package/bundles/material-button-toggle-testing.umd.js +10 -4
  16. package/bundles/material-button-toggle-testing.umd.js.map +1 -1
  17. package/bundles/material-button-toggle.umd.js +10 -4
  18. package/bundles/material-button-toggle.umd.js.map +1 -1
  19. package/bundles/material-button.umd.js +10 -4
  20. package/bundles/material-button.umd.js.map +1 -1
  21. package/bundles/material-card-testing.umd.js +10 -4
  22. package/bundles/material-card-testing.umd.js.map +1 -1
  23. package/bundles/material-checkbox-testing.umd.js +10 -4
  24. package/bundles/material-checkbox-testing.umd.js.map +1 -1
  25. package/bundles/material-checkbox.umd.js +11 -5
  26. package/bundles/material-checkbox.umd.js.map +1 -1
  27. package/bundles/material-chips-testing.umd.js +44 -6
  28. package/bundles/material-chips-testing.umd.js.map +1 -1
  29. package/bundles/material-chips.umd.js +10 -4
  30. package/bundles/material-chips.umd.js.map +1 -1
  31. package/bundles/material-core-testing.umd.js +10 -4
  32. package/bundles/material-core-testing.umd.js.map +1 -1
  33. package/bundles/material-core.umd.js +25 -18
  34. package/bundles/material-core.umd.js.map +1 -1
  35. package/bundles/material-datepicker-testing.umd.js +10 -4
  36. package/bundles/material-datepicker-testing.umd.js.map +1 -1
  37. package/bundles/material-datepicker.umd.js +11 -5
  38. package/bundles/material-datepicker.umd.js.map +1 -1
  39. package/bundles/material-dialog-testing.umd.js +10 -4
  40. package/bundles/material-dialog-testing.umd.js.map +1 -1
  41. package/bundles/material-dialog.umd.js +10 -4
  42. package/bundles/material-dialog.umd.js.map +1 -1
  43. package/bundles/material-divider-testing.umd.js +10 -4
  44. package/bundles/material-divider-testing.umd.js.map +1 -1
  45. package/bundles/material-expansion-testing.umd.js +10 -4
  46. package/bundles/material-expansion-testing.umd.js.map +1 -1
  47. package/bundles/material-expansion.umd.js +11 -5
  48. package/bundles/material-expansion.umd.js.map +1 -1
  49. package/bundles/material-form-field-testing-control.umd.js +10 -4
  50. package/bundles/material-form-field-testing-control.umd.js.map +1 -1
  51. package/bundles/material-form-field-testing.umd.js +10 -4
  52. package/bundles/material-form-field-testing.umd.js.map +1 -1
  53. package/bundles/material-form-field.umd.js +10 -4
  54. package/bundles/material-form-field.umd.js.map +1 -1
  55. package/bundles/material-grid-list-testing.umd.js +10 -4
  56. package/bundles/material-grid-list-testing.umd.js.map +1 -1
  57. package/bundles/material-grid-list.umd.js +10 -4
  58. package/bundles/material-grid-list.umd.js.map +1 -1
  59. package/bundles/material-icon-testing.umd.js +10 -4
  60. package/bundles/material-icon-testing.umd.js.map +1 -1
  61. package/bundles/material-icon.umd.js +10 -4
  62. package/bundles/material-icon.umd.js.map +1 -1
  63. package/bundles/material-input-testing.umd.js +10 -4
  64. package/bundles/material-input-testing.umd.js.map +1 -1
  65. package/bundles/material-input.umd.js +10 -4
  66. package/bundles/material-input.umd.js.map +1 -1
  67. package/bundles/material-list-testing.umd.js +10 -4
  68. package/bundles/material-list-testing.umd.js.map +1 -1
  69. package/bundles/material-list.umd.js +18 -4
  70. package/bundles/material-list.umd.js.map +1 -1
  71. package/bundles/material-menu-testing.umd.js +10 -4
  72. package/bundles/material-menu-testing.umd.js.map +1 -1
  73. package/bundles/material-menu.umd.js +12 -6
  74. package/bundles/material-menu.umd.js.map +1 -1
  75. package/bundles/material-paginator-testing.umd.js +10 -4
  76. package/bundles/material-paginator-testing.umd.js.map +1 -1
  77. package/bundles/material-paginator.umd.js +10 -4
  78. package/bundles/material-paginator.umd.js.map +1 -1
  79. package/bundles/material-progress-bar-testing.umd.js +10 -4
  80. package/bundles/material-progress-bar-testing.umd.js.map +1 -1
  81. package/bundles/material-progress-bar.umd.js +10 -4
  82. package/bundles/material-progress-bar.umd.js.map +1 -1
  83. package/bundles/material-progress-spinner-testing.umd.js +10 -4
  84. package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
  85. package/bundles/material-progress-spinner.umd.js +10 -4
  86. package/bundles/material-progress-spinner.umd.js.map +1 -1
  87. package/bundles/material-radio-testing.umd.js +10 -4
  88. package/bundles/material-radio-testing.umd.js.map +1 -1
  89. package/bundles/material-radio.umd.js +10 -4
  90. package/bundles/material-radio.umd.js.map +1 -1
  91. package/bundles/material-select-testing.umd.js +10 -4
  92. package/bundles/material-select-testing.umd.js.map +1 -1
  93. package/bundles/material-select.umd.js +10 -4
  94. package/bundles/material-select.umd.js.map +1 -1
  95. package/bundles/material-sidenav-testing.umd.js +10 -4
  96. package/bundles/material-sidenav-testing.umd.js.map +1 -1
  97. package/bundles/material-sidenav.umd.js +10 -4
  98. package/bundles/material-sidenav.umd.js.map +1 -1
  99. package/bundles/material-slide-toggle-testing.umd.js +10 -4
  100. package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
  101. package/bundles/material-slide-toggle.umd.js +12 -5
  102. package/bundles/material-slide-toggle.umd.js.map +1 -1
  103. package/bundles/material-slider-testing.umd.js +10 -4
  104. package/bundles/material-slider-testing.umd.js.map +1 -1
  105. package/bundles/material-slider.umd.js +10 -4
  106. package/bundles/material-slider.umd.js.map +1 -1
  107. package/bundles/material-snack-bar-testing.umd.js +10 -4
  108. package/bundles/material-snack-bar-testing.umd.js.map +1 -1
  109. package/bundles/material-snack-bar.umd.js +10 -4
  110. package/bundles/material-snack-bar.umd.js.map +1 -1
  111. package/bundles/material-sort-testing.umd.js +10 -4
  112. package/bundles/material-sort-testing.umd.js.map +1 -1
  113. package/bundles/material-sort.umd.js +10 -4
  114. package/bundles/material-sort.umd.js.map +1 -1
  115. package/bundles/material-stepper-testing.umd.js +10 -4
  116. package/bundles/material-stepper-testing.umd.js.map +1 -1
  117. package/bundles/material-stepper.umd.js +10 -4
  118. package/bundles/material-stepper.umd.js.map +1 -1
  119. package/bundles/material-table-testing.umd.js +10 -4
  120. package/bundles/material-table-testing.umd.js.map +1 -1
  121. package/bundles/material-table.umd.js +10 -4
  122. package/bundles/material-table.umd.js.map +1 -1
  123. package/bundles/material-tabs-testing.umd.js +10 -4
  124. package/bundles/material-tabs-testing.umd.js.map +1 -1
  125. package/bundles/material-tabs.umd.js +11 -5
  126. package/bundles/material-tabs.umd.js.map +1 -1
  127. package/bundles/material-toolbar-testing.umd.js +10 -4
  128. package/bundles/material-toolbar-testing.umd.js.map +1 -1
  129. package/bundles/material-toolbar.umd.js +10 -4
  130. package/bundles/material-toolbar.umd.js.map +1 -1
  131. package/bundles/material-tooltip-testing.umd.js +10 -4
  132. package/bundles/material-tooltip-testing.umd.js.map +1 -1
  133. package/bundles/material-tooltip.umd.js +10 -4
  134. package/bundles/material-tooltip.umd.js.map +1 -1
  135. package/bundles/material-tree-testing.umd.js +10 -4
  136. package/bundles/material-tree-testing.umd.js.map +1 -1
  137. package/bundles/material-tree.umd.js +10 -4
  138. package/bundles/material-tree.umd.js.map +1 -1
  139. package/checkbox/index.metadata.json +1 -1
  140. package/chips/testing/chip-avatar-harness.d.ts +20 -0
  141. package/chips/testing/chip-harness-filters.d.ts +3 -0
  142. package/chips/testing/chip-harness.d.ts +10 -4
  143. package/core/common-behaviors/common-module.d.ts +2 -2
  144. package/core/index.metadata.json +1 -1
  145. package/core/style/_menu-common.scss +22 -24
  146. package/core/theming/_theming.scss +3 -1
  147. package/datepicker/index.metadata.json +1 -1
  148. package/esm2015/checkbox/checkbox.js +2 -2
  149. package/esm2015/chips/testing/chip-avatar-harness.js +22 -0
  150. package/esm2015/chips/testing/chip-harness-filters.js +1 -1
  151. package/esm2015/chips/testing/chip-harness.js +14 -4
  152. package/esm2015/core/common-behaviors/common-module.js +15 -14
  153. package/esm2015/core/version.js +1 -1
  154. package/esm2015/datepicker/calendar-body.js +2 -2
  155. package/esm2015/expansion/expansion-panel.js +2 -2
  156. package/esm2015/list/selection-list.js +9 -1
  157. package/esm2015/menu/menu-item.js +2 -2
  158. package/esm2015/menu/menu.js +1 -1
  159. package/esm2015/slide-toggle/slide-toggle.js +3 -2
  160. package/esm2015/tabs/tab-group.js +1 -1
  161. package/expansion/expansion-panel.d.ts +1 -1
  162. package/fesm2015/checkbox.js +1 -1
  163. package/fesm2015/checkbox.js.map +1 -1
  164. package/fesm2015/chips/testing.js +33 -3
  165. package/fesm2015/chips/testing.js.map +1 -1
  166. package/fesm2015/core.js +15 -14
  167. package/fesm2015/core.js.map +1 -1
  168. package/fesm2015/datepicker.js +1 -1
  169. package/fesm2015/datepicker.js.map +1 -1
  170. package/fesm2015/expansion.js +1 -1
  171. package/fesm2015/expansion.js.map +1 -1
  172. package/fesm2015/list.js +9 -1
  173. package/fesm2015/list.js.map +1 -1
  174. package/fesm2015/menu.js +2 -2
  175. package/fesm2015/menu.js.map +1 -1
  176. package/fesm2015/slide-toggle.js +2 -1
  177. package/fesm2015/slide-toggle.js.map +1 -1
  178. package/fesm2015/tabs.js +1 -1
  179. package/list/index.metadata.json +1 -1
  180. package/list/selection-list.d.ts +6 -0
  181. package/menu/_menu-theme.scss +2 -2
  182. package/menu/index.metadata.json +1 -1
  183. package/package.json +5 -7
  184. package/prebuilt-themes/deeppurple-amber.css +1 -1
  185. package/prebuilt-themes/indigo-pink.css +1 -1
  186. package/prebuilt-themes/pink-bluegrey.css +1 -1
  187. package/prebuilt-themes/purple-green.css +1 -1
  188. package/schematics/ng-add/index.js +1 -1
  189. package/schematics/ng-add/index.mjs +1 -1
  190. package/schematics/ng-update/migrations/theming-api-v12/migration.d.ts +2 -2
  191. package/schematics/ng-update/migrations/theming-api-v12/migration.js +63 -14
  192. package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +63 -14
  193. package/slide-toggle/index.metadata.json +1 -1
  194. package/slide-toggle/slide-toggle.d.ts +2 -0
  195. package/tabs/index.metadata.json +1 -1
@@ -319,7 +319,7 @@ class MatCalendarBody {
319
319
  MatCalendarBody.decorators = [
320
320
  { type: Component, args: [{
321
321
  selector: '[mat-calendar-body]',
322
- template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mat-calendar-body-label\"\n [attr.colspan]=\"numCols\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{label}}\n </td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n aria-hidden=\"true\"\n class=\"mat-calendar-body-label\"\n [attr.colspan]=\"_firstRowOffset\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mat-calendar-body-cell\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [class.mat-calendar-body-disabled]=\"!item.enabled\"\n [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mat-calendar-body-range-start]=\"_isRangeStart(item.compareValue)\"\n [class.mat-calendar-body-range-end]=\"_isRangeEnd(item.compareValue)\"\n [class.mat-calendar-body-in-range]=\"_isInRange(item.compareValue)\"\n [class.mat-calendar-body-comparison-bridge-start]=\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-bridge-end]=\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-start]=\"_isComparisonStart(item.compareValue)\"\n [class.mat-calendar-body-comparison-end]=\"_isComparisonEnd(item.compareValue)\"\n [class.mat-calendar-body-in-comparison-range]=\"_isInComparisonRange(item.compareValue)\"\n [class.mat-calendar-body-preview-start]=\"_isPreviewStart(item.compareValue)\"\n [class.mat-calendar-body-preview-end]=\"_isPreviewEnd(item.compareValue)\"\n [class.mat-calendar-body-in-preview]=\"_isInPreview(item.compareValue)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-selected]=\"_isSelected(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n <div class=\"mat-calendar-body-cell-content mat-focus-indicator\"\n [class.mat-calendar-body-selected]=\"_isSelected(item.compareValue)\"\n [class.mat-calendar-body-comparison-identical]=\"_isComparisonIdentical(item.compareValue)\"\n [class.mat-calendar-body-today]=\"todayValue === item.compareValue\">\n {{item.displayValue}}\n </div>\n <div class=\"mat-calendar-body-cell-preview\"></div>\n </td>\n</tr>\n",
322
+ template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mat-calendar-body-label\"\n [attr.colspan]=\"numCols\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{label}}\n </td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n This cell is purely decorative, but we can't put `aria-hidden` or `role=\"presentation\"` on it,\n because it throws off the week days for the rest of the row on NVDA. The aspect ratio of the\n table cells is maintained by setting the top and bottom padding as a percentage of the width\n (a variant of the trick described here: https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mat-calendar-body-label\"\n [attr.colspan]=\"_firstRowOffset\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n {{_firstRowOffset >= labelMinRequiredCells ? label : ''}}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mat-calendar-body-cell\"\n [ngClass]=\"item.cssClasses\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [class.mat-calendar-body-disabled]=\"!item.enabled\"\n [class.mat-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mat-calendar-body-range-start]=\"_isRangeStart(item.compareValue)\"\n [class.mat-calendar-body-range-end]=\"_isRangeEnd(item.compareValue)\"\n [class.mat-calendar-body-in-range]=\"_isInRange(item.compareValue)\"\n [class.mat-calendar-body-comparison-bridge-start]=\"_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-bridge-end]=\"_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)\"\n [class.mat-calendar-body-comparison-start]=\"_isComparisonStart(item.compareValue)\"\n [class.mat-calendar-body-comparison-end]=\"_isComparisonEnd(item.compareValue)\"\n [class.mat-calendar-body-in-comparison-range]=\"_isInComparisonRange(item.compareValue)\"\n [class.mat-calendar-body-preview-start]=\"_isPreviewStart(item.compareValue)\"\n [class.mat-calendar-body-preview-end]=\"_isPreviewEnd(item.compareValue)\"\n [class.mat-calendar-body-in-preview]=\"_isInPreview(item.compareValue)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [attr.aria-selected]=\"_isSelected(item.compareValue)\"\n (click)=\"_cellClicked(item, $event)\"\n [style.width]=\"_cellWidth\"\n [style.paddingTop]=\"_cellPadding\"\n [style.paddingBottom]=\"_cellPadding\">\n <div class=\"mat-calendar-body-cell-content mat-focus-indicator\"\n [class.mat-calendar-body-selected]=\"_isSelected(item.compareValue)\"\n [class.mat-calendar-body-comparison-identical]=\"_isComparisonIdentical(item.compareValue)\"\n [class.mat-calendar-body-today]=\"todayValue === item.compareValue\">\n {{item.displayValue}}\n </div>\n <div class=\"mat-calendar-body-cell-preview\"></div>\n </td>\n</tr>\n",
323
323
  host: {
324
324
  'class': 'mat-calendar-body',
325
325
  },