@guiexpert/table 1.1.8 → 1.1.9

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.
@@ -16,7 +16,6 @@ import { SideIdent } from "../side-ident.type";
16
16
  * @property {number} top - The top position of the cell.
17
17
  * @property {HTMLDivElement} parent - The parent element of the cell.
18
18
  * @property {boolean} lastRowOfModel - Indicates if the cell is in the last row of the model.
19
- * @property {boolean} gammaRange - Indicates if the gamma range is enabled.
20
19
  */
21
20
  export interface ArgsRenderCellDiv {
22
21
  areaModel: AreaModelIf;
@@ -30,5 +29,4 @@ export interface ArgsRenderCellDiv {
30
29
  top: number;
31
30
  parent: HTMLDivElement;
32
31
  lastRowOfModel: boolean;
33
- gammaRange: boolean;
34
32
  }
@@ -0,0 +1,7 @@
1
+ import { IconIf } from "./icon.if";
2
+ import { HeaderGroupOptionsIf } from './header-group-options.if';
3
+ export declare class HeaderGroupOptions implements HeaderGroupOptionsIf {
4
+ iconExpanded: IconIf;
5
+ iconCollapsed: IconIf;
6
+ constructor(iconExpanded?: IconIf, iconCollapsed?: IconIf);
7
+ }
@@ -0,0 +1,5 @@
1
+ import { IconIf } from "./icon.if";
2
+ export interface HeaderGroupOptionsIf {
3
+ iconExpanded: IconIf;
4
+ iconCollapsed: IconIf;
5
+ }
@@ -9,6 +9,7 @@ import { SelectionModelIf } from "../../selection/selection-model.if";
9
9
  import { GetT } from "../common/get-t";
10
10
  import { FocusModelIf } from "../../focus/focus-model.if";
11
11
  import { ShortcutActionIdMapping } from "../../action/shortcut-actionid-mapping.type";
12
+ import { HeaderGroupOptions } from './header-group-options';
12
13
  export declare class TableOptions implements TableOptionsIf {
13
14
  overflowX: "auto" | "scroll";
14
15
  overflowY: "auto" | "scroll";
@@ -30,6 +31,7 @@ export declare class TableOptions implements TableOptionsIf {
30
31
  headerToggleExpandCollapseIcons: boolean;
31
32
  headerVerticalSeparator: boolean;
32
33
  treeOptions: TreeOptions;
34
+ headerGroupOptions: HeaderGroupOptions;
33
35
  showCheckboxWihoutExtraColumn: boolean;
34
36
  externalFilterFunction: FilterFunction<any> | undefined;
35
37
  sortedOptions: SortedOptions;
@@ -9,6 +9,7 @@ import { SelectionModelIf } from "../../selection/selection-model.if";
9
9
  import { GetT } from "../common/get-t";
10
10
  import { FocusModelIf } from "../../focus/focus-model.if";
11
11
  import { ShortcutActionIdMapping } from "../../action/shortcut-actionid-mapping.type";
12
+ import { HeaderGroupOptionsIf } from './header-group-options.if';
12
13
  /**
13
14
  * Represents the options for configuring a table.
14
15
  *
@@ -34,6 +35,7 @@ import { ShortcutActionIdMapping } from "../../action/shortcut-actionid-mapping.
34
35
  * | defaultRowHeights | Represents the default row heights for a given table. |
35
36
  * | headerToggleExpandCollapseIcons | Indicates whether to show toggle icons in the header. |
36
37
  * | treeOptions | Represents the options for configuring a tree. |
38
+ * | headerGroupOptions | Represents the options for expnded/collapsed icons of the header groups. |
37
39
  * | showCheckboxWihoutExtraColumn | Indicates whether to show checkbox without an extra column. |
38
40
  * | externalFilterFunction | Represents the external filter function used to filter table rows. |
39
41
  * | sortedOptions | Represents a sorted options object. |
@@ -158,15 +160,8 @@ export interface TableOptionsIf {
158
160
  */
159
161
  defaultRowHeights: DefaultRowHeightsIf;
160
162
  headerToggleExpandCollapseIcons: boolean;
161
- /**
162
- * Represents the options for configuring a tree.
163
- *
164
- * @typedef {Object} TreeOptions
165
- * @property {number} [maxDepth] - Maximum depth of the tree.
166
- * @property {boolean} [allowDuplicates] - Indicates if duplicate items are allowed in the tree.
167
- * @property {string[]} [colors] - An array of color options for styling the tree.
168
- */
169
163
  treeOptions: TreeOptionsIf;
164
+ headerGroupOptions: HeaderGroupOptionsIf;
170
165
  /**
171
166
  * Indicates whether to show checkbox without an extra column.
172
167
  * If true and the row is checkable, a checkbox is rendered in the first column.
@@ -1,24 +1,28 @@
1
- import { AreaIdent } from "../area-ident.type";
2
- import { ColumnDefIf } from "../column/column-def.if";
3
- import { AreaModelIf } from "./area-model.if";
4
- import { CellGroupIf } from "../cellgroup/cell-group.if";
5
- import { CheckboxModelIf } from "../../../checkbox/checkbox-model.if";
6
- import { SortItem } from "../../common/sort-item";
7
- import { FilterFunction } from "../../common/filter-function";
8
- import { CellRendererIf } from "../../../renderer/cell-render.if";
9
- import { CheckedType } from "../../common/checked-type";
10
- import { CellGroupExt } from "../cellgroup/cell-group-ext";
1
+ import { AreaIdent } from '../area-ident.type';
2
+ import { ColumnDefIf } from '../column/column-def.if';
3
+ import { AreaModelIf } from './area-model.if';
4
+ import { CellGroupIf } from '../cellgroup/cell-group.if';
5
+ import { CheckboxModelIf } from '../../../checkbox/checkbox-model.if';
6
+ import { SortItem } from '../../common/sort-item';
7
+ import { FilterFunction } from '../../common/filter-function';
8
+ import { CellRendererIf } from '../../../renderer/cell-render.if';
9
+ import { CheckedType } from '../../common/checked-type';
10
+ import { CellGroupExt } from '../cellgroup/cell-group-ext';
11
+ import { MouseTargetData } from '../../event/mouse-target-data';
12
+ import { HeaderGroupOptionsIf } from '../../options/header-group-options.if';
11
13
  export declare class AreaModelCellGroups implements AreaModelIf {
12
14
  readonly areaIdent: AreaIdent;
13
15
  readonly groups: CellGroupIf[];
14
- readonly columnDefs: ColumnDefIf[];
16
+ columnDefs: ColumnDefIf[];
15
17
  readonly defaultRowHeight: number;
18
+ private headerGroupOptions;
16
19
  gammaCells: boolean;
17
20
  rowSelectionModel: CheckboxModelIf<any> | undefined;
18
- readonly arr: (CellGroupExt | null | undefined)[][];
21
+ arr: (CellGroupExt | null | undefined)[][];
19
22
  private groupExts;
20
23
  private cellGroupExtCellRenderer;
21
- constructor(areaIdent: AreaIdent, groups: CellGroupIf[], columnDefs: ColumnDefIf[], defaultRowHeight: number);
24
+ constructor(areaIdent: AreaIdent, groups: CellGroupIf[], columnDefs: ColumnDefIf[], defaultRowHeight: number, headerGroupOptions?: HeaderGroupOptionsIf);
25
+ init(): void;
22
26
  getAllLeafs(): CellGroupExt[];
23
27
  getMaxRowCount(): number;
24
28
  buildArray(): (CellGroupExt | null | undefined)[][];
@@ -40,7 +44,6 @@ export declare class AreaModelCellGroups implements AreaModelIf {
40
44
  getValueAt(rowIndex: number, columnIndex: number): any;
41
45
  getTextValueAt(rowIndex: number, columnIndex: number): string;
42
46
  getYPosByRowIndex(_rowIndex: number): number;
43
- init(): void;
44
47
  getRowHeight(_rowIndex: number): number;
45
48
  isEditable(_rowIndex: number, _columnIndex: number): boolean;
46
49
  isFilterable(): boolean;
@@ -49,4 +52,5 @@ export declare class AreaModelCellGroups implements AreaModelIf {
49
52
  isSelectable(_rowIndex: number, _columnIndex: number): boolean;
50
53
  setRowChecked(_rowIndex: number, _checked: boolean): void;
51
54
  setValue(_rowIndex: number, _columnIndex: number, _value: any): boolean;
55
+ toggleHeaderGroup(mouseTargetData: MouseTargetData): ColumnDefIf[];
52
56
  }
@@ -17,5 +17,5 @@ export declare class CellGroupExt extends CellGroup {
17
17
  getColumnCount(cg?: CellGroupExt, ret?: number): number;
18
18
  getRowSpan(cg: CellGroupExt | undefined, maxRowCount: number): number;
19
19
  getParentCount(cg?: CellGroupExt, ret?: number): number;
20
- log(maxRowCount: number): void;
20
+ log(maxRowCount?: number): string;
21
21
  }
@@ -78,7 +78,7 @@ export declare class RenderScope extends EleScope {
78
78
  protected findRowOfImportantRowspanCell(areaModel: AreaModelIf, rowIndex: number, colIndex: number): number;
79
79
  protected adjustColumnsToRowParent({ areaIdent, sideIdent, areaModel, geo, parent, rowIndex, columnIndexStart, columnIndexEnd, verticalFixed, lastRowOfModel }: ArgsAdjustColumnsToRowParentParams): void;
80
80
  protected getTreeArrowColumnIndex(): 0 | 1;
81
- protected addAndRenderCellDiv({ areaModel, areaIdent, sideIdent, rowIndex, index, left, width, height, top, parent, lastRowOfModel, gammaRange }: ArgsRenderCellDiv): [HTMLDivElement, RendererCleanupFnType | undefined];
81
+ protected addAndRenderCellDiv({ areaModel, areaIdent, sideIdent, rowIndex, index, left, width, height, top, parent, lastRowOfModel }: ArgsRenderCellDiv): [HTMLDivElement, RendererCleanupFnType | undefined];
82
82
  protected applyCssClasses(ele: HTMLDivElement, cssClasses?: {
83
83
  [key: string]: boolean;
84
84
  }): void;
@@ -1,9 +1,16 @@
1
- import { AreaModelIf } from "../data/tablemodel/areamodel/area-model.if";
2
- import { CellRendererIf } from "./cell-render.if";
3
- import { DomServiceIf } from "../service/dom-service.if";
4
- import { AreaIdent } from "../data/tablemodel/area-ident.type";
5
- import { RendererCleanupFnType } from "./renderer-cleanup-fn.type";
6
- import { CellGroupExt } from "../data/tablemodel/cellgroup/cell-group-ext";
1
+ import { AreaModelIf } from '../data/tablemodel/areamodel/area-model.if';
2
+ import { CellRendererIf } from './cell-render.if';
3
+ import { DomServiceIf } from '../service/dom-service.if';
4
+ import { AreaIdent } from '../data/tablemodel/area-ident.type';
5
+ import { RendererCleanupFnType } from './renderer-cleanup-fn.type';
6
+ import { CellGroupExt } from '../data/tablemodel/cellgroup/cell-group-ext';
7
+ import { HeaderGroupOptionsIf } from '../data/options/header-group-options.if';
7
8
  export declare class CellGroupExtCellRenderer implements CellRendererIf {
8
- render(cellDiv: HTMLDivElement, _rowIndex: number, _columnIndex: number, _areaIdent: AreaIdent, _areaModel: AreaModelIf, cellValue: CellGroupExt | undefined | null, _domService: DomServiceIf): RendererCleanupFnType | undefined;
9
+ private headerGroupOptions;
10
+ private static toggleHeaderGroup;
11
+ constructor(headerGroupOptions?: HeaderGroupOptionsIf);
12
+ render(cellDiv: HTMLDivElement, rowIndex: number, columnIndex: number, areaIdent: AreaIdent, _areaModel: AreaModelIf, cellValue: CellGroupExt | undefined | null, domService: DomServiceIf): RendererCleanupFnType | undefined;
13
+ private addText;
14
+ private addArrowDiv;
15
+ applyStyleString(domService: DomServiceIf, div: HTMLDivElement, style: string): void;
9
16
  }
@@ -10,6 +10,19 @@ import { SideIdent } from "../data/side-ident.type";
10
10
  import { SortState } from "../data/common/sort-state.type";
11
11
  import { SortedOptionsIf } from "../data/options/sorted-options.if";
12
12
  import { HtmlStyle } from "./data/html-style.type";
13
+ interface AddColumnDivPara {
14
+ parent: HTMLDivElement;
15
+ geo: GeoData;
16
+ rowIndex: number;
17
+ columnIndex: number;
18
+ areaIdent: AreaIdent;
19
+ sideIdent: SideIdent;
20
+ text?: string;
21
+ treeArrow?: TreeArrowType;
22
+ tableOptions?: TableOptionsIf;
23
+ checkedType?: CheckedType | undefined;
24
+ sortState?: SortState;
25
+ }
13
26
  export declare class ConvenienceDomService {
14
27
  readonly domService: DomServiceIf;
15
28
  constructor(domService: DomServiceIf);
@@ -32,7 +45,7 @@ export declare class ConvenienceDomService {
32
45
  createAreaDivWithClass(clazz: string, parent: HTMLDivElement, areaIdent: AreaIdent, sideIdent: SideIdent): HTMLDivElement;
33
46
  createDivWithClass(clazz: string, parent: HTMLDivElement): HTMLDivElement;
34
47
  addRowDiv(divScope: DivScope, geo: GeoData, rowIndex: number | undefined, areaIdent: AreaIdent, sideIdent: SideIdent, text?: string): HTMLDivElement;
35
- addColumnDiv(parent: HTMLDivElement, geo: GeoData, rowIndex: number | undefined, columnIndex: number | undefined, areaIdent: AreaIdent, sideIdent: SideIdent, text?: string, treeArrow?: TreeArrowType, tableOptions?: TableOptionsIf, checkedType?: CheckedType | undefined, sortState?: SortState): HTMLDivElement;
48
+ addColumnDiv(para: AddColumnDivPara): HTMLDivElement;
36
49
  addCheckboxToDiv(parent: HTMLDivElement, checkedType: CheckedType, areaIdent: AreaIdent, rowIndex: number): HTMLDivElement;
37
50
  addLabelDiv(parent: HTMLDivElement, text?: string, firstTreeColumn?: boolean, rowIndex?: number, columnIndex?: number, areaIdent?: AreaIdent): HTMLDivElement;
38
51
  addSortedIcon(parent: HTMLDivElement, sorted?: SortState, sortedOptions?: SortedOptionsIf, columnIndex?: number): HTMLDivElement;
@@ -45,3 +58,4 @@ export declare class ConvenienceDomService {
45
58
  applyStyleString(div: HTMLDivElement, style: string): void;
46
59
  private getDivOrCreateDiv;
47
60
  }
61
+ export {};
@@ -5,7 +5,37 @@ import { CopyServiceIf } from './copy-service.if';
5
5
  export declare class CopyService implements CopyServiceIf {
6
6
  static columnSeparatorChar: string;
7
7
  static rowSeparatorChar: string;
8
+ /**
9
+ * Returns the content to be copied based on the provided table model, selection model, and focus model.
10
+ *
11
+ * @param {TableModelIf} tableModel - The table model for data retrieval.
12
+ * @param {SelectionModelIf} selectionModel - The selection model to determine the selected range.
13
+ * @param {FocusModelIf} focusModel - The focus model to determine the focused cell.
14
+ * @return {Promise<string>} A promise that resolves to the copied content as a string.
15
+ * @throws {string} Throws an error if neither selection nor focus is defined.
16
+ */
8
17
  createContent(tableModel: TableModelIf, selectionModel: SelectionModelIf, focusModel: FocusModelIf): Promise<string>;
18
+ /**
19
+ * Copy the provided content to the clipboard.
20
+ *
21
+ * @param {string} content - The content to be copied.
22
+ * @return {Promise<void>} A promise that resolves when the content has been successfully copied to the clipboard.
23
+ */
9
24
  copyContent(content: string): Promise<void>;
25
+ /**
26
+ * Asynchronously copies the content of a table to the clipboard.
27
+ *
28
+ * @param {TableModelIf} tableModel - The table model to copy from.
29
+ * @param {SelectionModelIf} selectionModel - The selection model of the table.
30
+ * @param {FocusModelIf} focusModel - The focus model of the table.
31
+ * @returns {Promise<string>} A promise that resolves with the copied text if successful, or rejects if an error occurs.
32
+ */
33
+ copyToClipboard(tableModel: TableModelIf, selectionModel: SelectionModelIf, focusModel: FocusModelIf): Promise<string>;
34
+ /**
35
+ * Merges an array of CellRanges into a single merged CellRange.
36
+ *
37
+ * @param {CellRange[]} ranges - The array of CellRanges to be merged.
38
+ * @return {CellRange | undefined} - The merged CellRange, or undefined if the ranges array is empty.
39
+ */
10
40
  private mergeRanges;
11
41
  }
@@ -2,6 +2,31 @@ import { TableModelIf } from '../data/tablemodel/table-model.if';
2
2
  import { SelectionModelIf } from '../selection/selection-model.if';
3
3
  import { FocusModelIf } from '../focus/focus-model.if';
4
4
  export interface CopyServiceIf {
5
+ /**
6
+ * Copies the selected data from the table to the clipboard.
7
+ *
8
+ * @param {TableModelIf} tableModel - The table model containing the data.
9
+ * @param {SelectionModelIf | undefined} selectionModel - The selection model containing the selected rows/columns.
10
+ * @param {FocusModelIf | undefined} focusModel - The focus model containing the focused cell.
11
+ *
12
+ * @return {Promise<string>} - A promise that resolves with the copied data as a string.
13
+ */
14
+ copyToClipboard(tableModel: TableModelIf, selectionModel: SelectionModelIf | undefined, focusModel: FocusModelIf | undefined): Promise<string>;
15
+ /**
16
+ * Creates content based on the provided table model, selection model, and focus model.
17
+ *
18
+ * @param {TableModelIf} tableModel - The table model representing the data.
19
+ * @param {SelectionModelIf | undefined} selectionModel - The selection model for the table.
20
+ * @param {FocusModelIf | undefined} focusModel - The focus model for the table.
21
+ *
22
+ * @return {Promise<string>} - A promise that resolves to the generated content as a string.
23
+ */
5
24
  createContent(tableModel: TableModelIf, selectionModel: SelectionModelIf | undefined, focusModel: FocusModelIf | undefined): Promise<string>;
25
+ /**
26
+ * Copies the content to a specified location.
27
+ *
28
+ * @param {string} content - The content to be copied.
29
+ * @return {Promise<void>} - A Promise that resolves when the content is successfully copied.
30
+ */
6
31
  copyContent(content: string): Promise<void>;
7
32
  }
@@ -120,4 +120,10 @@ export declare class TableApi {
120
120
  * @return {ShortcutActionIdMapping} The mapping of shortcuts to corresponding action.
121
121
  */
122
122
  getShortcutActionMapping(): ShortcutActionIdMapping;
123
+ /**
124
+ * Copies the selected data from the table to the clipboard.
125
+ *
126
+ * @return {Promise<string>} - A promise that resolves with the copied data as a string.
127
+ */
128
+ copyToClipboard(): Promise<string>;
123
129
  }
@@ -1,23 +1,26 @@
1
- import { TableModelIf } from "./data/tablemodel/table-model.if";
2
- import { AreaIdent } from "./data/tablemodel/area-ident.type";
3
- import { GeMouseEvent } from "./data/common/event/ge-mouse-event";
4
- import { DomServiceIf } from "./service/dom-service.if";
5
- import { TableOptionsIf } from "./data/options/table-options.if";
6
- import { MouseHandler } from "./mouse-handler";
7
- import { EventListenerIf } from "./event-listener.if";
8
- import { TableApi } from "./table-api";
9
- import { StoreStateCollapsedExpandService } from "./service/store-state-collapsed-expand.service";
10
- import { StoreStateSortingService } from "./service/store-state-sorting.service";
11
- import { RenderScope } from "./render-scope";
12
- import { InputHandler } from "./input-handler";
13
- import { SelectionService } from "./selection/selection-service";
14
- import { GeKeyEvent } from "./data/common/event/ge-key-event";
15
- import { OnActionTriggeredIf } from "./action/on-action-triggered.if";
16
- import { ActionId } from "./action/action-id.type";
17
- import { ShortcutService } from "./action/shortcut.service";
1
+ import { TableModelIf } from './data/tablemodel/table-model.if';
2
+ import { AreaIdent } from './data/tablemodel/area-ident.type';
3
+ import { GeMouseEvent } from './data/common/event/ge-mouse-event';
4
+ import { DomServiceIf } from './service/dom-service.if';
5
+ import { TableOptionsIf } from './data/options/table-options.if';
6
+ import { MouseHandler } from './mouse-handler';
7
+ import { EventListenerIf } from './event-listener.if';
8
+ import { TableApi } from './table-api';
9
+ import { StoreStateCollapsedExpandService } from './service/store-state-collapsed-expand.service';
10
+ import { StoreStateSortingService } from './service/store-state-sorting.service';
11
+ import { RenderScope } from './render-scope';
12
+ import { InputHandler } from './input-handler';
13
+ import { SelectionService } from './selection/selection-service';
14
+ import { GeKeyEvent } from './data/common/event/ge-key-event';
15
+ import { OnActionTriggeredIf } from './action/on-action-triggered.if';
16
+ import { ActionId } from './action/action-id.type';
17
+ import { ShortcutService } from './action/shortcut.service';
18
18
  import { LicenseManager } from './license-manager';
19
19
  import { SelectionModel } from './selection/selection-model';
20
20
  import { CopyServiceIf } from './service/copy-service.if';
21
+ import { MouseTargetData } from './data/event/mouse-target-data';
22
+ import { SelectionModelIf } from './selection/selection-model.if';
23
+ import { FocusModelIf } from './focus/focus-model.if';
21
24
  /**
22
25
  * Creates a TableScope instance.
23
26
  * @param {HTMLDivElement} hostElement - The host element.
@@ -28,7 +31,7 @@ import { CopyServiceIf } from './service/copy-service.if';
28
31
  */
29
32
  export declare class TableScope extends RenderScope implements OnActionTriggeredIf {
30
33
  protected readonly eventListener: EventListenerIf;
31
- protected readonly copyService: CopyServiceIf;
34
+ readonly copyService: CopyServiceIf;
32
35
  licenseManager: LicenseManager;
33
36
  mouseHandler: MouseHandler;
34
37
  inputHandler: InputHandler;
@@ -43,6 +46,7 @@ export declare class TableScope extends RenderScope implements OnActionTriggered
43
46
  private mouseStartColumnIndex;
44
47
  private dragFrom;
45
48
  private dragTo;
49
+ constructor(hostElement: HTMLDivElement, tableModel: TableModelIf, domService: DomServiceIf, tableOptions: TableOptionsIf, eventListener: EventListenerIf, copyService?: CopyServiceIf);
46
50
  /**
47
51
  * Creates a TableScope instance.
48
52
  *
@@ -55,7 +59,6 @@ export declare class TableScope extends RenderScope implements OnActionTriggered
55
59
  * @return {TableScope} - The newly created TableScope instance.
56
60
  */
57
61
  static create(hostElement: HTMLDivElement, tableModel: TableModelIf, tableOptions?: TableOptionsIf, eventListener?: EventListenerIf, domService?: DomServiceIf, copyService?: CopyServiceIf): TableScope;
58
- constructor(hostElement: HTMLDivElement, tableModel: TableModelIf, domService: DomServiceIf, tableOptions: TableOptionsIf, eventListener: EventListenerIf, copyService?: CopyServiceIf);
59
62
  /**
60
63
  * Triggers an action based on the provided actionId.
61
64
  *
@@ -168,6 +171,44 @@ export declare class TableScope extends RenderScope implements OnActionTriggered
168
171
  * @return {void}
169
172
  */
170
173
  onHeaderDblClicked(event: MouseEvent, _rowIdx: number, colIdx: number): void;
174
+ /**
175
+ * Scrolls the viewport to the specified pixel coordinates.
176
+ *
177
+ * @param {number} px - The horizontal pixel coordinate to scroll to.
178
+ * @param {number} py - The vertical pixel coordinate to scroll to.
179
+ *
180
+ * @return {void}
181
+ */
182
+ scrollToPixel(px: number, py: number): void;
183
+ /**
184
+ * Scrolls to the specified index in the table.
185
+ *
186
+ * @param {number} _indexX - The horizontal index of the table where scrolling is needed.
187
+ * @param {number} indexY - The vertical index of the table where scrolling is needed.
188
+ * @return {void}
189
+ */
190
+ scrollToIndex(_indexX: number, indexY: number): void;
191
+ /**
192
+ * Sets the selection model for the table.
193
+ *
194
+ * @param {SelectionModel} sm - The selection model to be set.
195
+ * @param {boolean} rerender - Optional parameter indicating whether to rerender the table after setting the selection model. Default value is false.
196
+ *
197
+ * @return {void} - This method does not return any value.
198
+ */
199
+ setSelectionModel(sm: SelectionModel, rerender?: boolean): void;
200
+ toggleHeaderGroup(mouseTargetData: MouseTargetData): void;
201
+ /**
202
+ * Retrieves the selection model.
203
+ * @returns {SelectionModelIf | undefined} The selection model if available, otherwise undefined.
204
+ */
205
+ selectionModel(): SelectionModelIf | undefined;
206
+ /**
207
+ * Retrieves the focus model.
208
+ *
209
+ * @returns {FocusModelIf | undefined} The focus model if it exists, or undefined otherwise.
210
+ */
211
+ focusModel(): FocusModelIf | undefined;
171
212
  /**
172
213
  * Changes the focus cell using the specified deltas.
173
214
  *
@@ -218,30 +259,4 @@ export declare class TableScope extends RenderScope implements OnActionTriggered
218
259
  * @private
219
260
  */
220
261
  private autoRestoreCollapsedExpandedState;
221
- /**
222
- * Scrolls the viewport to the specified pixel coordinates.
223
- *
224
- * @param {number} px - The horizontal pixel coordinate to scroll to.
225
- * @param {number} py - The vertical pixel coordinate to scroll to.
226
- *
227
- * @return {void}
228
- */
229
- scrollToPixel(px: number, py: number): void;
230
- /**
231
- * Scrolls to the specified index in the table.
232
- *
233
- * @param {number} _indexX - The horizontal index of the table where scrolling is needed.
234
- * @param {number} indexY - The vertical index of the table where scrolling is needed.
235
- * @return {void}
236
- */
237
- scrollToIndex(_indexX: number, indexY: number): void;
238
- /**
239
- * Sets the selection model for the table.
240
- *
241
- * @param {SelectionModel} sm - The selection model to be set.
242
- * @param {boolean} rerender - Optional parameter indicating whether to rerender the table after setting the selection model. Default value is false.
243
- *
244
- * @return {void} - This method does not return any value.
245
- */
246
- setSelectionModel(sm: SelectionModel, rerender?: boolean): void;
247
262
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guiexpert/table",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },