@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.
- package/index.cjs +4 -4
- package/index.js +134 -110
- package/lib/table/data/options/table-options.d.ts +1 -0
- package/lib/table/data/options/table-options.if.d.ts +1 -0
- package/lib/table/data/tablemodel/areamodel/area-model-object-array-with-columndefs.d.ts +1 -1
- package/lib/table/data/tablemodel/areamodel/area-model-object-array.d.ts +20 -7
- package/lib/table/render-scope.d.ts +1 -0
- package/lib/table/table-api.d.ts +1 -0
- package/lib/table/table-scope.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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
|
|
2
|
-
import { ColumnDefIf } from
|
|
3
|
-
import { AreaIdent } from
|
|
4
|
-
import { FilterFunction } from
|
|
5
|
-
import { SorterService } from
|
|
6
|
-
import { SortItem } from
|
|
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.
|
package/lib/table/table-api.d.ts
CHANGED