@clr/angular 5.5.1 → 5.5.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.
- package/bundles/clr-angular.umd.js +9 -3
- package/bundles/clr-angular.umd.js.map +1 -1
- package/bundles/clr-angular.umd.min.js +2 -2
- package/bundles/clr-angular.umd.min.js.map +1 -1
- package/clr-angular.metadata.json +1 -1
- package/esm2015/data/datagrid/datagrid-filter.js +3 -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
|
@@ -1363,7 +1363,8 @@
|
|
|
1363
1363
|
singleSelectionAriaLabel: 'Single selection header',
|
|
1364
1364
|
singleActionableAriaLabel: 'Single actionable header',
|
|
1365
1365
|
detailExpandableAriaLabel: 'Toggle more row content',
|
|
1366
|
-
datagridFilterAriaLabel: '
|
|
1366
|
+
datagridFilterAriaLabel: 'Filter dialog',
|
|
1367
|
+
datagridFilterDialogAriaLabel: 'Toggle column filter',
|
|
1367
1368
|
columnSeparatorAriaLabel: 'Column resize handle',
|
|
1368
1369
|
columnSeparatorDescription: 'Not necessary to use this button',
|
|
1369
1370
|
// Alert
|
|
@@ -10772,7 +10773,7 @@
|
|
|
10772
10773
|
selector: 'clr-dg-filter',
|
|
10773
10774
|
// We register this component as a CustomFilter, for the parent column to detect it.
|
|
10774
10775
|
providers: [{ provide: CustomFilter, useExisting: ClrDatagridFilter }, UNIQUE_ID_PROVIDER],
|
|
10775
|
-
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 "
|
|
10776
|
+
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 "
|
|
10776
10777
|
},] }
|
|
10777
10778
|
];
|
|
10778
10779
|
ClrDatagridFilter.ctorParameters = function () { return [
|
|
@@ -12551,6 +12552,12 @@
|
|
|
12551
12552
|
_this.focusOnClose();
|
|
12552
12553
|
}
|
|
12553
12554
|
}), this.signpostIdService.id.subscribe(function (idChange) { return (_this.ariaControl = idChange); }));
|
|
12555
|
+
this.addDefaultAriaLabel(this.el.nativeElement);
|
|
12556
|
+
};
|
|
12557
|
+
ClrSignpostTrigger.prototype.addDefaultAriaLabel = function (el) {
|
|
12558
|
+
if (!el.hasAttribute('aria-label')) {
|
|
12559
|
+
el.setAttribute('aria-label', this.commonStrings.keys.signpostToggle);
|
|
12560
|
+
}
|
|
12554
12561
|
};
|
|
12555
12562
|
ClrSignpostTrigger.prototype.focusOnClose = function () {
|
|
12556
12563
|
if (!i1.isPlatformBrowser(this.platformId)) {
|
|
@@ -12580,7 +12587,6 @@
|
|
|
12580
12587
|
selector: '[clrSignpostTrigger]',
|
|
12581
12588
|
host: {
|
|
12582
12589
|
class: 'signpost-trigger',
|
|
12583
|
-
'[attr.aria-label]': 'commonStrings.keys.signpostToggle',
|
|
12584
12590
|
'[attr.aria-expanded]': 'ariaExpanded',
|
|
12585
12591
|
'[attr.aria-controls]': 'ariaControl',
|
|
12586
12592
|
'[class.active]': 'isOpen',
|