@fundamental-ngx/cdk 0.43.7 → 0.43.9

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.
@@ -2923,6 +2923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2923
2923
  }]
2924
2924
  }], ctorParameters: function () { return [{ type: AttributeObserver }]; } });
2925
2925
 
2926
+ /* eslint-disable @typescript-eslint/member-ordering */
2926
2927
  class DeprecatedFocusableItemDirective extends DeprecatedSelector {
2927
2928
  }
2928
2929
  DeprecatedFocusableItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeprecatedFocusableItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
@@ -2956,10 +2957,6 @@ class FocusableItemDirective {
2956
2957
  return this._focusable;
2957
2958
  }
2958
2959
  /** @hidden */
2959
- get _tabindex() {
2960
- return this._tabbable ? 0 : -1;
2961
- }
2962
- /** @hidden */
2963
2960
  constructor() {
2964
2961
  /** Function, which returns a string to be announced by screen-reader whenever an item which is in grid receives focus. */
2965
2962
  this.cellFocusedEventAnnouncer = this._defaultItemFocusedEventAnnouncer;
@@ -2986,6 +2983,8 @@ class FocusableItemDirective {
2986
2983
  /** @hidden */
2987
2984
  this._zone = inject(NgZone);
2988
2985
  /** @hidden */
2986
+ this._renderer2 = inject(Renderer2);
2987
+ /** @hidden */
2989
2988
  this._document = inject(DOCUMENT);
2990
2989
  this._focusableObserver
2991
2990
  .observe(this.elementRef, false)
@@ -3016,6 +3015,7 @@ class FocusableItemDirective {
3016
3015
  /** Set tabbable state */
3017
3016
  setTabbable(state) {
3018
3017
  this._tabbable = state;
3018
+ this._renderer2.setAttribute(this.elementRef.nativeElement, 'tabindex', this._tabbable ? '0' : '-1');
3019
3019
  if (state) {
3020
3020
  this._enableTabbableElements();
3021
3021
  }
@@ -3097,7 +3097,7 @@ class FocusableItemDirective {
3097
3097
  }
3098
3098
  }
3099
3099
  FocusableItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FocusableItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3100
- FocusableItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: FocusableItemDirective, isStandalone: true, selector: "[fdkFocusableItem]", inputs: { fdkFocusableItem: "fdkFocusableItem", cellFocusedEventAnnouncer: "cellFocusedEventAnnouncer" }, outputs: { cellFocused: "cellFocused" }, host: { properties: { "attr.tabindex": "this._tabindex" } }, providers: [
3100
+ FocusableItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: FocusableItemDirective, isStandalone: true, selector: "[fdkFocusableItem]", inputs: { fdkFocusableItem: "fdkFocusableItem", cellFocusedEventAnnouncer: "cellFocusedEventAnnouncer" }, outputs: { cellFocused: "cellFocused" }, providers: [
3101
3101
  {
3102
3102
  provide: FDK_FOCUSABLE_ITEM_DIRECTIVE,
3103
3103
  useExisting: FocusableItemDirective
@@ -3123,9 +3123,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3123
3123
  type: Input
3124
3124
  }], cellFocused: [{
3125
3125
  type: Output
3126
- }], _tabindex: [{
3127
- type: HostBinding,
3128
- args: ['attr.tabindex']
3129
3126
  }] } });
3130
3127
 
3131
3128
  class FocusableItemModule {