@clr/angular 12.0.4 → 12.0.8

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.
@@ -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: 'Toggle column filter',
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',