amis-ui 6.13.0-beta.8 → 6.13.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1042) hide show
  1. package/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 +103 -0
  19. package/esm/components/AutoSizer.d.ts +2 -0
  20. package/esm/components/AutoSizer.js +8 -0
  21. package/esm/components/Avatar.d.ts +374 -0
  22. package/esm/components/Avatar.js +126 -0
  23. package/esm/components/Badge.d.ts +118 -0
  24. package/esm/components/Badge.js +154 -0
  25. package/esm/components/BaiduMapPicker.d.ts +100 -0
  26. package/esm/components/BaiduMapPicker.js +366 -0
  27. package/esm/components/BarCode.d.ts +56 -0
  28. package/esm/components/BarCode.js +42 -0
  29. package/esm/components/Breadcrumb.d.ts +115 -0
  30. package/esm/components/Breadcrumb.js +160 -0
  31. package/esm/components/Button.d.ts +147 -0
  32. package/esm/components/Button.js +63 -0
  33. package/esm/components/CalendarMobile.d.ts +431 -0
  34. package/esm/components/CalendarMobile.js +538 -0
  35. package/esm/components/Card.d.ts +444 -0
  36. package/esm/components/Card.js +88 -0
  37. package/esm/components/Cascader.d.ts +108 -0
  38. package/esm/components/Cascader.js +515 -0
  39. package/esm/components/ChainedDropdownSelection.d.ts +561 -0
  40. package/esm/components/ChainedDropdownSelection.js +104 -0
  41. package/esm/components/ChainedSelection.d.ts +554 -0
  42. package/esm/components/ChainedSelection.js +184 -0
  43. package/esm/components/Checkbox.d.ts +110 -0
  44. package/esm/components/Checkbox.js +87 -0
  45. package/esm/components/CityArea.d.ts +299 -0
  46. package/esm/components/CityArea.js +190 -0
  47. package/esm/components/CityDB.d.ts +13 -0
  48. package/esm/components/CityDB.js +3942 -0
  49. package/esm/components/CodeMirror.d.ts +29 -0
  50. package/esm/components/CodeMirror.js +140 -0
  51. package/esm/components/Collapse.d.ts +447 -0
  52. package/esm/components/Collapse.js +184 -0
  53. package/esm/components/CollapseGroup.d.ts +219 -0
  54. package/esm/components/CollapseGroup.js +117 -0
  55. package/esm/components/ColorPicker.d.ts +530 -0
  56. package/esm/components/ColorPicker.js +260 -0
  57. package/esm/components/Combo.d.ts +354 -0
  58. package/esm/components/Combo.js +212 -0
  59. package/esm/components/ConditionBuilder.d.ts +2 -0
  60. package/esm/components/ConditionBuilder.js +7 -0
  61. package/esm/components/ConfirmBox.d.ts +322 -0
  62. package/esm/components/ConfirmBox.js +129 -0
  63. package/esm/components/ContextMenu.d.ts +115 -0
  64. package/esm/components/ContextMenu.js +305 -0
  65. package/esm/components/DatePicker.d.ts +638 -0
  66. package/esm/components/DatePicker.js +717 -0
  67. package/esm/components/DateRangePicker.d.ts +1046 -0
  68. package/esm/components/DateRangePicker.js +1389 -0
  69. package/esm/components/DiffEditor.d.ts +21 -0
  70. package/esm/components/DiffEditor.js +119 -0
  71. package/esm/components/DndContainer.d.ts +205 -0
  72. package/esm/components/DndContainer.js +25 -0
  73. package/esm/components/Drawer.d.ts +158 -0
  74. package/esm/components/Drawer.js +269 -0
  75. package/esm/components/DropDownSelection.d.ts +557 -0
  76. package/esm/components/DropDownSelection.js +78 -0
  77. package/esm/components/DropdownContextMenus.d.ts +84 -0
  78. package/esm/components/DropdownContextMenus.js +93 -0
  79. package/esm/components/Editor.d.ts +681 -0
  80. package/esm/components/Editor.js +238 -0
  81. package/esm/components/Form.d.ts +31 -0
  82. package/esm/components/Form.js +84 -0
  83. package/esm/components/FormField.d.ts +287 -0
  84. package/esm/components/FormField.js +78 -0
  85. package/esm/components/FormulaPicker.d.ts +2 -0
  86. package/esm/components/FormulaPicker.js +7 -0
  87. package/esm/components/GaodeMapPicker.d.ts +89 -0
  88. package/esm/components/GaodeMapPicker.js +204 -0
  89. package/esm/components/GridNav.d.ts +53 -0
  90. package/esm/components/GridNav.js +125 -0
  91. package/esm/components/GridNavItem.d.ts +2 -0
  92. package/esm/components/GridNavItem.js +7 -0
  93. package/esm/components/GroupedSelection.d.ts +543 -0
  94. package/esm/components/GroupedSelection.js +138 -0
  95. package/esm/components/HeadCellDropDown.d.ts +2 -0
  96. package/esm/components/HeadCellDropDown.js +7 -0
  97. package/esm/components/HorizontalScroll.d.ts +75 -0
  98. package/esm/components/HorizontalScroll.js +271 -0
  99. package/esm/components/Html.d.ts +82 -0
  100. package/esm/components/Html.js +52 -0
  101. package/esm/components/Icon.d.ts +2 -0
  102. package/esm/components/Icon.js +7 -0
  103. package/esm/components/ImageGallery.d.ts +465 -0
  104. package/esm/components/ImageGallery.js +396 -0
  105. package/esm/components/Input.d.ts +18 -0
  106. package/esm/components/Input.js +75 -0
  107. package/esm/components/InputBox.d.ts +100 -0
  108. package/esm/components/InputBox.js +98 -0
  109. package/esm/components/InputBoxWithSuggestion.d.ts +272 -0
  110. package/esm/components/InputBoxWithSuggestion.js +69 -0
  111. package/esm/components/InputJSONSchema.d.ts +2 -0
  112. package/esm/components/InputJSONSchema.js +7 -0
  113. package/esm/components/InputTable.d.ts +317 -0
  114. package/esm/components/InputTable.js +176 -0
  115. package/esm/components/JSONSchemaEditor.d.ts +2 -0
  116. package/esm/components/JSONSchemaEditor.js +7 -0
  117. package/esm/components/Layout.d.ts +74 -0
  118. package/esm/components/Layout.js +60 -0
  119. package/esm/components/Link.d.ts +60 -0
  120. package/esm/components/Link.js +44 -0
  121. package/esm/components/ListGroup.d.ts +77 -0
  122. package/esm/components/ListGroup.js +31 -0
  123. package/esm/components/ListMenu.d.ts +568 -0
  124. package/esm/components/ListMenu.js +62 -0
  125. package/esm/components/LocationPicker.d.ts +467 -0
  126. package/esm/components/LocationPicker.js +208 -0
  127. package/esm/components/Markdown.d.ts +25 -0
  128. package/esm/components/Markdown.js +70 -0
  129. package/esm/components/Menu.d.ts +2 -0
  130. package/esm/components/Menu.js +7 -0
  131. package/esm/components/MobileDevTool.d.ts +12 -0
  132. package/esm/components/MobileDevTool.js +312 -0
  133. package/esm/components/Modal.d.ts +1316 -0
  134. package/esm/components/Modal.js +261 -0
  135. package/esm/components/ModalManager.d.ts +17 -0
  136. package/esm/components/ModalManager.js +42 -0
  137. package/esm/components/MonthRangePicker.d.ts +744 -0
  138. package/esm/components/MultilineText.d.ts +454 -0
  139. package/esm/components/MultilineText.js +90 -0
  140. package/esm/components/NumberInput.d.ts +201 -0
  141. package/esm/components/NumberInput.js +274 -0
  142. package/esm/components/OverflowTpl.d.ts +61 -0
  143. package/esm/components/OverflowTpl.js +101 -0
  144. package/esm/components/Pagination.d.ts +812 -0
  145. package/esm/components/Pagination.js +375 -0
  146. package/esm/components/PdfViewer.d.ts +49 -0
  147. package/esm/components/PdfViewer.js +83 -0
  148. package/esm/components/Picker.d.ts +277 -0
  149. package/esm/components/Picker.js +73 -0
  150. package/esm/components/PickerColumn.d.ts +62 -0
  151. package/esm/components/PickerColumn.js +276 -0
  152. package/esm/components/PickerContainer.d.ts +291 -0
  153. package/esm/components/PickerContainer.js +157 -0
  154. package/esm/components/PopOverContainer.d.ts +59 -0
  155. package/esm/components/PopOverContainer.js +149 -0
  156. package/esm/components/PopUp.d.ts +573 -0
  157. package/esm/components/PopUp.js +85 -0
  158. package/esm/components/Progress.d.ts +311 -0
  159. package/esm/components/Progress.js +136 -0
  160. package/esm/components/PullRefresh.d.ts +79 -0
  161. package/esm/components/PullRefresh.js +172 -0
  162. package/esm/components/Radios.d.ts +170 -0
  163. package/esm/components/Radios.js +122 -0
  164. package/esm/components/Range.d.ts +131 -0
  165. package/esm/components/Range.js +517 -0
  166. package/esm/components/Rating.d.ts +227 -0
  167. package/esm/components/Rating.js +341 -0
  168. package/esm/components/ResultBox.d.ts +532 -0
  169. package/esm/components/ResultBox.js +215 -0
  170. package/esm/components/ResultList.d.ts +554 -0
  171. package/esm/components/ResultList.js +254 -0
  172. package/esm/components/ResultTableList.d.ts +786 -0
  173. package/esm/components/ResultTableList.js +152 -0
  174. package/esm/components/ResultTreeList.d.ts +425 -0
  175. package/esm/components/ResultTreeList.js +239 -0
  176. package/esm/components/RichText.d.ts +48 -0
  177. package/esm/components/RichText.js +271 -0
  178. package/esm/components/SearchBox.d.ts +625 -0
  179. package/esm/components/SearchBox.js +299 -0
  180. package/esm/components/Select.d.ts +6498 -0
  181. package/esm/components/Select.js +843 -0
  182. package/esm/components/SelectMobile.d.ts +38 -0
  183. package/esm/components/SelectMobile.js +370 -0
  184. package/esm/components/Selection.d.ts +598 -0
  185. package/esm/components/Selection.js +166 -0
  186. package/esm/components/Shape.d.ts +58 -0
  187. package/esm/components/Shape.js +429 -0
  188. package/esm/components/Signature.d.ts +279 -0
  189. package/esm/components/Signature.js +291 -0
  190. package/esm/components/Slider.d.ts +56 -0
  191. package/esm/components/Slider.js +140 -0
  192. package/esm/components/SparkLine.d.ts +397 -0
  193. package/esm/components/SparkLine.js +62 -0
  194. package/esm/components/Spinner.d.ts +266 -0
  195. package/esm/components/Spinner.js +202 -0
  196. package/esm/components/Steps.d.ts +117 -0
  197. package/esm/components/Steps.js +76 -0
  198. package/esm/components/Switch.d.ts +105 -0
  199. package/esm/components/Switch.js +73 -0
  200. package/esm/components/Tab.d.ts +2 -0
  201. package/esm/components/Tab.js +7 -0
  202. package/esm/components/Table.d.ts +2 -0
  203. package/esm/components/Table.js +7 -0
  204. package/esm/components/TableSelection.d.ts +791 -0
  205. package/esm/components/TableSelection.js +169 -0
  206. package/esm/components/Tabs.d.ts +670 -0
  207. package/esm/components/Tabs.js +607 -0
  208. package/esm/components/TabsTransfer.d.ts +423 -0
  209. package/esm/components/TabsTransfer.js +219 -0
  210. package/esm/components/TabsTransferPicker.d.ts +267 -0
  211. package/esm/components/TabsTransferPicker.js +81 -0
  212. package/esm/components/Tag.d.ts +307 -0
  213. package/esm/components/Tag.js +137 -0
  214. package/esm/components/Textarea.d.ts +564 -0
  215. package/esm/components/Textarea.js +147 -0
  216. package/esm/components/Timeline.d.ts +56 -0
  217. package/esm/components/Timeline.js +60 -0
  218. package/esm/components/TimelineItem.d.ts +1292 -0
  219. package/esm/components/TimelineItem.js +101 -0
  220. package/esm/components/Tinymce.d.ts +66 -0
  221. package/esm/components/Tinymce.js +632 -0
  222. package/esm/components/TitleBar.d.ts +123 -0
  223. package/esm/components/TitleBar.js +48 -0
  224. package/esm/components/Toast.d.ts +591 -0
  225. package/esm/components/Toast.js +247 -0
  226. package/esm/components/Tooltip.d.ts +65 -0
  227. package/esm/components/Tooltip.js +36 -0
  228. package/esm/components/TooltipWrapper.d.ts +217 -0
  229. package/esm/components/TooltipWrapper.js +181 -0
  230. package/esm/components/Transfer.d.ts +1844 -0
  231. package/esm/components/Transfer.js +481 -0
  232. package/esm/components/TransferDropDown.d.ts +634 -0
  233. package/esm/components/TransferDropDown.js +98 -0
  234. package/esm/components/TransferPicker.d.ts +275 -0
  235. package/esm/components/TransferPicker.js +98 -0
  236. package/esm/components/TransferSearch.d.ts +283 -0
  237. package/esm/components/TransferSearch.js +100 -0
  238. package/esm/components/Tree.d.ts +1991 -0
  239. package/esm/components/Tree.js +1179 -0
  240. package/esm/components/TreeSelection.d.ts +601 -0
  241. package/esm/components/TreeSelection.js +201 -0
  242. package/esm/components/UserSelect.d.ts +541 -0
  243. package/esm/components/UserSelect.js +674 -0
  244. package/esm/components/UserTabSelect.d.ts +315 -0
  245. package/esm/components/UserTabSelect.js +227 -0
  246. package/esm/components/VerificationCode.d.ts +116 -0
  247. package/esm/components/VerificationCode.js +172 -0
  248. package/esm/components/VirtualList.d.ts +2 -0
  249. package/esm/components/VirtualList.js +7 -0
  250. package/esm/components/WithRemoteConfig.d.ts +383 -0
  251. package/esm/components/WithRemoteConfig.js +302 -0
  252. package/esm/components/WithStore.d.ts +72 -0
  253. package/esm/components/WithStore.js +48 -0
  254. package/esm/components/calendar/Calendar.d.ts +83 -0
  255. package/esm/components/calendar/Calendar.js +529 -0
  256. package/esm/components/calendar/CalendarContainer.d.ts +10 -0
  257. package/esm/components/calendar/CalendarContainer.js +27 -0
  258. package/esm/components/calendar/DaysView.d.ts +184 -0
  259. package/esm/components/calendar/DaysView.js +527 -0
  260. package/esm/components/calendar/MonthsView.d.ts +133 -0
  261. package/esm/components/calendar/MonthsView.js +175 -0
  262. package/esm/components/calendar/QuartersView.d.ts +102 -0
  263. package/esm/components/calendar/QuartersView.js +125 -0
  264. package/esm/components/calendar/TimeView.d.ts +183 -0
  265. package/esm/components/calendar/TimeView.js +559 -0
  266. package/esm/components/calendar/YearsView.d.ts +102 -0
  267. package/esm/components/calendar/YearsView.js +122 -0
  268. package/esm/components/condition-builder/Expression.d.ts +292 -0
  269. package/esm/components/condition-builder/Expression.js +121 -0
  270. package/esm/components/condition-builder/Field.d.ts +272 -0
  271. package/esm/components/condition-builder/Field.js +32 -0
  272. package/esm/components/condition-builder/Formula.d.ts +261 -0
  273. package/esm/components/condition-builder/Func.d.ts +273 -0
  274. package/esm/components/condition-builder/Func.js +75 -0
  275. package/esm/components/condition-builder/Group.d.ts +310 -0
  276. package/esm/components/condition-builder/Group.js +191 -0
  277. package/esm/components/condition-builder/GroupOrItem.d.ts +87 -0
  278. package/esm/components/condition-builder/GroupOrItem.js +105 -0
  279. package/esm/components/condition-builder/InputSwitch.d.ts +47 -0
  280. package/esm/components/condition-builder/InputSwitch.js +28 -0
  281. package/esm/components/condition-builder/Item.d.ts +287 -0
  282. package/esm/components/condition-builder/Item.js +232 -0
  283. package/esm/components/condition-builder/Value.d.ts +272 -0
  284. package/esm/components/condition-builder/Value.js +108 -0
  285. package/esm/components/condition-builder/config.d.ts +36 -0
  286. package/esm/components/condition-builder/config.js +120 -0
  287. package/esm/components/condition-builder/index.d.ts +319 -0
  288. package/esm/components/condition-builder/index.js +228 -0
  289. package/esm/components/condition-builder/types.d.ts +115 -0
  290. package/esm/components/formula/CodeEditor.d.ts +92 -0
  291. package/esm/components/formula/CodeEditor.js +99 -0
  292. package/esm/components/formula/Editor.d.ts +516 -0
  293. package/esm/components/formula/Editor.js +430 -0
  294. package/esm/components/formula/FuncList.d.ts +46 -0
  295. package/esm/components/formula/FuncList.js +63 -0
  296. package/esm/components/formula/Input.d.ts +292 -0
  297. package/esm/components/formula/Input.js +122 -0
  298. package/esm/components/formula/Picker.d.ts +492 -0
  299. package/esm/components/formula/Picker.js +454 -0
  300. package/esm/components/formula/VariableList.d.ts +58 -0
  301. package/esm/components/formula/VariableList.js +182 -0
  302. package/esm/components/formula/plugin.d.ts +51 -0
  303. package/esm/components/formula/plugin.js +372 -0
  304. package/esm/components/icons.d.ts +61 -0
  305. package/esm/components/icons.js +456 -0
  306. package/esm/components/index.d.ts +136 -0
  307. package/esm/components/json-schema/Array.d.ts +3 -0
  308. package/esm/components/json-schema/Array.js +129 -0
  309. package/esm/components/json-schema/Item.d.ts +5 -0
  310. package/esm/components/json-schema/Item.js +63 -0
  311. package/esm/components/json-schema/Object.d.ts +5 -0
  312. package/esm/components/json-schema/Object.js +265 -0
  313. package/esm/components/json-schema/index.d.ts +272 -0
  314. package/esm/components/json-schema/index.js +29 -0
  315. package/esm/components/menu/MenuContext.d.ts +83 -0
  316. package/esm/components/menu/MenuContext.js +25 -0
  317. package/esm/components/menu/MenuItem.d.ts +81 -0
  318. package/esm/components/menu/MenuItem.js +112 -0
  319. package/esm/components/menu/PanelMenu.d.ts +46 -0
  320. package/esm/components/menu/PanelMenu.js +68 -0
  321. package/esm/components/menu/SubMenu.d.ts +84 -0
  322. package/esm/components/menu/SubMenu.js +137 -0
  323. package/esm/components/menu/index.d.ts +381 -0
  324. package/esm/components/menu/index.js +369 -0
  325. package/esm/components/schema-editor/Array.d.ts +11 -0
  326. package/esm/components/schema-editor/Array.js +84 -0
  327. package/esm/components/schema-editor/Common.d.ts +61 -0
  328. package/esm/components/schema-editor/Common.js +161 -0
  329. package/esm/components/schema-editor/Item.d.ts +8 -0
  330. package/esm/components/schema-editor/Item.js +24 -0
  331. package/esm/components/schema-editor/Object.d.ts +51 -0
  332. package/esm/components/schema-editor/Object.js +294 -0
  333. package/esm/components/schema-editor/SchemaVariableList.d.ts +186 -0
  334. package/esm/components/schema-editor/SchemaVariableList.js +74 -0
  335. package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
  336. package/esm/components/schema-editor/SchemaVariableListPicker.js +34 -0
  337. package/esm/components/schema-editor/index.d.ts +797 -0
  338. package/esm/components/schema-editor/index.js +122 -0
  339. package/esm/components/table/Cell.d.ts +36 -0
  340. package/esm/components/table/Cell.js +43 -0
  341. package/esm/components/table/ColGroup.d.ts +24 -0
  342. package/esm/components/table/ColGroup.js +58 -0
  343. package/esm/components/table/Head.d.ts +45 -0
  344. package/esm/components/table/Head.js +150 -0
  345. package/esm/components/table/HeadCellDropDown.d.ts +289 -0
  346. package/esm/components/table/HeadCellDropDown.js +55 -0
  347. package/esm/components/table/HeadCellFilter.d.ts +414 -0
  348. package/esm/components/table/HeadCellFilter.js +131 -0
  349. package/esm/components/table/HeadCellSelect.d.ts +357 -0
  350. package/esm/components/table/HeadCellSelect.js +52 -0
  351. package/esm/components/table/HeadCellSort.d.ts +278 -0
  352. package/esm/components/table/HeadCellSort.js +88 -0
  353. package/esm/components/table/ItemActionsWrapper.d.ts +10 -0
  354. package/esm/components/table/ItemActionsWrapper.js +29 -0
  355. package/esm/components/table/Row.d.ts +56 -0
  356. package/esm/components/table/Row.js +224 -0
  357. package/esm/components/table/SummaryRow.d.ts +28 -0
  358. package/esm/components/table/SummaryRow.js +73 -0
  359. package/esm/components/table/index.d.ts +852 -0
  360. package/esm/components/table/index.js +1067 -0
  361. package/esm/components/table/util.d.ts +56 -0
  362. package/esm/components/table/util.js +263 -0
  363. package/esm/components/virtual-list/AutoSizer.d.ts +19 -0
  364. package/esm/components/virtual-list/AutoSizer.js +49 -0
  365. package/esm/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
  366. package/esm/components/virtual-list/SizeAndPositionManager.js +216 -0
  367. package/esm/components/virtual-list/constants.d.ts +34 -0
  368. package/esm/components/virtual-list/constants.js +45 -0
  369. package/esm/components/virtual-list/index.d.ts +99 -0
  370. package/esm/components/virtual-list/index.js +288 -0
  371. package/esm/components/withBadge.d.ts +2 -0
  372. package/esm/components/withBadge.js +7 -0
  373. package/esm/hooks/index.d.ts +8 -0
  374. package/esm/hooks/use-click-away.d.ts +12 -0
  375. package/esm/hooks/use-click-away.js +55 -0
  376. package/esm/hooks/use-on-screen.d.ts +2 -0
  377. package/esm/hooks/use-on-screen.js +28 -0
  378. package/esm/hooks/use-set-state.d.ts +2 -0
  379. package/esm/hooks/use-set-state.js +19 -0
  380. package/esm/hooks/use-sub-form.d.ts +4 -0
  381. package/esm/hooks/use-sub-form.js +39 -0
  382. package/esm/hooks/use-touch.d.ts +16 -0
  383. package/esm/hooks/use-touch.js +77 -0
  384. package/esm/hooks/use-update-effect.d.ts +3 -0
  385. package/esm/hooks/use-update-effect.js +21 -0
  386. package/esm/hooks/use-validation-resolver.d.ts +7 -0
  387. package/esm/hooks/use-validation-resolver.js +115 -0
  388. package/esm/icons/alert-danger.svg.js +22 -0
  389. package/esm/icons/alert-info.svg.js +22 -0
  390. package/esm/icons/alert-success.svg.js +22 -0
  391. package/esm/icons/alert-warning.svg.js +22 -0
  392. package/esm/icons/arrow-double-left.svg.js +24 -0
  393. package/esm/icons/arrow-double-right.svg.js +24 -0
  394. package/esm/icons/back.svg.js +21 -0
  395. package/esm/icons/calendar.svg.js +31 -0
  396. package/esm/icons/caret.svg.js +21 -0
  397. package/esm/icons/check.svg.js +21 -0
  398. package/esm/icons/clock.svg.js +29 -0
  399. package/esm/icons/close-small.svg.js +24 -0
  400. package/esm/icons/close.svg.js +21 -0
  401. package/esm/icons/cloud-upload.svg.js +22 -0
  402. package/esm/icons/column-filter.svg.js +22 -0
  403. package/esm/icons/columns.svg.js +21 -0
  404. package/esm/icons/compress-alt.svg.js +21 -0
  405. package/esm/icons/copy.svg.js +26 -0
  406. package/esm/icons/date.svg.js +26 -0
  407. package/esm/icons/department.svg.js +52 -0
  408. package/esm/icons/desk-empty.svg.js +73 -0
  409. package/esm/icons/dot.svg.js +36 -0
  410. package/esm/icons/down-arrow-bold.svg.js +22 -0
  411. package/esm/icons/down.svg.js +23 -0
  412. package/esm/icons/download.svg.js +24 -0
  413. package/esm/icons/drag-bar.svg.js +53 -0
  414. package/esm/icons/drag.svg.js +22 -0
  415. package/esm/icons/edit.svg.js +21 -0
  416. package/esm/icons/ellipsis-v.svg.js +21 -0
  417. package/esm/icons/enter.svg.js +20 -0
  418. package/esm/icons/exchange.svg.js +21 -0
  419. package/esm/icons/expand-alt.svg.js +21 -0
  420. package/esm/icons/fail.svg.js +31 -0
  421. package/esm/icons/file.svg.js +22 -0
  422. package/esm/icons/filter.svg.js +21 -0
  423. package/esm/icons/folder.svg.js +24 -0
  424. package/esm/icons/fullscreen.svg.js +21 -0
  425. package/esm/icons/function.svg.js +21 -0
  426. package/esm/icons/home.svg.js +21 -0
  427. package/esm/icons/if.svg.js +21 -0
  428. package/esm/icons/image.svg.js +20 -0
  429. package/esm/icons/info-circle.svg.js +21 -0
  430. package/esm/icons/info.svg.js +27 -0
  431. package/esm/icons/input-clear.svg.js +20 -0
  432. package/esm/icons/invisible.svg.js +22 -0
  433. package/esm/icons/left-arrow.svg.js +23 -0
  434. package/esm/icons/loading-outline.svg.js +21 -0
  435. package/esm/icons/location.svg.js +20 -0
  436. package/esm/icons/menu.svg.js +20 -0
  437. package/esm/icons/minus.svg.js +21 -0
  438. package/esm/icons/move.svg.js +22 -0
  439. package/esm/icons/mute.svg.js +21 -0
  440. package/esm/icons/new-edit.svg.js +22 -0
  441. package/esm/icons/pause.svg.js +21 -0
  442. package/esm/icons/pencil.svg.js +21 -0
  443. package/esm/icons/play.svg.js +20 -0
  444. package/esm/icons/plus-cicle.svg.js +20 -0
  445. package/esm/icons/plus-fine.svg.js +21 -0
  446. package/esm/icons/plus.svg.js +21 -0
  447. package/esm/icons/post.svg.js +48 -0
  448. package/esm/icons/question-mark.svg.js +26 -0
  449. package/esm/icons/question.svg.js +21 -0
  450. package/esm/icons/redo.svg.js +21 -0
  451. package/esm/icons/refresh.svg.js +21 -0
  452. package/esm/icons/reload.svg.js +21 -0
  453. package/esm/icons/remove.svg.js +21 -0
  454. package/esm/icons/retry.svg.js +24 -0
  455. package/esm/icons/right-arrow-bold.svg.js +21 -0
  456. package/esm/icons/right-arrow.svg.js +23 -0
  457. package/esm/icons/right-double-arrow.svg.js +22 -0
  458. package/esm/icons/role.svg.js +43 -0
  459. package/esm/icons/rotate-left.svg.js +22 -0
  460. package/esm/icons/rotate-right.svg.js +22 -0
  461. package/esm/icons/rotate-screen.svg.js +21 -0
  462. package/esm/icons/scale-origin.svg.js +24 -0
  463. package/esm/icons/schedule.svg.js +24 -0
  464. package/esm/icons/search.svg.js +21 -0
  465. package/esm/icons/setting.svg.js +21 -0
  466. package/esm/icons/slider-handle-icon.svg.js +22 -0
  467. package/esm/icons/sort-asc.svg.js +21 -0
  468. package/esm/icons/sort-default.svg.js +21 -0
  469. package/esm/icons/sort-desc.svg.js +21 -0
  470. package/esm/icons/star.svg.js +21 -0
  471. package/esm/icons/status-close.svg.js +23 -0
  472. package/esm/icons/steps-finsh.svg.js +22 -0
  473. package/esm/icons/sub-plus.svg.js +20 -0
  474. package/esm/icons/success.svg.js +29 -0
  475. package/esm/icons/transparent.svg.js +38 -0
  476. package/esm/icons/trash.svg.js +22 -0
  477. package/esm/icons/tree-down.svg.js +21 -0
  478. package/esm/icons/undo-normal.svg.js +25 -0
  479. package/esm/icons/undo.svg.js +21 -0
  480. package/esm/icons/unfullscreen.svg.js +21 -0
  481. package/esm/icons/upload.svg.js +21 -0
  482. package/esm/icons/user-remove.svg.js +33 -0
  483. package/esm/icons/view.svg.js +22 -0
  484. package/esm/icons/volume.svg.js +24 -0
  485. package/esm/icons/warning-mark.svg.js +22 -0
  486. package/esm/icons/warning.svg.js +21 -0
  487. package/esm/icons/window-restore.svg.js +21 -0
  488. package/esm/icons/zoom-in.svg.js +21 -0
  489. package/esm/icons/zoom-out.svg.js +21 -0
  490. package/esm/index.d.ts +15 -0
  491. package/esm/index.js +154 -0
  492. package/esm/locale/de-DE.d.ts +1 -0
  493. package/esm/locale/de-DE.js +419 -0
  494. package/esm/locale/en-US.d.ts +1 -0
  495. package/esm/locale/en-US.js +425 -0
  496. package/esm/locale/zh-CN.d.ts +1 -0
  497. package/esm/locale/zh-CN.js +434 -0
  498. package/esm/themes/ang.d.ts +3 -0
  499. package/esm/themes/ang.js +15 -0
  500. package/esm/themes/antd.d.ts +1 -0
  501. package/esm/themes/antd.js +42 -0
  502. package/esm/themes/cxd.d.ts +3 -0
  503. package/esm/themes/cxd.js +455 -0
  504. package/esm/themes/dark.d.ts +3 -0
  505. package/esm/themes/dark.js +23 -0
  506. package/esm/themes/default.d.ts +4 -0
  507. package/esm/utils/index.d.ts +2 -0
  508. package/esm/utils/smoothSignature.d.ts +86 -0
  509. package/esm/utils/vectorComputed.d.ts +20 -0
  510. package/esm/utils/vectorComputed.js +75 -0
  511. package/esm/withRemoteConfig.d.ts +2 -0
  512. package/esm/withRemoteConfig.js +7 -0
  513. package/esm/withStore.d.ts +2 -0
  514. package/esm/withStore.js +7 -0
  515. package/lib/components/404.d.ts +53 -0
  516. package/lib/components/404.js +43 -0
  517. package/lib/components/Alert.d.ts +615 -0
  518. package/lib/components/Alert.js +279 -0
  519. package/lib/components/Alert2.d.ts +117 -0
  520. package/lib/components/Alert2.js +66 -0
  521. package/lib/components/AlphabetIndexer.d.ts +11 -0
  522. package/lib/components/AlphabetIndexer.js +59 -0
  523. package/lib/components/AnchorNav.d.ts +162 -0
  524. package/lib/components/AnchorNav.js +162 -0
  525. package/lib/components/AnchorNavSection.d.ts +2 -0
  526. package/lib/components/AnchorNavSection.js +14 -0
  527. package/lib/components/ArrayInput.d.ts +617 -0
  528. package/lib/components/ArrayInput.js +160 -0
  529. package/lib/components/AsideNav.d.ts +142 -0
  530. package/lib/components/AsideNav.js +140 -0
  531. package/lib/components/AssociatedSelection.d.ts +564 -0
  532. package/lib/components/AssociatedSelection.js +106 -0
  533. package/lib/components/AutoSizer.d.ts +2 -0
  534. package/lib/components/AutoSizer.js +15 -0
  535. package/lib/components/Avatar.d.ts +374 -0
  536. package/lib/components/Avatar.js +154 -0
  537. package/lib/components/Badge.d.ts +118 -0
  538. package/lib/components/Badge.js +165 -0
  539. package/lib/components/BaiduMapPicker.d.ts +100 -0
  540. package/lib/components/BaiduMapPicker.js +379 -0
  541. package/lib/components/BarCode.d.ts +56 -0
  542. package/lib/components/BarCode.js +52 -0
  543. package/lib/components/Breadcrumb.d.ts +115 -0
  544. package/lib/components/Breadcrumb.js +170 -0
  545. package/lib/components/Button.d.ts +147 -0
  546. package/lib/components/Button.js +71 -0
  547. package/lib/components/CalendarMobile.d.ts +431 -0
  548. package/lib/components/CalendarMobile.js +546 -0
  549. package/lib/components/Card.d.ts +444 -0
  550. package/lib/components/Card.js +100 -0
  551. package/lib/components/Cascader.d.ts +108 -0
  552. package/lib/components/Cascader.js +527 -0
  553. package/lib/components/ChainedDropdownSelection.d.ts +561 -0
  554. package/lib/components/ChainedDropdownSelection.js +116 -0
  555. package/lib/components/ChainedSelection.d.ts +554 -0
  556. package/lib/components/ChainedSelection.js +197 -0
  557. package/lib/components/Checkbox.d.ts +110 -0
  558. package/lib/components/Checkbox.js +95 -0
  559. package/lib/components/CityArea.d.ts +299 -0
  560. package/lib/components/CityArea.js +197 -0
  561. package/lib/components/CityDB.d.ts +13 -0
  562. package/lib/components/CityDB.js +3949 -0
  563. package/lib/components/CodeMirror.d.ts +29 -0
  564. package/lib/components/CodeMirror.js +152 -0
  565. package/lib/components/Collapse.d.ts +447 -0
  566. package/lib/components/Collapse.js +192 -0
  567. package/lib/components/CollapseGroup.d.ts +219 -0
  568. package/lib/components/CollapseGroup.js +124 -0
  569. package/lib/components/ColorPicker.d.ts +530 -0
  570. package/lib/components/ColorPicker.js +267 -0
  571. package/lib/components/Combo.d.ts +354 -0
  572. package/lib/components/Combo.js +165 -0
  573. package/lib/components/ConditionBuilder.d.ts +2 -0
  574. package/lib/components/ConditionBuilder.js +14 -0
  575. package/lib/components/ConfirmBox.d.ts +322 -0
  576. package/lib/components/ConfirmBox.js +141 -0
  577. package/lib/components/ContextMenu.d.ts +115 -0
  578. package/lib/components/ContextMenu.js +322 -0
  579. package/lib/components/DatePicker.d.ts +638 -0
  580. package/lib/components/DatePicker.js +725 -0
  581. package/lib/components/DateRangePicker.d.ts +1046 -0
  582. package/lib/components/DateRangePicker.js +1401 -0
  583. package/lib/components/DiffEditor.d.ts +21 -0
  584. package/lib/components/DiffEditor.js +130 -0
  585. package/lib/components/DndContainer.d.ts +205 -0
  586. package/lib/components/DndContainer.js +32 -0
  587. package/lib/components/Drawer.d.ts +158 -0
  588. package/lib/components/Drawer.js +279 -0
  589. package/lib/components/DropDownSelection.d.ts +557 -0
  590. package/lib/components/DropDownSelection.js +85 -0
  591. package/lib/components/DropdownContextMenus.d.ts +84 -0
  592. package/lib/components/DropdownContextMenus.js +101 -0
  593. package/lib/components/Editor.d.ts +681 -0
  594. package/lib/components/Editor.js +246 -0
  595. package/lib/components/Form.d.ts +31 -0
  596. package/lib/components/Form.js +97 -0
  597. package/lib/components/FormField.d.ts +287 -0
  598. package/lib/components/FormField.js +90 -0
  599. package/lib/components/FormulaPicker.d.ts +2 -0
  600. package/lib/components/FormulaPicker.js +14 -0
  601. package/lib/components/GaodeMapPicker.d.ts +89 -0
  602. package/lib/components/GaodeMapPicker.js +217 -0
  603. package/lib/components/GridNav.d.ts +53 -0
  604. package/lib/components/GridNav.js +133 -0
  605. package/lib/components/GridNavItem.d.ts +2 -0
  606. package/lib/components/GridNavItem.js +14 -0
  607. package/lib/components/GroupedSelection.d.ts +543 -0
  608. package/lib/components/GroupedSelection.js +150 -0
  609. package/lib/components/HeadCellDropDown.d.ts +2 -0
  610. package/lib/components/HeadCellDropDown.js +14 -0
  611. package/lib/components/HorizontalScroll.d.ts +75 -0
  612. package/lib/components/HorizontalScroll.js +283 -0
  613. package/lib/components/Html.d.ts +82 -0
  614. package/lib/components/Html.js +59 -0
  615. package/lib/components/Icon.d.ts +2 -0
  616. package/lib/components/Icon.js +14 -0
  617. package/lib/components/ImageGallery.d.ts +465 -0
  618. package/lib/components/ImageGallery.js +409 -0
  619. package/lib/components/Input.d.ts +18 -0
  620. package/lib/components/Input.js +86 -0
  621. package/lib/components/InputBox.d.ts +100 -0
  622. package/lib/components/InputBox.js +110 -0
  623. package/lib/components/InputBoxWithSuggestion.d.ts +272 -0
  624. package/lib/components/InputBoxWithSuggestion.js +81 -0
  625. package/lib/components/InputJSONSchema.d.ts +2 -0
  626. package/lib/components/InputJSONSchema.js +14 -0
  627. package/lib/components/InputTable.d.ts +317 -0
  628. package/lib/components/InputTable.js +189 -0
  629. package/lib/components/JSONSchemaEditor.d.ts +2 -0
  630. package/lib/components/JSONSchemaEditor.js +14 -0
  631. package/lib/components/Layout.d.ts +74 -0
  632. package/lib/components/Layout.js +56 -0
  633. package/lib/components/Link.d.ts +60 -0
  634. package/lib/components/Link.js +56 -0
  635. package/lib/components/ListGroup.d.ts +77 -0
  636. package/lib/components/ListGroup.js +43 -0
  637. package/lib/components/ListMenu.d.ts +568 -0
  638. package/lib/components/ListMenu.js +74 -0
  639. package/lib/components/LocationPicker.d.ts +467 -0
  640. package/lib/components/LocationPicker.js +220 -0
  641. package/lib/components/Markdown.d.ts +25 -0
  642. package/lib/components/Markdown.js +83 -0
  643. package/lib/components/Menu.d.ts +2 -0
  644. package/lib/components/Menu.js +14 -0
  645. package/lib/components/MobileDevTool.d.ts +12 -0
  646. package/lib/components/MobileDevTool.js +325 -0
  647. package/lib/components/Modal.d.ts +1316 -0
  648. package/lib/components/Modal.js +272 -0
  649. package/lib/components/ModalManager.d.ts +17 -0
  650. package/lib/components/ModalManager.js +53 -0
  651. package/lib/components/MonthRangePicker.d.ts +744 -0
  652. package/lib/components/MultilineText.d.ts +454 -0
  653. package/lib/components/MultilineText.js +102 -0
  654. package/lib/components/NumberInput.d.ts +201 -0
  655. package/lib/components/NumberInput.js +289 -0
  656. package/lib/components/OverflowTpl.d.ts +61 -0
  657. package/lib/components/OverflowTpl.js +109 -0
  658. package/lib/components/Pagination.d.ts +812 -0
  659. package/lib/components/Pagination.js +388 -0
  660. package/lib/components/PdfViewer.d.ts +49 -0
  661. package/lib/components/PdfViewer.js +89 -0
  662. package/lib/components/Picker.d.ts +277 -0
  663. package/lib/components/Picker.js +80 -0
  664. package/lib/components/PickerColumn.d.ts +62 -0
  665. package/lib/components/PickerColumn.js +288 -0
  666. package/lib/components/PickerContainer.d.ts +291 -0
  667. package/lib/components/PickerContainer.js +169 -0
  668. package/lib/components/PopOverContainer.d.ts +59 -0
  669. package/lib/components/PopOverContainer.js +162 -0
  670. package/lib/components/PopUp.d.ts +573 -0
  671. package/lib/components/PopUp.js +94 -0
  672. package/lib/components/Progress.d.ts +311 -0
  673. package/lib/components/Progress.js +148 -0
  674. package/lib/components/PullRefresh.d.ts +79 -0
  675. package/lib/components/PullRefresh.js +178 -0
  676. package/lib/components/Radios.d.ts +170 -0
  677. package/lib/components/Radios.js +119 -0
  678. package/lib/components/Range.d.ts +131 -0
  679. package/lib/components/Range.js +528 -0
  680. package/lib/components/Rating.d.ts +227 -0
  681. package/lib/components/Rating.js +349 -0
  682. package/lib/components/ResultBox.d.ts +532 -0
  683. package/lib/components/ResultBox.js +230 -0
  684. package/lib/components/ResultList.d.ts +554 -0
  685. package/lib/components/ResultList.js +268 -0
  686. package/lib/components/ResultTableList.d.ts +786 -0
  687. package/lib/components/ResultTableList.js +161 -0
  688. package/lib/components/ResultTreeList.d.ts +425 -0
  689. package/lib/components/ResultTreeList.js +254 -0
  690. package/lib/components/RichText.d.ts +48 -0
  691. package/lib/components/RichText.js +283 -0
  692. package/lib/components/SearchBox.d.ts +625 -0
  693. package/lib/components/SearchBox.js +315 -0
  694. package/lib/components/Select.d.ts +6498 -0
  695. package/lib/components/Select.js +861 -0
  696. package/lib/components/SelectMobile.d.ts +38 -0
  697. package/lib/components/SelectMobile.js +382 -0
  698. package/lib/components/Selection.d.ts +598 -0
  699. package/lib/components/Selection.js +176 -0
  700. package/lib/components/Shape.d.ts +58 -0
  701. package/lib/components/Shape.js +434 -0
  702. package/lib/components/Signature.d.ts +279 -0
  703. package/lib/components/Signature.js +295 -0
  704. package/lib/components/Slider.d.ts +56 -0
  705. package/lib/components/Slider.js +146 -0
  706. package/lib/components/SparkLine.d.ts +397 -0
  707. package/lib/components/SparkLine.js +74 -0
  708. package/lib/components/Spinner.d.ts +266 -0
  709. package/lib/components/Spinner.js +210 -0
  710. package/lib/components/Steps.d.ts +117 -0
  711. package/lib/components/Steps.js +84 -0
  712. package/lib/components/Switch.d.ts +105 -0
  713. package/lib/components/Switch.js +80 -0
  714. package/lib/components/Tab.d.ts +2 -0
  715. package/lib/components/Tab.js +14 -0
  716. package/lib/components/Table.d.ts +2 -0
  717. package/lib/components/Table.js +14 -0
  718. package/lib/components/TableSelection.d.ts +791 -0
  719. package/lib/components/TableSelection.js +183 -0
  720. package/lib/components/Tabs.d.ts +670 -0
  721. package/lib/components/Tabs.js +618 -0
  722. package/lib/components/TabsTransfer.d.ts +423 -0
  723. package/lib/components/TabsTransfer.js +232 -0
  724. package/lib/components/TabsTransferPicker.d.ts +267 -0
  725. package/lib/components/TabsTransferPicker.js +93 -0
  726. package/lib/components/Tag.d.ts +307 -0
  727. package/lib/components/Tag.js +146 -0
  728. package/lib/components/Textarea.d.ts +564 -0
  729. package/lib/components/Textarea.js +160 -0
  730. package/lib/components/Timeline.d.ts +56 -0
  731. package/lib/components/Timeline.js +68 -0
  732. package/lib/components/TimelineItem.d.ts +1292 -0
  733. package/lib/components/TimelineItem.js +118 -0
  734. package/lib/components/Tinymce.d.ts +66 -0
  735. package/lib/components/Tinymce.js +648 -0
  736. package/lib/components/TitleBar.d.ts +123 -0
  737. package/lib/components/TitleBar.js +51 -0
  738. package/lib/components/Toast.d.ts +591 -0
  739. package/lib/components/Toast.js +258 -0
  740. package/lib/components/Tooltip.d.ts +65 -0
  741. package/lib/components/Tooltip.js +43 -0
  742. package/lib/components/TooltipWrapper.d.ts +217 -0
  743. package/lib/components/TooltipWrapper.js +188 -0
  744. package/lib/components/Transfer.d.ts +1844 -0
  745. package/lib/components/Transfer.js +498 -0
  746. package/lib/components/TransferDropDown.d.ts +634 -0
  747. package/lib/components/TransferDropDown.js +106 -0
  748. package/lib/components/TransferPicker.d.ts +275 -0
  749. package/lib/components/TransferPicker.js +110 -0
  750. package/lib/components/TransferSearch.d.ts +283 -0
  751. package/lib/components/TransferSearch.js +113 -0
  752. package/lib/components/Tree.d.ts +1991 -0
  753. package/lib/components/Tree.js +1173 -0
  754. package/lib/components/TreeSelection.d.ts +601 -0
  755. package/lib/components/TreeSelection.js +209 -0
  756. package/lib/components/UserSelect.d.ts +541 -0
  757. package/lib/components/UserSelect.js +685 -0
  758. package/lib/components/UserTabSelect.d.ts +315 -0
  759. package/lib/components/UserTabSelect.js +235 -0
  760. package/lib/components/VerificationCode.d.ts +116 -0
  761. package/lib/components/VerificationCode.js +191 -0
  762. package/lib/components/VirtualList.d.ts +2 -0
  763. package/lib/components/VirtualList.js +14 -0
  764. package/lib/components/WithRemoteConfig.d.ts +383 -0
  765. package/lib/components/WithRemoteConfig.js +316 -0
  766. package/lib/components/WithStore.d.ts +72 -0
  767. package/lib/components/WithStore.js +61 -0
  768. package/lib/components/calendar/Calendar.d.ts +83 -0
  769. package/lib/components/calendar/Calendar.js +542 -0
  770. package/lib/components/calendar/CalendarContainer.d.ts +10 -0
  771. package/lib/components/calendar/CalendarContainer.js +38 -0
  772. package/lib/components/calendar/DaysView.d.ts +184 -0
  773. package/lib/components/calendar/DaysView.js +546 -0
  774. package/lib/components/calendar/MonthsView.d.ts +133 -0
  775. package/lib/components/calendar/MonthsView.js +188 -0
  776. package/lib/components/calendar/QuartersView.d.ts +102 -0
  777. package/lib/components/calendar/QuartersView.js +138 -0
  778. package/lib/components/calendar/TimeView.d.ts +183 -0
  779. package/lib/components/calendar/TimeView.js +574 -0
  780. package/lib/components/calendar/YearsView.d.ts +102 -0
  781. package/lib/components/calendar/YearsView.js +135 -0
  782. package/lib/components/condition-builder/Expression.d.ts +292 -0
  783. package/lib/components/condition-builder/Expression.js +133 -0
  784. package/lib/components/condition-builder/Field.d.ts +272 -0
  785. package/lib/components/condition-builder/Field.js +44 -0
  786. package/lib/components/condition-builder/Formula.d.ts +261 -0
  787. package/lib/components/condition-builder/Func.d.ts +273 -0
  788. package/lib/components/condition-builder/Func.js +87 -0
  789. package/lib/components/condition-builder/Group.d.ts +310 -0
  790. package/lib/components/condition-builder/Group.js +203 -0
  791. package/lib/components/condition-builder/GroupOrItem.d.ts +87 -0
  792. package/lib/components/condition-builder/GroupOrItem.js +117 -0
  793. package/lib/components/condition-builder/InputSwitch.d.ts +47 -0
  794. package/lib/components/condition-builder/InputSwitch.js +36 -0
  795. package/lib/components/condition-builder/Item.d.ts +287 -0
  796. package/lib/components/condition-builder/Item.js +244 -0
  797. package/lib/components/condition-builder/Value.d.ts +272 -0
  798. package/lib/components/condition-builder/Value.js +121 -0
  799. package/lib/components/condition-builder/config.d.ts +36 -0
  800. package/lib/components/condition-builder/config.js +125 -0
  801. package/lib/components/condition-builder/index.d.ts +319 -0
  802. package/lib/components/condition-builder/index.js +240 -0
  803. package/lib/components/condition-builder/types.d.ts +115 -0
  804. package/lib/components/formula/CodeEditor.d.ts +92 -0
  805. package/lib/components/formula/CodeEditor.js +110 -0
  806. package/lib/components/formula/Editor.d.ts +516 -0
  807. package/lib/components/formula/Editor.js +444 -0
  808. package/lib/components/formula/FuncList.d.ts +46 -0
  809. package/lib/components/formula/FuncList.js +75 -0
  810. package/lib/components/formula/Input.d.ts +292 -0
  811. package/lib/components/formula/Input.js +134 -0
  812. package/lib/components/formula/Picker.d.ts +492 -0
  813. package/lib/components/formula/Picker.js +467 -0
  814. package/lib/components/formula/VariableList.d.ts +58 -0
  815. package/lib/components/formula/VariableList.js +193 -0
  816. package/lib/components/formula/plugin.d.ts +51 -0
  817. package/lib/components/formula/plugin.js +381 -0
  818. package/lib/components/icons.d.ts +61 -0
  819. package/lib/components/icons.js +484 -0
  820. package/lib/components/index.d.ts +136 -0
  821. package/lib/components/json-schema/Array.d.ts +3 -0
  822. package/lib/components/json-schema/Array.js +140 -0
  823. package/lib/components/json-schema/Item.d.ts +5 -0
  824. package/lib/components/json-schema/Item.js +75 -0
  825. package/lib/components/json-schema/Object.d.ts +5 -0
  826. package/lib/components/json-schema/Object.js +278 -0
  827. package/lib/components/json-schema/index.d.ts +272 -0
  828. package/lib/components/json-schema/index.js +40 -0
  829. package/lib/components/menu/MenuContext.d.ts +83 -0
  830. package/lib/components/menu/MenuContext.js +29 -0
  831. package/lib/components/menu/MenuItem.d.ts +81 -0
  832. package/lib/components/menu/MenuItem.js +120 -0
  833. package/lib/components/menu/PanelMenu.d.ts +46 -0
  834. package/lib/components/menu/PanelMenu.js +74 -0
  835. package/lib/components/menu/SubMenu.d.ts +84 -0
  836. package/lib/components/menu/SubMenu.js +145 -0
  837. package/lib/components/menu/index.d.ts +381 -0
  838. package/lib/components/menu/index.js +379 -0
  839. package/lib/components/schema-editor/Array.d.ts +11 -0
  840. package/lib/components/schema-editor/Array.js +95 -0
  841. package/lib/components/schema-editor/Common.d.ts +61 -0
  842. package/lib/components/schema-editor/Common.js +174 -0
  843. package/lib/components/schema-editor/Item.d.ts +8 -0
  844. package/lib/components/schema-editor/Item.js +35 -0
  845. package/lib/components/schema-editor/Object.d.ts +51 -0
  846. package/lib/components/schema-editor/Object.js +305 -0
  847. package/lib/components/schema-editor/SchemaVariableList.d.ts +186 -0
  848. package/lib/components/schema-editor/SchemaVariableList.js +86 -0
  849. package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
  850. package/lib/components/schema-editor/SchemaVariableListPicker.js +46 -0
  851. package/lib/components/schema-editor/index.d.ts +797 -0
  852. package/lib/components/schema-editor/index.js +131 -0
  853. package/lib/components/table/Cell.d.ts +36 -0
  854. package/lib/components/table/Cell.js +50 -0
  855. package/lib/components/table/ColGroup.d.ts +24 -0
  856. package/lib/components/table/ColGroup.js +69 -0
  857. package/lib/components/table/Head.d.ts +45 -0
  858. package/lib/components/table/Head.js +157 -0
  859. package/lib/components/table/HeadCellDropDown.d.ts +289 -0
  860. package/lib/components/table/HeadCellDropDown.js +63 -0
  861. package/lib/components/table/HeadCellFilter.d.ts +414 -0
  862. package/lib/components/table/HeadCellFilter.js +140 -0
  863. package/lib/components/table/HeadCellSelect.d.ts +357 -0
  864. package/lib/components/table/HeadCellSelect.js +60 -0
  865. package/lib/components/table/HeadCellSort.d.ts +278 -0
  866. package/lib/components/table/HeadCellSort.js +96 -0
  867. package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
  868. package/lib/components/table/ItemActionsWrapper.js +40 -0
  869. package/lib/components/table/Row.d.ts +56 -0
  870. package/lib/components/table/Row.js +231 -0
  871. package/lib/components/table/SummaryRow.d.ts +28 -0
  872. package/lib/components/table/SummaryRow.js +81 -0
  873. package/lib/components/table/index.d.ts +852 -0
  874. package/lib/components/table/index.js +1081 -0
  875. package/lib/components/table/util.d.ts +56 -0
  876. package/lib/components/table/util.js +285 -0
  877. package/lib/components/virtual-list/AutoSizer.d.ts +19 -0
  878. package/lib/components/virtual-list/AutoSizer.js +76 -0
  879. package/lib/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
  880. package/lib/components/virtual-list/SizeAndPositionManager.js +220 -0
  881. package/lib/components/virtual-list/constants.d.ts +34 -0
  882. package/lib/components/virtual-list/constants.js +53 -0
  883. package/lib/components/virtual-list/index.d.ts +99 -0
  884. package/lib/components/virtual-list/index.js +317 -0
  885. package/lib/components/withBadge.d.ts +2 -0
  886. package/lib/components/withBadge.js +14 -0
  887. package/lib/helper.css +47744 -0
  888. package/lib/hooks/index.d.ts +8 -0
  889. package/lib/hooks/use-click-away.d.ts +12 -0
  890. package/lib/hooks/use-click-away.js +59 -0
  891. package/lib/hooks/use-on-screen.d.ts +2 -0
  892. package/lib/hooks/use-on-screen.js +32 -0
  893. package/lib/hooks/use-set-state.d.ts +2 -0
  894. package/lib/hooks/use-set-state.js +27 -0
  895. package/lib/hooks/use-sub-form.d.ts +4 -0
  896. package/lib/hooks/use-sub-form.js +48 -0
  897. package/lib/hooks/use-touch.d.ts +16 -0
  898. package/lib/hooks/use-touch.js +81 -0
  899. package/lib/hooks/use-update-effect.d.ts +3 -0
  900. package/lib/hooks/use-update-effect.js +25 -0
  901. package/lib/hooks/use-validation-resolver.d.ts +7 -0
  902. package/lib/hooks/use-validation-resolver.js +125 -0
  903. package/lib/icons/alert-danger.svg.js +29 -0
  904. package/lib/icons/alert-info.svg.js +29 -0
  905. package/lib/icons/alert-success.svg.js +29 -0
  906. package/lib/icons/alert-warning.svg.js +29 -0
  907. package/lib/icons/arrow-double-left.svg.js +31 -0
  908. package/lib/icons/arrow-double-right.svg.js +31 -0
  909. package/lib/icons/back.svg.js +28 -0
  910. package/lib/icons/calendar.svg.js +38 -0
  911. package/lib/icons/caret.svg.js +28 -0
  912. package/lib/icons/check.svg.js +28 -0
  913. package/lib/icons/clock.svg.js +36 -0
  914. package/lib/icons/close-small.svg.js +31 -0
  915. package/lib/icons/close.svg.js +28 -0
  916. package/lib/icons/cloud-upload.svg.js +29 -0
  917. package/lib/icons/column-filter.svg.js +29 -0
  918. package/lib/icons/columns.svg.js +28 -0
  919. package/lib/icons/compress-alt.svg.js +28 -0
  920. package/lib/icons/copy.svg.js +33 -0
  921. package/lib/icons/date.svg.js +33 -0
  922. package/lib/icons/department.svg.js +59 -0
  923. package/lib/icons/desk-empty.svg.js +80 -0
  924. package/lib/icons/dot.svg.js +43 -0
  925. package/lib/icons/down-arrow-bold.svg.js +29 -0
  926. package/lib/icons/down.svg.js +30 -0
  927. package/lib/icons/download.svg.js +31 -0
  928. package/lib/icons/drag-bar.svg.js +60 -0
  929. package/lib/icons/drag.svg.js +29 -0
  930. package/lib/icons/edit.svg.js +28 -0
  931. package/lib/icons/ellipsis-v.svg.js +28 -0
  932. package/lib/icons/enter.svg.js +27 -0
  933. package/lib/icons/exchange.svg.js +28 -0
  934. package/lib/icons/expand-alt.svg.js +28 -0
  935. package/lib/icons/fail.svg.js +38 -0
  936. package/lib/icons/file.svg.js +29 -0
  937. package/lib/icons/filter.svg.js +28 -0
  938. package/lib/icons/folder.svg.js +31 -0
  939. package/lib/icons/fullscreen.svg.js +28 -0
  940. package/lib/icons/function.svg.js +28 -0
  941. package/lib/icons/home.svg.js +28 -0
  942. package/lib/icons/if.svg.js +28 -0
  943. package/lib/icons/image.svg.js +27 -0
  944. package/lib/icons/info-circle.svg.js +28 -0
  945. package/lib/icons/info.svg.js +34 -0
  946. package/lib/icons/input-clear.svg.js +27 -0
  947. package/lib/icons/invisible.svg.js +29 -0
  948. package/lib/icons/left-arrow.svg.js +30 -0
  949. package/lib/icons/loading-outline.svg.js +28 -0
  950. package/lib/icons/location.svg.js +27 -0
  951. package/lib/icons/menu.svg.js +27 -0
  952. package/lib/icons/minus.svg.js +28 -0
  953. package/lib/icons/move.svg.js +29 -0
  954. package/lib/icons/mute.svg.js +28 -0
  955. package/lib/icons/new-edit.svg.js +29 -0
  956. package/lib/icons/pause.svg.js +28 -0
  957. package/lib/icons/pencil.svg.js +28 -0
  958. package/lib/icons/play.svg.js +27 -0
  959. package/lib/icons/plus-cicle.svg.js +27 -0
  960. package/lib/icons/plus-fine.svg.js +28 -0
  961. package/lib/icons/plus.svg.js +28 -0
  962. package/lib/icons/post.svg.js +55 -0
  963. package/lib/icons/question-mark.svg.js +33 -0
  964. package/lib/icons/question.svg.js +28 -0
  965. package/lib/icons/redo.svg.js +28 -0
  966. package/lib/icons/refresh.svg.js +28 -0
  967. package/lib/icons/reload.svg.js +28 -0
  968. package/lib/icons/remove.svg.js +28 -0
  969. package/lib/icons/retry.svg.js +31 -0
  970. package/lib/icons/right-arrow-bold.svg.js +28 -0
  971. package/lib/icons/right-arrow.svg.js +30 -0
  972. package/lib/icons/right-double-arrow.svg.js +29 -0
  973. package/lib/icons/role.svg.js +50 -0
  974. package/lib/icons/rotate-left.svg.js +29 -0
  975. package/lib/icons/rotate-right.svg.js +29 -0
  976. package/lib/icons/rotate-screen.svg.js +28 -0
  977. package/lib/icons/scale-origin.svg.js +31 -0
  978. package/lib/icons/schedule.svg.js +31 -0
  979. package/lib/icons/search.svg.js +28 -0
  980. package/lib/icons/setting.svg.js +28 -0
  981. package/lib/icons/slider-handle-icon.svg.js +29 -0
  982. package/lib/icons/sort-asc.svg.js +28 -0
  983. package/lib/icons/sort-default.svg.js +28 -0
  984. package/lib/icons/sort-desc.svg.js +28 -0
  985. package/lib/icons/star.svg.js +28 -0
  986. package/lib/icons/status-close.svg.js +30 -0
  987. package/lib/icons/steps-finsh.svg.js +29 -0
  988. package/lib/icons/sub-plus.svg.js +27 -0
  989. package/lib/icons/success.svg.js +36 -0
  990. package/lib/icons/transparent.svg.js +45 -0
  991. package/lib/icons/trash.svg.js +29 -0
  992. package/lib/icons/tree-down.svg.js +28 -0
  993. package/lib/icons/undo-normal.svg.js +32 -0
  994. package/lib/icons/undo.svg.js +28 -0
  995. package/lib/icons/unfullscreen.svg.js +28 -0
  996. package/lib/icons/upload.svg.js +28 -0
  997. package/lib/icons/user-remove.svg.js +40 -0
  998. package/lib/icons/view.svg.js +29 -0
  999. package/lib/icons/volume.svg.js +31 -0
  1000. package/lib/icons/warning-mark.svg.js +29 -0
  1001. package/lib/icons/warning.svg.js +28 -0
  1002. package/lib/icons/window-restore.svg.js +28 -0
  1003. package/lib/icons/zoom-in.svg.js +28 -0
  1004. package/lib/icons/zoom-out.svg.js +28 -0
  1005. package/lib/index.d.ts +15 -0
  1006. package/lib/index.js +344 -0
  1007. package/lib/locale/de-DE.d.ts +1 -0
  1008. package/lib/locale/de-DE.js +421 -0
  1009. package/lib/locale/en-US.d.ts +1 -0
  1010. package/lib/locale/en-US.js +427 -0
  1011. package/lib/locale/zh-CN.d.ts +1 -0
  1012. package/lib/locale/zh-CN.js +436 -0
  1013. package/lib/scss/helper.scss.js +12 -0
  1014. package/lib/scss/themes/ang.scss.js +12 -0
  1015. package/lib/scss/themes/antd.scss.js +12 -0
  1016. package/lib/scss/themes/cxd.scss.js +12 -0
  1017. package/lib/scss/themes/dark.scss.js +12 -0
  1018. package/lib/scss/themes/default.scss.js +12 -0
  1019. package/lib/themes/ang.css +46228 -0
  1020. package/lib/themes/ang.d.ts +3 -0
  1021. package/lib/themes/ang.js +20 -0
  1022. package/lib/themes/antd.css +46215 -0
  1023. package/lib/themes/antd.d.ts +1 -0
  1024. package/lib/themes/antd.js +44 -0
  1025. package/lib/themes/cxd.css +46204 -0
  1026. package/lib/themes/cxd.d.ts +3 -0
  1027. package/lib/themes/cxd.js +459 -0
  1028. package/lib/themes/dark.css +46235 -0
  1029. package/lib/themes/dark.d.ts +3 -0
  1030. package/lib/themes/dark.js +28 -0
  1031. package/lib/themes/default.css +46204 -0
  1032. package/lib/themes/default.d.ts +4 -0
  1033. package/lib/utils/index.d.ts +2 -0
  1034. package/lib/utils/smoothSignature.d.ts +86 -0
  1035. package/lib/utils/vectorComputed.d.ts +20 -0
  1036. package/lib/utils/vectorComputed.js +84 -0
  1037. package/lib/withRemoteConfig.d.ts +2 -0
  1038. package/lib/withRemoteConfig.js +14 -0
  1039. package/lib/withStore.d.ts +2 -0
  1040. package/lib/withStore.js +14 -0
  1041. package/package.json +3 -3
  1042. package/scss/components/_table.scss +2 -0
@@ -0,0 +1,34 @@
1
+ export declare enum ALIGNMENT {
2
+ AUTO = "auto",
3
+ START = "start",
4
+ CENTER = "center",
5
+ END = "end"
6
+ }
7
+ export declare enum DIRECTION {
8
+ HORIZONTAL = "horizontal",
9
+ VERTICAL = "vertical"
10
+ }
11
+ export declare enum SCROLL_CHANGE_REASON {
12
+ OBSERVED = "observed",
13
+ REQUESTED = "requested"
14
+ }
15
+ export declare const scrollProp: {
16
+ vertical: string;
17
+ horizontal: string;
18
+ };
19
+ export declare const sizeProp: {
20
+ vertical: string;
21
+ horizontal: string;
22
+ };
23
+ export declare const positionProp: {
24
+ vertical: string;
25
+ horizontal: string;
26
+ };
27
+ export declare const marginProp: {
28
+ vertical: string;
29
+ horizontal: string;
30
+ };
31
+ export declare const oppositeMarginProp: {
32
+ vertical: string;
33
+ horizontal: string;
34
+ };
@@ -0,0 +1,45 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ var _a, _b, _c, _d, _e;
7
+ var ALIGNMENT;
8
+ (function (ALIGNMENT) {
9
+ ALIGNMENT["AUTO"] = "auto";
10
+ ALIGNMENT["START"] = "start";
11
+ ALIGNMENT["CENTER"] = "center";
12
+ ALIGNMENT["END"] = "end";
13
+ })(ALIGNMENT || (ALIGNMENT = {}));
14
+ var DIRECTION;
15
+ (function (DIRECTION) {
16
+ DIRECTION["HORIZONTAL"] = "horizontal";
17
+ DIRECTION["VERTICAL"] = "vertical";
18
+ })(DIRECTION || (DIRECTION = {}));
19
+ var SCROLL_CHANGE_REASON;
20
+ (function (SCROLL_CHANGE_REASON) {
21
+ SCROLL_CHANGE_REASON["OBSERVED"] = "observed";
22
+ SCROLL_CHANGE_REASON["REQUESTED"] = "requested";
23
+ })(SCROLL_CHANGE_REASON || (SCROLL_CHANGE_REASON = {}));
24
+ var scrollProp = (_a = {},
25
+ _a[DIRECTION.VERTICAL] = 'scrollTop',
26
+ _a[DIRECTION.HORIZONTAL] = 'scrollLeft',
27
+ _a);
28
+ var sizeProp = (_b = {},
29
+ _b[DIRECTION.VERTICAL] = 'height',
30
+ _b[DIRECTION.HORIZONTAL] = 'width',
31
+ _b);
32
+ var positionProp = (_c = {},
33
+ _c[DIRECTION.VERTICAL] = 'top',
34
+ _c[DIRECTION.HORIZONTAL] = 'left',
35
+ _c);
36
+ var marginProp = (_d = {},
37
+ _d[DIRECTION.VERTICAL] = 'marginTop',
38
+ _d[DIRECTION.HORIZONTAL] = 'marginLeft',
39
+ _d);
40
+ var oppositeMarginProp = (_e = {},
41
+ _e[DIRECTION.VERTICAL] = 'marginBottom',
42
+ _e[DIRECTION.HORIZONTAL] = 'marginRight',
43
+ _e);
44
+
45
+ export { ALIGNMENT, DIRECTION, SCROLL_CHANGE_REASON, marginProp, oppositeMarginProp, positionProp, scrollProp, sizeProp };
@@ -0,0 +1,99 @@
1
+ /**
2
+ * 基于 https://github.com/clauderic/react-tiny-virtual-list 改造,主要是加了宽度自适应
3
+ */
4
+ import * as React from 'react';
5
+ import * as PropTypes from 'prop-types';
6
+ import SizeAndPositionManager, { ItemSize } from './SizeAndPositionManager';
7
+ import { ALIGNMENT, DIRECTION, SCROLL_CHANGE_REASON } from './constants';
8
+ export { DIRECTION as ScrollDirection } from './constants';
9
+ export type ItemPosition = 'absolute' | 'sticky';
10
+ export interface ItemStyle {
11
+ position: ItemPosition;
12
+ top?: number;
13
+ left: number;
14
+ width: string | number;
15
+ height?: number;
16
+ marginTop?: number;
17
+ marginLeft?: number;
18
+ marginRight?: number;
19
+ marginBottom?: number;
20
+ zIndex?: number;
21
+ }
22
+ export interface ItemInfo {
23
+ index: number;
24
+ style: ItemStyle;
25
+ }
26
+ export interface RenderedRows {
27
+ startIndex: number;
28
+ stopIndex: number;
29
+ }
30
+ export interface Props {
31
+ className?: string;
32
+ estimatedItemSize?: number;
33
+ height: number | string;
34
+ itemCount: number;
35
+ itemSize: ItemSize;
36
+ overscanCount?: number;
37
+ scrollOffset?: number;
38
+ scrollToIndex?: number;
39
+ scrollToAlignment?: ALIGNMENT;
40
+ scrollDirection?: DIRECTION;
41
+ stickyIndices?: number[];
42
+ style?: React.CSSProperties;
43
+ width?: number | string;
44
+ WrapperComponent?: React.ElementType;
45
+ InnerComponent?: React.ElementType;
46
+ innerStyleFilter?: (styles: object) => object;
47
+ prefix?: React.ReactNode | null;
48
+ onItemsRendered?({ startIndex, stopIndex }: RenderedRows): void;
49
+ onScroll?(offset: number, event: UIEvent): void;
50
+ renderItem(itemInfo: ItemInfo): React.ReactNode;
51
+ }
52
+ export interface State {
53
+ offset: number;
54
+ scrollChangeReason: SCROLL_CHANGE_REASON;
55
+ }
56
+ export default class VirtualList extends React.PureComponent<Props, State> {
57
+ static defaultProps: {
58
+ overscanCount: number;
59
+ scrollDirection: DIRECTION;
60
+ width: string;
61
+ };
62
+ static propTypes: {
63
+ estimatedItemSize: PropTypes.Requireable<number>;
64
+ height: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
65
+ itemCount: PropTypes.Validator<number>;
66
+ itemSize: PropTypes.Validator<NonNullable<NonNullable<number | any[] | ((...args: any[]) => any) | null | undefined>>>;
67
+ onScroll: PropTypes.Requireable<(...args: any[]) => any>;
68
+ onItemsRendered: PropTypes.Requireable<(...args: any[]) => any>;
69
+ overscanCount: PropTypes.Requireable<number>;
70
+ renderItem: PropTypes.Validator<(...args: any[]) => any>;
71
+ scrollOffset: PropTypes.Requireable<number>;
72
+ scrollToIndex: PropTypes.Requireable<number>;
73
+ scrollToAlignment: PropTypes.Requireable<ALIGNMENT>;
74
+ scrollDirection: PropTypes.Requireable<DIRECTION>;
75
+ stickyIndices: PropTypes.Requireable<(number | null | undefined)[]>;
76
+ style: PropTypes.Requireable<object>;
77
+ width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
78
+ };
79
+ itemSizeGetter: (itemSize: Props['itemSize']) => (index: any) => any;
80
+ sizeAndPositionManager: SizeAndPositionManager;
81
+ readonly state: State;
82
+ private rootNode;
83
+ private styleCache;
84
+ componentDidMount(): void;
85
+ updateRootWidth(): void;
86
+ componentDidUpdate(prevProps: Props, prevState: State): void;
87
+ componentWillUnmount(): void;
88
+ scrollTo(value: number): void;
89
+ getOffsetForIndex(index: number, scrollToAlignment?: ALIGNMENT | undefined, itemCount?: number): number;
90
+ recomputeSizes(startIndex?: number): void;
91
+ render(): React.JSX.Element;
92
+ private getRef;
93
+ private handleScroll;
94
+ private getNodeOffset;
95
+ private getEstimatedItemSize;
96
+ private getSize;
97
+ private getStyle;
98
+ }
99
+ export { default as AutoSizer } from './AutoSizer';
@@ -0,0 +1,288 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { __assign, __extends, __rest } from 'tslib';
7
+ import * as React from 'react';
8
+ import * as PropTypes from 'prop-types';
9
+ import SizeAndPositionManager from './SizeAndPositionManager.js';
10
+ import { SCROLL_CHANGE_REASON, DIRECTION, scrollProp, sizeProp, marginProp, oppositeMarginProp, positionProp, ALIGNMENT } from './constants.js';
11
+ export { DIRECTION as ScrollDirection } from './constants.js';
12
+ export { default as AutoSizer } from './AutoSizer.js';
13
+
14
+ /**
15
+ * 基于 https://github.com/clauderic/react-tiny-virtual-list 改造,主要是加了宽度自适应
16
+ */
17
+ var STYLE_WRAPPER = {
18
+ overflow: 'auto',
19
+ willChange: 'transform',
20
+ WebkitOverflowScrolling: 'touch'
21
+ };
22
+ var STYLE_INNER = {
23
+ position: 'relative',
24
+ width: 'auto',
25
+ whiteSpace: 'nowrap',
26
+ minHeight: '100%'
27
+ };
28
+ var STYLE_ITEM = {
29
+ position: 'absolute',
30
+ top: 0,
31
+ left: 0,
32
+ width: '100%'
33
+ };
34
+ var STYLE_STICKY_ITEM = __assign(__assign({}, STYLE_ITEM), { position: 'sticky' });
35
+ var VirtualList = /** @class */ (function (_super) {
36
+ __extends(VirtualList, _super);
37
+ function VirtualList() {
38
+ var _this = _super !== null && _super.apply(this, arguments) || this;
39
+ _this.itemSizeGetter = function (itemSize) {
40
+ return function (index) { return _this.getSize(index, itemSize); };
41
+ };
42
+ _this.sizeAndPositionManager = new SizeAndPositionManager({
43
+ itemCount: _this.props.itemCount,
44
+ itemSizeGetter: _this.itemSizeGetter(_this.props.itemSize),
45
+ estimatedItemSize: _this.getEstimatedItemSize()
46
+ });
47
+ _this.state = {
48
+ offset: _this.props.scrollOffset ||
49
+ (_this.props.scrollToIndex != null &&
50
+ _this.getOffsetForIndex(_this.props.scrollToIndex)) ||
51
+ 0,
52
+ scrollChangeReason: SCROLL_CHANGE_REASON.REQUESTED
53
+ };
54
+ _this.styleCache = {};
55
+ _this.getRef = function (node) {
56
+ node && (_this.rootNode = node);
57
+ };
58
+ _this.handleScroll = function (event) {
59
+ var onScroll = _this.props.onScroll;
60
+ var offset = _this.getNodeOffset();
61
+ if (offset < 0 ||
62
+ _this.state.offset === offset ||
63
+ event.target !== _this.rootNode) {
64
+ return;
65
+ }
66
+ _this.setState({
67
+ offset: offset,
68
+ scrollChangeReason: SCROLL_CHANGE_REASON.OBSERVED
69
+ });
70
+ if (typeof onScroll === 'function') {
71
+ onScroll(offset, event);
72
+ }
73
+ };
74
+ return _this;
75
+ }
76
+ VirtualList.prototype.componentDidMount = function () {
77
+ var _a = this.props, scrollOffset = _a.scrollOffset, scrollToIndex = _a.scrollToIndex;
78
+ this.rootNode.addEventListener('scroll', this.handleScroll, {
79
+ passive: true
80
+ });
81
+ this.updateRootWidth();
82
+ if (scrollOffset != null) {
83
+ this.scrollTo(scrollOffset);
84
+ }
85
+ else if (scrollToIndex != null) {
86
+ this.scrollTo(this.getOffsetForIndex(scrollToIndex));
87
+ }
88
+ };
89
+ // 自适应宽度
90
+ VirtualList.prototype.updateRootWidth = function () {
91
+ var itemsDom = this.rootNode.children[0].children;
92
+ var scrollbarWidth = window.innerWidth - document.documentElement.clientWidth || 15;
93
+ var containerWidth = this.rootNode.parentElement.getBoundingClientRect().width;
94
+ var maxItemWidth = 0;
95
+ for (var i = 0; i < itemsDom.length; i++) {
96
+ var itemWidth = itemsDom[i].getBoundingClientRect().width;
97
+ if (itemWidth > maxItemWidth) {
98
+ maxItemWidth = itemWidth;
99
+ }
100
+ }
101
+ if (maxItemWidth > containerWidth) {
102
+ this.rootNode.style.width = maxItemWidth + scrollbarWidth + 'px';
103
+ }
104
+ };
105
+ VirtualList.prototype.componentDidUpdate = function (prevProps, prevState) {
106
+ var props = this.props;
107
+ var estimatedItemSize = prevProps.estimatedItemSize, itemCount = prevProps.itemCount, itemSize = prevProps.itemSize, scrollOffset = prevProps.scrollOffset, scrollToAlignment = prevProps.scrollToAlignment, scrollToIndex = prevProps.scrollToIndex;
108
+ var scrollPropsHaveChanged = props.scrollToIndex !== scrollToIndex ||
109
+ props.scrollToAlignment !== scrollToAlignment;
110
+ var itemPropsHaveChanged = props.itemCount !== itemCount ||
111
+ props.itemSize !== itemSize ||
112
+ props.estimatedItemSize !== estimatedItemSize;
113
+ if (props.itemSize !== itemSize) {
114
+ this.sizeAndPositionManager.updateConfig({
115
+ itemSizeGetter: this.itemSizeGetter(props.itemSize)
116
+ });
117
+ }
118
+ if (props.itemCount !== itemCount ||
119
+ props.estimatedItemSize !== estimatedItemSize) {
120
+ this.sizeAndPositionManager.updateConfig({
121
+ itemCount: props.itemCount,
122
+ estimatedItemSize: this.getEstimatedItemSize(props)
123
+ });
124
+ }
125
+ if (itemPropsHaveChanged) {
126
+ this.recomputeSizes();
127
+ }
128
+ if (props.scrollOffset !== scrollOffset) {
129
+ this.setState({
130
+ offset: props.scrollOffset || 0,
131
+ scrollChangeReason: SCROLL_CHANGE_REASON.REQUESTED
132
+ });
133
+ }
134
+ else if (typeof props.scrollToIndex === 'number' &&
135
+ (scrollPropsHaveChanged || itemPropsHaveChanged)) {
136
+ this.setState({
137
+ offset: this.getOffsetForIndex(props.scrollToIndex, props.scrollToAlignment, props.itemCount),
138
+ scrollChangeReason: SCROLL_CHANGE_REASON.REQUESTED
139
+ });
140
+ }
141
+ var _a = this.state, offset = _a.offset, scrollChangeReason = _a.scrollChangeReason;
142
+ if (prevState.offset !== offset &&
143
+ scrollChangeReason === SCROLL_CHANGE_REASON.REQUESTED) {
144
+ this.scrollTo(offset);
145
+ }
146
+ if (props.itemCount !== itemCount) {
147
+ // 长度发生变化时重新渲染
148
+ this.forceUpdate();
149
+ }
150
+ };
151
+ VirtualList.prototype.componentWillUnmount = function () {
152
+ this.rootNode.removeEventListener('scroll', this.handleScroll);
153
+ };
154
+ VirtualList.prototype.scrollTo = function (value) {
155
+ var _a = this.props.scrollDirection, scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;
156
+ this.rootNode[scrollProp[scrollDirection]] = value;
157
+ };
158
+ VirtualList.prototype.getOffsetForIndex = function (index, scrollToAlignment, itemCount) {
159
+ if (scrollToAlignment === void 0) { scrollToAlignment = this.props.scrollToAlignment; }
160
+ if (itemCount === void 0) { itemCount = this.props.itemCount; }
161
+ var _a = this.props.scrollDirection, scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;
162
+ if (index < 0 || index >= itemCount) {
163
+ index = 0;
164
+ }
165
+ return this.sizeAndPositionManager.getUpdatedOffsetForIndex({
166
+ align: scrollToAlignment,
167
+ containerSize: this.props[sizeProp[scrollDirection]],
168
+ currentOffset: (this.state && this.state.offset) || 0,
169
+ targetIndex: index
170
+ });
171
+ };
172
+ VirtualList.prototype.recomputeSizes = function (startIndex) {
173
+ if (startIndex === void 0) { startIndex = 0; }
174
+ this.styleCache = {};
175
+ this.sizeAndPositionManager.resetItem(startIndex);
176
+ };
177
+ VirtualList.prototype.render = function () {
178
+ var _a;
179
+ var _this = this;
180
+ var _b = this.props; _b.estimatedItemSize; var height = _b.height, _c = _b.overscanCount, overscanCount = _c === void 0 ? 3 : _c, renderItem = _b.renderItem; _b.itemCount; _b.itemSize; var onItemsRendered = _b.onItemsRendered; _b.onScroll; var _d = _b.scrollDirection, scrollDirection = _d === void 0 ? DIRECTION.VERTICAL : _d; _b.scrollOffset; _b.scrollToIndex; _b.scrollToAlignment; var stickyIndices = _b.stickyIndices, style = _b.style, width = _b.width, WrapperComponent = _b.WrapperComponent, InnerComponent = _b.InnerComponent, prefix = _b.prefix, innerStyleFilter = _b.innerStyleFilter, props = __rest(_b, ["estimatedItemSize", "height", "overscanCount", "renderItem", "itemCount", "itemSize", "onItemsRendered", "onScroll", "scrollDirection", "scrollOffset", "scrollToIndex", "scrollToAlignment", "stickyIndices", "style", "width", "WrapperComponent", "InnerComponent", "prefix", "innerStyleFilter"]);
181
+ var offset = this.state.offset;
182
+ var _e = this.sizeAndPositionManager.getVisibleRange({
183
+ containerSize: this.props[sizeProp[scrollDirection]] || 0,
184
+ offset: offset,
185
+ overscanCount: overscanCount
186
+ }), start = _e.start, stop = _e.stop;
187
+ var items = [];
188
+ var wrapperStyle = __assign(__assign(__assign({}, STYLE_WRAPPER), style), { height: height, width: width });
189
+ var innerStyle = __assign(__assign({}, STYLE_INNER), (_a = {}, _a[sizeProp[scrollDirection]] = this.sizeAndPositionManager.getTotalSize(), _a));
190
+ if (stickyIndices != null && stickyIndices.length !== 0) {
191
+ stickyIndices.forEach(function (index) {
192
+ return items.push(renderItem({
193
+ index: index,
194
+ style: _this.getStyle(index, true)
195
+ }));
196
+ });
197
+ if (scrollDirection === DIRECTION.HORIZONTAL) {
198
+ innerStyle.display = 'flex';
199
+ }
200
+ }
201
+ if (typeof start !== 'undefined' && typeof stop !== 'undefined') {
202
+ for (var index = start; index <= stop; index++) {
203
+ if (stickyIndices != null && ~stickyIndices.indexOf(index)) {
204
+ continue;
205
+ }
206
+ items.push(renderItem({
207
+ index: index,
208
+ style: this.getStyle(index, false)
209
+ }));
210
+ }
211
+ if (typeof onItemsRendered === 'function') {
212
+ onItemsRendered({
213
+ startIndex: start,
214
+ stopIndex: stop
215
+ });
216
+ }
217
+ }
218
+ var WrapperCmpt = WrapperComponent || 'div';
219
+ var InnerCmpt = InnerComponent || 'div';
220
+ return (React.createElement(WrapperCmpt, __assign({ ref: this.getRef }, props, { style: wrapperStyle }), prefix !== null && prefix !== void 0 ? prefix : null,
221
+ React.createElement(InnerCmpt, { style: innerStyleFilter ? innerStyleFilter(innerStyle) : innerStyle }, items)));
222
+ };
223
+ VirtualList.prototype.getNodeOffset = function () {
224
+ var _a = this.props.scrollDirection, scrollDirection = _a === void 0 ? DIRECTION.VERTICAL : _a;
225
+ return this.rootNode[scrollProp[scrollDirection]];
226
+ };
227
+ VirtualList.prototype.getEstimatedItemSize = function (props) {
228
+ if (props === void 0) { props = this.props; }
229
+ return (props.estimatedItemSize ||
230
+ (typeof props.itemSize === 'number' && props.itemSize) ||
231
+ 50);
232
+ };
233
+ VirtualList.prototype.getSize = function (index, itemSize) {
234
+ if (typeof itemSize === 'function') {
235
+ return itemSize(index);
236
+ }
237
+ return Array.isArray(itemSize) ? itemSize[index] : itemSize;
238
+ };
239
+ VirtualList.prototype.getStyle = function (index, sticky) {
240
+ var _a, _b;
241
+ var style = this.styleCache[index];
242
+ if (style) {
243
+ return style;
244
+ }
245
+ var _c = this.props.scrollDirection, scrollDirection = _c === void 0 ? DIRECTION.VERTICAL : _c;
246
+ var _d = this.sizeAndPositionManager.getSizeAndPositionForIndex(index), size = _d.size, offset = _d.offset;
247
+ return (this.styleCache[index] = sticky
248
+ ? __assign(__assign({}, STYLE_STICKY_ITEM), (_a = {}, _a[sizeProp[scrollDirection]] = size, _a[marginProp[scrollDirection]] = offset, _a[oppositeMarginProp[scrollDirection]] = -(offset + size), _a.zIndex = 1, _a)) : __assign(__assign({}, STYLE_ITEM), (_b = {}, _b[sizeProp[scrollDirection]] = size, _b[positionProp[scrollDirection]] = offset, _b)));
249
+ };
250
+ VirtualList.defaultProps = {
251
+ overscanCount: 3,
252
+ scrollDirection: DIRECTION.VERTICAL,
253
+ width: '100%'
254
+ };
255
+ VirtualList.propTypes = {
256
+ estimatedItemSize: PropTypes.number,
257
+ height: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
258
+ .isRequired,
259
+ itemCount: PropTypes.number.isRequired,
260
+ itemSize: PropTypes.oneOfType([
261
+ PropTypes.number,
262
+ PropTypes.array,
263
+ PropTypes.func
264
+ ]).isRequired,
265
+ onScroll: PropTypes.func,
266
+ onItemsRendered: PropTypes.func,
267
+ overscanCount: PropTypes.number,
268
+ renderItem: PropTypes.func.isRequired,
269
+ scrollOffset: PropTypes.number,
270
+ scrollToIndex: PropTypes.number,
271
+ scrollToAlignment: PropTypes.oneOf([
272
+ ALIGNMENT.AUTO,
273
+ ALIGNMENT.START,
274
+ ALIGNMENT.CENTER,
275
+ ALIGNMENT.END
276
+ ]),
277
+ scrollDirection: PropTypes.oneOf([
278
+ DIRECTION.HORIZONTAL,
279
+ DIRECTION.VERTICAL
280
+ ]),
281
+ stickyIndices: PropTypes.arrayOf(PropTypes.number),
282
+ style: PropTypes.object,
283
+ width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
284
+ };
285
+ return VirtualList;
286
+ }(React.PureComponent));
287
+
288
+ export { VirtualList as default };
@@ -0,0 +1,2 @@
1
+ import { withBadge } from './Badge';
2
+ export default withBadge;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { withBadge } from './Badge.js';
7
+ export { withBadge as default } from './Badge.js';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @file 常用 hooks
3
+ */
4
+ export { default as useSetState } from './use-set-state';
5
+ export { default as useUpdateEffect } from './use-update-effect';
6
+ export { default as useTouch } from './use-touch';
7
+ export { default as useValidationResolver } from './use-validation-resolver';
8
+ export { default as useOnScreen } from './use-on-screen';
@@ -0,0 +1,12 @@
1
+ import { RefObject } from 'react';
2
+ /**
3
+ * 自定义 Hook:useClickAway
4
+ * 当点击事件发生在指定元素外部时,触发回调函数
5
+ *
6
+ * @param ref - 目标元素的引用
7
+ * @param onClickAway - 点击外部时的回调函数
8
+ * @param doc - Document 对象,默认为当前文档
9
+ * @param events - 监听的事件类型,默认为 ['mousedown', 'touchstart']
10
+ */
11
+ declare const useClickAway: (ref: RefObject<HTMLElement | null>, onClickAway: (e: Event) => void, doc?: Document, events?: string[]) => void;
12
+ export default useClickAway;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { useCallback, useEffect } from 'react';
7
+
8
+ // 存储所有点击事件监听器的集合
9
+ var listeners = new Set();
10
+ // 添加点击事件监听器
11
+ var addClickListener = function (callback) {
12
+ return listeners.add(callback);
13
+ };
14
+ // 移除点击事件监听器
15
+ var removeClickListener = function (callback) {
16
+ return listeners.delete(callback);
17
+ };
18
+ // 处理点击事件,调用所有监听器
19
+ function handleEvent(e) {
20
+ listeners.forEach(function (listener) { return listener(e); });
21
+ }
22
+ // 默认的事件类型
23
+ var defaultEvents = ['mousedown', 'touchstart'];
24
+ /**
25
+ * 自定义 Hook:useClickAway
26
+ * 当点击事件发生在指定元素外部时,触发回调函数
27
+ *
28
+ * @param ref - 目标元素的引用
29
+ * @param onClickAway - 点击外部时的回调函数
30
+ * @param doc - Document 对象,默认为当前文档
31
+ * @param events - 监听的事件类型,默认为 ['mousedown', 'touchstart']
32
+ */
33
+ var useClickAway = function (ref, onClickAway, doc, events) {
34
+ if (doc === void 0) { doc = document; }
35
+ if (events === void 0) { events = defaultEvents; }
36
+ // 事件处理函数
37
+ var handler = useCallback(function (e) {
38
+ var el = ref.current;
39
+ el && !el.contains(e.target) && onClickAway(e);
40
+ }, [ref]);
41
+ useEffect(function () {
42
+ // 添加事件监听器
43
+ if (!listeners.has(handler)) {
44
+ addClickListener(handler);
45
+ }
46
+ events.forEach(function (event) { return doc.addEventListener(event, handleEvent); });
47
+ // 清理函数,移除事件监听器
48
+ return function () {
49
+ removeClickListener(handler);
50
+ events.forEach(function (event) { return doc.removeEventListener(event, handleEvent); });
51
+ };
52
+ }, [events, ref, doc]);
53
+ };
54
+
55
+ export { useClickAway as default };
@@ -0,0 +1,2 @@
1
+ declare const useOnScreen: (ref: any) => boolean;
2
+ export default useOnScreen;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { __read } from 'tslib';
7
+ import { useState, useEffect } from 'react';
8
+
9
+ var useOnScreen = function (ref) {
10
+ var _a = __read(useState(false), 2), isIntersecting = _a[0], setIsIntersecting = _a[1];
11
+ useEffect(function () {
12
+ var observer = new IntersectionObserver(function (_a) {
13
+ var _b = __read(_a, 1), entry = _b[0];
14
+ setIsIntersecting(entry.isIntersecting);
15
+ });
16
+ if (ref.current) {
17
+ observer.observe(ref.current);
18
+ }
19
+ return function () {
20
+ if (ref.current) {
21
+ observer.unobserve(ref.current);
22
+ }
23
+ };
24
+ }, [ref]);
25
+ return isIntersecting;
26
+ };
27
+
28
+ export { useOnScreen as default };
@@ -0,0 +1,2 @@
1
+ declare const useSetState: <T extends object>(initialState?: T) => [T, (patch: Partial<T> | ((prevState: T) => Partial<T>)) => void];
2
+ export default useSetState;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { __read, __assign } from 'tslib';
7
+ import { useState, useCallback } from 'react';
8
+ import isFunction from 'lodash/isFunction';
9
+
10
+ var useSetState = function (initialState) {
11
+ if (initialState === void 0) { initialState = {}; }
12
+ var _a = __read(useState(initialState), 2), state = _a[0], setState = _a[1];
13
+ var setMergeState = useCallback(function (patch) {
14
+ setState(function (prevState) { return (__assign(__assign({}, prevState), (isFunction(patch) ? patch(prevState) : patch))); });
15
+ }, []);
16
+ return [state, setMergeState];
17
+ };
18
+
19
+ export { useSetState as default };
@@ -0,0 +1,4 @@
1
+ import { TranslateFn } from 'amis-core';
2
+ import { UseFormReturn } from 'react-hook-form';
3
+ declare const useSubForm: (defaultValue: any, translate: TranslateFn, onUpdate: (data: any) => void) => UseFormReturn;
4
+ export default useSubForm;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.9
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ import { __assign } from 'tslib';
7
+ import { useForm } from 'react-hook-form';
8
+ import debounce from 'lodash/debounce';
9
+ import React__default from 'react';
10
+ import { useValidationResolver } from './use-validation-resolver.js';
11
+
12
+ var useSubForm = function (defaultValue, translate, onUpdate) {
13
+ var methods = useForm({
14
+ defaultValues: defaultValue,
15
+ mode: 'onChange',
16
+ shouldUnregister: true,
17
+ resolver: useValidationResolver(translate)
18
+ });
19
+ // 数据修改后,自动提交更新到上层
20
+ var lazyUpdate = React__default.useRef(debounce(onUpdate, 250, {
21
+ leading: false,
22
+ trailing: true
23
+ }));
24
+ // 销毁的时候要 cancel
25
+ React__default.useEffect(function () {
26
+ return function () { return lazyUpdate.current.cancel(); };
27
+ }, []);
28
+ // 监控数值变化,自动同步到上层
29
+ React__default.useEffect(function () {
30
+ var subscriber = methods.watch(function (data) {
31
+ // 因为 watch 只会触发有表单项的数值,而原始数据中可能包含其他属性,所以要合并一下
32
+ lazyUpdate.current(__assign(__assign({}, defaultValue), data));
33
+ });
34
+ return function () { return subscriber.unsubscribe(); };
35
+ }, [methods.watch]);
36
+ return methods;
37
+ };
38
+
39
+ export { useSubForm as default };
@@ -0,0 +1,16 @@
1
+ type Direction = '' | 'vertical' | 'horizontal';
2
+ declare const useTouch: () => {
3
+ move: EventListener;
4
+ start: EventListener;
5
+ reset: () => void;
6
+ isVertical: () => boolean;
7
+ isHorizontal: () => boolean;
8
+ startX: number;
9
+ startY: number;
10
+ deltaX: number;
11
+ deltaY: number;
12
+ offsetX: number;
13
+ offsetY: number;
14
+ direction: Direction;
15
+ };
16
+ export default useTouch;