ngx-core-components 0.3.26 → 0.3.28

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.
@@ -2977,7 +2977,6 @@ class VirtualListComponent {
2977
2977
  const val = item[key];
2978
2978
  return val != null ? String(val) : String(item['id'] ?? '');
2979
2979
  }
2980
- ngOnDestroy() { }
2981
2980
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: VirtualListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2982
2981
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: VirtualListComponent, isStandalone: true, selector: "ngx-virtual-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, containerHeight: { classPropertyName: "containerHeight", publicName: "containerHeight", isSignal: true, isRequired: false, transformFunction: null }, overscan: { classPropertyName: "overscan", publicName: "overscan", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, renderTemplate: { classPropertyName: "renderTemplate", publicName: "renderTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }], ngImport: i0, template: `
2983
2982
  <div
@@ -3000,7 +2999,12 @@ class VirtualListComponent {
3000
2999
  [class.vl-row--selected]="selectedIndex() === entry.index"
3001
3000
  [class.vl-row--striped]="striped() && entry.index % 2 !== 0"
3002
3001
  [style.height]="itemHeight() + 'px'"
3002
+ role="option"
3003
+ [attr.aria-selected]="selectedIndex() === entry.index"
3004
+ tabindex="0"
3003
3005
  (click)="handleItemClick(entry.item, entry.index)"
3006
+ (keydown.enter)="handleItemClick(entry.item, entry.index)"
3007
+ (keydown.space)="handleItemClick(entry.item, entry.index); $event.preventDefault()"
3004
3008
  >
3005
3009
  @if (renderTemplate()) {
3006
3010
  <ng-container *ngTemplateOutlet="renderTemplate()!; context: { $implicit: entry.item, index: entry.index }"></ng-container>
@@ -3051,7 +3055,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
3051
3055
  [class.vl-row--selected]="selectedIndex() === entry.index"
3052
3056
  [class.vl-row--striped]="striped() && entry.index % 2 !== 0"
3053
3057
  [style.height]="itemHeight() + 'px'"
3058
+ role="option"
3059
+ [attr.aria-selected]="selectedIndex() === entry.index"
3060
+ tabindex="0"
3054
3061
  (click)="handleItemClick(entry.item, entry.index)"
3062
+ (keydown.enter)="handleItemClick(entry.item, entry.index)"
3063
+ (keydown.space)="handleItemClick(entry.item, entry.index); $event.preventDefault()"
3055
3064
  >
3056
3065
  @if (renderTemplate()) {
3057
3066
  <ng-container *ngTemplateOutlet="renderTemplate()!; context: { $implicit: entry.item, index: entry.index }"></ng-container>