@clr/angular 12.0.3 → 12.0.7
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/bundles/clr-angular.umd.js +9 -3
- package/bundles/clr-angular.umd.js.map +1 -1
- package/clr-angular.metadata.json +1 -1
- package/data/datagrid/datagrid.d.ts +1 -1
- package/esm2015/data/datagrid/datagrid-filter.js +3 -1
- package/esm2015/data/datagrid/datagrid.js +1 -1
- package/esm2015/popover/signpost/signpost-trigger.js +7 -2
- package/esm2015/utils/i18n/common-strings.default.js +3 -2
- package/esm2015/utils/i18n/common-strings.interface.js +1 -1
- package/fesm2015/clr-angular.js +10 -2
- package/fesm2015/clr-angular.js.map +1 -1
- package/package.json +2 -2
- package/popover/signpost/signpost-trigger.d.ts +1 -0
- package/utils/i18n/common-strings.interface.d.ts +4 -0
|
@@ -1389,7 +1389,8 @@
|
|
|
1389
1389
|
singleSelectionAriaLabel: 'Single selection header',
|
|
1390
1390
|
singleActionableAriaLabel: 'Single actionable header',
|
|
1391
1391
|
detailExpandableAriaLabel: 'Toggle more row content',
|
|
1392
|
-
datagridFilterAriaLabel: '
|
|
1392
|
+
datagridFilterAriaLabel: 'Filter dialog',
|
|
1393
|
+
datagridFilterDialogAriaLabel: 'Toggle column filter',
|
|
1393
1394
|
columnSeparatorAriaLabel: 'Column resize handle',
|
|
1394
1395
|
columnSeparatorDescription: 'Not necessary to use this button',
|
|
1395
1396
|
// Alert
|
|
@@ -10802,7 +10803,7 @@
|
|
|
10802
10803
|
selector: 'clr-dg-filter',
|
|
10803
10804
|
// We register this component as a CustomFilter, for the parent column to detect it.
|
|
10804
10805
|
providers: [{ provide: CustomFilter, useExisting: ClrDatagridFilter }, UNIQUE_ID_PROVIDER],
|
|
10805
|
-
template: "\n <button\n class=\"datagrid-filter-toggle\"\n type=\"button\"\n #anchor\n [attr.aria-label]=\"commonStrings.keys.datagridFilterAriaLabel\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"popoverId\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]=\"open\"\n [class.datagrid-filtered]=\"active\"\n >\n <cds-icon\n [attr.status]=\"active ? 'info' : null\"\n [attr.shape]=\"active ? 'filter-grid-circle' : 'filter-grid'\"\n solid\n ></cds-icon>\n </button>\n\n <div\n class=\"datagrid-filter\"\n [id]=\"popoverId\"\n clrFocusTrap\n *clrPopoverContent=\"open; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n >\n <div class=\"datagrid-filter-close-wrapper\">\n <button type=\"button\" class=\"close\" clrPopoverCloseButton>\n <cds-icon shape=\"window-close\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n "
|
|
10806
|
+
template: "\n <button\n class=\"datagrid-filter-toggle\"\n type=\"button\"\n #anchor\n [attr.aria-label]=\"commonStrings.keys.datagridFilterAriaLabel\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"popoverId\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]=\"open\"\n [class.datagrid-filtered]=\"active\"\n >\n <cds-icon\n [attr.status]=\"active ? 'info' : null\"\n [attr.shape]=\"active ? 'filter-grid-circle' : 'filter-grid'\"\n solid\n ></cds-icon>\n </button>\n\n <div\n class=\"datagrid-filter\"\n [id]=\"popoverId\"\n clrFocusTrap\n *clrPopoverContent=\"open; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n role=\"dialog\"\n [attr.aria-label]=\"commonStrings.keys.datagridFilterDialogAriaLabel\"\n >\n <div class=\"datagrid-filter-close-wrapper\">\n <button type=\"button\" class=\"close\" clrPopoverCloseButton>\n <cds-icon shape=\"window-close\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n "
|
|
10806
10807
|
},] }
|
|
10807
10808
|
];
|
|
10808
10809
|
ClrDatagridFilter.ctorParameters = function () { return [
|
|
@@ -12589,6 +12590,12 @@
|
|
|
12589
12590
|
_this.focusOnClose();
|
|
12590
12591
|
}
|
|
12591
12592
|
}), this.signpostIdService.id.subscribe(function (idChange) { return (_this.ariaControl = idChange); }));
|
|
12593
|
+
this.addDefaultAriaLabel(this.el.nativeElement);
|
|
12594
|
+
};
|
|
12595
|
+
ClrSignpostTrigger.prototype.addDefaultAriaLabel = function (el) {
|
|
12596
|
+
if (!el.hasAttribute('aria-label')) {
|
|
12597
|
+
el.setAttribute('aria-label', this.commonStrings.keys.signpostToggle);
|
|
12598
|
+
}
|
|
12592
12599
|
};
|
|
12593
12600
|
ClrSignpostTrigger.prototype.focusOnClose = function () {
|
|
12594
12601
|
if (!i1.isPlatformBrowser(this.platformId)) {
|
|
@@ -12618,7 +12625,6 @@
|
|
|
12618
12625
|
selector: '[clrSignpostTrigger]',
|
|
12619
12626
|
host: {
|
|
12620
12627
|
class: 'signpost-trigger',
|
|
12621
|
-
'[attr.aria-label]': 'commonStrings.keys.signpostToggle',
|
|
12622
12628
|
'[attr.aria-expanded]': 'ariaExpanded',
|
|
12623
12629
|
'[attr.aria-controls]': 'ariaControl',
|
|
12624
12630
|
'[class.active]': 'isOpen',
|