@guiexpert/table 1.1.62 → 1.1.64

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.
@@ -11,5 +11,5 @@ export declare class AreaModelObjectArrayWithColumndefs<T> extends AreaModelObje
11
11
  protected rows: T[];
12
12
  protected readonly columnDefs: ColumnDefIf[];
13
13
  defaultRowHeight: number;
14
- constructor(areaIdent: AreaIdent, rows: T[], columnDefs: ColumnDefIf[], defaultRowHeight: number);
14
+ constructor(areaIdent: AreaIdent, rows: T[], columnDefs: ColumnDefIf[], defaultRowHeight: number, selectedRowClass?: string, focusedRowClass?: string);
15
15
  }
@@ -1,9 +1,9 @@
1
- import { AbstractAreaModel } from "./abstract-area-model";
2
- import { ColumnDefIf } from "../column/column-def.if";
3
- import { AreaIdent } from "../area-ident.type";
4
- import { FilterFunction } from "../../common/filter-function";
5
- import { SorterService } from "../../../service/sorter.service";
6
- import { SortItem } from "../../common/sort-item";
1
+ import { AbstractAreaModel } from './abstract-area-model';
2
+ import { ColumnDefIf } from '../column/column-def.if';
3
+ import { AreaIdent } from '../area-ident.type';
4
+ import { FilterFunction } from '../../common/filter-function';
5
+ import { SorterService } from '../../../service/sorter.service';
6
+ import { SortItem } from '../../common/sort-item';
7
7
  import { ObjectArrayHolderIf } from './object-array-holder.if';
8
8
  /**
9
9
  * Represents an area model defined by an object array.
@@ -14,13 +14,18 @@ export declare class AreaModelObjectArray<T> extends AbstractAreaModel<T> implem
14
14
  protected rows: T[];
15
15
  defaultRowHeight: number;
16
16
  protected columnDefs: ColumnDefIf[];
17
+ selectedRowClass: string;
18
+ focusedRowClass: string;
17
19
  focusedRowIndex: number;
18
20
  protected readonly properties: string[];
19
21
  protected filteredRows: T[];
20
22
  protected sorterService: SorterService;
21
- constructor(areaIdent: AreaIdent, rows: T[], defaultRowHeight: number, columnDefs?: ColumnDefIf[]);
23
+ constructor(areaIdent: AreaIdent, rows: T[], defaultRowHeight: number, columnDefs?: ColumnDefIf[], selectedRowClass?: string, focusedRowClass?: string);
22
24
  setRows(rows: T[]): void;
23
25
  filterRowsByPredict(predict: (row: T) => boolean): void;
26
+ /**
27
+ * return row count of filtered rows
28
+ */
24
29
  getRowCount(): number;
25
30
  getValueAt(rowIndex: number, columnIndex: number): any;
26
31
  /**
@@ -167,6 +167,7 @@ export declare class RenderScope extends EleScope {
167
167
  * @protected
168
168
  */
169
169
  protected getStringByAttr(srcElement: HTMLElement, key: string): string;
170
+ displayedRowCount: number;
170
171
  /**
171
172
  * Adjusts the layout and positioning of the specified area in the table.
172
173
  * This method is used internally and should not be called directly.
@@ -179,4 +179,5 @@ export declare class TableApi {
179
179
  getBodyModel(): AreaModelIf;
180
180
  setRows<T>(rows: T[]): void;
181
181
  reSort(): void;
182
+ getDisplayedRowCount(): number;
182
183
  }
@@ -297,4 +297,5 @@ export declare class TableScope extends RenderScope implements OnActionTriggered
297
297
  autoResizeColumns(recalcWrappers?: boolean): void;
298
298
  recalcWrappers(): void;
299
299
  reSort(): void;
300
+ getDisplayedRowCount(): number;
300
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guiexpert/table",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.js",