@icos-desktop/react-components 0.1.6 → 0.1.8

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/build/index.d.ts CHANGED
@@ -1,14 +1,29 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { TreeDataNode } from 'antd';
3
3
 
4
+ interface EntityDetailProps {
5
+ senseGlobalCode: string;
6
+ }
7
+
8
+ declare const EntityDetail: React.FC<EntityDetailProps>;
9
+
4
10
  interface EntityInfoProps {
5
11
  senseGlobalCode: string;
6
12
  }
7
13
 
8
14
  declare const EntityInfo: React.FC<EntityInfoProps>;
9
15
 
16
+ interface EntitySearchProps {
17
+ viewCodes: string[];
18
+ }
19
+
20
+ declare const EntitySearch: React.FC<EntitySearchProps>;
21
+
10
22
  interface EntityTableProps {
11
23
  bookId: string;
24
+ onRowClick?: (record: any, event: React.MouseEvent<any, MouseEvent>) => void;
25
+ onRowDoubleClick?: (record: any, event: React.MouseEvent<any, MouseEvent>) => void;
26
+ onRowContextMenu?: (record: any, event: React.MouseEvent<any, MouseEvent>) => void;
12
27
  }
13
28
 
14
29
  declare const EntityTable: React.FC<EntityTableProps>;
@@ -34,14 +49,36 @@ interface EntityTreeProps {
34
49
  declare const EntityTree: React.FC<EntityTreeProps>;
35
50
 
36
51
  interface RegionTreeProps {
52
+ regionField?: string;
53
+ regionRootLevel?: number;
54
+ regionLeafLevel?: number;
55
+ treeType?: 'region-by-book' | 'region-by-sense';
56
+ viewCodes?: string[];
37
57
  onClick?: (node: TreeDataNode) => void;
38
58
  }
39
59
 
40
60
  declare const RegionTree: React.FC<RegionTreeProps>;
41
61
 
62
+ interface VideoControlProps {
63
+ children?: ReactNode;
64
+ }
65
+
66
+ declare const VideoControl: React.FC<VideoControlProps>;
67
+
68
+ interface VideoPlayerProps {
69
+ url?: string;
70
+ senseGlobalCode?: string;
71
+ ptzControl?: boolean;
72
+ channelId?: string;
73
+ videoPlayerType?: 'cityeyes' | 'h5player';
74
+ videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
75
+ }
76
+
77
+ declare const VideoPlayer: React.FC<VideoPlayerProps>;
78
+
42
79
  interface Config {
43
80
  getAccessToken?: () => string | Promise<string> | void;
44
81
  }
45
82
  declare const configFn: (config: Config) => void;
46
83
 
47
- export { EntityInfo, EntityTable, EntityTree, RegionTree, configFn as config };
84
+ export { EntityDetail, EntityInfo, EntitySearch, EntityTable, EntityTree, RegionTree, VideoControl, VideoPlayer, configFn as config };