amis-ui 6.13.0-beta.7 → 6.13.0-beta.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.
Files changed (1042) hide show
  1. package/package.json +3 -3
  2. package/scss/components/form/_excel.scss +110 -4
  3. package/esm/components/404.d.ts +0 -53
  4. package/esm/components/404.js +0 -35
  5. package/esm/components/Alert.d.ts +0 -615
  6. package/esm/components/Alert.js +0 -266
  7. package/esm/components/Alert2.d.ts +0 -117
  8. package/esm/components/Alert2.js +0 -58
  9. package/esm/components/AlphabetIndexer.d.ts +0 -11
  10. package/esm/components/AlphabetIndexer.js +0 -48
  11. package/esm/components/AnchorNav.d.ts +0 -162
  12. package/esm/components/AnchorNav.js +0 -153
  13. package/esm/components/AnchorNavSection.d.ts +0 -2
  14. package/esm/components/AnchorNavSection.js +0 -7
  15. package/esm/components/ArrayInput.d.ts +0 -617
  16. package/esm/components/ArrayInput.js +0 -147
  17. package/esm/components/AsideNav.d.ts +0 -142
  18. package/esm/components/AsideNav.js +0 -133
  19. package/esm/components/AssociatedSelection.d.ts +0 -564
  20. package/esm/components/AssociatedSelection.js +0 -103
  21. package/esm/components/AutoSizer.d.ts +0 -2
  22. package/esm/components/AutoSizer.js +0 -8
  23. package/esm/components/Avatar.d.ts +0 -374
  24. package/esm/components/Avatar.js +0 -126
  25. package/esm/components/Badge.d.ts +0 -118
  26. package/esm/components/Badge.js +0 -154
  27. package/esm/components/BaiduMapPicker.d.ts +0 -100
  28. package/esm/components/BaiduMapPicker.js +0 -366
  29. package/esm/components/BarCode.d.ts +0 -56
  30. package/esm/components/BarCode.js +0 -42
  31. package/esm/components/Breadcrumb.d.ts +0 -115
  32. package/esm/components/Breadcrumb.js +0 -160
  33. package/esm/components/Button.d.ts +0 -147
  34. package/esm/components/Button.js +0 -63
  35. package/esm/components/CalendarMobile.d.ts +0 -431
  36. package/esm/components/CalendarMobile.js +0 -538
  37. package/esm/components/Card.d.ts +0 -444
  38. package/esm/components/Card.js +0 -88
  39. package/esm/components/Cascader.d.ts +0 -108
  40. package/esm/components/Cascader.js +0 -515
  41. package/esm/components/ChainedDropdownSelection.d.ts +0 -561
  42. package/esm/components/ChainedDropdownSelection.js +0 -104
  43. package/esm/components/ChainedSelection.d.ts +0 -554
  44. package/esm/components/ChainedSelection.js +0 -184
  45. package/esm/components/Checkbox.d.ts +0 -110
  46. package/esm/components/Checkbox.js +0 -87
  47. package/esm/components/CityArea.d.ts +0 -299
  48. package/esm/components/CityArea.js +0 -190
  49. package/esm/components/CityDB.d.ts +0 -13
  50. package/esm/components/CityDB.js +0 -3942
  51. package/esm/components/CodeMirror.d.ts +0 -29
  52. package/esm/components/CodeMirror.js +0 -140
  53. package/esm/components/Collapse.d.ts +0 -447
  54. package/esm/components/Collapse.js +0 -184
  55. package/esm/components/CollapseGroup.d.ts +0 -219
  56. package/esm/components/CollapseGroup.js +0 -117
  57. package/esm/components/ColorPicker.d.ts +0 -530
  58. package/esm/components/ColorPicker.js +0 -260
  59. package/esm/components/Combo.d.ts +0 -354
  60. package/esm/components/Combo.js +0 -212
  61. package/esm/components/ConditionBuilder.d.ts +0 -2
  62. package/esm/components/ConditionBuilder.js +0 -7
  63. package/esm/components/ConfirmBox.d.ts +0 -322
  64. package/esm/components/ConfirmBox.js +0 -129
  65. package/esm/components/ContextMenu.d.ts +0 -115
  66. package/esm/components/ContextMenu.js +0 -305
  67. package/esm/components/DatePicker.d.ts +0 -638
  68. package/esm/components/DatePicker.js +0 -717
  69. package/esm/components/DateRangePicker.d.ts +0 -1046
  70. package/esm/components/DateRangePicker.js +0 -1389
  71. package/esm/components/DiffEditor.d.ts +0 -21
  72. package/esm/components/DiffEditor.js +0 -119
  73. package/esm/components/DndContainer.d.ts +0 -205
  74. package/esm/components/DndContainer.js +0 -25
  75. package/esm/components/Drawer.d.ts +0 -158
  76. package/esm/components/Drawer.js +0 -269
  77. package/esm/components/DropDownSelection.d.ts +0 -557
  78. package/esm/components/DropDownSelection.js +0 -78
  79. package/esm/components/DropdownContextMenus.d.ts +0 -84
  80. package/esm/components/DropdownContextMenus.js +0 -93
  81. package/esm/components/Editor.d.ts +0 -681
  82. package/esm/components/Editor.js +0 -238
  83. package/esm/components/Form.d.ts +0 -31
  84. package/esm/components/Form.js +0 -84
  85. package/esm/components/FormField.d.ts +0 -287
  86. package/esm/components/FormField.js +0 -78
  87. package/esm/components/FormulaPicker.d.ts +0 -2
  88. package/esm/components/FormulaPicker.js +0 -7
  89. package/esm/components/GaodeMapPicker.d.ts +0 -89
  90. package/esm/components/GaodeMapPicker.js +0 -204
  91. package/esm/components/GridNav.d.ts +0 -53
  92. package/esm/components/GridNav.js +0 -125
  93. package/esm/components/GridNavItem.d.ts +0 -2
  94. package/esm/components/GridNavItem.js +0 -7
  95. package/esm/components/GroupedSelection.d.ts +0 -543
  96. package/esm/components/GroupedSelection.js +0 -138
  97. package/esm/components/HeadCellDropDown.d.ts +0 -2
  98. package/esm/components/HeadCellDropDown.js +0 -7
  99. package/esm/components/HorizontalScroll.d.ts +0 -75
  100. package/esm/components/HorizontalScroll.js +0 -271
  101. package/esm/components/Html.d.ts +0 -82
  102. package/esm/components/Html.js +0 -52
  103. package/esm/components/Icon.d.ts +0 -2
  104. package/esm/components/Icon.js +0 -7
  105. package/esm/components/ImageGallery.d.ts +0 -465
  106. package/esm/components/ImageGallery.js +0 -396
  107. package/esm/components/Input.d.ts +0 -18
  108. package/esm/components/Input.js +0 -75
  109. package/esm/components/InputBox.d.ts +0 -100
  110. package/esm/components/InputBox.js +0 -98
  111. package/esm/components/InputBoxWithSuggestion.d.ts +0 -272
  112. package/esm/components/InputBoxWithSuggestion.js +0 -69
  113. package/esm/components/InputJSONSchema.d.ts +0 -2
  114. package/esm/components/InputJSONSchema.js +0 -7
  115. package/esm/components/InputTable.d.ts +0 -317
  116. package/esm/components/InputTable.js +0 -176
  117. package/esm/components/JSONSchemaEditor.d.ts +0 -2
  118. package/esm/components/JSONSchemaEditor.js +0 -7
  119. package/esm/components/Layout.d.ts +0 -74
  120. package/esm/components/Layout.js +0 -60
  121. package/esm/components/Link.d.ts +0 -60
  122. package/esm/components/Link.js +0 -44
  123. package/esm/components/ListGroup.d.ts +0 -77
  124. package/esm/components/ListGroup.js +0 -31
  125. package/esm/components/ListMenu.d.ts +0 -568
  126. package/esm/components/ListMenu.js +0 -62
  127. package/esm/components/LocationPicker.d.ts +0 -467
  128. package/esm/components/LocationPicker.js +0 -208
  129. package/esm/components/Markdown.d.ts +0 -25
  130. package/esm/components/Markdown.js +0 -70
  131. package/esm/components/Menu.d.ts +0 -2
  132. package/esm/components/Menu.js +0 -7
  133. package/esm/components/MobileDevTool.d.ts +0 -12
  134. package/esm/components/MobileDevTool.js +0 -312
  135. package/esm/components/Modal.d.ts +0 -1316
  136. package/esm/components/Modal.js +0 -261
  137. package/esm/components/ModalManager.d.ts +0 -17
  138. package/esm/components/ModalManager.js +0 -42
  139. package/esm/components/MonthRangePicker.d.ts +0 -744
  140. package/esm/components/MultilineText.d.ts +0 -454
  141. package/esm/components/MultilineText.js +0 -90
  142. package/esm/components/NumberInput.d.ts +0 -201
  143. package/esm/components/NumberInput.js +0 -274
  144. package/esm/components/OverflowTpl.d.ts +0 -61
  145. package/esm/components/OverflowTpl.js +0 -101
  146. package/esm/components/Pagination.d.ts +0 -812
  147. package/esm/components/Pagination.js +0 -375
  148. package/esm/components/PdfViewer.d.ts +0 -49
  149. package/esm/components/PdfViewer.js +0 -83
  150. package/esm/components/Picker.d.ts +0 -277
  151. package/esm/components/Picker.js +0 -73
  152. package/esm/components/PickerColumn.d.ts +0 -62
  153. package/esm/components/PickerColumn.js +0 -276
  154. package/esm/components/PickerContainer.d.ts +0 -291
  155. package/esm/components/PickerContainer.js +0 -157
  156. package/esm/components/PopOverContainer.d.ts +0 -59
  157. package/esm/components/PopOverContainer.js +0 -149
  158. package/esm/components/PopUp.d.ts +0 -573
  159. package/esm/components/PopUp.js +0 -85
  160. package/esm/components/Progress.d.ts +0 -311
  161. package/esm/components/Progress.js +0 -136
  162. package/esm/components/PullRefresh.d.ts +0 -79
  163. package/esm/components/PullRefresh.js +0 -172
  164. package/esm/components/Radios.d.ts +0 -170
  165. package/esm/components/Radios.js +0 -122
  166. package/esm/components/Range.d.ts +0 -131
  167. package/esm/components/Range.js +0 -517
  168. package/esm/components/Rating.d.ts +0 -227
  169. package/esm/components/Rating.js +0 -341
  170. package/esm/components/ResultBox.d.ts +0 -532
  171. package/esm/components/ResultBox.js +0 -215
  172. package/esm/components/ResultList.d.ts +0 -554
  173. package/esm/components/ResultList.js +0 -254
  174. package/esm/components/ResultTableList.d.ts +0 -786
  175. package/esm/components/ResultTableList.js +0 -152
  176. package/esm/components/ResultTreeList.d.ts +0 -425
  177. package/esm/components/ResultTreeList.js +0 -239
  178. package/esm/components/RichText.d.ts +0 -48
  179. package/esm/components/RichText.js +0 -271
  180. package/esm/components/SearchBox.d.ts +0 -625
  181. package/esm/components/SearchBox.js +0 -299
  182. package/esm/components/Select.d.ts +0 -6498
  183. package/esm/components/Select.js +0 -843
  184. package/esm/components/SelectMobile.d.ts +0 -38
  185. package/esm/components/SelectMobile.js +0 -370
  186. package/esm/components/Selection.d.ts +0 -598
  187. package/esm/components/Selection.js +0 -166
  188. package/esm/components/Shape.d.ts +0 -58
  189. package/esm/components/Shape.js +0 -429
  190. package/esm/components/Signature.d.ts +0 -279
  191. package/esm/components/Signature.js +0 -291
  192. package/esm/components/Slider.d.ts +0 -56
  193. package/esm/components/Slider.js +0 -140
  194. package/esm/components/SparkLine.d.ts +0 -397
  195. package/esm/components/SparkLine.js +0 -62
  196. package/esm/components/Spinner.d.ts +0 -266
  197. package/esm/components/Spinner.js +0 -202
  198. package/esm/components/Steps.d.ts +0 -117
  199. package/esm/components/Steps.js +0 -76
  200. package/esm/components/Switch.d.ts +0 -105
  201. package/esm/components/Switch.js +0 -73
  202. package/esm/components/Tab.d.ts +0 -2
  203. package/esm/components/Tab.js +0 -7
  204. package/esm/components/Table.d.ts +0 -2
  205. package/esm/components/Table.js +0 -7
  206. package/esm/components/TableSelection.d.ts +0 -791
  207. package/esm/components/TableSelection.js +0 -169
  208. package/esm/components/Tabs.d.ts +0 -670
  209. package/esm/components/Tabs.js +0 -607
  210. package/esm/components/TabsTransfer.d.ts +0 -423
  211. package/esm/components/TabsTransfer.js +0 -219
  212. package/esm/components/TabsTransferPicker.d.ts +0 -267
  213. package/esm/components/TabsTransferPicker.js +0 -81
  214. package/esm/components/Tag.d.ts +0 -307
  215. package/esm/components/Tag.js +0 -137
  216. package/esm/components/Textarea.d.ts +0 -564
  217. package/esm/components/Textarea.js +0 -147
  218. package/esm/components/Timeline.d.ts +0 -56
  219. package/esm/components/Timeline.js +0 -60
  220. package/esm/components/TimelineItem.d.ts +0 -1292
  221. package/esm/components/TimelineItem.js +0 -101
  222. package/esm/components/Tinymce.d.ts +0 -66
  223. package/esm/components/Tinymce.js +0 -632
  224. package/esm/components/TitleBar.d.ts +0 -123
  225. package/esm/components/TitleBar.js +0 -48
  226. package/esm/components/Toast.d.ts +0 -591
  227. package/esm/components/Toast.js +0 -247
  228. package/esm/components/Tooltip.d.ts +0 -65
  229. package/esm/components/Tooltip.js +0 -36
  230. package/esm/components/TooltipWrapper.d.ts +0 -217
  231. package/esm/components/TooltipWrapper.js +0 -181
  232. package/esm/components/Transfer.d.ts +0 -1844
  233. package/esm/components/Transfer.js +0 -481
  234. package/esm/components/TransferDropDown.d.ts +0 -634
  235. package/esm/components/TransferDropDown.js +0 -98
  236. package/esm/components/TransferPicker.d.ts +0 -275
  237. package/esm/components/TransferPicker.js +0 -98
  238. package/esm/components/TransferSearch.d.ts +0 -283
  239. package/esm/components/TransferSearch.js +0 -100
  240. package/esm/components/Tree.d.ts +0 -1991
  241. package/esm/components/Tree.js +0 -1179
  242. package/esm/components/TreeSelection.d.ts +0 -601
  243. package/esm/components/TreeSelection.js +0 -201
  244. package/esm/components/UserSelect.d.ts +0 -541
  245. package/esm/components/UserSelect.js +0 -674
  246. package/esm/components/UserTabSelect.d.ts +0 -315
  247. package/esm/components/UserTabSelect.js +0 -227
  248. package/esm/components/VerificationCode.d.ts +0 -116
  249. package/esm/components/VerificationCode.js +0 -172
  250. package/esm/components/VirtualList.d.ts +0 -2
  251. package/esm/components/VirtualList.js +0 -7
  252. package/esm/components/WithRemoteConfig.d.ts +0 -383
  253. package/esm/components/WithRemoteConfig.js +0 -302
  254. package/esm/components/WithStore.d.ts +0 -72
  255. package/esm/components/WithStore.js +0 -48
  256. package/esm/components/calendar/Calendar.d.ts +0 -83
  257. package/esm/components/calendar/Calendar.js +0 -529
  258. package/esm/components/calendar/CalendarContainer.d.ts +0 -10
  259. package/esm/components/calendar/CalendarContainer.js +0 -27
  260. package/esm/components/calendar/DaysView.d.ts +0 -184
  261. package/esm/components/calendar/DaysView.js +0 -527
  262. package/esm/components/calendar/MonthsView.d.ts +0 -133
  263. package/esm/components/calendar/MonthsView.js +0 -175
  264. package/esm/components/calendar/QuartersView.d.ts +0 -102
  265. package/esm/components/calendar/QuartersView.js +0 -125
  266. package/esm/components/calendar/TimeView.d.ts +0 -183
  267. package/esm/components/calendar/TimeView.js +0 -559
  268. package/esm/components/calendar/YearsView.d.ts +0 -102
  269. package/esm/components/calendar/YearsView.js +0 -122
  270. package/esm/components/condition-builder/Expression.d.ts +0 -292
  271. package/esm/components/condition-builder/Expression.js +0 -121
  272. package/esm/components/condition-builder/Field.d.ts +0 -272
  273. package/esm/components/condition-builder/Field.js +0 -32
  274. package/esm/components/condition-builder/Formula.d.ts +0 -261
  275. package/esm/components/condition-builder/Func.d.ts +0 -273
  276. package/esm/components/condition-builder/Func.js +0 -75
  277. package/esm/components/condition-builder/Group.d.ts +0 -310
  278. package/esm/components/condition-builder/Group.js +0 -191
  279. package/esm/components/condition-builder/GroupOrItem.d.ts +0 -87
  280. package/esm/components/condition-builder/GroupOrItem.js +0 -105
  281. package/esm/components/condition-builder/InputSwitch.d.ts +0 -47
  282. package/esm/components/condition-builder/InputSwitch.js +0 -28
  283. package/esm/components/condition-builder/Item.d.ts +0 -287
  284. package/esm/components/condition-builder/Item.js +0 -232
  285. package/esm/components/condition-builder/Value.d.ts +0 -272
  286. package/esm/components/condition-builder/Value.js +0 -108
  287. package/esm/components/condition-builder/config.d.ts +0 -36
  288. package/esm/components/condition-builder/config.js +0 -120
  289. package/esm/components/condition-builder/index.d.ts +0 -319
  290. package/esm/components/condition-builder/index.js +0 -228
  291. package/esm/components/condition-builder/types.d.ts +0 -115
  292. package/esm/components/formula/CodeEditor.d.ts +0 -92
  293. package/esm/components/formula/CodeEditor.js +0 -99
  294. package/esm/components/formula/Editor.d.ts +0 -516
  295. package/esm/components/formula/Editor.js +0 -430
  296. package/esm/components/formula/FuncList.d.ts +0 -46
  297. package/esm/components/formula/FuncList.js +0 -63
  298. package/esm/components/formula/Input.d.ts +0 -292
  299. package/esm/components/formula/Input.js +0 -122
  300. package/esm/components/formula/Picker.d.ts +0 -492
  301. package/esm/components/formula/Picker.js +0 -454
  302. package/esm/components/formula/VariableList.d.ts +0 -58
  303. package/esm/components/formula/VariableList.js +0 -182
  304. package/esm/components/formula/plugin.d.ts +0 -51
  305. package/esm/components/formula/plugin.js +0 -372
  306. package/esm/components/icons.d.ts +0 -61
  307. package/esm/components/icons.js +0 -456
  308. package/esm/components/index.d.ts +0 -136
  309. package/esm/components/json-schema/Array.d.ts +0 -3
  310. package/esm/components/json-schema/Array.js +0 -129
  311. package/esm/components/json-schema/Item.d.ts +0 -5
  312. package/esm/components/json-schema/Item.js +0 -63
  313. package/esm/components/json-schema/Object.d.ts +0 -5
  314. package/esm/components/json-schema/Object.js +0 -265
  315. package/esm/components/json-schema/index.d.ts +0 -272
  316. package/esm/components/json-schema/index.js +0 -29
  317. package/esm/components/menu/MenuContext.d.ts +0 -83
  318. package/esm/components/menu/MenuContext.js +0 -25
  319. package/esm/components/menu/MenuItem.d.ts +0 -81
  320. package/esm/components/menu/MenuItem.js +0 -112
  321. package/esm/components/menu/PanelMenu.d.ts +0 -46
  322. package/esm/components/menu/PanelMenu.js +0 -68
  323. package/esm/components/menu/SubMenu.d.ts +0 -84
  324. package/esm/components/menu/SubMenu.js +0 -137
  325. package/esm/components/menu/index.d.ts +0 -381
  326. package/esm/components/menu/index.js +0 -369
  327. package/esm/components/schema-editor/Array.d.ts +0 -11
  328. package/esm/components/schema-editor/Array.js +0 -84
  329. package/esm/components/schema-editor/Common.d.ts +0 -61
  330. package/esm/components/schema-editor/Common.js +0 -161
  331. package/esm/components/schema-editor/Item.d.ts +0 -8
  332. package/esm/components/schema-editor/Item.js +0 -24
  333. package/esm/components/schema-editor/Object.d.ts +0 -51
  334. package/esm/components/schema-editor/Object.js +0 -294
  335. package/esm/components/schema-editor/SchemaVariableList.d.ts +0 -186
  336. package/esm/components/schema-editor/SchemaVariableList.js +0 -74
  337. package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +0 -179
  338. package/esm/components/schema-editor/SchemaVariableListPicker.js +0 -34
  339. package/esm/components/schema-editor/index.d.ts +0 -797
  340. package/esm/components/schema-editor/index.js +0 -122
  341. package/esm/components/table/Cell.d.ts +0 -36
  342. package/esm/components/table/Cell.js +0 -43
  343. package/esm/components/table/ColGroup.d.ts +0 -24
  344. package/esm/components/table/ColGroup.js +0 -58
  345. package/esm/components/table/Head.d.ts +0 -45
  346. package/esm/components/table/Head.js +0 -150
  347. package/esm/components/table/HeadCellDropDown.d.ts +0 -289
  348. package/esm/components/table/HeadCellDropDown.js +0 -55
  349. package/esm/components/table/HeadCellFilter.d.ts +0 -414
  350. package/esm/components/table/HeadCellFilter.js +0 -131
  351. package/esm/components/table/HeadCellSelect.d.ts +0 -357
  352. package/esm/components/table/HeadCellSelect.js +0 -52
  353. package/esm/components/table/HeadCellSort.d.ts +0 -278
  354. package/esm/components/table/HeadCellSort.js +0 -88
  355. package/esm/components/table/ItemActionsWrapper.d.ts +0 -10
  356. package/esm/components/table/ItemActionsWrapper.js +0 -29
  357. package/esm/components/table/Row.d.ts +0 -56
  358. package/esm/components/table/Row.js +0 -224
  359. package/esm/components/table/SummaryRow.d.ts +0 -28
  360. package/esm/components/table/SummaryRow.js +0 -73
  361. package/esm/components/table/index.d.ts +0 -852
  362. package/esm/components/table/index.js +0 -1067
  363. package/esm/components/table/util.d.ts +0 -56
  364. package/esm/components/table/util.js +0 -263
  365. package/esm/components/virtual-list/AutoSizer.d.ts +0 -19
  366. package/esm/components/virtual-list/AutoSizer.js +0 -49
  367. package/esm/components/virtual-list/SizeAndPositionManager.d.ts +0 -70
  368. package/esm/components/virtual-list/SizeAndPositionManager.js +0 -216
  369. package/esm/components/virtual-list/constants.d.ts +0 -34
  370. package/esm/components/virtual-list/constants.js +0 -45
  371. package/esm/components/virtual-list/index.d.ts +0 -99
  372. package/esm/components/virtual-list/index.js +0 -288
  373. package/esm/components/withBadge.d.ts +0 -2
  374. package/esm/components/withBadge.js +0 -7
  375. package/esm/hooks/index.d.ts +0 -8
  376. package/esm/hooks/use-click-away.d.ts +0 -12
  377. package/esm/hooks/use-click-away.js +0 -55
  378. package/esm/hooks/use-on-screen.d.ts +0 -2
  379. package/esm/hooks/use-on-screen.js +0 -28
  380. package/esm/hooks/use-set-state.d.ts +0 -2
  381. package/esm/hooks/use-set-state.js +0 -19
  382. package/esm/hooks/use-sub-form.d.ts +0 -4
  383. package/esm/hooks/use-sub-form.js +0 -39
  384. package/esm/hooks/use-touch.d.ts +0 -16
  385. package/esm/hooks/use-touch.js +0 -77
  386. package/esm/hooks/use-update-effect.d.ts +0 -3
  387. package/esm/hooks/use-update-effect.js +0 -21
  388. package/esm/hooks/use-validation-resolver.d.ts +0 -7
  389. package/esm/hooks/use-validation-resolver.js +0 -115
  390. package/esm/icons/alert-danger.svg.js +0 -22
  391. package/esm/icons/alert-info.svg.js +0 -22
  392. package/esm/icons/alert-success.svg.js +0 -22
  393. package/esm/icons/alert-warning.svg.js +0 -22
  394. package/esm/icons/arrow-double-left.svg.js +0 -24
  395. package/esm/icons/arrow-double-right.svg.js +0 -24
  396. package/esm/icons/back.svg.js +0 -21
  397. package/esm/icons/calendar.svg.js +0 -31
  398. package/esm/icons/caret.svg.js +0 -21
  399. package/esm/icons/check.svg.js +0 -21
  400. package/esm/icons/clock.svg.js +0 -29
  401. package/esm/icons/close-small.svg.js +0 -24
  402. package/esm/icons/close.svg.js +0 -21
  403. package/esm/icons/cloud-upload.svg.js +0 -22
  404. package/esm/icons/column-filter.svg.js +0 -22
  405. package/esm/icons/columns.svg.js +0 -21
  406. package/esm/icons/compress-alt.svg.js +0 -21
  407. package/esm/icons/copy.svg.js +0 -26
  408. package/esm/icons/date.svg.js +0 -26
  409. package/esm/icons/department.svg.js +0 -52
  410. package/esm/icons/desk-empty.svg.js +0 -73
  411. package/esm/icons/dot.svg.js +0 -36
  412. package/esm/icons/down-arrow-bold.svg.js +0 -22
  413. package/esm/icons/down.svg.js +0 -23
  414. package/esm/icons/download.svg.js +0 -24
  415. package/esm/icons/drag-bar.svg.js +0 -53
  416. package/esm/icons/drag.svg.js +0 -22
  417. package/esm/icons/edit.svg.js +0 -21
  418. package/esm/icons/ellipsis-v.svg.js +0 -21
  419. package/esm/icons/enter.svg.js +0 -20
  420. package/esm/icons/exchange.svg.js +0 -21
  421. package/esm/icons/expand-alt.svg.js +0 -21
  422. package/esm/icons/fail.svg.js +0 -31
  423. package/esm/icons/file.svg.js +0 -22
  424. package/esm/icons/filter.svg.js +0 -21
  425. package/esm/icons/folder.svg.js +0 -24
  426. package/esm/icons/fullscreen.svg.js +0 -21
  427. package/esm/icons/function.svg.js +0 -21
  428. package/esm/icons/home.svg.js +0 -21
  429. package/esm/icons/if.svg.js +0 -21
  430. package/esm/icons/image.svg.js +0 -20
  431. package/esm/icons/info-circle.svg.js +0 -21
  432. package/esm/icons/info.svg.js +0 -27
  433. package/esm/icons/input-clear.svg.js +0 -20
  434. package/esm/icons/invisible.svg.js +0 -22
  435. package/esm/icons/left-arrow.svg.js +0 -23
  436. package/esm/icons/loading-outline.svg.js +0 -21
  437. package/esm/icons/location.svg.js +0 -20
  438. package/esm/icons/menu.svg.js +0 -20
  439. package/esm/icons/minus.svg.js +0 -21
  440. package/esm/icons/move.svg.js +0 -22
  441. package/esm/icons/mute.svg.js +0 -21
  442. package/esm/icons/new-edit.svg.js +0 -22
  443. package/esm/icons/pause.svg.js +0 -21
  444. package/esm/icons/pencil.svg.js +0 -21
  445. package/esm/icons/play.svg.js +0 -20
  446. package/esm/icons/plus-cicle.svg.js +0 -20
  447. package/esm/icons/plus-fine.svg.js +0 -21
  448. package/esm/icons/plus.svg.js +0 -21
  449. package/esm/icons/post.svg.js +0 -48
  450. package/esm/icons/question-mark.svg.js +0 -26
  451. package/esm/icons/question.svg.js +0 -21
  452. package/esm/icons/redo.svg.js +0 -21
  453. package/esm/icons/refresh.svg.js +0 -21
  454. package/esm/icons/reload.svg.js +0 -21
  455. package/esm/icons/remove.svg.js +0 -21
  456. package/esm/icons/retry.svg.js +0 -24
  457. package/esm/icons/right-arrow-bold.svg.js +0 -21
  458. package/esm/icons/right-arrow.svg.js +0 -23
  459. package/esm/icons/right-double-arrow.svg.js +0 -22
  460. package/esm/icons/role.svg.js +0 -43
  461. package/esm/icons/rotate-left.svg.js +0 -22
  462. package/esm/icons/rotate-right.svg.js +0 -22
  463. package/esm/icons/rotate-screen.svg.js +0 -21
  464. package/esm/icons/scale-origin.svg.js +0 -24
  465. package/esm/icons/schedule.svg.js +0 -24
  466. package/esm/icons/search.svg.js +0 -21
  467. package/esm/icons/setting.svg.js +0 -21
  468. package/esm/icons/slider-handle-icon.svg.js +0 -22
  469. package/esm/icons/sort-asc.svg.js +0 -21
  470. package/esm/icons/sort-default.svg.js +0 -21
  471. package/esm/icons/sort-desc.svg.js +0 -21
  472. package/esm/icons/star.svg.js +0 -21
  473. package/esm/icons/status-close.svg.js +0 -23
  474. package/esm/icons/steps-finsh.svg.js +0 -22
  475. package/esm/icons/sub-plus.svg.js +0 -20
  476. package/esm/icons/success.svg.js +0 -29
  477. package/esm/icons/transparent.svg.js +0 -38
  478. package/esm/icons/trash.svg.js +0 -22
  479. package/esm/icons/tree-down.svg.js +0 -21
  480. package/esm/icons/undo-normal.svg.js +0 -25
  481. package/esm/icons/undo.svg.js +0 -21
  482. package/esm/icons/unfullscreen.svg.js +0 -21
  483. package/esm/icons/upload.svg.js +0 -21
  484. package/esm/icons/user-remove.svg.js +0 -33
  485. package/esm/icons/view.svg.js +0 -22
  486. package/esm/icons/volume.svg.js +0 -24
  487. package/esm/icons/warning-mark.svg.js +0 -22
  488. package/esm/icons/warning.svg.js +0 -21
  489. package/esm/icons/window-restore.svg.js +0 -21
  490. package/esm/icons/zoom-in.svg.js +0 -21
  491. package/esm/icons/zoom-out.svg.js +0 -21
  492. package/esm/index.d.ts +0 -15
  493. package/esm/index.js +0 -154
  494. package/esm/locale/de-DE.d.ts +0 -1
  495. package/esm/locale/de-DE.js +0 -419
  496. package/esm/locale/en-US.d.ts +0 -1
  497. package/esm/locale/en-US.js +0 -425
  498. package/esm/locale/zh-CN.d.ts +0 -1
  499. package/esm/locale/zh-CN.js +0 -434
  500. package/esm/themes/ang.d.ts +0 -3
  501. package/esm/themes/ang.js +0 -15
  502. package/esm/themes/antd.d.ts +0 -1
  503. package/esm/themes/antd.js +0 -42
  504. package/esm/themes/cxd.d.ts +0 -3
  505. package/esm/themes/cxd.js +0 -455
  506. package/esm/themes/dark.d.ts +0 -3
  507. package/esm/themes/dark.js +0 -23
  508. package/esm/themes/default.d.ts +0 -4
  509. package/esm/utils/index.d.ts +0 -2
  510. package/esm/utils/smoothSignature.d.ts +0 -86
  511. package/esm/utils/vectorComputed.d.ts +0 -20
  512. package/esm/utils/vectorComputed.js +0 -75
  513. package/esm/withRemoteConfig.d.ts +0 -2
  514. package/esm/withRemoteConfig.js +0 -7
  515. package/esm/withStore.d.ts +0 -2
  516. package/esm/withStore.js +0 -7
  517. package/lib/components/404.d.ts +0 -53
  518. package/lib/components/404.js +0 -43
  519. package/lib/components/Alert.d.ts +0 -615
  520. package/lib/components/Alert.js +0 -279
  521. package/lib/components/Alert2.d.ts +0 -117
  522. package/lib/components/Alert2.js +0 -66
  523. package/lib/components/AlphabetIndexer.d.ts +0 -11
  524. package/lib/components/AlphabetIndexer.js +0 -59
  525. package/lib/components/AnchorNav.d.ts +0 -162
  526. package/lib/components/AnchorNav.js +0 -162
  527. package/lib/components/AnchorNavSection.d.ts +0 -2
  528. package/lib/components/AnchorNavSection.js +0 -14
  529. package/lib/components/ArrayInput.d.ts +0 -617
  530. package/lib/components/ArrayInput.js +0 -160
  531. package/lib/components/AsideNav.d.ts +0 -142
  532. package/lib/components/AsideNav.js +0 -140
  533. package/lib/components/AssociatedSelection.d.ts +0 -564
  534. package/lib/components/AssociatedSelection.js +0 -106
  535. package/lib/components/AutoSizer.d.ts +0 -2
  536. package/lib/components/AutoSizer.js +0 -15
  537. package/lib/components/Avatar.d.ts +0 -374
  538. package/lib/components/Avatar.js +0 -154
  539. package/lib/components/Badge.d.ts +0 -118
  540. package/lib/components/Badge.js +0 -165
  541. package/lib/components/BaiduMapPicker.d.ts +0 -100
  542. package/lib/components/BaiduMapPicker.js +0 -379
  543. package/lib/components/BarCode.d.ts +0 -56
  544. package/lib/components/BarCode.js +0 -52
  545. package/lib/components/Breadcrumb.d.ts +0 -115
  546. package/lib/components/Breadcrumb.js +0 -170
  547. package/lib/components/Button.d.ts +0 -147
  548. package/lib/components/Button.js +0 -71
  549. package/lib/components/CalendarMobile.d.ts +0 -431
  550. package/lib/components/CalendarMobile.js +0 -546
  551. package/lib/components/Card.d.ts +0 -444
  552. package/lib/components/Card.js +0 -100
  553. package/lib/components/Cascader.d.ts +0 -108
  554. package/lib/components/Cascader.js +0 -527
  555. package/lib/components/ChainedDropdownSelection.d.ts +0 -561
  556. package/lib/components/ChainedDropdownSelection.js +0 -116
  557. package/lib/components/ChainedSelection.d.ts +0 -554
  558. package/lib/components/ChainedSelection.js +0 -197
  559. package/lib/components/Checkbox.d.ts +0 -110
  560. package/lib/components/Checkbox.js +0 -95
  561. package/lib/components/CityArea.d.ts +0 -299
  562. package/lib/components/CityArea.js +0 -197
  563. package/lib/components/CityDB.d.ts +0 -13
  564. package/lib/components/CityDB.js +0 -3949
  565. package/lib/components/CodeMirror.d.ts +0 -29
  566. package/lib/components/CodeMirror.js +0 -152
  567. package/lib/components/Collapse.d.ts +0 -447
  568. package/lib/components/Collapse.js +0 -192
  569. package/lib/components/CollapseGroup.d.ts +0 -219
  570. package/lib/components/CollapseGroup.js +0 -124
  571. package/lib/components/ColorPicker.d.ts +0 -530
  572. package/lib/components/ColorPicker.js +0 -267
  573. package/lib/components/Combo.d.ts +0 -354
  574. package/lib/components/Combo.js +0 -165
  575. package/lib/components/ConditionBuilder.d.ts +0 -2
  576. package/lib/components/ConditionBuilder.js +0 -14
  577. package/lib/components/ConfirmBox.d.ts +0 -322
  578. package/lib/components/ConfirmBox.js +0 -141
  579. package/lib/components/ContextMenu.d.ts +0 -115
  580. package/lib/components/ContextMenu.js +0 -322
  581. package/lib/components/DatePicker.d.ts +0 -638
  582. package/lib/components/DatePicker.js +0 -725
  583. package/lib/components/DateRangePicker.d.ts +0 -1046
  584. package/lib/components/DateRangePicker.js +0 -1401
  585. package/lib/components/DiffEditor.d.ts +0 -21
  586. package/lib/components/DiffEditor.js +0 -130
  587. package/lib/components/DndContainer.d.ts +0 -205
  588. package/lib/components/DndContainer.js +0 -32
  589. package/lib/components/Drawer.d.ts +0 -158
  590. package/lib/components/Drawer.js +0 -279
  591. package/lib/components/DropDownSelection.d.ts +0 -557
  592. package/lib/components/DropDownSelection.js +0 -85
  593. package/lib/components/DropdownContextMenus.d.ts +0 -84
  594. package/lib/components/DropdownContextMenus.js +0 -101
  595. package/lib/components/Editor.d.ts +0 -681
  596. package/lib/components/Editor.js +0 -246
  597. package/lib/components/Form.d.ts +0 -31
  598. package/lib/components/Form.js +0 -97
  599. package/lib/components/FormField.d.ts +0 -287
  600. package/lib/components/FormField.js +0 -90
  601. package/lib/components/FormulaPicker.d.ts +0 -2
  602. package/lib/components/FormulaPicker.js +0 -14
  603. package/lib/components/GaodeMapPicker.d.ts +0 -89
  604. package/lib/components/GaodeMapPicker.js +0 -217
  605. package/lib/components/GridNav.d.ts +0 -53
  606. package/lib/components/GridNav.js +0 -133
  607. package/lib/components/GridNavItem.d.ts +0 -2
  608. package/lib/components/GridNavItem.js +0 -14
  609. package/lib/components/GroupedSelection.d.ts +0 -543
  610. package/lib/components/GroupedSelection.js +0 -150
  611. package/lib/components/HeadCellDropDown.d.ts +0 -2
  612. package/lib/components/HeadCellDropDown.js +0 -14
  613. package/lib/components/HorizontalScroll.d.ts +0 -75
  614. package/lib/components/HorizontalScroll.js +0 -283
  615. package/lib/components/Html.d.ts +0 -82
  616. package/lib/components/Html.js +0 -59
  617. package/lib/components/Icon.d.ts +0 -2
  618. package/lib/components/Icon.js +0 -14
  619. package/lib/components/ImageGallery.d.ts +0 -465
  620. package/lib/components/ImageGallery.js +0 -409
  621. package/lib/components/Input.d.ts +0 -18
  622. package/lib/components/Input.js +0 -86
  623. package/lib/components/InputBox.d.ts +0 -100
  624. package/lib/components/InputBox.js +0 -110
  625. package/lib/components/InputBoxWithSuggestion.d.ts +0 -272
  626. package/lib/components/InputBoxWithSuggestion.js +0 -81
  627. package/lib/components/InputJSONSchema.d.ts +0 -2
  628. package/lib/components/InputJSONSchema.js +0 -14
  629. package/lib/components/InputTable.d.ts +0 -317
  630. package/lib/components/InputTable.js +0 -189
  631. package/lib/components/JSONSchemaEditor.d.ts +0 -2
  632. package/lib/components/JSONSchemaEditor.js +0 -14
  633. package/lib/components/Layout.d.ts +0 -74
  634. package/lib/components/Layout.js +0 -56
  635. package/lib/components/Link.d.ts +0 -60
  636. package/lib/components/Link.js +0 -56
  637. package/lib/components/ListGroup.d.ts +0 -77
  638. package/lib/components/ListGroup.js +0 -43
  639. package/lib/components/ListMenu.d.ts +0 -568
  640. package/lib/components/ListMenu.js +0 -74
  641. package/lib/components/LocationPicker.d.ts +0 -467
  642. package/lib/components/LocationPicker.js +0 -220
  643. package/lib/components/Markdown.d.ts +0 -25
  644. package/lib/components/Markdown.js +0 -83
  645. package/lib/components/Menu.d.ts +0 -2
  646. package/lib/components/Menu.js +0 -14
  647. package/lib/components/MobileDevTool.d.ts +0 -12
  648. package/lib/components/MobileDevTool.js +0 -325
  649. package/lib/components/Modal.d.ts +0 -1316
  650. package/lib/components/Modal.js +0 -272
  651. package/lib/components/ModalManager.d.ts +0 -17
  652. package/lib/components/ModalManager.js +0 -53
  653. package/lib/components/MonthRangePicker.d.ts +0 -744
  654. package/lib/components/MultilineText.d.ts +0 -454
  655. package/lib/components/MultilineText.js +0 -102
  656. package/lib/components/NumberInput.d.ts +0 -201
  657. package/lib/components/NumberInput.js +0 -289
  658. package/lib/components/OverflowTpl.d.ts +0 -61
  659. package/lib/components/OverflowTpl.js +0 -109
  660. package/lib/components/Pagination.d.ts +0 -812
  661. package/lib/components/Pagination.js +0 -388
  662. package/lib/components/PdfViewer.d.ts +0 -49
  663. package/lib/components/PdfViewer.js +0 -89
  664. package/lib/components/Picker.d.ts +0 -277
  665. package/lib/components/Picker.js +0 -80
  666. package/lib/components/PickerColumn.d.ts +0 -62
  667. package/lib/components/PickerColumn.js +0 -288
  668. package/lib/components/PickerContainer.d.ts +0 -291
  669. package/lib/components/PickerContainer.js +0 -169
  670. package/lib/components/PopOverContainer.d.ts +0 -59
  671. package/lib/components/PopOverContainer.js +0 -162
  672. package/lib/components/PopUp.d.ts +0 -573
  673. package/lib/components/PopUp.js +0 -94
  674. package/lib/components/Progress.d.ts +0 -311
  675. package/lib/components/Progress.js +0 -148
  676. package/lib/components/PullRefresh.d.ts +0 -79
  677. package/lib/components/PullRefresh.js +0 -178
  678. package/lib/components/Radios.d.ts +0 -170
  679. package/lib/components/Radios.js +0 -119
  680. package/lib/components/Range.d.ts +0 -131
  681. package/lib/components/Range.js +0 -528
  682. package/lib/components/Rating.d.ts +0 -227
  683. package/lib/components/Rating.js +0 -349
  684. package/lib/components/ResultBox.d.ts +0 -532
  685. package/lib/components/ResultBox.js +0 -230
  686. package/lib/components/ResultList.d.ts +0 -554
  687. package/lib/components/ResultList.js +0 -268
  688. package/lib/components/ResultTableList.d.ts +0 -786
  689. package/lib/components/ResultTableList.js +0 -161
  690. package/lib/components/ResultTreeList.d.ts +0 -425
  691. package/lib/components/ResultTreeList.js +0 -254
  692. package/lib/components/RichText.d.ts +0 -48
  693. package/lib/components/RichText.js +0 -283
  694. package/lib/components/SearchBox.d.ts +0 -625
  695. package/lib/components/SearchBox.js +0 -315
  696. package/lib/components/Select.d.ts +0 -6498
  697. package/lib/components/Select.js +0 -861
  698. package/lib/components/SelectMobile.d.ts +0 -38
  699. package/lib/components/SelectMobile.js +0 -382
  700. package/lib/components/Selection.d.ts +0 -598
  701. package/lib/components/Selection.js +0 -176
  702. package/lib/components/Shape.d.ts +0 -58
  703. package/lib/components/Shape.js +0 -434
  704. package/lib/components/Signature.d.ts +0 -279
  705. package/lib/components/Signature.js +0 -295
  706. package/lib/components/Slider.d.ts +0 -56
  707. package/lib/components/Slider.js +0 -146
  708. package/lib/components/SparkLine.d.ts +0 -397
  709. package/lib/components/SparkLine.js +0 -74
  710. package/lib/components/Spinner.d.ts +0 -266
  711. package/lib/components/Spinner.js +0 -210
  712. package/lib/components/Steps.d.ts +0 -117
  713. package/lib/components/Steps.js +0 -84
  714. package/lib/components/Switch.d.ts +0 -105
  715. package/lib/components/Switch.js +0 -80
  716. package/lib/components/Tab.d.ts +0 -2
  717. package/lib/components/Tab.js +0 -14
  718. package/lib/components/Table.d.ts +0 -2
  719. package/lib/components/Table.js +0 -14
  720. package/lib/components/TableSelection.d.ts +0 -791
  721. package/lib/components/TableSelection.js +0 -183
  722. package/lib/components/Tabs.d.ts +0 -670
  723. package/lib/components/Tabs.js +0 -618
  724. package/lib/components/TabsTransfer.d.ts +0 -423
  725. package/lib/components/TabsTransfer.js +0 -232
  726. package/lib/components/TabsTransferPicker.d.ts +0 -267
  727. package/lib/components/TabsTransferPicker.js +0 -93
  728. package/lib/components/Tag.d.ts +0 -307
  729. package/lib/components/Tag.js +0 -146
  730. package/lib/components/Textarea.d.ts +0 -564
  731. package/lib/components/Textarea.js +0 -160
  732. package/lib/components/Timeline.d.ts +0 -56
  733. package/lib/components/Timeline.js +0 -68
  734. package/lib/components/TimelineItem.d.ts +0 -1292
  735. package/lib/components/TimelineItem.js +0 -118
  736. package/lib/components/Tinymce.d.ts +0 -66
  737. package/lib/components/Tinymce.js +0 -648
  738. package/lib/components/TitleBar.d.ts +0 -123
  739. package/lib/components/TitleBar.js +0 -51
  740. package/lib/components/Toast.d.ts +0 -591
  741. package/lib/components/Toast.js +0 -258
  742. package/lib/components/Tooltip.d.ts +0 -65
  743. package/lib/components/Tooltip.js +0 -43
  744. package/lib/components/TooltipWrapper.d.ts +0 -217
  745. package/lib/components/TooltipWrapper.js +0 -188
  746. package/lib/components/Transfer.d.ts +0 -1844
  747. package/lib/components/Transfer.js +0 -498
  748. package/lib/components/TransferDropDown.d.ts +0 -634
  749. package/lib/components/TransferDropDown.js +0 -106
  750. package/lib/components/TransferPicker.d.ts +0 -275
  751. package/lib/components/TransferPicker.js +0 -110
  752. package/lib/components/TransferSearch.d.ts +0 -283
  753. package/lib/components/TransferSearch.js +0 -113
  754. package/lib/components/Tree.d.ts +0 -1991
  755. package/lib/components/Tree.js +0 -1173
  756. package/lib/components/TreeSelection.d.ts +0 -601
  757. package/lib/components/TreeSelection.js +0 -209
  758. package/lib/components/UserSelect.d.ts +0 -541
  759. package/lib/components/UserSelect.js +0 -685
  760. package/lib/components/UserTabSelect.d.ts +0 -315
  761. package/lib/components/UserTabSelect.js +0 -235
  762. package/lib/components/VerificationCode.d.ts +0 -116
  763. package/lib/components/VerificationCode.js +0 -191
  764. package/lib/components/VirtualList.d.ts +0 -2
  765. package/lib/components/VirtualList.js +0 -14
  766. package/lib/components/WithRemoteConfig.d.ts +0 -383
  767. package/lib/components/WithRemoteConfig.js +0 -316
  768. package/lib/components/WithStore.d.ts +0 -72
  769. package/lib/components/WithStore.js +0 -61
  770. package/lib/components/calendar/Calendar.d.ts +0 -83
  771. package/lib/components/calendar/Calendar.js +0 -542
  772. package/lib/components/calendar/CalendarContainer.d.ts +0 -10
  773. package/lib/components/calendar/CalendarContainer.js +0 -38
  774. package/lib/components/calendar/DaysView.d.ts +0 -184
  775. package/lib/components/calendar/DaysView.js +0 -546
  776. package/lib/components/calendar/MonthsView.d.ts +0 -133
  777. package/lib/components/calendar/MonthsView.js +0 -188
  778. package/lib/components/calendar/QuartersView.d.ts +0 -102
  779. package/lib/components/calendar/QuartersView.js +0 -138
  780. package/lib/components/calendar/TimeView.d.ts +0 -183
  781. package/lib/components/calendar/TimeView.js +0 -574
  782. package/lib/components/calendar/YearsView.d.ts +0 -102
  783. package/lib/components/calendar/YearsView.js +0 -135
  784. package/lib/components/condition-builder/Expression.d.ts +0 -292
  785. package/lib/components/condition-builder/Expression.js +0 -133
  786. package/lib/components/condition-builder/Field.d.ts +0 -272
  787. package/lib/components/condition-builder/Field.js +0 -44
  788. package/lib/components/condition-builder/Formula.d.ts +0 -261
  789. package/lib/components/condition-builder/Func.d.ts +0 -273
  790. package/lib/components/condition-builder/Func.js +0 -87
  791. package/lib/components/condition-builder/Group.d.ts +0 -310
  792. package/lib/components/condition-builder/Group.js +0 -203
  793. package/lib/components/condition-builder/GroupOrItem.d.ts +0 -87
  794. package/lib/components/condition-builder/GroupOrItem.js +0 -117
  795. package/lib/components/condition-builder/InputSwitch.d.ts +0 -47
  796. package/lib/components/condition-builder/InputSwitch.js +0 -36
  797. package/lib/components/condition-builder/Item.d.ts +0 -287
  798. package/lib/components/condition-builder/Item.js +0 -244
  799. package/lib/components/condition-builder/Value.d.ts +0 -272
  800. package/lib/components/condition-builder/Value.js +0 -121
  801. package/lib/components/condition-builder/config.d.ts +0 -36
  802. package/lib/components/condition-builder/config.js +0 -125
  803. package/lib/components/condition-builder/index.d.ts +0 -319
  804. package/lib/components/condition-builder/index.js +0 -240
  805. package/lib/components/condition-builder/types.d.ts +0 -115
  806. package/lib/components/formula/CodeEditor.d.ts +0 -92
  807. package/lib/components/formula/CodeEditor.js +0 -110
  808. package/lib/components/formula/Editor.d.ts +0 -516
  809. package/lib/components/formula/Editor.js +0 -444
  810. package/lib/components/formula/FuncList.d.ts +0 -46
  811. package/lib/components/formula/FuncList.js +0 -75
  812. package/lib/components/formula/Input.d.ts +0 -292
  813. package/lib/components/formula/Input.js +0 -134
  814. package/lib/components/formula/Picker.d.ts +0 -492
  815. package/lib/components/formula/Picker.js +0 -467
  816. package/lib/components/formula/VariableList.d.ts +0 -58
  817. package/lib/components/formula/VariableList.js +0 -193
  818. package/lib/components/formula/plugin.d.ts +0 -51
  819. package/lib/components/formula/plugin.js +0 -381
  820. package/lib/components/icons.d.ts +0 -61
  821. package/lib/components/icons.js +0 -484
  822. package/lib/components/index.d.ts +0 -136
  823. package/lib/components/json-schema/Array.d.ts +0 -3
  824. package/lib/components/json-schema/Array.js +0 -140
  825. package/lib/components/json-schema/Item.d.ts +0 -5
  826. package/lib/components/json-schema/Item.js +0 -75
  827. package/lib/components/json-schema/Object.d.ts +0 -5
  828. package/lib/components/json-schema/Object.js +0 -278
  829. package/lib/components/json-schema/index.d.ts +0 -272
  830. package/lib/components/json-schema/index.js +0 -40
  831. package/lib/components/menu/MenuContext.d.ts +0 -83
  832. package/lib/components/menu/MenuContext.js +0 -29
  833. package/lib/components/menu/MenuItem.d.ts +0 -81
  834. package/lib/components/menu/MenuItem.js +0 -120
  835. package/lib/components/menu/PanelMenu.d.ts +0 -46
  836. package/lib/components/menu/PanelMenu.js +0 -74
  837. package/lib/components/menu/SubMenu.d.ts +0 -84
  838. package/lib/components/menu/SubMenu.js +0 -145
  839. package/lib/components/menu/index.d.ts +0 -381
  840. package/lib/components/menu/index.js +0 -379
  841. package/lib/components/schema-editor/Array.d.ts +0 -11
  842. package/lib/components/schema-editor/Array.js +0 -95
  843. package/lib/components/schema-editor/Common.d.ts +0 -61
  844. package/lib/components/schema-editor/Common.js +0 -174
  845. package/lib/components/schema-editor/Item.d.ts +0 -8
  846. package/lib/components/schema-editor/Item.js +0 -35
  847. package/lib/components/schema-editor/Object.d.ts +0 -51
  848. package/lib/components/schema-editor/Object.js +0 -305
  849. package/lib/components/schema-editor/SchemaVariableList.d.ts +0 -186
  850. package/lib/components/schema-editor/SchemaVariableList.js +0 -86
  851. package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +0 -179
  852. package/lib/components/schema-editor/SchemaVariableListPicker.js +0 -46
  853. package/lib/components/schema-editor/index.d.ts +0 -797
  854. package/lib/components/schema-editor/index.js +0 -131
  855. package/lib/components/table/Cell.d.ts +0 -36
  856. package/lib/components/table/Cell.js +0 -50
  857. package/lib/components/table/ColGroup.d.ts +0 -24
  858. package/lib/components/table/ColGroup.js +0 -69
  859. package/lib/components/table/Head.d.ts +0 -45
  860. package/lib/components/table/Head.js +0 -157
  861. package/lib/components/table/HeadCellDropDown.d.ts +0 -289
  862. package/lib/components/table/HeadCellDropDown.js +0 -63
  863. package/lib/components/table/HeadCellFilter.d.ts +0 -414
  864. package/lib/components/table/HeadCellFilter.js +0 -140
  865. package/lib/components/table/HeadCellSelect.d.ts +0 -357
  866. package/lib/components/table/HeadCellSelect.js +0 -60
  867. package/lib/components/table/HeadCellSort.d.ts +0 -278
  868. package/lib/components/table/HeadCellSort.js +0 -96
  869. package/lib/components/table/ItemActionsWrapper.d.ts +0 -10
  870. package/lib/components/table/ItemActionsWrapper.js +0 -40
  871. package/lib/components/table/Row.d.ts +0 -56
  872. package/lib/components/table/Row.js +0 -231
  873. package/lib/components/table/SummaryRow.d.ts +0 -28
  874. package/lib/components/table/SummaryRow.js +0 -81
  875. package/lib/components/table/index.d.ts +0 -852
  876. package/lib/components/table/index.js +0 -1081
  877. package/lib/components/table/util.d.ts +0 -56
  878. package/lib/components/table/util.js +0 -285
  879. package/lib/components/virtual-list/AutoSizer.d.ts +0 -19
  880. package/lib/components/virtual-list/AutoSizer.js +0 -76
  881. package/lib/components/virtual-list/SizeAndPositionManager.d.ts +0 -70
  882. package/lib/components/virtual-list/SizeAndPositionManager.js +0 -220
  883. package/lib/components/virtual-list/constants.d.ts +0 -34
  884. package/lib/components/virtual-list/constants.js +0 -53
  885. package/lib/components/virtual-list/index.d.ts +0 -99
  886. package/lib/components/virtual-list/index.js +0 -317
  887. package/lib/components/withBadge.d.ts +0 -2
  888. package/lib/components/withBadge.js +0 -14
  889. package/lib/helper.css +0 -47744
  890. package/lib/hooks/index.d.ts +0 -8
  891. package/lib/hooks/use-click-away.d.ts +0 -12
  892. package/lib/hooks/use-click-away.js +0 -59
  893. package/lib/hooks/use-on-screen.d.ts +0 -2
  894. package/lib/hooks/use-on-screen.js +0 -32
  895. package/lib/hooks/use-set-state.d.ts +0 -2
  896. package/lib/hooks/use-set-state.js +0 -27
  897. package/lib/hooks/use-sub-form.d.ts +0 -4
  898. package/lib/hooks/use-sub-form.js +0 -48
  899. package/lib/hooks/use-touch.d.ts +0 -16
  900. package/lib/hooks/use-touch.js +0 -81
  901. package/lib/hooks/use-update-effect.d.ts +0 -3
  902. package/lib/hooks/use-update-effect.js +0 -25
  903. package/lib/hooks/use-validation-resolver.d.ts +0 -7
  904. package/lib/hooks/use-validation-resolver.js +0 -125
  905. package/lib/icons/alert-danger.svg.js +0 -29
  906. package/lib/icons/alert-info.svg.js +0 -29
  907. package/lib/icons/alert-success.svg.js +0 -29
  908. package/lib/icons/alert-warning.svg.js +0 -29
  909. package/lib/icons/arrow-double-left.svg.js +0 -31
  910. package/lib/icons/arrow-double-right.svg.js +0 -31
  911. package/lib/icons/back.svg.js +0 -28
  912. package/lib/icons/calendar.svg.js +0 -38
  913. package/lib/icons/caret.svg.js +0 -28
  914. package/lib/icons/check.svg.js +0 -28
  915. package/lib/icons/clock.svg.js +0 -36
  916. package/lib/icons/close-small.svg.js +0 -31
  917. package/lib/icons/close.svg.js +0 -28
  918. package/lib/icons/cloud-upload.svg.js +0 -29
  919. package/lib/icons/column-filter.svg.js +0 -29
  920. package/lib/icons/columns.svg.js +0 -28
  921. package/lib/icons/compress-alt.svg.js +0 -28
  922. package/lib/icons/copy.svg.js +0 -33
  923. package/lib/icons/date.svg.js +0 -33
  924. package/lib/icons/department.svg.js +0 -59
  925. package/lib/icons/desk-empty.svg.js +0 -80
  926. package/lib/icons/dot.svg.js +0 -43
  927. package/lib/icons/down-arrow-bold.svg.js +0 -29
  928. package/lib/icons/down.svg.js +0 -30
  929. package/lib/icons/download.svg.js +0 -31
  930. package/lib/icons/drag-bar.svg.js +0 -60
  931. package/lib/icons/drag.svg.js +0 -29
  932. package/lib/icons/edit.svg.js +0 -28
  933. package/lib/icons/ellipsis-v.svg.js +0 -28
  934. package/lib/icons/enter.svg.js +0 -27
  935. package/lib/icons/exchange.svg.js +0 -28
  936. package/lib/icons/expand-alt.svg.js +0 -28
  937. package/lib/icons/fail.svg.js +0 -38
  938. package/lib/icons/file.svg.js +0 -29
  939. package/lib/icons/filter.svg.js +0 -28
  940. package/lib/icons/folder.svg.js +0 -31
  941. package/lib/icons/fullscreen.svg.js +0 -28
  942. package/lib/icons/function.svg.js +0 -28
  943. package/lib/icons/home.svg.js +0 -28
  944. package/lib/icons/if.svg.js +0 -28
  945. package/lib/icons/image.svg.js +0 -27
  946. package/lib/icons/info-circle.svg.js +0 -28
  947. package/lib/icons/info.svg.js +0 -34
  948. package/lib/icons/input-clear.svg.js +0 -27
  949. package/lib/icons/invisible.svg.js +0 -29
  950. package/lib/icons/left-arrow.svg.js +0 -30
  951. package/lib/icons/loading-outline.svg.js +0 -28
  952. package/lib/icons/location.svg.js +0 -27
  953. package/lib/icons/menu.svg.js +0 -27
  954. package/lib/icons/minus.svg.js +0 -28
  955. package/lib/icons/move.svg.js +0 -29
  956. package/lib/icons/mute.svg.js +0 -28
  957. package/lib/icons/new-edit.svg.js +0 -29
  958. package/lib/icons/pause.svg.js +0 -28
  959. package/lib/icons/pencil.svg.js +0 -28
  960. package/lib/icons/play.svg.js +0 -27
  961. package/lib/icons/plus-cicle.svg.js +0 -27
  962. package/lib/icons/plus-fine.svg.js +0 -28
  963. package/lib/icons/plus.svg.js +0 -28
  964. package/lib/icons/post.svg.js +0 -55
  965. package/lib/icons/question-mark.svg.js +0 -33
  966. package/lib/icons/question.svg.js +0 -28
  967. package/lib/icons/redo.svg.js +0 -28
  968. package/lib/icons/refresh.svg.js +0 -28
  969. package/lib/icons/reload.svg.js +0 -28
  970. package/lib/icons/remove.svg.js +0 -28
  971. package/lib/icons/retry.svg.js +0 -31
  972. package/lib/icons/right-arrow-bold.svg.js +0 -28
  973. package/lib/icons/right-arrow.svg.js +0 -30
  974. package/lib/icons/right-double-arrow.svg.js +0 -29
  975. package/lib/icons/role.svg.js +0 -50
  976. package/lib/icons/rotate-left.svg.js +0 -29
  977. package/lib/icons/rotate-right.svg.js +0 -29
  978. package/lib/icons/rotate-screen.svg.js +0 -28
  979. package/lib/icons/scale-origin.svg.js +0 -31
  980. package/lib/icons/schedule.svg.js +0 -31
  981. package/lib/icons/search.svg.js +0 -28
  982. package/lib/icons/setting.svg.js +0 -28
  983. package/lib/icons/slider-handle-icon.svg.js +0 -29
  984. package/lib/icons/sort-asc.svg.js +0 -28
  985. package/lib/icons/sort-default.svg.js +0 -28
  986. package/lib/icons/sort-desc.svg.js +0 -28
  987. package/lib/icons/star.svg.js +0 -28
  988. package/lib/icons/status-close.svg.js +0 -30
  989. package/lib/icons/steps-finsh.svg.js +0 -29
  990. package/lib/icons/sub-plus.svg.js +0 -27
  991. package/lib/icons/success.svg.js +0 -36
  992. package/lib/icons/transparent.svg.js +0 -45
  993. package/lib/icons/trash.svg.js +0 -29
  994. package/lib/icons/tree-down.svg.js +0 -28
  995. package/lib/icons/undo-normal.svg.js +0 -32
  996. package/lib/icons/undo.svg.js +0 -28
  997. package/lib/icons/unfullscreen.svg.js +0 -28
  998. package/lib/icons/upload.svg.js +0 -28
  999. package/lib/icons/user-remove.svg.js +0 -40
  1000. package/lib/icons/view.svg.js +0 -29
  1001. package/lib/icons/volume.svg.js +0 -31
  1002. package/lib/icons/warning-mark.svg.js +0 -29
  1003. package/lib/icons/warning.svg.js +0 -28
  1004. package/lib/icons/window-restore.svg.js +0 -28
  1005. package/lib/icons/zoom-in.svg.js +0 -28
  1006. package/lib/icons/zoom-out.svg.js +0 -28
  1007. package/lib/index.d.ts +0 -15
  1008. package/lib/index.js +0 -344
  1009. package/lib/locale/de-DE.d.ts +0 -1
  1010. package/lib/locale/de-DE.js +0 -421
  1011. package/lib/locale/en-US.d.ts +0 -1
  1012. package/lib/locale/en-US.js +0 -427
  1013. package/lib/locale/zh-CN.d.ts +0 -1
  1014. package/lib/locale/zh-CN.js +0 -436
  1015. package/lib/scss/helper.scss.js +0 -12
  1016. package/lib/scss/themes/ang.scss.js +0 -12
  1017. package/lib/scss/themes/antd.scss.js +0 -12
  1018. package/lib/scss/themes/cxd.scss.js +0 -12
  1019. package/lib/scss/themes/dark.scss.js +0 -12
  1020. package/lib/scss/themes/default.scss.js +0 -12
  1021. package/lib/themes/ang.css +0 -46140
  1022. package/lib/themes/ang.d.ts +0 -3
  1023. package/lib/themes/ang.js +0 -20
  1024. package/lib/themes/antd.css +0 -46127
  1025. package/lib/themes/antd.d.ts +0 -1
  1026. package/lib/themes/antd.js +0 -44
  1027. package/lib/themes/cxd.css +0 -46116
  1028. package/lib/themes/cxd.d.ts +0 -3
  1029. package/lib/themes/cxd.js +0 -459
  1030. package/lib/themes/dark.css +0 -46147
  1031. package/lib/themes/dark.d.ts +0 -3
  1032. package/lib/themes/dark.js +0 -28
  1033. package/lib/themes/default.css +0 -46116
  1034. package/lib/themes/default.d.ts +0 -4
  1035. package/lib/utils/index.d.ts +0 -2
  1036. package/lib/utils/smoothSignature.d.ts +0 -86
  1037. package/lib/utils/vectorComputed.d.ts +0 -20
  1038. package/lib/utils/vectorComputed.js +0 -84
  1039. package/lib/withRemoteConfig.d.ts +0 -2
  1040. package/lib/withRemoteConfig.js +0 -14
  1041. package/lib/withStore.d.ts +0 -2
  1042. package/lib/withStore.js +0 -14
@@ -1,1067 +0,0 @@
1
- /**
2
- * amis-ui v6.13.0-beta.7
3
- * Copyright 2018-2025 fex
4
- */
5
-
6
- import { __extends, __spreadArray, __read, __awaiter, __generator, __assign, __decorate, __metadata } from 'tslib';
7
- import React__default from 'react';
8
- import { findDOMNode } from 'react-dom';
9
- import find from 'lodash/find';
10
- import isEqual from 'lodash/isEqual';
11
- import debounce from 'lodash/debounce';
12
- import intersection from 'lodash/intersection';
13
- import Sortable from 'sortablejs';
14
- import { resizeSensor, offset, getScrollParent, position, getStyleNumber, isObject, filterTree, autobind, themeable, localeable } from 'amis-core';
15
- import Spinner from '../Spinner.js';
16
- import ItemActionsWrapper from './ItemActionsWrapper.js';
17
- import BodyCell from './Cell.js';
18
- import ColGroup from './ColGroup.js';
19
- import LazyRow from './Row.js';
20
- import Head from './Head.js';
21
- import SummaryRows from './SummaryRow.js';
22
- import { getRowsByKeys, levelsSplit, getDataChildrenKeys, checkChildrenRow, getSortData, getBuildColumns } from './util.js';
23
-
24
- /**
25
- * @file Table
26
- * @author fex
27
- */
28
- var DefaultCellWidth = 40;
29
- var Table = /** @class */ (function (_super) {
30
- __extends(Table, _super);
31
- function Table(props) {
32
- var _this = _super.call(this, props) || this;
33
- _this.tableDom = React__default.createRef();
34
- _this.tbodyDom = React__default.createRef();
35
- _this.contentDom = React__default.createRef();
36
- _this.headerDom = React__default.createRef();
37
- _this.footDom = React__default.createRef();
38
- _this.containerDom = React__default.createRef();
39
- _this.toDispose = [];
40
- _this.updateTableInfoLazy = debounce(_this.updateTableInfo.bind(_this), 250, {
41
- trailing: true,
42
- leading: false
43
- });
44
- _this.updateAutoFillHeightLazy = debounce(_this.updateAutoFillHeight.bind(_this), 250, {
45
- trailing: true,
46
- leading: false
47
- });
48
- _this.state = {
49
- selectedRowKeys: props.rowSelection
50
- ? props.rowSelection.selectedRowKeys.map(function (key) { return key; }) || []
51
- : [],
52
- expandedRowKeys: __spreadArray(__spreadArray([], __read((props.expandable ? props.expandable.expandedRowKeys || [] : [])), false), __read((props.expandable
53
- ? props.expandable.defaultExpandedRowKeys || []
54
- : [])), false),
55
- colWidths: {},
56
- hoverRow: null
57
- };
58
- return _this;
59
- }
60
- Table.prototype.getPopOverContainer = function () {
61
- return findDOMNode(this);
62
- };
63
- Table.prototype.componentDidMount = function () {
64
- var _this = this;
65
- var _a, _b, _c, _d, _e;
66
- (_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.onRef) === null || _b === void 0 ? void 0 : _b.call(_a, this);
67
- if (this.props.loading) {
68
- return;
69
- }
70
- if ((_c = this.headerDom) === null || _c === void 0 ? void 0 : _c.current) {
71
- // overflow设置为hidden的情况
72
- var hiddenDomRefs = [this.headerDom, this.footDom];
73
- hiddenDomRefs.forEach(function (ref) {
74
- return ref &&
75
- ref.current &&
76
- ref.current.addEventListener('wheel', _this.onWheel.bind(_this));
77
- });
78
- }
79
- var current = (_d = this.contentDom) === null || _d === void 0 ? void 0 : _d.current;
80
- current && this.updateTableDom(current);
81
- if (this.props.draggable && ((_e = this.tbodyDom) === null || _e === void 0 ? void 0 : _e.current)) {
82
- this.initDragging();
83
- }
84
- this.updateStickyHeader();
85
- var currentNode = findDOMNode(this);
86
- if (this.props.autoFillHeight) {
87
- this.toDispose.push(resizeSensor(currentNode.parentElement, this.updateAutoFillHeightLazy, false, 'height'));
88
- this.updateAutoFillHeight();
89
- }
90
- this.toDispose.push(resizeSensor(currentNode, this.updateTableInfoLazy, false, 'width'));
91
- };
92
- Table.prototype.componentDidUpdate = function (prevProps, prevState) {
93
- var _a, _b, _c, _d;
94
- if (prevProps.autoFillHeight !== this.props.autoFillHeight ||
95
- (prevProps.loading !== this.props.loading && this.props.autoFillHeight)) {
96
- this.updateAutoFillHeight();
97
- }
98
- // 选择项发生了变化触发
99
- if (!isEqual(prevState.selectedRowKeys, this.state.selectedRowKeys)) {
100
- var rowSelectionKeyField = this.getRowSelectionKeyField();
101
- var childrenColumnName = this.getChildrenColumnName();
102
- // 更新保存的已选择行数据
103
- var selectedResult = getRowsByKeys(this.props.dataSource, this.state.selectedRowKeys, rowSelectionKeyField, childrenColumnName);
104
- var rowSelection = this.props.rowSelection;
105
- rowSelection &&
106
- rowSelection.onChange &&
107
- rowSelection.onChange(this.state.selectedRowKeys, selectedResult.selectedRows);
108
- }
109
- // 外部传入的选择项发生了变化
110
- if (!isEqual((_a = prevProps.rowSelection) === null || _a === void 0 ? void 0 : _a.selectedRowKeys, (_b = this.props.rowSelection) === null || _b === void 0 ? void 0 : _b.selectedRowKeys)) {
111
- if (this.props.rowSelection) {
112
- this.setState({
113
- selectedRowKeys: this.props.rowSelection.selectedRowKeys
114
- });
115
- }
116
- }
117
- // 外部传入的展开项发生了变化
118
- if (!isEqual((_c = prevProps === null || prevProps === void 0 ? void 0 : prevProps.expandable) === null || _c === void 0 ? void 0 : _c.expandedRowKeys, (_d = this.props.expandable) === null || _d === void 0 ? void 0 : _d.expandedRowKeys)) {
119
- if (this.props.expandable) {
120
- this.setState({
121
- expandedRowKeys: this.props.expandable.expandedRowKeys || []
122
- });
123
- }
124
- }
125
- // 展开行变化时触发
126
- if (!isEqual(prevState.expandedRowKeys, this.state.expandedRowKeys)) {
127
- if (this.props.expandable) {
128
- var childrenColumnName = this.getChildrenColumnName();
129
- var expandableKeyField = this.getExpandableKeyField();
130
- var onExpandedRowsChange = this.props.expandable.onExpandedRowsChange;
131
- var expandedResult = getRowsByKeys(this.props.dataSource, this.state.selectedRowKeys, expandableKeyField, childrenColumnName);
132
- onExpandedRowsChange &&
133
- onExpandedRowsChange(expandedResult.selectedRows);
134
- }
135
- }
136
- // sticky属性发生了变化
137
- if (prevProps.sticky !== this.props.sticky) {
138
- this.updateStickyHeader();
139
- }
140
- if (prevProps.columns !== this.props.columns) {
141
- this.syncTableWidth();
142
- }
143
- };
144
- Table.prototype.componentWillUnmount = function () {
145
- var _this = this;
146
- var hiddenDomRefs = [this.headerDom, this.footDom];
147
- hiddenDomRefs.forEach(function (ref) {
148
- return ref &&
149
- ref.current &&
150
- ref.current.removeEventListener('wheel', _this.onWheel.bind(_this));
151
- });
152
- this.destroyDragging();
153
- this.toDispose.forEach(function (fn) { return fn(); });
154
- this.toDispose = [];
155
- this.updateTableInfoLazy.cancel();
156
- this.updateAutoFillHeightLazy.cancel();
157
- };
158
- /**
159
- * 自动设置表格高度占满界面剩余区域
160
- * 用 css 实现有点麻烦,要改很多结构,所以先用 dom hack 了,避免对之前的功能有影响
161
- */
162
- Table.prototype.updateAutoFillHeight = function () {
163
- var tableContent = this.containerDom.current;
164
- if (!tableContent) {
165
- return;
166
- }
167
- tableContent.removeAttribute('style');
168
- var autoFillHeight = this.props.autoFillHeight;
169
- if (!autoFillHeight) {
170
- return;
171
- }
172
- // 计算 table-content 在 dom 中的位置
173
- var viewportHeight = window.innerHeight;
174
- var tableContentTop = offset(tableContent).top;
175
- var parent = getScrollParent(tableContent.parentElement);
176
- if (parent && parent !== document.body) {
177
- viewportHeight = parent.clientHeight - 1;
178
- tableContentTop = position(tableContent, parent).top;
179
- }
180
- var tableContentBottom = 0;
181
- var selfNode = tableContent;
182
- var parentNode = selfNode.parentElement;
183
- while (parentNode) {
184
- var paddingBottom = getStyleNumber(parentNode, 'padding-bottom');
185
- var borderBottom = getStyleNumber(parentNode, 'border-bottom-width');
186
- var nextSiblingHeight = 0;
187
- var nextSibling = selfNode.nextElementSibling;
188
- while (nextSibling) {
189
- var positon = getComputedStyle(nextSibling).position;
190
- if (positon !== 'absolute' && positon !== 'fixed') {
191
- nextSiblingHeight +=
192
- nextSibling.offsetHeight +
193
- getStyleNumber(nextSibling, 'margin-bottom');
194
- }
195
- nextSibling = nextSibling.nextElementSibling;
196
- }
197
- var marginBottom = getStyleNumber(selfNode, 'margin-bottom');
198
- tableContentBottom +=
199
- paddingBottom + borderBottom + marginBottom + nextSiblingHeight;
200
- selfNode = parentNode;
201
- parentNode = selfNode.parentElement;
202
- if (parent && parent !== document.body && parent === selfNode) {
203
- break;
204
- }
205
- }
206
- var heightField = autoFillHeight && autoFillHeight.maxHeight
207
- ? 'maxHeight'
208
- : 'height';
209
- var heightValue = isObject(autoFillHeight)
210
- ? autoFillHeight[heightField]
211
- : 0;
212
- var tableContentHeight = heightValue
213
- ? heightValue
214
- : Math.round(viewportHeight - tableContentTop - tableContentBottom);
215
- if (tableContentHeight > 0) {
216
- tableContent.style[heightField] = "".concat(tableContentHeight, "px");
217
- tableContent.style['overflow'] = 'auto';
218
- }
219
- };
220
- Table.prototype.initDragging = function () {
221
- var _this = this;
222
- var _a;
223
- var _b = this.props, cx = _b.classnames, onDrag = _b.onDrag;
224
- this.sortable = new Sortable((_a = this.tbodyDom) === null || _a === void 0 ? void 0 : _a.current, {
225
- group: 'table',
226
- animation: 150,
227
- handle: ".".concat(cx('Table-dragCell')),
228
- ghostClass: 'is-dragging',
229
- onMove: function (e) {
230
- var dragged = e.dragged;
231
- var related = e.related;
232
- if (related &&
233
- related.classList.contains("".concat(cx('Table-summary-row')))) {
234
- return false;
235
- }
236
- var draggedLevels = dragged.getAttribute('row-levels');
237
- var relatedLevels = related.getAttribute('row-levels');
238
- // 嵌套展示 不属于同一层的 不允许拖动
239
- // 否则涉及到试图的更新,比如子元素都被拖完了
240
- if (draggedLevels !== relatedLevels) {
241
- return false;
242
- }
243
- return true;
244
- },
245
- onEnd: function (e) { return __awaiter(_this, void 0, void 0, function () {
246
- var oldIndex, newIndex, rowLevels, i;
247
- return __generator(this, function (_a) {
248
- // 没有移动
249
- if (e.newIndex === e.oldIndex) {
250
- return [2 /*return*/];
251
- }
252
- oldIndex = e.oldIndex;
253
- newIndex = e.newIndex;
254
- rowLevels = levelsSplit(e.item.getAttribute('row-levels'));
255
- if (rowLevels.length) {
256
- i = 0;
257
- while (i < rowLevels.length) {
258
- oldIndex = oldIndex - rowLevels[i] - 1;
259
- newIndex = newIndex - rowLevels[i] - 1;
260
- i++;
261
- }
262
- }
263
- onDrag && onDrag(oldIndex, newIndex, rowLevels);
264
- return [2 /*return*/];
265
- });
266
- }); }
267
- });
268
- };
269
- Table.prototype.destroyDragging = function () {
270
- this.sortable && this.sortable.destroy();
271
- this.sortable = null;
272
- };
273
- Table.prototype.updateStickyHeader = function () {
274
- var _this = this;
275
- var _a, _b;
276
- if (this.props.sticky) {
277
- // 如果设置了sticky 如果父元素设置了overflow: auto top值还需要考虑padding值
278
- var parent_1 = (_b = (_a = this.headerDom) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.parentElement;
279
- setTimeout(function () {
280
- while (parent_1 &&
281
- window.getComputedStyle(parent_1, null).getPropertyValue('overflow') !==
282
- 'auto') {
283
- parent_1 = parent_1.parentElement;
284
- }
285
- if (parent_1 &&
286
- window.getComputedStyle(parent_1, null).getPropertyValue('overflow') ===
287
- 'auto') {
288
- var paddingTop = window
289
- .getComputedStyle(parent_1, null)
290
- .getPropertyValue('padding-top');
291
- if (paddingTop && _this.headerDom && _this.headerDom.current) {
292
- _this.headerDom.current.style.top = '-' + paddingTop;
293
- }
294
- }
295
- });
296
- }
297
- };
298
- Table.prototype.renderColGroup = function (showReal) {
299
- var _a = this.props, scroll = _a.scroll, tableLayout = _a.tableLayout, columns = _a.columns, rowSelection = _a.rowSelection, expandable = _a.expandable, draggable = _a.draggable;
300
- var isFixed = !!((scroll && scroll.x) || tableLayout === 'fixed');
301
- return (React__default.createElement(ColGroup, { columns: columns, colWidths: this.state.colWidths, isFixed: isFixed, syncTableWidth: this.syncTableWidth, initTableWidth: this.initTableWidth, selectable: !!rowSelection, expandable: !!expandable, draggable: !!draggable, rowSelectionColumnWidth: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.columnWidth) || DefaultCellWidth, expandableColumnWidth: (expandable === null || expandable === void 0 ? void 0 : expandable.columnWidth) || DefaultCellWidth, isRightExpandable: this.isRightExpandable(), isLeftExpandable: this.isLeftExpandable(), showReal: showReal }));
302
- };
303
- Table.prototype.onResizeMouseDown = function (event, index) {
304
- // 点击记录起始坐标
305
- this.resizeStart = event.clientX;
306
- this.resizeTarget = event.currentTarget;
307
- var column = this.tdColumns[index];
308
- this.resizeIndex = index;
309
- var colWidth = this.state.colWidths[column.name];
310
- this.resizeWidth = colWidth.width || colWidth.realWidth;
311
- this.resizeTarget.classList.add('is-resizing');
312
- document.addEventListener('mousemove', this.onResizeMouseMove);
313
- document.addEventListener('mouseup', this.onResizeMouseUp);
314
- event && event.stopPropagation();
315
- };
316
- Table.prototype.onResizeMouseMove = function (event) {
317
- // 点击了调整列宽
318
- if (this.resizeTarget) {
319
- // 计算横向移动距离
320
- var distance = event.clientX - this.resizeStart;
321
- var column = this.tdColumns[this.resizeIndex];
322
- var newWidth = 0;
323
- if (distance > 0) {
324
- newWidth = this.resizeWidth + distance;
325
- }
326
- else {
327
- // 缩短列
328
- newWidth = Math.max(this.resizeWidth + distance, DefaultCellWidth, column.minWidth || 0);
329
- }
330
- var colWidths = this.state.colWidths;
331
- colWidths[column.name].width = newWidth;
332
- this.setState({ colWidths: __assign({}, colWidths) });
333
- }
334
- event && event.stopPropagation();
335
- };
336
- Table.prototype.onResizeMouseUp = function (event) {
337
- this.resizeTarget.classList.remove('is-resizing');
338
- document.removeEventListener('mousemove', this.onResizeMouseMove);
339
- document.removeEventListener('mouseup', this.onResizeMouseUp);
340
- this.resizeStart = -1;
341
- this.resizeWidth = 0;
342
- delete this.resizeTarget;
343
- };
344
- Table.prototype.renderHead = function () {
345
- var _this = this;
346
- var _a;
347
- var _b = this.props, columns = _b.columns, cx = _b.classnames, classPrefix = _b.classPrefix, expandable = _b.expandable, rowSelection = _b.rowSelection, draggable = _b.draggable, resizable = _b.resizable, dataSource = _b.dataSource, onSort = _b.onSort, onSelectAll = _b.onSelectAll, onFilter = _b.onFilter, testIdBuilder = _b.testIdBuilder, headerClassName = _b.headerClassName, sticky = _b.sticky, autoFillHeight = _b.autoFillHeight, scroll = _b.scroll;
348
- var rowSelectionKeyField = this.getRowSelectionKeyField();
349
- var dataList = rowSelection && rowSelection.getCheckboxProps
350
- ? filterTree(dataSource, function (data, index, level) {
351
- var props = rowSelection.getCheckboxProps(data, index);
352
- return !props.disabled;
353
- })
354
- : dataSource;
355
- var hasScrollY = scroll && scroll.y;
356
- var selfSticky = !!(hasScrollY || (sticky && autoFillHeight));
357
- return (React__default.createElement(Head, { key: "thead", selfSticky: selfSticky, columns: columns, draggable: !!draggable, selectable: !!rowSelection, rowSelectionFixed: !!(rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.fixed), rowSelectionType: rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.type, selections: rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selections, rowSelectionKeyField: rowSelectionKeyField, maxSelectedLength: rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.maxSelectedLength, isExpandable: this.isExpandableTable(), isRightExpandable: this.isRightExpandable(), isLeftExpandable: this.isLeftExpandable(), selectedRowKeys: this.state.selectedRowKeys, dataSource: dataList, resizable: resizable, expandable: !!expandable, expandableFixed: expandable === null || expandable === void 0 ? void 0 : expandable.fixed, childrenColumnName: this.getChildrenColumnName(), orderBy: (_a = this.state.sort) === null || _a === void 0 ? void 0 : _a.orderBy, popOverContainer: this.getPopOverContainer, classnames: cx, className: headerClassName, classPrefix: classPrefix, onSort: function (payload, column) {
358
- _this.setState({
359
- sort: payload
360
- });
361
- onSort && onSort(payload);
362
- }, onSelectAll: function (value, selectedRowKeys, selectedRows, restSelectedKeys) { return __awaiter(_this, void 0, void 0, function () {
363
- var prevented, keys;
364
- return __generator(this, function (_a) {
365
- switch (_a.label) {
366
- case 0:
367
- if (!onSelectAll) return [3 /*break*/, 2];
368
- return [4 /*yield*/, onSelectAll(selectedRows, value ? selectedRowKeys : [], value ? [] : selectedRows)];
369
- case 1:
370
- prevented = _a.sent();
371
- if (prevented) {
372
- return [2 /*return*/];
373
- }
374
- _a.label = 2;
375
- case 2:
376
- keys = __spreadArray(__spreadArray([], __read(selectedRowKeys), false), __read(restSelectedKeys // 更新数据要把非当前页的数据也加上
377
- ), false);
378
- if (!isEqual(keys, this.state.selectedRowKeys)) {
379
- this.setState({ selectedRowKeys: keys });
380
- }
381
- return [2 /*return*/];
382
- }
383
- });
384
- }); }, onFilter: onFilter, onResizeMouseDown: this.onResizeMouseDown.bind(this), testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('head') }));
385
- };
386
- Table.prototype.onRowClick = function (event, record, rowIndex) {
387
- return __awaiter(this, void 0, void 0, function () {
388
- var _a, rowSelection, onRow, prevented, defaultKey_1, isSelected;
389
- return __generator(this, function (_b) {
390
- switch (_b.label) {
391
- case 0:
392
- _a = this.props, rowSelection = _a.rowSelection, onRow = _a.onRow;
393
- if (!(onRow && onRow.onRowClick)) return [3 /*break*/, 2];
394
- return [4 /*yield*/, onRow.onRowClick(event, record, rowIndex)];
395
- case 1:
396
- prevented = _b.sent();
397
- if (prevented) {
398
- return [2 /*return*/];
399
- }
400
- _b.label = 2;
401
- case 2:
402
- if (rowSelection && rowSelection.type && rowSelection.rowClick) {
403
- defaultKey_1 = this.getRowSelectionKeyField();
404
- isSelected = !!find(this.state.selectedRowKeys, function (key) { return key === record[defaultKey_1]; });
405
- this.selectedSingleRow(!isSelected, record);
406
- }
407
- return [2 /*return*/];
408
- }
409
- });
410
- });
411
- };
412
- Table.prototype.onRowDbClick = function (event, record, rowIndex) {
413
- return __awaiter(this, void 0, void 0, function () {
414
- var onRow, prevented;
415
- return __generator(this, function (_a) {
416
- switch (_a.label) {
417
- case 0:
418
- onRow = this.props.onRow;
419
- if (!(onRow && onRow.onRowDbClick)) return [3 /*break*/, 2];
420
- return [4 /*yield*/, onRow.onRowDbClick(event, record, rowIndex)];
421
- case 1:
422
- prevented = _a.sent();
423
- if (prevented === false) {
424
- return [2 /*return*/];
425
- }
426
- _a.label = 2;
427
- case 2: return [2 /*return*/];
428
- }
429
- });
430
- });
431
- };
432
- Table.prototype.onRowMouseEnter = function (event, record, rowIndex) {
433
- return __awaiter(this, void 0, void 0, function () {
434
- var _a, onRow, itemActions, prevented, target;
435
- return __generator(this, function (_b) {
436
- switch (_b.label) {
437
- case 0:
438
- _a = this.props, onRow = _a.onRow, itemActions = _a.itemActions;
439
- if (!(onRow && onRow.onRowMouseEnter)) return [3 /*break*/, 2];
440
- return [4 /*yield*/, onRow.onRowMouseEnter(event, record, rowIndex)];
441
- case 1:
442
- prevented = _b.sent();
443
- if (prevented) {
444
- return [2 /*return*/];
445
- }
446
- _b.label = 2;
447
- case 2:
448
- if (record && itemActions) {
449
- target = event.target;
450
- if ((target === null || target === void 0 ? void 0 : target.tagName) !== 'TR') {
451
- target = target === null || target === void 0 ? void 0 : target.closest('tr');
452
- }
453
- this.setState({ hoverRow: { target: target, rowIndex: rowIndex, record: record } });
454
- }
455
- return [2 /*return*/];
456
- }
457
- });
458
- });
459
- };
460
- Table.prototype.onRowMouseLeave = function (event, record, rowIndex) {
461
- return __awaiter(this, void 0, void 0, function () {
462
- var onRow;
463
- return __generator(this, function (_a) {
464
- onRow = this.props.onRow;
465
- onRow &&
466
- onRow.onRowMouseLeave &&
467
- onRow.onRowMouseLeave(event, record, rowIndex);
468
- return [2 /*return*/];
469
- });
470
- });
471
- };
472
- Table.prototype.onMouseLeave = function () {
473
- var itemActions = this.props.itemActions;
474
- itemActions && this.setState({ hoverRow: null });
475
- };
476
- Table.prototype.onExpandRows = function (data) {
477
- var _this = this;
478
- var expandedRowKeys = this.state.expandedRowKeys;
479
- var expandable = this.props.expandable;
480
- var keys = data.map(function (d) { return d[_this.getExpandableKeyField()]; });
481
- this.setState({ expandedRowKeys: __spreadArray(__spreadArray([], __read(expandedRowKeys), false), __read(keys), false) });
482
- (expandable === null || expandable === void 0 ? void 0 : expandable.onExpand) && (expandable === null || expandable === void 0 ? void 0 : expandable.onExpand(true, data));
483
- };
484
- Table.prototype.onCollapseRows = function (data) {
485
- var _this = this;
486
- var expandedRowKeys = this.state.expandedRowKeys;
487
- var expandable = this.props.expandable;
488
- var keys = data.map(function (d) { return d[_this.getExpandableKeyField()]; });
489
- this.setState({
490
- expandedRowKeys: expandedRowKeys.filter(function (k) { return !keys.find(function (v) { return v == k; }); } // 模糊匹配 否则'3'、3匹配不上
491
- )
492
- });
493
- (expandable === null || expandable === void 0 ? void 0 : expandable.onExpand) && (expandable === null || expandable === void 0 ? void 0 : expandable.onExpand(true, data));
494
- };
495
- Table.prototype.getChildrenColumnName = function () {
496
- var childrenColumnName = this.props.childrenColumnName;
497
- return childrenColumnName || 'children';
498
- };
499
- Table.prototype.getRowSelectionKeyField = function () {
500
- var _a = this.props, rowSelection = _a.rowSelection, keyField = _a.keyField;
501
- return (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.keyField) || keyField || 'key';
502
- };
503
- Table.prototype.getExpandableKeyField = function () {
504
- var _a = this.props, expandable = _a.expandable, keyField = _a.keyField;
505
- return (expandable === null || expandable === void 0 ? void 0 : expandable.keyField) || keyField || 'key';
506
- };
507
- Table.prototype.hasCheckedChildrenRows = function (data) {
508
- var selectedRowKeys = this.state.selectedRowKeys;
509
- var childrenColumnName = this.getChildrenColumnName();
510
- var rowSelectionKeyField = this.getRowSelectionKeyField();
511
- var childrenKeys = getDataChildrenKeys(data, childrenColumnName, rowSelectionKeyField);
512
- var length = intersection(selectedRowKeys, childrenKeys).length;
513
- return length > 0;
514
- };
515
- Table.prototype.getSelectedRowKeys = function (isSelected, data) {
516
- var rowSelection = this.props.rowSelection;
517
- var rowSelectionKeyField = this.getRowSelectionKeyField();
518
- var childrenColumnName = this.getChildrenColumnName();
519
- var isRadio = rowSelection && rowSelection.type === 'radio';
520
- var selected = [];
521
- if (isSelected) {
522
- if (isRadio) {
523
- selected = [data[rowSelectionKeyField]];
524
- }
525
- else {
526
- selected = __spreadArray(__spreadArray(__spreadArray([], __read(this.state.selectedRowKeys), false), [
527
- data[rowSelectionKeyField]
528
- ], false), __read(getDataChildrenKeys(data, childrenColumnName, rowSelectionKeyField)), false).filter(function (key, i, a) { return a.indexOf(key) === i; });
529
- }
530
- }
531
- else {
532
- if (!isRadio) {
533
- selected = this.state.selectedRowKeys.filter(function (key) {
534
- return !__spreadArray([
535
- data[rowSelectionKeyField]
536
- ], __read(getDataChildrenKeys(data, childrenColumnName, rowSelectionKeyField)), false).includes(key);
537
- });
538
- }
539
- }
540
- return selected;
541
- };
542
- Table.prototype.selectedSingleRow = function (value, data) {
543
- return __awaiter(this, void 0, void 0, function () {
544
- var _a, onSelect, dataSource, selectedRowKeys, rowSelectionKeyField, childrenColumnName, selectedResult, prevented;
545
- return __generator(this, function (_b) {
546
- switch (_b.label) {
547
- case 0:
548
- _a = this.props, onSelect = _a.onSelect, dataSource = _a.dataSource;
549
- selectedRowKeys = this.getSelectedRowKeys(value, data);
550
- if (!onSelect) return [3 /*break*/, 2];
551
- rowSelectionKeyField = this.getRowSelectionKeyField();
552
- childrenColumnName = this.getChildrenColumnName();
553
- selectedResult = getRowsByKeys(dataSource, selectedRowKeys, rowSelectionKeyField, childrenColumnName);
554
- return [4 /*yield*/, onSelect(selectedResult.selectedRows, selectedRowKeys, selectedResult.unSelectedRows)];
555
- case 1:
556
- prevented = _b.sent();
557
- if (prevented) {
558
- return [2 /*return*/];
559
- }
560
- _b.label = 2;
561
- case 2:
562
- if (!isEqual(this.state.selectedRowKeys, selectedRowKeys)) {
563
- this.setState({ selectedRowKeys: selectedRowKeys });
564
- }
565
- return [2 /*return*/];
566
- }
567
- });
568
- });
569
- };
570
- // 展开和嵌套不能共存
571
- Table.prototype.isExpandableRow = function (data, rowIndex) {
572
- var expandable = this.props.expandable;
573
- return (expandable &&
574
- (!expandable.rowExpandable ||
575
- (expandable.rowExpandable && expandable.rowExpandable(data, rowIndex))));
576
- };
577
- Table.prototype.isExpanded = function (record) {
578
- var expandableKeyField = this.getExpandableKeyField();
579
- return !!find(this.state.expandedRowKeys, function (key) { return key == record[expandableKeyField]; }); // == 匹配 否则'3'、3匹配不上
580
- };
581
- Table.prototype.renderRow = function (data, rowIndex, levels) {
582
- var _this = this;
583
- var _a = this.props, rowSelection = _a.rowSelection, expandable = _a.expandable, indentSize = _a.indentSize, lineHeight = _a.lineHeight, draggable = _a.draggable, rowClassName = _a.rowClassName, keyField = _a.keyField, columns = _a.columns, lazyRenderAfter = _a.lazyRenderAfter, classPrefix = _a.classPrefix, cx = _a.classnames, testIdBuilder = _a.testIdBuilder;
584
- var rowSelectionKeyField = this.getRowSelectionKeyField();
585
- var isChecked = !!find(this.state.selectedRowKeys, function (key) { return key === data[rowSelectionKeyField]; });
586
- var rowTIDBuilder = testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("row-".concat(rowIndex));
587
- var childrenColumnName = this.getChildrenColumnName();
588
- // 当前行是否可展开
589
- var isExpandableRow = this.isExpandableRow(data, rowIndex);
590
- var hasChildrenRow = checkChildrenRow(data, childrenColumnName);
591
- var hasChildrenChecked = !!rowSelection && hasChildrenRow && this.hasCheckedChildrenRows(data);
592
- var expandedRowClassName = expandable &&
593
- expandable.expandedRowClassName &&
594
- typeof expandable.expandedRowClassName === 'function'
595
- ? expandable.expandedRowClassName(data, rowIndex)
596
- : '';
597
- var isExpanded = this.isExpanded(data);
598
- var checkboxProps = rowSelection && rowSelection.getCheckboxProps
599
- ? rowSelection.getCheckboxProps(data, rowIndex)
600
- : {};
601
- var children = !expandable && childrenColumnName && hasChildrenRow && isExpanded
602
- ? data[childrenColumnName].map(function (item, index) {
603
- return _this.renderRow(item, index, __spreadArray(__spreadArray([], __read(levels), false), [rowIndex], false));
604
- })
605
- : null;
606
- return [
607
- React__default.createElement(LazyRow, __assign({ key: "row-".concat(rowIndex), data: data, rowIndex: rowIndex, levels: levels.join(','), columns: columns, selectable: !!rowSelection, rowSelectionFixed: !!(rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.fixed), rowSelectionType: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.type) || 'checkbox', rowClickIgControl: !!(rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.rowClickIgControl), expandable: !!expandable, expandableFixed: expandable === null || expandable === void 0 ? void 0 : expandable.fixed, expandedRowClassName: expandedRowClassName, expandedRowRender: expandable === null || expandable === void 0 ? void 0 : expandable.expandedRowRender, isExpanded: isExpanded, hasChildrenRow: hasChildrenRow, hasChildrenChecked: hasChildrenChecked, indentSize: indentSize, lineHeight: lineHeight, draggable: !!draggable, isExpandable: this.isExpandableTable(), isExpandableRow: isExpandableRow, colCount: this.getExtraColumnCount(), isRightExpandable: this.isRightExpandable(), isLeftExpandable: this.isLeftExpandable(), isChecked: isChecked, rowClassName: rowClassName, onExpand: this.onExpandRows, onCollapse: this.onCollapseRows, onMouseEnter: this.onRowMouseEnter, onMouseLeave: this.onRowMouseLeave, onClick: this.onRowClick, onDoubleClick: this.onRowDbClick, onChange: this.onRowChange, childrenColumnName: this.getChildrenColumnName(), keyField: keyField, lazyRenderAfter: lazyRenderAfter, classnames: cx, classPrefix: classPrefix, testIdBuilder: rowTIDBuilder }, checkboxProps)),
608
- children
609
- ];
610
- };
611
- Table.prototype.onRowChange = function (value, record) {
612
- var rowSelection = this.props.rowSelection;
613
- if (!(rowSelection && rowSelection.rowClick)) {
614
- this.selectedSingleRow(value, record);
615
- }
616
- };
617
- Table.prototype.renderBody = function () {
618
- var _this = this;
619
- var _a = this.props, cx = _a.classnames, headSummary = _a.headSummary, scroll = _a.scroll, placeholder = _a.placeholder, sticky = _a.sticky, loading = _a.loading, loadingConfig = _a.loadingConfig, classPrefix = _a.classPrefix;
620
- var tdColumns = this.tdColumns;
621
- var hasScrollY = scroll && scroll.y;
622
- var colCount = this.getExtraColumnCount();
623
- var childrenColumnName = this.getChildrenColumnName();
624
- var dataSource = getSortData(this.props.dataSource, tdColumns, childrenColumnName, this.state.sort);
625
- return (React__default.createElement("tbody", { ref: this.tbodyDom, className: cx('Table-tbody') },
626
- !hasScrollY && !sticky && headSummary
627
- ? this.renderSummaryRow(headSummary)
628
- : null,
629
- !!loading ? (React__default.createElement("tr", { className: cx('Table-row', 'Table-loading-row') },
630
- React__default.createElement(BodyCell, { classnames: cx, classPrefix: classPrefix, colSpan: tdColumns.length + colCount },
631
- React__default.createElement("div", { className: cx('Table-loading') }, typeof loading === 'boolean' ? (React__default.createElement(Spinner, { overlay: true, show: loading, loadingConfig: loadingConfig })) : React__default.isValidElement(loading) ? (loading) : null)))) : !dataSource.length ? (React__default.createElement("tr", { className: cx('Table-row', 'Table-empty-row') },
632
- React__default.createElement(BodyCell, { classnames: cx, classPrefix: classPrefix, colSpan: tdColumns.length + colCount },
633
- React__default.createElement("div", { className: cx('Table-empty') }, typeof placeholder === 'function'
634
- ? placeholder()
635
- : placeholder)))) : (dataSource.map(function (data, index) { return _this.renderRow(data, index, []); }))));
636
- };
637
- Table.prototype.isExpandableTable = function () {
638
- var expandable = this.props.expandable;
639
- // 设置了expandable 优先级更高
640
- // 就不支持默认嵌套了
641
- return !!expandable;
642
- };
643
- // 展开列放到右侧 会影响之前的一些合并的规则
644
- Table.prototype.isRightExpandable = function () {
645
- var expandable = this.props.expandable;
646
- return expandable && expandable.position === 'right';
647
- };
648
- // 展开列放到左侧 还有一种情况是position为none 无展开按钮
649
- Table.prototype.isLeftExpandable = function () {
650
- var expandable = this.props.expandable;
651
- return (expandable && (!expandable.position || expandable.position === 'left'));
652
- };
653
- // 计算自动增加的列数
654
- // 选择、拖拽、展开
655
- Table.prototype.getExtraColumnCount = function () {
656
- var _a = this.props, draggable = _a.draggable, rowSelection = _a.rowSelection, expandable = _a.expandable;
657
- var count = 0;
658
- if (draggable) {
659
- count++;
660
- }
661
- else {
662
- if (this.isExpandableTable() && (expandable === null || expandable === void 0 ? void 0 : expandable.position) !== 'none') {
663
- count++;
664
- }
665
- if (rowSelection) {
666
- count++;
667
- }
668
- }
669
- return count;
670
- };
671
- Table.prototype.renderSummaryRow = function (summary) {
672
- var _a = this.props, cx = _a.classnames, classPrefix = _a.classPrefix, dataSource = _a.dataSource;
673
- if (typeof summary === 'function') {
674
- return summary(dataSource);
675
- }
676
- if (React__default.isValidElement(summary)) {
677
- return summary;
678
- }
679
- return (React__default.createElement(SummaryRows, { summary: summary, colCount: this.getExtraColumnCount(), isRightExpandable: this.isRightExpandable(), classnames: cx, classPrefix: classPrefix, dataSource: dataSource, onMouseEnter: this.onRowMouseEnter, onMouseLeave: this.onRowMouseLeave }));
680
- };
681
- Table.prototype.renderFoot = function () {
682
- var _a = this.props, cx = _a.classnames, footSummary = _a.footSummary;
683
- return (React__default.createElement("tfoot", { className: cx('Table-summary') }, this.renderSummaryRow(footSummary)));
684
- };
685
- Table.prototype.updateTableDom = function (dom) {
686
- var cx = this.props.classnames;
687
- var scrollLeft = dom.scrollLeft, scrollWidth = dom.scrollWidth, offsetWidth = dom.offsetWidth;
688
- var table = this.tableDom.current;
689
- var leftCalss = cx('Table-ping-left');
690
- if (scrollLeft > 0) {
691
- table === null || table === void 0 ? void 0 : table.classList.add(leftCalss);
692
- }
693
- else {
694
- table === null || table === void 0 ? void 0 : table.classList.remove(leftCalss);
695
- }
696
- var rightClass = cx('Table-ping-right');
697
- if (scrollLeft + offsetWidth < scrollWidth) {
698
- table === null || table === void 0 ? void 0 : table.classList.add(rightClass);
699
- }
700
- else {
701
- table === null || table === void 0 ? void 0 : table.classList.remove(rightClass);
702
- }
703
- };
704
- Table.prototype.onTableContentScroll = function (event) {
705
- this.updateTableDom(event.target);
706
- };
707
- Table.prototype.onWheel = function (event) {
708
- var _a = event, currentTarget = _a.currentTarget, deltaX = _a.deltaX;
709
- if (deltaX) {
710
- this.onTableScroll({
711
- target: currentTarget,
712
- scrollLeft: currentTarget.scrollLeft + deltaX
713
- });
714
- event.preventDefault();
715
- }
716
- };
717
- Table.prototype.onTableScroll = function (event) {
718
- var scrollDomRefs = [this.headerDom, this.contentDom, this.footDom];
719
- var target = event.target, scrollLeft = event.scrollLeft;
720
- scrollDomRefs.forEach(function (ref) {
721
- var current = ref && ref.current;
722
- if (current && current !== target) {
723
- current.scrollLeft = scrollLeft || target.scrollLeft;
724
- }
725
- });
726
- this.updateTableDom(target);
727
- };
728
- Table.prototype.renderTable = function () {
729
- var _a = this.props, scroll = _a.scroll, footSummary = _a.footSummary, showHeader = _a.showHeader, itemActions = _a.itemActions, tableLayout = _a.tableLayout, cx = _a.classnames, bodyClassname = _a.bodyClassname;
730
- var hasScrollX = scroll && scroll.x;
731
- var hoverRow = this.state.hoverRow;
732
- var tableStyle = hasScrollX
733
- ? { width: scroll.x + 'px', tableLayout: 'fixed' }
734
- : {};
735
- return (React__default.createElement("div", { ref: this.contentDom, className: cx('Table-content'), style: hasScrollX ? { overflow: 'auto hidden' } : {}, onMouseLeave: this.onMouseLeave, onScroll: this.onTableContentScroll.bind(this) },
736
- itemActions && hoverRow ? (React__default.createElement(ItemActionsWrapper, { dom: hoverRow.target, classnames: cx }, typeof itemActions === 'function'
737
- ? itemActions(hoverRow.record, hoverRow.rowIndex)
738
- : null)) : null,
739
- React__default.createElement("table", { style: __assign(__assign({}, tableStyle), { tableLayout: tableLayout === 'fixed' ? 'fixed' : 'auto' }), className: cx('Table-table', bodyClassname) },
740
- this.renderColGroup(),
741
- showHeader ? this.renderHead() : null,
742
- this.renderBody(),
743
- footSummary ? this.renderFoot() : null)));
744
- };
745
- Table.prototype.renderScrollTableHeader = function () {
746
- var _a;
747
- var _b = this.props, scroll = _b.scroll, headSummary = _b.headSummary, sticky = _b.sticky, showHeader = _b.showHeader, cx = _b.classnames, headerClassName = _b.headerClassName;
748
- var style = { overflow: 'hidden' };
749
- if (!!sticky) {
750
- Object.assign(style, { top: 0 });
751
- }
752
- var tableStyle = {};
753
- if (scroll && (scroll.y || scroll.x)) {
754
- Object.assign(tableStyle, {
755
- width: scroll && scroll.x
756
- ? typeof scroll.x === 'number'
757
- ? scroll.x + 'px'
758
- : scroll.x
759
- : '100%'
760
- });
761
- }
762
- return (React__default.createElement("div", { ref: this.headerDom, className: cx('Table-header', (_a = {},
763
- _a[cx('Table-sticky-holder')] = !!sticky,
764
- _a), headerClassName), style: style },
765
- React__default.createElement("table", { className: cx('Table-table'), style: __assign(__assign({}, tableStyle), { tableLayout: 'fixed' }) },
766
- this.renderColGroup(true),
767
- showHeader ? this.renderHead() : null,
768
- headSummary ? (React__default.createElement("tbody", null, this.renderSummaryRow(headSummary))) : null)));
769
- };
770
- Table.prototype.renderScrollTableBody = function () {
771
- var _a = this.props, scroll = _a.scroll, itemActions = _a.itemActions, cx = _a.classnames, bodyClassname = _a.bodyClassname;
772
- var style = {};
773
- var tableStyle = {};
774
- if (scroll && (scroll.y || scroll.x)) {
775
- Object.assign(style, {
776
- overflow: 'auto scroll',
777
- maxHeight: scroll.y
778
- });
779
- Object.assign(tableStyle, {
780
- width: scroll && scroll.x
781
- ? typeof scroll.x === 'number'
782
- ? scroll.x + 'px'
783
- : scroll.x
784
- : '100%'
785
- });
786
- }
787
- var hoverRow = this.state.hoverRow;
788
- return (React__default.createElement("div", { ref: this.contentDom, className: cx('Table-body'), style: style, onMouseLeave: this.onMouseLeave, onScroll: this.onTableScroll },
789
- itemActions && hoverRow ? (React__default.createElement(ItemActionsWrapper, { dom: hoverRow.target, classnames: cx }, typeof itemActions === 'function'
790
- ? itemActions(hoverRow.record, hoverRow.rowIndex)
791
- : null)) : null,
792
- React__default.createElement("table", { className: cx('Table-table', bodyClassname), style: __assign(__assign({}, tableStyle), { tableLayout: 'fixed' }) },
793
- this.renderColGroup(),
794
- this.renderBody())));
795
- };
796
- Table.prototype.renderScrollTableFoot = function () {
797
- var _a = this.props, scroll = _a.scroll, cx = _a.classnames;
798
- return (React__default.createElement("div", { ref: this.footDom, className: cx('Table-summary'), style: { overflow: 'hidden' } },
799
- React__default.createElement("table", { className: cx('Table-table'), style: { width: (scroll === null || scroll === void 0 ? void 0 : scroll.x) + 'px' || '100%', tableLayout: 'fixed' } }, this.renderFoot())));
800
- };
801
- Table.prototype.renderScrollTable = function () {
802
- var _a = this.props, footSummary = _a.footSummary, cx = _a.classnames;
803
- return (React__default.createElement("div", { className: cx('Table-container'), ref: this.containerDom },
804
- this.renderScrollTableHeader(),
805
- this.renderScrollTableBody(),
806
- footSummary ? this.renderScrollTableFoot() : null));
807
- };
808
- Table.prototype.syncTableWidth = function () {
809
- var _this = this;
810
- var tbodyDom = this.tbodyDom.current;
811
- if (!tbodyDom) {
812
- return;
813
- }
814
- var cols = [].slice.call(tbodyDom === null || tbodyDom === void 0 ? void 0 : tbodyDom.querySelectorAll(':scope>tr>td[data-col]'));
815
- var colWidths = {};
816
- cols.forEach(function (col) {
817
- var index = parseInt(col.getAttribute('data-col'), 10);
818
- var column = _this.tdColumns[index];
819
- var item = _this.state.colWidths[column.name];
820
- if (column) {
821
- colWidths[column.name] = {
822
- width: (item === null || item === void 0 ? void 0 : item.originWidth) !== (column === null || column === void 0 ? void 0 : column.width) ? column === null || column === void 0 ? void 0 : column.width : item === null || item === void 0 ? void 0 : item.width,
823
- minWidth: column === null || column === void 0 ? void 0 : column.minWidth,
824
- realWidth: col.offsetWidth,
825
- originWidth: column === null || column === void 0 ? void 0 : column.width
826
- };
827
- }
828
- });
829
- if (!isEqual(colWidths, this.state.colWidths)) {
830
- this.setState({ colWidths: colWidths });
831
- }
832
- };
833
- Table.prototype.initTableWidth = function () {
834
- var _this = this;
835
- var tableWrapperDom = this.contentDom.current;
836
- if (!tableWrapperDom) {
837
- return;
838
- }
839
- var _a = this.props, scroll = _a.scroll, tableLayout = _a.tableLayout;
840
- var table = tableWrapperDom.querySelector('table');
841
- var thead = tableWrapperDom.querySelector('thead');
842
- if (!thead) {
843
- if (this.headerDom.current) {
844
- thead = this.headerDom.current.querySelector('thead');
845
- }
846
- }
847
- var tableWidth = scroll && scroll.x ? scroll.x : tableWrapperDom.offsetWidth;
848
- var tbody = null;
849
- var htmls = [];
850
- var isFixed = tableLayout === 'fixed' || (scroll && scroll.x);
851
- var someSettedWidth = this.tdColumns.some(function (column) { return column.width; });
852
- var minWidths = {};
853
- // fixed 模式需要参考 auto 获得列最小宽度
854
- if (isFixed) {
855
- tbody = (table === null || table === void 0 ? void 0 : table.querySelector(':scope>tbody')) || null;
856
- htmls.push("<table style=\"table-layout:auto!important;width:0!important;min-width:0!important;\" class=\"".concat(table === null || table === void 0 ? void 0 : table.className, "\">").concat(thead === null || thead === void 0 ? void 0 : thead.outerHTML, "</table>"));
857
- }
858
- if (someSettedWidth || isFixed) {
859
- htmls.push("<table style=\"table-layout:auto!important;min-width:".concat(tableWidth, "px!important;width:").concat(tableWidth, "px!important;\" class=\"").concat(table === null || table === void 0 ? void 0 : table.className, "\">").concat(thead ? thead.outerHTML : '').concat(tbody ? "<tbody>".concat(tbody.innerHTML, "</tbody>") : '', "</table>"));
860
- }
861
- if (!htmls.length) {
862
- return;
863
- }
864
- var div = document.createElement('div');
865
- div.className = 'amis-scope'; // jssdk 里面 css 会在这一层
866
- div.style.cssText += "visibility: hidden!important;";
867
- div.innerHTML = htmls.join('');
868
- var ths1 = [];
869
- var ths2 = [];
870
- if (isFixed) {
871
- ths1 = [].slice.call(div.querySelectorAll(':scope>table:first-child>thead>tr>th[data-col]'));
872
- }
873
- if (someSettedWidth || isFixed) {
874
- ths2 = [].slice.call(div.querySelectorAll(':scope>table:last-child>thead>tr>th[data-col]'));
875
- }
876
- ths1.forEach(function (th) {
877
- th.style.cssText += 'width: 0';
878
- });
879
- ths2.forEach(function (th, index) {
880
- var column = _this.tdColumns[index];
881
- th.style.cssText += "".concat(typeof (column === null || column === void 0 ? void 0 : column.width) === 'number'
882
- ? "width: ".concat(column === null || column === void 0 ? void 0 : column.width, "px;")
883
- : (column === null || column === void 0 ? void 0 : column.width)
884
- ? "width: ".concat(column === null || column === void 0 ? void 0 : column.width, ";")
885
- : '');
886
- });
887
- document.body.appendChild(div);
888
- var colWidths = {};
889
- ths1.forEach(function (th) {
890
- var index = parseInt(th.getAttribute('data-col'), 10);
891
- var column = _this.tdColumns[index];
892
- minWidths[index] = th.clientWidth;
893
- if (colWidths[index]) {
894
- colWidths[column === null || column === void 0 ? void 0 : column.name].minWidth = th.clientWidth;
895
- }
896
- else {
897
- colWidths[column === null || column === void 0 ? void 0 : column.name] = { minWidth: th.clientWidth };
898
- }
899
- });
900
- ths2.forEach(function (col) {
901
- var index = parseInt(col.getAttribute('data-col'), 10);
902
- var column = _this.tdColumns[index];
903
- if (column && (column.width || isFixed)) {
904
- var width = Math.max(typeof column.width === 'number' ? column.width : col.clientWidth, minWidths[index] || 0);
905
- if (colWidths[column === null || column === void 0 ? void 0 : column.name]) {
906
- colWidths[column === null || column === void 0 ? void 0 : column.name].width = width;
907
- }
908
- else {
909
- colWidths[column === null || column === void 0 ? void 0 : column.name] = { width: width };
910
- }
911
- if (column.width) {
912
- colWidths[column === null || column === void 0 ? void 0 : column.name].originWidth = column.width;
913
- }
914
- }
915
- });
916
- if (!isEqual(colWidths, this.state.colWidths)) {
917
- this.setState({ colWidths: colWidths });
918
- }
919
- document.body.removeChild(div);
920
- };
921
- Table.prototype.updateTableInfo = function () {
922
- if (this.resizeTarget) {
923
- return;
924
- }
925
- this.syncTableWidth();
926
- this.initTableWidth();
927
- };
928
- Table.prototype.render = function () {
929
- var _a, _b;
930
- var _c = this.props, title = _c.title, footer = _c.footer, className = _c.className, scroll = _c.scroll, size = _c.size, bordered = _c.bordered, resizable = _c.resizable, columns = _c.columns, sticky = _c.sticky, autoFillHeight = _c.autoFillHeight, cx = _c.classnames;
931
- var _d = getBuildColumns(columns), thColumns = _d.thColumns, tdColumns = _d.tdColumns;
932
- this.thColumns = thColumns;
933
- this.tdColumns = tdColumns;
934
- // 是否设置了纵向滚动
935
- var hasScrollY = scroll && scroll.y;
936
- // 是否设置了横向滚动
937
- var hasScrollX = scroll && scroll.x;
938
- var style = {};
939
- if (hasScrollY) {
940
- Object.assign(style, {
941
- overflow: 'auto scroll',
942
- maxHeight: scroll.y
943
- });
944
- }
945
- return (React__default.createElement("div", { ref: this.tableDom, className: cx('Table2', className, (_a = {},
946
- _a[cx('Table-scroll-horizontal')] = hasScrollX,
947
- _a[cx("Table-".concat(size))] = size,
948
- _a[cx('Table-bordered')] = bordered,
949
- _a[cx('Table-resizable')] = resizable,
950
- _a)) },
951
- title ? (React__default.createElement("div", { className: cx('Table-title') }, typeof title === 'function' ? title() : title)) : null,
952
- !hasScrollY && !(sticky && autoFillHeight) ? (this.renderScrollTable()) : (React__default.createElement("div", { className: cx('Table-container', (_b = {},
953
- _b[cx('Table-container-self-sticky')] = hasScrollY || (sticky && autoFillHeight),
954
- _b)), style: style, ref: this.containerDom }, this.renderTable())),
955
- footer ? (React__default.createElement("div", { className: cx('Table-footer') }, typeof footer === 'function' ? footer() : footer)) : null));
956
- };
957
- Table.defaultProps = {
958
- title: '',
959
- className: '',
960
- dataSource: [],
961
- columns: [],
962
- indentSize: 15,
963
- placeholder: '暂无数据',
964
- showHeader: true,
965
- tableLayout: 'auto'
966
- };
967
- __decorate([
968
- autobind,
969
- __metadata("design:type", Function),
970
- __metadata("design:paramtypes", []),
971
- __metadata("design:returntype", void 0)
972
- ], Table.prototype, "getPopOverContainer", null);
973
- __decorate([
974
- autobind,
975
- __metadata("design:type", Function),
976
- __metadata("design:paramtypes", []),
977
- __metadata("design:returntype", void 0)
978
- ], Table.prototype, "updateAutoFillHeight", null);
979
- __decorate([
980
- autobind,
981
- __metadata("design:type", Function),
982
- __metadata("design:paramtypes", [Object]),
983
- __metadata("design:returntype", void 0)
984
- ], Table.prototype, "onResizeMouseMove", null);
985
- __decorate([
986
- autobind,
987
- __metadata("design:type", Function),
988
- __metadata("design:paramtypes", [MouseEvent]),
989
- __metadata("design:returntype", void 0)
990
- ], Table.prototype, "onResizeMouseUp", null);
991
- __decorate([
992
- autobind,
993
- __metadata("design:type", Function),
994
- __metadata("design:paramtypes", [Object, Object, Number]),
995
- __metadata("design:returntype", Promise)
996
- ], Table.prototype, "onRowClick", null);
997
- __decorate([
998
- autobind,
999
- __metadata("design:type", Function),
1000
- __metadata("design:paramtypes", [Object, Object, Number]),
1001
- __metadata("design:returntype", Promise)
1002
- ], Table.prototype, "onRowDbClick", null);
1003
- __decorate([
1004
- autobind,
1005
- __metadata("design:type", Function),
1006
- __metadata("design:paramtypes", [Object, Object, Number]),
1007
- __metadata("design:returntype", Promise)
1008
- ], Table.prototype, "onRowMouseEnter", null);
1009
- __decorate([
1010
- autobind,
1011
- __metadata("design:type", Function),
1012
- __metadata("design:paramtypes", [Object, Object, Number]),
1013
- __metadata("design:returntype", Promise)
1014
- ], Table.prototype, "onRowMouseLeave", null);
1015
- __decorate([
1016
- autobind,
1017
- __metadata("design:type", Function),
1018
- __metadata("design:paramtypes", []),
1019
- __metadata("design:returntype", void 0)
1020
- ], Table.prototype, "onMouseLeave", null);
1021
- __decorate([
1022
- autobind,
1023
- __metadata("design:type", Function),
1024
- __metadata("design:paramtypes", [Array]),
1025
- __metadata("design:returntype", void 0)
1026
- ], Table.prototype, "onExpandRows", null);
1027
- __decorate([
1028
- autobind,
1029
- __metadata("design:type", Function),
1030
- __metadata("design:paramtypes", [Array]),
1031
- __metadata("design:returntype", void 0)
1032
- ], Table.prototype, "onCollapseRows", null);
1033
- __decorate([
1034
- autobind,
1035
- __metadata("design:type", Function),
1036
- __metadata("design:paramtypes", [Boolean, Object]),
1037
- __metadata("design:returntype", void 0)
1038
- ], Table.prototype, "onRowChange", null);
1039
- __decorate([
1040
- autobind,
1041
- __metadata("design:type", Function),
1042
- __metadata("design:paramtypes", [Object]),
1043
- __metadata("design:returntype", void 0)
1044
- ], Table.prototype, "onTableScroll", null);
1045
- __decorate([
1046
- autobind,
1047
- __metadata("design:type", Function),
1048
- __metadata("design:paramtypes", []),
1049
- __metadata("design:returntype", void 0)
1050
- ], Table.prototype, "syncTableWidth", null);
1051
- __decorate([
1052
- autobind,
1053
- __metadata("design:type", Function),
1054
- __metadata("design:paramtypes", []),
1055
- __metadata("design:returntype", void 0)
1056
- ], Table.prototype, "initTableWidth", null);
1057
- __decorate([
1058
- autobind,
1059
- __metadata("design:type", Function),
1060
- __metadata("design:paramtypes", []),
1061
- __metadata("design:returntype", void 0)
1062
- ], Table.prototype, "updateTableInfo", null);
1063
- return Table;
1064
- }(React__default.PureComponent));
1065
- var Table$1 = themeable(localeable(Table));
1066
-
1067
- export { DefaultCellWidth, Table, Table$1 as default };