amis-ui 2.3.1 → 2.4.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 (627) hide show
  1. package/esm/components/404.js +1 -1
  2. package/esm/components/Alert.js +1 -1
  3. package/esm/components/Alert2.js +2 -2
  4. package/esm/components/AnchorNav.js +1 -1
  5. package/esm/components/ArrayInput.js +1 -1
  6. package/esm/components/AsideNav.js +1 -1
  7. package/esm/components/AssociatedSelection.js +1 -1
  8. package/esm/components/Avatar.d.ts +2 -2
  9. package/esm/components/Avatar.js +4 -4
  10. package/esm/components/Badge.js +1 -1
  11. package/esm/components/BaiduMapPicker.d.ts +1 -1
  12. package/esm/components/BaiduMapPicker.js +5 -5
  13. package/esm/components/BarCode.js +1 -1
  14. package/esm/components/Breadcrumb.js +1 -1
  15. package/esm/components/Button.js +3 -3
  16. package/esm/components/CalendarMobile.js +1 -1
  17. package/esm/components/Card.js +1 -1
  18. package/esm/components/Cascader.js +22 -14
  19. package/esm/components/ChainedSelection.js +1 -1
  20. package/esm/components/Checkbox.js +1 -1
  21. package/esm/components/CityArea.js +13 -5
  22. package/esm/components/CityDB.js +1 -1
  23. package/esm/components/CodeMirror.js +1 -1
  24. package/esm/components/Collapse.js +1 -1
  25. package/esm/components/CollapseGroup.js +1 -1
  26. package/esm/components/ColorPicker.js +1 -1
  27. package/esm/components/ContextMenu.js +1 -1
  28. package/esm/components/DatePicker.js +10 -3
  29. package/esm/components/DateRangePicker.js +3 -7
  30. package/esm/components/Drawer.js +1 -1
  31. package/esm/components/Editor.js +1 -1
  32. package/esm/components/Form.js +1 -1
  33. package/esm/components/FormField.js +1 -1
  34. package/esm/components/GridNav.js +1 -1
  35. package/esm/components/GroupedSelection.js +1 -1
  36. package/esm/components/Html.js +1 -1
  37. package/esm/components/ImageGallery.js +1 -1
  38. package/esm/components/Input.js +1 -1
  39. package/esm/components/InputBox.js +1 -1
  40. package/esm/components/InputBoxWithSuggestion.js +1 -1
  41. package/esm/components/Layout.js +1 -1
  42. package/esm/components/Link.js +1 -1
  43. package/esm/components/ListGroup.d.ts +10 -10
  44. package/esm/components/ListGroup.js +1 -1
  45. package/esm/components/ListMenu.js +1 -1
  46. package/esm/components/LocationPicker.js +1 -1
  47. package/esm/components/Markdown.js +1 -1
  48. package/esm/components/Modal.js +1 -1
  49. package/esm/components/ModalManager.js +1 -1
  50. package/esm/components/MultilineText.d.ts +462 -0
  51. package/esm/components/MultilineText.js +85 -0
  52. package/esm/components/NumberInput.d.ts +34 -11
  53. package/esm/components/NumberInput.js +88 -34
  54. package/esm/components/Pagination.js +1 -1
  55. package/esm/components/Picker.js +1 -1
  56. package/esm/components/PickerColumn.js +1 -1
  57. package/esm/components/PickerContainer.js +1 -1
  58. package/esm/components/PopOverContainer.js +1 -1
  59. package/esm/components/PopUp.js +1 -1
  60. package/esm/components/Progress.js +1 -1
  61. package/esm/components/PullRefresh.js +1 -1
  62. package/esm/components/Radios.js +1 -1
  63. package/esm/components/Range.js +1 -1
  64. package/esm/components/Rating.js +1 -1
  65. package/esm/components/ResultBox.js +1 -1
  66. package/esm/components/ResultList.js +17 -15
  67. package/esm/components/ResultTableList.js +1 -1
  68. package/esm/components/ResultTreeList.js +10 -8
  69. package/esm/components/RichText.js +1 -1
  70. package/esm/components/SearchBox.js +1 -1
  71. package/esm/components/Select.js +1 -1
  72. package/esm/components/Selection.js +7 -5
  73. package/esm/components/SparkLine.js +1 -1
  74. package/esm/components/Spinner.js +1 -1
  75. package/esm/components/Steps.js +1 -1
  76. package/esm/components/Switch.js +1 -1
  77. package/esm/components/TableSelection.js +1 -1
  78. package/esm/components/Tabs.js +3 -1
  79. package/esm/components/TabsTransfer.js +1 -1
  80. package/esm/components/TabsTransferPicker.js +1 -1
  81. package/esm/components/Tag.js +1 -1
  82. package/esm/components/Textarea.js +6 -5
  83. package/esm/components/Timeline.js +1 -1
  84. package/esm/components/TimelineItem.js +2 -2
  85. package/esm/components/Tinymce.d.ts +1 -0
  86. package/esm/components/Tinymce.js +5 -3
  87. package/esm/components/TitleBar.js +1 -1
  88. package/esm/components/Toast.js +1 -1
  89. package/esm/components/Tooltip.js +1 -1
  90. package/esm/components/TooltipWrapper.js +1 -1
  91. package/esm/components/Transfer.js +19 -14
  92. package/esm/components/TransferDropDown.js +1 -1
  93. package/esm/components/TransferPicker.js +1 -1
  94. package/esm/components/TransferSearch.js +1 -1
  95. package/esm/components/Tree.js +1 -1
  96. package/esm/components/TreeSelection.js +1 -1
  97. package/esm/components/UserSelect.js +3 -1
  98. package/esm/components/UserTabSelect.js +3 -1
  99. package/esm/components/WithRemoteConfig.js +1 -1
  100. package/esm/components/WithStore.js +1 -1
  101. package/esm/components/calendar/Calendar.js +2 -6
  102. package/esm/components/calendar/CalendarContainer.js +1 -1
  103. package/esm/components/calendar/DaysView.js +1 -1
  104. package/esm/components/calendar/MonthsView.js +1 -1
  105. package/esm/components/calendar/QuartersView.js +1 -1
  106. package/esm/components/calendar/TimeView.js +2 -2
  107. package/esm/components/calendar/YearsView.js +1 -1
  108. package/esm/components/condition-builder/Expression.js +1 -1
  109. package/esm/components/condition-builder/Field.js +1 -1
  110. package/esm/components/condition-builder/Formula.js +1 -1
  111. package/esm/components/condition-builder/Func.js +1 -1
  112. package/esm/components/condition-builder/Group.d.ts +9 -1
  113. package/esm/components/condition-builder/Group.js +57 -13
  114. package/esm/components/condition-builder/GroupOrItem.d.ts +1 -0
  115. package/esm/components/condition-builder/GroupOrItem.js +7 -5
  116. package/esm/components/condition-builder/InputSwitch.js +1 -1
  117. package/esm/components/condition-builder/Item.js +1 -1
  118. package/esm/components/condition-builder/Value.js +1 -1
  119. package/esm/components/condition-builder/config.js +1 -1
  120. package/esm/components/condition-builder/index.js +3 -3
  121. package/esm/components/formula/Editor.js +1 -1
  122. package/esm/components/formula/FuncList.js +1 -1
  123. package/esm/components/formula/Picker.js +3 -3
  124. package/esm/components/formula/VariableList.js +1 -1
  125. package/esm/components/formula/plugin.js +1 -1
  126. package/esm/components/icons.d.ts +2 -1
  127. package/esm/components/icons.js +2 -1
  128. package/esm/components/index.d.ts +12 -7
  129. package/esm/components/json-schema/Array.js +1 -1
  130. package/esm/components/json-schema/Item.js +1 -1
  131. package/esm/components/json-schema/Object.js +1 -1
  132. package/esm/components/json-schema/index.js +1 -1
  133. package/esm/components/schema-editor/Array.js +1 -1
  134. package/esm/components/schema-editor/Common.js +1 -1
  135. package/esm/components/schema-editor/Item.js +1 -1
  136. package/esm/components/schema-editor/Object.js +1 -1
  137. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  138. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  139. package/esm/components/schema-editor/index.js +1 -1
  140. package/esm/components/table/Cell.js +1 -1
  141. package/esm/components/table/HeadCellDropDown.js +1 -1
  142. package/esm/components/table/HeadCellFilter.js +1 -1
  143. package/esm/components/table/HeadCellSelect.js +1 -1
  144. package/esm/components/table/HeadCellSort.js +1 -1
  145. package/esm/components/table/ItemActionsWrapper.js +1 -1
  146. package/esm/components/table/index.js +1 -1
  147. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  148. package/esm/components/virtual-list/constants.js +1 -1
  149. package/esm/components/virtual-list/index.js +1 -1
  150. package/esm/hooks/use-set-state.js +1 -1
  151. package/esm/hooks/use-touch.js +1 -1
  152. package/esm/hooks/use-update-effect.js +1 -1
  153. package/esm/hooks/use-validation-resolver.js +1 -1
  154. package/esm/icons/alert-danger.svg.js +1 -3
  155. package/esm/icons/alert-info.svg.js +1 -3
  156. package/esm/icons/alert-success.svg.js +1 -3
  157. package/esm/icons/alert-warning.svg.js +1 -3
  158. package/esm/icons/back.svg.js +1 -3
  159. package/esm/icons/calendar.svg.js +1 -3
  160. package/esm/icons/caret.svg.js +1 -3
  161. package/esm/icons/check-circle.svg.js +1 -3
  162. package/esm/icons/check.svg.js +1 -3
  163. package/esm/icons/clock.svg.js +1 -3
  164. package/esm/icons/close-small.svg.js +1 -3
  165. package/esm/icons/close.svg.js +1 -3
  166. package/esm/icons/cloud-upload.svg.js +1 -3
  167. package/esm/icons/column-filter.svg.js +1 -3
  168. package/esm/icons/columns.svg.js +1 -3
  169. package/esm/icons/compress-alt.svg.js +1 -3
  170. package/esm/icons/copy.svg.js +1 -3
  171. package/esm/icons/date.svg.js +1 -3
  172. package/esm/icons/department.svg.js +1 -3
  173. package/esm/icons/desk-empty.svg.js +1 -3
  174. package/esm/icons/dot.svg.js +1 -3
  175. package/esm/icons/down-arrow-bold.svg.js +1 -3
  176. package/esm/icons/down.svg.js +1 -3
  177. package/esm/icons/download.svg.js +1 -3
  178. package/esm/icons/drag-bar.svg.js +1 -3
  179. package/esm/icons/drag.svg.js +1 -3
  180. package/esm/icons/edit.svg.js +1 -3
  181. package/esm/icons/ellipsis-v.svg.js +1 -3
  182. package/esm/icons/enter.svg.js +1 -3
  183. package/esm/icons/exchange.svg.js +1 -3
  184. package/esm/icons/expand-alt.svg.js +1 -3
  185. package/esm/icons/fail.svg.js +1 -3
  186. package/esm/icons/file.svg.js +1 -3
  187. package/esm/icons/filter.svg.js +1 -3
  188. package/esm/icons/folder.svg.js +1 -3
  189. package/esm/icons/function.svg.js +1 -3
  190. package/esm/icons/home.svg.js +1 -3
  191. package/esm/icons/image.svg.js +1 -3
  192. package/esm/icons/info-circle.svg.js +1 -3
  193. package/esm/icons/info.svg.js +1 -3
  194. package/esm/icons/input-clear.svg.js +1 -3
  195. package/esm/icons/invisible.svg.js +1 -3
  196. package/esm/icons/left-arrow.svg.js +1 -3
  197. package/esm/icons/loading-outline.svg.js +1 -3
  198. package/esm/icons/location.svg.js +1 -3
  199. package/esm/icons/menu.svg.js +1 -3
  200. package/esm/icons/minus.svg.js +1 -3
  201. package/esm/icons/move.svg.js +1 -3
  202. package/esm/icons/mute.svg.js +1 -3
  203. package/esm/icons/new-edit.svg.js +1 -3
  204. package/esm/icons/pause.svg.js +1 -3
  205. package/esm/icons/pencil.svg.js +1 -3
  206. package/esm/icons/play.svg.js +1 -3
  207. package/esm/icons/plus-cicle.svg.js +1 -3
  208. package/esm/icons/plus-fine.svg.js +1 -3
  209. package/esm/icons/plus.svg.js +1 -3
  210. package/esm/icons/post.svg.js +1 -3
  211. package/esm/icons/question-mark.svg.js +1 -3
  212. package/esm/icons/question.svg.js +1 -3
  213. package/esm/icons/redo.svg.js +1 -3
  214. package/esm/icons/refresh.svg.js +1 -3
  215. package/esm/icons/reload.svg.js +1 -3
  216. package/esm/icons/remove.svg.js +1 -3
  217. package/esm/icons/retry.svg.js +1 -3
  218. package/esm/icons/right-arrow-bold.svg.js +1 -3
  219. package/esm/icons/right-arrow.svg.js +1 -3
  220. package/esm/icons/right-double-arrow.svg.js +1 -3
  221. package/esm/icons/role.svg.js +1 -3
  222. package/esm/icons/rotate-left.svg.js +1 -3
  223. package/esm/icons/rotate-right.svg.js +1 -3
  224. package/esm/icons/scale-origin.svg.js +1 -3
  225. package/esm/icons/schedule.svg.js +1 -3
  226. package/esm/icons/search.svg.js +1 -3
  227. package/esm/icons/setting.svg.js +1 -3
  228. package/esm/icons/slider-handle-icon.svg.js +1 -3
  229. package/esm/icons/sort-asc.svg.js +1 -3
  230. package/esm/icons/sort-default.svg.js +1 -3
  231. package/esm/icons/sort-desc.svg.js +1 -3
  232. package/esm/icons/star.svg.js +1 -3
  233. package/esm/icons/status-close.svg.js +1 -3
  234. package/esm/icons/status-fail.svg.js +1 -3
  235. package/esm/icons/status-info.svg.js +1 -3
  236. package/esm/icons/status-success.svg.js +1 -3
  237. package/esm/icons/status-warning.svg.js +1 -3
  238. package/esm/icons/steps-finsh.svg.js +1 -3
  239. package/esm/icons/success.svg.js +1 -3
  240. package/esm/icons/transparent.svg.js +1 -3
  241. package/esm/icons/trash.svg.js +1 -3
  242. package/esm/icons/tree-down.svg.js +1 -3
  243. package/esm/icons/undo.svg.js +1 -3
  244. package/esm/icons/upload.svg.js +1 -3
  245. package/esm/icons/user-remove.svg.js +1 -3
  246. package/esm/icons/view.svg.js +1 -3
  247. package/esm/icons/volume.svg.js +1 -3
  248. package/esm/icons/warning-mark.svg.js +1 -3
  249. package/esm/icons/warning.svg.js +1 -3
  250. package/esm/icons/window-restore.svg.js +1 -3
  251. package/esm/icons/zoom-in.svg.js +1 -3
  252. package/esm/icons/zoom-out.svg.js +1 -3
  253. package/esm/index.js +4 -1
  254. package/esm/locale/de-DE.js +3 -1
  255. package/esm/locale/en-US.js +6 -2
  256. package/esm/locale/zh-CN.js +8 -4
  257. package/esm/themes/ang.js +1 -1
  258. package/esm/themes/antd.js +1 -1
  259. package/esm/themes/cxd.js +1 -1
  260. package/esm/themes/dark.js +1 -1
  261. package/lib/components/404.js +1 -1
  262. package/lib/components/Alert.js +1 -1
  263. package/lib/components/Alert2.d.ts +10 -10
  264. package/lib/components/Alert2.js +2 -2
  265. package/lib/components/AnchorNav.d.ts +10 -10
  266. package/lib/components/AnchorNav.js +1 -1
  267. package/lib/components/ArrayInput.d.ts +40 -40
  268. package/lib/components/ArrayInput.js +1 -1
  269. package/lib/components/AsideNav.js +1 -1
  270. package/lib/components/AssociatedSelection.d.ts +40 -40
  271. package/lib/components/AssociatedSelection.js +1 -1
  272. package/lib/components/Avatar.d.ts +12 -12
  273. package/lib/components/Avatar.js +3 -3
  274. package/lib/components/Badge.js +1 -1
  275. package/lib/components/BaiduMapPicker.d.ts +1 -1
  276. package/lib/components/BaiduMapPicker.js +5 -5
  277. package/lib/components/BarCode.js +1 -1
  278. package/lib/components/Breadcrumb.js +1 -1
  279. package/lib/components/Button.d.ts +10 -10
  280. package/lib/components/Button.js +3 -3
  281. package/lib/components/CalendarMobile.d.ts +40 -40
  282. package/lib/components/CalendarMobile.js +1 -1
  283. package/lib/components/Card.d.ts +10 -10
  284. package/lib/components/Card.js +1 -1
  285. package/lib/components/Cascader.js +22 -14
  286. package/lib/components/ChainedSelection.d.ts +40 -40
  287. package/lib/components/ChainedSelection.js +1 -1
  288. package/lib/components/Checkbox.d.ts +10 -10
  289. package/lib/components/Checkbox.js +1 -1
  290. package/lib/components/CityArea.js +13 -5
  291. package/lib/components/CityDB.js +1 -1
  292. package/lib/components/CodeMirror.js +1 -1
  293. package/lib/components/Collapse.d.ts +10 -10
  294. package/lib/components/Collapse.js +1 -1
  295. package/lib/components/CollapseGroup.js +1 -1
  296. package/lib/components/ColorPicker.d.ts +40 -40
  297. package/lib/components/ColorPicker.js +1 -1
  298. package/lib/components/ContextMenu.js +1 -1
  299. package/lib/components/DatePicker.d.ts +40 -40
  300. package/lib/components/DatePicker.js +10 -3
  301. package/lib/components/DateRangePicker.d.ts +40 -40
  302. package/lib/components/DateRangePicker.js +3 -8
  303. package/lib/components/Drawer.d.ts +10 -10
  304. package/lib/components/Drawer.js +1 -1
  305. package/lib/components/Editor.d.ts +40 -40
  306. package/lib/components/Editor.js +1 -1
  307. package/lib/components/Form.js +1 -1
  308. package/lib/components/FormField.js +1 -1
  309. package/lib/components/GridNav.js +1 -1
  310. package/lib/components/GroupedSelection.d.ts +40 -40
  311. package/lib/components/GroupedSelection.js +1 -1
  312. package/lib/components/Html.js +1 -1
  313. package/lib/components/ImageGallery.js +1 -1
  314. package/lib/components/Input.js +1 -1
  315. package/lib/components/InputBox.d.ts +10 -10
  316. package/lib/components/InputBox.js +1 -1
  317. package/lib/components/InputBoxWithSuggestion.js +1 -1
  318. package/lib/components/Layout.js +1 -1
  319. package/lib/components/Link.js +1 -1
  320. package/lib/components/ListGroup.d.ts +10 -10
  321. package/lib/components/ListGroup.js +1 -1
  322. package/lib/components/ListMenu.d.ts +40 -40
  323. package/lib/components/ListMenu.js +1 -1
  324. package/lib/components/LocationPicker.d.ts +40 -40
  325. package/lib/components/LocationPicker.js +1 -1
  326. package/lib/components/Markdown.js +1 -1
  327. package/lib/components/Modal.d.ts +40 -40
  328. package/lib/components/Modal.js +1 -1
  329. package/lib/components/ModalManager.js +1 -1
  330. package/lib/components/MonthRangePicker.d.ts +40 -40
  331. package/lib/components/MultilineText.d.ts +462 -0
  332. package/lib/components/MultilineText.js +94 -0
  333. package/lib/components/NumberInput.d.ts +34 -11
  334. package/lib/components/NumberInput.js +88 -33
  335. package/lib/components/Pagination.js +1 -1
  336. package/lib/components/Picker.js +1 -1
  337. package/lib/components/PickerColumn.js +1 -1
  338. package/lib/components/PickerContainer.js +1 -1
  339. package/lib/components/PopOverContainer.js +1 -1
  340. package/lib/components/PopUp.js +1 -1
  341. package/lib/components/Progress.d.ts +10 -10
  342. package/lib/components/Progress.js +1 -1
  343. package/lib/components/PullRefresh.js +1 -1
  344. package/lib/components/Radios.d.ts +10 -10
  345. package/lib/components/Radios.js +1 -1
  346. package/lib/components/Range.js +1 -1
  347. package/lib/components/Rating.d.ts +10 -10
  348. package/lib/components/Rating.js +1 -1
  349. package/lib/components/ResultBox.d.ts +40 -40
  350. package/lib/components/ResultBox.js +1 -1
  351. package/lib/components/ResultList.d.ts +40 -40
  352. package/lib/components/ResultList.js +17 -15
  353. package/lib/components/ResultTableList.d.ts +40 -40
  354. package/lib/components/ResultTableList.js +1 -1
  355. package/lib/components/ResultTreeList.d.ts +40 -40
  356. package/lib/components/ResultTreeList.js +10 -8
  357. package/lib/components/RichText.js +1 -1
  358. package/lib/components/SearchBox.d.ts +40 -40
  359. package/lib/components/SearchBox.js +1 -1
  360. package/lib/components/Select.d.ts +193 -193
  361. package/lib/components/Select.js +1 -1
  362. package/lib/components/Selection.d.ts +40 -40
  363. package/lib/components/Selection.js +7 -5
  364. package/lib/components/SparkLine.d.ts +40 -40
  365. package/lib/components/SparkLine.js +1 -1
  366. package/lib/components/Spinner.d.ts +10 -10
  367. package/lib/components/Spinner.js +1 -1
  368. package/lib/components/Steps.js +1 -1
  369. package/lib/components/Switch.d.ts +10 -10
  370. package/lib/components/Switch.js +1 -1
  371. package/lib/components/TableSelection.d.ts +40 -40
  372. package/lib/components/TableSelection.js +1 -1
  373. package/lib/components/Tabs.d.ts +40 -40
  374. package/lib/components/Tabs.js +3 -1
  375. package/lib/components/TabsTransfer.js +1 -1
  376. package/lib/components/TabsTransferPicker.js +1 -1
  377. package/lib/components/Tag.d.ts +10 -10
  378. package/lib/components/Tag.js +1 -1
  379. package/lib/components/Textarea.d.ts +40 -40
  380. package/lib/components/Textarea.js +6 -5
  381. package/lib/components/Timeline.js +1 -1
  382. package/lib/components/TimelineItem.js +2 -2
  383. package/lib/components/Tinymce.d.ts +1 -0
  384. package/lib/components/Tinymce.js +5 -3
  385. package/lib/components/TitleBar.js +1 -1
  386. package/lib/components/Toast.js +1 -1
  387. package/lib/components/Tooltip.js +1 -1
  388. package/lib/components/TooltipWrapper.js +1 -1
  389. package/lib/components/Transfer.d.ts +40 -40
  390. package/lib/components/Transfer.js +18 -13
  391. package/lib/components/TransferDropDown.d.ts +40 -40
  392. package/lib/components/TransferDropDown.js +1 -1
  393. package/lib/components/TransferPicker.js +1 -1
  394. package/lib/components/TransferSearch.js +1 -1
  395. package/lib/components/Tree.d.ts +40 -40
  396. package/lib/components/Tree.js +1 -1
  397. package/lib/components/TreeSelection.d.ts +40 -40
  398. package/lib/components/TreeSelection.js +1 -1
  399. package/lib/components/UserSelect.d.ts +40 -40
  400. package/lib/components/UserSelect.js +3 -1
  401. package/lib/components/UserTabSelect.d.ts +40 -40
  402. package/lib/components/UserTabSelect.js +3 -1
  403. package/lib/components/WithRemoteConfig.js +1 -1
  404. package/lib/components/WithStore.js +1 -1
  405. package/lib/components/calendar/Calendar.js +2 -6
  406. package/lib/components/calendar/CalendarContainer.js +1 -1
  407. package/lib/components/calendar/DaysView.js +1 -1
  408. package/lib/components/calendar/MonthsView.js +1 -1
  409. package/lib/components/calendar/QuartersView.js +1 -1
  410. package/lib/components/calendar/TimeView.js +2 -2
  411. package/lib/components/calendar/YearsView.js +1 -1
  412. package/lib/components/condition-builder/Expression.js +1 -1
  413. package/lib/components/condition-builder/Field.js +1 -1
  414. package/lib/components/condition-builder/Formula.js +1 -1
  415. package/lib/components/condition-builder/Func.js +1 -1
  416. package/lib/components/condition-builder/Group.d.ts +9 -1
  417. package/lib/components/condition-builder/Group.js +57 -13
  418. package/lib/components/condition-builder/GroupOrItem.d.ts +1 -0
  419. package/lib/components/condition-builder/GroupOrItem.js +7 -5
  420. package/lib/components/condition-builder/InputSwitch.js +1 -1
  421. package/lib/components/condition-builder/Item.js +1 -1
  422. package/lib/components/condition-builder/Value.js +1 -1
  423. package/lib/components/condition-builder/config.js +1 -1
  424. package/lib/components/condition-builder/index.js +3 -3
  425. package/lib/components/formula/Editor.d.ts +40 -40
  426. package/lib/components/formula/Editor.js +1 -1
  427. package/lib/components/formula/FuncList.js +1 -1
  428. package/lib/components/formula/Picker.d.ts +40 -40
  429. package/lib/components/formula/Picker.js +3 -3
  430. package/lib/components/formula/VariableList.js +1 -1
  431. package/lib/components/formula/plugin.js +1 -1
  432. package/lib/components/icons.d.ts +2 -1
  433. package/lib/components/icons.js +2 -1
  434. package/lib/components/index.d.ts +12 -7
  435. package/lib/components/json-schema/Array.js +1 -1
  436. package/lib/components/json-schema/Item.js +1 -1
  437. package/lib/components/json-schema/Object.js +1 -1
  438. package/lib/components/json-schema/index.js +1 -1
  439. package/lib/components/schema-editor/Array.js +1 -1
  440. package/lib/components/schema-editor/Common.js +1 -1
  441. package/lib/components/schema-editor/Item.js +1 -1
  442. package/lib/components/schema-editor/Object.js +1 -1
  443. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  444. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  445. package/lib/components/schema-editor/index.d.ts +40 -40
  446. package/lib/components/schema-editor/index.js +1 -1
  447. package/lib/components/table/Cell.d.ts +40 -40
  448. package/lib/components/table/Cell.js +1 -1
  449. package/lib/components/table/HeadCellDropDown.js +1 -1
  450. package/lib/components/table/HeadCellFilter.js +1 -1
  451. package/lib/components/table/HeadCellSelect.js +1 -1
  452. package/lib/components/table/HeadCellSort.js +1 -1
  453. package/lib/components/table/ItemActionsWrapper.js +1 -1
  454. package/lib/components/table/index.d.ts +40 -40
  455. package/lib/components/table/index.js +1 -1
  456. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  457. package/lib/components/virtual-list/constants.js +1 -1
  458. package/lib/components/virtual-list/index.js +1 -1
  459. package/lib/helper.css +3 -0
  460. package/lib/hooks/use-set-state.js +1 -1
  461. package/lib/hooks/use-touch.js +1 -1
  462. package/lib/hooks/use-update-effect.js +1 -1
  463. package/lib/hooks/use-validation-resolver.js +1 -1
  464. package/lib/icons/alert-danger.svg.js +1 -3
  465. package/lib/icons/alert-info.svg.js +1 -3
  466. package/lib/icons/alert-success.svg.js +1 -3
  467. package/lib/icons/alert-warning.svg.js +1 -3
  468. package/lib/icons/back.svg.js +1 -3
  469. package/lib/icons/calendar.svg.js +1 -3
  470. package/lib/icons/caret.svg.js +1 -3
  471. package/lib/icons/check-circle.svg.js +1 -3
  472. package/lib/icons/check.svg.js +1 -3
  473. package/lib/icons/clock.svg.js +1 -3
  474. package/lib/icons/close-small.svg.js +1 -3
  475. package/lib/icons/close.svg.js +1 -3
  476. package/lib/icons/cloud-upload.svg.js +1 -3
  477. package/lib/icons/column-filter.svg.js +1 -3
  478. package/lib/icons/columns.svg.js +1 -3
  479. package/lib/icons/compress-alt.svg.js +1 -3
  480. package/lib/icons/copy.svg.js +1 -3
  481. package/lib/icons/date.svg.js +1 -3
  482. package/lib/icons/department.svg.js +1 -3
  483. package/lib/icons/desk-empty.svg.js +1 -3
  484. package/lib/icons/dot.svg.js +1 -3
  485. package/lib/icons/down-arrow-bold.svg.js +1 -3
  486. package/lib/icons/down.svg.js +1 -3
  487. package/lib/icons/download.svg.js +1 -3
  488. package/lib/icons/drag-bar.svg.js +1 -3
  489. package/lib/icons/drag.svg.js +1 -3
  490. package/lib/icons/edit.svg.js +1 -3
  491. package/lib/icons/ellipsis-v.svg.js +1 -3
  492. package/lib/icons/enter.svg.js +1 -3
  493. package/lib/icons/exchange.svg.js +1 -3
  494. package/lib/icons/expand-alt.svg.js +1 -3
  495. package/lib/icons/fail.svg.js +1 -3
  496. package/lib/icons/file.svg.js +1 -3
  497. package/lib/icons/filter.svg.js +1 -3
  498. package/lib/icons/folder.svg.js +1 -3
  499. package/lib/icons/function.svg.js +1 -3
  500. package/lib/icons/home.svg.js +1 -3
  501. package/lib/icons/image.svg.js +1 -3
  502. package/lib/icons/info-circle.svg.js +1 -3
  503. package/lib/icons/info.svg.js +1 -3
  504. package/lib/icons/input-clear.svg.js +1 -3
  505. package/lib/icons/invisible.svg.js +1 -3
  506. package/lib/icons/left-arrow.svg.js +1 -3
  507. package/lib/icons/loading-outline.svg.js +1 -3
  508. package/lib/icons/location.svg.js +1 -3
  509. package/lib/icons/menu.svg.js +1 -3
  510. package/lib/icons/minus.svg.js +1 -3
  511. package/lib/icons/move.svg.js +1 -3
  512. package/lib/icons/mute.svg.js +1 -3
  513. package/lib/icons/new-edit.svg.js +1 -3
  514. package/lib/icons/pause.svg.js +1 -3
  515. package/lib/icons/pencil.svg.js +1 -3
  516. package/lib/icons/play.svg.js +1 -3
  517. package/lib/icons/plus-cicle.svg.js +1 -3
  518. package/lib/icons/plus-fine.svg.js +1 -3
  519. package/lib/icons/plus.svg.js +1 -3
  520. package/lib/icons/post.svg.js +1 -3
  521. package/lib/icons/question-mark.svg.js +1 -3
  522. package/lib/icons/question.svg.js +1 -3
  523. package/lib/icons/redo.svg.js +1 -3
  524. package/lib/icons/refresh.svg.js +1 -3
  525. package/lib/icons/reload.svg.js +1 -3
  526. package/lib/icons/remove.svg.js +1 -3
  527. package/lib/icons/retry.svg.js +1 -3
  528. package/lib/icons/right-arrow-bold.svg.js +1 -3
  529. package/lib/icons/right-arrow.svg.js +1 -3
  530. package/lib/icons/right-double-arrow.svg.js +1 -3
  531. package/lib/icons/role.svg.js +1 -3
  532. package/lib/icons/rotate-left.svg.js +1 -3
  533. package/lib/icons/rotate-right.svg.js +1 -3
  534. package/lib/icons/scale-origin.svg.js +1 -3
  535. package/lib/icons/schedule.svg.js +1 -3
  536. package/lib/icons/search.svg.js +1 -3
  537. package/lib/icons/setting.svg.js +1 -3
  538. package/lib/icons/slider-handle-icon.svg.js +1 -3
  539. package/lib/icons/sort-asc.svg.js +1 -3
  540. package/lib/icons/sort-default.svg.js +1 -3
  541. package/lib/icons/sort-desc.svg.js +1 -3
  542. package/lib/icons/star.svg.js +1 -3
  543. package/lib/icons/status-close.svg.js +1 -3
  544. package/lib/icons/status-fail.svg.js +1 -3
  545. package/lib/icons/status-info.svg.js +1 -3
  546. package/lib/icons/status-success.svg.js +1 -3
  547. package/lib/icons/status-warning.svg.js +1 -3
  548. package/lib/icons/steps-finsh.svg.js +1 -3
  549. package/lib/icons/success.svg.js +1 -3
  550. package/lib/icons/transparent.svg.js +1 -3
  551. package/lib/icons/trash.svg.js +1 -3
  552. package/lib/icons/tree-down.svg.js +1 -3
  553. package/lib/icons/undo.svg.js +1 -3
  554. package/lib/icons/upload.svg.js +1 -3
  555. package/lib/icons/user-remove.svg.js +1 -3
  556. package/lib/icons/view.svg.js +1 -3
  557. package/lib/icons/volume.svg.js +1 -3
  558. package/lib/icons/warning-mark.svg.js +1 -3
  559. package/lib/icons/warning.svg.js +1 -3
  560. package/lib/icons/window-restore.svg.js +1 -3
  561. package/lib/icons/zoom-in.svg.js +1 -3
  562. package/lib/icons/zoom-out.svg.js +1 -3
  563. package/lib/index.js +7 -1
  564. package/lib/locale/de-DE.js +3 -1
  565. package/lib/locale/en-US.js +6 -2
  566. package/lib/locale/zh-CN.js +8 -4
  567. package/lib/scss/helper.scss.js +1 -1
  568. package/lib/scss/themes/ang.scss.js +1 -1
  569. package/lib/scss/themes/antd.scss.js +1 -1
  570. package/lib/scss/themes/cxd.scss.js +1 -1
  571. package/lib/scss/themes/dark.scss.js +1 -1
  572. package/lib/scss/themes/default.scss.js +1 -1
  573. package/lib/themes/ang.css +1500 -748
  574. package/lib/themes/ang.js +1 -1
  575. package/lib/themes/antd.css +2721 -886
  576. package/lib/themes/antd.js +1 -1
  577. package/lib/themes/cxd.css +3104 -1548
  578. package/lib/themes/cxd.js +1 -1
  579. package/lib/themes/dark.css +1500 -748
  580. package/lib/themes/dark.js +1 -1
  581. package/lib/themes/default.css +3104 -1548
  582. package/package.json +4 -4
  583. package/scss/_mixins.scss +144 -45
  584. package/scss/_properties.scss +155 -312
  585. package/scss/_utilities.scss +4 -0
  586. package/scss/base/_normalize.scss +4 -0
  587. package/scss/components/_alert.scss +0 -1
  588. package/scss/components/_array-input.scss +8 -3
  589. package/scss/components/_button.scss +708 -177
  590. package/scss/components/_code.scss +10 -0
  591. package/scss/components/_collapse.scss +17 -0
  592. package/scss/components/_condition-builder.scss +153 -30
  593. package/scss/components/_drawer.scss +7 -2
  594. package/scss/components/_formula.scss +4 -0
  595. package/scss/components/_images.scss +4 -0
  596. package/scss/components/_list.scss +1 -1
  597. package/scss/components/_modal.scss +1 -0
  598. package/scss/components/_multiline-text.scss +20 -0
  599. package/scss/components/_search-box.scss +1 -1
  600. package/scss/components/_steps.scss +2 -0
  601. package/scss/components/_table.scss +14 -0
  602. package/scss/components/_tabs.scss +1 -1
  603. package/scss/components/form/_checks.scss +20 -5
  604. package/scss/components/form/_combo.scss +47 -8
  605. package/scss/components/form/_date-range.scss +1 -1
  606. package/scss/components/form/_date.scss +4 -2
  607. package/scss/components/form/_fieldset.scss +4 -3
  608. package/scss/components/form/_form.scss +11 -5
  609. package/scss/components/form/_icon-select.scss +216 -0
  610. package/scss/components/form/_image.scss +44 -9
  611. package/scss/components/form/_input-group.scss +3 -0
  612. package/scss/components/form/_list.scss +33 -28
  613. package/scss/components/form/_location.scss +4 -0
  614. package/scss/components/form/_nested-select.scss +1 -1
  615. package/scss/components/form/_range.scss +4 -0
  616. package/scss/components/form/_select.scss +2 -1
  617. package/scss/components/form/_switch.scss +54 -0
  618. package/scss/components/form/_tag.scss +8 -3
  619. package/scss/components/form/_text.scss +2 -2
  620. package/scss/components/form/_textarea.scss +8 -0
  621. package/scss/components/form/_transfer.scss +213 -20
  622. package/scss/components/form/_tree-select.scss +7 -0
  623. package/scss/themes/_antd-variables.scss +1107 -41
  624. package/scss/themes/_common.scss +3 -0
  625. package/scss/themes/_cxd-variables.scss +1456 -477
  626. package/scss/themes/cxd.scss +423 -404
  627. package/scss/themes/_cxd-colors.scss +0 -56
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -13,6 +13,8 @@ var amisCore = require('amis-core');
13
13
  var Button = require('../Button.js');
14
14
  var GroupOrItem = require('./GroupOrItem.js');
15
15
  var Select = require('../Select.js');
16
+ require('../icons.js');
17
+ var downArrowBold = require('../../icons/down-arrow-bold.svg.js');
16
18
 
17
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
20
 
@@ -20,9 +22,21 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
20
22
 
21
23
  var ConditionGroup = /** @class */ (function (_super) {
22
24
  tslib.__extends(ConditionGroup, _super);
23
- function ConditionGroup() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
+ function ConditionGroup(props) {
26
+ var _this = _super.call(this, props) || this;
27
+ _this.state = {
28
+ isCollapsed: false
29
+ };
30
+ return _this;
25
31
  }
32
+ ConditionGroup.prototype.componentDidUpdate = function (prevProps) {
33
+ // 上层折叠的时候,内层也折叠,主要是为了处理,子节点中,第一项也是Group的折叠场景
34
+ if (prevProps.isCollapsed !== this.props.isCollapsed) {
35
+ this.setState({
36
+ isCollapsed: this.props.isCollapsed || false
37
+ });
38
+ }
39
+ };
26
40
  ConditionGroup.prototype.getValue = function () {
27
41
  return tslib.__assign({ id: amisCore.guid(), conjunction: 'and' }, this.props.value);
28
42
  };
@@ -84,12 +98,29 @@ var ConditionGroup = /** @class */ (function (_super) {
84
98
  value.children.splice(index, 1);
85
99
  onChange(value);
86
100
  };
101
+ ConditionGroup.prototype.toggleCollapse = function () {
102
+ this.setState(function (state) {
103
+ return {
104
+ isCollapsed: !state.isCollapsed
105
+ };
106
+ });
107
+ };
87
108
  ConditionGroup.prototype.render = function () {
88
109
  var _this = this;
89
- var _a = this.props, builderMode = _a.builderMode, cx = _a.classnames, fieldClassName = _a.fieldClassName, value = _a.value, data = _a.data, fields = _a.fields, funcs = _a.funcs, config = _a.config, removeable = _a.removeable, onRemove = _a.onRemove, onDragStart = _a.onDragStart, showNot = _a.showNot, _b = _a.showANDOR, showANDOR = _b === void 0 ? false : _b, disabled = _a.disabled, searchable = _a.searchable, __ = _a.translate, formula = _a.formula, popOverContainer = _a.popOverContainer, selectMode = _a.selectMode, renderEtrValue = _a.renderEtrValue;
110
+ var _a = this.props, builderMode = _a.builderMode, cx = _a.classnames, fieldClassName = _a.fieldClassName, value = _a.value, data = _a.data, fields = _a.fields, funcs = _a.funcs, config = _a.config, removeable = _a.removeable, onRemove = _a.onRemove, onDragStart = _a.onDragStart, showNot = _a.showNot, _b = _a.showANDOR, showANDOR = _b === void 0 ? false : _b, disabled = _a.disabled, searchable = _a.searchable, __ = _a.translate, formula = _a.formula, popOverContainer = _a.popOverContainer, selectMode = _a.selectMode, renderEtrValue = _a.renderEtrValue, draggable = _a.draggable;
111
+ var isCollapsed = this.state.isCollapsed;
112
+ var body = Array.isArray(value === null || value === void 0 ? void 0 : value.children) && value.children.length
113
+ ? isCollapsed
114
+ ? value.children.slice(0, 1)
115
+ : value.children
116
+ : null;
90
117
  return (React__default["default"].createElement("div", { className: cx('CBGroup'), "data-group-id": value === null || value === void 0 ? void 0 : value.id },
91
- builderMode === 'simple' && showANDOR === false ? null : (React__default["default"].createElement("div", { className: cx('CBGroup-toolbarCondition') },
92
- showNot ? (React__default["default"].createElement(Button["default"], { onClick: this.handleNotClick, className: "m-r-xs", size: "xs", active: value === null || value === void 0 ? void 0 : value.not, disabled: disabled }, __('Condition.not'))) : null,
118
+ builderMode === 'simple' && showANDOR === false ? null : (React__default["default"].createElement("div", { className: cx('CBGroup-toolbarCondition'), draggable: draggable, onDragStart: onDragStart },
119
+ Array.isArray(value === null || value === void 0 ? void 0 : value.children) && value.children.length > 1 ? (React__default["default"].createElement("div", { className: cx('CBGroup-toolbarCondition-arrow', {
120
+ 'is-collapse': isCollapsed
121
+ }), onClick: this.toggleCollapse },
122
+ React__default["default"].createElement(downArrowBold["default"], null))) : null,
123
+ showNot ? (React__default["default"].createElement(Button["default"], { onClick: this.handleNotClick, className: "m-b-sm z-10", size: "xs", active: value === null || value === void 0 ? void 0 : value.not, disabled: disabled }, __('Condition.not'))) : null,
93
124
  React__default["default"].createElement(Select["default"], { options: [
94
125
  {
95
126
  label: __('Condition.and'),
@@ -100,13 +131,20 @@ var ConditionGroup = /** @class */ (function (_super) {
100
131
  value: 'or'
101
132
  }
102
133
  ], value: (value === null || value === void 0 ? void 0 : value.conjunction) || 'and', disabled: disabled, onChange: this.handleConjunctionChange, clearable: false }))),
103
- React__default["default"].createElement("div", { className: cx('CBGroup-body') }, Array.isArray(value === null || value === void 0 ? void 0 : value.children) && value.children.length ? (value.children.map(function (item, index) { return (React__default["default"].createElement(GroupOrItem["default"], { draggable: value.children.length > 1, onDragStart: onDragStart, config: config, key: item.id, fields: fields, fieldClassName: fieldClassName, value: item, index: index, onChange: _this.handleItemChange, funcs: funcs, onRemove: _this.handleItemRemove, data: data, disabled: disabled, searchable: searchable, builderMode: builderMode, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, selectMode: selectMode })); })) : (React__default["default"].createElement("div", { className: cx("CBGroup-placeholder ".concat(builderMode === 'simple' ? 'simple' : '')) }, __('Condition.blank')))),
104
- React__default["default"].createElement("div", { className: cx('CBGroup-toolbar') },
105
- React__default["default"].createElement("div", { className: cx("CBGroup-toolbarConditionAdd".concat(builderMode === 'simple' ? '-simple' : '')) },
106
- React__default["default"].createElement("div", { className: cx('ButtonGroup') },
107
- React__default["default"].createElement(Button["default"], { level: "link", onClick: this.handleAdd, size: "xs", disabled: disabled }, __('Condition.add_cond')),
108
- builderMode === 'simple' ? null : (React__default["default"].createElement(Button["default"], { onClick: this.handleAddGroup, size: "xs", disabled: disabled, level: "link" }, __('Condition.add_cond_group'))))),
109
- removeable ? (React__default["default"].createElement("a", { className: cx('CBDelete'), onClick: onRemove }, __('Condition.delete_cond_group'))) : null)));
134
+ React__default["default"].createElement("div", { className: cx('CBGroup-body-wrapper') },
135
+ React__default["default"].createElement("div", { className: cx('CBGroup-body') },
136
+ body ? (body.map(function (item, index) { return (React__default["default"].createElement(GroupOrItem["default"], { draggable: value.children.length > 1, onDragStart: onDragStart, config: config, key: item.id, fields: fields, fieldClassName: fieldClassName, value: item, index: index, onChange: _this.handleItemChange, funcs: funcs, onRemove: _this.handleItemRemove, data: data, disabled: disabled, searchable: searchable, builderMode: builderMode, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, selectMode: selectMode, isCollapsed: isCollapsed })); })) : (React__default["default"].createElement("div", { className: cx("CBGroup-placeholder ".concat(builderMode === 'simple' ? 'simple' : '')) }, __('Condition.blank'))),
137
+ isCollapsed ? (React__default["default"].createElement("div", { className: cx('CBGroup-body-collapse') },
138
+ React__default["default"].createElement("span", { onClick: this.toggleCollapse },
139
+ __('Condition.collapse'),
140
+ " ",
141
+ React__default["default"].createElement(downArrowBold["default"], null)))) : null),
142
+ isCollapsed ? null : (React__default["default"].createElement("div", { className: cx('CBGroup-toolbar'), draggable: draggable, onDragStart: onDragStart },
143
+ React__default["default"].createElement("div", { className: cx("CBGroup-toolbarConditionAdd".concat(builderMode === 'simple' ? '-simple' : '')) },
144
+ React__default["default"].createElement("div", { className: cx('ButtonGroup') },
145
+ React__default["default"].createElement(Button["default"], { level: "link", onClick: this.handleAdd, size: "xs", disabled: disabled }, __('Condition.add_cond')),
146
+ builderMode === 'simple' ? null : (React__default["default"].createElement(Button["default"], { onClick: this.handleAddGroup, size: "xs", disabled: disabled, level: "link" }, __('Condition.add_cond_group'))),
147
+ removeable ? (React__default["default"].createElement(Button["default"], { onClick: onRemove, size: "xs", disabled: disabled, level: "link" }, __('Condition.delete_cond_group'))) : null)))))));
110
148
  };
111
149
  tslib.__decorate([
112
150
  amisCore.autobind,
@@ -144,6 +182,12 @@ var ConditionGroup = /** @class */ (function (_super) {
144
182
  tslib.__metadata("design:paramtypes", [Number]),
145
183
  tslib.__metadata("design:returntype", void 0)
146
184
  ], ConditionGroup.prototype, "handleItemRemove", null);
185
+ tslib.__decorate([
186
+ amisCore.autobind,
187
+ tslib.__metadata("design:type", Function),
188
+ tslib.__metadata("design:paramtypes", []),
189
+ tslib.__metadata("design:returntype", void 0)
190
+ ], ConditionGroup.prototype, "toggleCollapse", null);
147
191
  return ConditionGroup;
148
192
  }(React__default["default"].Component));
149
193
  var ConditionGroup$1 = amisCore.themeable(amisCore.localeable(ConditionGroup));
@@ -24,6 +24,7 @@ export interface CBGroupOrItemProps extends ThemeProps {
24
24
  popOverContainer?: any;
25
25
  renderEtrValue?: any;
26
26
  selectMode?: 'list' | 'tree';
27
+ isCollapsed?: boolean;
27
28
  }
28
29
  export declare class CBGroupOrItem extends React.Component<CBGroupOrItemProps> {
29
30
  state: {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -47,16 +47,18 @@ var CBGroupOrItem = /** @class */ (function (_super) {
47
47
  });
48
48
  };
49
49
  CBGroupOrItem.prototype.render = function () {
50
- var _a = this.props, builderMode = _a.builderMode, cx = _a.classnames, fieldClassName = _a.fieldClassName, value = _a.value, config = _a.config, fields = _a.fields, funcs = _a.funcs, draggable = _a.draggable, data = _a.data, disabled = _a.disabled, searchable = _a.searchable, onDragStart = _a.onDragStart, formula = _a.formula, popOverContainer = _a.popOverContainer, selectMode = _a.selectMode, renderEtrValue = _a.renderEtrValue;
50
+ var _a = this.props, builderMode = _a.builderMode, cx = _a.classnames, fieldClassName = _a.fieldClassName, value = _a.value, config = _a.config, fields = _a.fields, funcs = _a.funcs, draggable = _a.draggable, data = _a.data, disabled = _a.disabled, searchable = _a.searchable, onDragStart = _a.onDragStart, formula = _a.formula, popOverContainer = _a.popOverContainer, selectMode = _a.selectMode, renderEtrValue = _a.renderEtrValue, isCollapsed = _a.isCollapsed;
51
51
  return (React__default["default"].createElement("div", { className: cx("CBGroupOrItem".concat(builderMode === 'simple' ? '-simple' : '')), "data-id": value === null || value === void 0 ? void 0 : value.id },
52
- React__default["default"].createElement("div", { className: cx('CBGroupOrItem-body') }, (value === null || value === void 0 ? void 0 : value.conjunction) ? (React__default["default"].createElement("div", { className: cx('CBGroupOrItem-body-group', this.state.hover && 'CBGroupOrItem-body-group--hover'), onMouseOver: this.handlerHoverIn, onMouseOut: this.handlerHoverOut },
52
+ React__default["default"].createElement("div", { className: cx('CBGroupOrItem-body') }, (value === null || value === void 0 ? void 0 : value.conjunction) ? (React__default["default"].createElement("div", { className: cx('CBGroupOrItem-body-group', {
53
+ 'is-hover': this.state.hover
54
+ }), onMouseOver: this.handlerHoverIn, onMouseOut: this.handlerHoverOut },
53
55
  draggable && !disabled ? (React__default["default"].createElement("a", { draggable: true, onDragStart: onDragStart, className: cx('CBGroupOrItem-dragbar') },
54
56
  React__default["default"].createElement(icons.Icon, { icon: "drag-bar", className: "icon" }))) : null,
55
- React__default["default"].createElement(Group["default"], { disabled: disabled, searchable: searchable, onDragStart: onDragStart, config: config, fields: fields, value: value, onChange: this.handleItemChange, fieldClassName: fieldClassName, funcs: funcs, removeable: true, onRemove: this.handleItemRemove, data: data, renderEtrValue: renderEtrValue }))) : (React__default["default"].createElement("div", { className: cx('CBGroupOrItem-body-item') },
57
+ React__default["default"].createElement(Group["default"], { isCollapsed: isCollapsed, draggable: draggable, disabled: disabled, searchable: searchable, onDragStart: onDragStart, config: config, fields: fields, value: value, onChange: this.handleItemChange, fieldClassName: fieldClassName, funcs: funcs, removeable: true, onRemove: this.handleItemRemove, data: data, renderEtrValue: renderEtrValue }))) : (React__default["default"].createElement("div", { className: cx('CBGroupOrItem-body-item') },
56
58
  draggable && !disabled ? (React__default["default"].createElement("a", { draggable: true, onDragStart: onDragStart, className: cx('CBGroupOrItem-dragbar') },
57
59
  React__default["default"].createElement(icons.Icon, { icon: "drag-bar", className: "icon" }))) : null,
58
60
  React__default["default"].createElement(Item["default"], { disabled: disabled, searchable: searchable, config: config, fields: fields, value: value, onChange: this.handleItemChange, fieldClassName: fieldClassName, funcs: funcs, data: data, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue, selectMode: selectMode }),
59
- React__default["default"].createElement(Button["default"], { className: cx('CBDelete'), onClick: this.handleItemRemove, disabled: disabled },
61
+ React__default["default"].createElement(Button["default"], { className: cx('CBDelete'), onClick: this.handleItemRemove, disabled: disabled, level: "link" },
60
62
  React__default["default"].createElement(icons.Icon, { icon: "remove", className: "icon" })))))));
61
63
  };
62
64
  tslib.__decorate([
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -149,9 +149,9 @@ var QueryBuilder = /** @class */ (function (_super) {
149
149
  this.props.onChange();
150
150
  };
151
151
  QueryBuilder.prototype.highlightValue = function (value) {
152
- var cx = this.props.classnames;
152
+ var _a = this.props, cx = _a.classnames, __ = _a.translate;
153
153
  var html = {
154
- __html: "<span class=\"label label-info\">\u5DF2\u914D\u7F6E</span>"
154
+ __html: "<span class=\"label label-info\">".concat(__('Condition.configured'), "</span>")
155
155
  };
156
156
  return (React__default["default"].createElement("div", { className: cx('CPGroup-result'), dangerouslySetInnerHTML: html }));
157
157
  };
@@ -97,7 +97,7 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
97
97
  render(): JSX.Element;
98
98
  }
99
99
  declare const _default: {
100
- new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
100
+ new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
101
101
  locale?: string | undefined;
102
102
  translate?: ((str: string, ...args: any[]) => string) | undefined;
103
103
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps): {
@@ -106,12 +106,12 @@ declare const _default: {
106
106
  getWrappedInstance(): any;
107
107
  render(): JSX.Element;
108
108
  context: any;
109
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
109
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
110
110
  locale?: string | undefined;
111
111
  translate?: ((str: string, ...args: any[]) => string) | undefined;
112
112
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
113
113
  forceUpdate(callback?: (() => void) | undefined): void;
114
- readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
114
+ readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
115
115
  locale?: string | undefined;
116
116
  translate?: ((str: string, ...args: any[]) => string) | undefined;
117
117
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
@@ -122,35 +122,35 @@ declare const _default: {
122
122
  [key: string]: React.ReactInstance;
123
123
  };
124
124
  componentDidMount?(): void;
125
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
125
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
126
126
  locale?: string | undefined;
127
127
  translate?: ((str: string, ...args: any[]) => string) | undefined;
128
128
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
129
129
  componentWillUnmount?(): void;
130
130
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
131
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
131
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
132
132
  locale?: string | undefined;
133
133
  translate?: ((str: string, ...args: any[]) => string) | undefined;
134
134
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
135
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
135
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
136
136
  locale?: string | undefined;
137
137
  translate?: ((str: string, ...args: any[]) => string) | undefined;
138
138
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
139
139
  componentWillMount?(): void;
140
140
  UNSAFE_componentWillMount?(): void;
141
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
141
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
142
142
  locale?: string | undefined;
143
143
  translate?: ((str: string, ...args: any[]) => string) | undefined;
144
144
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
145
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
145
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
146
146
  locale?: string | undefined;
147
147
  translate?: ((str: string, ...args: any[]) => string) | undefined;
148
148
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
149
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
149
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
150
150
  locale?: string | undefined;
151
151
  translate?: ((str: string, ...args: any[]) => string) | undefined;
152
152
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
153
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
153
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
154
154
  locale?: string | undefined;
155
155
  translate?: ((str: string, ...args: any[]) => string) | undefined;
156
156
  }, keyof ThemeProps> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
@@ -158,7 +158,7 @@ declare const _default: {
158
158
  displayName: string;
159
159
  contextType: React.Context<string>;
160
160
  ComposedComponent: React.ComponentType<{
161
- new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
161
+ new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
162
162
  locale?: string | undefined;
163
163
  translate?: ((str: string, ...args: any[]) => string) | undefined;
164
164
  }): {
@@ -167,12 +167,12 @@ declare const _default: {
167
167
  getWrappedInstance(): any;
168
168
  render(): JSX.Element;
169
169
  context: any;
170
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
170
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
171
171
  locale?: string | undefined;
172
172
  translate?: ((str: string, ...args: any[]) => string) | undefined;
173
173
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
174
174
  forceUpdate(callback?: (() => void) | undefined): void;
175
- readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
175
+ readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
176
176
  locale?: string | undefined;
177
177
  translate?: ((str: string, ...args: any[]) => string) | undefined;
178
178
  }> & Readonly<{
@@ -183,35 +183,35 @@ declare const _default: {
183
183
  [key: string]: React.ReactInstance;
184
184
  };
185
185
  componentDidMount?(): void;
186
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
186
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
187
187
  locale?: string | undefined;
188
188
  translate?: ((str: string, ...args: any[]) => string) | undefined;
189
189
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
190
190
  componentWillUnmount?(): void;
191
191
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
192
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
192
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
193
193
  locale?: string | undefined;
194
194
  translate?: ((str: string, ...args: any[]) => string) | undefined;
195
195
  }>, prevState: Readonly<{}>): any;
196
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
196
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
197
197
  locale?: string | undefined;
198
198
  translate?: ((str: string, ...args: any[]) => string) | undefined;
199
199
  }>, prevState: Readonly<{}>, snapshot?: any): void;
200
200
  componentWillMount?(): void;
201
201
  UNSAFE_componentWillMount?(): void;
202
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
202
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
203
203
  locale?: string | undefined;
204
204
  translate?: ((str: string, ...args: any[]) => string) | undefined;
205
205
  }>, nextContext: any): void;
206
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
206
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
207
207
  locale?: string | undefined;
208
208
  translate?: ((str: string, ...args: any[]) => string) | undefined;
209
209
  }>, nextContext: any): void;
210
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
210
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
211
211
  locale?: string | undefined;
212
212
  translate?: ((str: string, ...args: any[]) => string) | undefined;
213
213
  }>, nextState: Readonly<{}>, nextContext: any): void;
214
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
214
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
215
215
  locale?: string | undefined;
216
216
  translate?: ((str: string, ...args: any[]) => string) | undefined;
217
217
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -223,7 +223,7 @@ declare const _default: {
223
223
  ComposedComponent: typeof FormulaEditor;
224
224
  }>;
225
225
  } & import("hoist-non-react-statics").NonReactStatics<{
226
- new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
226
+ new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
227
227
  locale?: string | undefined;
228
228
  translate?: ((str: string, ...args: any[]) => string) | undefined;
229
229
  }): {
@@ -232,12 +232,12 @@ declare const _default: {
232
232
  getWrappedInstance(): any;
233
233
  render(): JSX.Element;
234
234
  context: any;
235
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
235
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
236
236
  locale?: string | undefined;
237
237
  translate?: ((str: string, ...args: any[]) => string) | undefined;
238
238
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
239
239
  forceUpdate(callback?: (() => void) | undefined): void;
240
- readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
240
+ readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
241
241
  locale?: string | undefined;
242
242
  translate?: ((str: string, ...args: any[]) => string) | undefined;
243
243
  }> & Readonly<{
@@ -248,35 +248,35 @@ declare const _default: {
248
248
  [key: string]: React.ReactInstance;
249
249
  };
250
250
  componentDidMount?(): void;
251
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
251
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
252
252
  locale?: string | undefined;
253
253
  translate?: ((str: string, ...args: any[]) => string) | undefined;
254
254
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
255
255
  componentWillUnmount?(): void;
256
256
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
257
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
257
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
258
258
  locale?: string | undefined;
259
259
  translate?: ((str: string, ...args: any[]) => string) | undefined;
260
260
  }>, prevState: Readonly<{}>): any;
261
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
261
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
262
262
  locale?: string | undefined;
263
263
  translate?: ((str: string, ...args: any[]) => string) | undefined;
264
264
  }>, prevState: Readonly<{}>, snapshot?: any): void;
265
265
  componentWillMount?(): void;
266
266
  UNSAFE_componentWillMount?(): void;
267
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
267
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
268
268
  locale?: string | undefined;
269
269
  translate?: ((str: string, ...args: any[]) => string) | undefined;
270
270
  }>, nextContext: any): void;
271
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
271
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
272
272
  locale?: string | undefined;
273
273
  translate?: ((str: string, ...args: any[]) => string) | undefined;
274
274
  }>, nextContext: any): void;
275
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
275
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
276
276
  locale?: string | undefined;
277
277
  translate?: ((str: string, ...args: any[]) => string) | undefined;
278
278
  }>, nextState: Readonly<{}>, nextContext: any): void;
279
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
279
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
280
280
  locale?: string | undefined;
281
281
  translate?: ((str: string, ...args: any[]) => string) | undefined;
282
282
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -288,7 +288,7 @@ declare const _default: {
288
288
  ComposedComponent: typeof FormulaEditor;
289
289
  }, {}> & {
290
290
  ComposedComponent: {
291
- new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
291
+ new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
292
292
  locale?: string | undefined;
293
293
  translate?: ((str: string, ...args: any[]) => string) | undefined;
294
294
  }): {
@@ -297,12 +297,12 @@ declare const _default: {
297
297
  getWrappedInstance(): any;
298
298
  render(): JSX.Element;
299
299
  context: any;
300
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
300
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
301
301
  locale?: string | undefined;
302
302
  translate?: ((str: string, ...args: any[]) => string) | undefined;
303
303
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
304
304
  forceUpdate(callback?: (() => void) | undefined): void;
305
- readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
305
+ readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
306
306
  locale?: string | undefined;
307
307
  translate?: ((str: string, ...args: any[]) => string) | undefined;
308
308
  }> & Readonly<{
@@ -313,35 +313,35 @@ declare const _default: {
313
313
  [key: string]: React.ReactInstance;
314
314
  };
315
315
  componentDidMount?(): void;
316
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
316
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
317
317
  locale?: string | undefined;
318
318
  translate?: ((str: string, ...args: any[]) => string) | undefined;
319
319
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
320
320
  componentWillUnmount?(): void;
321
321
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
322
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
322
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
323
323
  locale?: string | undefined;
324
324
  translate?: ((str: string, ...args: any[]) => string) | undefined;
325
325
  }>, prevState: Readonly<{}>): any;
326
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
326
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
327
327
  locale?: string | undefined;
328
328
  translate?: ((str: string, ...args: any[]) => string) | undefined;
329
329
  }>, prevState: Readonly<{}>, snapshot?: any): void;
330
330
  componentWillMount?(): void;
331
331
  UNSAFE_componentWillMount?(): void;
332
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
332
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
333
333
  locale?: string | undefined;
334
334
  translate?: ((str: string, ...args: any[]) => string) | undefined;
335
335
  }>, nextContext: any): void;
336
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
336
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
337
337
  locale?: string | undefined;
338
338
  translate?: ((str: string, ...args: any[]) => string) | undefined;
339
339
  }>, nextContext: any): void;
340
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
340
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
341
341
  locale?: string | undefined;
342
342
  translate?: ((str: string, ...args: any[]) => string) | undefined;
343
343
  }>, nextState: Readonly<{}>, nextContext: any): void;
344
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "onChange" | "value" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
344
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "header" | "value" | "onChange" | "functions" | "selfVariableName" | "variableMode" | "variableClassName" | "functionClassName"> & Partial<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "variables" | "evalMode">> & Partial<Pick<Pick<FormulaEditorProps, "variables" | "evalMode">, never>> & {
345
345
  locale?: string | undefined;
346
346
  translate?: ((str: string, ...args: any[]) => string) | undefined;
347
347
  }>, nextState: Readonly<{}>, nextContext: any): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.3.1
2
+ * amis-ui v2.4.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5