amis-ui 6.9.0-rc.1 → 6.9.0-rc.11

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 (755) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.d.ts +40 -40
  3. package/esm/components/Alert.js +1 -1
  4. package/esm/components/Alert2.js +1 -1
  5. package/esm/components/AnchorNav.d.ts +16 -21
  6. package/esm/components/AnchorNav.js +39 -58
  7. package/esm/components/AnchorNavSection.js +1 -1
  8. package/esm/components/ArrayInput.d.ts +40 -40
  9. package/esm/components/ArrayInput.js +1 -1
  10. package/esm/components/AsideNav.js +1 -1
  11. package/esm/components/AssociatedSelection.d.ts +80 -80
  12. package/esm/components/AssociatedSelection.js +1 -1
  13. package/esm/components/AutoSizer.js +1 -1
  14. package/esm/components/Avatar.d.ts +50 -50
  15. package/esm/components/Avatar.js +1 -1
  16. package/esm/components/Badge.d.ts +1 -1
  17. package/esm/components/Badge.js +1 -1
  18. package/esm/components/BaiduMapPicker.js +1 -1
  19. package/esm/components/BarCode.js +1 -1
  20. package/esm/components/Breadcrumb.js +1 -1
  21. package/esm/components/Button.d.ts +20 -20
  22. package/esm/components/Button.js +1 -1
  23. package/esm/components/CalendarMobile.d.ts +40 -40
  24. package/esm/components/CalendarMobile.js +7 -9
  25. package/esm/components/Card.d.ts +71 -60
  26. package/esm/components/Card.js +14 -13
  27. package/esm/components/Cascader.js +1 -1
  28. package/esm/components/ChainedDropdownSelection.d.ts +80 -80
  29. package/esm/components/ChainedDropdownSelection.js +1 -1
  30. package/esm/components/ChainedSelection.d.ts +80 -80
  31. package/esm/components/ChainedSelection.js +1 -1
  32. package/esm/components/Checkbox.d.ts +10 -10
  33. package/esm/components/Checkbox.js +1 -1
  34. package/esm/components/CityArea.js +1 -1
  35. package/esm/components/CityDB.js +1 -1
  36. package/esm/components/CodeMirror.js +1 -1
  37. package/esm/components/Collapse.d.ts +40 -40
  38. package/esm/components/Collapse.js +3 -3
  39. package/esm/components/CollapseGroup.d.ts +30 -30
  40. package/esm/components/CollapseGroup.js +1 -1
  41. package/esm/components/ColorPicker.d.ts +80 -80
  42. package/esm/components/ColorPicker.js +1 -1
  43. package/esm/components/Combo.js +1 -1
  44. package/esm/components/ConditionBuilder.js +1 -1
  45. package/esm/components/ConfirmBox.d.ts +43 -41
  46. package/esm/components/ConfirmBox.js +5 -4
  47. package/esm/components/ContextMenu.js +1 -1
  48. package/esm/components/DatePicker.d.ts +81 -80
  49. package/esm/components/DatePicker.js +3 -3
  50. package/esm/components/DateRangePicker.d.ts +244 -243
  51. package/esm/components/DateRangePicker.js +4 -4
  52. package/esm/components/DiffEditor.d.ts +21 -0
  53. package/esm/components/DiffEditor.js +119 -0
  54. package/esm/components/DndContainer.js +1 -1
  55. package/esm/components/Drawer.d.ts +31 -30
  56. package/esm/components/Drawer.js +5 -3
  57. package/esm/components/DropDownSelection.d.ts +80 -80
  58. package/esm/components/DropDownSelection.js +1 -1
  59. package/esm/components/Editor.d.ts +59 -61
  60. package/esm/components/Editor.js +12 -14
  61. package/esm/components/Form.js +1 -1
  62. package/esm/components/FormField.js +1 -1
  63. package/esm/components/FormulaPicker.js +1 -1
  64. package/esm/components/GaodeMapPicker.js +1 -1
  65. package/esm/components/GridNav.js +1 -1
  66. package/esm/components/GridNavItem.js +1 -1
  67. package/esm/components/GroupedSelection.d.ts +80 -80
  68. package/esm/components/GroupedSelection.js +1 -1
  69. package/esm/components/HeadCellDropDown.js +1 -1
  70. package/esm/components/Html.js +1 -1
  71. package/esm/components/Icon.js +1 -1
  72. package/esm/components/ImageGallery.d.ts +43 -43
  73. package/esm/components/ImageGallery.js +1 -1
  74. package/esm/components/Input.js +1 -1
  75. package/esm/components/InputBox.d.ts +20 -20
  76. package/esm/components/InputBox.js +1 -1
  77. package/esm/components/InputBoxWithSuggestion.js +1 -1
  78. package/esm/components/InputJSONSchema.js +1 -1
  79. package/esm/components/InputTable.js +1 -1
  80. package/esm/components/JSONSchemaEditor.js +1 -1
  81. package/esm/components/Layout.js +1 -1
  82. package/esm/components/Link.js +1 -1
  83. package/esm/components/ListGroup.d.ts +10 -10
  84. package/esm/components/ListGroup.js +1 -1
  85. package/esm/components/ListMenu.d.ts +40 -40
  86. package/esm/components/ListMenu.js +1 -1
  87. package/esm/components/LocationPicker.d.ts +80 -80
  88. package/esm/components/LocationPicker.js +1 -1
  89. package/esm/components/Markdown.js +1 -1
  90. package/esm/components/Menu.js +1 -1
  91. package/esm/components/MobileDevTool.d.ts +10 -0
  92. package/esm/components/MobileDevTool.js +300 -0
  93. package/esm/components/Modal.d.ts +120 -120
  94. package/esm/components/Modal.js +5 -3
  95. package/esm/components/ModalManager.js +1 -1
  96. package/esm/components/MonthRangePicker.d.ts +200 -200
  97. package/esm/components/MultilineText.d.ts +40 -40
  98. package/esm/components/MultilineText.js +1 -1
  99. package/esm/components/NumberInput.d.ts +26 -26
  100. package/esm/components/NumberInput.js +1 -1
  101. package/esm/components/OverflowTpl.d.ts +0 -1
  102. package/esm/components/OverflowTpl.js +1 -1
  103. package/esm/components/Pagination.d.ts +84 -161
  104. package/esm/components/Pagination.js +1 -1
  105. package/esm/components/PdfViewer.d.ts +0 -1
  106. package/esm/components/PdfViewer.js +3 -6
  107. package/esm/components/Picker.js +1 -1
  108. package/esm/components/PickerColumn.js +1 -1
  109. package/esm/components/PickerContainer.js +2 -2
  110. package/esm/components/PopOverContainer.js +1 -1
  111. package/esm/components/PopUp.d.ts +82 -80
  112. package/esm/components/PopUp.js +3 -3
  113. package/esm/components/Progress.d.ts +50 -50
  114. package/esm/components/Progress.js +1 -1
  115. package/esm/components/PullRefresh.d.ts +4 -0
  116. package/esm/components/PullRefresh.js +47 -26
  117. package/esm/components/Radios.d.ts +30 -30
  118. package/esm/components/Radios.js +4 -3
  119. package/esm/components/Range.js +1 -1
  120. package/esm/components/Rating.d.ts +10 -10
  121. package/esm/components/Rating.js +1 -1
  122. package/esm/components/ResultBox.d.ts +122 -120
  123. package/esm/components/ResultBox.js +21 -7
  124. package/esm/components/ResultList.d.ts +40 -40
  125. package/esm/components/ResultList.js +1 -1
  126. package/esm/components/ResultTableList.d.ts +80 -80
  127. package/esm/components/ResultTableList.js +1 -1
  128. package/esm/components/ResultTreeList.d.ts +40 -40
  129. package/esm/components/ResultTreeList.js +1 -1
  130. package/esm/components/RichText.js +1 -1
  131. package/esm/components/SearchBox.d.ts +40 -40
  132. package/esm/components/SearchBox.js +1 -1
  133. package/esm/components/Select.d.ts +1887 -1886
  134. package/esm/components/Select.js +3 -3
  135. package/esm/components/SelectMobile.js +1 -1
  136. package/esm/components/Selection.d.ts +80 -80
  137. package/esm/components/Selection.js +1 -1
  138. package/esm/components/Signature.js +5 -1
  139. package/esm/components/SparkLine.d.ts +40 -40
  140. package/esm/components/SparkLine.js +1 -1
  141. package/esm/components/Spinner.d.ts +60 -60
  142. package/esm/components/Spinner.js +1 -1
  143. package/esm/components/Steps.js +1 -1
  144. package/esm/components/Switch.d.ts +10 -10
  145. package/esm/components/Switch.js +1 -1
  146. package/esm/components/Tab.js +1 -1
  147. package/esm/components/Table.js +1 -1
  148. package/esm/components/TableSelection.d.ts +80 -80
  149. package/esm/components/TableSelection.js +1 -1
  150. package/esm/components/Tabs.d.ts +42 -41
  151. package/esm/components/Tabs.js +6 -7
  152. package/esm/components/TabsTransfer.d.ts +40 -40
  153. package/esm/components/TabsTransfer.js +1 -1
  154. package/esm/components/TabsTransferPicker.js +1 -1
  155. package/esm/components/Tag.d.ts +40 -40
  156. package/esm/components/Tag.js +1 -1
  157. package/esm/components/Textarea.d.ts +40 -40
  158. package/esm/components/Textarea.js +1 -1
  159. package/esm/components/Timeline.js +1 -1
  160. package/esm/components/TimelineItem.js +1 -1
  161. package/esm/components/Tinymce.js +1 -1
  162. package/esm/components/TitleBar.js +1 -1
  163. package/esm/components/Toast.d.ts +40 -40
  164. package/esm/components/Toast.js +1 -1
  165. package/esm/components/Tooltip.js +1 -1
  166. package/esm/components/TooltipWrapper.d.ts +10 -10
  167. package/esm/components/TooltipWrapper.js +1 -1
  168. package/esm/components/Transfer.d.ts +108 -93
  169. package/esm/components/Transfer.js +3 -3
  170. package/esm/components/TransferDropDown.d.ts +80 -80
  171. package/esm/components/TransferDropDown.js +1 -1
  172. package/esm/components/TransferPicker.d.ts +1 -0
  173. package/esm/components/TransferPicker.js +3 -3
  174. package/esm/components/TransferSearch.js +1 -1
  175. package/esm/components/Tree.d.ts +203 -201
  176. package/esm/components/Tree.js +1 -1
  177. package/esm/components/TreeSelection.d.ts +80 -80
  178. package/esm/components/TreeSelection.js +1 -1
  179. package/esm/components/UserSelect.d.ts +80 -80
  180. package/esm/components/UserSelect.js +1 -1
  181. package/esm/components/UserTabSelect.d.ts +40 -40
  182. package/esm/components/UserTabSelect.js +1 -1
  183. package/esm/components/VerificationCode.js +1 -1
  184. package/esm/components/VirtualList.js +1 -1
  185. package/esm/components/WithRemoteConfig.js +1 -1
  186. package/esm/components/WithStore.js +1 -1
  187. package/esm/components/calendar/Calendar.js +1 -1
  188. package/esm/components/calendar/CalendarContainer.js +1 -1
  189. package/esm/components/calendar/DaysView.js +1 -1
  190. package/esm/components/calendar/MonthsView.js +1 -1
  191. package/esm/components/calendar/QuartersView.js +1 -1
  192. package/esm/components/calendar/TimeView.d.ts +1 -0
  193. package/esm/components/calendar/TimeView.js +1 -1
  194. package/esm/components/calendar/YearsView.js +1 -1
  195. package/esm/components/condition-builder/Expression.js +1 -1
  196. package/esm/components/condition-builder/Field.js +1 -1
  197. package/esm/components/condition-builder/Func.js +1 -1
  198. package/esm/components/condition-builder/Group.js +1 -1
  199. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  200. package/esm/components/condition-builder/InputSwitch.js +1 -1
  201. package/esm/components/condition-builder/Item.d.ts +1 -1
  202. package/esm/components/condition-builder/Item.js +1 -1
  203. package/esm/components/condition-builder/Value.js +1 -1
  204. package/esm/components/condition-builder/config.js +1 -1
  205. package/esm/components/condition-builder/index.js +1 -1
  206. package/esm/components/formula/CodeEditor.js +1 -1
  207. package/esm/components/formula/Editor.d.ts +82 -52
  208. package/esm/components/formula/Editor.js +1 -1
  209. package/esm/components/formula/FuncList.js +1 -1
  210. package/esm/components/formula/Input.d.ts +3 -0
  211. package/esm/components/formula/Input.js +1 -1
  212. package/esm/components/formula/Picker.d.ts +64 -59
  213. package/esm/components/formula/Picker.js +1 -1
  214. package/esm/components/formula/VariableList.js +1 -1
  215. package/esm/components/formula/plugin.js +1 -1
  216. package/esm/components/icons.js +3 -1
  217. package/esm/components/index.d.ts +3 -1
  218. package/esm/components/json-schema/Array.js +1 -1
  219. package/esm/components/json-schema/Item.js +1 -1
  220. package/esm/components/json-schema/Object.js +1 -1
  221. package/esm/components/json-schema/index.js +1 -1
  222. package/esm/components/menu/MenuContext.js +1 -1
  223. package/esm/components/menu/MenuItem.js +1 -1
  224. package/esm/components/menu/SubMenu.js +1 -1
  225. package/esm/components/menu/index.d.ts +24 -27
  226. package/esm/components/menu/index.js +1 -1
  227. package/esm/components/schema-editor/Array.js +3 -2
  228. package/esm/components/schema-editor/Common.d.ts +3 -0
  229. package/esm/components/schema-editor/Common.js +3 -2
  230. package/esm/components/schema-editor/Item.js +3 -13
  231. package/esm/components/schema-editor/Object.js +3 -2
  232. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  233. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  234. package/esm/components/schema-editor/index.d.ts +51 -52
  235. package/esm/components/schema-editor/index.js +3 -1
  236. package/esm/components/table/Cell.js +1 -1
  237. package/esm/components/table/ColGroup.js +1 -1
  238. package/esm/components/table/Head.js +1 -1
  239. package/esm/components/table/HeadCellDropDown.js +1 -1
  240. package/esm/components/table/HeadCellFilter.d.ts +40 -40
  241. package/esm/components/table/HeadCellFilter.js +1 -1
  242. package/esm/components/table/HeadCellSelect.d.ts +40 -40
  243. package/esm/components/table/HeadCellSelect.js +1 -1
  244. package/esm/components/table/HeadCellSort.js +1 -1
  245. package/esm/components/table/ItemActionsWrapper.js +1 -1
  246. package/esm/components/table/Row.js +1 -1
  247. package/esm/components/table/SummaryRow.js +1 -1
  248. package/esm/components/table/index.d.ts +80 -80
  249. package/esm/components/table/index.js +1 -1
  250. package/esm/components/table/util.d.ts +5 -5
  251. package/esm/components/table/util.js +1 -1
  252. package/esm/components/virtual-list/AutoSizer.js +1 -1
  253. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  254. package/esm/components/virtual-list/constants.js +1 -1
  255. package/esm/components/virtual-list/index.js +1 -1
  256. package/esm/components/withBadge.js +1 -1
  257. package/esm/hooks/index.d.ts +1 -0
  258. package/esm/hooks/use-on-screen.d.ts +2 -0
  259. package/esm/hooks/use-on-screen.js +28 -0
  260. package/esm/hooks/use-set-state.js +1 -1
  261. package/esm/hooks/use-sub-form.js +1 -1
  262. package/esm/hooks/use-touch.js +1 -1
  263. package/esm/hooks/use-update-effect.js +1 -1
  264. package/esm/hooks/use-validation-resolver.js +1 -1
  265. package/esm/icons/alert-danger.svg.js +1 -1
  266. package/esm/icons/alert-info.svg.js +1 -1
  267. package/esm/icons/alert-success.svg.js +1 -1
  268. package/esm/icons/alert-warning.svg.js +1 -1
  269. package/esm/icons/arrow-double-left.svg.js +1 -1
  270. package/esm/icons/arrow-double-right.svg.js +1 -1
  271. package/esm/icons/back.svg.js +1 -1
  272. package/esm/icons/calendar.svg.js +1 -1
  273. package/esm/icons/caret.svg.js +1 -1
  274. package/esm/icons/check.svg.js +1 -1
  275. package/esm/icons/clock.svg.js +1 -1
  276. package/esm/icons/close-small.svg.js +1 -1
  277. package/esm/icons/close.svg.js +1 -1
  278. package/esm/icons/cloud-upload.svg.js +1 -1
  279. package/esm/icons/column-filter.svg.js +1 -1
  280. package/esm/icons/columns.svg.js +1 -1
  281. package/esm/icons/compress-alt.svg.js +1 -1
  282. package/esm/icons/copy.svg.js +1 -1
  283. package/esm/icons/date.svg.js +1 -1
  284. package/esm/icons/department.svg.js +1 -1
  285. package/esm/icons/desk-empty.svg.js +1 -1
  286. package/esm/icons/dot.svg.js +1 -1
  287. package/esm/icons/down-arrow-bold.svg.js +1 -1
  288. package/esm/icons/down.svg.js +1 -1
  289. package/esm/icons/download.svg.js +1 -1
  290. package/esm/icons/drag-bar.svg.js +1 -1
  291. package/esm/icons/drag.svg.js +1 -1
  292. package/esm/icons/edit.svg.js +1 -1
  293. package/esm/icons/ellipsis-v.svg.js +1 -1
  294. package/esm/icons/enter.svg.js +1 -1
  295. package/esm/icons/exchange.svg.js +1 -1
  296. package/esm/icons/expand-alt.svg.js +1 -1
  297. package/esm/icons/fail.svg.js +1 -1
  298. package/esm/icons/file.svg.js +1 -1
  299. package/esm/icons/filter.svg.js +1 -1
  300. package/esm/icons/folder.svg.js +1 -1
  301. package/esm/icons/fullscreen.svg.js +1 -1
  302. package/esm/icons/function.svg.js +1 -1
  303. package/esm/icons/home.svg.js +1 -1
  304. package/esm/icons/if.svg.js +1 -1
  305. package/esm/icons/image.svg.js +1 -1
  306. package/esm/icons/info-circle.svg.js +1 -1
  307. package/esm/icons/info.svg.js +1 -1
  308. package/esm/icons/input-clear.svg.js +1 -1
  309. package/esm/icons/invisible.svg.js +1 -1
  310. package/esm/icons/left-arrow.svg.js +1 -1
  311. package/esm/icons/loading-outline.svg.js +1 -1
  312. package/esm/icons/location.svg.js +1 -1
  313. package/esm/icons/menu.svg.js +1 -1
  314. package/esm/icons/minus.svg.js +1 -1
  315. package/esm/icons/move.svg.js +1 -1
  316. package/esm/icons/mute.svg.js +1 -1
  317. package/esm/icons/new-edit.svg.js +1 -1
  318. package/esm/icons/pause.svg.js +1 -1
  319. package/esm/icons/pencil.svg.js +1 -1
  320. package/esm/icons/play.svg.js +1 -1
  321. package/esm/icons/plus-cicle.svg.js +1 -1
  322. package/esm/icons/plus-fine.svg.js +1 -1
  323. package/esm/icons/plus.svg.js +1 -1
  324. package/esm/icons/post.svg.js +1 -1
  325. package/esm/icons/question-mark.svg.js +1 -1
  326. package/esm/icons/question.svg.js +1 -1
  327. package/esm/icons/redo.svg.js +1 -1
  328. package/esm/icons/refresh.svg.js +1 -1
  329. package/esm/icons/reload.svg.js +1 -1
  330. package/esm/icons/remove.svg.js +1 -1
  331. package/esm/icons/retry.svg.js +1 -1
  332. package/esm/icons/right-arrow-bold.svg.js +1 -1
  333. package/esm/icons/right-arrow.svg.js +1 -1
  334. package/esm/icons/right-double-arrow.svg.js +1 -1
  335. package/esm/icons/role.svg.js +1 -1
  336. package/esm/icons/rotate-left.svg.js +1 -1
  337. package/esm/icons/rotate-right.svg.js +1 -1
  338. package/esm/icons/rotate-screen.svg.js +21 -0
  339. package/esm/icons/scale-origin.svg.js +1 -1
  340. package/esm/icons/schedule.svg.js +1 -1
  341. package/esm/icons/search.svg.js +1 -1
  342. package/esm/icons/setting.svg.js +1 -1
  343. package/esm/icons/slider-handle-icon.svg.js +1 -1
  344. package/esm/icons/sort-asc.svg.js +1 -1
  345. package/esm/icons/sort-default.svg.js +1 -1
  346. package/esm/icons/sort-desc.svg.js +1 -1
  347. package/esm/icons/star.svg.js +1 -1
  348. package/esm/icons/status-close.svg.js +1 -1
  349. package/esm/icons/steps-finsh.svg.js +1 -1
  350. package/esm/icons/sub-plus.svg.js +1 -1
  351. package/esm/icons/success.svg.js +1 -1
  352. package/esm/icons/transparent.svg.js +1 -1
  353. package/esm/icons/trash.svg.js +1 -1
  354. package/esm/icons/tree-down.svg.js +1 -1
  355. package/esm/icons/undo-normal.svg.js +1 -1
  356. package/esm/icons/undo.svg.js +1 -1
  357. package/esm/icons/unfullscreen.svg.js +1 -1
  358. package/esm/icons/upload.svg.js +1 -1
  359. package/esm/icons/user-remove.svg.js +1 -1
  360. package/esm/icons/view.svg.js +1 -1
  361. package/esm/icons/volume.svg.js +1 -1
  362. package/esm/icons/warning-mark.svg.js +1 -1
  363. package/esm/icons/warning.svg.js +1 -1
  364. package/esm/icons/window-restore.svg.js +1 -1
  365. package/esm/icons/zoom-in.svg.js +1 -1
  366. package/esm/icons/zoom-out.svg.js +1 -1
  367. package/esm/index.js +4 -1
  368. package/esm/locale/de-DE.js +6 -1
  369. package/esm/locale/en-US.js +6 -1
  370. package/esm/locale/zh-CN.js +6 -1
  371. package/esm/themes/ang.js +1 -1
  372. package/esm/themes/antd.js +1 -1
  373. package/esm/themes/cxd.js +1 -1
  374. package/esm/themes/dark.js +1 -1
  375. package/esm/withRemoteConfig.js +1 -1
  376. package/esm/withStore.js +1 -1
  377. package/lib/components/404.js +1 -1
  378. package/lib/components/Alert.js +1 -1
  379. package/lib/components/Alert2.js +1 -1
  380. package/lib/components/AnchorNav.d.ts +6 -11
  381. package/lib/components/AnchorNav.js +39 -58
  382. package/lib/components/AnchorNavSection.js +1 -1
  383. package/lib/components/ArrayInput.js +1 -1
  384. package/lib/components/AsideNav.js +1 -1
  385. package/lib/components/AssociatedSelection.js +1 -1
  386. package/lib/components/AutoSizer.js +1 -1
  387. package/lib/components/Avatar.js +1 -1
  388. package/lib/components/Badge.js +1 -1
  389. package/lib/components/BaiduMapPicker.js +1 -1
  390. package/lib/components/BarCode.js +1 -1
  391. package/lib/components/Breadcrumb.js +1 -1
  392. package/lib/components/Button.js +1 -1
  393. package/lib/components/CalendarMobile.js +7 -9
  394. package/lib/components/Card.d.ts +21 -10
  395. package/lib/components/Card.js +14 -13
  396. package/lib/components/Cascader.js +1 -1
  397. package/lib/components/ChainedDropdownSelection.js +1 -1
  398. package/lib/components/ChainedSelection.js +1 -1
  399. package/lib/components/Checkbox.js +1 -1
  400. package/lib/components/CityArea.js +1 -1
  401. package/lib/components/CityDB.js +1 -1
  402. package/lib/components/CodeMirror.js +1 -1
  403. package/lib/components/Collapse.js +3 -3
  404. package/lib/components/CollapseGroup.js +1 -1
  405. package/lib/components/ColorPicker.js +1 -1
  406. package/lib/components/Combo.js +1 -1
  407. package/lib/components/ConditionBuilder.js +1 -1
  408. package/lib/components/ConfirmBox.d.ts +43 -41
  409. package/lib/components/ConfirmBox.js +5 -4
  410. package/lib/components/ContextMenu.js +1 -1
  411. package/lib/components/DatePicker.d.ts +41 -40
  412. package/lib/components/DatePicker.js +3 -3
  413. package/lib/components/DateRangePicker.d.ts +44 -43
  414. package/lib/components/DateRangePicker.js +4 -4
  415. package/lib/components/DiffEditor.d.ts +21 -0
  416. package/lib/components/DiffEditor.js +130 -0
  417. package/lib/components/DndContainer.js +1 -1
  418. package/lib/components/Drawer.d.ts +1 -0
  419. package/lib/components/Drawer.js +5 -3
  420. package/lib/components/DropDownSelection.js +1 -1
  421. package/lib/components/Editor.d.ts +59 -61
  422. package/lib/components/Editor.js +12 -14
  423. package/lib/components/Form.js +1 -1
  424. package/lib/components/FormField.js +1 -1
  425. package/lib/components/FormulaPicker.js +1 -1
  426. package/lib/components/GaodeMapPicker.js +1 -1
  427. package/lib/components/GridNav.js +1 -1
  428. package/lib/components/GridNavItem.js +1 -1
  429. package/lib/components/GroupedSelection.js +1 -1
  430. package/lib/components/HeadCellDropDown.js +1 -1
  431. package/lib/components/Html.js +1 -1
  432. package/lib/components/Icon.js +1 -1
  433. package/lib/components/ImageGallery.d.ts +3 -3
  434. package/lib/components/ImageGallery.js +1 -1
  435. package/lib/components/Input.js +1 -1
  436. package/lib/components/InputBox.d.ts +10 -10
  437. package/lib/components/InputBox.js +1 -1
  438. package/lib/components/InputBoxWithSuggestion.js +1 -1
  439. package/lib/components/InputJSONSchema.js +1 -1
  440. package/lib/components/InputTable.js +1 -1
  441. package/lib/components/JSONSchemaEditor.js +1 -1
  442. package/lib/components/Layout.js +1 -1
  443. package/lib/components/Link.js +1 -1
  444. package/lib/components/ListGroup.d.ts +10 -10
  445. package/lib/components/ListGroup.js +1 -1
  446. package/lib/components/ListMenu.js +1 -1
  447. package/lib/components/LocationPicker.js +1 -1
  448. package/lib/components/Markdown.js +1 -1
  449. package/lib/components/Menu.js +1 -1
  450. package/lib/components/MobileDevTool.d.ts +10 -0
  451. package/lib/components/MobileDevTool.js +313 -0
  452. package/lib/components/Modal.js +5 -3
  453. package/lib/components/ModalManager.js +1 -1
  454. package/lib/components/MultilineText.js +1 -1
  455. package/lib/components/NumberInput.js +1 -1
  456. package/lib/components/OverflowTpl.d.ts +0 -1
  457. package/lib/components/OverflowTpl.js +1 -1
  458. package/lib/components/Pagination.d.ts +44 -121
  459. package/lib/components/Pagination.js +1 -1
  460. package/lib/components/PdfViewer.d.ts +0 -1
  461. package/lib/components/PdfViewer.js +2 -5
  462. package/lib/components/Picker.js +1 -1
  463. package/lib/components/PickerColumn.js +1 -1
  464. package/lib/components/PickerContainer.js +2 -2
  465. package/lib/components/PopOverContainer.js +1 -1
  466. package/lib/components/PopUp.d.ts +42 -40
  467. package/lib/components/PopUp.js +3 -3
  468. package/lib/components/Progress.js +1 -1
  469. package/lib/components/PullRefresh.d.ts +4 -0
  470. package/lib/components/PullRefresh.js +50 -25
  471. package/lib/components/Radios.d.ts +10 -10
  472. package/lib/components/Radios.js +4 -3
  473. package/lib/components/Range.js +1 -1
  474. package/lib/components/Rating.js +1 -1
  475. package/lib/components/ResultBox.d.ts +42 -40
  476. package/lib/components/ResultBox.js +21 -7
  477. package/lib/components/ResultList.js +1 -1
  478. package/lib/components/ResultTableList.js +1 -1
  479. package/lib/components/ResultTreeList.js +1 -1
  480. package/lib/components/RichText.js +1 -1
  481. package/lib/components/SearchBox.js +1 -1
  482. package/lib/components/Select.d.ts +188 -188
  483. package/lib/components/Select.js +3 -3
  484. package/lib/components/SelectMobile.js +1 -1
  485. package/lib/components/Selection.js +1 -1
  486. package/lib/components/Signature.js +3 -1
  487. package/lib/components/SparkLine.js +1 -1
  488. package/lib/components/Spinner.js +1 -1
  489. package/lib/components/Steps.js +1 -1
  490. package/lib/components/Switch.js +1 -1
  491. package/lib/components/Tab.js +1 -1
  492. package/lib/components/Table.js +1 -1
  493. package/lib/components/TableSelection.js +1 -1
  494. package/lib/components/Tabs.d.ts +42 -41
  495. package/lib/components/Tabs.js +6 -7
  496. package/lib/components/TabsTransfer.js +1 -1
  497. package/lib/components/TabsTransferPicker.js +1 -1
  498. package/lib/components/Tag.js +1 -1
  499. package/lib/components/Textarea.js +1 -1
  500. package/lib/components/Timeline.js +1 -1
  501. package/lib/components/TimelineItem.js +1 -1
  502. package/lib/components/Tinymce.js +1 -1
  503. package/lib/components/TitleBar.js +1 -1
  504. package/lib/components/Toast.js +1 -1
  505. package/lib/components/Tooltip.js +1 -1
  506. package/lib/components/TooltipWrapper.js +1 -1
  507. package/lib/components/Transfer.d.ts +19 -4
  508. package/lib/components/Transfer.js +3 -3
  509. package/lib/components/TransferDropDown.js +1 -1
  510. package/lib/components/TransferPicker.d.ts +1 -0
  511. package/lib/components/TransferPicker.js +3 -3
  512. package/lib/components/TransferSearch.js +1 -1
  513. package/lib/components/Tree.d.ts +3 -1
  514. package/lib/components/Tree.js +1 -1
  515. package/lib/components/TreeSelection.js +1 -1
  516. package/lib/components/UserSelect.js +1 -1
  517. package/lib/components/UserTabSelect.js +1 -1
  518. package/lib/components/VerificationCode.js +1 -1
  519. package/lib/components/VirtualList.js +1 -1
  520. package/lib/components/WithRemoteConfig.d.ts +0 -1
  521. package/lib/components/WithRemoteConfig.js +1 -1
  522. package/lib/components/WithStore.js +1 -1
  523. package/lib/components/calendar/Calendar.js +1 -1
  524. package/lib/components/calendar/CalendarContainer.js +1 -1
  525. package/lib/components/calendar/DaysView.js +1 -1
  526. package/lib/components/calendar/MonthsView.js +1 -1
  527. package/lib/components/calendar/QuartersView.js +1 -1
  528. package/lib/components/calendar/TimeView.d.ts +1 -0
  529. package/lib/components/calendar/TimeView.js +1 -1
  530. package/lib/components/calendar/YearsView.js +1 -1
  531. package/lib/components/condition-builder/Expression.js +1 -1
  532. package/lib/components/condition-builder/Field.js +1 -1
  533. package/lib/components/condition-builder/Func.js +1 -1
  534. package/lib/components/condition-builder/Group.js +1 -1
  535. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  536. package/lib/components/condition-builder/InputSwitch.js +1 -1
  537. package/lib/components/condition-builder/Item.d.ts +1 -1
  538. package/lib/components/condition-builder/Item.js +1 -1
  539. package/lib/components/condition-builder/Value.js +1 -1
  540. package/lib/components/condition-builder/config.js +1 -1
  541. package/lib/components/condition-builder/index.js +1 -1
  542. package/lib/components/formula/CodeEditor.js +1 -1
  543. package/lib/components/formula/Editor.d.ts +42 -12
  544. package/lib/components/formula/Editor.js +1 -1
  545. package/lib/components/formula/FuncList.js +1 -1
  546. package/lib/components/formula/Input.d.ts +3 -0
  547. package/lib/components/formula/Input.js +1 -1
  548. package/lib/components/formula/Picker.d.ts +24 -19
  549. package/lib/components/formula/Picker.js +1 -1
  550. package/lib/components/formula/VariableList.js +1 -1
  551. package/lib/components/formula/plugin.js +1 -1
  552. package/lib/components/icons.js +3 -1
  553. package/lib/components/index.d.ts +3 -1
  554. package/lib/components/json-schema/Array.js +1 -1
  555. package/lib/components/json-schema/Item.js +1 -1
  556. package/lib/components/json-schema/Object.js +1 -1
  557. package/lib/components/json-schema/index.js +1 -1
  558. package/lib/components/menu/MenuContext.js +1 -1
  559. package/lib/components/menu/MenuItem.js +1 -1
  560. package/lib/components/menu/SubMenu.js +1 -1
  561. package/lib/components/menu/index.d.ts +14 -17
  562. package/lib/components/menu/index.js +1 -1
  563. package/lib/components/schema-editor/Array.js +2 -1
  564. package/lib/components/schema-editor/Common.d.ts +3 -0
  565. package/lib/components/schema-editor/Common.js +3 -1
  566. package/lib/components/schema-editor/Item.js +2 -12
  567. package/lib/components/schema-editor/Object.js +2 -1
  568. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  569. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  570. package/lib/components/schema-editor/index.d.ts +11 -12
  571. package/lib/components/schema-editor/index.js +3 -1
  572. package/lib/components/table/Cell.js +1 -1
  573. package/lib/components/table/ColGroup.js +1 -1
  574. package/lib/components/table/Head.js +1 -1
  575. package/lib/components/table/HeadCellDropDown.js +1 -1
  576. package/lib/components/table/HeadCellFilter.js +1 -1
  577. package/lib/components/table/HeadCellSelect.js +1 -1
  578. package/lib/components/table/HeadCellSort.js +1 -1
  579. package/lib/components/table/ItemActionsWrapper.js +1 -1
  580. package/lib/components/table/Row.js +1 -1
  581. package/lib/components/table/SummaryRow.js +1 -1
  582. package/lib/components/table/index.js +1 -1
  583. package/lib/components/table/util.js +1 -1
  584. package/lib/components/virtual-list/AutoSizer.js +1 -1
  585. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  586. package/lib/components/virtual-list/constants.js +1 -1
  587. package/lib/components/virtual-list/index.js +1 -1
  588. package/lib/components/withBadge.js +1 -1
  589. package/lib/helper.css +109 -109
  590. package/lib/hooks/index.d.ts +1 -0
  591. package/lib/hooks/use-on-screen.d.ts +2 -0
  592. package/lib/hooks/use-on-screen.js +32 -0
  593. package/lib/hooks/use-set-state.js +1 -1
  594. package/lib/hooks/use-sub-form.js +1 -1
  595. package/lib/hooks/use-touch.js +1 -1
  596. package/lib/hooks/use-update-effect.js +1 -1
  597. package/lib/hooks/use-validation-resolver.js +1 -1
  598. package/lib/icons/alert-danger.svg.js +1 -1
  599. package/lib/icons/alert-info.svg.js +1 -1
  600. package/lib/icons/alert-success.svg.js +1 -1
  601. package/lib/icons/alert-warning.svg.js +1 -1
  602. package/lib/icons/arrow-double-left.svg.js +1 -1
  603. package/lib/icons/arrow-double-right.svg.js +1 -1
  604. package/lib/icons/back.svg.js +1 -1
  605. package/lib/icons/calendar.svg.js +1 -1
  606. package/lib/icons/caret.svg.js +1 -1
  607. package/lib/icons/check.svg.js +1 -1
  608. package/lib/icons/clock.svg.js +1 -1
  609. package/lib/icons/close-small.svg.js +1 -1
  610. package/lib/icons/close.svg.js +1 -1
  611. package/lib/icons/cloud-upload.svg.js +1 -1
  612. package/lib/icons/column-filter.svg.js +1 -1
  613. package/lib/icons/columns.svg.js +1 -1
  614. package/lib/icons/compress-alt.svg.js +1 -1
  615. package/lib/icons/copy.svg.js +1 -1
  616. package/lib/icons/date.svg.js +1 -1
  617. package/lib/icons/department.svg.js +1 -1
  618. package/lib/icons/desk-empty.svg.js +1 -1
  619. package/lib/icons/dot.svg.js +1 -1
  620. package/lib/icons/down-arrow-bold.svg.js +1 -1
  621. package/lib/icons/down.svg.js +1 -1
  622. package/lib/icons/download.svg.js +1 -1
  623. package/lib/icons/drag-bar.svg.js +1 -1
  624. package/lib/icons/drag.svg.js +1 -1
  625. package/lib/icons/edit.svg.js +1 -1
  626. package/lib/icons/ellipsis-v.svg.js +1 -1
  627. package/lib/icons/enter.svg.js +1 -1
  628. package/lib/icons/exchange.svg.js +1 -1
  629. package/lib/icons/expand-alt.svg.js +1 -1
  630. package/lib/icons/fail.svg.js +1 -1
  631. package/lib/icons/file.svg.js +1 -1
  632. package/lib/icons/filter.svg.js +1 -1
  633. package/lib/icons/folder.svg.js +1 -1
  634. package/lib/icons/fullscreen.svg.js +1 -1
  635. package/lib/icons/function.svg.js +1 -1
  636. package/lib/icons/home.svg.js +1 -1
  637. package/lib/icons/if.svg.js +1 -1
  638. package/lib/icons/image.svg.js +1 -1
  639. package/lib/icons/info-circle.svg.js +1 -1
  640. package/lib/icons/info.svg.js +1 -1
  641. package/lib/icons/input-clear.svg.js +1 -1
  642. package/lib/icons/invisible.svg.js +1 -1
  643. package/lib/icons/left-arrow.svg.js +1 -1
  644. package/lib/icons/loading-outline.svg.js +1 -1
  645. package/lib/icons/location.svg.js +1 -1
  646. package/lib/icons/menu.svg.js +1 -1
  647. package/lib/icons/minus.svg.js +1 -1
  648. package/lib/icons/move.svg.js +1 -1
  649. package/lib/icons/mute.svg.js +1 -1
  650. package/lib/icons/new-edit.svg.js +1 -1
  651. package/lib/icons/pause.svg.js +1 -1
  652. package/lib/icons/pencil.svg.js +1 -1
  653. package/lib/icons/play.svg.js +1 -1
  654. package/lib/icons/plus-cicle.svg.js +1 -1
  655. package/lib/icons/plus-fine.svg.js +1 -1
  656. package/lib/icons/plus.svg.js +1 -1
  657. package/lib/icons/post.svg.js +1 -1
  658. package/lib/icons/question-mark.svg.js +1 -1
  659. package/lib/icons/question.svg.js +1 -1
  660. package/lib/icons/redo.svg.js +1 -1
  661. package/lib/icons/refresh.svg.js +1 -1
  662. package/lib/icons/reload.svg.js +1 -1
  663. package/lib/icons/remove.svg.js +1 -1
  664. package/lib/icons/retry.svg.js +1 -1
  665. package/lib/icons/right-arrow-bold.svg.js +1 -1
  666. package/lib/icons/right-arrow.svg.js +1 -1
  667. package/lib/icons/right-double-arrow.svg.js +1 -1
  668. package/lib/icons/role.svg.js +1 -1
  669. package/lib/icons/rotate-left.svg.js +1 -1
  670. package/lib/icons/rotate-right.svg.js +1 -1
  671. package/lib/icons/rotate-screen.svg.js +28 -0
  672. package/lib/icons/scale-origin.svg.js +1 -1
  673. package/lib/icons/schedule.svg.js +1 -1
  674. package/lib/icons/search.svg.js +1 -1
  675. package/lib/icons/setting.svg.js +1 -1
  676. package/lib/icons/slider-handle-icon.svg.js +1 -1
  677. package/lib/icons/sort-asc.svg.js +1 -1
  678. package/lib/icons/sort-default.svg.js +1 -1
  679. package/lib/icons/sort-desc.svg.js +1 -1
  680. package/lib/icons/star.svg.js +1 -1
  681. package/lib/icons/status-close.svg.js +1 -1
  682. package/lib/icons/steps-finsh.svg.js +1 -1
  683. package/lib/icons/sub-plus.svg.js +1 -1
  684. package/lib/icons/success.svg.js +1 -1
  685. package/lib/icons/transparent.svg.js +1 -1
  686. package/lib/icons/trash.svg.js +1 -1
  687. package/lib/icons/tree-down.svg.js +1 -1
  688. package/lib/icons/undo-normal.svg.js +1 -1
  689. package/lib/icons/undo.svg.js +1 -1
  690. package/lib/icons/unfullscreen.svg.js +1 -1
  691. package/lib/icons/upload.svg.js +1 -1
  692. package/lib/icons/user-remove.svg.js +1 -1
  693. package/lib/icons/view.svg.js +1 -1
  694. package/lib/icons/volume.svg.js +1 -1
  695. package/lib/icons/warning-mark.svg.js +1 -1
  696. package/lib/icons/warning.svg.js +1 -1
  697. package/lib/icons/window-restore.svg.js +1 -1
  698. package/lib/icons/zoom-in.svg.js +1 -1
  699. package/lib/icons/zoom-out.svg.js +1 -1
  700. package/lib/index.js +7 -1
  701. package/lib/locale/de-DE.js +6 -1
  702. package/lib/locale/en-US.js +6 -1
  703. package/lib/locale/zh-CN.js +6 -1
  704. package/lib/scss/helper.scss.js +1 -1
  705. package/lib/scss/themes/ang.scss.js +1 -1
  706. package/lib/scss/themes/antd.scss.js +1 -1
  707. package/lib/scss/themes/cxd.scss.js +1 -1
  708. package/lib/scss/themes/dark.scss.js +1 -1
  709. package/lib/scss/themes/default.scss.js +1 -1
  710. package/lib/themes/ang.css +2565 -494
  711. package/lib/themes/ang.js +1 -1
  712. package/lib/themes/antd.css +2565 -494
  713. package/lib/themes/antd.js +1 -1
  714. package/lib/themes/cxd.css +2565 -494
  715. package/lib/themes/cxd.js +1 -1
  716. package/lib/themes/dark.css +2565 -494
  717. package/lib/themes/dark.js +1 -1
  718. package/lib/themes/default.css +2565 -494
  719. package/lib/withRemoteConfig.js +1 -1
  720. package/lib/withStore.js +1 -1
  721. package/package.json +7 -5
  722. package/scss/_components.scss +14 -10
  723. package/scss/_mixins.scss +23 -14
  724. package/scss/_properties.scss +42 -13
  725. package/scss/_thirds.scss +1 -0
  726. package/scss/_variables.scss +2 -1
  727. package/scss/components/_anchor-nav.scss +19 -2
  728. package/scss/components/_array-input.scss +4 -4
  729. package/scss/components/_card.scss +13 -0
  730. package/scss/components/_collapse-group.scss +11 -0
  731. package/scss/components/_collapse.scss +9 -0
  732. package/scss/components/_crud2.scss +181 -13
  733. package/scss/components/_debug.scss +59 -7
  734. package/scss/components/_input-box.scss +2 -1
  735. package/scss/components/_json-schema-editor.scss +3 -5
  736. package/scss/components/_mobile-dev-tool.scss +175 -0
  737. package/scss/components/_modal.scss +1 -0
  738. package/scss/components/_page.scss +15 -0
  739. package/scss/components/_panel.scss +24 -9
  740. package/scss/components/_picker-columns.scss +1 -1
  741. package/scss/components/_pull-refresh.scss +6 -1
  742. package/scss/components/_result-box.scss +2 -2
  743. package/scss/components/_table.scss +6 -1
  744. package/scss/components/_tabs.scss +6 -6
  745. package/scss/components/_tag.scss +3 -4
  746. package/scss/components/_toast.scss +22 -6
  747. package/scss/components/form/_checks.scss +0 -12
  748. package/scss/components/form/_form.scss +11 -6
  749. package/scss/components/form/_image.scss +14 -14
  750. package/scss/components/form/_list.scss +8 -8
  751. package/scss/components/form/_picker.scss +1 -1
  752. package/scss/components/form/_select.scss +4 -3
  753. package/scss/components/form/_textarea.scss +4 -4
  754. package/scss/components/form/_tree-select.scss +1 -1
  755. package/scss/themes/_common.scss +2 -0
@@ -23,6 +23,8 @@ export interface PopUpPorps extends ThemeProps, LocaleProps {
23
23
  placement?: 'left' | 'center' | 'right';
24
24
  header?: JSX.Element;
25
25
  children?: React.ReactNode | Array<React.ReactNode>;
26
+ onExited?: () => void;
27
+ onEntered?: () => void;
26
28
  }
27
29
  export declare class PopUp extends React.PureComponent<PopUpPorps> {
28
30
  scrollTop: number;
@@ -40,7 +42,7 @@ export declare class PopUp extends React.PureComponent<PopUpPorps> {
40
42
  render(): React.JSX.Element;
41
43
  }
42
44
  declare const _default: {
43
- new (props: Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
45
+ new (props: Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
44
46
  className?: string | undefined;
45
47
  overlay?: boolean | undefined;
46
48
  container?: any;
@@ -56,7 +58,7 @@ declare const _default: {
56
58
  getWrappedInstance(): any;
57
59
  render(): React.JSX.Element;
58
60
  context: unknown;
59
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
61
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
60
62
  className?: string | undefined;
61
63
  overlay?: boolean | undefined;
62
64
  container?: any;
@@ -68,7 +70,7 @@ declare const _default: {
68
70
  translate?: ((str: string, ...args: any[]) => string) | undefined;
69
71
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
70
72
  forceUpdate(callback?: (() => void) | undefined): void;
71
- readonly props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
73
+ readonly props: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
72
74
  className?: string | undefined;
73
75
  overlay?: boolean | undefined;
74
76
  container?: any;
@@ -84,7 +86,7 @@ declare const _default: {
84
86
  [key: string]: React.ReactInstance;
85
87
  };
86
88
  componentDidMount?(): void;
87
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
89
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
88
90
  className?: string | undefined;
89
91
  overlay?: boolean | undefined;
90
92
  container?: any;
@@ -97,7 +99,7 @@ declare const _default: {
97
99
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
98
100
  componentWillUnmount?(): void;
99
101
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
100
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
102
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
101
103
  className?: string | undefined;
102
104
  overlay?: boolean | undefined;
103
105
  container?: any;
@@ -108,7 +110,7 @@ declare const _default: {
108
110
  locale?: string | undefined;
109
111
  translate?: ((str: string, ...args: any[]) => string) | undefined;
110
112
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
111
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
113
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
112
114
  className?: string | undefined;
113
115
  overlay?: boolean | undefined;
114
116
  container?: any;
@@ -121,7 +123,7 @@ declare const _default: {
121
123
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
122
124
  componentWillMount?(): void;
123
125
  UNSAFE_componentWillMount?(): void;
124
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
126
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
125
127
  className?: string | undefined;
126
128
  overlay?: boolean | undefined;
127
129
  container?: any;
@@ -132,7 +134,7 @@ declare const _default: {
132
134
  locale?: string | undefined;
133
135
  translate?: ((str: string, ...args: any[]) => string) | undefined;
134
136
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
135
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
137
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
136
138
  className?: string | undefined;
137
139
  overlay?: boolean | undefined;
138
140
  container?: any;
@@ -143,7 +145,7 @@ declare const _default: {
143
145
  locale?: string | undefined;
144
146
  translate?: ((str: string, ...args: any[]) => string) | undefined;
145
147
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
146
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
148
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
147
149
  className?: string | undefined;
148
150
  overlay?: boolean | undefined;
149
151
  container?: any;
@@ -154,7 +156,7 @@ declare const _default: {
154
156
  locale?: string | undefined;
155
157
  translate?: ((str: string, ...args: any[]) => string) | undefined;
156
158
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
157
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
159
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
158
160
  className?: string | undefined;
159
161
  overlay?: boolean | undefined;
160
162
  container?: any;
@@ -169,7 +171,7 @@ declare const _default: {
169
171
  displayName: string;
170
172
  contextType: React.Context<string>;
171
173
  ComposedComponent: React.ComponentType<{
172
- new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
174
+ new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
173
175
  className?: string | undefined;
174
176
  overlay?: boolean | undefined;
175
177
  container?: any;
@@ -185,7 +187,7 @@ declare const _default: {
185
187
  getWrappedInstance(): any;
186
188
  render(): React.JSX.Element;
187
189
  context: unknown;
188
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
190
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
189
191
  className?: string | undefined;
190
192
  overlay?: boolean | undefined;
191
193
  container?: any;
@@ -197,7 +199,7 @@ declare const _default: {
197
199
  translate?: ((str: string, ...args: any[]) => string) | undefined;
198
200
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
199
201
  forceUpdate(callback?: (() => void) | undefined): void;
200
- readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
202
+ readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
201
203
  className?: string | undefined;
202
204
  overlay?: boolean | undefined;
203
205
  container?: any;
@@ -213,7 +215,7 @@ declare const _default: {
213
215
  [key: string]: React.ReactInstance;
214
216
  };
215
217
  componentDidMount?(): void;
216
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
218
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
217
219
  className?: string | undefined;
218
220
  overlay?: boolean | undefined;
219
221
  container?: any;
@@ -226,7 +228,7 @@ declare const _default: {
226
228
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
227
229
  componentWillUnmount?(): void;
228
230
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
229
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
231
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
230
232
  className?: string | undefined;
231
233
  overlay?: boolean | undefined;
232
234
  container?: any;
@@ -237,7 +239,7 @@ declare const _default: {
237
239
  locale?: string | undefined;
238
240
  translate?: ((str: string, ...args: any[]) => string) | undefined;
239
241
  }>, prevState: Readonly<{}>): any;
240
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
242
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
241
243
  className?: string | undefined;
242
244
  overlay?: boolean | undefined;
243
245
  container?: any;
@@ -250,7 +252,7 @@ declare const _default: {
250
252
  }>, prevState: Readonly<{}>, snapshot?: any): void;
251
253
  componentWillMount?(): void;
252
254
  UNSAFE_componentWillMount?(): void;
253
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
255
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
254
256
  className?: string | undefined;
255
257
  overlay?: boolean | undefined;
256
258
  container?: any;
@@ -261,7 +263,7 @@ declare const _default: {
261
263
  locale?: string | undefined;
262
264
  translate?: ((str: string, ...args: any[]) => string) | undefined;
263
265
  }>, nextContext: any): void;
264
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
266
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
265
267
  className?: string | undefined;
266
268
  overlay?: boolean | undefined;
267
269
  container?: any;
@@ -272,7 +274,7 @@ declare const _default: {
272
274
  locale?: string | undefined;
273
275
  translate?: ((str: string, ...args: any[]) => string) | undefined;
274
276
  }>, nextContext: any): void;
275
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
277
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
276
278
  className?: string | undefined;
277
279
  overlay?: boolean | undefined;
278
280
  container?: any;
@@ -283,7 +285,7 @@ declare const _default: {
283
285
  locale?: string | undefined;
284
286
  translate?: ((str: string, ...args: any[]) => string) | undefined;
285
287
  }>, nextState: Readonly<{}>, nextContext: any): void;
286
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
288
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
287
289
  className?: string | undefined;
288
290
  overlay?: boolean | undefined;
289
291
  container?: any;
@@ -302,7 +304,7 @@ declare const _default: {
302
304
  ComposedComponent: typeof PopUp;
303
305
  }>;
304
306
  } & import("hoist-non-react-statics").NonReactStatics<{
305
- new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
307
+ new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
306
308
  className?: string | undefined;
307
309
  overlay?: boolean | undefined;
308
310
  container?: any;
@@ -318,7 +320,7 @@ declare const _default: {
318
320
  getWrappedInstance(): any;
319
321
  render(): React.JSX.Element;
320
322
  context: unknown;
321
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
323
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
322
324
  className?: string | undefined;
323
325
  overlay?: boolean | undefined;
324
326
  container?: any;
@@ -330,7 +332,7 @@ declare const _default: {
330
332
  translate?: ((str: string, ...args: any[]) => string) | undefined;
331
333
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
332
334
  forceUpdate(callback?: (() => void) | undefined): void;
333
- readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
335
+ readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
334
336
  className?: string | undefined;
335
337
  overlay?: boolean | undefined;
336
338
  container?: any;
@@ -346,7 +348,7 @@ declare const _default: {
346
348
  [key: string]: React.ReactInstance;
347
349
  };
348
350
  componentDidMount?(): void;
349
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
351
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
350
352
  className?: string | undefined;
351
353
  overlay?: boolean | undefined;
352
354
  container?: any;
@@ -359,7 +361,7 @@ declare const _default: {
359
361
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
360
362
  componentWillUnmount?(): void;
361
363
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
362
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
364
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
363
365
  className?: string | undefined;
364
366
  overlay?: boolean | undefined;
365
367
  container?: any;
@@ -370,7 +372,7 @@ declare const _default: {
370
372
  locale?: string | undefined;
371
373
  translate?: ((str: string, ...args: any[]) => string) | undefined;
372
374
  }>, prevState: Readonly<{}>): any;
373
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
375
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
374
376
  className?: string | undefined;
375
377
  overlay?: boolean | undefined;
376
378
  container?: any;
@@ -383,7 +385,7 @@ declare const _default: {
383
385
  }>, prevState: Readonly<{}>, snapshot?: any): void;
384
386
  componentWillMount?(): void;
385
387
  UNSAFE_componentWillMount?(): void;
386
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
388
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
387
389
  className?: string | undefined;
388
390
  overlay?: boolean | undefined;
389
391
  container?: any;
@@ -394,7 +396,7 @@ declare const _default: {
394
396
  locale?: string | undefined;
395
397
  translate?: ((str: string, ...args: any[]) => string) | undefined;
396
398
  }>, nextContext: any): void;
397
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
399
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
398
400
  className?: string | undefined;
399
401
  overlay?: boolean | undefined;
400
402
  container?: any;
@@ -405,7 +407,7 @@ declare const _default: {
405
407
  locale?: string | undefined;
406
408
  translate?: ((str: string, ...args: any[]) => string) | undefined;
407
409
  }>, nextContext: any): void;
408
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
410
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
409
411
  className?: string | undefined;
410
412
  overlay?: boolean | undefined;
411
413
  container?: any;
@@ -416,7 +418,7 @@ declare const _default: {
416
418
  locale?: string | undefined;
417
419
  translate?: ((str: string, ...args: any[]) => string) | undefined;
418
420
  }>, nextState: Readonly<{}>, nextContext: any): void;
419
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
421
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
420
422
  className?: string | undefined;
421
423
  overlay?: boolean | undefined;
422
424
  container?: any;
@@ -435,7 +437,7 @@ declare const _default: {
435
437
  ComposedComponent: typeof PopUp;
436
438
  }, {}> & {
437
439
  ComposedComponent: {
438
- new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
440
+ new (props: Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
439
441
  className?: string | undefined;
440
442
  overlay?: boolean | undefined;
441
443
  container?: any;
@@ -451,7 +453,7 @@ declare const _default: {
451
453
  getWrappedInstance(): any;
452
454
  render(): React.JSX.Element;
453
455
  context: unknown;
454
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
456
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
455
457
  className?: string | undefined;
456
458
  overlay?: boolean | undefined;
457
459
  container?: any;
@@ -463,7 +465,7 @@ declare const _default: {
463
465
  translate?: ((str: string, ...args: any[]) => string) | undefined;
464
466
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
465
467
  forceUpdate(callback?: (() => void) | undefined): void;
466
- readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
468
+ readonly props: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
467
469
  className?: string | undefined;
468
470
  overlay?: boolean | undefined;
469
471
  container?: any;
@@ -479,7 +481,7 @@ declare const _default: {
479
481
  [key: string]: React.ReactInstance;
480
482
  };
481
483
  componentDidMount?(): void;
482
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
484
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
483
485
  className?: string | undefined;
484
486
  overlay?: boolean | undefined;
485
487
  container?: any;
@@ -492,7 +494,7 @@ declare const _default: {
492
494
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
493
495
  componentWillUnmount?(): void;
494
496
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
495
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
497
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
496
498
  className?: string | undefined;
497
499
  overlay?: boolean | undefined;
498
500
  container?: any;
@@ -503,7 +505,7 @@ declare const _default: {
503
505
  locale?: string | undefined;
504
506
  translate?: ((str: string, ...args: any[]) => string) | undefined;
505
507
  }>, prevState: Readonly<{}>): any;
506
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
508
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
507
509
  className?: string | undefined;
508
510
  overlay?: boolean | undefined;
509
511
  container?: any;
@@ -516,7 +518,7 @@ declare const _default: {
516
518
  }>, prevState: Readonly<{}>, snapshot?: any): void;
517
519
  componentWillMount?(): void;
518
520
  UNSAFE_componentWillMount?(): void;
519
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
521
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
520
522
  className?: string | undefined;
521
523
  overlay?: boolean | undefined;
522
524
  container?: any;
@@ -527,7 +529,7 @@ declare const _default: {
527
529
  locale?: string | undefined;
528
530
  translate?: ((str: string, ...args: any[]) => string) | undefined;
529
531
  }>, nextContext: any): void;
530
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
532
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
531
533
  className?: string | undefined;
532
534
  overlay?: boolean | undefined;
533
535
  container?: any;
@@ -538,7 +540,7 @@ declare const _default: {
538
540
  locale?: string | undefined;
539
541
  translate?: ((str: string, ...args: any[]) => string) | undefined;
540
542
  }>, nextContext: any): void;
541
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
543
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
542
544
  className?: string | undefined;
543
545
  overlay?: boolean | undefined;
544
546
  container?: any;
@@ -549,7 +551,7 @@ declare const _default: {
549
551
  locale?: string | undefined;
550
552
  translate?: ((str: string, ...args: any[]) => string) | undefined;
551
553
  }>, nextState: Readonly<{}>, nextContext: any): void;
552
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "placement" | "showConfirm"> & {
554
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<PopUpPorps, keyof LocaleProps>, "classPrefix" | "classnames" | "children" | "theme" | "mobileUI" | "style" | "header" | "title" | "onHide" | "onExited" | "onEntered" | "placement" | "showConfirm"> & {
553
555
  className?: string | undefined;
554
556
  overlay?: boolean | undefined;
555
557
  container?: any;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.9.0-rc.1
2
+ * amis-ui v6.9.0-rc.11
3
3
  * Copyright 2018-2024 fex
4
4
  */
5
5
 
@@ -58,11 +58,11 @@ var PopUp = /** @class */ (function (_super) {
58
58
  };
59
59
  PopUp.prototype.render = function () {
60
60
  var _this = this;
61
- var _a = this.props, style = _a.style, title = _a.title, children = _a.children, overlay = _a.overlay, onHide = _a.onHide, onConfirm = _a.onConfirm, ns = _a.classPrefix, cx = _a.classnames, className = _a.className, isShow = _a.isShow, container = _a.container, showConfirm = _a.showConfirm, __ = _a.translate, showClose = _a.showClose, header = _a.header, _b = _a.placement, placement = _b === void 0 ? 'center' : _b, rest = tslib.__rest(_a, ["style", "title", "children", "overlay", "onHide", "onConfirm", "classPrefix", "classnames", "className", "isShow", "container", "showConfirm", "translate", "showClose", "header", "placement"]);
61
+ var _a = this.props, style = _a.style, title = _a.title, children = _a.children, overlay = _a.overlay, onHide = _a.onHide, onConfirm = _a.onConfirm, ns = _a.classPrefix, cx = _a.classnames, className = _a.className, isShow = _a.isShow, container = _a.container, showConfirm = _a.showConfirm, __ = _a.translate, showClose = _a.showClose, header = _a.header, _b = _a.placement, placement = _b === void 0 ? 'center' : _b, onEntered = _a.onEntered, onExited = _a.onExited, rest = tslib.__rest(_a, ["style", "title", "children", "overlay", "onHide", "onConfirm", "classPrefix", "classnames", "className", "isShow", "container", "showConfirm", "translate", "showClose", "header", "placement", "onEntered", "onExited"]);
62
62
  var outerStyle = tslib.__assign({}, style);
63
63
  delete outerStyle.top;
64
64
  return (_J$X_(Portal__default["default"], { container: container },
65
- _J$X_(Transition__default["default"], { mountOnEnter: true, unmountOnExit: true, in: isShow, timeout: 500, appear: true }, function (status) {
65
+ _J$X_(Transition__default["default"], { onEntered: onEntered, onExit: onExited, mountOnEnter: true, unmountOnExit: true, in: isShow, timeout: 500, appear: true }, function (status) {
66
66
  return (_J$X_("div", tslib.__assign({ className: cx("".concat(ns, "PopUp"), className, fadeStyles[status]), style: outerStyle }, rest, { onClick: _this.handleClick }),
67
67
  overlay && (_J$X_("div", { className: "".concat(ns, "PopUp-overlay"), onClick: onHide })),
68
68
  _J$X_("div", { className: cx("".concat(ns, "PopUp-inner")) },
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.9.0-rc.1
2
+ * amis-ui v6.9.0-rc.11
3
3
  * Copyright 2018-2024 fex
4
4
  */
5
5
 
@@ -12,10 +12,14 @@ export interface PullRefreshProps {
12
12
  classPrefix: string;
13
13
  translate: TranslateFn;
14
14
  disabled?: boolean;
15
+ completed?: boolean;
16
+ direction?: 'up' | 'down';
17
+ normalText?: string;
15
18
  pullingText?: string;
16
19
  loosingText?: string;
17
20
  loadingText?: string;
18
21
  successText?: string;
22
+ completedText?: string;
19
23
  onRefresh?: () => void;
20
24
  loading?: boolean;
21
25
  successDuration?: number;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.9.0-rc.1
2
+ * amis-ui v6.9.0-rc.11
3
3
  * Copyright 2018-2024 fex
4
4
  */
5
5
 
@@ -13,36 +13,50 @@ var amisCore = require('amis-core');
13
13
  var useSetState = require('../hooks/use-set-state.js');
14
14
  var useTouch = require('../hooks/use-touch.js');
15
15
  require('lodash/pick');
16
+ var useOnScreen = require('../hooks/use-on-screen.js');
16
17
  var icons = require('./icons.js');
17
18
 
19
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
+
21
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
+
18
23
  var __react_jsx__ = require('react');
19
24
  var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
20
25
  (__react_jsx__["default"] || __react_jsx__).Fragment;
21
26
  var defaultProps = {
22
27
  successDuration: 0,
23
- loadingDuration: 0
28
+ loadingDuration: 0,
29
+ direction: 'down'
24
30
  };
25
31
  var defaultHeaderHeight = 28;
26
32
  var PullRefresh = React.forwardRef(function (props, ref) {
27
- var cx = props.classnames, __ = props.translate, children = props.children, successDuration = props.successDuration, loadingDuration = props.loadingDuration;
33
+ var _a, _b, _c, _d, _e, _f;
34
+ var cx = props.classnames, __ = props.translate, children = props.children, successDuration = props.successDuration, loadingDuration = props.loadingDuration, direction = props.direction, completed = props.completed;
28
35
  var refreshText = {
29
- pullingText: __('pullRefresh.pullingText'),
30
- loosingText: __('pullRefresh.loosingText'),
31
- loadingText: __('pullRefresh.loadingText'),
32
- successText: __('pullRefresh.successText')
36
+ normalText: (_a = props.normalText) !== null && _a !== void 0 ? _a : __('pullRefresh.normalText'),
37
+ pullingText: (_b = props.pullingText) !== null && _b !== void 0 ? _b : __('pullRefresh.pullingText'),
38
+ loosingText: (_c = props.loosingText) !== null && _c !== void 0 ? _c : __('pullRefresh.loosingText'),
39
+ loadingText: (_d = props.loadingText) !== null && _d !== void 0 ? _d : __('pullRefresh.loadingText'),
40
+ successText: (_e = props.successText) !== null && _e !== void 0 ? _e : __('pullRefresh.successText'),
41
+ completedText: (_f = props.completedText) !== null && _f !== void 0 ? _f : __('pullRefresh.completedText')
33
42
  };
34
43
  var touch = useTouch["default"]();
44
+ var loadingRef = React__default["default"].useRef(null);
45
+ // 当占位文字在屏幕内时,需要刷新
46
+ var needRefresh = useOnScreen["default"](loadingRef);
35
47
  React.useEffect(function () {
36
48
  if (props.loading === false) {
37
49
  loadSuccess();
38
50
  }
39
51
  }, [props.loading]);
40
- var _a = tslib.__read(useSetState["default"]({
52
+ var _g = tslib.__read(useSetState["default"]({
41
53
  status: 'normal',
42
54
  offsetY: 0
43
- }), 2), state = _a[0], updateState = _a[1];
55
+ }), 2), state = _g[0], updateState = _g[1];
44
56
  var isTouchable = function () {
45
- return (!props.disabled &&
57
+ return (!completed &&
58
+ needRefresh &&
59
+ !props.disabled &&
46
60
  state.status !== 'loading' &&
47
61
  state.status !== 'success');
48
62
  };
@@ -67,7 +81,7 @@ var PullRefresh = React.forwardRef(function (props, ref) {
67
81
  else if (distance === 0) {
68
82
  status = 'normal';
69
83
  }
70
- else if (distance < pullDistance) {
84
+ else if (Math.abs(distance) < pullDistance) {
71
85
  status = 'pulling';
72
86
  }
73
87
  else {
@@ -97,15 +111,20 @@ var PullRefresh = React.forwardRef(function (props, ref) {
97
111
  if (isTouchable()) {
98
112
  touch.move(event);
99
113
  updateState({});
100
- if (touch.isVertical() && touch.deltaY > 0) {
101
- setStatus(ease(touch.deltaY));
114
+ if (touch.isVertical()) {
115
+ if (direction === 'down' && touch.deltaY > 0) {
116
+ setStatus(ease(touch.deltaY));
117
+ }
118
+ else if (direction === 'up' && touch.deltaY < 0) {
119
+ setStatus(-1 * ease(-1 * touch.deltaY));
120
+ }
102
121
  }
103
122
  }
104
123
  return false;
105
124
  };
106
125
  var onTouchEnd = function (event) {
107
126
  event.stopPropagation();
108
- if (isTouchable() && state.offsetY > 0) {
127
+ if (isTouchable() && state.offsetY !== 0) {
109
128
  if (state.status === 'loosing') {
110
129
  if (loadingDuration) {
111
130
  setStatus(defaultHeaderHeight, true);
@@ -120,22 +139,28 @@ var PullRefresh = React.forwardRef(function (props, ref) {
120
139
  }
121
140
  }
122
141
  };
123
- var transformStyle = {
124
- transform: "translate3d(0, ".concat(state.offsetY, "px, 0)"),
125
- touchAction: 'none'
126
- };
142
+ var transformStyle = tslib.__assign({ transform: "translate3d(0, ".concat(state.offsetY, "px, 0)") }, (direction === 'down'
143
+ ? {
144
+ touchAction: 'none'
145
+ }
146
+ : {}));
127
147
  var getStatusText = function (status) {
128
- if (status === 'normal') {
129
- return '';
148
+ if (props.loading) {
149
+ return refreshText.loadingText;
150
+ }
151
+ if (completed) {
152
+ return refreshText.completedText;
130
153
  }
131
- return props["".concat(status, "Text")] || refreshText["".concat(status, "Text")];
154
+ return refreshText["".concat(status, "Text")];
132
155
  };
156
+ var loadingDom = function (className) { return (_J$X_("div", { className: className, ref: loadingRef },
157
+ state.status === 'loading' && (_J$X_(icons.Icon, { icon: "loading-outline", className: "icon loading-icon" })),
158
+ getStatusText(state.status))); };
133
159
  return (_J$X_("div", { className: cx('PullRefresh'), onTouchStart: onTouchStart, onTouchMove: onTouchMove, onTouchEnd: onTouchEnd, onTouchCancel: onTouchEnd },
134
160
  _J$X_("div", { className: cx('PullRefresh-wrap'), style: transformStyle },
135
- _J$X_("div", { className: cx('PullRefresh-header') },
136
- state.status === 'loading' && (_J$X_(icons.Icon, { icon: "loading-outline", className: "icon loading-icon" })),
137
- getStatusText(state.status)),
138
- children)));
161
+ direction === 'down' ? loadingDom(cx('PullRefresh-header')) : null,
162
+ children,
163
+ direction === 'up' ? loadingDom(cx('PullRefresh-footer')) : null)));
139
164
  });
140
165
  PullRefresh.defaultProps = defaultProps;
141
166
  var PullRefresh$1 = amisCore.themeable(PullRefresh);