@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
|
@@ -1761,6 +1761,8 @@
|
|
|
1761
1761
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1762
1762
|
* found in the LICENSE file at https://angular.io/license
|
|
1763
1763
|
*/
|
|
1764
|
+
/** Counter used to generate unique IDs. */
|
|
1765
|
+
var uniqueId = 0;
|
|
1764
1766
|
/** Default header for MatCalendar */
|
|
1765
1767
|
var MatCalendarHeader = /** @class */ (function () {
|
|
1766
1768
|
function MatCalendarHeader(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {
|
|
@@ -1768,6 +1770,7 @@
|
|
|
1768
1770
|
this.calendar = calendar;
|
|
1769
1771
|
this._dateAdapter = _dateAdapter;
|
|
1770
1772
|
this._dateFormats = _dateFormats;
|
|
1773
|
+
this._buttonDescriptionId = "mat-calendar-button-" + uniqueId++;
|
|
1771
1774
|
this.calendar.stateChanges.subscribe(function () { return changeDetectorRef.markForCheck(); });
|
|
1772
1775
|
}
|
|
1773
1776
|
Object.defineProperty(MatCalendarHeader.prototype, "periodButtonText", {
|
|
@@ -1872,7 +1875,7 @@
|
|
|
1872
1875
|
MatCalendarHeader.decorators = [
|
|
1873
1876
|
{ type: i0.Component, args: [{
|
|
1874
1877
|
selector: 'mat-calendar-header',
|
|
1875
|
-
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}}
|
|
1878
|
+
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",
|
|
1876
1879
|
exportAs: 'matCalendarHeader',
|
|
1877
1880
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1878
1881
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|