amis-ui 6.13.0-beta.8 → 6.13.0

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 (1074) hide show
  1. package/esm/components/404.d.ts +53 -0
  2. package/esm/components/404.js +35 -0
  3. package/esm/components/Alert.d.ts +615 -0
  4. package/esm/components/Alert.js +266 -0
  5. package/esm/components/Alert2.d.ts +117 -0
  6. package/esm/components/Alert2.js +58 -0
  7. package/esm/components/AlphabetIndexer.d.ts +11 -0
  8. package/esm/components/AlphabetIndexer.js +48 -0
  9. package/esm/components/AnchorNav.d.ts +162 -0
  10. package/esm/components/AnchorNav.js +153 -0
  11. package/esm/components/AnchorNavSection.d.ts +2 -0
  12. package/esm/components/AnchorNavSection.js +7 -0
  13. package/esm/components/ArrayInput.d.ts +617 -0
  14. package/esm/components/ArrayInput.js +147 -0
  15. package/esm/components/AsideNav.d.ts +142 -0
  16. package/esm/components/AsideNav.js +133 -0
  17. package/esm/components/AssociatedSelection.d.ts +564 -0
  18. package/esm/components/AssociatedSelection.js +107 -0
  19. package/esm/components/AutoFoldedList.d.ts +87 -0
  20. package/esm/components/AutoFoldedList.js +124 -0
  21. package/esm/components/AutoSizer.d.ts +2 -0
  22. package/esm/components/AutoSizer.js +8 -0
  23. package/esm/components/Avatar.d.ts +374 -0
  24. package/esm/components/Avatar.js +126 -0
  25. package/esm/components/Badge.d.ts +118 -0
  26. package/esm/components/Badge.js +154 -0
  27. package/esm/components/BaiduMapPicker.d.ts +100 -0
  28. package/esm/components/BaiduMapPicker.js +366 -0
  29. package/esm/components/BarCode.d.ts +56 -0
  30. package/esm/components/BarCode.js +42 -0
  31. package/esm/components/Breadcrumb.d.ts +115 -0
  32. package/esm/components/Breadcrumb.js +160 -0
  33. package/esm/components/Button.d.ts +147 -0
  34. package/esm/components/Button.js +63 -0
  35. package/esm/components/CalendarMobile.d.ts +431 -0
  36. package/esm/components/CalendarMobile.js +538 -0
  37. package/esm/components/Card.d.ts +444 -0
  38. package/esm/components/Card.js +88 -0
  39. package/esm/components/Cascader.d.ts +108 -0
  40. package/esm/components/Cascader.js +515 -0
  41. package/esm/components/ChainedDropdownSelection.d.ts +561 -0
  42. package/esm/components/ChainedDropdownSelection.js +104 -0
  43. package/esm/components/ChainedSelection.d.ts +554 -0
  44. package/esm/components/ChainedSelection.js +184 -0
  45. package/esm/components/Checkbox.d.ts +110 -0
  46. package/esm/components/Checkbox.js +87 -0
  47. package/esm/components/CityArea.d.ts +299 -0
  48. package/esm/components/CityArea.js +190 -0
  49. package/esm/components/CityDB.d.ts +13 -0
  50. package/esm/components/CityDB.js +3942 -0
  51. package/esm/components/CodeMirror.d.ts +29 -0
  52. package/esm/components/CodeMirror.js +140 -0
  53. package/esm/components/Collapse.d.ts +447 -0
  54. package/esm/components/Collapse.js +184 -0
  55. package/esm/components/CollapseGroup.d.ts +219 -0
  56. package/esm/components/CollapseGroup.js +117 -0
  57. package/esm/components/ColorPicker.d.ts +530 -0
  58. package/esm/components/ColorPicker.js +260 -0
  59. package/esm/components/Combo.d.ts +354 -0
  60. package/esm/components/Combo.js +212 -0
  61. package/esm/components/ConditionBuilder.d.ts +2 -0
  62. package/esm/components/ConditionBuilder.js +7 -0
  63. package/esm/components/ConfirmBox.d.ts +322 -0
  64. package/esm/components/ConfirmBox.js +129 -0
  65. package/esm/components/ContextMenu.d.ts +115 -0
  66. package/esm/components/ContextMenu.js +310 -0
  67. package/esm/components/DatePicker.d.ts +638 -0
  68. package/esm/components/DatePicker.js +717 -0
  69. package/esm/components/DateRangePicker.d.ts +1046 -0
  70. package/esm/components/DateRangePicker.js +1386 -0
  71. package/esm/components/DiffEditor.d.ts +21 -0
  72. package/esm/components/DiffEditor.js +119 -0
  73. package/esm/components/DndContainer.d.ts +205 -0
  74. package/esm/components/DndContainer.js +25 -0
  75. package/esm/components/Drawer.d.ts +159 -0
  76. package/esm/components/Drawer.js +272 -0
  77. package/esm/components/DropDownSelection.d.ts +557 -0
  78. package/esm/components/DropDownSelection.js +78 -0
  79. package/esm/components/DropdownContextMenus.d.ts +84 -0
  80. package/esm/components/DropdownContextMenus.js +93 -0
  81. package/esm/components/Editor.d.ts +681 -0
  82. package/esm/components/Editor.js +238 -0
  83. package/esm/components/Form.d.ts +31 -0
  84. package/esm/components/Form.js +84 -0
  85. package/esm/components/FormField.d.ts +287 -0
  86. package/esm/components/FormField.js +78 -0
  87. package/esm/components/FormulaPicker.d.ts +2 -0
  88. package/esm/components/FormulaPicker.js +7 -0
  89. package/esm/components/GaodeMapPicker.d.ts +89 -0
  90. package/esm/components/GaodeMapPicker.js +204 -0
  91. package/esm/components/GridNav.d.ts +53 -0
  92. package/esm/components/GridNav.js +125 -0
  93. package/esm/components/GridNavItem.d.ts +2 -0
  94. package/esm/components/GridNavItem.js +7 -0
  95. package/esm/components/GroupedSelection.d.ts +543 -0
  96. package/esm/components/GroupedSelection.js +138 -0
  97. package/esm/components/HeadCellDropDown.d.ts +2 -0
  98. package/esm/components/HeadCellDropDown.js +7 -0
  99. package/esm/components/HorizontalScroll.d.ts +75 -0
  100. package/esm/components/HorizontalScroll.js +271 -0
  101. package/esm/components/Html.d.ts +82 -0
  102. package/esm/components/Html.js +52 -0
  103. package/esm/components/Icon.d.ts +2 -0
  104. package/esm/components/Icon.js +7 -0
  105. package/esm/components/ImageGallery.d.ts +465 -0
  106. package/esm/components/ImageGallery.js +396 -0
  107. package/esm/components/Input.d.ts +18 -0
  108. package/esm/components/Input.js +75 -0
  109. package/esm/components/InputBox.d.ts +100 -0
  110. package/esm/components/InputBox.js +98 -0
  111. package/esm/components/InputBoxWithSuggestion.d.ts +272 -0
  112. package/esm/components/InputBoxWithSuggestion.js +69 -0
  113. package/esm/components/InputJSONSchema.d.ts +2 -0
  114. package/esm/components/InputJSONSchema.js +7 -0
  115. package/esm/components/InputTable.d.ts +317 -0
  116. package/esm/components/InputTable.js +176 -0
  117. package/esm/components/JSONSchemaEditor.d.ts +2 -0
  118. package/esm/components/JSONSchemaEditor.js +7 -0
  119. package/esm/components/Layout.d.ts +74 -0
  120. package/esm/components/Layout.js +60 -0
  121. package/esm/components/Link.d.ts +60 -0
  122. package/esm/components/Link.js +44 -0
  123. package/esm/components/ListGroup.d.ts +77 -0
  124. package/esm/components/ListGroup.js +31 -0
  125. package/esm/components/ListMenu.d.ts +568 -0
  126. package/esm/components/ListMenu.js +62 -0
  127. package/esm/components/LocationPicker.d.ts +467 -0
  128. package/esm/components/LocationPicker.js +208 -0
  129. package/esm/components/Markdown.d.ts +25 -0
  130. package/esm/components/Markdown.js +70 -0
  131. package/esm/components/Menu.d.ts +2 -0
  132. package/esm/components/Menu.js +7 -0
  133. package/esm/components/MixedInput.d.ts +55 -0
  134. package/esm/components/MixedInput.js +88 -0
  135. package/esm/components/MobileDevTool.d.ts +12 -0
  136. package/esm/components/MobileDevTool.js +312 -0
  137. package/esm/components/Modal.d.ts +1316 -0
  138. package/esm/components/Modal.js +261 -0
  139. package/esm/components/ModalManager.d.ts +17 -0
  140. package/esm/components/ModalManager.js +42 -0
  141. package/esm/components/MonthRangePicker.d.ts +744 -0
  142. package/esm/components/MultilineText.d.ts +454 -0
  143. package/esm/components/MultilineText.js +90 -0
  144. package/esm/components/NumberInput.d.ts +201 -0
  145. package/esm/components/NumberInput.js +274 -0
  146. package/esm/components/OverflowTpl.d.ts +61 -0
  147. package/esm/components/OverflowTpl.js +101 -0
  148. package/esm/components/Pagination.d.ts +812 -0
  149. package/esm/components/Pagination.js +377 -0
  150. package/esm/components/PdfViewer.d.ts +49 -0
  151. package/esm/components/PdfViewer.js +83 -0
  152. package/esm/components/Picker.d.ts +277 -0
  153. package/esm/components/Picker.js +73 -0
  154. package/esm/components/PickerColumn.d.ts +62 -0
  155. package/esm/components/PickerColumn.js +276 -0
  156. package/esm/components/PickerContainer.d.ts +291 -0
  157. package/esm/components/PickerContainer.js +157 -0
  158. package/esm/components/PopOverContainer.d.ts +59 -0
  159. package/esm/components/PopOverContainer.js +149 -0
  160. package/esm/components/PopUp.d.ts +573 -0
  161. package/esm/components/PopUp.js +85 -0
  162. package/esm/components/Progress.d.ts +311 -0
  163. package/esm/components/Progress.js +136 -0
  164. package/esm/components/PullRefresh.d.ts +79 -0
  165. package/esm/components/PullRefresh.js +172 -0
  166. package/esm/components/Radios.d.ts +170 -0
  167. package/esm/components/Radios.js +129 -0
  168. package/esm/components/Range.d.ts +131 -0
  169. package/esm/components/Range.js +517 -0
  170. package/esm/components/Rating.d.ts +227 -0
  171. package/esm/components/Rating.js +341 -0
  172. package/esm/components/ResultBox.d.ts +532 -0
  173. package/esm/components/ResultBox.js +195 -0
  174. package/esm/components/ResultList.d.ts +554 -0
  175. package/esm/components/ResultList.js +254 -0
  176. package/esm/components/ResultTableList.d.ts +786 -0
  177. package/esm/components/ResultTableList.js +152 -0
  178. package/esm/components/ResultTreeList.d.ts +425 -0
  179. package/esm/components/ResultTreeList.js +241 -0
  180. package/esm/components/RichText.d.ts +48 -0
  181. package/esm/components/RichText.js +271 -0
  182. package/esm/components/SearchBox.d.ts +625 -0
  183. package/esm/components/SearchBox.js +299 -0
  184. package/esm/components/Select.d.ts +6498 -0
  185. package/esm/components/Select.js +815 -0
  186. package/esm/components/SelectMobile.d.ts +38 -0
  187. package/esm/components/SelectMobile.js +370 -0
  188. package/esm/components/Selection.d.ts +598 -0
  189. package/esm/components/Selection.js +166 -0
  190. package/esm/components/Shape.d.ts +58 -0
  191. package/esm/components/Shape.js +429 -0
  192. package/esm/components/Signature.d.ts +279 -0
  193. package/esm/components/Signature.js +293 -0
  194. package/esm/components/Slider.d.ts +56 -0
  195. package/esm/components/Slider.js +140 -0
  196. package/esm/components/SparkLine.d.ts +397 -0
  197. package/esm/components/SparkLine.js +62 -0
  198. package/esm/components/Spinner.d.ts +266 -0
  199. package/esm/components/Spinner.js +202 -0
  200. package/esm/components/Steps.d.ts +117 -0
  201. package/esm/components/Steps.js +76 -0
  202. package/esm/components/Switch.d.ts +105 -0
  203. package/esm/components/Switch.js +73 -0
  204. package/esm/components/Tab.d.ts +2 -0
  205. package/esm/components/Tab.js +7 -0
  206. package/esm/components/Table.d.ts +2 -0
  207. package/esm/components/Table.js +7 -0
  208. package/esm/components/TableSelection.d.ts +791 -0
  209. package/esm/components/TableSelection.js +169 -0
  210. package/esm/components/Tabs.d.ts +670 -0
  211. package/esm/components/Tabs.js +607 -0
  212. package/esm/components/TabsTransfer.d.ts +423 -0
  213. package/esm/components/TabsTransfer.js +221 -0
  214. package/esm/components/TabsTransferPicker.d.ts +267 -0
  215. package/esm/components/TabsTransferPicker.js +81 -0
  216. package/esm/components/Tag.d.ts +318 -0
  217. package/esm/components/Tag.js +137 -0
  218. package/esm/components/Textarea.d.ts +564 -0
  219. package/esm/components/Textarea.js +147 -0
  220. package/esm/components/Timeline.d.ts +56 -0
  221. package/esm/components/Timeline.js +60 -0
  222. package/esm/components/TimelineItem.d.ts +1292 -0
  223. package/esm/components/TimelineItem.js +101 -0
  224. package/esm/components/Tinymce.d.ts +66 -0
  225. package/esm/components/Tinymce.js +632 -0
  226. package/esm/components/TitleBar.d.ts +123 -0
  227. package/esm/components/TitleBar.js +48 -0
  228. package/esm/components/Toast.d.ts +591 -0
  229. package/esm/components/Toast.js +247 -0
  230. package/esm/components/Tooltip.d.ts +65 -0
  231. package/esm/components/Tooltip.js +36 -0
  232. package/esm/components/TooltipWrapper.d.ts +217 -0
  233. package/esm/components/TooltipWrapper.js +181 -0
  234. package/esm/components/Transfer.d.ts +1844 -0
  235. package/esm/components/Transfer.js +485 -0
  236. package/esm/components/TransferDropDown.d.ts +634 -0
  237. package/esm/components/TransferDropDown.js +98 -0
  238. package/esm/components/TransferPicker.d.ts +275 -0
  239. package/esm/components/TransferPicker.js +98 -0
  240. package/esm/components/TransferSearch.d.ts +283 -0
  241. package/esm/components/TransferSearch.js +100 -0
  242. package/esm/components/Tree.d.ts +1953 -0
  243. package/esm/components/Tree.js +1220 -0
  244. package/esm/components/TreeSelection.d.ts +601 -0
  245. package/esm/components/TreeSelection.js +201 -0
  246. package/esm/components/UserSelect.d.ts +541 -0
  247. package/esm/components/UserSelect.js +674 -0
  248. package/esm/components/UserTabSelect.d.ts +315 -0
  249. package/esm/components/UserTabSelect.js +227 -0
  250. package/esm/components/VerificationCode.d.ts +116 -0
  251. package/esm/components/VerificationCode.js +172 -0
  252. package/esm/components/VirtualList.d.ts +2 -0
  253. package/esm/components/VirtualList.js +7 -0
  254. package/esm/components/WithRemoteConfig.d.ts +383 -0
  255. package/esm/components/WithRemoteConfig.js +302 -0
  256. package/esm/components/WithStore.d.ts +72 -0
  257. package/esm/components/WithStore.js +48 -0
  258. package/esm/components/calendar/Calendar.d.ts +83 -0
  259. package/esm/components/calendar/Calendar.js +529 -0
  260. package/esm/components/calendar/CalendarContainer.d.ts +10 -0
  261. package/esm/components/calendar/CalendarContainer.js +27 -0
  262. package/esm/components/calendar/DaysView.d.ts +184 -0
  263. package/esm/components/calendar/DaysView.js +528 -0
  264. package/esm/components/calendar/MonthsView.d.ts +133 -0
  265. package/esm/components/calendar/MonthsView.js +175 -0
  266. package/esm/components/calendar/QuartersView.d.ts +102 -0
  267. package/esm/components/calendar/QuartersView.js +125 -0
  268. package/esm/components/calendar/TimeView.d.ts +183 -0
  269. package/esm/components/calendar/TimeView.js +559 -0
  270. package/esm/components/calendar/YearsView.d.ts +102 -0
  271. package/esm/components/calendar/YearsView.js +122 -0
  272. package/esm/components/condition-builder/Expression.d.ts +292 -0
  273. package/esm/components/condition-builder/Expression.js +121 -0
  274. package/esm/components/condition-builder/Field.d.ts +272 -0
  275. package/esm/components/condition-builder/Field.js +32 -0
  276. package/esm/components/condition-builder/Formula.d.ts +261 -0
  277. package/esm/components/condition-builder/Func.d.ts +273 -0
  278. package/esm/components/condition-builder/Func.js +75 -0
  279. package/esm/components/condition-builder/Group.d.ts +310 -0
  280. package/esm/components/condition-builder/Group.js +191 -0
  281. package/esm/components/condition-builder/GroupOrItem.d.ts +87 -0
  282. package/esm/components/condition-builder/GroupOrItem.js +105 -0
  283. package/esm/components/condition-builder/InputSwitch.d.ts +47 -0
  284. package/esm/components/condition-builder/InputSwitch.js +28 -0
  285. package/esm/components/condition-builder/Item.d.ts +287 -0
  286. package/esm/components/condition-builder/Item.js +232 -0
  287. package/esm/components/condition-builder/Value.d.ts +274 -0
  288. package/esm/components/condition-builder/Value.js +114 -0
  289. package/esm/components/condition-builder/config.d.ts +36 -0
  290. package/esm/components/condition-builder/config.js +120 -0
  291. package/esm/components/condition-builder/index.d.ts +319 -0
  292. package/esm/components/condition-builder/index.js +228 -0
  293. package/esm/components/condition-builder/types.d.ts +116 -0
  294. package/esm/components/formula/CodeEditor.d.ts +92 -0
  295. package/esm/components/formula/CodeEditor.js +99 -0
  296. package/esm/components/formula/Editor.d.ts +516 -0
  297. package/esm/components/formula/Editor.js +446 -0
  298. package/esm/components/formula/FuncList.d.ts +46 -0
  299. package/esm/components/formula/FuncList.js +64 -0
  300. package/esm/components/formula/Input.d.ts +292 -0
  301. package/esm/components/formula/Input.js +122 -0
  302. package/esm/components/formula/Picker.d.ts +492 -0
  303. package/esm/components/formula/Picker.js +454 -0
  304. package/esm/components/formula/VariableList.d.ts +58 -0
  305. package/esm/components/formula/VariableList.js +183 -0
  306. package/esm/components/formula/plugin.d.ts +51 -0
  307. package/esm/components/formula/plugin.js +372 -0
  308. package/esm/components/icons.d.ts +61 -0
  309. package/esm/components/icons.js +458 -0
  310. package/esm/components/index.d.ts +138 -0
  311. package/esm/components/json-schema/Array.d.ts +3 -0
  312. package/esm/components/json-schema/Array.js +129 -0
  313. package/esm/components/json-schema/Item.d.ts +5 -0
  314. package/esm/components/json-schema/Item.js +63 -0
  315. package/esm/components/json-schema/Object.d.ts +5 -0
  316. package/esm/components/json-schema/Object.js +265 -0
  317. package/esm/components/json-schema/index.d.ts +272 -0
  318. package/esm/components/json-schema/index.js +29 -0
  319. package/esm/components/menu/MenuContext.d.ts +83 -0
  320. package/esm/components/menu/MenuContext.js +25 -0
  321. package/esm/components/menu/MenuItem.d.ts +81 -0
  322. package/esm/components/menu/MenuItem.js +112 -0
  323. package/esm/components/menu/PanelMenu.d.ts +46 -0
  324. package/esm/components/menu/PanelMenu.js +68 -0
  325. package/esm/components/menu/SubMenu.d.ts +84 -0
  326. package/esm/components/menu/SubMenu.js +137 -0
  327. package/esm/components/menu/index.d.ts +381 -0
  328. package/esm/components/menu/index.js +369 -0
  329. package/esm/components/schema-editor/Array.d.ts +11 -0
  330. package/esm/components/schema-editor/Array.js +84 -0
  331. package/esm/components/schema-editor/Common.d.ts +61 -0
  332. package/esm/components/schema-editor/Common.js +161 -0
  333. package/esm/components/schema-editor/Item.d.ts +8 -0
  334. package/esm/components/schema-editor/Item.js +24 -0
  335. package/esm/components/schema-editor/Object.d.ts +51 -0
  336. package/esm/components/schema-editor/Object.js +294 -0
  337. package/esm/components/schema-editor/SchemaVariableList.d.ts +186 -0
  338. package/esm/components/schema-editor/SchemaVariableList.js +74 -0
  339. package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
  340. package/esm/components/schema-editor/SchemaVariableListPicker.js +34 -0
  341. package/esm/components/schema-editor/index.d.ts +797 -0
  342. package/esm/components/schema-editor/index.js +122 -0
  343. package/esm/components/table/Cell.d.ts +36 -0
  344. package/esm/components/table/Cell.js +43 -0
  345. package/esm/components/table/ColGroup.d.ts +24 -0
  346. package/esm/components/table/ColGroup.js +58 -0
  347. package/esm/components/table/Head.d.ts +45 -0
  348. package/esm/components/table/Head.js +150 -0
  349. package/esm/components/table/HeadCellDropDown.d.ts +289 -0
  350. package/esm/components/table/HeadCellDropDown.js +55 -0
  351. package/esm/components/table/HeadCellFilter.d.ts +414 -0
  352. package/esm/components/table/HeadCellFilter.js +131 -0
  353. package/esm/components/table/HeadCellSelect.d.ts +357 -0
  354. package/esm/components/table/HeadCellSelect.js +52 -0
  355. package/esm/components/table/HeadCellSort.d.ts +278 -0
  356. package/esm/components/table/HeadCellSort.js +88 -0
  357. package/esm/components/table/ItemActionsWrapper.d.ts +10 -0
  358. package/esm/components/table/ItemActionsWrapper.js +29 -0
  359. package/esm/components/table/Row.d.ts +56 -0
  360. package/esm/components/table/Row.js +224 -0
  361. package/esm/components/table/SummaryRow.d.ts +28 -0
  362. package/esm/components/table/SummaryRow.js +73 -0
  363. package/esm/components/table/index.d.ts +852 -0
  364. package/esm/components/table/index.js +1069 -0
  365. package/esm/components/table/util.d.ts +56 -0
  366. package/esm/components/table/util.js +276 -0
  367. package/esm/components/virtual-list/AutoSizer.d.ts +19 -0
  368. package/esm/components/virtual-list/AutoSizer.js +49 -0
  369. package/esm/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
  370. package/esm/components/virtual-list/SizeAndPositionManager.js +216 -0
  371. package/esm/components/virtual-list/constants.d.ts +34 -0
  372. package/esm/components/virtual-list/constants.js +45 -0
  373. package/esm/components/virtual-list/index.d.ts +99 -0
  374. package/esm/components/virtual-list/index.js +288 -0
  375. package/esm/components/withBadge.d.ts +2 -0
  376. package/esm/components/withBadge.js +7 -0
  377. package/esm/hooks/index.d.ts +8 -0
  378. package/esm/hooks/use-click-away.d.ts +12 -0
  379. package/esm/hooks/use-click-away.js +55 -0
  380. package/esm/hooks/use-on-screen.d.ts +2 -0
  381. package/esm/hooks/use-on-screen.js +28 -0
  382. package/esm/hooks/use-set-state.d.ts +2 -0
  383. package/esm/hooks/use-set-state.js +19 -0
  384. package/esm/hooks/use-sub-form.d.ts +4 -0
  385. package/esm/hooks/use-sub-form.js +39 -0
  386. package/esm/hooks/use-touch.d.ts +16 -0
  387. package/esm/hooks/use-touch.js +77 -0
  388. package/esm/hooks/use-update-effect.d.ts +3 -0
  389. package/esm/hooks/use-update-effect.js +21 -0
  390. package/esm/hooks/use-validation-resolver.d.ts +7 -0
  391. package/esm/hooks/use-validation-resolver.js +115 -0
  392. package/esm/icons/alert-danger.svg.js +22 -0
  393. package/esm/icons/alert-info.svg.js +22 -0
  394. package/esm/icons/alert-success.svg.js +22 -0
  395. package/esm/icons/alert-warning.svg.js +22 -0
  396. package/esm/icons/arrow-double-left.svg.js +24 -0
  397. package/esm/icons/arrow-double-right.svg.js +24 -0
  398. package/esm/icons/back.svg.js +21 -0
  399. package/esm/icons/calendar.svg.js +31 -0
  400. package/esm/icons/caret.svg.js +21 -0
  401. package/esm/icons/check.svg.js +21 -0
  402. package/esm/icons/clock.svg.js +29 -0
  403. package/esm/icons/close-small.svg.js +24 -0
  404. package/esm/icons/close.svg.js +21 -0
  405. package/esm/icons/cloud-upload.svg.js +22 -0
  406. package/esm/icons/column-filter.svg.js +22 -0
  407. package/esm/icons/columns.svg.js +21 -0
  408. package/esm/icons/compress-alt.svg.js +21 -0
  409. package/esm/icons/copy.svg.js +26 -0
  410. package/esm/icons/date.svg.js +26 -0
  411. package/esm/icons/department.svg.js +52 -0
  412. package/esm/icons/desk-empty.svg.js +73 -0
  413. package/esm/icons/dot.svg.js +36 -0
  414. package/esm/icons/down-arrow-bold.svg.js +22 -0
  415. package/esm/icons/down.svg.js +23 -0
  416. package/esm/icons/download.svg.js +24 -0
  417. package/esm/icons/drag-bar.svg.js +53 -0
  418. package/esm/icons/drag.svg.js +22 -0
  419. package/esm/icons/edit.svg.js +21 -0
  420. package/esm/icons/ellipsis-v.svg.js +21 -0
  421. package/esm/icons/enter.svg.js +20 -0
  422. package/esm/icons/exchange.svg.js +21 -0
  423. package/esm/icons/expand-alt.svg.js +21 -0
  424. package/esm/icons/fail.svg.js +31 -0
  425. package/esm/icons/file.svg.js +22 -0
  426. package/esm/icons/filter.svg.js +21 -0
  427. package/esm/icons/folder.svg.js +24 -0
  428. package/esm/icons/fullscreen.svg.js +21 -0
  429. package/esm/icons/function.svg.js +21 -0
  430. package/esm/icons/home.svg.js +21 -0
  431. package/esm/icons/if.svg.js +21 -0
  432. package/esm/icons/image.svg.js +20 -0
  433. package/esm/icons/info-circle.svg.js +21 -0
  434. package/esm/icons/info.svg.js +27 -0
  435. package/esm/icons/input-clear.svg.js +20 -0
  436. package/esm/icons/invisible.svg.js +22 -0
  437. package/esm/icons/left-arrow.svg.js +23 -0
  438. package/esm/icons/loading-outline.svg.js +21 -0
  439. package/esm/icons/location.svg.js +20 -0
  440. package/esm/icons/menu.svg.js +20 -0
  441. package/esm/icons/minus.svg.js +21 -0
  442. package/esm/icons/move.svg.js +22 -0
  443. package/esm/icons/mute.svg.js +21 -0
  444. package/esm/icons/new-edit.svg.js +22 -0
  445. package/esm/icons/pause.svg.js +21 -0
  446. package/esm/icons/pencil.svg.js +21 -0
  447. package/esm/icons/play.svg.js +20 -0
  448. package/esm/icons/plus-cicle.svg.js +20 -0
  449. package/esm/icons/plus-fine.svg.js +21 -0
  450. package/esm/icons/plus.svg.js +21 -0
  451. package/esm/icons/post.svg.js +48 -0
  452. package/esm/icons/question-mark.svg.js +26 -0
  453. package/esm/icons/question.svg.js +21 -0
  454. package/esm/icons/question2.svg.js +34 -0
  455. package/esm/icons/redo.svg.js +21 -0
  456. package/esm/icons/refresh.svg.js +21 -0
  457. package/esm/icons/reload.svg.js +21 -0
  458. package/esm/icons/remove.svg.js +21 -0
  459. package/esm/icons/retry.svg.js +24 -0
  460. package/esm/icons/right-arrow-bold.svg.js +21 -0
  461. package/esm/icons/right-arrow.svg.js +23 -0
  462. package/esm/icons/right-double-arrow.svg.js +22 -0
  463. package/esm/icons/role.svg.js +43 -0
  464. package/esm/icons/rotate-left.svg.js +22 -0
  465. package/esm/icons/rotate-right.svg.js +22 -0
  466. package/esm/icons/rotate-screen.svg.js +21 -0
  467. package/esm/icons/scale-origin.svg.js +24 -0
  468. package/esm/icons/schedule.svg.js +24 -0
  469. package/esm/icons/search.svg.js +21 -0
  470. package/esm/icons/setting.svg.js +21 -0
  471. package/esm/icons/slider-handle-icon.svg.js +22 -0
  472. package/esm/icons/sort-asc.svg.js +21 -0
  473. package/esm/icons/sort-default.svg.js +21 -0
  474. package/esm/icons/sort-desc.svg.js +21 -0
  475. package/esm/icons/star.svg.js +21 -0
  476. package/esm/icons/status-close.svg.js +23 -0
  477. package/esm/icons/steps-finsh.svg.js +22 -0
  478. package/esm/icons/sub-plus.svg.js +20 -0
  479. package/esm/icons/success.svg.js +29 -0
  480. package/esm/icons/transparent.svg.js +38 -0
  481. package/esm/icons/trash.svg.js +22 -0
  482. package/esm/icons/tree-down.svg.js +21 -0
  483. package/esm/icons/undo-normal.svg.js +25 -0
  484. package/esm/icons/undo.svg.js +21 -0
  485. package/esm/icons/unfullscreen.svg.js +21 -0
  486. package/esm/icons/upload.svg.js +21 -0
  487. package/esm/icons/user-remove.svg.js +33 -0
  488. package/esm/icons/view.svg.js +22 -0
  489. package/esm/icons/volume.svg.js +24 -0
  490. package/esm/icons/warning-mark.svg.js +22 -0
  491. package/esm/icons/warning.svg.js +21 -0
  492. package/esm/icons/window-restore.svg.js +21 -0
  493. package/esm/icons/zoom-in.svg.js +21 -0
  494. package/esm/icons/zoom-out.svg.js +21 -0
  495. package/esm/index.d.ts +15 -0
  496. package/esm/index.js +156 -0
  497. package/esm/locale/de-DE.d.ts +1 -0
  498. package/esm/locale/de-DE.js +421 -0
  499. package/esm/locale/en-US.d.ts +1 -0
  500. package/esm/locale/en-US.js +427 -0
  501. package/esm/locale/zh-CN.d.ts +1 -0
  502. package/esm/locale/zh-CN.js +436 -0
  503. package/esm/themes/ang.d.ts +3 -0
  504. package/esm/themes/ang.js +15 -0
  505. package/esm/themes/antd.d.ts +1 -0
  506. package/esm/themes/antd.js +42 -0
  507. package/esm/themes/cxd.d.ts +3 -0
  508. package/esm/themes/cxd.js +455 -0
  509. package/esm/themes/dark.d.ts +3 -0
  510. package/esm/themes/dark.js +23 -0
  511. package/esm/themes/default.d.ts +4 -0
  512. package/esm/utils/index.d.ts +2 -0
  513. package/esm/utils/smoothSignature.d.ts +86 -0
  514. package/esm/utils/vectorComputed.d.ts +20 -0
  515. package/esm/utils/vectorComputed.js +75 -0
  516. package/esm/withRemoteConfig.d.ts +2 -0
  517. package/esm/withRemoteConfig.js +7 -0
  518. package/esm/withStore.d.ts +2 -0
  519. package/esm/withStore.js +7 -0
  520. package/lib/components/404.d.ts +53 -0
  521. package/lib/components/404.js +43 -0
  522. package/lib/components/Alert.d.ts +615 -0
  523. package/lib/components/Alert.js +279 -0
  524. package/lib/components/Alert2.d.ts +117 -0
  525. package/lib/components/Alert2.js +66 -0
  526. package/lib/components/AlphabetIndexer.d.ts +11 -0
  527. package/lib/components/AlphabetIndexer.js +59 -0
  528. package/lib/components/AnchorNav.d.ts +162 -0
  529. package/lib/components/AnchorNav.js +162 -0
  530. package/lib/components/AnchorNavSection.d.ts +2 -0
  531. package/lib/components/AnchorNavSection.js +14 -0
  532. package/lib/components/ArrayInput.d.ts +617 -0
  533. package/lib/components/ArrayInput.js +160 -0
  534. package/lib/components/AsideNav.d.ts +142 -0
  535. package/lib/components/AsideNav.js +140 -0
  536. package/lib/components/AssociatedSelection.d.ts +564 -0
  537. package/lib/components/AssociatedSelection.js +110 -0
  538. package/lib/components/AutoFoldedList.d.ts +87 -0
  539. package/lib/components/AutoFoldedList.js +128 -0
  540. package/lib/components/AutoSizer.d.ts +2 -0
  541. package/lib/components/AutoSizer.js +15 -0
  542. package/lib/components/Avatar.d.ts +374 -0
  543. package/lib/components/Avatar.js +154 -0
  544. package/lib/components/Badge.d.ts +118 -0
  545. package/lib/components/Badge.js +165 -0
  546. package/lib/components/BaiduMapPicker.d.ts +100 -0
  547. package/lib/components/BaiduMapPicker.js +379 -0
  548. package/lib/components/BarCode.d.ts +56 -0
  549. package/lib/components/BarCode.js +52 -0
  550. package/lib/components/Breadcrumb.d.ts +115 -0
  551. package/lib/components/Breadcrumb.js +170 -0
  552. package/lib/components/Button.d.ts +147 -0
  553. package/lib/components/Button.js +71 -0
  554. package/lib/components/CalendarMobile.d.ts +431 -0
  555. package/lib/components/CalendarMobile.js +546 -0
  556. package/lib/components/Card.d.ts +444 -0
  557. package/lib/components/Card.js +100 -0
  558. package/lib/components/Cascader.d.ts +108 -0
  559. package/lib/components/Cascader.js +527 -0
  560. package/lib/components/ChainedDropdownSelection.d.ts +561 -0
  561. package/lib/components/ChainedDropdownSelection.js +116 -0
  562. package/lib/components/ChainedSelection.d.ts +554 -0
  563. package/lib/components/ChainedSelection.js +197 -0
  564. package/lib/components/Checkbox.d.ts +110 -0
  565. package/lib/components/Checkbox.js +95 -0
  566. package/lib/components/CityArea.d.ts +299 -0
  567. package/lib/components/CityArea.js +197 -0
  568. package/lib/components/CityDB.d.ts +13 -0
  569. package/lib/components/CityDB.js +3949 -0
  570. package/lib/components/CodeMirror.d.ts +29 -0
  571. package/lib/components/CodeMirror.js +152 -0
  572. package/lib/components/Collapse.d.ts +447 -0
  573. package/lib/components/Collapse.js +192 -0
  574. package/lib/components/CollapseGroup.d.ts +219 -0
  575. package/lib/components/CollapseGroup.js +124 -0
  576. package/lib/components/ColorPicker.d.ts +530 -0
  577. package/lib/components/ColorPicker.js +267 -0
  578. package/lib/components/Combo.d.ts +354 -0
  579. package/lib/components/Combo.js +165 -0
  580. package/lib/components/ConditionBuilder.d.ts +2 -0
  581. package/lib/components/ConditionBuilder.js +14 -0
  582. package/lib/components/ConfirmBox.d.ts +322 -0
  583. package/lib/components/ConfirmBox.js +141 -0
  584. package/lib/components/ContextMenu.d.ts +115 -0
  585. package/lib/components/ContextMenu.js +327 -0
  586. package/lib/components/DatePicker.d.ts +638 -0
  587. package/lib/components/DatePicker.js +725 -0
  588. package/lib/components/DateRangePicker.d.ts +1046 -0
  589. package/lib/components/DateRangePicker.js +1398 -0
  590. package/lib/components/DiffEditor.d.ts +21 -0
  591. package/lib/components/DiffEditor.js +130 -0
  592. package/lib/components/DndContainer.d.ts +205 -0
  593. package/lib/components/DndContainer.js +32 -0
  594. package/lib/components/Drawer.d.ts +159 -0
  595. package/lib/components/Drawer.js +282 -0
  596. package/lib/components/DropDownSelection.d.ts +557 -0
  597. package/lib/components/DropDownSelection.js +85 -0
  598. package/lib/components/DropdownContextMenus.d.ts +84 -0
  599. package/lib/components/DropdownContextMenus.js +101 -0
  600. package/lib/components/Editor.d.ts +681 -0
  601. package/lib/components/Editor.js +246 -0
  602. package/lib/components/Form.d.ts +31 -0
  603. package/lib/components/Form.js +97 -0
  604. package/lib/components/FormField.d.ts +287 -0
  605. package/lib/components/FormField.js +90 -0
  606. package/lib/components/FormulaPicker.d.ts +2 -0
  607. package/lib/components/FormulaPicker.js +14 -0
  608. package/lib/components/GaodeMapPicker.d.ts +89 -0
  609. package/lib/components/GaodeMapPicker.js +217 -0
  610. package/lib/components/GridNav.d.ts +53 -0
  611. package/lib/components/GridNav.js +133 -0
  612. package/lib/components/GridNavItem.d.ts +2 -0
  613. package/lib/components/GridNavItem.js +14 -0
  614. package/lib/components/GroupedSelection.d.ts +543 -0
  615. package/lib/components/GroupedSelection.js +150 -0
  616. package/lib/components/HeadCellDropDown.d.ts +2 -0
  617. package/lib/components/HeadCellDropDown.js +14 -0
  618. package/lib/components/HorizontalScroll.d.ts +75 -0
  619. package/lib/components/HorizontalScroll.js +283 -0
  620. package/lib/components/Html.d.ts +82 -0
  621. package/lib/components/Html.js +59 -0
  622. package/lib/components/Icon.d.ts +2 -0
  623. package/lib/components/Icon.js +14 -0
  624. package/lib/components/ImageGallery.d.ts +465 -0
  625. package/lib/components/ImageGallery.js +409 -0
  626. package/lib/components/Input.d.ts +18 -0
  627. package/lib/components/Input.js +86 -0
  628. package/lib/components/InputBox.d.ts +100 -0
  629. package/lib/components/InputBox.js +110 -0
  630. package/lib/components/InputBoxWithSuggestion.d.ts +272 -0
  631. package/lib/components/InputBoxWithSuggestion.js +81 -0
  632. package/lib/components/InputJSONSchema.d.ts +2 -0
  633. package/lib/components/InputJSONSchema.js +14 -0
  634. package/lib/components/InputTable.d.ts +317 -0
  635. package/lib/components/InputTable.js +189 -0
  636. package/lib/components/JSONSchemaEditor.d.ts +2 -0
  637. package/lib/components/JSONSchemaEditor.js +14 -0
  638. package/lib/components/Layout.d.ts +74 -0
  639. package/lib/components/Layout.js +56 -0
  640. package/lib/components/Link.d.ts +60 -0
  641. package/lib/components/Link.js +56 -0
  642. package/lib/components/ListGroup.d.ts +77 -0
  643. package/lib/components/ListGroup.js +43 -0
  644. package/lib/components/ListMenu.d.ts +568 -0
  645. package/lib/components/ListMenu.js +74 -0
  646. package/lib/components/LocationPicker.d.ts +467 -0
  647. package/lib/components/LocationPicker.js +220 -0
  648. package/lib/components/Markdown.d.ts +25 -0
  649. package/lib/components/Markdown.js +83 -0
  650. package/lib/components/Menu.d.ts +2 -0
  651. package/lib/components/Menu.js +14 -0
  652. package/lib/components/MixedInput.d.ts +55 -0
  653. package/lib/components/MixedInput.js +99 -0
  654. package/lib/components/MobileDevTool.d.ts +12 -0
  655. package/lib/components/MobileDevTool.js +325 -0
  656. package/lib/components/Modal.d.ts +1316 -0
  657. package/lib/components/Modal.js +272 -0
  658. package/lib/components/ModalManager.d.ts +17 -0
  659. package/lib/components/ModalManager.js +53 -0
  660. package/lib/components/MonthRangePicker.d.ts +744 -0
  661. package/lib/components/MultilineText.d.ts +454 -0
  662. package/lib/components/MultilineText.js +102 -0
  663. package/lib/components/NumberInput.d.ts +201 -0
  664. package/lib/components/NumberInput.js +289 -0
  665. package/lib/components/OverflowTpl.d.ts +61 -0
  666. package/lib/components/OverflowTpl.js +109 -0
  667. package/lib/components/Pagination.d.ts +812 -0
  668. package/lib/components/Pagination.js +390 -0
  669. package/lib/components/PdfViewer.d.ts +49 -0
  670. package/lib/components/PdfViewer.js +89 -0
  671. package/lib/components/Picker.d.ts +277 -0
  672. package/lib/components/Picker.js +80 -0
  673. package/lib/components/PickerColumn.d.ts +62 -0
  674. package/lib/components/PickerColumn.js +288 -0
  675. package/lib/components/PickerContainer.d.ts +291 -0
  676. package/lib/components/PickerContainer.js +169 -0
  677. package/lib/components/PopOverContainer.d.ts +59 -0
  678. package/lib/components/PopOverContainer.js +162 -0
  679. package/lib/components/PopUp.d.ts +573 -0
  680. package/lib/components/PopUp.js +94 -0
  681. package/lib/components/Progress.d.ts +311 -0
  682. package/lib/components/Progress.js +148 -0
  683. package/lib/components/PullRefresh.d.ts +79 -0
  684. package/lib/components/PullRefresh.js +178 -0
  685. package/lib/components/Radios.d.ts +170 -0
  686. package/lib/components/Radios.js +126 -0
  687. package/lib/components/Range.d.ts +131 -0
  688. package/lib/components/Range.js +528 -0
  689. package/lib/components/Rating.d.ts +227 -0
  690. package/lib/components/Rating.js +349 -0
  691. package/lib/components/ResultBox.d.ts +532 -0
  692. package/lib/components/ResultBox.js +209 -0
  693. package/lib/components/ResultList.d.ts +554 -0
  694. package/lib/components/ResultList.js +268 -0
  695. package/lib/components/ResultTableList.d.ts +786 -0
  696. package/lib/components/ResultTableList.js +161 -0
  697. package/lib/components/ResultTreeList.d.ts +425 -0
  698. package/lib/components/ResultTreeList.js +256 -0
  699. package/lib/components/RichText.d.ts +48 -0
  700. package/lib/components/RichText.js +283 -0
  701. package/lib/components/SearchBox.d.ts +625 -0
  702. package/lib/components/SearchBox.js +315 -0
  703. package/lib/components/Select.d.ts +6497 -0
  704. package/lib/components/Select.js +832 -0
  705. package/lib/components/SelectMobile.d.ts +38 -0
  706. package/lib/components/SelectMobile.js +382 -0
  707. package/lib/components/Selection.d.ts +598 -0
  708. package/lib/components/Selection.js +176 -0
  709. package/lib/components/Shape.d.ts +58 -0
  710. package/lib/components/Shape.js +434 -0
  711. package/lib/components/Signature.d.ts +279 -0
  712. package/lib/components/Signature.js +297 -0
  713. package/lib/components/Slider.d.ts +56 -0
  714. package/lib/components/Slider.js +146 -0
  715. package/lib/components/SparkLine.d.ts +397 -0
  716. package/lib/components/SparkLine.js +74 -0
  717. package/lib/components/Spinner.d.ts +266 -0
  718. package/lib/components/Spinner.js +210 -0
  719. package/lib/components/Steps.d.ts +117 -0
  720. package/lib/components/Steps.js +84 -0
  721. package/lib/components/Switch.d.ts +105 -0
  722. package/lib/components/Switch.js +80 -0
  723. package/lib/components/Tab.d.ts +2 -0
  724. package/lib/components/Tab.js +14 -0
  725. package/lib/components/Table.d.ts +2 -0
  726. package/lib/components/Table.js +14 -0
  727. package/lib/components/TableSelection.d.ts +791 -0
  728. package/lib/components/TableSelection.js +183 -0
  729. package/lib/components/Tabs.d.ts +670 -0
  730. package/lib/components/Tabs.js +618 -0
  731. package/lib/components/TabsTransfer.d.ts +423 -0
  732. package/lib/components/TabsTransfer.js +234 -0
  733. package/lib/components/TabsTransferPicker.d.ts +267 -0
  734. package/lib/components/TabsTransferPicker.js +93 -0
  735. package/lib/components/Tag.d.ts +318 -0
  736. package/lib/components/Tag.js +146 -0
  737. package/lib/components/Textarea.d.ts +564 -0
  738. package/lib/components/Textarea.js +160 -0
  739. package/lib/components/Timeline.d.ts +56 -0
  740. package/lib/components/Timeline.js +68 -0
  741. package/lib/components/TimelineItem.d.ts +1292 -0
  742. package/lib/components/TimelineItem.js +118 -0
  743. package/lib/components/Tinymce.d.ts +66 -0
  744. package/lib/components/Tinymce.js +648 -0
  745. package/lib/components/TitleBar.d.ts +123 -0
  746. package/lib/components/TitleBar.js +51 -0
  747. package/lib/components/Toast.d.ts +591 -0
  748. package/lib/components/Toast.js +258 -0
  749. package/lib/components/Tooltip.d.ts +65 -0
  750. package/lib/components/Tooltip.js +43 -0
  751. package/lib/components/TooltipWrapper.d.ts +217 -0
  752. package/lib/components/TooltipWrapper.js +188 -0
  753. package/lib/components/Transfer.d.ts +1844 -0
  754. package/lib/components/Transfer.js +502 -0
  755. package/lib/components/TransferDropDown.d.ts +634 -0
  756. package/lib/components/TransferDropDown.js +106 -0
  757. package/lib/components/TransferPicker.d.ts +275 -0
  758. package/lib/components/TransferPicker.js +110 -0
  759. package/lib/components/TransferSearch.d.ts +283 -0
  760. package/lib/components/TransferSearch.js +113 -0
  761. package/lib/components/Tree.d.ts +1953 -0
  762. package/lib/components/Tree.js +1214 -0
  763. package/lib/components/TreeSelection.d.ts +601 -0
  764. package/lib/components/TreeSelection.js +209 -0
  765. package/lib/components/UserSelect.d.ts +541 -0
  766. package/lib/components/UserSelect.js +685 -0
  767. package/lib/components/UserTabSelect.d.ts +315 -0
  768. package/lib/components/UserTabSelect.js +235 -0
  769. package/lib/components/VerificationCode.d.ts +116 -0
  770. package/lib/components/VerificationCode.js +191 -0
  771. package/lib/components/VirtualList.d.ts +2 -0
  772. package/lib/components/VirtualList.js +14 -0
  773. package/lib/components/WithRemoteConfig.d.ts +382 -0
  774. package/lib/components/WithRemoteConfig.js +316 -0
  775. package/lib/components/WithStore.d.ts +72 -0
  776. package/lib/components/WithStore.js +61 -0
  777. package/lib/components/calendar/Calendar.d.ts +83 -0
  778. package/lib/components/calendar/Calendar.js +542 -0
  779. package/lib/components/calendar/CalendarContainer.d.ts +10 -0
  780. package/lib/components/calendar/CalendarContainer.js +38 -0
  781. package/lib/components/calendar/DaysView.d.ts +184 -0
  782. package/lib/components/calendar/DaysView.js +547 -0
  783. package/lib/components/calendar/MonthsView.d.ts +133 -0
  784. package/lib/components/calendar/MonthsView.js +188 -0
  785. package/lib/components/calendar/QuartersView.d.ts +102 -0
  786. package/lib/components/calendar/QuartersView.js +138 -0
  787. package/lib/components/calendar/TimeView.d.ts +183 -0
  788. package/lib/components/calendar/TimeView.js +574 -0
  789. package/lib/components/calendar/YearsView.d.ts +102 -0
  790. package/lib/components/calendar/YearsView.js +135 -0
  791. package/lib/components/condition-builder/Expression.d.ts +292 -0
  792. package/lib/components/condition-builder/Expression.js +133 -0
  793. package/lib/components/condition-builder/Field.d.ts +272 -0
  794. package/lib/components/condition-builder/Field.js +44 -0
  795. package/lib/components/condition-builder/Formula.d.ts +261 -0
  796. package/lib/components/condition-builder/Func.d.ts +273 -0
  797. package/lib/components/condition-builder/Func.js +87 -0
  798. package/lib/components/condition-builder/Group.d.ts +310 -0
  799. package/lib/components/condition-builder/Group.js +203 -0
  800. package/lib/components/condition-builder/GroupOrItem.d.ts +87 -0
  801. package/lib/components/condition-builder/GroupOrItem.js +117 -0
  802. package/lib/components/condition-builder/InputSwitch.d.ts +47 -0
  803. package/lib/components/condition-builder/InputSwitch.js +36 -0
  804. package/lib/components/condition-builder/Item.d.ts +287 -0
  805. package/lib/components/condition-builder/Item.js +244 -0
  806. package/lib/components/condition-builder/Value.d.ts +274 -0
  807. package/lib/components/condition-builder/Value.js +127 -0
  808. package/lib/components/condition-builder/config.d.ts +36 -0
  809. package/lib/components/condition-builder/config.js +125 -0
  810. package/lib/components/condition-builder/index.d.ts +319 -0
  811. package/lib/components/condition-builder/index.js +240 -0
  812. package/lib/components/condition-builder/types.d.ts +116 -0
  813. package/lib/components/formula/CodeEditor.d.ts +92 -0
  814. package/lib/components/formula/CodeEditor.js +110 -0
  815. package/lib/components/formula/Editor.d.ts +516 -0
  816. package/lib/components/formula/Editor.js +460 -0
  817. package/lib/components/formula/FuncList.d.ts +46 -0
  818. package/lib/components/formula/FuncList.js +76 -0
  819. package/lib/components/formula/Input.d.ts +292 -0
  820. package/lib/components/formula/Input.js +134 -0
  821. package/lib/components/formula/Picker.d.ts +492 -0
  822. package/lib/components/formula/Picker.js +467 -0
  823. package/lib/components/formula/VariableList.d.ts +58 -0
  824. package/lib/components/formula/VariableList.js +194 -0
  825. package/lib/components/formula/plugin.d.ts +51 -0
  826. package/lib/components/formula/plugin.js +381 -0
  827. package/lib/components/icons.d.ts +61 -0
  828. package/lib/components/icons.js +486 -0
  829. package/lib/components/index.d.ts +138 -0
  830. package/lib/components/json-schema/Array.d.ts +3 -0
  831. package/lib/components/json-schema/Array.js +140 -0
  832. package/lib/components/json-schema/Item.d.ts +5 -0
  833. package/lib/components/json-schema/Item.js +75 -0
  834. package/lib/components/json-schema/Object.d.ts +5 -0
  835. package/lib/components/json-schema/Object.js +278 -0
  836. package/lib/components/json-schema/index.d.ts +272 -0
  837. package/lib/components/json-schema/index.js +40 -0
  838. package/lib/components/menu/MenuContext.d.ts +83 -0
  839. package/lib/components/menu/MenuContext.js +29 -0
  840. package/lib/components/menu/MenuItem.d.ts +81 -0
  841. package/lib/components/menu/MenuItem.js +120 -0
  842. package/lib/components/menu/PanelMenu.d.ts +46 -0
  843. package/lib/components/menu/PanelMenu.js +74 -0
  844. package/lib/components/menu/SubMenu.d.ts +84 -0
  845. package/lib/components/menu/SubMenu.js +145 -0
  846. package/lib/components/menu/index.d.ts +381 -0
  847. package/lib/components/menu/index.js +379 -0
  848. package/lib/components/schema-editor/Array.d.ts +11 -0
  849. package/lib/components/schema-editor/Array.js +95 -0
  850. package/lib/components/schema-editor/Common.d.ts +61 -0
  851. package/lib/components/schema-editor/Common.js +174 -0
  852. package/lib/components/schema-editor/Item.d.ts +8 -0
  853. package/lib/components/schema-editor/Item.js +35 -0
  854. package/lib/components/schema-editor/Object.d.ts +51 -0
  855. package/lib/components/schema-editor/Object.js +305 -0
  856. package/lib/components/schema-editor/SchemaVariableList.d.ts +186 -0
  857. package/lib/components/schema-editor/SchemaVariableList.js +86 -0
  858. package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
  859. package/lib/components/schema-editor/SchemaVariableListPicker.js +46 -0
  860. package/lib/components/schema-editor/index.d.ts +797 -0
  861. package/lib/components/schema-editor/index.js +131 -0
  862. package/lib/components/table/Cell.d.ts +36 -0
  863. package/lib/components/table/Cell.js +50 -0
  864. package/lib/components/table/ColGroup.d.ts +24 -0
  865. package/lib/components/table/ColGroup.js +69 -0
  866. package/lib/components/table/Head.d.ts +45 -0
  867. package/lib/components/table/Head.js +157 -0
  868. package/lib/components/table/HeadCellDropDown.d.ts +289 -0
  869. package/lib/components/table/HeadCellDropDown.js +63 -0
  870. package/lib/components/table/HeadCellFilter.d.ts +414 -0
  871. package/lib/components/table/HeadCellFilter.js +140 -0
  872. package/lib/components/table/HeadCellSelect.d.ts +357 -0
  873. package/lib/components/table/HeadCellSelect.js +60 -0
  874. package/lib/components/table/HeadCellSort.d.ts +278 -0
  875. package/lib/components/table/HeadCellSort.js +96 -0
  876. package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
  877. package/lib/components/table/ItemActionsWrapper.js +40 -0
  878. package/lib/components/table/Row.d.ts +56 -0
  879. package/lib/components/table/Row.js +231 -0
  880. package/lib/components/table/SummaryRow.d.ts +28 -0
  881. package/lib/components/table/SummaryRow.js +81 -0
  882. package/lib/components/table/index.d.ts +852 -0
  883. package/lib/components/table/index.js +1083 -0
  884. package/lib/components/table/util.d.ts +56 -0
  885. package/lib/components/table/util.js +298 -0
  886. package/lib/components/virtual-list/AutoSizer.d.ts +19 -0
  887. package/lib/components/virtual-list/AutoSizer.js +76 -0
  888. package/lib/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
  889. package/lib/components/virtual-list/SizeAndPositionManager.js +220 -0
  890. package/lib/components/virtual-list/constants.d.ts +34 -0
  891. package/lib/components/virtual-list/constants.js +53 -0
  892. package/lib/components/virtual-list/index.d.ts +99 -0
  893. package/lib/components/virtual-list/index.js +317 -0
  894. package/lib/components/withBadge.d.ts +2 -0
  895. package/lib/components/withBadge.js +14 -0
  896. package/lib/helper.css +47744 -0
  897. package/lib/hooks/index.d.ts +8 -0
  898. package/lib/hooks/use-click-away.d.ts +12 -0
  899. package/lib/hooks/use-click-away.js +59 -0
  900. package/lib/hooks/use-on-screen.d.ts +2 -0
  901. package/lib/hooks/use-on-screen.js +32 -0
  902. package/lib/hooks/use-set-state.d.ts +2 -0
  903. package/lib/hooks/use-set-state.js +27 -0
  904. package/lib/hooks/use-sub-form.d.ts +4 -0
  905. package/lib/hooks/use-sub-form.js +48 -0
  906. package/lib/hooks/use-touch.d.ts +16 -0
  907. package/lib/hooks/use-touch.js +81 -0
  908. package/lib/hooks/use-update-effect.d.ts +3 -0
  909. package/lib/hooks/use-update-effect.js +25 -0
  910. package/lib/hooks/use-validation-resolver.d.ts +7 -0
  911. package/lib/hooks/use-validation-resolver.js +125 -0
  912. package/lib/icons/alert-danger.svg.js +29 -0
  913. package/lib/icons/alert-info.svg.js +29 -0
  914. package/lib/icons/alert-success.svg.js +29 -0
  915. package/lib/icons/alert-warning.svg.js +29 -0
  916. package/lib/icons/arrow-double-left.svg.js +31 -0
  917. package/lib/icons/arrow-double-right.svg.js +31 -0
  918. package/lib/icons/back.svg.js +28 -0
  919. package/lib/icons/calendar.svg.js +38 -0
  920. package/lib/icons/caret.svg.js +28 -0
  921. package/lib/icons/check.svg.js +28 -0
  922. package/lib/icons/clock.svg.js +36 -0
  923. package/lib/icons/close-small.svg.js +31 -0
  924. package/lib/icons/close.svg.js +28 -0
  925. package/lib/icons/cloud-upload.svg.js +29 -0
  926. package/lib/icons/column-filter.svg.js +29 -0
  927. package/lib/icons/columns.svg.js +28 -0
  928. package/lib/icons/compress-alt.svg.js +28 -0
  929. package/lib/icons/copy.svg.js +33 -0
  930. package/lib/icons/date.svg.js +33 -0
  931. package/lib/icons/department.svg.js +59 -0
  932. package/lib/icons/desk-empty.svg.js +80 -0
  933. package/lib/icons/dot.svg.js +43 -0
  934. package/lib/icons/down-arrow-bold.svg.js +29 -0
  935. package/lib/icons/down.svg.js +30 -0
  936. package/lib/icons/download.svg.js +31 -0
  937. package/lib/icons/drag-bar.svg.js +60 -0
  938. package/lib/icons/drag.svg.js +29 -0
  939. package/lib/icons/edit.svg.js +28 -0
  940. package/lib/icons/ellipsis-v.svg.js +28 -0
  941. package/lib/icons/enter.svg.js +27 -0
  942. package/lib/icons/exchange.svg.js +28 -0
  943. package/lib/icons/expand-alt.svg.js +28 -0
  944. package/lib/icons/fail.svg.js +38 -0
  945. package/lib/icons/file.svg.js +29 -0
  946. package/lib/icons/filter.svg.js +28 -0
  947. package/lib/icons/folder.svg.js +31 -0
  948. package/lib/icons/fullscreen.svg.js +28 -0
  949. package/lib/icons/function.svg.js +28 -0
  950. package/lib/icons/home.svg.js +28 -0
  951. package/lib/icons/if.svg.js +28 -0
  952. package/lib/icons/image.svg.js +27 -0
  953. package/lib/icons/info-circle.svg.js +28 -0
  954. package/lib/icons/info.svg.js +34 -0
  955. package/lib/icons/input-clear.svg.js +27 -0
  956. package/lib/icons/invisible.svg.js +29 -0
  957. package/lib/icons/left-arrow.svg.js +30 -0
  958. package/lib/icons/loading-outline.svg.js +28 -0
  959. package/lib/icons/location.svg.js +27 -0
  960. package/lib/icons/menu.svg.js +27 -0
  961. package/lib/icons/minus.svg.js +28 -0
  962. package/lib/icons/move.svg.js +29 -0
  963. package/lib/icons/mute.svg.js +28 -0
  964. package/lib/icons/new-edit.svg.js +29 -0
  965. package/lib/icons/pause.svg.js +28 -0
  966. package/lib/icons/pencil.svg.js +28 -0
  967. package/lib/icons/play.svg.js +27 -0
  968. package/lib/icons/plus-cicle.svg.js +27 -0
  969. package/lib/icons/plus-fine.svg.js +28 -0
  970. package/lib/icons/plus.svg.js +28 -0
  971. package/lib/icons/post.svg.js +55 -0
  972. package/lib/icons/question-mark.svg.js +33 -0
  973. package/lib/icons/question.svg.js +28 -0
  974. package/lib/icons/question2.svg.js +41 -0
  975. package/lib/icons/redo.svg.js +28 -0
  976. package/lib/icons/refresh.svg.js +28 -0
  977. package/lib/icons/reload.svg.js +28 -0
  978. package/lib/icons/remove.svg.js +28 -0
  979. package/lib/icons/retry.svg.js +31 -0
  980. package/lib/icons/right-arrow-bold.svg.js +28 -0
  981. package/lib/icons/right-arrow.svg.js +30 -0
  982. package/lib/icons/right-double-arrow.svg.js +29 -0
  983. package/lib/icons/role.svg.js +50 -0
  984. package/lib/icons/rotate-left.svg.js +29 -0
  985. package/lib/icons/rotate-right.svg.js +29 -0
  986. package/lib/icons/rotate-screen.svg.js +28 -0
  987. package/lib/icons/scale-origin.svg.js +31 -0
  988. package/lib/icons/schedule.svg.js +31 -0
  989. package/lib/icons/search.svg.js +28 -0
  990. package/lib/icons/setting.svg.js +28 -0
  991. package/lib/icons/slider-handle-icon.svg.js +29 -0
  992. package/lib/icons/sort-asc.svg.js +28 -0
  993. package/lib/icons/sort-default.svg.js +28 -0
  994. package/lib/icons/sort-desc.svg.js +28 -0
  995. package/lib/icons/star.svg.js +28 -0
  996. package/lib/icons/status-close.svg.js +30 -0
  997. package/lib/icons/steps-finsh.svg.js +29 -0
  998. package/lib/icons/sub-plus.svg.js +27 -0
  999. package/lib/icons/success.svg.js +36 -0
  1000. package/lib/icons/transparent.svg.js +45 -0
  1001. package/lib/icons/trash.svg.js +29 -0
  1002. package/lib/icons/tree-down.svg.js +28 -0
  1003. package/lib/icons/undo-normal.svg.js +32 -0
  1004. package/lib/icons/undo.svg.js +28 -0
  1005. package/lib/icons/unfullscreen.svg.js +28 -0
  1006. package/lib/icons/upload.svg.js +28 -0
  1007. package/lib/icons/user-remove.svg.js +40 -0
  1008. package/lib/icons/view.svg.js +29 -0
  1009. package/lib/icons/volume.svg.js +31 -0
  1010. package/lib/icons/warning-mark.svg.js +29 -0
  1011. package/lib/icons/warning.svg.js +28 -0
  1012. package/lib/icons/window-restore.svg.js +28 -0
  1013. package/lib/icons/zoom-in.svg.js +28 -0
  1014. package/lib/icons/zoom-out.svg.js +28 -0
  1015. package/lib/index.d.ts +15 -0
  1016. package/lib/index.js +348 -0
  1017. package/lib/locale/de-DE.d.ts +1 -0
  1018. package/lib/locale/de-DE.js +423 -0
  1019. package/lib/locale/en-US.d.ts +1 -0
  1020. package/lib/locale/en-US.js +429 -0
  1021. package/lib/locale/zh-CN.d.ts +1 -0
  1022. package/lib/locale/zh-CN.js +438 -0
  1023. package/lib/scss/helper.scss.js +12 -0
  1024. package/lib/scss/themes/ang.scss.js +12 -0
  1025. package/lib/scss/themes/antd.scss.js +12 -0
  1026. package/lib/scss/themes/cxd.scss.js +12 -0
  1027. package/lib/scss/themes/dark.scss.js +12 -0
  1028. package/lib/scss/themes/default.scss.js +12 -0
  1029. package/lib/themes/ang.css +46414 -0
  1030. package/lib/themes/ang.d.ts +3 -0
  1031. package/lib/themes/ang.js +20 -0
  1032. package/lib/themes/antd.css +46401 -0
  1033. package/lib/themes/antd.d.ts +1 -0
  1034. package/lib/themes/antd.js +44 -0
  1035. package/lib/themes/cxd.css +46390 -0
  1036. package/lib/themes/cxd.d.ts +3 -0
  1037. package/lib/themes/cxd.js +459 -0
  1038. package/lib/themes/dark.css +46421 -0
  1039. package/lib/themes/dark.d.ts +3 -0
  1040. package/lib/themes/dark.js +28 -0
  1041. package/lib/themes/default.css +46390 -0
  1042. package/lib/themes/default.d.ts +4 -0
  1043. package/lib/utils/index.d.ts +2 -0
  1044. package/lib/utils/smoothSignature.d.ts +86 -0
  1045. package/lib/utils/vectorComputed.d.ts +20 -0
  1046. package/lib/utils/vectorComputed.js +84 -0
  1047. package/lib/withRemoteConfig.d.ts +2 -0
  1048. package/lib/withRemoteConfig.js +14 -0
  1049. package/lib/withStore.d.ts +2 -0
  1050. package/lib/withStore.js +14 -0
  1051. package/package.json +8 -4
  1052. package/scss/_components.scss +4 -7
  1053. package/scss/_mixins.scss +1 -0
  1054. package/scss/_properties.scss +1 -1
  1055. package/scss/components/_auto-folder.scss +40 -0
  1056. package/scss/components/_cascader.scss +22 -2
  1057. package/scss/components/_condition-builder.scss +1 -0
  1058. package/scss/components/_crud.scss +32 -0
  1059. package/scss/components/_modal.scss +13 -0
  1060. package/scss/components/_page.scss +0 -1
  1061. package/scss/components/_pagination.scss +1 -2
  1062. package/scss/components/_result-box.scss +15 -3
  1063. package/scss/components/_table.scss +2 -0
  1064. package/scss/components/form/_combo.scss +13 -0
  1065. package/scss/components/form/_form.scss +14 -1
  1066. package/scss/components/form/_icon-picker.scss +1 -0
  1067. package/scss/components/form/_input-group.scss +23 -2
  1068. package/scss/components/form/_nested-select.scss +10 -0
  1069. package/scss/components/form/_picker.scss +33 -0
  1070. package/scss/components/form/_select.scss +30 -4
  1071. package/scss/components/form/_selection.scss +2 -0
  1072. package/scss/components/form/_tree.scss +8 -9
  1073. package/scss/layout/_layout.scss +1 -0
  1074. package/scss/themes/_common.scss +1 -0
@@ -0,0 +1,1220 @@
1
+ /**
2
+ * amis-ui v6.13.0
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { __extends, __assign, __spreadArray, __read, __values, __rest, __decorate, __metadata } from 'tslib';
7
+ import React__default from 'react';
8
+ import { resizeSensor, eachTree, getTreeAncestors, flattenTree, flattenTreeWithLeafNodes, getTreeParent, findTreeIndex, isVisible, highlight, hasAbility, calculateHeight, autobind, themeable, localeable } from 'amis-core';
9
+ import { value2array } from './Select.js';
10
+ import { Icon } from './icons.js';
11
+ import Checkbox from './Checkbox.js';
12
+ import Spinner from './Spinner.js';
13
+ import VirtualList from './virtual-list/index.js';
14
+ import TooltipWrapper from './TooltipWrapper.js';
15
+
16
+ /**
17
+ * @file Tree
18
+ * @description 树形组件
19
+ *
20
+ * 情况列举:
21
+ * 1. 选中父节点时,连带选中子节点 : autoChildren = true 前提条件
22
+ * 1.1 交互
23
+ * 1.1.1 子节点不可以取消勾选 cascade = false,
24
+ * 1.1.2 子节点可以取消勾选 cascade = true, withChildren 失效
25
+ * 1.2 数据(state.value)
26
+ * 1.2.1 只提交父节点数据 cascade = false
27
+ * 1.2.2 只提交子节点的数据 onlyChildren = true
28
+ * 1.2.3 全部数据提交 withChildren = true || cascade = true
29
+ *
30
+ * 2. 选中节点时,只选中当前节点,没有联动效果
31
+ *
32
+ * @author fex
33
+ */
34
+ var TreeSelector = /** @class */ (function (_super) {
35
+ __extends(TreeSelector, _super);
36
+ function TreeSelector(props) {
37
+ var _this = _super.call(this, props) || this;
38
+ // 展开的节点
39
+ _this.unfolded = new WeakMap();
40
+ // key: child option, value: parent option;
41
+ _this.relations = new WeakMap();
42
+ _this.levels = new WeakMap();
43
+ _this.startPoint = {
44
+ x: 0,
45
+ y: 0
46
+ };
47
+ _this.root = React__default.createRef();
48
+ _this.virtualListRef = null;
49
+ var value = value2array(props.value, {
50
+ multiple: props.multiple,
51
+ delimiter: props.delimiter,
52
+ valueField: props.valueField,
53
+ labelField: props.labelField,
54
+ options: props.options,
55
+ pathSeparator: props.pathSeparator
56
+ }, props.enableNodePath);
57
+ _this.state = {
58
+ value: value,
59
+ valueSet: new Set(value),
60
+ flattenedOptions: [],
61
+ inputValue: '',
62
+ addingParent: null,
63
+ isAdding: false,
64
+ isEditing: false,
65
+ editingItem: null,
66
+ dropIndicator: undefined,
67
+ virtualHeight: 0,
68
+ itemHeight: 0
69
+ };
70
+ _this.syncUnFolded(props, undefined, true);
71
+ _this.flattenOptions(props, true);
72
+ return _this;
73
+ }
74
+ TreeSelector.prototype.componentDidMount = function () {
75
+ var _a, _b, _c;
76
+ var enableNodePath = this.props.enableNodePath;
77
+ // onRef只有渲染器的情况才会使用
78
+ (_b = (_a = this.props).onRef) === null || _b === void 0 ? void 0 : _b.call(_a, this);
79
+ enableNodePath && this.expandLazyLoadNodes();
80
+ var treeElement = this.root.current;
81
+ treeElement =
82
+ ((_c = treeElement === null || treeElement === void 0 ? void 0 : treeElement.parentElement) === null || _c === void 0 ? void 0 : _c.matches('.cxd-TreeControl')) &&
83
+ treeElement.parentElement.childElementCount === 1
84
+ ? treeElement.parentElement
85
+ : treeElement;
86
+ this.unSensor = resizeSensor(treeElement, this.handleVirtualHeight, false, 'height');
87
+ };
88
+ TreeSelector.prototype.componentDidUpdate = function (prevProps, prevState) {
89
+ var props = this.props;
90
+ this.state;
91
+ if (prevProps.options !== props.options) {
92
+ this.syncUnFolded(props);
93
+ this.flattenOptions(props);
94
+ }
95
+ if (prevProps.value !== props.value ||
96
+ prevProps.options !== props.options) {
97
+ var newValue = value2array(props.value, {
98
+ multiple: props.multiple,
99
+ delimiter: props.delimiter,
100
+ valueField: props.valueField,
101
+ pathSeparator: props.pathSeparator,
102
+ options: props.options,
103
+ labelField: props.labelField
104
+ }, props.enableNodePath);
105
+ this.setState({
106
+ value: newValue,
107
+ valueSet: new Set(newValue)
108
+ });
109
+ }
110
+ };
111
+ TreeSelector.prototype.componentWillUnmount = function () {
112
+ // clear data
113
+ this.relations = this.unfolded = this.levels = new WeakMap();
114
+ if (this.unSensor) {
115
+ this.unSensor();
116
+ delete this.unSensor;
117
+ }
118
+ };
119
+ /**
120
+ * 展开懒加载节点的父节点
121
+ */
122
+ TreeSelector.prototype.expandLazyLoadNodes = function () {
123
+ var _a = this.props, pathSeparator = _a.pathSeparator, onExpandTree = _a.onExpandTree, _b = _a.nodePath, nodePath = _b === void 0 ? [] : _b;
124
+ var nodePathArr = nodePath.map(function (path) {
125
+ return path ? path.toString().split(pathSeparator) : [];
126
+ });
127
+ onExpandTree === null || onExpandTree === void 0 ? void 0 : onExpandTree(nodePathArr);
128
+ };
129
+ TreeSelector.prototype.virtualListRefSetter = function (ref) {
130
+ this.virtualListRef = ref;
131
+ ref && this.handleVirtualHeight();
132
+ };
133
+ TreeSelector.prototype.syncUnFolded = function (props, unfoldedLevel, initial) {
134
+ // 传入默认展开层级需要重新初始化unfolded
135
+ var initFoldedLevel = typeof unfoldedLevel !== 'undefined';
136
+ var expandLevel = Number(initFoldedLevel ? unfoldedLevel : props.unfoldedLevel);
137
+ // 初始化树节点的展开状态
138
+ var unfolded = this.unfolded;
139
+ var _a = this.props, deferField = _a.deferField, foldedField = _a.foldedField, unfoldedField = _a.unfoldedField;
140
+ eachTree(props.options, function (node, index, level) {
141
+ if (unfolded.has(node) && !initFoldedLevel) {
142
+ return;
143
+ }
144
+ if (node.children && node.children.length) {
145
+ var ret = true;
146
+ if (node[deferField] &&
147
+ node.loaded &&
148
+ !initFoldedLevel &&
149
+ unfoldedField &&
150
+ node[unfoldedField] !== false) {
151
+ ret = true;
152
+ }
153
+ else if (unfoldedField &&
154
+ typeof node[unfoldedField] !== 'undefined') {
155
+ ret = !!node[unfoldedField];
156
+ }
157
+ else if (foldedField && typeof node[foldedField] !== 'undefined') {
158
+ ret = !node[foldedField];
159
+ }
160
+ else {
161
+ ret = !!props.initiallyOpen && !initFoldedLevel;
162
+ if (!ret && level <= expandLevel) {
163
+ ret = true;
164
+ }
165
+ }
166
+ unfolded.set(node, ret);
167
+ }
168
+ });
169
+ initFoldedLevel && this.forceUpdate();
170
+ this.flattenOptions(undefined, initial);
171
+ return unfolded;
172
+ };
173
+ TreeSelector.prototype.toggleUnfolded = function (node) {
174
+ var unfolded = this.unfolded;
175
+ var _a = this.props, deferField = _a.deferField, onDeferLoad = _a.onDeferLoad, unfoldedField = _a.unfoldedField;
176
+ if (node[deferField] && !node.loaded) {
177
+ onDeferLoad === null || onDeferLoad === void 0 ? void 0 : onDeferLoad(node);
178
+ return;
179
+ }
180
+ // ! hack: 在node上直接添加属性,options 在更新的时候旧的字段会保留
181
+ if (node[deferField] && node.loaded) {
182
+ node[unfoldedField] = !unfolded.get(node);
183
+ }
184
+ unfolded.set(node, !unfolded.get(node));
185
+ this.flattenOptions();
186
+ this.forceUpdate();
187
+ };
188
+ TreeSelector.prototype.isUnfolded = function (node) {
189
+ var unfolded = this.unfolded;
190
+ var parent = this.relations.get(node);
191
+ if (parent) {
192
+ return !!unfolded.get(node) && this.isUnfolded(parent);
193
+ }
194
+ return !!unfolded.get(node);
195
+ };
196
+ TreeSelector.prototype.clearSelect = function () {
197
+ var _this = this;
198
+ this.setState({
199
+ value: []
200
+ }, function () {
201
+ var _a = _this.props, joinValues = _a.joinValues, rootValue = _a.rootValue, onChange = _a.onChange;
202
+ onChange(joinValues ? rootValue : []);
203
+ });
204
+ };
205
+ /**
206
+ * enableNodePath为true时,将label和value转换成node path格式
207
+ */
208
+ TreeSelector.prototype.transform2NodePath = function (value) {
209
+ var _a = this.props, multiple = _a.multiple, options = _a.options, valueField = _a.valueField, labelField = _a.labelField, joinValues = _a.joinValues, extractValue = _a.extractValue, pathSeparator = _a.pathSeparator, delimiter = _a.delimiter;
210
+ var nodesValuePath = [];
211
+ var selectedNodes = Array.isArray(value) ? value.concat() : [value];
212
+ var selectedNodesPath = selectedNodes.map(function (node) {
213
+ var _a, _b;
214
+ var _c;
215
+ var nodePath = (_c = getTreeAncestors(options, node, true)) === null || _c === void 0 ? void 0 : _c.reduce(function (acc, node) {
216
+ acc[labelField].push(node[labelField]);
217
+ acc[valueField].push(node[valueField]);
218
+ return acc;
219
+ }, (_a = {}, _a[labelField] = [], _a[valueField] = [], _a));
220
+ var nodeValuePath = nodePath[valueField].join(pathSeparator);
221
+ nodesValuePath.push(nodeValuePath);
222
+ return __assign(__assign({}, node), (_b = {}, _b[labelField] = nodePath[labelField].join(pathSeparator), _b[valueField] = nodeValuePath, _b));
223
+ });
224
+ if (multiple) {
225
+ return joinValues
226
+ ? nodesValuePath.join(delimiter)
227
+ : extractValue
228
+ ? nodesValuePath
229
+ : selectedNodesPath;
230
+ }
231
+ else {
232
+ return joinValues || extractValue
233
+ ? selectedNodesPath[0][valueField]
234
+ : selectedNodesPath[0];
235
+ }
236
+ };
237
+ TreeSelector.prototype.handleSelect = function (node, value) {
238
+ var _this = this;
239
+ var _a = this.props, joinValues = _a.joinValues, valueField = _a.valueField, deferField = _a.deferField, onChange = _a.onChange, enableNodePath = _a.enableNodePath, onlyLeaf = _a.onlyLeaf;
240
+ if (node[valueField] === undefined) {
241
+ if (node[deferField] && !node.loaded) {
242
+ this.toggleUnfolded(node);
243
+ }
244
+ return;
245
+ }
246
+ if (onlyLeaf && Array.isArray(node.children) && node.children.length) {
247
+ return;
248
+ }
249
+ this.setState({
250
+ value: [node]
251
+ }, function () {
252
+ onChange(enableNodePath
253
+ ? _this.transform2NodePath(node)
254
+ : joinValues
255
+ ? node[valueField]
256
+ : node);
257
+ });
258
+ };
259
+ TreeSelector.prototype.handleItemClick = function (node, checked) {
260
+ var _a;
261
+ var _b = this.props, onHandleNodeClick = _b.onHandleNodeClick, multiple = _b.multiple, _c = _b.nodeBehavior, nodeBehavior = _c === void 0 ? ['check'] : _c;
262
+ onHandleNodeClick && onHandleNodeClick(node);
263
+ if ((nodeBehavior === null || nodeBehavior === void 0 ? void 0 : nodeBehavior.includes('unfold')) && ((_a = node.children) === null || _a === void 0 ? void 0 : _a.length)) {
264
+ this.toggleUnfolded(node);
265
+ }
266
+ if (nodeBehavior === null || nodeBehavior === void 0 ? void 0 : nodeBehavior.includes('check')) {
267
+ multiple ? this.handleCheck(node, !checked) : this.handleSelect(node);
268
+ }
269
+ };
270
+ TreeSelector.prototype.handleCheck = function (item, checked) {
271
+ var _this = this;
272
+ // TODO: 重新梳理这里的逻辑
273
+ var props = this.props;
274
+ var value = this.state.valueSet;
275
+ var onlyChildren = props.onlyChildren, withChildren = props.withChildren, cascade = props.cascade, autoCheckChildren = props.autoCheckChildren, autoCancelParent = props.autoCancelParent, valueField = props.valueField;
276
+ if (checked) {
277
+ if (!value.has(item)) {
278
+ value.add(item);
279
+ }
280
+ // cascade 为 true 表示父节点跟子节点没有级联关系。
281
+ if (autoCheckChildren) {
282
+ var children = item.children ? __spreadArray([], __read(item.children), false) : [];
283
+ var hasDisabled = flattenTree(children).some(function (item) { return item === null || item === void 0 ? void 0 : item.disabled; });
284
+ if (onlyChildren) {
285
+ // 这个 isAllChecked 主要是判断如果有disabled的item项,这时父节点还是选中的话,针对性的处理逻辑
286
+ var isAllChecked = flattenTreeWithLeafNodes(children)
287
+ .filter(function (item) { return !(item === null || item === void 0 ? void 0 : item.disabled); })
288
+ .every(function (v) { return value.has(v); });
289
+ // 父级选中的时候,子节点也都选中,但是自己不选中
290
+ if (value.has(item) && children.length) {
291
+ value.delete(item);
292
+ }
293
+ while (children.length) {
294
+ var child = children.shift();
295
+ if (child.children && child.children.length) {
296
+ children.push.apply(children, child.children);
297
+ continue;
298
+ }
299
+ if (hasDisabled && isAllChecked) {
300
+ if (value.has(child) &&
301
+ child.value !== 'undefined' &&
302
+ !(child === null || child === void 0 ? void 0 : child.disabled)) {
303
+ value.delete(child);
304
+ }
305
+ continue;
306
+ }
307
+ if (!value.has(child) &&
308
+ child.value !== 'undefined' &&
309
+ !(child === null || child === void 0 ? void 0 : child.disabled)) {
310
+ value.add(child);
311
+ }
312
+ }
313
+ }
314
+ else {
315
+ // 这个 isAllChecked 主要是判断如果有disabled的item项,这时父节点还是选中的话,针对性的处理逻辑
316
+ var isAllChecked = flattenTree(children)
317
+ .filter(function (item) { return !(item === null || item === void 0 ? void 0 : item.disabled); })
318
+ .every(function (v) { return value.has(v); });
319
+ // 只要父节点选择了,子节点就不需要了,全部去掉勾选. withChildren时相反
320
+ while (children.length) {
321
+ var child = children.shift();
322
+ if (child === null || child === void 0 ? void 0 : child.disabled) {
323
+ continue;
324
+ }
325
+ // 判断下下面是否有禁用项
326
+ if (!hasDisabled) {
327
+ if (value.has(child)) {
328
+ value.delete(child);
329
+ }
330
+ if (withChildren || cascade) {
331
+ value.add(child);
332
+ }
333
+ }
334
+ else {
335
+ isAllChecked ? value.delete(child) : value.add(child);
336
+ }
337
+ if (child.children && child.children.length) {
338
+ children.push.apply(children, child.children);
339
+ }
340
+ }
341
+ var toCheck = item;
342
+ while (true) {
343
+ var parent_1 = getTreeParent(props.options, toCheck);
344
+ // 判断 parent 节点是否已经勾选,避免重复值
345
+ if ((parent_1 === null || parent_1 === void 0 ? void 0 : parent_1[valueField || 'value']) && !value.has(parent_1)) {
346
+ // 如果所有孩子节点都勾选了,应该自动勾选父级。
347
+ if (parent_1.children.every(function (child) { return value.has(child); })) {
348
+ if (!cascade && !withChildren) {
349
+ parent_1.children.forEach(function (child) {
350
+ if (value.has(child)) {
351
+ value.delete(child);
352
+ }
353
+ });
354
+ }
355
+ value.add(parent_1);
356
+ toCheck = parent_1;
357
+ continue;
358
+ }
359
+ }
360
+ break;
361
+ }
362
+ }
363
+ }
364
+ }
365
+ else {
366
+ value.has(item) && value.delete(item);
367
+ if (autoCheckChildren) {
368
+ if (cascade || withChildren || onlyChildren) {
369
+ var children = item.children ? __spreadArray([], __read(item.children), false) : [];
370
+ while (children.length) {
371
+ var child = children.shift();
372
+ if (value.has(child) && !(child === null || child === void 0 ? void 0 : child.disabled)) {
373
+ value.delete(child);
374
+ }
375
+ if (child.children && child.children.length) {
376
+ children.push.apply(children, child.children);
377
+ }
378
+ }
379
+ }
380
+ }
381
+ if (autoCancelParent && cascade) {
382
+ var toCheck = item;
383
+ while (true) {
384
+ var parent_2 = getTreeParent(props.options, toCheck);
385
+ //判断 parent 节点是否已经勾选
386
+ if (value.has(parent_2)) {
387
+ //当有一个子节点取消时要去掉父节点,也要去掉父节点的父节点,直至最外层
388
+ value.delete(parent_2);
389
+ toCheck = parent_2;
390
+ continue;
391
+ }
392
+ break;
393
+ }
394
+ }
395
+ }
396
+ this.setState({
397
+ value: __spreadArray([], __read(value), false)
398
+ }, function () { return _this.fireChange(__spreadArray([], __read(value), false)); });
399
+ };
400
+ TreeSelector.prototype.fireChange = function (value) {
401
+ var _a = this.props, joinValues = _a.joinValues, extractValue = _a.extractValue, valueField = _a.valueField, delimiter = _a.delimiter, onChange = _a.onChange, enableNodePath = _a.enableNodePath;
402
+ onChange(enableNodePath
403
+ ? this.transform2NodePath(value)
404
+ : joinValues
405
+ ? value.map(function (item) { return item[valueField]; }).join(delimiter)
406
+ : extractValue
407
+ ? value.map(function (item) { return item[valueField]; })
408
+ : value);
409
+ };
410
+ TreeSelector.prototype.handleAdd = function (parent) {
411
+ var _this = this;
412
+ if (parent === void 0) { parent = null; }
413
+ var _a = this.props, bultinCUD = _a.bultinCUD, onAdd = _a.onAdd, options = _a.options;
414
+ if (!bultinCUD) {
415
+ var idxes = findTreeIndex(options, function (item) { return item === parent; }) || [];
416
+ return onAdd && onAdd(idxes.concat(0));
417
+ }
418
+ else {
419
+ this.setState({
420
+ isEditing: false,
421
+ isAdding: true,
422
+ addingParent: parent
423
+ }, function () {
424
+ var e_1, _a;
425
+ if (!parent) {
426
+ return;
427
+ }
428
+ var result = [];
429
+ try {
430
+ for (var _b = __values(_this.state.flattenedOptions), _c = _b.next(); !_c.done; _c = _b.next()) {
431
+ var option = _c.value;
432
+ result.push(option);
433
+ if (option === parent) {
434
+ var insert = { isAdding: true };
435
+ _this.levels.set(insert, (_this.levels.get(option) || 0) + 1);
436
+ result.push(insert);
437
+ }
438
+ }
439
+ }
440
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
441
+ finally {
442
+ try {
443
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
444
+ }
445
+ finally { if (e_1) throw e_1.error; }
446
+ }
447
+ _this.setState({ flattenedOptions: result });
448
+ });
449
+ }
450
+ };
451
+ TreeSelector.prototype.handleEdit = function (item) {
452
+ var _a = this.props, bultinCUD = _a.bultinCUD, onEdit = _a.onEdit, labelField = _a.labelField; _a.options;
453
+ if (!bultinCUD) {
454
+ onEdit === null || onEdit === void 0 ? void 0 : onEdit(item);
455
+ }
456
+ else {
457
+ this.setState({
458
+ isEditing: true,
459
+ isAdding: false,
460
+ editingItem: item,
461
+ inputValue: item[labelField]
462
+ });
463
+ }
464
+ };
465
+ TreeSelector.prototype.handleRemove = function (item) {
466
+ var onDelete = this.props.onDelete;
467
+ onDelete && onDelete(item);
468
+ };
469
+ TreeSelector.prototype.handleInputChange = function (e) {
470
+ this.setState({
471
+ inputValue: e.currentTarget.value
472
+ });
473
+ };
474
+ TreeSelector.prototype.handleConfirm = function () {
475
+ var _a = this.state, value = _a.inputValue, isAdding = _a.isAdding, addingParent = _a.addingParent, editingItem = _a.editingItem, isEditing = _a.isEditing;
476
+ if (!value) {
477
+ return;
478
+ }
479
+ var _b = this.props, labelField = _b.labelField, onAdd = _b.onAdd, options = _b.options, onEdit = _b.onEdit;
480
+ this.setState({
481
+ inputValue: '',
482
+ isAdding: false,
483
+ isEditing: false
484
+ }, function () {
485
+ var _a, _b;
486
+ if (isAdding && onAdd) {
487
+ var idxes = (addingParent &&
488
+ findTreeIndex(options, function (item) { return item === addingParent; })) ||
489
+ [];
490
+ onAdd(idxes.concat(0), (_a = {}, _a[labelField] = value, _a), true);
491
+ }
492
+ else if (isEditing && onEdit) {
493
+ onEdit(__assign(__assign({}, editingItem), (_b = {}, _b[labelField] = value, _b)), editingItem, true);
494
+ }
495
+ });
496
+ };
497
+ TreeSelector.prototype.handleCancel = function () {
498
+ var flattenedOptions = this.state.flattenedOptions;
499
+ var flattenedOptionsWithoutAdding = flattenedOptions.filter(function (item) { return !item.isAdding; });
500
+ this.setState({
501
+ inputValue: '',
502
+ isAdding: false,
503
+ isEditing: false,
504
+ flattenedOptions: flattenedOptionsWithoutAdding
505
+ });
506
+ };
507
+ TreeSelector.prototype.renderInput = function (prfix, testIdBuilder) {
508
+ if (prfix === void 0) { prfix = null; }
509
+ var _a = this.props, cx = _a.classnames, mobileUI = _a.mobileUI, __ = _a.translate;
510
+ var inputValue = this.state.inputValue;
511
+ return (React__default.createElement("div", { className: cx('Tree-itemLabel', {
512
+ 'is-mobile': mobileUI
513
+ }) },
514
+ React__default.createElement("div", { className: cx('Tree-itemInput', {
515
+ 'is-mobile': mobileUI
516
+ }) },
517
+ prfix,
518
+ React__default.createElement("input", __assign({ onChange: this.handleInputChange, value: inputValue, placeholder: __('placeholder.enter') }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('input').getTestId())),
519
+ React__default.createElement("a", __assign({ "data-tooltip": __('cancel'), onClick: this.handleCancel }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('cancel').getTestId()),
520
+ React__default.createElement(Icon, { icon: "close", className: "icon" })),
521
+ React__default.createElement("a", __assign({ "data-tooltip": __('confirm'), onClick: this.handleConfirm }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('confirm').getTestId()),
522
+ React__default.createElement(Icon, { icon: "check", className: "icon" })))));
523
+ };
524
+ TreeSelector.prototype.getOffsetPosition = function (element) {
525
+ var left = 0;
526
+ var top = 0;
527
+ while (element.offsetParent) {
528
+ left += element.offsetLeft;
529
+ top += element.offsetTop;
530
+ element = element.offsetParent;
531
+ }
532
+ return { left: left, top: top };
533
+ };
534
+ TreeSelector.prototype.getDropInfo = function (e, node) {
535
+ var _a;
536
+ var rect = e.currentTarget.getBoundingClientRect();
537
+ var dragNode = this.dragNode;
538
+ var deltaX = Math.min(50, rect.width * 0.3);
539
+ var gap = ((_a = node === null || node === void 0 ? void 0 : node.children) === null || _a === void 0 ? void 0 : _a.length) ? 0 : 16;
540
+ // 计算相对位置
541
+ var offset = this.getOffsetPosition(this.root.current);
542
+ var targetOffset = this.getOffsetPosition(e.currentTarget);
543
+ var left = targetOffset.left - offset.left;
544
+ var top = targetOffset.top - offset.top;
545
+ var clientX = e.clientX, clientY = e.clientY;
546
+ var position = clientY >= rect.top + rect.height / 2 ? 'bottom' : 'top';
547
+ var indicator;
548
+ if (position === 'bottom' && clientX >= this.startPoint.x + deltaX) {
549
+ position = 'self';
550
+ indicator = {
551
+ top: top,
552
+ left: left,
553
+ width: rect.width,
554
+ height: rect.height
555
+ };
556
+ }
557
+ else {
558
+ indicator = {
559
+ top: position === 'bottom' ? top + rect.height : top,
560
+ left: left + gap,
561
+ width: rect.width - gap
562
+ };
563
+ }
564
+ return {
565
+ node: node,
566
+ dragNode: dragNode,
567
+ position: position,
568
+ indicator: indicator
569
+ };
570
+ };
571
+ TreeSelector.prototype.updateDropIndicator = function (e, node) {
572
+ // const gap = node?.children?.length ? 0 : 16;
573
+ this.dropInfo = this.getDropInfo(e, node);
574
+ var _a = this.dropInfo, dragNode = _a.dragNode, indicator = _a.indicator;
575
+ if (node === dragNode) {
576
+ this.setState({ dropIndicator: undefined });
577
+ return;
578
+ }
579
+ this.setState({
580
+ dropIndicator: indicator
581
+ });
582
+ };
583
+ TreeSelector.prototype.onDragStart = function (node) {
584
+ var _this = this;
585
+ var draggable = this.props.draggable;
586
+ return function (e) {
587
+ var _a;
588
+ if (draggable) {
589
+ e.dataTransfer.effectAllowed = 'copyMove';
590
+ _this.dragNode = node;
591
+ _this.dropInfo = null;
592
+ _this.startPoint = {
593
+ x: e.clientX,
594
+ y: e.clientY
595
+ };
596
+ if ((_a = node === null || node === void 0 ? void 0 : node.children) === null || _a === void 0 ? void 0 : _a.length) {
597
+ _this.unfolded.set(node, false);
598
+ _this.flattenOptions();
599
+ _this.forceUpdate();
600
+ }
601
+ }
602
+ else {
603
+ _this.dragNode = null;
604
+ _this.dropInfo = null;
605
+ }
606
+ e.stopPropagation();
607
+ };
608
+ };
609
+ TreeSelector.prototype.onDragOver = function (node) {
610
+ var _this = this;
611
+ return function (e) {
612
+ if (!_this.dragNode) {
613
+ return;
614
+ }
615
+ _this.updateDropIndicator(e, node);
616
+ e.preventDefault();
617
+ };
618
+ };
619
+ TreeSelector.prototype.onDragEnd = function (dragNode) {
620
+ var _this = this;
621
+ return function (e) {
622
+ var _a, _b, _c;
623
+ _this.setState({
624
+ dropIndicator: undefined
625
+ });
626
+ var node = (_a = _this.dropInfo) === null || _a === void 0 ? void 0 : _a.node;
627
+ if (!_this.dropInfo || !node || dragNode === node) {
628
+ return;
629
+ }
630
+ (_c = (_b = _this.props).onMove) === null || _c === void 0 ? void 0 : _c.call(_b, _this.dropInfo);
631
+ _this.dragNode = null;
632
+ _this.dropInfo = null;
633
+ e.preventDefault();
634
+ };
635
+ };
636
+ /**
637
+ * 将树形接口转换为平铺结构,以支持虚拟列表
638
+ * TODO: this.unfolded => reaction 更加合理
639
+ */
640
+ TreeSelector.prototype.flattenOptions = function (props, initial) {
641
+ var _this = this;
642
+ var flattenedOptions = [];
643
+ eachTree((props === null || props === void 0 ? void 0 : props.options) || this.props.options, function (item, index, level, paths) {
644
+ var parent = paths[paths.length - 1];
645
+ if (!isVisible(item)) {
646
+ return;
647
+ }
648
+ _this.levels.set(item, level);
649
+ parent && _this.relations.set(item, parent);
650
+ if (paths.length === 0) {
651
+ // 父节点
652
+ flattenedOptions.push(item);
653
+ }
654
+ else if (_this.isUnfolded(parent)) {
655
+ // 父节点是展开的状态
656
+ flattenedOptions.push(item);
657
+ }
658
+ });
659
+ if (initial) {
660
+ // 初始化
661
+ this.state = __assign(__assign({}, this.state), { flattenedOptions: flattenedOptions });
662
+ }
663
+ else {
664
+ this.setState({
665
+ flattenedOptions: flattenedOptions
666
+ });
667
+ }
668
+ };
669
+ /**
670
+ * 判断父元素是否勾选
671
+ * TODO: 递归可能需要优化
672
+ */
673
+ TreeSelector.prototype.isParentChecked = function (item) {
674
+ if (!item || !this.relations.get(item)) {
675
+ return false;
676
+ }
677
+ var valueSet = this.state.valueSet;
678
+ var currentItem = item;
679
+ while (currentItem) {
680
+ var itemParent = this.relations.get(currentItem);
681
+ if (!itemParent) {
682
+ return false;
683
+ }
684
+ if (valueSet.has(itemParent)) {
685
+ return true;
686
+ }
687
+ currentItem = itemParent;
688
+ }
689
+ return false;
690
+ };
691
+ /**
692
+ * 判断 子元素 是否全部选中
693
+ */
694
+ TreeSelector.prototype.isItemChildrenChecked = function (item) {
695
+ var _this = this;
696
+ if (!item || !item.children) {
697
+ return true;
698
+ }
699
+ return !item.children.some(function (child) { return !_this.isItemChecked(child); });
700
+ };
701
+ /**
702
+ * 判断子元素 部分勾选
703
+ */
704
+ TreeSelector.prototype.isItemChildrenPartialChecked = function (item, checked) {
705
+ var e_2, _a;
706
+ if (!item || !item.children || checked) {
707
+ return false;
708
+ }
709
+ var checkedLength = 0;
710
+ var partialChildrenLength = 0;
711
+ try {
712
+ for (var _b = __values(item.children), _c = _b.next(); !_c.done; _c = _b.next()) {
713
+ var child = _c.value;
714
+ if (this.isItemChecked(child)) {
715
+ checkedLength++;
716
+ }
717
+ else if (this.isItemChildrenPartialChecked(child, false)) {
718
+ partialChildrenLength++;
719
+ }
720
+ }
721
+ }
722
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
723
+ finally {
724
+ try {
725
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
726
+ }
727
+ finally { if (e_2) throw e_2.error; }
728
+ }
729
+ return checkedLength !== 0 || partialChildrenLength !== 0;
730
+ };
731
+ /**
732
+ * 判断元素是否选中:checked
733
+ */
734
+ TreeSelector.prototype.isItemChecked = function (item) {
735
+ var _a;
736
+ if (!item) {
737
+ return false;
738
+ }
739
+ var _b = this.props, autoCheckChildren = _b.autoCheckChildren, onlyChildren = _b.onlyChildren, multiple = _b.multiple, withChildren = _b.withChildren, cascade = _b.cascade;
740
+ var valueSet = this.state.valueSet;
741
+ var checked = valueSet.has(item);
742
+ if (checked) {
743
+ return true;
744
+ }
745
+ if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
746
+ if (onlyChildren && autoCheckChildren) {
747
+ if (this.isItemChildrenChecked(item)) {
748
+ // 当前元素没有在 value 中,但是子组件全部勾选了
749
+ return true;
750
+ }
751
+ }
752
+ }
753
+ var itemParent = this.relations.get(item);
754
+ if (itemParent && multiple && autoCheckChildren) {
755
+ // 当前节点为子节点
756
+ if (withChildren || cascade) {
757
+ return false;
758
+ }
759
+ return this.isParentChecked(item);
760
+ }
761
+ // 判断父组件是否勾选
762
+ return false;
763
+ };
764
+ /**
765
+ * item 是否 disabled 状态
766
+ * props.disabled === true return;
767
+ *
768
+ */
769
+ TreeSelector.prototype.isItemDisabled = function (item, checked) {
770
+ var _a = this.props, disabledField = _a.disabledField, disabled = _a.disabled, autoCheckChildren = _a.autoCheckChildren, valueField = _a.valueField, multiple = _a.multiple, maxLength = _a.maxLength, minLength = _a.minLength, cascade = _a.cascade, onlyChildren = _a.onlyChildren;
771
+ var value = this.state.value;
772
+ var selfDisabled = item[disabledField];
773
+ var nodeDisabled = !!disabled ||
774
+ selfDisabled ||
775
+ (multiple && !autoCheckChildren && !item[valueField]);
776
+ if (nodeDisabled) {
777
+ return true;
778
+ }
779
+ if ((maxLength && !checked && value.length >= maxLength) ||
780
+ (minLength && checked && value.length <= minLength)) {
781
+ return true;
782
+ }
783
+ var itemParent = this.relations.get(item);
784
+ if (autoCheckChildren && multiple && checked && itemParent) {
785
+ if (!this.isItemChecked(itemParent)) {
786
+ return false;
787
+ }
788
+ // 子节点
789
+ if (onlyChildren) {
790
+ return false;
791
+ }
792
+ return !cascade;
793
+ }
794
+ return false;
795
+ };
796
+ TreeSelector.prototype.renderItem = function (_a) {
797
+ var _this = this;
798
+ var index = _a.index, style = _a.style, rest = __rest(_a, ["index", "style"]);
799
+ var _b = this.props, itemClassName = _b.itemClassName, showIcon = _b.showIcon, showRadio = _b.showRadio, multiple = _b.multiple, labelField = _b.labelField, iconField = _b.iconField, deferField = _b.deferField, cascade = _b.cascade, cx = _b.classnames, highlightTxt = _b.highlightTxt, creatable = _b.creatable, editable = _b.editable, removable = _b.removable, createTip = _b.createTip, editTip = _b.editTip, removeTip = _b.removeTip, __ = _b.translate, itemRender = _b.itemRender, draggable = _b.draggable, loadingConfig = _b.loadingConfig, enableDefaultIcon = _b.enableDefaultIcon, valueField = _b.valueField, mobileUI = _b.mobileUI, testIdBuilder = _b.testIdBuilder, itemActionsRender = _b.itemActionsRender, actionClassName = _b.actionClassName;
800
+ var item = this.state.flattenedOptions[index];
801
+ if (!item) {
802
+ return null;
803
+ }
804
+ var _c = this.state, isAdding = _c.isAdding, editingItem = _c.editingItem, isEditing = _c.isEditing;
805
+ var checked = this.isItemChecked(item);
806
+ var disabled = this.isItemDisabled(item, checked);
807
+ var partial = this.isItemChildrenPartialChecked(item, checked);
808
+ var checkedInValue = !!~this.state.value.indexOf(item);
809
+ var itemTestBuilder = testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("item-".concat(item[valueField] || item[labelField] || index));
810
+ var checkbox = multiple ? (React__default.createElement(Checkbox, { size: "sm", disabled: disabled, checked: checked || partial, partial: partial, onChange: this.handleCheck.bind(this, item, !checked), testIdBuilder: itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('chekbx') })) : showRadio ? (React__default.createElement(Checkbox, { size: "sm", disabled: disabled, checked: checked, onChange: this.handleSelect.bind(this, item), testIdBuilder: itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('chekbx') })) : null;
811
+ var isLeaf = (!item.children || !item.children.length) && !item.placeholder;
812
+ var iconValue = item[iconField] ||
813
+ (enableDefaultIcon !== false
814
+ ? (Array.isArray(item.children) && item.children.length) ||
815
+ item[deferField]
816
+ ? 'folder'
817
+ : 'file'
818
+ : false);
819
+ var level = this.levels.has(item) ? this.levels.get(item) - 1 : 0;
820
+ var body = null;
821
+ if (isEditing && editingItem === item) {
822
+ body = this.renderInput(checkbox, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('edit'));
823
+ }
824
+ else if (item.isAdding) {
825
+ body = this.renderInput(React__default.createElement("span", { className: cx('Tree-itemArrowPlaceholder') }), itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('add'));
826
+ }
827
+ else {
828
+ var isFolded = !this.isUnfolded(item);
829
+ body = (React__default.createElement("div", { className: cx('Tree-itemLabel', {
830
+ 'is-children-checked': multiple &&
831
+ !cascade &&
832
+ this.isItemChildrenChecked(item) &&
833
+ !disabled,
834
+ 'is-checked': checkedInValue,
835
+ 'is-disabled': disabled
836
+ }), draggable: draggable, onDragStart: this.onDragStart(item), onDragOver: this.onDragOver(item), onDragEnd: this.onDragEnd(item) },
837
+ draggable && (React__default.createElement("a", __assign({ className: cx('Tree-itemDrager drag-bar') }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('drag-bar').getTestId()),
838
+ React__default.createElement(Icon, { icon: "drag-bar", className: "icon" }))),
839
+ item.loading ? (React__default.createElement(Spinner, { size: "sm", show: true, icon: "reload", spinnerClassName: cx('Tree-spinner'), loadingConfig: loadingConfig })) : !isLeaf || (item[deferField] && !item.loaded) ? (React__default.createElement("div", __assign({ onClick: function () { return _this.toggleUnfolded(item); }, className: cx('Tree-itemArrow', {
840
+ 'is-folded': isFolded
841
+ }) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild(isFolded ? 'open' : 'fold').getTestId()),
842
+ React__default.createElement(Icon, { icon: "down-arrow-bold", className: "icon" }))) : (React__default.createElement("span", { className: cx('Tree-itemArrowPlaceholder') })),
843
+ checkbox,
844
+ React__default.createElement("div", __assign({ className: cx('Tree-itemLabel-item', { 'is-mobile': mobileUI }) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('content').getTestId(), { onClick: function () { return !disabled && _this.handleItemClick(item, checked); } }),
845
+ showIcon ? (React__default.createElement("i", { className: cx("Tree-itemIcon ".concat((Array.isArray(item.children) && item.children.length) ||
846
+ item[deferField]
847
+ ? 'Tree-folderIcon'
848
+ : 'Tree-leafIcon')) }, iconValue ? React__default.createElement(Icon, { icon: iconValue, className: "icon" }) : null)) : null,
849
+ React__default.createElement("span", __assign({ className: cx('Tree-itemText'), title: item[labelField] }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('text').getTestId()), itemRender
850
+ ? itemRender(item, {
851
+ index: index,
852
+ multiple: multiple,
853
+ checked: checked,
854
+ labelField: labelField,
855
+ onChange: function () { return _this.handleCheck(item, !checked); },
856
+ disabled: disabled || item.disabled,
857
+ classnames: cx
858
+ })
859
+ : highlightTxt
860
+ ? highlight("".concat(item[labelField]), highlightTxt)
861
+ : "".concat(item[labelField])),
862
+ !disabled && !isAdding && !isEditing ? (React__default.createElement("div", { className: cx('Tree-item-icons', actionClassName), onClick: function (e) { return e.stopPropagation(); } },
863
+ creatable &&
864
+ !(item[deferField] && !item.loaded) &&
865
+ hasAbility(item, 'creatable') ? (React__default.createElement(TooltipWrapper, { placement: 'bottom', tooltip: __(createTip), trigger: 'hover', tooltipTheme: "dark" },
866
+ React__default.createElement("a", __assign({ onClick: this.handleAdd.bind(this, item) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('add').getTestId()),
867
+ React__default.createElement(Icon, { icon: "plus", className: "icon" })))) : null,
868
+ removable && hasAbility(item, 'removable') ? (React__default.createElement(TooltipWrapper, { placement: 'bottom', tooltip: __(removeTip), trigger: 'hover', tooltipTheme: "dark" },
869
+ React__default.createElement("a", __assign({ onClick: this.handleRemove.bind(this, item) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('remove').getTestId()),
870
+ React__default.createElement(Icon, { icon: "minus", className: "icon" })))) : null,
871
+ editable && hasAbility(item, 'editable') ? (React__default.createElement(TooltipWrapper, { placement: 'bottom', tooltip: __(editTip), trigger: 'hover', tooltipTheme: "dark" },
872
+ React__default.createElement("a", __assign({ onClick: this.handleEdit.bind(this, item) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getChild('edit').getTestId()),
873
+ React__default.createElement(Icon, { icon: "new-edit", className: "icon" })))) : null,
874
+ itemActionsRender && (React__default.createElement("div", { className: cx('Tree-itemActions') }, itemActionsRender(item, __assign(__assign({}, item), { index: index, multiple: multiple, checked: checked, labelField: labelField, onChange: function () { return _this.handleCheck(item, !checked); }, disabled: disabled || item.disabled, classnames: cx })))))) : null)));
875
+ }
876
+ return (React__default.createElement("li", __assign({}, rest, { key: "".concat(item[valueField || 'value'], "-").concat(index), className: cx("Tree-item ".concat(itemClassName || ''), {
877
+ 'Tree-item--isLeaf': isLeaf,
878
+ 'is-child': this.relations.get(item)
879
+ }), style: __assign(__assign({}, style), { '--Tree-depth': level }) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getTestId()), body));
880
+ };
881
+ TreeSelector.prototype.isEmptyOrNotExist = function (obj) {
882
+ return obj === '' || obj === undefined || obj === null;
883
+ };
884
+ TreeSelector.prototype.getAvailableOptions = function () {
885
+ var _this = this;
886
+ var _a = this.props, options = _a.options, onlyChildren = _a.onlyChildren, valueField = _a.valueField;
887
+ var flattendOptions = flattenTree(options, function (item) {
888
+ var _a;
889
+ return onlyChildren
890
+ ? ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length)
891
+ ? null
892
+ : item
893
+ : _this.isEmptyOrNotExist(item[valueField || 'value'])
894
+ ? null
895
+ : item;
896
+ }).filter(function (a) { return a && !a.disabled; });
897
+ return flattendOptions;
898
+ };
899
+ TreeSelector.prototype.handleCheckAll = function (availableOptions, checkedAll) {
900
+ var _this = this;
901
+ this.setState({
902
+ value: checkedAll ? [] : availableOptions
903
+ }, function () { return _this.fireChange(checkedAll ? [] : availableOptions); });
904
+ };
905
+ TreeSelector.prototype.handleToggle = function (bool) {
906
+ var _this = this;
907
+ var availableOptions = this.getAvailableOptions();
908
+ if (bool === undefined) {
909
+ var checkedAll = availableOptions.every(function (option) {
910
+ return _this.isItemChecked(option);
911
+ });
912
+ this.handleCheckAll(availableOptions, checkedAll);
913
+ return;
914
+ }
915
+ this.handleCheckAll(availableOptions, bool);
916
+ };
917
+ TreeSelector.prototype.renderCheckAll = function () {
918
+ var _this = this;
919
+ var _a = this.props, multiple = _a.multiple, checkAll = _a.checkAll, checkAllLabel = _a.checkAllLabel, cx = _a.classnames, __ = _a.translate, disabled = _a.disabled, mobileUI = _a.mobileUI;
920
+ if (!multiple || !checkAll) {
921
+ return null;
922
+ }
923
+ var availableOptions = this.getAvailableOptions();
924
+ var checkedAll = availableOptions.every(function (option) {
925
+ return _this.isItemChecked(option);
926
+ });
927
+ var checkedPartial = availableOptions.some(function (option) {
928
+ return _this.isItemChecked(option);
929
+ });
930
+ return (React__default.createElement("div", { className: cx('Tree-itemLabel'), onClick: function () { return _this.handleCheckAll(availableOptions, checkedAll); } },
931
+ React__default.createElement(Checkbox, { size: "sm", disabled: disabled, checked: checkedPartial, partial: checkedPartial && !checkedAll }),
932
+ React__default.createElement("div", { className: cx('Tree-itemLabel-item', {
933
+ 'is-mobile': mobileUI
934
+ }) },
935
+ React__default.createElement("span", { className: cx('Tree-itemText') }, __(checkAllLabel)))));
936
+ };
937
+ TreeSelector.prototype.styleGetter = function (node) {
938
+ node && this.setState({ itemHeight: (node === null || node === void 0 ? void 0 : node.offsetHeight) || 0 });
939
+ };
940
+ TreeSelector.prototype.renderList = function (list) {
941
+ var _this = this;
942
+ var virtualThreshold = this.props.virtualThreshold;
943
+ var _a = this.state, virtualHeight = _a.virtualHeight, itemHeight = _a.itemHeight;
944
+ if (virtualThreshold && list.length > virtualThreshold) {
945
+ return itemHeight ? (React__default.createElement("div", { ref: this.virtualListRefSetter },
946
+ React__default.createElement(VirtualList, { height: virtualHeight, itemCount: list.length, prefix: this.renderCheckAll(), itemSize: itemHeight, renderItem: this.renderItem }))) : (this.renderItem({ index: 0, ref: this.styleGetter }));
947
+ }
948
+ return (React__default.createElement(React__default.Fragment, null,
949
+ this.renderCheckAll(),
950
+ list.map(function (item, index) { return _this.renderItem({ index: index }); })));
951
+ };
952
+ TreeSelector.prototype.handleVirtualHeight = function () {
953
+ var _a;
954
+ var virtualThreshold = this.props.virtualThreshold;
955
+ var _b = this.state, flattenedOptions = _b.flattenedOptions, itemHeight = _b.itemHeight;
956
+ if (virtualThreshold && flattenedOptions.length > virtualThreshold) {
957
+ // tree 对应元素
958
+ var treeElement = this.root.current;
959
+ if (!this.virtualListRef ||
960
+ (!treeElement.offsetHeight && !treeElement.offsetWidth)) {
961
+ return;
962
+ }
963
+ treeElement =
964
+ ((_a = treeElement === null || treeElement === void 0 ? void 0 : treeElement.parentElement) === null || _a === void 0 ? void 0 : _a.matches('.cxd-TreeControl')) &&
965
+ treeElement.parentElement.childElementCount === 1
966
+ ? treeElement.parentElement
967
+ : treeElement;
968
+ var styles = getComputedStyle(treeElement);
969
+ var offsetHeight = 0;
970
+ if (styles.flexGrow !== '0') {
971
+ // 当配置了成了动态高度时,根据实际高度来
972
+ offsetHeight = treeElement.offsetHeight;
973
+ }
974
+ else {
975
+ offsetHeight =
976
+ itemHeight * Math.min(flattenedOptions.length, virtualThreshold);
977
+ }
978
+ var virtualElement = this.virtualListRef;
979
+ // 通常时外围设置了 maxHeight
980
+ if (virtualElement.offsetHeight &&
981
+ virtualElement.offsetHeight > treeElement.offsetHeight) {
982
+ offsetHeight = treeElement.offsetHeight;
983
+ }
984
+ // 虚拟列表 对应元素
985
+ // todo 去支持外部滚动也支持虚拟滚动的场景,目前不支持,所以只能让高度最大,其实就没启动虚拟滚动
986
+ // 目前只有没有配置 heightAuto 的时候
987
+ // 或者配置了 flexGrow 的时候,才会有虚拟滚动的效果
988
+ var virtualHeight = offsetHeight - calculateHeight(treeElement, virtualElement);
989
+ this.setState({ virtualHeight: virtualHeight });
990
+ }
991
+ };
992
+ TreeSelector.prototype.render = function () {
993
+ var _a = this.props, className = _a.className, placeholder = _a.placeholder, hideRoot = _a.hideRoot, rootLabel = _a.rootLabel, showOutline = _a.showOutline, showIcon = _a.showIcon, cx = _a.classnames, creatable = _a.creatable, rootCreatable = _a.rootCreatable, rootCreateTip = _a.rootCreateTip, disabled = _a.disabled, draggable = _a.draggable, __ = _a.translate, testIdBuilder = _a.testIdBuilder, actionClassName = _a.actionClassName, height = _a.height;
994
+ var _b = this.state, value = _b.value, isAdding = _b.isAdding, addingParent = _b.addingParent, isEditing = _b.isEditing, dropIndicator = _b.dropIndicator, flattenedOptions = _b.flattenedOptions;
995
+ var addBtn = null;
996
+ if (creatable && rootCreatable !== false && hideRoot) {
997
+ addBtn = (React__default.createElement("a", __assign({ className: cx('Tree-addTopBtn', {
998
+ 'is-disabled': isAdding || isEditing
999
+ }), onClick: this.handleAdd.bind(this, null) }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('add').getTestId()),
1000
+ React__default.createElement(Icon, { icon: "plus", className: "icon" }),
1001
+ React__default.createElement("span", null, __(rootCreateTip))));
1002
+ }
1003
+ var style = {};
1004
+ if (height && height > 0) {
1005
+ style = {
1006
+ height: "".concat(height, "px"),
1007
+ maxHeight: 'none'
1008
+ };
1009
+ }
1010
+ return (React__default.createElement("div", __assign({ className: cx("Tree ".concat(className || ''), {
1011
+ 'Tree--outline': showOutline,
1012
+ 'is-disabled': disabled,
1013
+ 'is-draggable': draggable
1014
+ }), style: style, ref: this.root }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId()),
1015
+ (flattenedOptions && flattenedOptions.length) ||
1016
+ addBtn ||
1017
+ hideRoot === false ? (React__default.createElement("ul", { className: cx('Tree-list') }, hideRoot ? (React__default.createElement(React__default.Fragment, null,
1018
+ addBtn,
1019
+ isAdding && !addingParent ? (React__default.createElement("li", { className: cx('Tree-item') }, this.renderInput())) : null,
1020
+ this.renderList(flattenedOptions))) : (React__default.createElement("li", { className: cx('Tree-rootItem', {
1021
+ 'is-checked': !value || !value.length
1022
+ }) },
1023
+ React__default.createElement("div", { className: cx('Tree-itemLabel') },
1024
+ React__default.createElement("span", __assign({ className: cx('Tree-itemText'), onClick: this.clearSelect }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("root-item").getTestId()),
1025
+ showIcon ? (React__default.createElement("i", { className: cx('Tree-itemIcon Tree-rootIcon') },
1026
+ React__default.createElement(Icon, { icon: "home", className: "icon" }))) : null,
1027
+ rootLabel),
1028
+ !disabled &&
1029
+ creatable &&
1030
+ rootCreatable !== false &&
1031
+ !isAdding &&
1032
+ !isEditing ? (React__default.createElement("div", { className: cx('Tree-item-icons', actionClassName) }, creatable ? (React__default.createElement("a", __assign({ onClick: this.handleAdd.bind(this, null), "data-tooltip": rootCreateTip, "data-position": "left" }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild("root-add").getTestId()),
1033
+ React__default.createElement(Icon, { icon: "plus", className: "icon" }))) : null)) : null),
1034
+ React__default.createElement("ul", { className: cx('Tree-sublist') },
1035
+ isAdding && !addingParent ? (React__default.createElement("li", { className: cx('Tree-item') }, this.renderInput())) : null,
1036
+ this.renderList(flattenedOptions)))))) : (React__default.createElement("div", { className: cx('Tree-placeholder') }, placeholder)),
1037
+ dropIndicator && (React__default.createElement("div", { className: cx('Tree-dropIndicator', {
1038
+ 'Tree-dropIndicator--hover': !!dropIndicator.height
1039
+ }), style: dropIndicator }))));
1040
+ };
1041
+ TreeSelector.defaultProps = {
1042
+ showIcon: true,
1043
+ showOutline: false,
1044
+ initiallyOpen: true,
1045
+ unfoldedLevel: 1,
1046
+ showRadio: false,
1047
+ multiple: false,
1048
+ disabled: false,
1049
+ withChildren: false,
1050
+ onlyChildren: false,
1051
+ labelField: 'label',
1052
+ valueField: 'value',
1053
+ iconField: 'icon',
1054
+ deferField: 'defer',
1055
+ unfoldedField: 'unfolded',
1056
+ foldedField: 'foled',
1057
+ disabledField: 'disabled',
1058
+ joinValues: true,
1059
+ extractValue: false,
1060
+ delimiter: ',',
1061
+ hideRoot: true,
1062
+ rootLabel: 'Tree.root',
1063
+ rootValue: 0,
1064
+ autoCheckChildren: true,
1065
+ autoCancelParent: false,
1066
+ cascade: false,
1067
+ selfDisabledAffectChildren: true,
1068
+ rootCreateTip: 'Tree.addRoot',
1069
+ createTip: 'Tree.addChild',
1070
+ editTip: 'Tree.editNode',
1071
+ removeTip: 'Tree.removeNode',
1072
+ enableNodePath: false,
1073
+ pathSeparator: '/',
1074
+ nodePath: [],
1075
+ virtualThreshold: 100,
1076
+ enableDefaultIcon: true
1077
+ };
1078
+ __decorate([
1079
+ autobind,
1080
+ __metadata("design:type", Function),
1081
+ __metadata("design:paramtypes", [Object]),
1082
+ __metadata("design:returntype", void 0)
1083
+ ], TreeSelector.prototype, "virtualListRefSetter", null);
1084
+ __decorate([
1085
+ autobind,
1086
+ __metadata("design:type", Function),
1087
+ __metadata("design:paramtypes", [Object]),
1088
+ __metadata("design:returntype", void 0)
1089
+ ], TreeSelector.prototype, "toggleUnfolded", null);
1090
+ __decorate([
1091
+ autobind,
1092
+ __metadata("design:type", Function),
1093
+ __metadata("design:paramtypes", []),
1094
+ __metadata("design:returntype", void 0)
1095
+ ], TreeSelector.prototype, "clearSelect", null);
1096
+ __decorate([
1097
+ autobind,
1098
+ __metadata("design:type", Function),
1099
+ __metadata("design:paramtypes", [Object, Object]),
1100
+ __metadata("design:returntype", void 0)
1101
+ ], TreeSelector.prototype, "handleSelect", null);
1102
+ __decorate([
1103
+ autobind,
1104
+ __metadata("design:type", Function),
1105
+ __metadata("design:paramtypes", [Object, Boolean]),
1106
+ __metadata("design:returntype", void 0)
1107
+ ], TreeSelector.prototype, "handleItemClick", null);
1108
+ __decorate([
1109
+ autobind,
1110
+ __metadata("design:type", Function),
1111
+ __metadata("design:paramtypes", [Object, Boolean]),
1112
+ __metadata("design:returntype", void 0)
1113
+ ], TreeSelector.prototype, "handleCheck", null);
1114
+ __decorate([
1115
+ autobind,
1116
+ __metadata("design:type", Function),
1117
+ __metadata("design:paramtypes", [Object]),
1118
+ __metadata("design:returntype", void 0)
1119
+ ], TreeSelector.prototype, "handleAdd", null);
1120
+ __decorate([
1121
+ autobind,
1122
+ __metadata("design:type", Function),
1123
+ __metadata("design:paramtypes", [Object]),
1124
+ __metadata("design:returntype", void 0)
1125
+ ], TreeSelector.prototype, "handleEdit", null);
1126
+ __decorate([
1127
+ autobind,
1128
+ __metadata("design:type", Function),
1129
+ __metadata("design:paramtypes", [Object]),
1130
+ __metadata("design:returntype", void 0)
1131
+ ], TreeSelector.prototype, "handleRemove", null);
1132
+ __decorate([
1133
+ autobind,
1134
+ __metadata("design:type", Function),
1135
+ __metadata("design:paramtypes", [Object]),
1136
+ __metadata("design:returntype", void 0)
1137
+ ], TreeSelector.prototype, "handleInputChange", null);
1138
+ __decorate([
1139
+ autobind,
1140
+ __metadata("design:type", Function),
1141
+ __metadata("design:paramtypes", []),
1142
+ __metadata("design:returntype", void 0)
1143
+ ], TreeSelector.prototype, "handleConfirm", null);
1144
+ __decorate([
1145
+ autobind,
1146
+ __metadata("design:type", Function),
1147
+ __metadata("design:paramtypes", []),
1148
+ __metadata("design:returntype", void 0)
1149
+ ], TreeSelector.prototype, "handleCancel", null);
1150
+ __decorate([
1151
+ autobind,
1152
+ __metadata("design:type", Function),
1153
+ __metadata("design:paramtypes", [Object, Object]),
1154
+ __metadata("design:returntype", Object)
1155
+ ], TreeSelector.prototype, "getDropInfo", null);
1156
+ __decorate([
1157
+ autobind,
1158
+ __metadata("design:type", Function),
1159
+ __metadata("design:paramtypes", [Object, Object]),
1160
+ __metadata("design:returntype", void 0)
1161
+ ], TreeSelector.prototype, "updateDropIndicator", null);
1162
+ __decorate([
1163
+ autobind,
1164
+ __metadata("design:type", Function),
1165
+ __metadata("design:paramtypes", [Object]),
1166
+ __metadata("design:returntype", void 0)
1167
+ ], TreeSelector.prototype, "onDragStart", null);
1168
+ __decorate([
1169
+ autobind,
1170
+ __metadata("design:type", Function),
1171
+ __metadata("design:paramtypes", [Object]),
1172
+ __metadata("design:returntype", void 0)
1173
+ ], TreeSelector.prototype, "onDragOver", null);
1174
+ __decorate([
1175
+ autobind,
1176
+ __metadata("design:type", Function),
1177
+ __metadata("design:paramtypes", [Object]),
1178
+ __metadata("design:returntype", void 0)
1179
+ ], TreeSelector.prototype, "onDragEnd", null);
1180
+ __decorate([
1181
+ autobind,
1182
+ __metadata("design:type", Function),
1183
+ __metadata("design:paramtypes", [Object]),
1184
+ __metadata("design:returntype", void 0)
1185
+ ], TreeSelector.prototype, "renderItem", null);
1186
+ __decorate([
1187
+ autobind,
1188
+ __metadata("design:type", Function),
1189
+ __metadata("design:paramtypes", [Array, Boolean]),
1190
+ __metadata("design:returntype", void 0)
1191
+ ], TreeSelector.prototype, "handleCheckAll", null);
1192
+ __decorate([
1193
+ autobind,
1194
+ __metadata("design:type", Function),
1195
+ __metadata("design:paramtypes", [Boolean]),
1196
+ __metadata("design:returntype", void 0)
1197
+ ], TreeSelector.prototype, "handleToggle", null);
1198
+ __decorate([
1199
+ autobind,
1200
+ __metadata("design:type", Function),
1201
+ __metadata("design:paramtypes", [Object]),
1202
+ __metadata("design:returntype", void 0)
1203
+ ], TreeSelector.prototype, "styleGetter", null);
1204
+ __decorate([
1205
+ autobind,
1206
+ __metadata("design:type", Function),
1207
+ __metadata("design:paramtypes", [Object]),
1208
+ __metadata("design:returntype", void 0)
1209
+ ], TreeSelector.prototype, "renderList", null);
1210
+ __decorate([
1211
+ autobind,
1212
+ __metadata("design:type", Function),
1213
+ __metadata("design:paramtypes", []),
1214
+ __metadata("design:returntype", void 0)
1215
+ ], TreeSelector.prototype, "handleVirtualHeight", null);
1216
+ return TreeSelector;
1217
+ }(React__default.Component));
1218
+ var Tree = themeable(localeable(TreeSelector));
1219
+
1220
+ export { TreeSelector, Tree as default };