amis-ui 6.13.0-beta.2 → 6.13.0-beta.21

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 (663) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.js +1 -1
  3. package/esm/components/Alert2.js +1 -1
  4. package/esm/components/AlphabetIndexer.js +1 -1
  5. package/esm/components/AnchorNav.js +1 -1
  6. package/esm/components/AnchorNavSection.js +1 -1
  7. package/esm/components/ArrayInput.js +1 -1
  8. package/esm/components/AsideNav.js +1 -1
  9. package/esm/components/AssociatedSelection.js +7 -3
  10. package/esm/components/AutoFoldedList.d.ts +87 -0
  11. package/esm/components/AutoFoldedList.js +124 -0
  12. package/esm/components/AutoSizer.js +1 -1
  13. package/esm/components/Avatar.js +1 -1
  14. package/esm/components/Badge.js +1 -1
  15. package/esm/components/BaiduMapPicker.js +1 -1
  16. package/esm/components/BarCode.js +1 -1
  17. package/esm/components/Breadcrumb.js +1 -1
  18. package/esm/components/Button.js +1 -1
  19. package/esm/components/CalendarMobile.js +1 -1
  20. package/esm/components/Card.js +1 -1
  21. package/esm/components/Cascader.js +1 -1
  22. package/esm/components/ChainedDropdownSelection.js +1 -1
  23. package/esm/components/ChainedSelection.js +1 -1
  24. package/esm/components/Checkbox.js +1 -1
  25. package/esm/components/CityArea.js +1 -1
  26. package/esm/components/CityDB.js +1 -1
  27. package/esm/components/CodeMirror.js +1 -1
  28. package/esm/components/Collapse.js +1 -1
  29. package/esm/components/CollapseGroup.js +1 -1
  30. package/esm/components/ColorPicker.js +1 -1
  31. package/esm/components/Combo.js +1 -1
  32. package/esm/components/ConditionBuilder.js +1 -1
  33. package/esm/components/ConfirmBox.js +1 -1
  34. package/esm/components/ContextMenu.js +1 -1
  35. package/esm/components/DatePicker.js +1 -1
  36. package/esm/components/DateRangePicker.js +6 -9
  37. package/esm/components/DiffEditor.js +1 -1
  38. package/esm/components/DndContainer.js +1 -1
  39. package/esm/components/Drawer.js +1 -1
  40. package/esm/components/DropDownSelection.js +1 -1
  41. package/esm/components/DropdownContextMenus.js +1 -1
  42. package/esm/components/Editor.js +1 -1
  43. package/esm/components/Form.js +1 -1
  44. package/esm/components/FormField.js +1 -1
  45. package/esm/components/FormulaPicker.js +1 -1
  46. package/esm/components/GaodeMapPicker.js +1 -1
  47. package/esm/components/GridNav.js +1 -1
  48. package/esm/components/GridNavItem.js +1 -1
  49. package/esm/components/GroupedSelection.js +1 -1
  50. package/esm/components/HeadCellDropDown.js +1 -1
  51. package/esm/components/HorizontalScroll.js +1 -1
  52. package/esm/components/Html.js +1 -1
  53. package/esm/components/Icon.js +1 -1
  54. package/esm/components/ImageGallery.js +1 -1
  55. package/esm/components/Input.js +1 -1
  56. package/esm/components/InputBox.js +1 -1
  57. package/esm/components/InputBoxWithSuggestion.js +1 -1
  58. package/esm/components/InputJSONSchema.js +1 -1
  59. package/esm/components/InputTable.js +1 -1
  60. package/esm/components/JSONSchemaEditor.js +1 -1
  61. package/esm/components/Layout.js +1 -1
  62. package/esm/components/Link.js +1 -1
  63. package/esm/components/ListGroup.js +1 -1
  64. package/esm/components/ListMenu.js +1 -1
  65. package/esm/components/LocationPicker.js +1 -1
  66. package/esm/components/Markdown.js +1 -1
  67. package/esm/components/Menu.js +1 -1
  68. package/esm/components/MixedInput.d.ts +55 -0
  69. package/esm/components/MixedInput.js +88 -0
  70. package/esm/components/MobileDevTool.js +1 -1
  71. package/esm/components/Modal.js +2 -2
  72. package/esm/components/ModalManager.js +1 -1
  73. package/esm/components/MultilineText.js +1 -1
  74. package/esm/components/NumberInput.js +1 -1
  75. package/esm/components/OverflowTpl.js +1 -1
  76. package/esm/components/Pagination.js +1 -1
  77. package/esm/components/PdfViewer.js +1 -1
  78. package/esm/components/Picker.js +1 -1
  79. package/esm/components/PickerColumn.js +1 -1
  80. package/esm/components/PickerContainer.js +1 -1
  81. package/esm/components/PopOverContainer.js +1 -1
  82. package/esm/components/PopUp.js +1 -1
  83. package/esm/components/Progress.js +1 -1
  84. package/esm/components/PullRefresh.js +1 -1
  85. package/esm/components/Radios.js +1 -1
  86. package/esm/components/Range.js +1 -1
  87. package/esm/components/Rating.js +1 -1
  88. package/esm/components/ResultBox.d.ts +1 -1
  89. package/esm/components/ResultBox.js +14 -34
  90. package/esm/components/ResultList.js +1 -1
  91. package/esm/components/ResultTableList.js +1 -1
  92. package/esm/components/ResultTreeList.js +5 -3
  93. package/esm/components/RichText.js +1 -1
  94. package/esm/components/SearchBox.js +1 -1
  95. package/esm/components/Select.js +29 -63
  96. package/esm/components/SelectMobile.js +1 -1
  97. package/esm/components/Selection.js +1 -1
  98. package/esm/components/Shape.js +1 -1
  99. package/esm/components/Signature.js +3 -1
  100. package/esm/components/Slider.js +1 -1
  101. package/esm/components/SparkLine.js +1 -1
  102. package/esm/components/Spinner.js +1 -1
  103. package/esm/components/Steps.js +1 -1
  104. package/esm/components/Switch.js +1 -1
  105. package/esm/components/Tab.js +1 -1
  106. package/esm/components/Table.js +1 -1
  107. package/esm/components/TableSelection.js +1 -1
  108. package/esm/components/Tabs.js +1 -1
  109. package/esm/components/TabsTransfer.js +4 -2
  110. package/esm/components/TabsTransferPicker.js +1 -1
  111. package/esm/components/Tag.d.ts +11 -0
  112. package/esm/components/Tag.js +5 -5
  113. package/esm/components/Textarea.js +1 -1
  114. package/esm/components/Timeline.js +1 -1
  115. package/esm/components/TimelineItem.js +1 -1
  116. package/esm/components/Tinymce.js +1 -1
  117. package/esm/components/TitleBar.js +1 -1
  118. package/esm/components/Toast.js +1 -1
  119. package/esm/components/Tooltip.js +1 -1
  120. package/esm/components/TooltipWrapper.js +1 -1
  121. package/esm/components/Transfer.js +7 -3
  122. package/esm/components/TransferDropDown.js +1 -1
  123. package/esm/components/TransferPicker.js +1 -1
  124. package/esm/components/TransferSearch.js +1 -1
  125. package/esm/components/Tree.d.ts +7 -45
  126. package/esm/components/Tree.js +78 -38
  127. package/esm/components/TreeSelection.js +1 -1
  128. package/esm/components/UserSelect.js +1 -1
  129. package/esm/components/UserTabSelect.js +1 -1
  130. package/esm/components/VerificationCode.js +1 -1
  131. package/esm/components/VirtualList.js +1 -1
  132. package/esm/components/WithRemoteConfig.js +1 -1
  133. package/esm/components/WithStore.js +1 -1
  134. package/esm/components/calendar/Calendar.js +1 -1
  135. package/esm/components/calendar/CalendarContainer.js +1 -1
  136. package/esm/components/calendar/DaysView.js +7 -6
  137. package/esm/components/calendar/MonthsView.js +1 -1
  138. package/esm/components/calendar/QuartersView.js +1 -1
  139. package/esm/components/calendar/TimeView.js +1 -1
  140. package/esm/components/calendar/YearsView.js +1 -1
  141. package/esm/components/condition-builder/Expression.js +3 -3
  142. package/esm/components/condition-builder/Field.js +1 -1
  143. package/esm/components/condition-builder/Func.js +1 -1
  144. package/esm/components/condition-builder/Group.js +1 -1
  145. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  146. package/esm/components/condition-builder/InputSwitch.js +1 -1
  147. package/esm/components/condition-builder/Item.js +1 -1
  148. package/esm/components/condition-builder/Value.d.ts +2 -0
  149. package/esm/components/condition-builder/Value.js +18 -12
  150. package/esm/components/condition-builder/config.js +1 -1
  151. package/esm/components/condition-builder/index.js +1 -1
  152. package/esm/components/condition-builder/types.d.ts +1 -0
  153. package/esm/components/formula/CodeEditor.js +1 -1
  154. package/esm/components/formula/Editor.js +1 -1
  155. package/esm/components/formula/FuncList.js +1 -1
  156. package/esm/components/formula/Input.js +1 -1
  157. package/esm/components/formula/Picker.js +1 -1
  158. package/esm/components/formula/VariableList.js +1 -1
  159. package/esm/components/formula/plugin.js +1 -1
  160. package/esm/components/icons.js +1 -1
  161. package/esm/components/index.d.ts +3 -1
  162. package/esm/components/json-schema/Array.js +1 -1
  163. package/esm/components/json-schema/Item.js +1 -1
  164. package/esm/components/json-schema/Object.js +1 -1
  165. package/esm/components/json-schema/index.js +1 -1
  166. package/esm/components/menu/MenuContext.js +1 -1
  167. package/esm/components/menu/MenuItem.js +1 -1
  168. package/esm/components/menu/PanelMenu.js +1 -1
  169. package/esm/components/menu/SubMenu.js +1 -1
  170. package/esm/components/menu/index.js +1 -1
  171. package/esm/components/schema-editor/Array.js +1 -1
  172. package/esm/components/schema-editor/Common.js +1 -1
  173. package/esm/components/schema-editor/Item.js +1 -1
  174. package/esm/components/schema-editor/Object.js +1 -1
  175. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  176. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  177. package/esm/components/schema-editor/index.js +1 -1
  178. package/esm/components/table/Cell.js +1 -1
  179. package/esm/components/table/ColGroup.js +1 -1
  180. package/esm/components/table/Head.js +1 -1
  181. package/esm/components/table/HeadCellDropDown.js +1 -1
  182. package/esm/components/table/HeadCellFilter.js +1 -1
  183. package/esm/components/table/HeadCellSelect.js +1 -1
  184. package/esm/components/table/HeadCellSort.js +1 -1
  185. package/esm/components/table/ItemActionsWrapper.js +1 -1
  186. package/esm/components/table/Row.js +1 -1
  187. package/esm/components/table/SummaryRow.js +1 -1
  188. package/esm/components/table/index.js +6 -4
  189. package/esm/components/table/util.js +29 -16
  190. package/esm/components/virtual-list/AutoSizer.js +1 -1
  191. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  192. package/esm/components/virtual-list/constants.js +1 -1
  193. package/esm/components/virtual-list/index.js +1 -1
  194. package/esm/components/withBadge.js +1 -1
  195. package/esm/hooks/use-click-away.js +1 -1
  196. package/esm/hooks/use-on-screen.js +1 -1
  197. package/esm/hooks/use-set-state.js +1 -1
  198. package/esm/hooks/use-sub-form.js +1 -1
  199. package/esm/hooks/use-touch.js +1 -1
  200. package/esm/hooks/use-update-effect.js +1 -1
  201. package/esm/hooks/use-validation-resolver.js +1 -1
  202. package/esm/icons/alert-danger.svg.js +1 -1
  203. package/esm/icons/alert-info.svg.js +1 -1
  204. package/esm/icons/alert-success.svg.js +1 -1
  205. package/esm/icons/alert-warning.svg.js +1 -1
  206. package/esm/icons/arrow-double-left.svg.js +1 -1
  207. package/esm/icons/arrow-double-right.svg.js +1 -1
  208. package/esm/icons/back.svg.js +1 -1
  209. package/esm/icons/calendar.svg.js +1 -1
  210. package/esm/icons/caret.svg.js +1 -1
  211. package/esm/icons/check.svg.js +1 -1
  212. package/esm/icons/clock.svg.js +1 -1
  213. package/esm/icons/close-small.svg.js +1 -1
  214. package/esm/icons/close.svg.js +1 -1
  215. package/esm/icons/cloud-upload.svg.js +1 -1
  216. package/esm/icons/column-filter.svg.js +1 -1
  217. package/esm/icons/columns.svg.js +1 -1
  218. package/esm/icons/compress-alt.svg.js +1 -1
  219. package/esm/icons/copy.svg.js +1 -1
  220. package/esm/icons/date.svg.js +1 -1
  221. package/esm/icons/department.svg.js +1 -1
  222. package/esm/icons/desk-empty.svg.js +1 -1
  223. package/esm/icons/dot.svg.js +1 -1
  224. package/esm/icons/down-arrow-bold.svg.js +1 -1
  225. package/esm/icons/down.svg.js +1 -1
  226. package/esm/icons/download.svg.js +1 -1
  227. package/esm/icons/drag-bar.svg.js +1 -1
  228. package/esm/icons/drag.svg.js +1 -1
  229. package/esm/icons/edit.svg.js +1 -1
  230. package/esm/icons/ellipsis-v.svg.js +1 -1
  231. package/esm/icons/enter.svg.js +1 -1
  232. package/esm/icons/exchange.svg.js +1 -1
  233. package/esm/icons/expand-alt.svg.js +1 -1
  234. package/esm/icons/fail.svg.js +1 -1
  235. package/esm/icons/file.svg.js +1 -1
  236. package/esm/icons/filter.svg.js +1 -1
  237. package/esm/icons/folder.svg.js +1 -1
  238. package/esm/icons/fullscreen.svg.js +1 -1
  239. package/esm/icons/function.svg.js +1 -1
  240. package/esm/icons/home.svg.js +1 -1
  241. package/esm/icons/if.svg.js +1 -1
  242. package/esm/icons/image.svg.js +1 -1
  243. package/esm/icons/info-circle.svg.js +1 -1
  244. package/esm/icons/info.svg.js +1 -1
  245. package/esm/icons/input-clear.svg.js +1 -1
  246. package/esm/icons/invisible.svg.js +1 -1
  247. package/esm/icons/left-arrow.svg.js +1 -1
  248. package/esm/icons/loading-outline.svg.js +1 -1
  249. package/esm/icons/location.svg.js +1 -1
  250. package/esm/icons/menu.svg.js +1 -1
  251. package/esm/icons/minus.svg.js +1 -1
  252. package/esm/icons/move.svg.js +1 -1
  253. package/esm/icons/mute.svg.js +1 -1
  254. package/esm/icons/new-edit.svg.js +1 -1
  255. package/esm/icons/pause.svg.js +1 -1
  256. package/esm/icons/pencil.svg.js +1 -1
  257. package/esm/icons/play.svg.js +1 -1
  258. package/esm/icons/plus-cicle.svg.js +1 -1
  259. package/esm/icons/plus-fine.svg.js +1 -1
  260. package/esm/icons/plus.svg.js +1 -1
  261. package/esm/icons/post.svg.js +1 -1
  262. package/esm/icons/question-mark.svg.js +1 -1
  263. package/esm/icons/question.svg.js +1 -1
  264. package/esm/icons/redo.svg.js +1 -1
  265. package/esm/icons/refresh.svg.js +1 -1
  266. package/esm/icons/reload.svg.js +1 -1
  267. package/esm/icons/remove.svg.js +1 -1
  268. package/esm/icons/retry.svg.js +1 -1
  269. package/esm/icons/right-arrow-bold.svg.js +1 -1
  270. package/esm/icons/right-arrow.svg.js +1 -1
  271. package/esm/icons/right-double-arrow.svg.js +1 -1
  272. package/esm/icons/role.svg.js +1 -1
  273. package/esm/icons/rotate-left.svg.js +1 -1
  274. package/esm/icons/rotate-right.svg.js +1 -1
  275. package/esm/icons/rotate-screen.svg.js +1 -1
  276. package/esm/icons/scale-origin.svg.js +1 -1
  277. package/esm/icons/schedule.svg.js +1 -1
  278. package/esm/icons/search.svg.js +1 -1
  279. package/esm/icons/setting.svg.js +1 -1
  280. package/esm/icons/slider-handle-icon.svg.js +1 -1
  281. package/esm/icons/sort-asc.svg.js +1 -1
  282. package/esm/icons/sort-default.svg.js +1 -1
  283. package/esm/icons/sort-desc.svg.js +1 -1
  284. package/esm/icons/star.svg.js +1 -1
  285. package/esm/icons/status-close.svg.js +1 -1
  286. package/esm/icons/steps-finsh.svg.js +1 -1
  287. package/esm/icons/sub-plus.svg.js +1 -1
  288. package/esm/icons/success.svg.js +1 -1
  289. package/esm/icons/transparent.svg.js +1 -1
  290. package/esm/icons/trash.svg.js +1 -1
  291. package/esm/icons/tree-down.svg.js +1 -1
  292. package/esm/icons/undo-normal.svg.js +1 -1
  293. package/esm/icons/undo.svg.js +1 -1
  294. package/esm/icons/unfullscreen.svg.js +1 -1
  295. package/esm/icons/upload.svg.js +1 -1
  296. package/esm/icons/user-remove.svg.js +1 -1
  297. package/esm/icons/view.svg.js +1 -1
  298. package/esm/icons/volume.svg.js +1 -1
  299. package/esm/icons/warning-mark.svg.js +1 -1
  300. package/esm/icons/warning.svg.js +1 -1
  301. package/esm/icons/window-restore.svg.js +1 -1
  302. package/esm/icons/zoom-in.svg.js +1 -1
  303. package/esm/icons/zoom-out.svg.js +1 -1
  304. package/esm/index.js +3 -1
  305. package/esm/locale/de-DE.js +3 -1
  306. package/esm/locale/en-US.js +3 -1
  307. package/esm/locale/zh-CN.js +3 -1
  308. package/esm/themes/ang.js +1 -1
  309. package/esm/themes/antd.js +1 -1
  310. package/esm/themes/cxd.js +1 -1
  311. package/esm/themes/dark.js +1 -1
  312. package/esm/utils/vectorComputed.js +1 -1
  313. package/esm/withRemoteConfig.js +1 -1
  314. package/esm/withStore.js +1 -1
  315. package/lib/components/404.js +1 -1
  316. package/lib/components/Alert.js +1 -1
  317. package/lib/components/Alert2.js +1 -1
  318. package/lib/components/AlphabetIndexer.js +1 -1
  319. package/lib/components/AnchorNav.js +1 -1
  320. package/lib/components/AnchorNavSection.js +1 -1
  321. package/lib/components/ArrayInput.js +1 -1
  322. package/lib/components/AsideNav.js +1 -1
  323. package/lib/components/AssociatedSelection.js +7 -3
  324. package/lib/components/AutoFoldedList.d.ts +87 -0
  325. package/lib/components/AutoFoldedList.js +128 -0
  326. package/lib/components/AutoSizer.js +1 -1
  327. package/lib/components/Avatar.js +1 -1
  328. package/lib/components/Badge.js +1 -1
  329. package/lib/components/BaiduMapPicker.js +1 -1
  330. package/lib/components/BarCode.js +1 -1
  331. package/lib/components/Breadcrumb.js +1 -1
  332. package/lib/components/Button.js +1 -1
  333. package/lib/components/CalendarMobile.js +1 -1
  334. package/lib/components/Card.js +1 -1
  335. package/lib/components/Cascader.js +1 -1
  336. package/lib/components/ChainedDropdownSelection.js +1 -1
  337. package/lib/components/ChainedSelection.js +1 -1
  338. package/lib/components/Checkbox.js +1 -1
  339. package/lib/components/CityArea.js +1 -1
  340. package/lib/components/CityDB.js +1 -1
  341. package/lib/components/CodeMirror.js +1 -1
  342. package/lib/components/Collapse.js +1 -1
  343. package/lib/components/CollapseGroup.js +1 -1
  344. package/lib/components/ColorPicker.js +1 -1
  345. package/lib/components/Combo.js +1 -1
  346. package/lib/components/ConditionBuilder.js +1 -1
  347. package/lib/components/ConfirmBox.js +1 -1
  348. package/lib/components/ContextMenu.js +1 -1
  349. package/lib/components/DatePicker.js +1 -1
  350. package/lib/components/DateRangePicker.js +5 -8
  351. package/lib/components/DiffEditor.js +1 -1
  352. package/lib/components/DndContainer.js +1 -1
  353. package/lib/components/Drawer.js +1 -1
  354. package/lib/components/DropDownSelection.js +1 -1
  355. package/lib/components/DropdownContextMenus.js +1 -1
  356. package/lib/components/Editor.js +1 -1
  357. package/lib/components/Form.js +1 -1
  358. package/lib/components/FormField.js +1 -1
  359. package/lib/components/FormulaPicker.js +1 -1
  360. package/lib/components/GaodeMapPicker.js +1 -1
  361. package/lib/components/GridNav.js +1 -1
  362. package/lib/components/GridNavItem.js +1 -1
  363. package/lib/components/GroupedSelection.js +1 -1
  364. package/lib/components/HeadCellDropDown.js +1 -1
  365. package/lib/components/HorizontalScroll.js +1 -1
  366. package/lib/components/Html.js +1 -1
  367. package/lib/components/Icon.js +1 -1
  368. package/lib/components/ImageGallery.js +1 -1
  369. package/lib/components/Input.js +1 -1
  370. package/lib/components/InputBox.js +1 -1
  371. package/lib/components/InputBoxWithSuggestion.js +1 -1
  372. package/lib/components/InputJSONSchema.js +1 -1
  373. package/lib/components/InputTable.js +1 -1
  374. package/lib/components/JSONSchemaEditor.js +1 -1
  375. package/lib/components/Layout.js +1 -1
  376. package/lib/components/Link.js +1 -1
  377. package/lib/components/ListGroup.js +1 -1
  378. package/lib/components/ListMenu.js +1 -1
  379. package/lib/components/LocationPicker.js +1 -1
  380. package/lib/components/Markdown.js +1 -1
  381. package/lib/components/Menu.js +1 -1
  382. package/lib/components/MixedInput.d.ts +55 -0
  383. package/lib/components/MixedInput.js +99 -0
  384. package/lib/components/MobileDevTool.js +1 -1
  385. package/lib/components/Modal.js +2 -2
  386. package/lib/components/ModalManager.js +1 -1
  387. package/lib/components/MultilineText.js +1 -1
  388. package/lib/components/NumberInput.js +1 -1
  389. package/lib/components/OverflowTpl.js +1 -1
  390. package/lib/components/Pagination.js +1 -1
  391. package/lib/components/PdfViewer.js +1 -1
  392. package/lib/components/Picker.js +1 -1
  393. package/lib/components/PickerColumn.js +1 -1
  394. package/lib/components/PickerContainer.js +1 -1
  395. package/lib/components/PopOverContainer.js +1 -1
  396. package/lib/components/PopUp.js +1 -1
  397. package/lib/components/Progress.js +1 -1
  398. package/lib/components/PullRefresh.js +1 -1
  399. package/lib/components/Radios.js +1 -1
  400. package/lib/components/Range.js +1 -1
  401. package/lib/components/Rating.js +1 -1
  402. package/lib/components/ResultBox.d.ts +1 -1
  403. package/lib/components/ResultBox.js +13 -34
  404. package/lib/components/ResultList.js +1 -1
  405. package/lib/components/ResultTableList.js +1 -1
  406. package/lib/components/ResultTreeList.js +5 -3
  407. package/lib/components/RichText.js +1 -1
  408. package/lib/components/SearchBox.js +1 -1
  409. package/lib/components/Select.js +28 -63
  410. package/lib/components/SelectMobile.js +1 -1
  411. package/lib/components/Selection.js +1 -1
  412. package/lib/components/Shape.js +1 -1
  413. package/lib/components/Signature.js +3 -1
  414. package/lib/components/Slider.js +1 -1
  415. package/lib/components/SparkLine.js +1 -1
  416. package/lib/components/Spinner.js +1 -1
  417. package/lib/components/Steps.js +1 -1
  418. package/lib/components/Switch.js +1 -1
  419. package/lib/components/Tab.js +1 -1
  420. package/lib/components/Table.js +1 -1
  421. package/lib/components/TableSelection.js +1 -1
  422. package/lib/components/Tabs.js +1 -1
  423. package/lib/components/TabsTransfer.js +4 -2
  424. package/lib/components/TabsTransferPicker.js +1 -1
  425. package/lib/components/Tag.d.ts +11 -0
  426. package/lib/components/Tag.js +5 -5
  427. package/lib/components/Textarea.js +1 -1
  428. package/lib/components/Timeline.js +1 -1
  429. package/lib/components/TimelineItem.js +1 -1
  430. package/lib/components/Tinymce.js +1 -1
  431. package/lib/components/TitleBar.js +1 -1
  432. package/lib/components/Toast.js +1 -1
  433. package/lib/components/Tooltip.js +1 -1
  434. package/lib/components/TooltipWrapper.js +1 -1
  435. package/lib/components/Transfer.js +7 -3
  436. package/lib/components/TransferDropDown.js +1 -1
  437. package/lib/components/TransferPicker.js +1 -1
  438. package/lib/components/TransferSearch.js +1 -1
  439. package/lib/components/Tree.d.ts +7 -45
  440. package/lib/components/Tree.js +77 -37
  441. package/lib/components/TreeSelection.js +1 -1
  442. package/lib/components/UserSelect.js +1 -1
  443. package/lib/components/UserTabSelect.js +1 -1
  444. package/lib/components/VerificationCode.js +1 -1
  445. package/lib/components/VirtualList.js +1 -1
  446. package/lib/components/WithRemoteConfig.js +1 -1
  447. package/lib/components/WithStore.js +1 -1
  448. package/lib/components/calendar/Calendar.js +1 -1
  449. package/lib/components/calendar/CalendarContainer.js +1 -1
  450. package/lib/components/calendar/DaysView.js +7 -6
  451. package/lib/components/calendar/MonthsView.js +1 -1
  452. package/lib/components/calendar/QuartersView.js +1 -1
  453. package/lib/components/calendar/TimeView.js +1 -1
  454. package/lib/components/calendar/YearsView.js +1 -1
  455. package/lib/components/condition-builder/Expression.js +1 -1
  456. package/lib/components/condition-builder/Field.js +1 -1
  457. package/lib/components/condition-builder/Func.js +1 -1
  458. package/lib/components/condition-builder/Group.js +1 -1
  459. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  460. package/lib/components/condition-builder/InputSwitch.js +1 -1
  461. package/lib/components/condition-builder/Item.js +1 -1
  462. package/lib/components/condition-builder/Value.d.ts +2 -0
  463. package/lib/components/condition-builder/Value.js +18 -12
  464. package/lib/components/condition-builder/config.js +1 -1
  465. package/lib/components/condition-builder/index.js +1 -1
  466. package/lib/components/condition-builder/types.d.ts +1 -0
  467. package/lib/components/formula/CodeEditor.js +1 -1
  468. package/lib/components/formula/Editor.js +1 -1
  469. package/lib/components/formula/FuncList.js +1 -1
  470. package/lib/components/formula/Input.js +1 -1
  471. package/lib/components/formula/Picker.js +1 -1
  472. package/lib/components/formula/VariableList.js +1 -1
  473. package/lib/components/formula/plugin.js +1 -1
  474. package/lib/components/icons.js +1 -1
  475. package/lib/components/index.d.ts +3 -1
  476. package/lib/components/json-schema/Array.js +1 -1
  477. package/lib/components/json-schema/Item.js +1 -1
  478. package/lib/components/json-schema/Object.js +1 -1
  479. package/lib/components/json-schema/index.js +1 -1
  480. package/lib/components/menu/MenuContext.js +1 -1
  481. package/lib/components/menu/MenuItem.js +1 -1
  482. package/lib/components/menu/PanelMenu.js +1 -1
  483. package/lib/components/menu/SubMenu.js +1 -1
  484. package/lib/components/menu/index.js +1 -1
  485. package/lib/components/schema-editor/Array.js +1 -1
  486. package/lib/components/schema-editor/Common.js +1 -1
  487. package/lib/components/schema-editor/Item.js +1 -1
  488. package/lib/components/schema-editor/Object.js +1 -1
  489. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  490. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  491. package/lib/components/schema-editor/index.js +1 -1
  492. package/lib/components/table/Cell.js +1 -1
  493. package/lib/components/table/ColGroup.js +1 -1
  494. package/lib/components/table/Head.js +1 -1
  495. package/lib/components/table/HeadCellDropDown.js +1 -1
  496. package/lib/components/table/HeadCellFilter.js +1 -1
  497. package/lib/components/table/HeadCellSelect.js +1 -1
  498. package/lib/components/table/HeadCellSort.js +1 -1
  499. package/lib/components/table/ItemActionsWrapper.js +1 -1
  500. package/lib/components/table/Row.js +1 -1
  501. package/lib/components/table/SummaryRow.js +1 -1
  502. package/lib/components/table/index.js +6 -4
  503. package/lib/components/table/util.js +29 -16
  504. package/lib/components/virtual-list/AutoSizer.js +1 -1
  505. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  506. package/lib/components/virtual-list/constants.js +1 -1
  507. package/lib/components/virtual-list/index.js +1 -1
  508. package/lib/components/withBadge.js +1 -1
  509. package/lib/hooks/use-click-away.js +1 -1
  510. package/lib/hooks/use-on-screen.js +1 -1
  511. package/lib/hooks/use-set-state.js +1 -1
  512. package/lib/hooks/use-sub-form.js +1 -1
  513. package/lib/hooks/use-touch.js +1 -1
  514. package/lib/hooks/use-update-effect.js +1 -1
  515. package/lib/hooks/use-validation-resolver.js +1 -1
  516. package/lib/icons/alert-danger.svg.js +1 -1
  517. package/lib/icons/alert-info.svg.js +1 -1
  518. package/lib/icons/alert-success.svg.js +1 -1
  519. package/lib/icons/alert-warning.svg.js +1 -1
  520. package/lib/icons/arrow-double-left.svg.js +1 -1
  521. package/lib/icons/arrow-double-right.svg.js +1 -1
  522. package/lib/icons/back.svg.js +1 -1
  523. package/lib/icons/calendar.svg.js +1 -1
  524. package/lib/icons/caret.svg.js +1 -1
  525. package/lib/icons/check.svg.js +1 -1
  526. package/lib/icons/clock.svg.js +1 -1
  527. package/lib/icons/close-small.svg.js +1 -1
  528. package/lib/icons/close.svg.js +1 -1
  529. package/lib/icons/cloud-upload.svg.js +1 -1
  530. package/lib/icons/column-filter.svg.js +1 -1
  531. package/lib/icons/columns.svg.js +1 -1
  532. package/lib/icons/compress-alt.svg.js +1 -1
  533. package/lib/icons/copy.svg.js +1 -1
  534. package/lib/icons/date.svg.js +1 -1
  535. package/lib/icons/department.svg.js +1 -1
  536. package/lib/icons/desk-empty.svg.js +1 -1
  537. package/lib/icons/dot.svg.js +1 -1
  538. package/lib/icons/down-arrow-bold.svg.js +1 -1
  539. package/lib/icons/down.svg.js +1 -1
  540. package/lib/icons/download.svg.js +1 -1
  541. package/lib/icons/drag-bar.svg.js +1 -1
  542. package/lib/icons/drag.svg.js +1 -1
  543. package/lib/icons/edit.svg.js +1 -1
  544. package/lib/icons/ellipsis-v.svg.js +1 -1
  545. package/lib/icons/enter.svg.js +1 -1
  546. package/lib/icons/exchange.svg.js +1 -1
  547. package/lib/icons/expand-alt.svg.js +1 -1
  548. package/lib/icons/fail.svg.js +1 -1
  549. package/lib/icons/file.svg.js +1 -1
  550. package/lib/icons/filter.svg.js +1 -1
  551. package/lib/icons/folder.svg.js +1 -1
  552. package/lib/icons/fullscreen.svg.js +1 -1
  553. package/lib/icons/function.svg.js +1 -1
  554. package/lib/icons/home.svg.js +1 -1
  555. package/lib/icons/if.svg.js +1 -1
  556. package/lib/icons/image.svg.js +1 -1
  557. package/lib/icons/info-circle.svg.js +1 -1
  558. package/lib/icons/info.svg.js +1 -1
  559. package/lib/icons/input-clear.svg.js +1 -1
  560. package/lib/icons/invisible.svg.js +1 -1
  561. package/lib/icons/left-arrow.svg.js +1 -1
  562. package/lib/icons/loading-outline.svg.js +1 -1
  563. package/lib/icons/location.svg.js +1 -1
  564. package/lib/icons/menu.svg.js +1 -1
  565. package/lib/icons/minus.svg.js +1 -1
  566. package/lib/icons/move.svg.js +1 -1
  567. package/lib/icons/mute.svg.js +1 -1
  568. package/lib/icons/new-edit.svg.js +1 -1
  569. package/lib/icons/pause.svg.js +1 -1
  570. package/lib/icons/pencil.svg.js +1 -1
  571. package/lib/icons/play.svg.js +1 -1
  572. package/lib/icons/plus-cicle.svg.js +1 -1
  573. package/lib/icons/plus-fine.svg.js +1 -1
  574. package/lib/icons/plus.svg.js +1 -1
  575. package/lib/icons/post.svg.js +1 -1
  576. package/lib/icons/question-mark.svg.js +1 -1
  577. package/lib/icons/question.svg.js +1 -1
  578. package/lib/icons/redo.svg.js +1 -1
  579. package/lib/icons/refresh.svg.js +1 -1
  580. package/lib/icons/reload.svg.js +1 -1
  581. package/lib/icons/remove.svg.js +1 -1
  582. package/lib/icons/retry.svg.js +1 -1
  583. package/lib/icons/right-arrow-bold.svg.js +1 -1
  584. package/lib/icons/right-arrow.svg.js +1 -1
  585. package/lib/icons/right-double-arrow.svg.js +1 -1
  586. package/lib/icons/role.svg.js +1 -1
  587. package/lib/icons/rotate-left.svg.js +1 -1
  588. package/lib/icons/rotate-right.svg.js +1 -1
  589. package/lib/icons/rotate-screen.svg.js +1 -1
  590. package/lib/icons/scale-origin.svg.js +1 -1
  591. package/lib/icons/schedule.svg.js +1 -1
  592. package/lib/icons/search.svg.js +1 -1
  593. package/lib/icons/setting.svg.js +1 -1
  594. package/lib/icons/slider-handle-icon.svg.js +1 -1
  595. package/lib/icons/sort-asc.svg.js +1 -1
  596. package/lib/icons/sort-default.svg.js +1 -1
  597. package/lib/icons/sort-desc.svg.js +1 -1
  598. package/lib/icons/star.svg.js +1 -1
  599. package/lib/icons/status-close.svg.js +1 -1
  600. package/lib/icons/steps-finsh.svg.js +1 -1
  601. package/lib/icons/sub-plus.svg.js +1 -1
  602. package/lib/icons/success.svg.js +1 -1
  603. package/lib/icons/transparent.svg.js +1 -1
  604. package/lib/icons/trash.svg.js +1 -1
  605. package/lib/icons/tree-down.svg.js +1 -1
  606. package/lib/icons/undo-normal.svg.js +1 -1
  607. package/lib/icons/undo.svg.js +1 -1
  608. package/lib/icons/unfullscreen.svg.js +1 -1
  609. package/lib/icons/upload.svg.js +1 -1
  610. package/lib/icons/user-remove.svg.js +1 -1
  611. package/lib/icons/view.svg.js +1 -1
  612. package/lib/icons/volume.svg.js +1 -1
  613. package/lib/icons/warning-mark.svg.js +1 -1
  614. package/lib/icons/warning.svg.js +1 -1
  615. package/lib/icons/window-restore.svg.js +1 -1
  616. package/lib/icons/zoom-in.svg.js +1 -1
  617. package/lib/icons/zoom-out.svg.js +1 -1
  618. package/lib/index.js +5 -1
  619. package/lib/locale/de-DE.js +3 -1
  620. package/lib/locale/en-US.js +3 -1
  621. package/lib/locale/zh-CN.js +3 -1
  622. package/lib/scss/helper.scss.js +1 -1
  623. package/lib/scss/themes/ang.scss.js +1 -1
  624. package/lib/scss/themes/antd.scss.js +1 -1
  625. package/lib/scss/themes/cxd.scss.js +1 -1
  626. package/lib/scss/themes/dark.scss.js +1 -1
  627. package/lib/scss/themes/default.scss.js +1 -1
  628. package/lib/themes/ang.css +307 -28
  629. package/lib/themes/ang.js +1 -1
  630. package/lib/themes/antd.css +307 -28
  631. package/lib/themes/antd.js +1 -1
  632. package/lib/themes/cxd.css +307 -28
  633. package/lib/themes/cxd.js +1 -1
  634. package/lib/themes/dark.css +307 -28
  635. package/lib/themes/dark.js +1 -1
  636. package/lib/themes/default.css +307 -28
  637. package/lib/utils/vectorComputed.js +1 -1
  638. package/lib/withRemoteConfig.js +1 -1
  639. package/lib/withStore.js +1 -1
  640. package/package.json +8 -4
  641. package/scss/_components.scss +4 -7
  642. package/scss/_mixins.scss +1 -0
  643. package/scss/_properties.scss +1 -1
  644. package/scss/components/_auto-folder.scss +40 -0
  645. package/scss/components/_cascader.scss +22 -2
  646. package/scss/components/_condition-builder.scss +1 -0
  647. package/scss/components/_crud.scss +32 -0
  648. package/scss/components/_modal.scss +13 -0
  649. package/scss/components/_page.scss +0 -1
  650. package/scss/components/_popoverable.scss +1 -0
  651. package/scss/components/_result-box.scss +15 -3
  652. package/scss/components/_table.scss +41 -0
  653. package/scss/components/_tooltip.scss +1 -1
  654. package/scss/components/form/_combo.scss +13 -0
  655. package/scss/components/form/_excel.scss +110 -4
  656. package/scss/components/form/_icon-picker.scss +1 -0
  657. package/scss/components/form/_input-group.scss +23 -2
  658. package/scss/components/form/_nested-select.scss +10 -0
  659. package/scss/components/form/_picker.scss +33 -0
  660. package/scss/components/form/_select.scss +17 -4
  661. package/scss/components/form/_selection.scss +2 -0
  662. package/scss/components/form/_tree.scss +8 -9
  663. package/scss/themes/_common.scss +1 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -70,13 +70,17 @@ var AssociatedSelection = /** @class */ (function (_super) {
70
70
  var selectdOption = Selection.BaseSelection.resolveSelected(this.state.leftValue, options, function (option) { return option.ref; });
71
71
  var __ = this.props.translate;
72
72
  return (_J$X_("div", { className: cx('AssociatedSelection', className) },
73
- _J$X_("div", { className: cx('AssociatedSelection-left') }, leftMode === 'tree' ? (_J$X_(Tree["default"], { multiple: false, disabled: disabled, value: this.state.leftValue, options: leftOptions, onChange: this.handleLeftSelect, onDeferLoad: this.handleLeftDeferLoad, virtualThreshold: virtualThreshold, itemHeight: itemHeight, loadingConfig: loadingConfig, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('left-selection') })) : (_J$X_(GroupedSelection["default"], { option2value: this.leftOption2Value, options: leftOptions, value: this.state.leftValue, disabled: disabled, onChange: this.handleLeftSelect, multiple: false, clearable: false, virtualThreshold: virtualThreshold, itemHeight: itemHeight, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('left-selection') }))),
73
+ _J$X_("div", { className: cx('AssociatedSelection-left') }, leftMode === 'tree' ? (_J$X_(Tree["default"], { multiple: false, disabled: disabled, value: this.state.leftValue, options: leftOptions, onChange: this.handleLeftSelect, onDeferLoad: this.handleLeftDeferLoad, virtualThreshold: virtualThreshold,
74
+ // itemHeight={itemHeight}
75
+ loadingConfig: loadingConfig, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('left-selection') })) : (_J$X_(GroupedSelection["default"], { option2value: this.leftOption2Value, options: leftOptions, value: this.state.leftValue, disabled: disabled, onChange: this.handleLeftSelect, multiple: false, clearable: false, virtualThreshold: virtualThreshold, itemHeight: itemHeight, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('left-selection') }))),
74
76
  _J$X_("div", { className: cx('AssociatedSelection-right') }, this.state.leftValue ? (selectdOption ? (selectdOption[deferField] && !selectdOption.loaded ? (_J$X_("div", { className: cx('AssociatedSelection-box') },
75
77
  _J$X_("div", { className: cx('AssociatedSelection-reload', selectdOption.loading ? 'is-spin' : 'is-clickable'), onClick: selectdOption.loading
76
78
  ? undefined
77
79
  : this.handleRetry.bind(this, selectdOption) },
78
80
  _J$X_(icons.Icon, { icon: "reload", className: "icon" })),
79
- selectdOption.loading ? (_J$X_("p", null, __('loading'))) : (_J$X_("p", null, __('Transfer.refreshIcon'))))) : rightMode === 'table' ? (_J$X_(TableSelection["default"], { columns: columns, value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, option2value: option2value, cellRender: cellRender, multiple: multiple, virtualThreshold: virtualThreshold, itemHeight: itemHeight, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') })) : rightMode === 'tree' ? (_J$X_(Tree["default"], { value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, multiple: multiple, labelField: labelField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') })) : rightMode === 'chained' ? (_J$X_(ChainedSelection["default"], { value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, option2value: option2value, multiple: multiple, itemRender: itemRender, labelField: labelField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') })) : (_J$X_(GroupedSelection["default"], { value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, option2value: option2value, multiple: multiple, itemRender: itemRender, labelField: labelField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') }))) : (_J$X_("div", { className: cx('AssociatedSelection-box') }, __('Transfer.configError')))) : (_J$X_("div", { className: cx('AssociatedSelection-box') }, __('Transfer.selectFromLeft'))))));
81
+ selectdOption.loading ? (_J$X_("p", null, __('loading'))) : (_J$X_("p", null, __('Transfer.refreshIcon'))))) : rightMode === 'table' ? (_J$X_(TableSelection["default"], { columns: columns, value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, option2value: option2value, cellRender: cellRender, multiple: multiple, virtualThreshold: virtualThreshold, itemHeight: itemHeight, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') })) : rightMode === 'tree' ? (_J$X_(Tree["default"], { value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, multiple: multiple, labelField: labelField, virtualThreshold: virtualThreshold,
82
+ // itemHeight={itemHeight}
83
+ loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') })) : rightMode === 'chained' ? (_J$X_(ChainedSelection["default"], { value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, option2value: option2value, multiple: multiple, itemRender: itemRender, labelField: labelField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, loadingConfig: loadingConfig, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') })) : (_J$X_(GroupedSelection["default"], { value: value, disabled: disabled, options: selectdOption.children || [], onChange: onChange, option2value: option2value, multiple: multiple, itemRender: itemRender, labelField: labelField, virtualThreshold: virtualThreshold, itemHeight: itemHeight, checkAllLabel: checkAllLabel, checkAll: checkAll, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('right-selection') }))) : (_J$X_("div", { className: cx('AssociatedSelection-box') }, __('Transfer.configError')))) : (_J$X_("div", { className: cx('AssociatedSelection-box') }, __('Transfer.selectFromLeft'))))));
80
84
  };
81
85
  tslib.__decorate([
82
86
  amisCore.autobind,
@@ -0,0 +1,87 @@
1
+ /**
2
+ * AutoFoldedList Component
3
+ *
4
+ * A component that automatically folds list items when there are too many to display.
5
+ * When clicked, it expands to show all items.
6
+ *
7
+ * @component
8
+ */
9
+ /// <reference types="hoist-non-react-statics" />
10
+ import React from 'react';
11
+ import { ThemeProps } from 'amis-core';
12
+ import { type TooltipObject } from './TooltipWrapper';
13
+ export interface AutoFoldedListProps extends ThemeProps {
14
+ enabled?: boolean;
15
+ /**
16
+ * Maximum number of items to be visible
17
+ */
18
+ maxVisibleCount?: number;
19
+ /**
20
+ * Custom class name for the tooltip
21
+ */
22
+ tooltipClassName?: string;
23
+ /**
24
+ * Configuration options for the tooltip
25
+ */
26
+ tooltipOptions?: TooltipObject;
27
+ /**
28
+ * Array of items to be displayed in the list
29
+ */
30
+ items: Array<any>;
31
+ /**
32
+ * Function to render each list item
33
+ * @param item - The item to render
34
+ * @param index - The index of the item
35
+ * @param folded - Whether the item is in folded state
36
+ */
37
+ renderItem: (item: any, index: number, folded: boolean) => React.ReactNode;
38
+ /**
39
+ * Function to render the summary text for remaining items
40
+ * @param restItems - Array of remaining items
41
+ */
42
+ renderMoreSummary?: (restItems: any[]) => React.ReactNode;
43
+ /**
44
+ * Function to render the tooltip content
45
+ * @param restItems - Array of remaining items
46
+ */
47
+ renderTooltipContent?: (restItems: any[]) => React.ReactNode;
48
+ /**
49
+ * Container element for the popover
50
+ */
51
+ popOverContainer?: any;
52
+ }
53
+ export declare const AutoFoldedList: React.FC<AutoFoldedListProps>;
54
+ declare const _default: {
55
+ new (props: Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
56
+ ref: any;
57
+ childRef(ref: any): void;
58
+ getWrappedInstance(): any;
59
+ render(): React.JSX.Element;
60
+ context: unknown;
61
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
62
+ forceUpdate(callback?: (() => void) | undefined): void;
63
+ readonly props: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
64
+ state: Readonly<{}>;
65
+ refs: {
66
+ [key: string]: React.ReactInstance;
67
+ };
68
+ componentDidMount?(): void;
69
+ shouldComponentUpdate?(nextProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
70
+ componentWillUnmount?(): void;
71
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
72
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
73
+ componentDidUpdate?(prevProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
74
+ componentWillMount?(): void;
75
+ UNSAFE_componentWillMount?(): void;
76
+ componentWillReceiveProps?(nextProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
77
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
78
+ componentWillUpdate?(nextProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
79
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<AutoFoldedListProps, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
80
+ };
81
+ displayName: string;
82
+ contextType: React.Context<string>;
83
+ ComposedComponent: React.ComponentType<React.FC<AutoFoldedListProps>>;
84
+ } & import("hoist-non-react-statics").NonReactStatics<React.FC<AutoFoldedListProps>, {}> & {
85
+ ComposedComponent: React.FC<AutoFoldedListProps>;
86
+ };
87
+ export default _default;
@@ -0,0 +1,128 @@
1
+ /**
2
+ * amis-ui v6.13.0-beta.21
3
+ * Copyright 2018-2025 fex
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ var tslib = require('tslib');
11
+ var React = require('react');
12
+ var amisCore = require('amis-core');
13
+ var TooltipWrapper = require('./TooltipWrapper.js');
14
+
15
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
+
17
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
18
+
19
+ var __react_jsx__ = require('react');
20
+ var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
21
+ (__react_jsx__["default"] || __react_jsx__).Fragment;
22
+ var AutoFoldedList = function (props) {
23
+ var items = props.items, renderItem = props.renderItem, renderMoreSummary = props.renderMoreSummary, renderTooltipContent = props.renderTooltipContent, _a = props.enabled, enabled = _a === void 0 ? true : _a, cx = props.classnames, popOverContainer = props.popOverContainer, tooltipClassName = props.tooltipClassName, tooltipOptions = props.tooltipOptions, maxVisibleCount = props.maxVisibleCount;
24
+ // State to track number of visible items
25
+ var _b = tslib.__read(React.useState(0), 2), visibleCount = _b[0], setVisibleCount = _b[1];
26
+ // Refs for container and "more" elements
27
+ var moreRef = React.useRef(null);
28
+ var _c = tslib.__read(React__default["default"].useMemo(function () {
29
+ return [
30
+ visibleCount && enabled ? items.slice(0, visibleCount) : items,
31
+ visibleCount && enabled ? items.slice(visibleCount) : []
32
+ ];
33
+ }, [items, visibleCount, enabled]), 2), visibleItems = _c[0], restItems = _c[1];
34
+ /**
35
+ * Renders a single list item with proper key
36
+ */
37
+ var itemRender = React__default["default"].useCallback(function (item, index, folded) {
38
+ var dom = renderItem(item, index, folded);
39
+ if (React__default["default"].isValidElement(dom)) {
40
+ return React__default["default"].cloneElement(dom, {
41
+ key: index
42
+ });
43
+ }
44
+ return _J$X_("div", { key: index }, dom);
45
+ }, [renderItem]);
46
+ /**
47
+ * Effect to calculate and update visible items count based on container width
48
+ */
49
+ React.useEffect(function () {
50
+ if (!enabled) {
51
+ return;
52
+ }
53
+ var more = moreRef.current;
54
+ var container = more.parentElement;
55
+ var moreWidth = Math.max(more.offsetWidth, 30);
56
+ var gap = 10;
57
+ var lastExtendAt = 0;
58
+ var calculateVisibleCount = function () {
59
+ var rect = container.getBoundingClientRect();
60
+ if (!rect.width) {
61
+ return;
62
+ }
63
+ var list = Array.from(container.children).filter(function (item) { return !item.hasAttribute('data-folder-ignore'); });
64
+ var rightElementsWidth = 0;
65
+ var rightElement = more.nextElementSibling;
66
+ while (rightElement) {
67
+ rightElementsWidth += rightElement.offsetWidth;
68
+ rightElement = rightElement.nextElementSibling;
69
+ }
70
+ var last = more.previousElementSibling;
71
+ while (last) {
72
+ if (last.getBoundingClientRect().right +
73
+ moreWidth +
74
+ gap +
75
+ rightElementsWidth <
76
+ rect.right) {
77
+ break;
78
+ }
79
+ last = last.previousElementSibling;
80
+ }
81
+ if (last &&
82
+ last === more.previousElementSibling &&
83
+ Date.now() - lastExtendAt > 200 // Prevent flickering
84
+ ) {
85
+ // Expand to show more items
86
+ var width = last.offsetWidth;
87
+ lastExtendAt = Date.now();
88
+ var extend = Math.max(Math.floor((rect.right -
89
+ last.getBoundingClientRect().right -
90
+ moreWidth -
91
+ gap) /
92
+ width), 0);
93
+ setVisibleCount(Math.min(list.indexOf(last) + 1 + extend, maxVisibleCount !== null && maxVisibleCount !== void 0 ? maxVisibleCount : items.length));
94
+ }
95
+ else if (last) {
96
+ // Collapse to show fewer items
97
+ setVisibleCount(list.indexOf(last) + 1);
98
+ }
99
+ };
100
+ calculateVisibleCount();
101
+ return amisCore.resizeSensor(container, calculateVisibleCount, false, 'both', true);
102
+ }, [items, maxVisibleCount, enabled]);
103
+ React__default["default"].useLayoutEffect(function () {
104
+ var _a;
105
+ if (!enabled) {
106
+ return;
107
+ }
108
+ (_a = moreRef.current.parentElement) === null || _a === void 0 ? void 0 : _a.classList.add(cx('AutoFoldedList'));
109
+ return function () {
110
+ var _a;
111
+ (_a = moreRef.current.parentElement) === null || _a === void 0 ? void 0 : _a.classList.remove(cx('AutoFoldedList'));
112
+ };
113
+ }, [enabled]);
114
+ return (_J$X_(React__default["default"].Fragment, null,
115
+ visibleItems.map(function (item, index) { return itemRender(item, index, false); }),
116
+ _J$X_("div", { className: cx('AutoFoldedList-more'), ref: moreRef }, restItems.length > 0 ? (_J$X_(TooltipWrapper["default"], { container: popOverContainer, tooltip: tslib.__assign(tslib.__assign({ placement: 'auto', trigger: 'hover', showArrow: false }, tooltipOptions), { children: function () { return (_J$X_("div", { className: cx('AutoFoldedList-more-tooltip', tooltipClassName) }, renderTooltipContent
117
+ ? renderTooltipContent(restItems)
118
+ : restItems.map(function (item, index) {
119
+ return itemRender(item, index + visibleCount, true);
120
+ }))); } }) }, renderMoreSummary ? (renderMoreSummary(restItems)) : (_J$X_("span", null,
121
+ "+ ",
122
+ restItems.length,
123
+ " ...")))) : null)));
124
+ };
125
+ var AutoFoldedList$1 = amisCore.themeable(AutoFoldedList);
126
+
127
+ exports.AutoFoldedList = AutoFoldedList;
128
+ exports["default"] = AutoFoldedList$1;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -602,11 +602,12 @@ var DateRangePicker = /** @class */ (function (_super) {
602
602
  };
603
603
  DateRangePicker.prototype.close = function (isConfirm) {
604
604
  if (isConfirm === void 0) { isConfirm = false; }
605
+ var newState = {};
605
606
  if (!isConfirm) {
606
607
  /** 未点击确认关闭时,将日期恢复至未做任何选择的状态 */
607
608
  var _a = this.props, value = _a.value, format = _a.format, valueFormat = _a.valueFormat, joinValues = _a.joinValues, delimiter = _a.delimiter, inputFormat = _a.inputFormat, displayFormat = _a.displayFormat, data = _a.data, utc = _a.utc;
608
609
  var _b = DateRangePicker.unFormatValue(value, valueFormat || format, joinValues, delimiter, data, utc), startDate = _b.startDate, endDate = _b.endDate;
609
- this.setState({
610
+ Object.assign(newState, {
610
611
  startDate: startDate,
611
612
  endDate: endDate,
612
613
  oldStartDate: startDate,
@@ -620,16 +621,12 @@ var DateRangePicker = /** @class */ (function (_super) {
620
621
  });
621
622
  }
622
623
  else {
623
- this.setState({
624
+ Object.assign(newState, {
624
625
  oldStartDate: this.state.startDate,
625
626
  oldEndDate: this.state.endDate
626
627
  });
627
628
  }
628
- this.setState({
629
- isOpened: false,
630
- editState: undefined,
631
- endDateOpenedFirst: false
632
- }, this.blur);
629
+ this.setState(tslib.__assign(tslib.__assign({}, newState), { isOpened: false, editState: undefined, endDateOpenedFirst: false }), this.blur);
633
630
  };
634
631
  DateRangePicker.prototype.handleClick = function () {
635
632
  this.state.isOpened ? this.close() : this.open();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.2
2
+ * amis-ui v6.13.0-beta.21
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5