@angular/material 12.2.9 → 12.2.10
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/badge/badge.d.ts +14 -15
- package/badge/index.metadata.json +1 -1
- package/bundles/material-badge.umd.js +79 -77
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-core.umd.js +2 -2
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-sort.umd.js +46 -8
- package/bundles/material-sort.umd.js.map +1 -1
- package/core/index.metadata.json +1 -1
- package/esm2015/badge/badge.js +80 -63
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/version.js +1 -1
- package/esm2015/sort/sort-header-intl.js +1 -3
- package/esm2015/sort/sort-header.js +42 -6
- package/fesm2015/badge.js +79 -62
- package/fesm2015/badge.js.map +1 -1
- package/fesm2015/core.js +2 -2
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/sort.js +40 -6
- package/fesm2015/sort.js.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/sort/index.metadata.json +1 -1
- package/sort/sort-header-intl.d.ts +0 -2
- package/sort/sort-header.d.ts +20 -3
package/sort/sort-header.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
+
import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
|
|
8
9
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
9
|
-
import {
|
|
10
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
10
11
|
import { CanDisable } from '@angular/material/core';
|
|
11
|
-
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
12
12
|
import { MatSort, MatSortable } from './sort';
|
|
13
13
|
import { SortDirection } from './sort-direction';
|
|
14
14
|
import { MatSortHeaderIntl } from './sort-header-intl';
|
|
@@ -58,7 +58,14 @@ export declare class MatSortHeader extends _MatSortHeaderBase implements CanDisa
|
|
|
58
58
|
_columnDef: MatSortHeaderColumnDef;
|
|
59
59
|
private _focusMonitor;
|
|
60
60
|
private _elementRef;
|
|
61
|
+
/** @breaking-change 14.0.0 _ariaDescriber will be required. */
|
|
62
|
+
private _ariaDescriber?;
|
|
61
63
|
private _rerenderSubscription;
|
|
64
|
+
/**
|
|
65
|
+
* The element with role="button" inside this component's view. We need this
|
|
66
|
+
* in order to apply a description with AriaDescriber.
|
|
67
|
+
*/
|
|
68
|
+
private _sortButton;
|
|
62
69
|
/**
|
|
63
70
|
* Flag set to true when the indicator should be displayed while the sort is not active. Used to
|
|
64
71
|
* provide an affordance that the header is sortable by showing on focus and hover.
|
|
@@ -85,6 +92,13 @@ export declare class MatSortHeader extends _MatSortHeaderBase implements CanDisa
|
|
|
85
92
|
arrowPosition: 'before' | 'after';
|
|
86
93
|
/** Overrides the sort start value of the containing MatSort for this MatSortable. */
|
|
87
94
|
start: 'asc' | 'desc';
|
|
95
|
+
/**
|
|
96
|
+
* Description applied to MatSortHeader's button element with aria-describedby. This text should
|
|
97
|
+
* describe the action that will occur when the user clicks the sort header.
|
|
98
|
+
*/
|
|
99
|
+
get sortActionDescription(): string;
|
|
100
|
+
set sortActionDescription(value: string);
|
|
101
|
+
private _sortActionDescription;
|
|
88
102
|
/** Overrides the disable clear value of the containing MatSort for this MatSortable. */
|
|
89
103
|
get disableClear(): boolean;
|
|
90
104
|
set disableClear(v: boolean);
|
|
@@ -94,7 +108,9 @@ export declare class MatSortHeader extends _MatSortHeaderBase implements CanDisa
|
|
|
94
108
|
* @deprecated `_intl` parameter isn't being used anymore and it'll be removed.
|
|
95
109
|
* @breaking-change 13.0.0
|
|
96
110
|
*/
|
|
97
|
-
_intl: MatSortHeaderIntl, _changeDetectorRef: ChangeDetectorRef, _sort: MatSort, _columnDef: MatSortHeaderColumnDef, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement
|
|
111
|
+
_intl: MatSortHeaderIntl, _changeDetectorRef: ChangeDetectorRef, _sort: MatSort, _columnDef: MatSortHeaderColumnDef, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>,
|
|
112
|
+
/** @breaking-change 14.0.0 _ariaDescriber will be required. */
|
|
113
|
+
_ariaDescriber?: AriaDescriber | null | undefined);
|
|
98
114
|
ngOnInit(): void;
|
|
99
115
|
ngAfterViewInit(): void;
|
|
100
116
|
ngOnDestroy(): void;
|
|
@@ -140,6 +156,7 @@ export declare class MatSortHeader extends _MatSortHeaderBase implements CanDisa
|
|
|
140
156
|
_getAriaSortAttribute(): "none" | "ascending" | "descending";
|
|
141
157
|
/** Whether the arrow inside the sort header should be rendered. */
|
|
142
158
|
_renderArrow(): boolean;
|
|
159
|
+
private _updateSortActionDescription;
|
|
143
160
|
/** Handles changes in the sorting state. */
|
|
144
161
|
private _handleStateChanges;
|
|
145
162
|
static ngAcceptInputType_disableClear: BooleanInput;
|