@guiexpert/react-table 18.0.0 → 18.0.2
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 +241 -7
- package/index.js +1728 -735
- package/lib/guiexpert-table.d.ts +25 -2
- package/package.json +1 -1
package/lib/guiexpert-table.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { GeModelChangeEvent, GeMouseEvent, TableApi, TableModelIf, TableOptions } from '../../../table/src/index.ts';
|
|
1
|
+
import { FocusModelIf, GeModelChangeEvent, GeMouseEvent, SelectionModelIf, TableApi, TableModelIf, TableOptions } from '../../../table/src/index.ts';
|
|
2
2
|
export type GeMouseEventFn = (evt: GeMouseEvent) => {};
|
|
3
3
|
export type GeCheckboxEventFn = (evt: any[]) => {};
|
|
4
4
|
export type GeTableReadyEventFn = (evt: TableApi) => {};
|
|
5
5
|
export type GeModelChangeEventFn = (evt: GeModelChangeEvent) => {};
|
|
6
|
+
export type GeSelectionChangeEventFn = (evt: SelectionModelIf) => {};
|
|
7
|
+
export type GeFocusChangeEventFn = (evt: FocusModelIf) => {};
|
|
6
8
|
export interface GuiexpertTableProps {
|
|
7
9
|
tableModel: TableModelIf;
|
|
8
10
|
tableOptions?: TableOptions;
|
|
@@ -13,7 +15,28 @@ export interface GuiexpertTableProps {
|
|
|
13
15
|
mouseDraggingEnd?: GeMouseEventFn;
|
|
14
16
|
checkboxChanged?: GeCheckboxEventFn;
|
|
15
17
|
modelChanged?: GeModelChangeEventFn;
|
|
18
|
+
selectionChanged?: GeSelectionChangeEventFn;
|
|
19
|
+
focusChanged?: GeFocusChangeEventFn;
|
|
16
20
|
tableReady?: GeTableReadyEventFn;
|
|
21
|
+
licenseKey?: string;
|
|
17
22
|
}
|
|
18
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Initialize and render the GuiexpertTable component.
|
|
25
|
+
*
|
|
26
|
+
* @param {Object} props - The properties of the GuiexpertTable component.
|
|
27
|
+
* @param {TableModel} props.tableModel - The model for the table.
|
|
28
|
+
* @param {TableOptions} [props.tableOptions=new TableOptions()] - The options for the table.
|
|
29
|
+
* @param {Function} [props.mouseMoved] - The callback for mouse movement events.
|
|
30
|
+
* @param {Function} [props.checkboxChanged] - The callback for checkbox change events.
|
|
31
|
+
* @param {Function} [props.contextmenu] - The callback for context menu events.
|
|
32
|
+
* @param {Function} [props.modelChanged] - The callback for model change events.
|
|
33
|
+
* @param {Function} [props.mouseClicked] - The callback for mouse click events.
|
|
34
|
+
* @param {Function} [props.mouseDragging] - The callback for mouse dragging events.
|
|
35
|
+
* @param {Function} [props.mouseDraggingEnd] - The callback for mouse dragging end events.
|
|
36
|
+
* @param {Function} [props.tableReady] - The callback for when the table is ready.
|
|
37
|
+
* @param {string} [props.licenseKey] - The license key for the GuiexpertTable component.
|
|
38
|
+
*
|
|
39
|
+
* @returns {JSX.Element} - The rendered GuiexpertTable component.
|
|
40
|
+
*/
|
|
41
|
+
export declare function GuiexpertTable({ tableModel, tableOptions, mouseMoved, checkboxChanged, contextmenu, modelChanged, mouseClicked, mouseDragging, mouseDraggingEnd, selectionChanged, focusChanged, tableReady, licenseKey }: GuiexpertTableProps): import("react/jsx-runtime").JSX.Element;
|
|
19
42
|
export default GuiexpertTable;
|