@iobroker/adapter-react-v5 4.13.5 → 4.13.6
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/Components/TreeTable.d.ts +41 -2
- package/Components/TreeTable.js +460 -751
- package/LegacyConnection.js +6 -6
- package/README.md +5 -1
- package/package.json +5 -5
- package/Components/TreeTable.js.map +0 -1
|
@@ -1,3 +1,42 @@
|
|
|
1
|
-
declare const _default: React.JSXElementConstructor<any>;
|
|
2
|
-
export default _default;
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import type Connection from '../Connection';
|
|
3
|
+
interface Column {
|
|
4
|
+
cellStyle?: Record<string, any>;
|
|
5
|
+
editComponent?: React.ComponentType<{
|
|
6
|
+
value: any;
|
|
7
|
+
rowData: Record<string, any>;
|
|
8
|
+
onChange: (newValue: any) => void;
|
|
9
|
+
}>;
|
|
10
|
+
field: string;
|
|
11
|
+
headerStyle?: Record<string, any>;
|
|
12
|
+
hidden?: boolean;
|
|
13
|
+
lookup?: Record<string, string>;
|
|
14
|
+
editable?: boolean | 'never';
|
|
15
|
+
title?: string;
|
|
16
|
+
type?: 'string' | 'boolean' | 'numeric' | 'icon' | 'oid' | 'color';
|
|
17
|
+
subField?: string;
|
|
18
|
+
subLookup?: Record<string, string>;
|
|
19
|
+
subStyle?: Record<string, any>;
|
|
20
|
+
}
|
|
21
|
+
interface TreeTableProps {
|
|
22
|
+
data: Record<string, any>[];
|
|
23
|
+
className?: string;
|
|
24
|
+
/** name of table to save settings in localStorage */
|
|
25
|
+
name?: string;
|
|
26
|
+
columns: Column[];
|
|
27
|
+
noSort?: boolean;
|
|
28
|
+
onUpdate?: ((newData: Record<string, any>, oldData: Record<string, any>) => void) | ((addNew: true) => void);
|
|
29
|
+
onDelete?: (oldData: Record<string, any>) => void;
|
|
30
|
+
/** hide add button */
|
|
31
|
+
noAdd?: boolean;
|
|
32
|
+
themeType?: string;
|
|
33
|
+
glowOnChange?: boolean;
|
|
34
|
+
/** only if an oid type is used */
|
|
35
|
+
socket?: Connection;
|
|
36
|
+
/** Shift in pixels for every level */
|
|
37
|
+
levelShift?: number;
|
|
38
|
+
adapterName: string;
|
|
39
|
+
classes: Record<string, string>;
|
|
40
|
+
}
|
|
41
|
+
declare const _default: React.JSXElementConstructor<Omit<TreeTableProps, "classes"> & import("@mui/styles").StyledComponentProps<string> & object>;
|
|
42
|
+
export default _default;
|