amis-ui 6.13.0-beta.9 → 6.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (736) 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.d.ts +10 -10
  19. package/esm/components/Button.js +1 -1
  20. package/esm/components/CalendarMobile.js +1 -1
  21. package/esm/components/Card.js +1 -1
  22. package/esm/components/Cascader.js +1 -1
  23. package/esm/components/ChainedDropdownSelection.js +1 -1
  24. package/esm/components/ChainedSelection.js +1 -1
  25. package/esm/components/Checkbox.js +1 -1
  26. package/esm/components/CityArea.js +1 -1
  27. package/esm/components/CityDB.js +1 -1
  28. package/esm/components/CodeMirror.js +1 -1
  29. package/esm/components/Collapse.js +1 -1
  30. package/esm/components/CollapseGroup.js +1 -1
  31. package/esm/components/ColorPicker.js +1 -1
  32. package/esm/components/Combo.js +1 -1
  33. package/esm/components/ConditionBuilder.js +1 -1
  34. package/esm/components/ConfirmBox.js +1 -1
  35. package/esm/components/ContextMenu.js +7 -2
  36. package/esm/components/DatePicker.d.ts +3 -3
  37. package/esm/components/DatePicker.js +1 -1
  38. package/esm/components/DateRangePicker.js +6 -9
  39. package/esm/components/DiffEditor.js +1 -1
  40. package/esm/components/DndContainer.js +1 -1
  41. package/esm/components/Drawer.d.ts +11 -10
  42. package/esm/components/Drawer.js +5 -2
  43. package/esm/components/DropDownSelection.js +1 -1
  44. package/esm/components/DropdownContextMenus.js +1 -1
  45. package/esm/components/Editor.js +1 -1
  46. package/esm/components/Form.js +1 -1
  47. package/esm/components/FormField.js +1 -1
  48. package/esm/components/FormulaPicker.js +1 -1
  49. package/esm/components/GaodeMapPicker.js +1 -1
  50. package/esm/components/GridNav.js +1 -1
  51. package/esm/components/GridNavItem.js +1 -1
  52. package/esm/components/GroupedSelection.js +1 -1
  53. package/esm/components/HeadCellDropDown.js +1 -1
  54. package/esm/components/HorizontalScroll.js +1 -1
  55. package/esm/components/Html.js +1 -1
  56. package/esm/components/Icon.js +1 -1
  57. package/esm/components/ImageGallery.js +1 -1
  58. package/esm/components/Input.js +1 -1
  59. package/esm/components/InputBox.d.ts +10 -10
  60. package/esm/components/InputBox.js +1 -1
  61. package/esm/components/InputBoxWithSuggestion.js +1 -1
  62. package/esm/components/InputJSONSchema.js +1 -1
  63. package/esm/components/InputTable.js +1 -1
  64. package/esm/components/JSONSchemaEditor.js +1 -1
  65. package/esm/components/Layout.js +1 -1
  66. package/esm/components/Link.js +1 -1
  67. package/esm/components/ListGroup.d.ts +10 -10
  68. package/esm/components/ListGroup.js +1 -1
  69. package/esm/components/ListMenu.js +1 -1
  70. package/esm/components/LocationPicker.js +1 -1
  71. package/esm/components/Markdown.js +1 -1
  72. package/esm/components/Menu.js +1 -1
  73. package/esm/components/MixedInput.d.ts +55 -0
  74. package/esm/components/MixedInput.js +88 -0
  75. package/esm/components/MobileDevTool.js +1 -1
  76. package/esm/components/Modal.js +2 -2
  77. package/esm/components/ModalManager.js +1 -1
  78. package/esm/components/MultilineText.js +1 -1
  79. package/esm/components/NumberInput.js +1 -1
  80. package/esm/components/OverflowTpl.js +1 -1
  81. package/esm/components/Pagination.js +12 -10
  82. package/esm/components/PdfViewer.js +1 -1
  83. package/esm/components/Picker.js +1 -1
  84. package/esm/components/PickerColumn.js +1 -1
  85. package/esm/components/PickerContainer.js +1 -1
  86. package/esm/components/PopOverContainer.js +1 -1
  87. package/esm/components/PopUp.js +1 -1
  88. package/esm/components/Progress.js +1 -1
  89. package/esm/components/PullRefresh.js +1 -1
  90. package/esm/components/Radios.js +9 -2
  91. package/esm/components/Range.js +1 -1
  92. package/esm/components/Rating.js +1 -1
  93. package/esm/components/ResultBox.d.ts +41 -41
  94. package/esm/components/ResultBox.js +14 -34
  95. package/esm/components/ResultList.js +1 -1
  96. package/esm/components/ResultTableList.js +1 -1
  97. package/esm/components/ResultTreeList.js +5 -3
  98. package/esm/components/RichText.js +1 -1
  99. package/esm/components/SearchBox.js +1 -1
  100. package/esm/components/Select.js +37 -65
  101. package/esm/components/SelectMobile.js +1 -1
  102. package/esm/components/Selection.js +1 -1
  103. package/esm/components/Shape.js +1 -1
  104. package/esm/components/Signature.js +3 -1
  105. package/esm/components/Slider.js +1 -1
  106. package/esm/components/SparkLine.js +1 -1
  107. package/esm/components/Spinner.js +1 -1
  108. package/esm/components/Steps.js +1 -1
  109. package/esm/components/Switch.js +1 -1
  110. package/esm/components/Tab.js +1 -1
  111. package/esm/components/Table.js +1 -1
  112. package/esm/components/TableSelection.js +1 -1
  113. package/esm/components/Tabs.js +1 -1
  114. package/esm/components/TabsTransfer.js +4 -2
  115. package/esm/components/TabsTransferPicker.js +1 -1
  116. package/esm/components/Tag.d.ts +11 -0
  117. package/esm/components/Tag.js +5 -5
  118. package/esm/components/Textarea.js +1 -1
  119. package/esm/components/Timeline.js +1 -1
  120. package/esm/components/TimelineItem.js +1 -1
  121. package/esm/components/Tinymce.js +1 -1
  122. package/esm/components/TitleBar.js +1 -1
  123. package/esm/components/Toast.js +1 -1
  124. package/esm/components/Tooltip.js +1 -1
  125. package/esm/components/TooltipWrapper.js +1 -1
  126. package/esm/components/Transfer.js +7 -3
  127. package/esm/components/TransferDropDown.js +1 -1
  128. package/esm/components/TransferPicker.js +1 -1
  129. package/esm/components/TransferSearch.js +1 -1
  130. package/esm/components/Tree.d.ts +7 -45
  131. package/esm/components/Tree.js +79 -38
  132. package/esm/components/TreeSelection.js +1 -1
  133. package/esm/components/UserSelect.js +1 -1
  134. package/esm/components/UserTabSelect.js +1 -1
  135. package/esm/components/VerificationCode.js +1 -1
  136. package/esm/components/VirtualList.js +1 -1
  137. package/esm/components/WithRemoteConfig.js +1 -1
  138. package/esm/components/WithStore.js +1 -1
  139. package/esm/components/calendar/Calendar.js +1 -1
  140. package/esm/components/calendar/CalendarContainer.js +1 -1
  141. package/esm/components/calendar/DaysView.js +7 -6
  142. package/esm/components/calendar/MonthsView.js +1 -1
  143. package/esm/components/calendar/QuartersView.js +1 -1
  144. package/esm/components/calendar/TimeView.js +1 -1
  145. package/esm/components/calendar/YearsView.js +1 -1
  146. package/esm/components/condition-builder/Expression.js +3 -3
  147. package/esm/components/condition-builder/Field.js +1 -1
  148. package/esm/components/condition-builder/Func.js +1 -1
  149. package/esm/components/condition-builder/Group.js +1 -1
  150. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  151. package/esm/components/condition-builder/InputSwitch.js +1 -1
  152. package/esm/components/condition-builder/Item.js +1 -1
  153. package/esm/components/condition-builder/Value.d.ts +2 -0
  154. package/esm/components/condition-builder/Value.js +18 -12
  155. package/esm/components/condition-builder/config.js +1 -1
  156. package/esm/components/condition-builder/index.js +1 -1
  157. package/esm/components/condition-builder/types.d.ts +1 -0
  158. package/esm/components/formula/CodeEditor.js +1 -1
  159. package/esm/components/formula/Editor.js +21 -5
  160. package/esm/components/formula/FuncList.js +2 -1
  161. package/esm/components/formula/Input.js +1 -1
  162. package/esm/components/formula/Picker.js +1 -1
  163. package/esm/components/formula/VariableList.js +2 -1
  164. package/esm/components/formula/plugin.js +1 -1
  165. package/esm/components/icons.js +3 -1
  166. package/esm/components/index.d.ts +3 -1
  167. package/esm/components/json-schema/Array.js +1 -1
  168. package/esm/components/json-schema/Item.js +1 -1
  169. package/esm/components/json-schema/Object.js +1 -1
  170. package/esm/components/json-schema/index.js +1 -1
  171. package/esm/components/menu/MenuContext.js +1 -1
  172. package/esm/components/menu/MenuItem.js +1 -1
  173. package/esm/components/menu/PanelMenu.js +1 -1
  174. package/esm/components/menu/SubMenu.js +1 -1
  175. package/esm/components/menu/index.d.ts +10 -10
  176. package/esm/components/menu/index.js +1 -1
  177. package/esm/components/schema-editor/Array.js +1 -1
  178. package/esm/components/schema-editor/Common.js +1 -1
  179. package/esm/components/schema-editor/Item.js +1 -1
  180. package/esm/components/schema-editor/Object.js +1 -1
  181. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  182. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  183. package/esm/components/schema-editor/index.js +1 -1
  184. package/esm/components/table/Cell.js +1 -1
  185. package/esm/components/table/ColGroup.js +1 -1
  186. package/esm/components/table/Head.js +1 -1
  187. package/esm/components/table/HeadCellDropDown.js +1 -1
  188. package/esm/components/table/HeadCellFilter.js +1 -1
  189. package/esm/components/table/HeadCellSelect.js +1 -1
  190. package/esm/components/table/HeadCellSort.js +1 -1
  191. package/esm/components/table/ItemActionsWrapper.js +1 -1
  192. package/esm/components/table/Row.js +1 -1
  193. package/esm/components/table/SummaryRow.js +1 -1
  194. package/esm/components/table/index.js +5 -3
  195. package/esm/components/table/util.js +29 -16
  196. package/esm/components/virtual-list/AutoSizer.js +1 -1
  197. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  198. package/esm/components/virtual-list/constants.js +1 -1
  199. package/esm/components/virtual-list/index.js +1 -1
  200. package/esm/components/withBadge.js +1 -1
  201. package/esm/hooks/use-click-away.js +1 -1
  202. package/esm/hooks/use-on-screen.js +1 -1
  203. package/esm/hooks/use-set-state.js +1 -1
  204. package/esm/hooks/use-sub-form.js +1 -1
  205. package/esm/hooks/use-touch.js +1 -1
  206. package/esm/hooks/use-update-effect.js +1 -1
  207. package/esm/hooks/use-validation-resolver.js +1 -1
  208. package/esm/icons/alert-danger.svg.js +1 -1
  209. package/esm/icons/alert-info.svg.js +1 -1
  210. package/esm/icons/alert-success.svg.js +1 -1
  211. package/esm/icons/alert-warning.svg.js +1 -1
  212. package/esm/icons/arrow-double-left.svg.js +1 -1
  213. package/esm/icons/arrow-double-right.svg.js +1 -1
  214. package/esm/icons/back.svg.js +1 -1
  215. package/esm/icons/calendar.svg.js +1 -1
  216. package/esm/icons/caret.svg.js +1 -1
  217. package/esm/icons/check.svg.js +1 -1
  218. package/esm/icons/clock.svg.js +1 -1
  219. package/esm/icons/close-small.svg.js +1 -1
  220. package/esm/icons/close.svg.js +1 -1
  221. package/esm/icons/cloud-upload.svg.js +1 -1
  222. package/esm/icons/column-filter.svg.js +1 -1
  223. package/esm/icons/columns.svg.js +1 -1
  224. package/esm/icons/compress-alt.svg.js +1 -1
  225. package/esm/icons/copy.svg.js +1 -1
  226. package/esm/icons/date.svg.js +1 -1
  227. package/esm/icons/department.svg.js +1 -1
  228. package/esm/icons/desk-empty.svg.js +1 -1
  229. package/esm/icons/dot.svg.js +1 -1
  230. package/esm/icons/down-arrow-bold.svg.js +1 -1
  231. package/esm/icons/down.svg.js +1 -1
  232. package/esm/icons/download.svg.js +1 -1
  233. package/esm/icons/drag-bar.svg.js +1 -1
  234. package/esm/icons/drag.svg.js +1 -1
  235. package/esm/icons/edit.svg.js +1 -1
  236. package/esm/icons/ellipsis-v.svg.js +1 -1
  237. package/esm/icons/enter.svg.js +1 -1
  238. package/esm/icons/exchange.svg.js +1 -1
  239. package/esm/icons/expand-alt.svg.js +1 -1
  240. package/esm/icons/fail.svg.js +1 -1
  241. package/esm/icons/file.svg.js +1 -1
  242. package/esm/icons/filter.svg.js +1 -1
  243. package/esm/icons/folder.svg.js +1 -1
  244. package/esm/icons/fullscreen.svg.js +1 -1
  245. package/esm/icons/function.svg.js +1 -1
  246. package/esm/icons/home.svg.js +1 -1
  247. package/esm/icons/if.svg.js +1 -1
  248. package/esm/icons/image.svg.js +1 -1
  249. package/esm/icons/info-circle.svg.js +1 -1
  250. package/esm/icons/info.svg.js +1 -1
  251. package/esm/icons/input-clear.svg.js +1 -1
  252. package/esm/icons/invisible.svg.js +1 -1
  253. package/esm/icons/left-arrow.svg.js +1 -1
  254. package/esm/icons/loading-outline.svg.js +1 -1
  255. package/esm/icons/location.svg.js +1 -1
  256. package/esm/icons/menu.svg.js +1 -1
  257. package/esm/icons/minus.svg.js +1 -1
  258. package/esm/icons/move.svg.js +1 -1
  259. package/esm/icons/mute.svg.js +1 -1
  260. package/esm/icons/new-edit.svg.js +1 -1
  261. package/esm/icons/pause.svg.js +1 -1
  262. package/esm/icons/pencil.svg.js +1 -1
  263. package/esm/icons/play.svg.js +1 -1
  264. package/esm/icons/plus-cicle.svg.js +1 -1
  265. package/esm/icons/plus-fine.svg.js +1 -1
  266. package/esm/icons/plus.svg.js +1 -1
  267. package/esm/icons/post.svg.js +1 -1
  268. package/esm/icons/question-mark.svg.js +1 -1
  269. package/esm/icons/question.svg.js +1 -1
  270. package/esm/icons/question2.svg.js +34 -0
  271. package/esm/icons/redo.svg.js +1 -1
  272. package/esm/icons/refresh.svg.js +1 -1
  273. package/esm/icons/reload.svg.js +1 -1
  274. package/esm/icons/remove.svg.js +1 -1
  275. package/esm/icons/retry.svg.js +1 -1
  276. package/esm/icons/right-arrow-bold.svg.js +1 -1
  277. package/esm/icons/right-arrow.svg.js +1 -1
  278. package/esm/icons/right-double-arrow.svg.js +1 -1
  279. package/esm/icons/role.svg.js +1 -1
  280. package/esm/icons/rotate-left.svg.js +1 -1
  281. package/esm/icons/rotate-right.svg.js +1 -1
  282. package/esm/icons/rotate-screen.svg.js +1 -1
  283. package/esm/icons/scale-origin.svg.js +1 -1
  284. package/esm/icons/schedule.svg.js +1 -1
  285. package/esm/icons/search.svg.js +1 -1
  286. package/esm/icons/setting.svg.js +1 -1
  287. package/esm/icons/slider-handle-icon.svg.js +1 -1
  288. package/esm/icons/sort-asc.svg.js +1 -1
  289. package/esm/icons/sort-default.svg.js +1 -1
  290. package/esm/icons/sort-desc.svg.js +1 -1
  291. package/esm/icons/star.svg.js +1 -1
  292. package/esm/icons/status-close.svg.js +1 -1
  293. package/esm/icons/steps-finsh.svg.js +1 -1
  294. package/esm/icons/sub-plus.svg.js +1 -1
  295. package/esm/icons/success.svg.js +1 -1
  296. package/esm/icons/transparent.svg.js +1 -1
  297. package/esm/icons/trash.svg.js +1 -1
  298. package/esm/icons/tree-down.svg.js +1 -1
  299. package/esm/icons/undo-normal.svg.js +1 -1
  300. package/esm/icons/undo.svg.js +1 -1
  301. package/esm/icons/unfullscreen.svg.js +1 -1
  302. package/esm/icons/upload.svg.js +1 -1
  303. package/esm/icons/user-remove.svg.js +1 -1
  304. package/esm/icons/view.svg.js +1 -1
  305. package/esm/icons/volume.svg.js +1 -1
  306. package/esm/icons/warning-mark.svg.js +1 -1
  307. package/esm/icons/warning.svg.js +1 -1
  308. package/esm/icons/window-restore.svg.js +1 -1
  309. package/esm/icons/zoom-in.svg.js +1 -1
  310. package/esm/icons/zoom-out.svg.js +1 -1
  311. package/esm/index.js +3 -1
  312. package/esm/locale/de-DE.js +3 -1
  313. package/esm/locale/en-US.js +3 -1
  314. package/esm/locale/zh-CN.js +4 -2
  315. package/esm/themes/ang.js +1 -1
  316. package/esm/themes/antd.js +1 -1
  317. package/esm/themes/cxd.js +1 -1
  318. package/esm/themes/dark.js +1 -1
  319. package/esm/utils/vectorComputed.js +1 -1
  320. package/esm/withRemoteConfig.js +1 -1
  321. package/esm/withStore.js +1 -1
  322. package/lib/components/404.js +1 -1
  323. package/lib/components/Alert.d.ts +120 -120
  324. package/lib/components/Alert.js +1 -1
  325. package/lib/components/Alert2.d.ts +20 -20
  326. package/lib/components/Alert2.js +1 -1
  327. package/lib/components/AlphabetIndexer.js +1 -1
  328. package/lib/components/AnchorNav.js +1 -1
  329. package/lib/components/AnchorNavSection.js +1 -1
  330. package/lib/components/ArrayInput.d.ts +40 -40
  331. package/lib/components/ArrayInput.js +1 -1
  332. package/lib/components/AsideNav.js +1 -1
  333. package/lib/components/AssociatedSelection.d.ts +80 -80
  334. package/lib/components/AssociatedSelection.js +7 -3
  335. package/lib/components/AutoFoldedList.d.ts +87 -0
  336. package/lib/components/AutoFoldedList.js +128 -0
  337. package/lib/components/AutoSizer.js +1 -1
  338. package/lib/components/Avatar.d.ts +90 -90
  339. package/lib/components/Avatar.js +1 -1
  340. package/lib/components/Badge.js +1 -1
  341. package/lib/components/BaiduMapPicker.js +1 -1
  342. package/lib/components/BarCode.js +1 -1
  343. package/lib/components/Breadcrumb.js +1 -1
  344. package/lib/components/Button.d.ts +20 -20
  345. package/lib/components/Button.js +1 -1
  346. package/lib/components/CalendarMobile.d.ts +40 -40
  347. package/lib/components/CalendarMobile.js +1 -1
  348. package/lib/components/Card.d.ts +90 -90
  349. package/lib/components/Card.js +1 -1
  350. package/lib/components/Cascader.js +1 -1
  351. package/lib/components/ChainedDropdownSelection.d.ts +80 -80
  352. package/lib/components/ChainedDropdownSelection.js +1 -1
  353. package/lib/components/ChainedSelection.d.ts +80 -80
  354. package/lib/components/ChainedSelection.js +1 -1
  355. package/lib/components/Checkbox.d.ts +20 -20
  356. package/lib/components/Checkbox.js +1 -1
  357. package/lib/components/CityArea.js +1 -1
  358. package/lib/components/CityDB.js +1 -1
  359. package/lib/components/CodeMirror.js +1 -1
  360. package/lib/components/Collapse.d.ts +130 -130
  361. package/lib/components/Collapse.js +1 -1
  362. package/lib/components/CollapseGroup.d.ts +10 -10
  363. package/lib/components/CollapseGroup.js +1 -1
  364. package/lib/components/ColorPicker.d.ts +80 -80
  365. package/lib/components/ColorPicker.js +1 -1
  366. package/lib/components/Combo.js +1 -1
  367. package/lib/components/ConditionBuilder.js +1 -1
  368. package/lib/components/ConfirmBox.d.ts +80 -80
  369. package/lib/components/ConfirmBox.js +1 -1
  370. package/lib/components/ContextMenu.js +7 -2
  371. package/lib/components/DatePicker.d.ts +123 -123
  372. package/lib/components/DatePicker.js +1 -1
  373. package/lib/components/DateRangePicker.d.ts +320 -320
  374. package/lib/components/DateRangePicker.js +5 -8
  375. package/lib/components/DiffEditor.js +1 -1
  376. package/lib/components/DndContainer.js +1 -1
  377. package/lib/components/Drawer.d.ts +21 -20
  378. package/lib/components/Drawer.js +5 -2
  379. package/lib/components/DropDownSelection.d.ts +80 -80
  380. package/lib/components/DropDownSelection.js +1 -1
  381. package/lib/components/DropdownContextMenus.js +1 -1
  382. package/lib/components/Editor.d.ts +40 -40
  383. package/lib/components/Editor.js +1 -1
  384. package/lib/components/Form.js +1 -1
  385. package/lib/components/FormField.js +1 -1
  386. package/lib/components/FormulaPicker.js +1 -1
  387. package/lib/components/GaodeMapPicker.js +1 -1
  388. package/lib/components/GridNav.js +1 -1
  389. package/lib/components/GridNavItem.js +1 -1
  390. package/lib/components/GroupedSelection.d.ts +80 -80
  391. package/lib/components/GroupedSelection.js +1 -1
  392. package/lib/components/HeadCellDropDown.js +1 -1
  393. package/lib/components/HorizontalScroll.js +1 -1
  394. package/lib/components/Html.js +1 -1
  395. package/lib/components/Icon.js +1 -1
  396. package/lib/components/ImageGallery.d.ts +40 -40
  397. package/lib/components/ImageGallery.js +1 -1
  398. package/lib/components/Input.js +1 -1
  399. package/lib/components/InputBox.d.ts +10 -10
  400. package/lib/components/InputBox.js +1 -1
  401. package/lib/components/InputBoxWithSuggestion.js +1 -1
  402. package/lib/components/InputJSONSchema.js +1 -1
  403. package/lib/components/InputTable.js +1 -1
  404. package/lib/components/JSONSchemaEditor.js +1 -1
  405. package/lib/components/Layout.js +1 -1
  406. package/lib/components/Link.js +1 -1
  407. package/lib/components/ListGroup.d.ts +10 -10
  408. package/lib/components/ListGroup.js +1 -1
  409. package/lib/components/ListMenu.d.ts +80 -80
  410. package/lib/components/ListMenu.js +1 -1
  411. package/lib/components/LocationPicker.d.ts +40 -40
  412. package/lib/components/LocationPicker.js +1 -1
  413. package/lib/components/Markdown.js +1 -1
  414. package/lib/components/Menu.js +1 -1
  415. package/lib/components/MixedInput.d.ts +55 -0
  416. package/lib/components/MixedInput.js +99 -0
  417. package/lib/components/MobileDevTool.js +1 -1
  418. package/lib/components/Modal.d.ts +80 -80
  419. package/lib/components/Modal.js +2 -2
  420. package/lib/components/ModalManager.js +1 -1
  421. package/lib/components/MonthRangePicker.d.ts +200 -200
  422. package/lib/components/MultilineText.d.ts +40 -40
  423. package/lib/components/MultilineText.js +1 -1
  424. package/lib/components/NumberInput.d.ts +20 -20
  425. package/lib/components/NumberInput.js +1 -1
  426. package/lib/components/OverflowTpl.js +1 -1
  427. package/lib/components/Pagination.d.ts +80 -80
  428. package/lib/components/Pagination.js +12 -10
  429. package/lib/components/PdfViewer.js +1 -1
  430. package/lib/components/Picker.js +1 -1
  431. package/lib/components/PickerColumn.js +1 -1
  432. package/lib/components/PickerContainer.js +1 -1
  433. package/lib/components/PopOverContainer.js +1 -1
  434. package/lib/components/PopUp.d.ts +80 -80
  435. package/lib/components/PopUp.js +1 -1
  436. package/lib/components/Progress.d.ts +50 -50
  437. package/lib/components/Progress.js +1 -1
  438. package/lib/components/PullRefresh.js +1 -1
  439. package/lib/components/Radios.d.ts +10 -10
  440. package/lib/components/Radios.js +9 -2
  441. package/lib/components/Range.js +1 -1
  442. package/lib/components/Rating.d.ts +30 -30
  443. package/lib/components/Rating.js +1 -1
  444. package/lib/components/ResultBox.d.ts +81 -81
  445. package/lib/components/ResultBox.js +13 -34
  446. package/lib/components/ResultList.d.ts +40 -40
  447. package/lib/components/ResultList.js +1 -1
  448. package/lib/components/ResultTableList.d.ts +80 -80
  449. package/lib/components/ResultTableList.js +1 -1
  450. package/lib/components/ResultTreeList.d.ts +40 -40
  451. package/lib/components/ResultTreeList.js +5 -3
  452. package/lib/components/RichText.js +1 -1
  453. package/lib/components/SearchBox.d.ts +120 -120
  454. package/lib/components/SearchBox.js +1 -1
  455. package/lib/components/Select.d.ts +1683 -1684
  456. package/lib/components/Select.js +36 -65
  457. package/lib/components/SelectMobile.js +1 -1
  458. package/lib/components/Selection.d.ts +80 -80
  459. package/lib/components/Selection.js +1 -1
  460. package/lib/components/Shape.js +1 -1
  461. package/lib/components/Signature.js +3 -1
  462. package/lib/components/Slider.js +1 -1
  463. package/lib/components/SparkLine.d.ts +40 -40
  464. package/lib/components/SparkLine.js +1 -1
  465. package/lib/components/Spinner.d.ts +70 -70
  466. package/lib/components/Spinner.js +1 -1
  467. package/lib/components/Steps.js +1 -1
  468. package/lib/components/Switch.d.ts +10 -10
  469. package/lib/components/Switch.js +1 -1
  470. package/lib/components/Tab.js +1 -1
  471. package/lib/components/Table.js +1 -1
  472. package/lib/components/TableSelection.d.ts +80 -80
  473. package/lib/components/TableSelection.js +1 -1
  474. package/lib/components/Tabs.d.ts +40 -40
  475. package/lib/components/Tabs.js +1 -1
  476. package/lib/components/TabsTransfer.d.ts +40 -40
  477. package/lib/components/TabsTransfer.js +4 -2
  478. package/lib/components/TabsTransferPicker.js +1 -1
  479. package/lib/components/Tag.d.ts +81 -70
  480. package/lib/components/Tag.js +5 -5
  481. package/lib/components/Textarea.d.ts +40 -40
  482. package/lib/components/Textarea.js +1 -1
  483. package/lib/components/Timeline.js +1 -1
  484. package/lib/components/TimelineItem.d.ts +1 -1
  485. package/lib/components/TimelineItem.js +1 -1
  486. package/lib/components/Tinymce.js +1 -1
  487. package/lib/components/TitleBar.js +1 -1
  488. package/lib/components/Toast.d.ts +120 -120
  489. package/lib/components/Toast.js +1 -1
  490. package/lib/components/Tooltip.js +1 -1
  491. package/lib/components/TooltipWrapper.d.ts +30 -30
  492. package/lib/components/TooltipWrapper.js +1 -1
  493. package/lib/components/Transfer.d.ts +187 -187
  494. package/lib/components/Transfer.js +7 -3
  495. package/lib/components/TransferDropDown.d.ts +160 -160
  496. package/lib/components/TransferDropDown.js +1 -1
  497. package/lib/components/TransferPicker.js +1 -1
  498. package/lib/components/TransferSearch.js +1 -1
  499. package/lib/components/Tree.d.ts +247 -285
  500. package/lib/components/Tree.js +78 -37
  501. package/lib/components/TreeSelection.d.ts +120 -120
  502. package/lib/components/TreeSelection.js +1 -1
  503. package/lib/components/UserSelect.d.ts +40 -40
  504. package/lib/components/UserSelect.js +1 -1
  505. package/lib/components/UserTabSelect.d.ts +40 -40
  506. package/lib/components/UserTabSelect.js +1 -1
  507. package/lib/components/VerificationCode.js +1 -1
  508. package/lib/components/VirtualList.js +1 -1
  509. package/lib/components/WithRemoteConfig.d.ts +0 -1
  510. package/lib/components/WithRemoteConfig.js +1 -1
  511. package/lib/components/WithStore.js +1 -1
  512. package/lib/components/calendar/Calendar.js +1 -1
  513. package/lib/components/calendar/CalendarContainer.js +1 -1
  514. package/lib/components/calendar/DaysView.js +7 -6
  515. package/lib/components/calendar/MonthsView.js +1 -1
  516. package/lib/components/calendar/QuartersView.js +1 -1
  517. package/lib/components/calendar/TimeView.js +1 -1
  518. package/lib/components/calendar/YearsView.js +1 -1
  519. package/lib/components/condition-builder/Expression.js +1 -1
  520. package/lib/components/condition-builder/Field.js +1 -1
  521. package/lib/components/condition-builder/Func.js +1 -1
  522. package/lib/components/condition-builder/Group.js +1 -1
  523. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  524. package/lib/components/condition-builder/InputSwitch.js +1 -1
  525. package/lib/components/condition-builder/Item.js +1 -1
  526. package/lib/components/condition-builder/Value.d.ts +2 -0
  527. package/lib/components/condition-builder/Value.js +18 -12
  528. package/lib/components/condition-builder/config.js +1 -1
  529. package/lib/components/condition-builder/index.d.ts +1 -1
  530. package/lib/components/condition-builder/index.js +1 -1
  531. package/lib/components/condition-builder/types.d.ts +1 -0
  532. package/lib/components/formula/CodeEditor.js +1 -1
  533. package/lib/components/formula/Editor.d.ts +40 -40
  534. package/lib/components/formula/Editor.js +20 -4
  535. package/lib/components/formula/FuncList.js +2 -1
  536. package/lib/components/formula/Input.js +1 -1
  537. package/lib/components/formula/Picker.d.ts +40 -40
  538. package/lib/components/formula/Picker.js +1 -1
  539. package/lib/components/formula/VariableList.js +2 -1
  540. package/lib/components/formula/plugin.js +1 -1
  541. package/lib/components/icons.js +3 -1
  542. package/lib/components/index.d.ts +3 -1
  543. package/lib/components/json-schema/Array.js +1 -1
  544. package/lib/components/json-schema/Item.js +1 -1
  545. package/lib/components/json-schema/Object.js +1 -1
  546. package/lib/components/json-schema/index.js +1 -1
  547. package/lib/components/menu/MenuContext.js +1 -1
  548. package/lib/components/menu/MenuItem.js +1 -1
  549. package/lib/components/menu/PanelMenu.js +1 -1
  550. package/lib/components/menu/SubMenu.js +1 -1
  551. package/lib/components/menu/index.d.ts +60 -60
  552. package/lib/components/menu/index.js +1 -1
  553. package/lib/components/schema-editor/Array.js +1 -1
  554. package/lib/components/schema-editor/Common.js +1 -1
  555. package/lib/components/schema-editor/Item.js +1 -1
  556. package/lib/components/schema-editor/Object.js +1 -1
  557. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  558. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  559. package/lib/components/schema-editor/index.d.ts +40 -40
  560. package/lib/components/schema-editor/index.js +1 -1
  561. package/lib/components/table/Cell.js +1 -1
  562. package/lib/components/table/ColGroup.js +1 -1
  563. package/lib/components/table/Head.js +1 -1
  564. package/lib/components/table/HeadCellDropDown.js +1 -1
  565. package/lib/components/table/HeadCellFilter.d.ts +40 -40
  566. package/lib/components/table/HeadCellFilter.js +1 -1
  567. package/lib/components/table/HeadCellSelect.d.ts +40 -40
  568. package/lib/components/table/HeadCellSelect.js +1 -1
  569. package/lib/components/table/HeadCellSort.js +1 -1
  570. package/lib/components/table/ItemActionsWrapper.js +1 -1
  571. package/lib/components/table/Row.js +1 -1
  572. package/lib/components/table/SummaryRow.js +1 -1
  573. package/lib/components/table/index.d.ts +160 -160
  574. package/lib/components/table/index.js +5 -3
  575. package/lib/components/table/util.d.ts +8 -8
  576. package/lib/components/table/util.js +29 -16
  577. package/lib/components/virtual-list/AutoSizer.js +1 -1
  578. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  579. package/lib/components/virtual-list/constants.js +1 -1
  580. package/lib/components/virtual-list/index.js +1 -1
  581. package/lib/components/withBadge.js +1 -1
  582. package/lib/hooks/use-click-away.js +1 -1
  583. package/lib/hooks/use-on-screen.js +1 -1
  584. package/lib/hooks/use-set-state.js +1 -1
  585. package/lib/hooks/use-sub-form.js +1 -1
  586. package/lib/hooks/use-touch.js +1 -1
  587. package/lib/hooks/use-update-effect.js +1 -1
  588. package/lib/hooks/use-validation-resolver.js +1 -1
  589. package/lib/icons/alert-danger.svg.js +1 -1
  590. package/lib/icons/alert-info.svg.js +1 -1
  591. package/lib/icons/alert-success.svg.js +1 -1
  592. package/lib/icons/alert-warning.svg.js +1 -1
  593. package/lib/icons/arrow-double-left.svg.js +1 -1
  594. package/lib/icons/arrow-double-right.svg.js +1 -1
  595. package/lib/icons/back.svg.js +1 -1
  596. package/lib/icons/calendar.svg.js +1 -1
  597. package/lib/icons/caret.svg.js +1 -1
  598. package/lib/icons/check.svg.js +1 -1
  599. package/lib/icons/clock.svg.js +1 -1
  600. package/lib/icons/close-small.svg.js +1 -1
  601. package/lib/icons/close.svg.js +1 -1
  602. package/lib/icons/cloud-upload.svg.js +1 -1
  603. package/lib/icons/column-filter.svg.js +1 -1
  604. package/lib/icons/columns.svg.js +1 -1
  605. package/lib/icons/compress-alt.svg.js +1 -1
  606. package/lib/icons/copy.svg.js +1 -1
  607. package/lib/icons/date.svg.js +1 -1
  608. package/lib/icons/department.svg.js +1 -1
  609. package/lib/icons/desk-empty.svg.js +1 -1
  610. package/lib/icons/dot.svg.js +1 -1
  611. package/lib/icons/down-arrow-bold.svg.js +1 -1
  612. package/lib/icons/down.svg.js +1 -1
  613. package/lib/icons/download.svg.js +1 -1
  614. package/lib/icons/drag-bar.svg.js +1 -1
  615. package/lib/icons/drag.svg.js +1 -1
  616. package/lib/icons/edit.svg.js +1 -1
  617. package/lib/icons/ellipsis-v.svg.js +1 -1
  618. package/lib/icons/enter.svg.js +1 -1
  619. package/lib/icons/exchange.svg.js +1 -1
  620. package/lib/icons/expand-alt.svg.js +1 -1
  621. package/lib/icons/fail.svg.js +1 -1
  622. package/lib/icons/file.svg.js +1 -1
  623. package/lib/icons/filter.svg.js +1 -1
  624. package/lib/icons/folder.svg.js +1 -1
  625. package/lib/icons/fullscreen.svg.js +1 -1
  626. package/lib/icons/function.svg.js +1 -1
  627. package/lib/icons/home.svg.js +1 -1
  628. package/lib/icons/if.svg.js +1 -1
  629. package/lib/icons/image.svg.js +1 -1
  630. package/lib/icons/info-circle.svg.js +1 -1
  631. package/lib/icons/info.svg.js +1 -1
  632. package/lib/icons/input-clear.svg.js +1 -1
  633. package/lib/icons/invisible.svg.js +1 -1
  634. package/lib/icons/left-arrow.svg.js +1 -1
  635. package/lib/icons/loading-outline.svg.js +1 -1
  636. package/lib/icons/location.svg.js +1 -1
  637. package/lib/icons/menu.svg.js +1 -1
  638. package/lib/icons/minus.svg.js +1 -1
  639. package/lib/icons/move.svg.js +1 -1
  640. package/lib/icons/mute.svg.js +1 -1
  641. package/lib/icons/new-edit.svg.js +1 -1
  642. package/lib/icons/pause.svg.js +1 -1
  643. package/lib/icons/pencil.svg.js +1 -1
  644. package/lib/icons/play.svg.js +1 -1
  645. package/lib/icons/plus-cicle.svg.js +1 -1
  646. package/lib/icons/plus-fine.svg.js +1 -1
  647. package/lib/icons/plus.svg.js +1 -1
  648. package/lib/icons/post.svg.js +1 -1
  649. package/lib/icons/question-mark.svg.js +1 -1
  650. package/lib/icons/question.svg.js +1 -1
  651. package/lib/icons/question2.svg.js +41 -0
  652. package/lib/icons/redo.svg.js +1 -1
  653. package/lib/icons/refresh.svg.js +1 -1
  654. package/lib/icons/reload.svg.js +1 -1
  655. package/lib/icons/remove.svg.js +1 -1
  656. package/lib/icons/retry.svg.js +1 -1
  657. package/lib/icons/right-arrow-bold.svg.js +1 -1
  658. package/lib/icons/right-arrow.svg.js +1 -1
  659. package/lib/icons/right-double-arrow.svg.js +1 -1
  660. package/lib/icons/role.svg.js +1 -1
  661. package/lib/icons/rotate-left.svg.js +1 -1
  662. package/lib/icons/rotate-right.svg.js +1 -1
  663. package/lib/icons/rotate-screen.svg.js +1 -1
  664. package/lib/icons/scale-origin.svg.js +1 -1
  665. package/lib/icons/schedule.svg.js +1 -1
  666. package/lib/icons/search.svg.js +1 -1
  667. package/lib/icons/setting.svg.js +1 -1
  668. package/lib/icons/slider-handle-icon.svg.js +1 -1
  669. package/lib/icons/sort-asc.svg.js +1 -1
  670. package/lib/icons/sort-default.svg.js +1 -1
  671. package/lib/icons/sort-desc.svg.js +1 -1
  672. package/lib/icons/star.svg.js +1 -1
  673. package/lib/icons/status-close.svg.js +1 -1
  674. package/lib/icons/steps-finsh.svg.js +1 -1
  675. package/lib/icons/sub-plus.svg.js +1 -1
  676. package/lib/icons/success.svg.js +1 -1
  677. package/lib/icons/transparent.svg.js +1 -1
  678. package/lib/icons/trash.svg.js +1 -1
  679. package/lib/icons/tree-down.svg.js +1 -1
  680. package/lib/icons/undo-normal.svg.js +1 -1
  681. package/lib/icons/undo.svg.js +1 -1
  682. package/lib/icons/unfullscreen.svg.js +1 -1
  683. package/lib/icons/upload.svg.js +1 -1
  684. package/lib/icons/user-remove.svg.js +1 -1
  685. package/lib/icons/view.svg.js +1 -1
  686. package/lib/icons/volume.svg.js +1 -1
  687. package/lib/icons/warning-mark.svg.js +1 -1
  688. package/lib/icons/warning.svg.js +1 -1
  689. package/lib/icons/window-restore.svg.js +1 -1
  690. package/lib/icons/zoom-in.svg.js +1 -1
  691. package/lib/icons/zoom-out.svg.js +1 -1
  692. package/lib/index.js +5 -1
  693. package/lib/locale/de-DE.js +3 -1
  694. package/lib/locale/en-US.js +3 -1
  695. package/lib/locale/zh-CN.js +4 -2
  696. package/lib/scss/helper.scss.js +1 -1
  697. package/lib/scss/themes/ang.scss.js +1 -1
  698. package/lib/scss/themes/antd.scss.js +1 -1
  699. package/lib/scss/themes/cxd.scss.js +1 -1
  700. package/lib/scss/themes/dark.scss.js +1 -1
  701. package/lib/scss/themes/default.scss.js +1 -1
  702. package/lib/themes/ang.css +214 -28
  703. package/lib/themes/ang.js +1 -1
  704. package/lib/themes/antd.css +214 -28
  705. package/lib/themes/antd.js +1 -1
  706. package/lib/themes/cxd.css +214 -28
  707. package/lib/themes/cxd.js +1 -1
  708. package/lib/themes/dark.css +214 -28
  709. package/lib/themes/dark.js +1 -1
  710. package/lib/themes/default.css +214 -28
  711. package/lib/utils/vectorComputed.js +1 -1
  712. package/lib/withRemoteConfig.js +1 -1
  713. package/lib/withStore.js +1 -1
  714. package/package.json +8 -4
  715. package/scss/_components.scss +4 -7
  716. package/scss/_mixins.scss +1 -0
  717. package/scss/_properties.scss +1 -1
  718. package/scss/components/_auto-folder.scss +40 -0
  719. package/scss/components/_cascader.scss +22 -2
  720. package/scss/components/_condition-builder.scss +1 -0
  721. package/scss/components/_crud.scss +32 -0
  722. package/scss/components/_modal.scss +13 -0
  723. package/scss/components/_page.scss +0 -1
  724. package/scss/components/_pagination.scss +1 -2
  725. package/scss/components/_result-box.scss +15 -3
  726. package/scss/components/form/_combo.scss +13 -0
  727. package/scss/components/form/_form.scss +14 -1
  728. package/scss/components/form/_icon-picker.scss +1 -0
  729. package/scss/components/form/_input-group.scss +23 -2
  730. package/scss/components/form/_nested-select.scss +10 -0
  731. package/scss/components/form/_picker.scss +33 -0
  732. package/scss/components/form/_select.scss +30 -4
  733. package/scss/components/form/_selection.scss +2 -0
  734. package/scss/components/form/_tree.scss +8 -9
  735. package/scss/layout/_layout.scss +1 -0
  736. package/scss/themes/_common.scss +1 -0
@@ -1,9 +1,9 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
6
- import { __extends, __assign, __spreadArray, __read, __values, __decorate, __metadata } from 'tslib';
6
+ import { __extends, __assign, __spreadArray, __read, __values, __rest, __decorate, __metadata } from 'tslib';
7
7
  import React__default from 'react';
8
8
  import { resizeSensor, eachTree, getTreeAncestors, flattenTree, flattenTreeWithLeafNodes, getTreeParent, findTreeIndex, isVisible, highlight, hasAbility, calculateHeight, autobind, themeable, localeable } from 'amis-core';
9
9
  import { value2array } from './Select.js';
@@ -45,7 +45,7 @@ var TreeSelector = /** @class */ (function (_super) {
45
45
  y: 0
46
46
  };
47
47
  _this.root = React__default.createRef();
48
- _this.virtualListRef = React__default.createRef();
48
+ _this.virtualListRef = null;
49
49
  var value = value2array(props.value, {
50
50
  multiple: props.multiple,
51
51
  delimiter: props.delimiter,
@@ -64,27 +64,30 @@ var TreeSelector = /** @class */ (function (_super) {
64
64
  isEditing: false,
65
65
  editingItem: null,
66
66
  dropIndicator: undefined,
67
- virtualHeight: 0
67
+ virtualHeight: 0,
68
+ itemHeight: 0
68
69
  };
69
70
  _this.syncUnFolded(props, undefined, true);
70
71
  _this.flattenOptions(props, true);
71
72
  return _this;
72
73
  }
73
74
  TreeSelector.prototype.componentDidMount = function () {
74
- var _this = this;
75
- var _a, _b;
75
+ var _a, _b, _c;
76
76
  var enableNodePath = this.props.enableNodePath;
77
77
  // onRef只有渲染器的情况才会使用
78
78
  (_b = (_a = this.props).onRef) === null || _b === void 0 ? void 0 : _b.call(_a, this);
79
79
  enableNodePath && this.expandLazyLoadNodes();
80
- this.handleVirtualHeight();
81
- this.unSensor = resizeSensor(this.root.current, function () {
82
- _this.handleVirtualHeight();
83
- }, false, 'height');
80
+ var treeElement = this.root.current;
81
+ treeElement =
82
+ ((_c = treeElement === null || treeElement === void 0 ? void 0 : treeElement.parentElement) === null || _c === void 0 ? void 0 : _c.matches('.cxd-TreeControl')) &&
83
+ treeElement.parentElement.childElementCount === 1
84
+ ? treeElement.parentElement
85
+ : treeElement;
86
+ this.unSensor = resizeSensor(treeElement, this.handleVirtualHeight, false, 'height');
84
87
  };
85
88
  TreeSelector.prototype.componentDidUpdate = function (prevProps, prevState) {
86
89
  var props = this.props;
87
- var state = this.state;
90
+ this.state;
88
91
  if (prevProps.options !== props.options) {
89
92
  this.syncUnFolded(props);
90
93
  this.flattenOptions(props);
@@ -104,10 +107,6 @@ var TreeSelector = /** @class */ (function (_super) {
104
107
  valueSet: new Set(newValue)
105
108
  });
106
109
  }
107
- if (prevState.isAdding !== state.isAdding ||
108
- prevState.flattenedOptions !== state.flattenedOptions) {
109
- this.handleVirtualHeight();
110
- }
111
110
  };
112
111
  TreeSelector.prototype.componentWillUnmount = function () {
113
112
  // clear data
@@ -127,6 +126,10 @@ var TreeSelector = /** @class */ (function (_super) {
127
126
  });
128
127
  onExpandTree === null || onExpandTree === void 0 ? void 0 : onExpandTree(nodePathArr);
129
128
  };
129
+ TreeSelector.prototype.virtualListRefSetter = function (ref) {
130
+ this.virtualListRef = ref;
131
+ ref && this.handleVirtualHeight();
132
+ };
130
133
  TreeSelector.prototype.syncUnFolded = function (props, unfoldedLevel, initial) {
131
134
  // 传入默认展开层级需要重新初始化unfolded
132
135
  var initFoldedLevel = typeof unfoldedLevel !== 'undefined';
@@ -792,7 +795,7 @@ var TreeSelector = /** @class */ (function (_super) {
792
795
  };
793
796
  TreeSelector.prototype.renderItem = function (_a) {
794
797
  var _this = this;
795
- var index = _a.index, style = _a.style;
798
+ var index = _a.index, style = _a.style, rest = __rest(_a, ["index", "style"]);
796
799
  var _b = this.props, itemClassName = _b.itemClassName, showIcon = _b.showIcon, showRadio = _b.showRadio, multiple = _b.multiple, labelField = _b.labelField, iconField = _b.iconField, deferField = _b.deferField, cascade = _b.cascade, cx = _b.classnames, highlightTxt = _b.highlightTxt, creatable = _b.creatable, editable = _b.editable, removable = _b.removable, createTip = _b.createTip, editTip = _b.editTip, removeTip = _b.removeTip, __ = _b.translate, itemRender = _b.itemRender, draggable = _b.draggable, loadingConfig = _b.loadingConfig, enableDefaultIcon = _b.enableDefaultIcon, valueField = _b.valueField, mobileUI = _b.mobileUI, testIdBuilder = _b.testIdBuilder, itemActionsRender = _b.itemActionsRender, actionClassName = _b.actionClassName;
797
800
  var item = this.state.flattenedOptions[index];
798
801
  if (!item) {
@@ -870,10 +873,10 @@ var TreeSelector = /** @class */ (function (_super) {
870
873
  React__default.createElement(Icon, { icon: "new-edit", className: "icon" })))) : null,
871
874
  itemActionsRender && (React__default.createElement("div", { className: cx('Tree-itemActions') }, itemActionsRender(item, __assign(__assign({}, item), { index: index, multiple: multiple, checked: checked, labelField: labelField, onChange: function () { return _this.handleCheck(item, !checked); }, disabled: disabled || item.disabled, classnames: cx })))))) : null)));
872
875
  }
873
- return (React__default.createElement("li", __assign({ key: "".concat(item[valueField || 'value'], "-").concat(index), className: cx("Tree-item ".concat(itemClassName || ''), {
876
+ return (React__default.createElement("li", __assign({}, rest, { key: "".concat(item[valueField || 'value'], "-").concat(index), className: cx("Tree-item ".concat(itemClassName || ''), {
874
877
  'Tree-item--isLeaf': isLeaf,
875
878
  'is-child': this.relations.get(item)
876
- }), style: __assign(__assign({}, style), { paddingLeft: "calc(".concat(level, " * var(--Tree-indent))") }) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getTestId()), body));
879
+ }), style: __assign(__assign({}, style), { '--Tree-depth': level }) }, itemTestBuilder === null || itemTestBuilder === void 0 ? void 0 : itemTestBuilder.getTestId()), body));
877
880
  };
878
881
  TreeSelector.prototype.isEmptyOrNotExist = function (obj) {
879
882
  return obj === '' || obj === undefined || obj === null;
@@ -931,38 +934,59 @@ var TreeSelector = /** @class */ (function (_super) {
931
934
  }) },
932
935
  React__default.createElement("span", { className: cx('Tree-itemText') }, __(checkAllLabel)))));
933
936
  };
937
+ TreeSelector.prototype.styleGetter = function (node) {
938
+ node && this.setState({ itemHeight: (node === null || node === void 0 ? void 0 : node.offsetHeight) || 0 });
939
+ };
934
940
  TreeSelector.prototype.renderList = function (list) {
935
941
  var _this = this;
936
- var _a = this.props, virtualThreshold = _a.virtualThreshold, _b = _a.itemHeight, itemHeight = _b === void 0 ? 32 : _b;
937
- var virtualHeight = this.state.virtualHeight;
942
+ var virtualThreshold = this.props.virtualThreshold;
943
+ var _a = this.state, virtualHeight = _a.virtualHeight, itemHeight = _a.itemHeight;
938
944
  if (virtualThreshold && list.length > virtualThreshold) {
939
- return (React__default.createElement("div", { ref: this.virtualListRef },
940
- React__default.createElement(VirtualList, { height: virtualHeight, itemCount: list.length, prefix: this.renderCheckAll(), itemSize: itemHeight,
941
- //! hack: 让 VirtualList 重新渲染
942
- renderItem: this.renderItem.bind(this) })));
945
+ return itemHeight ? (React__default.createElement("div", { ref: this.virtualListRefSetter },
946
+ React__default.createElement(VirtualList, { height: virtualHeight, itemCount: list.length, prefix: this.renderCheckAll(), itemSize: itemHeight, renderItem: this.renderItem }))) : (this.renderItem({ index: 0, ref: this.styleGetter }));
943
947
  }
944
948
  return (React__default.createElement(React__default.Fragment, null,
945
949
  this.renderCheckAll(),
946
950
  list.map(function (item, index) { return _this.renderItem({ index: index }); })));
947
951
  };
948
952
  TreeSelector.prototype.handleVirtualHeight = function () {
949
- var _a = this.props, virtualThreshold = _a.virtualThreshold, _b = _a.itemHeight, itemHeight = _b === void 0 ? 32 : _b, height = _a.height;
950
- var flattenedOptions = this.state.flattenedOptions;
953
+ var _a;
954
+ var virtualThreshold = this.props.virtualThreshold;
955
+ var _b = this.state, flattenedOptions = _b.flattenedOptions, itemHeight = _b.itemHeight;
951
956
  if (virtualThreshold && flattenedOptions.length > virtualThreshold) {
952
- if (height && height > 0) {
953
- // tree 对应元素
954
- var treeElement = this.root.current;
955
- // 虚拟列表 对应元素
956
- var virtualElement = this.virtualListRef.current;
957
- if (treeElement && virtualElement) {
958
- var virtualHeight = treeElement.offsetHeight -
959
- calculateHeight(treeElement, virtualElement);
960
- this.setState({ virtualHeight: virtualHeight });
961
- }
957
+ // tree 对应元素
958
+ var treeElement = this.root.current;
959
+ if (!this.virtualListRef ||
960
+ (!treeElement.offsetHeight && !treeElement.offsetWidth)) {
961
+ return;
962
+ }
963
+ treeElement =
964
+ ((_a = treeElement === null || treeElement === void 0 ? void 0 : treeElement.parentElement) === null || _a === void 0 ? void 0 : _a.matches('.cxd-TreeControl')) &&
965
+ treeElement.parentElement.childElementCount === 1
966
+ ? treeElement.parentElement
967
+ : treeElement;
968
+ var styles = getComputedStyle(treeElement);
969
+ var offsetHeight = 0;
970
+ if (styles.flexGrow !== '0') {
971
+ // 当配置了成了动态高度时,根据实际高度来
972
+ offsetHeight = treeElement.offsetHeight;
962
973
  }
963
974
  else {
964
- this.setState({ virtualHeight: flattenedOptions.length * itemHeight });
975
+ offsetHeight =
976
+ itemHeight * Math.min(flattenedOptions.length, virtualThreshold);
977
+ }
978
+ var virtualElement = this.virtualListRef;
979
+ // 通常时外围设置了 maxHeight
980
+ if (virtualElement.offsetHeight &&
981
+ virtualElement.offsetHeight > treeElement.offsetHeight) {
982
+ offsetHeight = treeElement.offsetHeight;
965
983
  }
984
+ // 虚拟列表 对应元素
985
+ // todo 去支持外部滚动也支持虚拟滚动的场景,目前不支持,所以只能让高度最大,其实就没启动虚拟滚动
986
+ // 目前只有没有配置 heightAuto 的时候
987
+ // 或者配置了 flexGrow 的时候,才会有虚拟滚动的效果
988
+ var virtualHeight = offsetHeight - calculateHeight(treeElement, virtualElement);
989
+ this.setState({ virtualHeight: virtualHeight });
966
990
  }
967
991
  };
968
992
  TreeSelector.prototype.render = function () {
@@ -1049,9 +1073,14 @@ var TreeSelector = /** @class */ (function (_super) {
1049
1073
  pathSeparator: '/',
1050
1074
  nodePath: [],
1051
1075
  virtualThreshold: 100,
1052
- itemHeight: 32,
1053
1076
  enableDefaultIcon: true
1054
1077
  };
1078
+ __decorate([
1079
+ autobind,
1080
+ __metadata("design:type", Function),
1081
+ __metadata("design:paramtypes", [Object]),
1082
+ __metadata("design:returntype", void 0)
1083
+ ], TreeSelector.prototype, "virtualListRefSetter", null);
1055
1084
  __decorate([
1056
1085
  autobind,
1057
1086
  __metadata("design:type", Function),
@@ -1166,12 +1195,24 @@ var TreeSelector = /** @class */ (function (_super) {
1166
1195
  __metadata("design:paramtypes", [Boolean]),
1167
1196
  __metadata("design:returntype", void 0)
1168
1197
  ], TreeSelector.prototype, "handleToggle", null);
1198
+ __decorate([
1199
+ autobind,
1200
+ __metadata("design:type", Function),
1201
+ __metadata("design:paramtypes", [Object]),
1202
+ __metadata("design:returntype", void 0)
1203
+ ], TreeSelector.prototype, "styleGetter", null);
1169
1204
  __decorate([
1170
1205
  autobind,
1171
1206
  __metadata("design:type", Function),
1172
1207
  __metadata("design:paramtypes", [Object]),
1173
1208
  __metadata("design:returntype", void 0)
1174
1209
  ], TreeSelector.prototype, "renderList", null);
1210
+ __decorate([
1211
+ autobind,
1212
+ __metadata("design:type", Function),
1213
+ __metadata("design:paramtypes", []),
1214
+ __metadata("design:returntype", void 0)
1215
+ ], TreeSelector.prototype, "handleVirtualHeight", null);
1175
1216
  return TreeSelector;
1176
1217
  }(React__default.Component));
1177
1218
  var Tree = themeable(localeable(TreeSelector));
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -126,7 +126,8 @@ var CustomDaysView = /** @class */ (function (_super) {
126
126
  var _a;
127
127
  var todayActiveStyle = props.todayActiveStyle; /** 只有today才会传入这个属性 */
128
128
  var _b = _this.props, cx = _b.classnames, __ = _b.translate, testIdBuilder = _b.testIdBuilder;
129
- var injectedProps = omit(props, ['todayActiveStyle']);
129
+ var key = props.key;
130
+ var injectedProps = omit(props, ['todayActiveStyle', 'key']);
130
131
  /** 某些情况下需要用inline style覆盖动态class,需要hack important的样式 */
131
132
  var todayDomRef = function (node) {
132
133
  if (todayActiveStyle && node) {
@@ -220,7 +221,7 @@ var CustomDaysView = /** @class */ (function (_super) {
220
221
  diffDays += 1;
221
222
  var endWidth = 7 - (moment(item.startTime).weekday() - firstDayOfWeek_1 + 1);
222
223
  var width = item.width || Math.min(diffDays, endWidth) || 1;
223
- return (React__default.createElement("div", { key: injectedProps.key + 'content' + index, className: cx('ScheduleCalendar-large-schedule-content', item.className), style: { width: width + '00%' }, onClick: function () {
224
+ return (React__default.createElement("div", { key: key + 'content' + index, className: cx('ScheduleCalendar-large-schedule-content', item.className), style: { width: width + '00%' }, onClick: function () {
224
225
  return _this.props.onScheduleClick &&
225
226
  _this.props.onScheduleClick(scheduleData_1);
226
227
  } },
@@ -228,7 +229,7 @@ var CustomDaysView = /** @class */ (function (_super) {
228
229
  __html: _this.curfilterHtml(item.content)
229
230
  } })));
230
231
  });
231
- return (React__default.createElement("td", __assign({}, injectedProps),
232
+ return (React__default.createElement("td", __assign({ key: key }, injectedProps),
232
233
  React__default.createElement("div", { className: cx('ScheduleCalendar-large-day-wrap') },
233
234
  React__default.createElement("div", { className: cx('ScheduleCalendar-large-schedule-header') },
234
235
  React__default.createElement("span", null, currentDate.date())),
@@ -243,13 +244,13 @@ var CustomDaysView = /** @class */ (function (_super) {
243
244
  return _this.props.onScheduleClick &&
244
245
  _this.props.onScheduleClick(scheduleData_1);
245
246
  } }));
246
- return (React__default.createElement("td", __assign({}, injectedProps),
247
+ return (React__default.createElement("td", __assign({ key: key }, injectedProps),
247
248
  React__default.createElement("span", { style: todayActiveStyle, ref: todayDomRef },
248
249
  currentDate.date(),
249
250
  ScheduleIcon)));
250
251
  }
251
252
  }
252
- return (React__default.createElement("td", __assign({}, injectedProps),
253
+ return (React__default.createElement("td", __assign({ key: key }, injectedProps),
253
254
  React__default.createElement("span", __assign({ style: todayActiveStyle, ref: todayDomRef }, (_a = testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild(props.key)) === null || _a === void 0 ? void 0 : _a.getTestId()), currentDate.date())));
254
255
  };
255
256
  _this.renderTimes = function () {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -7,7 +7,7 @@ import { __extends, __assign, __decorate, __metadata } from 'tslib';
7
7
  import React__default from 'react';
8
8
  import ConditionField from './Field.js';
9
9
  import { themeable, localeable, findTree, filterTree, autobind } from 'amis-core';
10
- import Value from './Value.js';
10
+ import FieldValue from './Value.js';
11
11
  import InputSwitch from './InputSwitch.js';
12
12
  import ConditionFunc from './Func.js';
13
13
 
@@ -77,7 +77,7 @@ var Expression = /** @class */ (function (_super) {
77
77
  types.splice(types.indexOf('func'), 1);
78
78
  }
79
79
  return (React__default.createElement(React__default.Fragment, null,
80
- inputType === 'value' ? (React__default.createElement(Value, { field: valueField, value: value, onChange: this.handleValueChange, op: op, data: data, disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('tValue') })) : null,
80
+ inputType === 'value' ? (React__default.createElement(FieldValue, { field: valueField, value: value, onChange: this.handleValueChange, op: op, data: data, disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('tValue') })) : null,
81
81
  inputType === 'field' ? (React__default.createElement(ConditionField, { value: value === null || value === void 0 ? void 0 : value.field, onChange: this.handleFieldChange, fieldClassName: fieldClassName, disabled: disabled, searchable: searchable, popOverContainer: popOverContainer, selectMode: selectMode, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('tField'), options: valueField
82
82
  ? filterTree(fields, function (item) {
83
83
  return item.children ||
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -15,6 +15,8 @@ export interface ValueProps extends ThemeProps, LocaleProps {
15
15
  popOverContainer?: any;
16
16
  renderEtrValue?: any;
17
17
  testIdBuilder?: TestIdBuilder;
18
+ onFocus?: (e: any) => void;
19
+ onBlur?: (e: any) => void;
18
20
  }
19
21
  export declare class Value extends React.Component<ValueProps> {
20
22
  renderCustomValue(props: any): any;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -34,7 +34,7 @@ var Value = /** @class */ (function (_super) {
34
34
  };
35
35
  Value.prototype.render = function () {
36
36
  var _a;
37
- var _b = this.props, cx = _b.classnames, field = _b.field, value = _b.value, onChange = _b.onChange, op = _b.op, __ = _b.translate, data = _b.data, disabled = _b.disabled, formula = _b.formula, popOverContainer = _b.popOverContainer, mobileUI = _b.mobileUI, testIdBuilder = _b.testIdBuilder;
37
+ var _b = this.props, cx = _b.classnames, className = _b.className, field = _b.field, value = _b.value, onChange = _b.onChange, op = _b.op, __ = _b.translate, data = _b.data, disabled = _b.disabled, formula = _b.formula, popOverContainer = _b.popOverContainer, mobileUI = _b.mobileUI, testIdBuilder = _b.testIdBuilder, onFocus = _b.onFocus, onBlur = _b.onBlur;
38
38
  var input = undefined;
39
39
  if (formula) {
40
40
  // 如果配置了 formula 字段,则所有的输入变为 formula 形式
@@ -47,32 +47,35 @@ var Value = /** @class */ (function (_super) {
47
47
  input = (React__default.createElement(FormulaPicker, __assign({}, formula, { inputSettings: inputSettings, customInputRender: this.renderCustomValue })));
48
48
  }
49
49
  else if (field.type === 'text') {
50
- input = (React__default.createElement(InputBox, { value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, placeholder: __(field.placeholder), disabled: disabled, mobileUI: mobileUI, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('text') }));
50
+ input = (React__default.createElement(InputBox, { value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, placeholder: __(field.placeholder), disabled: disabled || field.disabled, mobileUI: mobileUI, onFocus: onFocus, onBlur: onBlur, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('text') }));
51
51
  }
52
52
  else if (field.type === 'number') {
53
- input = (React__default.createElement(NumberInput, { placeholder: __(field.placeholder) || __('NumberInput.placeholder'), step: field.step, min: field.minimum, max: field.maximum, precision: field.precision, value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, disabled: disabled, mobileUI: mobileUI, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('number') }));
53
+ input = (React__default.createElement(NumberInput, { placeholder: __(field.placeholder) || __('NumberInput.placeholder'), step: field.step, min: field.minimum, max: field.maximum, precision: field.precision, value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, disabled: disabled || field.disabled, onFocus: onFocus, onBlur: onBlur, mobileUI: mobileUI, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('number') }));
54
54
  }
55
55
  else if (field.type === 'date') {
56
- input = (React__default.createElement(DatePicker, { placeholder: __(field.placeholder) || __('Date.placeholder'), format: field.format || 'YYYY-MM-DD', inputFormat: field.inputFormat || 'YYYY-MM-DD', value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, timeFormat: "", disabled: disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('date') }));
56
+ input = (React__default.createElement(DatePicker, { placeholder: __(field.placeholder) || __('Date.placeholder'), format: field.format || 'YYYY-MM-DD', inputFormat: field.inputFormat || 'YYYY-MM-DD', value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, timeFormat: "", disabled: disabled || field.disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, onFocus: onFocus, onBlur: onBlur, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('date') }));
57
57
  }
58
58
  else if (field.type === 'time') {
59
- input = (React__default.createElement(DatePicker, { viewMode: "time", placeholder: __(field.placeholder) || __('Time.placeholder'), format: field.format || 'HH:mm', inputFormat: field.inputFormat || 'HH:mm', value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, dateFormat: "", timeFormat: field.format || 'HH:mm', disabled: disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('time') }));
59
+ input = (React__default.createElement(DatePicker, { viewMode: "time", placeholder: __(field.placeholder) || __('Time.placeholder'), format: field.format || 'HH:mm', inputFormat: field.inputFormat || 'HH:mm', value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, dateFormat: "", timeFormat: field.format || 'HH:mm', disabled: disabled || field.disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, onFocus: onFocus, onBlur: onBlur, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('time') }));
60
60
  }
61
61
  else if (field.type === 'datetime') {
62
- input = (React__default.createElement(DatePicker, { placeholder: __(field.placeholder) || __('Time.placeholder'), format: field.format || '', inputFormat: field.inputFormat || 'YYYY-MM-DD HH:mm', value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, timeFormat: field.timeFormat || 'HH:mm', disabled: disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('datetime') }));
62
+ input = (React__default.createElement(DatePicker, { placeholder: __(field.placeholder) || __('Time.placeholder'), format: field.format || '', inputFormat: field.inputFormat || 'YYYY-MM-DD HH:mm', value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, timeFormat: field.timeFormat || 'HH:mm', disabled: disabled || field.disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, onFocus: onFocus, onBlur: onBlur, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('datetime') }));
63
63
  }
64
64
  else if (field.type === 'select') {
65
65
  var autoComplete = field.autoComplete;
66
- input = (React__default.createElement(SelectWithRemoteOptions, { simpleValue: true, options: field.options, placeholder: __(field.placeholder) || 'Select.placeholder', source: field.source, autoComplete: autoComplete, searchable: field.searchable, value: (_a = value !== null && value !== void 0 ? value : field.defaultValue) !== null && _a !== void 0 ? _a : '', data: data, onChange: onChange, multiple: op === 'select_any_in' || op === 'select_not_any_in', disabled: disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, maxTagCount: field.maxTagCount, overflowTagPopover: field.overflowTagPopover, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('select') }));
66
+ input = (React__default.createElement(SelectWithRemoteOptions, { simpleValue: true, options: field.options, placeholder: __(field.placeholder) || 'Select.placeholder', source: field.source, autoComplete: autoComplete, searchable: field.searchable, value: (_a = value !== null && value !== void 0 ? value : field.defaultValue) !== null && _a !== void 0 ? _a : '', data: data, onChange: onChange, multiple: op === 'select_any_in' || op === 'select_not_any_in', disabled: disabled || field.disabled, popOverContainer: popOverContainer, mobileUI: mobileUI, maxTagCount: field.maxTagCount, overflowTagPopover: field.overflowTagPopover, onFocus: onFocus, onBlur: onBlur, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('select') }));
67
67
  }
68
68
  else if (field.type === 'boolean') {
69
69
  input = (React__default.createElement("div", { className: cx("SwitchControl") },
70
- React__default.createElement(Switch, { value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, disabled: disabled, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('switch') })));
70
+ React__default.createElement(Switch, { value: value !== null && value !== void 0 ? value : field.defaultValue, onChange: onChange, disabled: disabled || field.disabled, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('switch') })));
71
71
  }
72
72
  else if (field.type === 'custom') {
73
73
  input = this.renderCustomValue({
74
74
  value: value !== null && value !== void 0 ? value : field.defaultValue,
75
75
  onChange: onChange,
76
+ onFocus: onFocus,
77
+ onBlur: onBlur,
78
+ disabled: disabled || field.disabled,
76
79
  inputSettings: field,
77
80
  testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('custom')
78
81
  });
@@ -82,6 +85,9 @@ var Value = /** @class */ (function (_super) {
82
85
  input = this.renderCustomValue({
83
86
  value: value !== null && value !== void 0 ? value : field.defaultValue,
84
87
  onChange: onChange,
88
+ onFocus: onFocus,
89
+ onBlur: onBlur,
90
+ disabled: disabled || field.disabled,
85
91
  testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('custom'),
86
92
  inputSettings: {
87
93
  value: omit(field, [
@@ -93,7 +99,7 @@ var Value = /** @class */ (function (_super) {
93
99
  }
94
100
  });
95
101
  }
96
- return React__default.createElement("div", { className: cx('CBValue') }, input);
102
+ return React__default.createElement("div", { className: cx('CBValue', className) }, input);
97
103
  };
98
104
  __decorate([
99
105
  autobind,
@@ -103,6 +109,6 @@ var Value = /** @class */ (function (_super) {
103
109
  ], Value.prototype, "renderCustomValue", null);
104
110
  return Value;
105
111
  }(React__default.Component));
106
- var Value$1 = themeable(localeable(Value));
112
+ var FieldValue = themeable(localeable(Value));
107
113
 
108
- export { Value, Value$1 as default };
114
+ export { Value, FieldValue as default };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -17,6 +17,7 @@ interface BaseField {
17
17
  funcs?: Array<string>;
18
18
  defaultValue?: any;
19
19
  placeholder?: string;
20
+ disabled?: boolean;
20
21
  }
21
22
  export type FieldGroup = {
22
23
  label: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v6.13.0-beta.9
2
+ * amis-ui v6.13.0
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5