ia-table 0.10.1 → 0.10.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/dist/components/IATable/types/{api.type.ts → api.d.ts} +4 -4
- package/dist/components/IATable/types/{cache.type.ts → cache.d.ts} +1 -1
- package/dist/components/IATable/types/{columns.type.ts → columns.d.ts} +20 -2
- package/dist/components/IATable/types/{common.type.ts → common.d.ts} +1 -1
- package/dist/components/IATable/types/index.d.ts +7 -0
- package/dist/components/IATable/types/{table.type.ts → table.d.ts} +4 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7965 -7711
- package/package.json +1 -2
- package/dist/components/IATable/types/index.type.ts +0 -7
- /package/dist/components/IATable/types/{reducer.type.ts → reducer.d.ts} +0 -0
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
SmartGridInfiniteCache,
|
|
5
5
|
SmartGridInfiniteRowModel,
|
|
6
|
-
} from "./cache
|
|
7
|
-
import { SmartGridColumnDefinition } from "./columns
|
|
6
|
+
} from "./cache";
|
|
7
|
+
import { SmartGridColumnDefinition } from "./columns";
|
|
8
8
|
import {
|
|
9
9
|
SmartGridFilterModel,
|
|
10
10
|
SmartGridRowNode,
|
|
11
11
|
SmartGridSortDirection,
|
|
12
12
|
SmartGridSortModel,
|
|
13
13
|
SmartGridUpdateData,
|
|
14
|
-
} from "./common
|
|
15
|
-
import { SmartGridStateContext } from "./reducer
|
|
14
|
+
} from "./common";
|
|
15
|
+
import { SmartGridStateContext } from "./reducer";
|
|
16
16
|
|
|
17
17
|
export type SmartGridModelType = "normal" | "serverSide" | "infinite";
|
|
18
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
|
-
import { SmartGridAPI, SmartGridRowData } from "./api
|
|
2
|
+
import { SmartGridAPI, SmartGridRowData } from "./api";
|
|
3
3
|
import {
|
|
4
4
|
SmartGridNewSortModel,
|
|
5
5
|
SmartGridSortModel,
|
|
6
6
|
SmartGridUpdateData,
|
|
7
|
-
} from "./common
|
|
7
|
+
} from "./common";
|
|
8
8
|
|
|
9
9
|
export interface SmartGridValueFormatterParams {
|
|
10
10
|
value: unknown;
|
|
@@ -76,6 +76,23 @@ export type SmartGridHeaderStyleParams = {
|
|
|
76
76
|
menuToggle: (e: React.MouseEvent<HTMLElement>) => void;
|
|
77
77
|
toggleAdvancedSeach: (value: boolean) => void;
|
|
78
78
|
};
|
|
79
|
+
|
|
80
|
+
export type SmartGridTooltipGetterParams = {
|
|
81
|
+
api: SmartGridAPI;
|
|
82
|
+
colDef: SmartGridColumnDefinition;
|
|
83
|
+
column: SmartGridColumnDefinition;
|
|
84
|
+
data: SmartGridRowData;
|
|
85
|
+
location: string;
|
|
86
|
+
node: {
|
|
87
|
+
data: SmartGridRowData;
|
|
88
|
+
id: string;
|
|
89
|
+
level: number;
|
|
90
|
+
parent: SmartGridUpdateData;
|
|
91
|
+
rowIndex: number;
|
|
92
|
+
};
|
|
93
|
+
rowIndex: number;
|
|
94
|
+
value: unknown;
|
|
95
|
+
};
|
|
79
96
|
export interface SmartGridColumnDefinition {
|
|
80
97
|
field: string;
|
|
81
98
|
headerName?: string;
|
|
@@ -181,5 +198,6 @@ export interface SmartGridColumnDefinition {
|
|
|
181
198
|
};
|
|
182
199
|
headerComponent: React.FC<SmartGridHeaderStyleParams>;
|
|
183
200
|
headerStyle?: (params: SmartGridHeaderStyleParams) => CSSProperties;
|
|
201
|
+
tooltipValueGetter?: (params: SmartGridTooltipGetterParams) => string;
|
|
184
202
|
[key: string]: unknown;
|
|
185
203
|
}
|
|
@@ -2,14 +2,14 @@ import { CSSProperties, ReactNode, Ref } from "react";
|
|
|
2
2
|
import {
|
|
3
3
|
SmartGridColumnDefinition,
|
|
4
4
|
SmartGridHeaderStyleParams,
|
|
5
|
-
} from "./columns
|
|
5
|
+
} from "./columns";
|
|
6
6
|
import {
|
|
7
7
|
SmartGridAPI,
|
|
8
8
|
SmartGridCellValueChangedParams,
|
|
9
9
|
SmartGridGetRowDataParams,
|
|
10
10
|
SmartGridRowData,
|
|
11
|
-
} from "./api
|
|
12
|
-
import { SmartGridSortModel } from "./common
|
|
11
|
+
} from "./api";
|
|
12
|
+
import { SmartGridSortModel } from "./common";
|
|
13
13
|
|
|
14
14
|
export interface SmartGridTableRef {
|
|
15
15
|
api: SmartGridAPI;
|
|
@@ -196,5 +196,6 @@ export type SmartGridTableProps = {
|
|
|
196
196
|
onCellClick?: () => void;
|
|
197
197
|
onRowClicked?: () => void;
|
|
198
198
|
onRowClick?: () => void;
|
|
199
|
+
disableSelectAllRecords?: boolean;
|
|
199
200
|
[key: string]: any;
|
|
200
201
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentType } from "react";
|
|
2
|
-
import { SmartGridTableProps } from "./components/IATable/types/table
|
|
2
|
+
import type { SmartGridTableProps } from "./components/IATable/types/table";
|
|
3
3
|
|
|
4
4
|
// Export all types from the types folder
|
|
5
|
-
export * from "./components/IATable/types/index
|
|
5
|
+
export * from "./components/IATable/types/index";
|
|
6
6
|
|
|
7
7
|
// SVG module declarations for library consumers
|
|
8
8
|
declare module "*.svg" {
|