@guiexpert/table 1.1.61 → 1.1.63

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.
@@ -40,6 +40,7 @@ export declare class TableOptions implements TableOptionsIf {
40
40
  sortedOptions: SortedOptions;
41
41
  sortOrder: SortState[];
42
42
  shortcutActionIdMapping?: ShortcutActionIdMapping;
43
+ shortcutActionsDisabled: boolean;
43
44
  resizeEventDebounceDelay: number;
44
45
  getEditRenderer?: GetEditRenderer;
45
46
  getSelectionModel?: GetT<SelectionModelIf>;
@@ -226,4 +226,5 @@ export interface TableOptionsIf {
226
226
  * @property {string} [actionId] - The ID of the action associated with the shortcut.
227
227
  */
228
228
  shortcutActionIdMapping?: ShortcutActionIdMapping;
229
+ shortcutActionsDisabled: boolean;
229
230
  }
@@ -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,14 +14,26 @@ 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;
19
+ focusedRowIndex: number;
17
20
  protected readonly properties: string[];
18
21
  protected filteredRows: T[];
19
22
  protected sorterService: SorterService;
20
- constructor(areaIdent: AreaIdent, rows: T[], defaultRowHeight: number, columnDefs?: ColumnDefIf[]);
23
+ constructor(areaIdent: AreaIdent, rows: T[], defaultRowHeight: number, columnDefs?: ColumnDefIf[], selectedRowClass?: string, focusedRowClass?: string);
21
24
  setRows(rows: T[]): void;
22
25
  filterRowsByPredict(predict: (row: T) => boolean): void;
26
+ /**
27
+ * return row count of filtered rows
28
+ */
23
29
  getRowCount(): number;
24
30
  getValueAt(rowIndex: number, columnIndex: number): any;
31
+ /**
32
+ * Retrieves the filtered and sorted rows from the dataset.
33
+ * These rows are used for rendering the table.
34
+ *
35
+ * @return {T[]} An array containing the filtered (and sorted) rows.
36
+ */
25
37
  getFilteredRows(): T[];
26
38
  getAllRows(): T[];
27
39
  getRowHeight(_rowIndex: number): number;
@@ -30,6 +42,7 @@ export declare class AreaModelObjectArray<T> extends AbstractAreaModel<T> implem
30
42
  doSort(sortItems: SortItem[]): boolean;
31
43
  getValueByT(t: T, property: string): any;
32
44
  changeColumnOrder(sourceColumnIndex: number, targetColumnIndex: number): void;
45
+ getCustomClassesAt(rowIndex: number, _columnIndex: number): string[];
33
46
  protected genericFlatTableSortComparator(property: string, f: number): (a: T, b: T) => number;
34
47
  private getPropertyValue;
35
48
  }
@@ -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.61",
3
+ "version": "1.1.63",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.js",