kitsng-table-factory 0.3.19 → 0.3.21

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.
@@ -78,6 +78,11 @@ export interface KitsngTableConfig {
78
78
  showGridlines?: boolean;
79
79
  dataKey?: string;
80
80
  tableLayout?: "auto" | "fixed";
81
+ showCurrentPageReport?: boolean;
82
+ virtualRowHeight?: number;
83
+ virtualScroll?: boolean;
84
+ virtualScrollItemSize?: number | null;
85
+ scrollHeight?: string;
81
86
  }
82
87
  export interface KitsngTabelAction {
83
88
  id?: string;
@@ -117,4 +122,5 @@ export interface KitsngFetchApiInfo {
117
122
  onDataLoaded?(data: any, pageInfo: any): void;
118
123
  onFetchDataError?(error: any): void;
119
124
  queryMapper?(query: any): any;
125
+ dataMapper?(response: any, data: any): any;
120
126
  }
@@ -55,7 +55,7 @@ export declare class ApiService<T = any> {
55
55
  constructor(_httpClient: HttpClient);
56
56
  _initService(module: string, entity: string, version?: string, baseUri?: string, path?: string): void;
57
57
  _initBaseUrl(): void;
58
- getPaged(query: ApiQueryDto): Observable<ApiListDto<T>>;
58
+ getPaged(query: ApiQueryDto, dataMapper?: (response: any, data: any) => any): Observable<ApiListDto<T>>;
59
59
  private checkResponseStatus;
60
60
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiService<any>, never>;
61
61
  static ɵprov: i0.ɵɵInjectableDeclaration<ApiService<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitsng-table-factory",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.6",
6
6
  "@angular/core": "^18.2.6",