@icos-desktop/react-components 1.2.0-beta.2-demo → 1.2.0-beta.3-demo

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.
Files changed (166) hide show
  1. package/dist/icos-desktop.d.ts +716 -0
  2. package/{build/index.esm.js → dist/icos-desktop.js} +5878 -3555
  3. package/dist/icos-desktop.umd.cjs +6 -0
  4. package/package.json +12 -6
  5. package/build/index.js +0 -251370
  6. package/build/index.umd.js +0 -251373
  7. package/build/types/components/BookGroupTable/BookGroupTable.d.ts +0 -4
  8. package/build/types/components/BookGroupTable/BookGroupTable.stories.d.ts +0 -7
  9. package/build/types/components/BookGroupTable/components/ContextMenu/index.d.ts +0 -5
  10. package/build/types/components/BookGroupTable/index.d.ts +0 -1
  11. package/build/types/components/BookGroupTable/utils/index.d.ts +0 -1
  12. package/build/types/components/BookTable/BookTable.d.ts +0 -4
  13. package/build/types/components/BookTable/BookTable.stories.d.ts +0 -7
  14. package/build/types/components/BookTable/components/ContextMenu/index.d.ts +0 -8
  15. package/build/types/components/BookTable/index.d.ts +0 -1
  16. package/build/types/components/OrgTreeSelect/OrgTreeSelect.d.ts +0 -4
  17. package/build/types/components/OrgTreeSelect/OrgTreeSelect.stories.d.ts +0 -7
  18. package/build/types/components/OrgTreeSelect/index.d.ts +0 -1
  19. package/build/types/components/ProTable/ProTable.d.ts +0 -4
  20. package/build/types/components/ProTable/ProTable.stories.d.ts +0 -7
  21. package/build/types/components/ProTable/components/ColumnsConfig/index.d.ts +0 -10
  22. package/build/types/components/ProTable/index.d.ts +0 -1
  23. package/build/types/components/RegionTreeSelect/RegionTreeSelect.d.ts +0 -4
  24. package/build/types/components/RegionTreeSelect/RegionTreeSelect.stories.d.ts +0 -7
  25. package/build/types/components/RegionTreeSelect/index.d.ts +0 -1
  26. package/build/types/components/RelationGraph/RelationGraph.d.ts +0 -4
  27. package/build/types/components/RelationGraph/RelationGraph.stories.d.ts +0 -7
  28. package/build/types/components/RelationGraph/components/Graph/index.d.ts +0 -5
  29. package/build/types/components/RelationGraph/index.d.ts +0 -1
  30. package/build/types/components/SenseCreate/SenseCreate.d.ts +0 -4
  31. package/build/types/components/SenseCreate/SenseCreate.stories.d.ts +0 -7
  32. package/build/types/components/SenseCreate/ccos.d.ts +0 -11
  33. package/build/types/components/SenseCreate/index.d.ts +0 -1
  34. package/build/types/components/SenseCreate/settings.d.ts +0 -2
  35. package/build/types/components/SenseDetail/SenseDetail.d.ts +0 -4
  36. package/build/types/components/SenseDetail/SenseDetail.stories.d.ts +0 -7
  37. package/build/types/components/SenseDetail/ccos.d.ts +0 -12
  38. package/build/types/components/SenseDetail/components/Base/index.d.ts +0 -7
  39. package/build/types/components/SenseDetail/components/BookList/index.d.ts +0 -7
  40. package/build/types/components/SenseDetail/components/Content/components/Card/index.d.ts +0 -6
  41. package/build/types/components/SenseDetail/components/Content/components/List/Item/index.d.ts +0 -6
  42. package/build/types/components/SenseDetail/components/Content/components/List/index.d.ts +0 -6
  43. package/build/types/components/SenseDetail/components/Content/index.d.ts +0 -7
  44. package/build/types/components/SenseDetail/components/Relation/index.d.ts +0 -6
  45. package/build/types/components/SenseDetail/index.d.ts +0 -1
  46. package/build/types/components/SenseDetail/settings.d.ts +0 -2
  47. package/build/types/components/SenseEdit/SenseEdit.d.ts +0 -4
  48. package/build/types/components/SenseEdit/SenseEdit.stories.d.ts +0 -7
  49. package/build/types/components/SenseEdit/ccos.d.ts +0 -11
  50. package/build/types/components/SenseEdit/index.d.ts +0 -1
  51. package/build/types/components/SenseEdit/settings.d.ts +0 -2
  52. package/build/types/components/SenseForm/SenseForm.d.ts +0 -4
  53. package/build/types/components/SenseForm/SenseForm.stories.d.ts +0 -7
  54. package/build/types/components/SenseForm/index.d.ts +0 -1
  55. package/build/types/components/SenseInfo/SenseInfo.d.ts +0 -4
  56. package/build/types/components/SenseInfo/SenseInfo.stories.d.ts +0 -7
  57. package/build/types/components/SenseInfo/components/FileView/index.d.ts +0 -10
  58. package/build/types/components/SenseInfo/components/ImageView/index.d.ts +0 -10
  59. package/build/types/components/SenseInfo/components/Render/index.d.ts +0 -7
  60. package/build/types/components/SenseInfo/components/TagsView/index.d.ts +0 -6
  61. package/build/types/components/SenseInfo/index.d.ts +0 -1
  62. package/build/types/components/SenseInfo/utils/schema.d.ts +0 -2
  63. package/build/types/components/SenseManager/SenseManager.d.ts +0 -4
  64. package/build/types/components/SenseManager/SenseManager.stories.d.ts +0 -6
  65. package/build/types/components/SenseManager/ccos.d.ts +0 -17
  66. package/build/types/components/SenseManager/components/Filter/index.d.ts +0 -11
  67. package/build/types/components/SenseManager/components/FormItem/index.d.ts +0 -11
  68. package/build/types/components/SenseManager/components/SideBar/index.d.ts +0 -9
  69. package/build/types/components/SenseManager/index.d.ts +0 -1
  70. package/build/types/components/SenseManager/settings.d.ts +0 -2
  71. package/build/types/components/SenseManager/utils/index.d.ts +0 -5
  72. package/build/types/components/SenseSearch/SenseSearch.d.ts +0 -4
  73. package/build/types/components/SenseSearch/SenseSearch.stories.d.ts +0 -6
  74. package/build/types/components/SenseSearch/ccos.d.ts +0 -12
  75. package/build/types/components/SenseSearch/components/AdvancedSearch/KnnItems/index.d.ts +0 -18
  76. package/build/types/components/SenseSearch/components/AdvancedSearch/index.d.ts +0 -5
  77. package/build/types/components/SenseSearch/components/Tabs/index.d.ts +0 -18
  78. package/build/types/components/SenseSearch/constants/index.d.ts +0 -41
  79. package/build/types/components/SenseSearch/index.d.ts +0 -1
  80. package/build/types/components/SenseSearch/settings.d.ts +0 -2
  81. package/build/types/components/SenseTable/SenseTable.d.ts +0 -4
  82. package/build/types/components/SenseTable/SenseTable.stories.d.ts +0 -7
  83. package/build/types/components/SenseTable/components/ContextMenu/index.d.ts +0 -9
  84. package/build/types/components/SenseTable/components/TagsModal/index.d.ts +0 -12
  85. package/build/types/components/SenseTable/components/widgets/FileView/index.d.ts +0 -5
  86. package/build/types/components/SenseTable/components/widgets/ImageView/index.d.ts +0 -5
  87. package/build/types/components/SenseTable/index.d.ts +0 -1
  88. package/build/types/components/SenseTree/SenseTree.d.ts +0 -4
  89. package/build/types/components/SenseTree/SenseTree.stories.d.ts +0 -8
  90. package/build/types/components/SenseTree/ccos.d.ts +0 -15
  91. package/build/types/components/SenseTree/components/ContextMenu/index.d.ts +0 -8
  92. package/build/types/components/SenseTree/components/ExportModal/index.d.ts +0 -9
  93. package/build/types/components/SenseTree/index.d.ts +0 -1
  94. package/build/types/components/SenseTree/settings.d.ts +0 -2
  95. package/build/types/components/SenseTree/utils/index.d.ts +0 -27
  96. package/build/types/components/SenseUpload/SenseUpload.d.ts +0 -4
  97. package/build/types/components/SenseUpload/SenseUpload.stories.d.ts +0 -7
  98. package/build/types/components/SenseUpload/index.d.ts +0 -1
  99. package/build/types/components/SenseView/SenseView.d.ts +0 -4
  100. package/build/types/components/SenseView/SenseView.stories.d.ts +0 -6
  101. package/build/types/components/SenseView/ccos.d.ts +0 -14
  102. package/build/types/components/SenseView/index.d.ts +0 -1
  103. package/build/types/components/SenseView/settings.d.ts +0 -2
  104. package/build/types/components/TagTreeSelect/TagTreeSelect.d.ts +0 -12
  105. package/build/types/components/TagTreeSelect/TagTreeSelect.stories.d.ts +0 -7
  106. package/build/types/components/TagTreeSelect/index.d.ts +0 -1
  107. package/build/types/components/VideoControl/VideoControl.d.ts +0 -4
  108. package/build/types/components/VideoControl/VideoControl.stories.d.ts +0 -7
  109. package/build/types/components/VideoControl/index.d.ts +0 -1
  110. package/build/types/components/VideoPlayer/VideoPlayer.d.ts +0 -4
  111. package/build/types/components/VideoPlayer/VideoPlayer.stories.d.ts +0 -8
  112. package/build/types/components/VideoPlayer/ccos.d.ts +0 -11
  113. package/build/types/components/VideoPlayer/components/Cityeyes/index.d.ts +0 -7
  114. package/build/types/components/VideoPlayer/components/Control/index.d.ts +0 -8
  115. package/build/types/components/VideoPlayer/components/H5player/index.d.ts +0 -7
  116. package/build/types/components/VideoPlayer/components/Player/index.d.ts +0 -5
  117. package/build/types/components/VideoPlayer/index.d.ts +0 -1
  118. package/build/types/components/VideoPlayer/settings.d.ts +0 -2
  119. package/build/types/constants/pagination.d.ts +0 -10
  120. package/build/types/hooks/useEntityClass/index.d.ts +0 -5
  121. package/build/types/hooks/useKsCode/index.d.ts +0 -5
  122. package/build/types/hooks/useMeeting/index.d.ts +0 -4
  123. package/build/types/hooks/useRelationList/RelationList/index.d.ts +0 -15
  124. package/build/types/hooks/useRelationList/index.d.ts +0 -6
  125. package/build/types/index.d.ts +0 -29
  126. package/build/types/services/dataManager.d.ts +0 -1
  127. package/build/types/services/entity.d.ts +0 -1
  128. package/build/types/services/entityManager.d.ts +0 -2
  129. package/build/types/services/gis.d.ts +0 -2
  130. package/build/types/services/mapWindow.d.ts +0 -2
  131. package/build/types/services/org.d.ts +0 -2
  132. package/build/types/services/senseForm.d.ts +0 -13
  133. package/build/types/services/senseManager.d.ts +0 -5
  134. package/build/types/services/senseSearch.d.ts +0 -8
  135. package/build/types/services/user.d.ts +0 -2
  136. package/build/types/services/view.d.ts +0 -1
  137. package/build/types/settings.d.ts +0 -11
  138. package/build/types/themes/Provider.d.ts +0 -8
  139. package/build/types/utils/config.d.ts +0 -5
  140. package/build/types/utils/contexify/index.d.ts +0 -12
  141. package/build/types/utils/download.d.ts +0 -1
  142. package/build/types/utils/map.d.ts +0 -12
  143. package/build/types/utils/props.d.ts +0 -6
  144. package/build/types/utils/request.d.ts +0 -3
  145. package/build/types/utils/sense.d.ts +0 -11
  146. package/build/types/utils/settings.d.ts +0 -1
  147. package/build/types/utils/tree.d.ts +0 -5
  148. /package/{build → dist}/libs/h5player/h5player.min.js +0 -0
  149. /package/{build → dist}/libs/h5player/playctrl1/DecodeWorker.js +0 -0
  150. /package/{build → dist}/libs/h5player/playctrl1/Decoder.js +0 -0
  151. /package/{build → dist}/libs/h5player/playctrl1simd/DecodeWorker.js +0 -0
  152. /package/{build → dist}/libs/h5player/playctrl1simd/Decoder.js +0 -0
  153. /package/{build → dist}/libs/h5player/playctrl2/Decoder.js +0 -0
  154. /package/{build → dist}/libs/h5player/playctrl2/Decoder.wasm +0 -0
  155. /package/{build → dist}/libs/h5player/playctrl2/Decoder.worker.js +0 -0
  156. /package/{build → dist}/libs/h5player/playctrl3/Decoder.js +0 -0
  157. /package/{build → dist}/libs/h5player/playctrl3/Decoder.wasm +0 -0
  158. /package/{build → dist}/libs/h5player/playctrl3/Decoder.worker.js +0 -0
  159. /package/{build → dist}/libs/h5player/talk/AudioInterCom.js +0 -0
  160. /package/{build → dist}/libs/h5player/talk/AudioInterCom.wasm +0 -0
  161. /package/{build → dist}/libs/h5player/talkW/AudioInterCom.js +0 -0
  162. /package/{build → dist}/libs/h5player/talkW/AudioInterCom.wasm +0 -0
  163. /package/{build → dist}/libs/h5player/talkW/AudioInterCom.worker.js +0 -0
  164. /package/{build → dist}/libs/h5player/transform/libSystemTransform.js +0 -0
  165. /package/{build → dist}/libs/h5player/transform/libSystemTransform.wasm +0 -0
  166. /package/{build → dist}/libs/h5player/transform/systemTransform-worker.js +0 -0
@@ -0,0 +1,716 @@
1
+ import React from 'react';
2
+ import { TreeSelectProps, TableProps } from '@xirang/design-antd';
3
+ import { IcosDesktopType } from '@/global';
4
+
5
+ interface BookGroupTableProps {
6
+ /**
7
+ * 查看方式 (1 - 实体类别, 2 - 所属组织), 若为空则返回台账组不分组
8
+ */
9
+ displayWay?: 1 | 2;
10
+ /**
11
+ * 节点编码, 若为空则返回台账组不分组
12
+ */
13
+ nodeCode?: string;
14
+ /**
15
+ * 视图编码
16
+ */
17
+ viewCodes?: string[];
18
+ /**
19
+ * 搜索关键词
20
+ */
21
+ keyword?: string;
22
+ /**
23
+ * 过滤条件
24
+ */
25
+ filter?: any;
26
+ /**
27
+ * 双击台账组
28
+ * @param record
29
+ */
30
+ onDoubleClick?: (record: EntityManagerAPI.BookGroupItem) => void;
31
+ }
32
+
33
+ declare const BookGroupTable: React.FC<BookGroupTableProps>;
34
+
35
+ interface BookTableProps {
36
+ /**
37
+ * 台账模板 id
38
+ */
39
+ templateId: string;
40
+ /**
41
+ * 视图编码
42
+ */
43
+ viewCodes?: string[];
44
+ /**
45
+ * 搜索关键词
46
+ */
47
+ keyword?: string;
48
+ /**
49
+ * 过滤条件
50
+ */
51
+ filter?: any;
52
+ /**
53
+ * 台账功能
54
+ */
55
+ contextMenuConfig?: ('create' | 'show')[];
56
+ /**
57
+ * 双击台账
58
+ * @param record
59
+ */
60
+ onDoubleClick?: (record: any) => void;
61
+ /**
62
+ * 新建对象
63
+ * @param record
64
+ */
65
+ onCreateSense?: (record: any) => void;
66
+ /**
67
+ * 触发刷新的回调
68
+ */
69
+ onRefresh?: () => void;
70
+ }
71
+ interface BookTableRef {
72
+ /**
73
+ * 刷新
74
+ */
75
+ refresh: () => void;
76
+ }
77
+
78
+ declare const BookTable: React.ForwardRefExoticComponent<BookTableProps & React.RefAttributes<BookTableRef>>;
79
+
80
+ interface OrgTreeSelectProps extends TreeSelectProps {
81
+ all?: boolean;
82
+ }
83
+
84
+ declare const OrgTreeSelect: React.FC<OrgTreeSelectProps>;
85
+
86
+ interface ProTableProps extends TableProps {
87
+ header: {
88
+ code: string;
89
+ name: string;
90
+ hidden?: boolean;
91
+ defaultShow?: boolean;
92
+ }[];
93
+ }
94
+
95
+ declare const ProTable: React.FC<ProTableProps>;
96
+
97
+ interface RegionTreeSelectProps extends TreeSelectProps {
98
+ regionId?: string;
99
+ }
100
+
101
+ declare const RegionTreeSelect: React.FC<RegionTreeSelectProps>;
102
+
103
+ interface RelationGraphProps {
104
+ /**
105
+ * 实体记录唯一标识
106
+ */
107
+ senseGlobalCode: string;
108
+ }
109
+
110
+ declare const RelationGraph: React.FC<RelationGraphProps>;
111
+
112
+ interface SenseCreateProps {
113
+ bookId: string;
114
+ /**
115
+ * 点击取消按钮
116
+ */
117
+ onCancel?: () => void;
118
+ /**
119
+ * 点击确定按钮
120
+ */
121
+ onOk?: (values: any) => boolean | Promise<boolean>;
122
+ /**
123
+ * 保存成功
124
+ */
125
+ onSuccess?: (res?: SenseFormAPI.SaveSenseRes) => void;
126
+ }
127
+
128
+ declare const SenseCreate: React.FC<SenseCreateProps>;
129
+
130
+ interface CcosSenseCreateProps extends SenseCreateProps {
131
+ 'data-dnd': string;
132
+ tid: string;
133
+ }
134
+ declare const CcosSenseCreate: {
135
+ (props: CcosSenseCreateProps): React.JSX.Element;
136
+ settings: Settings;
137
+ };
138
+
139
+ interface SenseDetailProps {
140
+ /**
141
+ * 实体记录唯一标识
142
+ */
143
+ senseGlobalCode: string;
144
+ /**
145
+ * 顶部菜单栏控制
146
+ */
147
+ topMenuConfig: ('base' | 'relation')[];
148
+ /**
149
+ * 启用标签
150
+ */
151
+ enableTag?: boolean;
152
+ /**
153
+ * 额外的顶部菜单
154
+ */
155
+ extraTopMenu?: {
156
+ key: string;
157
+ label: string;
158
+ children: React.ReactElement<{
159
+ senseGlobalCode: string;
160
+ }>;
161
+ }[];
162
+ }
163
+
164
+ declare const SenseDetail: React.FC<SenseDetailProps>;
165
+
166
+ interface CcosSenseDetailProps extends SenseDetailProps {
167
+ 'data-dnd': string;
168
+ tid: string;
169
+ showTopMenu?: boolean;
170
+ }
171
+ declare const CcosSenseDetail: {
172
+ (props: CcosSenseDetailProps): React.JSX.Element;
173
+ settings: Settings;
174
+ };
175
+
176
+ interface SenseEditProps {
177
+ /**
178
+ * 实体记录唯一标识
179
+ */
180
+ senseGlobalCode?: string;
181
+ /**
182
+ * 台账id
183
+ */
184
+ bookId?: string;
185
+ /**
186
+ * 点击取消按钮
187
+ */
188
+ onCancel?: () => void;
189
+ /**
190
+ * 点击确定按钮
191
+ */
192
+ onOk?: (values: any) => boolean | Promise<boolean>;
193
+ /**
194
+ * 保存成功
195
+ */
196
+ onSuccess?: (res: SenseFormAPI.SaveSenseRes) => void;
197
+ }
198
+
199
+ declare const SenseEdit: React.FC<SenseEditProps>;
200
+
201
+ interface CcosSenseEditProps extends SenseEditProps {
202
+ 'data-dnd': string;
203
+ tid: string;
204
+ }
205
+ declare const CcosSenseEdit: {
206
+ (props: CcosSenseEditProps): React.JSX.Element;
207
+ settings: Settings;
208
+ };
209
+
210
+ interface SenseFormProps {
211
+ /**
212
+ * 实体信息
213
+ */
214
+ data: string;
215
+ schemaJSON: string;
216
+ readonlyList: string[];
217
+ }
218
+ interface SenseFormRef {
219
+ getValues: () => Promise<any>;
220
+ validateFields: () => Promise<any>;
221
+ }
222
+
223
+ declare const SenseForm: React.ForwardRefExoticComponent<SenseFormProps & React.RefAttributes<SenseFormRef>>;
224
+
225
+ interface SenseInfoProps {
226
+ /**
227
+ * 实体编码
228
+ */
229
+ senseGlobalCode: string;
230
+ /**
231
+ * 启用标签
232
+ */
233
+ enableTag?: boolean;
234
+ }
235
+
236
+ declare const SenseInfo: React.FC<SenseInfoProps>;
237
+
238
+ interface SenseManagerProps {
239
+ /**
240
+ * 显示视图类型:system 系统视图,func 功能视图
241
+ */
242
+ viewType: 'system' | 'func';
243
+ /**
244
+ * 左侧边栏显示视图列表
245
+ */
246
+ views: {
247
+ label: string;
248
+ value: string;
249
+ }[];
250
+ /**
251
+ * 显示左侧边栏
252
+ */
253
+ showView?: boolean;
254
+ /**
255
+ * 显示台账组列表
256
+ */
257
+ showBookGroupTable?: boolean;
258
+ /**
259
+ * 显示台账列表
260
+ */
261
+ showBookTable?: boolean;
262
+ /**
263
+ * 显示实体记录列表
264
+ */
265
+ showSenseTable?: boolean;
266
+ /**
267
+ * 台账功能
268
+ */
269
+ bookContextMenuConfig?: ('create' | 'show')[];
270
+ /**
271
+ * 实体记录功能
272
+ */
273
+ senseContextMenuConfig?: ('show' | 'edit' | 'delete')[];
274
+ /**
275
+ * 启用标签
276
+ */
277
+ enableTag?: boolean;
278
+ /**
279
+ * 地理层级叶子节点id,实体记录所属地理层级叶子节点为此值时返回
280
+ */
281
+ leafRegionId?: string;
282
+ /**
283
+ * 地理层级路径节点id,实体记录所属地理层级路径只要包含此值即返回,leftRegionId无值时有效
284
+ */
285
+ pathRegionId?: string;
286
+ /**
287
+ * 新建对象
288
+ * @param record
289
+ */
290
+ onCreateSense?: (record: any) => void;
291
+ /**
292
+ * 查看实体
293
+ * @param record
294
+ */
295
+ onShowSense?: (record: any) => void;
296
+ /**
297
+ * 编辑实体
298
+ * @param record
299
+ */
300
+ onEditSense?: (record: any) => void;
301
+ /**
302
+ * 单击实体
303
+ * @param record
304
+ */
305
+ onClickSense?: (record: any) => void;
306
+ /**
307
+ * 双击实体
308
+ * @param record
309
+ */
310
+ onDoubleClickSense?: (record: any) => void;
311
+ /**
312
+ * 点击导入数据按钮
313
+ */
314
+ onClickImportData?: () => void;
315
+ }
316
+ interface SenseManagerRef {
317
+ /**
318
+ * 刷新台账列表
319
+ */
320
+ refreshBookTable: () => void;
321
+ /**
322
+ * 刷新实体记录列表
323
+ */
324
+ refreshSenseTable: () => void;
325
+ }
326
+
327
+ declare const SenseManager: React.ForwardRefExoticComponent<SenseManagerProps & React.RefAttributes<SenseManagerRef>>;
328
+
329
+ interface CcosSenseManagerProps extends Omit<SenseManagerProps, 'views'> {
330
+ 'data-dnd': string;
331
+ tid: string;
332
+ views: {
333
+ key: string;
334
+ value: string;
335
+ }[] | {
336
+ label: string;
337
+ value: string;
338
+ }[];
339
+ showBookContextMenuConfig?: boolean;
340
+ showSenseContextMenuConfig?: boolean;
341
+ }
342
+ declare const CcosSenseManager: React.ForwardRefExoticComponent<CcosSenseManagerProps & React.RefAttributes<SenseManagerRef>>;
343
+
344
+ interface SenseSearchProps {
345
+ /**
346
+ * 功能视图编码
347
+ */
348
+ viewCode?: string;
349
+ /**
350
+ * 显示顶部菜单栏
351
+ */
352
+ showView?: boolean;
353
+ /**
354
+ * 系统视图列表
355
+ */
356
+ views?: {
357
+ label: string;
358
+ value: string;
359
+ }[];
360
+ /**
361
+ * 时空搜索类型
362
+ * 时间、空间、最近邻、时空
363
+ */
364
+ searchMode?: ('time' | 'space' | 'knn' | 'time-space')[];
365
+ /**
366
+ * 触发搜索
367
+ */
368
+ onSearch?: (value: any) => void;
369
+ /**
370
+ * 地图开始绘制
371
+ */
372
+ onStartDraw?: (mode: string, callback: any) => void;
373
+ /**
374
+ * 地图绘制(绘制回显)
375
+ */
376
+ onMapDraw?: (value: any) => void;
377
+ }
378
+
379
+ declare const SenseSearch: React.FC<SenseSearchProps>;
380
+
381
+ interface CcosSenseSearchProps extends SenseSearchProps {
382
+ 'data-dnd': string;
383
+ tid: string;
384
+ showSpaceSearch?: boolean;
385
+ }
386
+ declare const CcosSenseSearch: {
387
+ (props: CcosSenseSearchProps): React.JSX.Element;
388
+ settings: Settings;
389
+ };
390
+
391
+ interface SenseTableProps {
392
+ /**
393
+ * 台账 id
394
+ */
395
+ bookId?: string;
396
+ /**
397
+ * 台账模板 id
398
+ */
399
+ templateId?: string;
400
+ /**
401
+ * 地理层级叶子节点id,实体记录所属地理层级叶子节点为此值时返回
402
+ */
403
+ leafRegionId?: string;
404
+ /**
405
+ * 地理层级路径节点id,实体记录所属地理层级路径只要包含此值即返回,leftRegionId无值时有效
406
+ */
407
+ pathRegionId?: string;
408
+ /**
409
+ * 视图编码
410
+ */
411
+ viewCodes?: string[];
412
+ /**
413
+ * 搜索关键词
414
+ */
415
+ keyword?: string;
416
+ /**
417
+ * 过滤条件
418
+ */
419
+ filter?: any;
420
+ /**
421
+ * 过滤配置
422
+ */
423
+ filterConfig?: any;
424
+ /**
425
+ * 实体记录功能
426
+ */
427
+ contextMenuConfig?: ('show' | 'edit' | 'delete')[];
428
+ /**
429
+ * 启用标签
430
+ */
431
+ enableTag?: boolean;
432
+ /**
433
+ * 单击实体
434
+ * @param record
435
+ */
436
+ onClick?: (record: any) => void;
437
+ /**
438
+ * 双击实体
439
+ * @param record
440
+ */
441
+ onDoubleClick?: (record: any) => void;
442
+ /**
443
+ * 查看实体
444
+ * @param record
445
+ */
446
+ onShowSense?: (record: any) => void;
447
+ /**
448
+ * 编辑实体
449
+ * @param record
450
+ */
451
+ onEditSense?: (record: any) => void;
452
+ /**
453
+ * 触发刷新的回调
454
+ */
455
+ onRefresh?: () => void;
456
+ }
457
+ interface SenseTableRef {
458
+ /**
459
+ * 刷新
460
+ */
461
+ refresh: () => void;
462
+ }
463
+
464
+ declare const SenseTable: React.ForwardRefExoticComponent<SenseTableProps & React.RefAttributes<SenseTableRef>>;
465
+
466
+ interface CheckInfo {
467
+ info: {
468
+ selectSenseObjCodes?: string[];
469
+ selectBookIds?: string[];
470
+ unSelectBookIds?: string[];
471
+ selectSenseGlobalCodes?: string[];
472
+ unSelectSenseGlobalCodes?: string[];
473
+ selectOrgIds?: string[];
474
+ };
475
+ total: number;
476
+ }
477
+ interface SenseTreeProps {
478
+ /**
479
+ * 树类型
480
+ * entityClass: 分类-台账-实体记录
481
+ * region-book: 地理层级-台账-实体记录
482
+ * region-sense: 地理层级-实体记录
483
+ */
484
+ treeType: 'entityClass' | 'region-book' | 'region-sense';
485
+ /**
486
+ * 视图编码
487
+ */
488
+ viewCodes: string[];
489
+ /**
490
+ * 搜索参数
491
+ */
492
+ searchParams: any;
493
+ /**
494
+ * 地理层级显示区间-根层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
495
+ */
496
+ regionRootLevel?: number;
497
+ /**
498
+ * 地理层级显示区间-叶子层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
499
+ */
500
+ regionLeafLevel?: number;
501
+ /**
502
+ * 默认全选
503
+ */
504
+ defaultCheckedAll?: boolean;
505
+ /**
506
+ * 实体记录功能
507
+ */
508
+ senseContextMenuConfig?: ('show' | 'edit')[];
509
+ /**
510
+ * 底部按钮功能
511
+ */
512
+ bottomButtonConfig?: 'download'[];
513
+ /**
514
+ * 实体总数变化
515
+ */
516
+ onTotalChange?: (total: number) => void;
517
+ /**
518
+ * 树节点选中变化
519
+ */
520
+ onCheck?: (checkedInfo: CheckInfo) => void;
521
+ /**
522
+ * 单击树节点
523
+ */
524
+ onClick?: (node: any, e: any) => void;
525
+ /**
526
+ * 双击树节点
527
+ */
528
+ onDoubleClick?: (node: any, e: any) => void;
529
+ /**
530
+ * 查看实体记录
531
+ */
532
+ onShowSense?: (node: any, e: any) => void;
533
+ /**
534
+ * 编辑实体记录
535
+ */
536
+ onEditSense?: (node: any, e: any) => void;
537
+ }
538
+
539
+ declare const SenseTree: React.FC<SenseTreeProps>;
540
+
541
+ interface CcosSenseTreeProps extends SenseTreeProps {
542
+ 'data-dnd': string;
543
+ tid: string;
544
+ viewType?: 'system' | 'func';
545
+ viewCode?: string;
546
+ showSenseContextMenu?: boolean;
547
+ showBottomButton?: boolean;
548
+ }
549
+ declare const CcosSenseTree: {
550
+ (props: CcosSenseTreeProps): React.JSX.Element;
551
+ settings: Settings;
552
+ };
553
+
554
+ interface SenseUploadProps {
555
+ bookId: string;
556
+ /**
557
+ * 点击取消按钮
558
+ */
559
+ onCancel?: () => void;
560
+ /**
561
+ * 保存成功
562
+ */
563
+ onSuccess?: () => void;
564
+ /**
565
+ * 保存失败
566
+ */
567
+ onError?: (error: any) => void;
568
+ }
569
+
570
+ declare const SenseUpload: React.FC<SenseUploadProps>;
571
+
572
+ interface SenseViewProps {
573
+ /**
574
+ * 功能视图编码
575
+ */
576
+ viewCode?: string;
577
+ /**
578
+ * 显示顶部菜单栏
579
+ */
580
+ showView?: boolean;
581
+ /**
582
+ * 系统视图列表
583
+ */
584
+ views?: {
585
+ label: string;
586
+ value: string;
587
+ }[];
588
+ /**
589
+ * 时空搜索类型
590
+ * 时间、空间、最近邻、时空
591
+ */
592
+ searchMode?: ('time' | 'space' | 'knn' | 'time-space')[];
593
+ /**
594
+ * 地图开始绘制
595
+ */
596
+ onStartDraw?: (mode: string, callback: any) => void;
597
+ /**
598
+ * 地图绘制(绘制回显)
599
+ */
600
+ onMapDraw?: (value: any) => void;
601
+ /**
602
+ * 树类型
603
+ * entityClass: 分类-台账-实体记录
604
+ * region-book: 地理层级-台账-实体记录
605
+ * region-sense: 地理层级-实体记录
606
+ */
607
+ treeType: 'entityClass' | 'region-book' | 'region-sense';
608
+ /**
609
+ * 地理层级显示区间-根层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
610
+ */
611
+ regionRootLevel?: number;
612
+ /**
613
+ * 地理层级显示区间-叶子层级 1~9 以此为省、市、区县、街道、社区、小区、楼、单元、户
614
+ */
615
+ regionLeafLevel?: number;
616
+ /**
617
+ * 默认全选
618
+ */
619
+ defaultCheckedAll?: boolean;
620
+ /**
621
+ * 实体记录功能
622
+ */
623
+ senseContextMenuConfig?: ('show' | 'edit')[];
624
+ /**
625
+ * 底部按钮功能
626
+ */
627
+ bottomButtonConfig?: 'download'[];
628
+ /**
629
+ * 实体总数变化
630
+ */
631
+ onTotalChange?: (total: number) => void;
632
+ /**
633
+ * 树节点选中变化
634
+ */
635
+ onCheck?: (checkedInfo: CheckInfo) => void;
636
+ /**
637
+ * 单击树节点
638
+ */
639
+ onClick?: (node: any, e: any) => void;
640
+ /**
641
+ * 双击树节点
642
+ */
643
+ onDoubleClick?: (node: any, e: any) => void;
644
+ /**
645
+ * 查看实体记录
646
+ */
647
+ onShowSense?: (node: any, e: any) => void;
648
+ /**
649
+ * 编辑实体记录
650
+ */
651
+ onEditSense?: (node: any, e: any) => void;
652
+ }
653
+
654
+ declare const SenseView: React.FC<SenseViewProps>;
655
+
656
+ interface CcosSenseViewProps extends SenseViewProps {
657
+ 'data-dnd': string;
658
+ tid: string;
659
+ showSpaceSearch?: boolean;
660
+ showSenseContextMenu?: boolean;
661
+ showBottomButton?: boolean;
662
+ }
663
+ declare const CcosSenseView: {
664
+ (props: CcosSenseViewProps): React.JSX.Element;
665
+ settings: Settings;
666
+ };
667
+
668
+ type TagTreeSelectProps = TreeSelectProps;
669
+
670
+ declare const TagTreeSelect: React.FC<TagTreeSelectProps>;
671
+
672
+ interface VideoPlayerProps {
673
+ /**
674
+ * 视频播放器库路径
675
+ */
676
+ libsPath?: {
677
+ cityeyes?: string;
678
+ h5player?: string;
679
+ };
680
+ /**
681
+ * 视频播放地址
682
+ */
683
+ url?: string;
684
+ /**
685
+ * 实体唯一编码,用于视频控制
686
+ */
687
+ senseGlobalCode?: string;
688
+ /**
689
+ * 视频通道 id
690
+ */
691
+ channelId?: string;
692
+ /**
693
+ * 播放器类型
694
+ */
695
+ videoPlayerType?: 'cityeyes' | 'h5player';
696
+ /**
697
+ * 视频源类型
698
+ */
699
+ videoStreamSource?: 'cityeyes' | 'hikvision' | 'custom';
700
+ }
701
+
702
+ declare const VideoPlayer: React.FC<VideoPlayerProps>;
703
+
704
+ interface CcosVideoPlayerProps extends VideoPlayerProps {
705
+ 'data-dnd': string;
706
+ tid: string;
707
+ }
708
+ declare const CcosVideoPlayer: {
709
+ (props: CcosVideoPlayerProps): React.JSX.Element;
710
+ settings: Settings;
711
+ };
712
+
713
+ type Config = Pick<IcosDesktopType, 'apiPrefix'>;
714
+ declare const setCconfig: (config: Config) => void;
715
+
716
+ export { BookGroupTable, BookTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosVideoPlayer, OrgTreeSelect, ProTable, RegionTreeSelect, RelationGraph, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseUpload, SenseView, TagTreeSelect, VideoPlayer, setCconfig as config };