@angular/material 11.0.2 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +1 -1
- package/bundles/material-checkbox-testing.umd.js +3 -3
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.min.js.map +1 -1
- package/bundles/material-core.umd.js +2 -2
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-core.umd.min.js +2 -2
- package/bundles/material-core.umd.min.js.map +1 -1
- package/bundles/material-datepicker.umd.js +4 -1
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.min.js +4 -4
- package/bundles/material-datepicker.umd.min.js.map +1 -1
- package/bundles/material-expansion.umd.js +4 -0
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-expansion.umd.min.js +5 -5
- package/bundles/material-expansion.umd.min.js.map +1 -1
- package/bundles/material-menu.umd.js +5 -0
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-menu.umd.min.js +4 -4
- package/bundles/material-menu.umd.min.js.map +1 -1
- package/bundles/material-select.umd.js +6 -2
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-select.umd.min.js +3 -3
- package/bundles/material-select.umd.min.js.map +1 -1
- package/checkbox/testing/checkbox-harness.d.ts +3 -3
- package/core/index.metadata.json +1 -1
- package/core/typography/_typography.scss +1 -1
- package/datepicker/calendar.d.ts +1 -0
- package/datepicker/index.metadata.json +1 -1
- package/esm2015/checkbox/testing/checkbox-harness.js +4 -4
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/calendar.js +5 -2
- package/esm2015/expansion/accordion.js +6 -2
- package/esm2015/menu/menu.js +6 -1
- package/esm2015/select/select.js +7 -3
- package/expansion/accordion.d.ts +3 -2
- package/expansion/index.metadata.json +1 -1
- package/fesm2015/checkbox/testing.js +3 -3
- package/fesm2015/checkbox/testing.js.map +1 -1
- package/fesm2015/core.js +2 -2
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +4 -1
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/expansion.js +4 -0
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/menu.js +5 -0
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/select.js +6 -2
- package/fesm2015/select.js.map +1 -1
- package/menu/index.metadata.json +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/select/index.metadata.json +1 -1
package/fesm2015/datepicker.js
CHANGED
|
@@ -1408,6 +1408,8 @@ MatYearView.propDecorators = {
|
|
|
1408
1408
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1409
1409
|
* found in the LICENSE file at https://angular.io/license
|
|
1410
1410
|
*/
|
|
1411
|
+
/** Counter used to generate unique IDs. */
|
|
1412
|
+
let uniqueId = 0;
|
|
1411
1413
|
/** Default header for MatCalendar */
|
|
1412
1414
|
class MatCalendarHeader {
|
|
1413
1415
|
constructor(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {
|
|
@@ -1415,6 +1417,7 @@ class MatCalendarHeader {
|
|
|
1415
1417
|
this.calendar = calendar;
|
|
1416
1418
|
this._dateAdapter = _dateAdapter;
|
|
1417
1419
|
this._dateFormats = _dateFormats;
|
|
1420
|
+
this._buttonDescriptionId = `mat-calendar-button-${uniqueId++}`;
|
|
1418
1421
|
this.calendar.stateChanges.subscribe(() => changeDetectorRef.markForCheck());
|
|
1419
1422
|
}
|
|
1420
1423
|
/** The label for the current calendar view. */
|
|
@@ -1502,7 +1505,7 @@ class MatCalendarHeader {
|
|
|
1502
1505
|
MatCalendarHeader.decorators = [
|
|
1503
1506
|
{ type: Component, args: [{
|
|
1504
1507
|
selector: 'mat-calendar-header',
|
|
1505
|
-
template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n cdkAriaLive=\"polite\">\n {{periodButtonText}}
|
|
1508
|
+
template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <div class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"></div>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n",
|
|
1506
1509
|
exportAs: 'matCalendarHeader',
|
|
1507
1510
|
encapsulation: ViewEncapsulation.None,
|
|
1508
1511
|
changeDetection: ChangeDetectionStrategy.OnPush
|