amis-ui 6.2.2 → 6.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 (815) hide show
  1. package/esm/_virtual/_commonjsHelpers.js +10 -0
  2. package/esm/_virtual/pdf.worker.min.js +8 -0
  3. package/esm/components/404.js +1 -1
  4. package/esm/components/Alert.d.ts +124 -122
  5. package/esm/components/Alert.js +10 -6
  6. package/esm/components/Alert2.d.ts +20 -20
  7. package/esm/components/Alert2.js +1 -1
  8. package/esm/components/AnchorNav.d.ts +20 -20
  9. package/esm/components/AnchorNav.js +1 -1
  10. package/esm/components/ArrayInput.d.ts +40 -40
  11. package/esm/components/ArrayInput.js +1 -1
  12. package/esm/components/AsideNav.d.ts +2 -1
  13. package/esm/components/AsideNav.js +6 -3
  14. package/esm/components/AssociatedSelection.d.ts +120 -120
  15. package/esm/components/AssociatedSelection.js +4 -4
  16. package/esm/components/Avatar.d.ts +140 -140
  17. package/esm/components/Avatar.js +1 -1
  18. package/esm/components/Badge.js +1 -1
  19. package/esm/components/BaiduMapPicker.js +1 -1
  20. package/esm/components/BarCode.js +1 -1
  21. package/esm/components/Breadcrumb.d.ts +3 -0
  22. package/esm/components/Breadcrumb.js +7 -6
  23. package/esm/components/Button.d.ts +32 -31
  24. package/esm/components/Button.js +4 -4
  25. package/esm/components/CalendarMobile.d.ts +45 -40
  26. package/esm/components/CalendarMobile.js +41 -6
  27. package/esm/components/Card.d.ts +140 -140
  28. package/esm/components/Card.js +1 -1
  29. package/esm/components/Cascader.js +1 -1
  30. package/esm/components/ChainedDropdownSelection.d.ts +120 -120
  31. package/esm/components/ChainedDropdownSelection.js +1 -1
  32. package/esm/components/ChainedSelection.d.ts +120 -120
  33. package/esm/components/ChainedSelection.js +8 -6
  34. package/esm/components/Checkbox.d.ts +12 -11
  35. package/esm/components/Checkbox.js +7 -7
  36. package/esm/components/CityArea.js +1 -1
  37. package/esm/components/CityDB.d.ts +1 -1
  38. package/esm/components/CityDB.js +377 -889
  39. package/esm/components/CodeMirror.d.ts +1 -0
  40. package/esm/components/CodeMirror.js +16 -5
  41. package/esm/components/Collapse.d.ts +140 -140
  42. package/esm/components/Collapse.js +1 -1
  43. package/esm/components/CollapseGroup.d.ts +30 -30
  44. package/esm/components/CollapseGroup.js +1 -1
  45. package/esm/components/ColorPicker.d.ts +80 -80
  46. package/esm/components/ColorPicker.js +1 -1
  47. package/esm/components/Combo.js +1 -1
  48. package/esm/components/ConfirmBox.d.ts +81 -80
  49. package/esm/components/ConfirmBox.js +6 -3
  50. package/esm/components/ContextMenu.d.ts +17 -3
  51. package/esm/components/ContextMenu.js +72 -20
  52. package/esm/components/DatePicker.d.ts +84 -82
  53. package/esm/components/DatePicker.js +12 -12
  54. package/esm/components/DateRangePicker.d.ts +133 -129
  55. package/esm/components/DateRangePicker.js +40 -27
  56. package/esm/components/DndContainer.js +1 -1
  57. package/esm/components/Drawer.d.ts +30 -30
  58. package/esm/components/Drawer.js +1 -1
  59. package/esm/components/DropDownSelection.d.ts +120 -120
  60. package/esm/components/DropDownSelection.js +1 -1
  61. package/esm/components/Editor.d.ts +120 -120
  62. package/esm/components/Editor.js +3 -3
  63. package/esm/components/Form.js +1 -1
  64. package/esm/components/FormField.js +1 -1
  65. package/esm/components/GaodeMapPicker.js +1 -1
  66. package/esm/components/GridNav.js +1 -1
  67. package/esm/components/GroupedSelection.d.ts +120 -120
  68. package/esm/components/GroupedSelection.js +5 -4
  69. package/esm/components/Html.js +1 -1
  70. package/esm/components/ImageGallery.d.ts +40 -40
  71. package/esm/components/ImageGallery.js +2 -1
  72. package/esm/components/Input.d.ts +3 -1
  73. package/esm/components/Input.js +3 -3
  74. package/esm/components/InputBox.d.ts +14 -13
  75. package/esm/components/InputBox.js +7 -7
  76. package/esm/components/InputBoxWithSuggestion.js +7 -7
  77. package/esm/components/InputTable.js +1 -1
  78. package/esm/components/Layout.d.ts +10 -10
  79. package/esm/components/Layout.js +1 -1
  80. package/esm/components/Link.js +1 -1
  81. package/esm/components/ListGroup.d.ts +10 -10
  82. package/esm/components/ListGroup.js +1 -1
  83. package/esm/components/ListMenu.d.ts +82 -80
  84. package/esm/components/ListMenu.js +3 -3
  85. package/esm/components/LocationPicker.d.ts +40 -40
  86. package/esm/components/LocationPicker.js +1 -1
  87. package/esm/components/Markdown.js +1 -1
  88. package/esm/components/Modal.d.ts +120 -120
  89. package/esm/components/Modal.js +1 -1
  90. package/esm/components/ModalManager.js +1 -1
  91. package/esm/components/MonthRangePicker.d.ts +120 -120
  92. package/esm/components/MultilineText.d.ts +40 -40
  93. package/esm/components/MultilineText.js +1 -1
  94. package/esm/components/NumberInput.d.ts +30 -21
  95. package/esm/components/NumberInput.js +36 -6
  96. package/esm/components/OverflowTpl.js +1 -1
  97. package/esm/components/Pagination.d.ts +200 -110
  98. package/esm/components/Pagination.js +21 -21
  99. package/esm/components/PdfViewer.d.ts +49 -0
  100. package/esm/components/PdfViewer.js +85 -0
  101. package/esm/components/Picker.d.ts +1 -0
  102. package/esm/components/Picker.js +4 -4
  103. package/esm/components/PickerColumn.d.ts +1 -0
  104. package/esm/components/PickerColumn.js +8 -6
  105. package/esm/components/PickerContainer.d.ts +1 -2
  106. package/esm/components/PickerContainer.js +26 -16
  107. package/esm/components/PopOverContainer.d.ts +1 -0
  108. package/esm/components/PopOverContainer.js +3 -3
  109. package/esm/components/PopUp.d.ts +120 -120
  110. package/esm/components/PopUp.js +1 -1
  111. package/esm/components/Progress.d.ts +60 -60
  112. package/esm/components/Progress.js +1 -1
  113. package/esm/components/PullRefresh.js +1 -1
  114. package/esm/components/Radios.d.ts +12 -10
  115. package/esm/components/Radios.js +4 -3
  116. package/esm/components/Range.js +1 -1
  117. package/esm/components/Rating.d.ts +20 -20
  118. package/esm/components/Rating.js +1 -1
  119. package/esm/components/ResultBox.d.ts +82 -81
  120. package/esm/components/ResultBox.js +25 -21
  121. package/esm/components/ResultList.d.ts +42 -40
  122. package/esm/components/ResultList.js +5 -4
  123. package/esm/components/ResultTableList.d.ts +120 -120
  124. package/esm/components/ResultTableList.js +5 -4
  125. package/esm/components/ResultTreeList.d.ts +40 -40
  126. package/esm/components/ResultTreeList.js +3 -3
  127. package/esm/components/RichText.js +1 -1
  128. package/esm/components/SearchBox.d.ts +82 -81
  129. package/esm/components/SearchBox.js +8 -8
  130. package/esm/components/Select.d.ts +1363 -1354
  131. package/esm/components/Select.js +13 -12
  132. package/esm/components/SelectMobile.js +22 -19
  133. package/esm/components/Selection.d.ts +122 -120
  134. package/esm/components/Selection.js +1 -1
  135. package/esm/components/Signature.d.ts +280 -0
  136. package/esm/components/Signature.js +271 -0
  137. package/esm/components/SparkLine.d.ts +40 -40
  138. package/esm/components/SparkLine.js +1 -1
  139. package/esm/components/Spinner.d.ts +60 -60
  140. package/esm/components/Spinner.js +1 -1
  141. package/esm/components/Steps.js +1 -1
  142. package/esm/components/Switch.d.ts +12 -12
  143. package/esm/components/Switch.js +4 -4
  144. package/esm/components/TableSelection.d.ts +120 -120
  145. package/esm/components/TableSelection.js +6 -5
  146. package/esm/components/Tabs.d.ts +83 -81
  147. package/esm/components/Tabs.js +21 -22
  148. package/esm/components/TabsTransfer.d.ts +40 -40
  149. package/esm/components/TabsTransfer.js +16 -14
  150. package/esm/components/TabsTransferPicker.js +1 -1
  151. package/esm/components/Tag.d.ts +70 -70
  152. package/esm/components/Tag.js +1 -1
  153. package/esm/components/Textarea.d.ts +42 -42
  154. package/esm/components/Textarea.js +4 -4
  155. package/esm/components/Timeline.js +1 -1
  156. package/esm/components/TimelineItem.d.ts +1 -1
  157. package/esm/components/TimelineItem.js +1 -1
  158. package/esm/components/Tinymce.js +7 -4
  159. package/esm/components/TitleBar.d.ts +10 -10
  160. package/esm/components/TitleBar.js +1 -1
  161. package/esm/components/Toast.d.ts +120 -120
  162. package/esm/components/Toast.js +1 -1
  163. package/esm/components/Tooltip.js +1 -1
  164. package/esm/components/TooltipWrapper.d.ts +32 -32
  165. package/esm/components/TooltipWrapper.js +1 -1
  166. package/esm/components/Transfer.d.ts +174 -172
  167. package/esm/components/Transfer.js +16 -16
  168. package/esm/components/TransferDropDown.d.ts +160 -160
  169. package/esm/components/TransferDropDown.js +1 -1
  170. package/esm/components/TransferPicker.js +1 -1
  171. package/esm/components/TransferSearch.js +1 -1
  172. package/esm/components/Tree.d.ts +206 -210
  173. package/esm/components/Tree.js +32 -30
  174. package/esm/components/TreeSelection.d.ts +120 -120
  175. package/esm/components/TreeSelection.js +1 -1
  176. package/esm/components/UserSelect.d.ts +40 -40
  177. package/esm/components/UserSelect.js +1 -1
  178. package/esm/components/UserTabSelect.d.ts +40 -40
  179. package/esm/components/UserTabSelect.js +1 -1
  180. package/esm/components/WithRemoteConfig.d.ts +9 -0
  181. package/esm/components/WithRemoteConfig.js +19 -3
  182. package/esm/components/WithStore.js +1 -1
  183. package/esm/components/calendar/Calendar.d.ts +2 -1
  184. package/esm/components/calendar/Calendar.js +7 -6
  185. package/esm/components/calendar/CalendarContainer.js +1 -1
  186. package/esm/components/calendar/DaysView.d.ts +2 -1
  187. package/esm/components/calendar/DaysView.js +17 -15
  188. package/esm/components/calendar/MonthsView.d.ts +2 -0
  189. package/esm/components/calendar/MonthsView.js +8 -6
  190. package/esm/components/calendar/QuartersView.d.ts +2 -0
  191. package/esm/components/calendar/QuartersView.js +7 -6
  192. package/esm/components/calendar/TimeView.d.ts +2 -0
  193. package/esm/components/calendar/TimeView.js +8 -7
  194. package/esm/components/calendar/YearsView.d.ts +2 -0
  195. package/esm/components/calendar/YearsView.js +6 -5
  196. package/esm/components/condition-builder/Expression.js +1 -1
  197. package/esm/components/condition-builder/Field.js +1 -1
  198. package/esm/components/condition-builder/Func.js +1 -1
  199. package/esm/components/condition-builder/Group.js +1 -1
  200. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  201. package/esm/components/condition-builder/InputSwitch.js +1 -1
  202. package/esm/components/condition-builder/Item.js +1 -1
  203. package/esm/components/condition-builder/Value.d.ts +1 -0
  204. package/esm/components/condition-builder/Value.js +30 -14
  205. package/esm/components/condition-builder/config.js +1 -1
  206. package/esm/components/condition-builder/index.js +1 -1
  207. package/esm/components/formula/CodeEditor.d.ts +92 -0
  208. package/esm/components/formula/CodeEditor.js +99 -0
  209. package/esm/components/formula/Editor.d.ts +64 -69
  210. package/esm/components/formula/Editor.js +173 -81
  211. package/esm/components/formula/FuncList.d.ts +1 -1
  212. package/esm/components/formula/FuncList.js +10 -9
  213. package/esm/components/formula/Input.d.ts +68 -54
  214. package/esm/components/formula/Input.js +45 -102
  215. package/esm/components/formula/Picker.d.ts +74 -60
  216. package/esm/components/formula/Picker.js +129 -69
  217. package/esm/components/formula/VariableList.d.ts +1 -1
  218. package/esm/components/formula/VariableList.js +26 -12
  219. package/esm/components/formula/plugin.d.ts +28 -7
  220. package/esm/components/formula/plugin.js +217 -90
  221. package/esm/components/icons.d.ts +4 -2
  222. package/esm/components/icons.js +14 -5
  223. package/esm/components/index.d.ts +5 -3
  224. package/esm/components/json-schema/Array.js +2 -2
  225. package/esm/components/json-schema/Item.d.ts +3 -1
  226. package/esm/components/json-schema/Item.js +35 -9
  227. package/esm/components/json-schema/Object.d.ts +3 -1
  228. package/esm/components/json-schema/Object.js +112 -52
  229. package/esm/components/json-schema/index.d.ts +53 -50
  230. package/esm/components/json-schema/index.js +14 -5
  231. package/esm/components/menu/MenuContext.js +1 -1
  232. package/esm/components/menu/MenuItem.d.ts +2 -1
  233. package/esm/components/menu/MenuItem.js +4 -4
  234. package/esm/components/menu/SubMenu.d.ts +2 -1
  235. package/esm/components/menu/SubMenu.js +6 -6
  236. package/esm/components/menu/index.d.ts +66 -63
  237. package/esm/components/menu/index.js +10 -7
  238. package/esm/components/schema-editor/Array.js +23 -8
  239. package/esm/components/schema-editor/Common.d.ts +17 -1
  240. package/esm/components/schema-editor/Common.js +84 -37
  241. package/esm/components/schema-editor/Item.js +2 -2
  242. package/esm/components/schema-editor/Object.d.ts +7 -1
  243. package/esm/components/schema-editor/Object.js +106 -14
  244. package/esm/components/schema-editor/SchemaVariableList.d.ts +1 -1
  245. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  246. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  247. package/esm/components/schema-editor/index.d.ts +48 -40
  248. package/esm/components/schema-editor/index.js +4 -4
  249. package/esm/components/table/Cell.d.ts +2 -0
  250. package/esm/components/table/Cell.js +4 -4
  251. package/esm/components/table/ColGroup.js +1 -1
  252. package/esm/components/table/Head.d.ts +2 -0
  253. package/esm/components/table/Head.js +12 -9
  254. package/esm/components/table/HeadCellDropDown.d.ts +2 -0
  255. package/esm/components/table/HeadCellDropDown.js +1 -1
  256. package/esm/components/table/HeadCellFilter.d.ts +42 -40
  257. package/esm/components/table/HeadCellFilter.js +8 -8
  258. package/esm/components/table/HeadCellSelect.d.ts +40 -40
  259. package/esm/components/table/HeadCellSelect.js +1 -1
  260. package/esm/components/table/HeadCellSort.d.ts +2 -0
  261. package/esm/components/table/HeadCellSort.js +8 -8
  262. package/esm/components/table/ItemActionsWrapper.js +1 -1
  263. package/esm/components/table/Row.d.ts +2 -0
  264. package/esm/components/table/Row.js +4 -3
  265. package/esm/components/table/SummaryRow.js +1 -1
  266. package/esm/components/table/index.d.ts +162 -160
  267. package/esm/components/table/index.js +7 -5
  268. package/esm/components/table/util.d.ts +7 -7
  269. package/esm/components/table/util.js +4 -2
  270. package/esm/components/virtual-list/AutoSizer.js +1 -1
  271. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  272. package/esm/components/virtual-list/constants.js +1 -1
  273. package/esm/components/virtual-list/index.js +1 -1
  274. package/esm/hooks/use-set-state.js +1 -1
  275. package/esm/hooks/use-sub-form.js +1 -1
  276. package/esm/hooks/use-touch.js +1 -1
  277. package/esm/hooks/use-update-effect.js +1 -1
  278. package/esm/hooks/use-validation-resolver.js +1 -1
  279. package/esm/icons/alert-danger.svg.js +1 -1
  280. package/esm/icons/alert-info.svg.js +1 -1
  281. package/esm/icons/alert-success.svg.js +1 -1
  282. package/esm/icons/alert-warning.svg.js +1 -1
  283. package/esm/icons/arrow-double-left.svg.js +1 -1
  284. package/esm/icons/arrow-double-right.svg.js +1 -1
  285. package/esm/icons/back.svg.js +1 -1
  286. package/esm/icons/calendar.svg.js +1 -1
  287. package/esm/icons/caret.svg.js +1 -1
  288. package/esm/icons/check.svg.js +1 -1
  289. package/esm/icons/clock.svg.js +1 -1
  290. package/esm/icons/close-small.svg.js +1 -1
  291. package/esm/icons/close.svg.js +1 -1
  292. package/esm/icons/cloud-upload.svg.js +1 -1
  293. package/esm/icons/column-filter.svg.js +1 -1
  294. package/esm/icons/columns.svg.js +1 -1
  295. package/esm/icons/compress-alt.svg.js +1 -1
  296. package/esm/icons/copy.svg.js +1 -1
  297. package/esm/icons/date.svg.js +1 -1
  298. package/esm/icons/department.svg.js +1 -1
  299. package/esm/icons/desk-empty.svg.js +1 -1
  300. package/esm/icons/dot.svg.js +1 -1
  301. package/esm/icons/down-arrow-bold.svg.js +1 -1
  302. package/esm/icons/down.svg.js +1 -1
  303. package/esm/icons/download.svg.js +1 -1
  304. package/esm/icons/drag-bar.svg.js +1 -1
  305. package/esm/icons/drag.svg.js +1 -1
  306. package/esm/icons/edit.svg.js +1 -1
  307. package/esm/icons/ellipsis-v.svg.js +1 -1
  308. package/esm/icons/enter.svg.js +1 -1
  309. package/esm/icons/exchange.svg.js +1 -1
  310. package/esm/icons/expand-alt.svg.js +1 -1
  311. package/esm/icons/fail.svg.js +1 -1
  312. package/esm/icons/file.svg.js +1 -1
  313. package/esm/icons/filter.svg.js +1 -1
  314. package/esm/icons/folder.svg.js +1 -1
  315. package/esm/icons/fullscreen.svg.js +21 -0
  316. package/esm/icons/function.svg.js +1 -1
  317. package/esm/icons/home.svg.js +1 -1
  318. package/esm/icons/if.svg.js +1 -1
  319. package/esm/icons/image.svg.js +1 -1
  320. package/esm/icons/info-circle.svg.js +1 -1
  321. package/esm/icons/info.svg.js +1 -1
  322. package/esm/icons/input-clear.svg.js +1 -1
  323. package/esm/icons/invisible.svg.js +1 -1
  324. package/esm/icons/left-arrow.svg.js +1 -1
  325. package/esm/icons/loading-outline.svg.js +1 -1
  326. package/esm/icons/location.svg.js +1 -1
  327. package/esm/icons/menu.svg.js +1 -1
  328. package/esm/icons/minus.svg.js +1 -1
  329. package/esm/icons/move.svg.js +1 -1
  330. package/esm/icons/mute.svg.js +1 -1
  331. package/esm/icons/new-edit.svg.js +1 -1
  332. package/esm/icons/pause.svg.js +1 -1
  333. package/esm/icons/pencil.svg.js +1 -1
  334. package/esm/icons/play.svg.js +1 -1
  335. package/esm/icons/plus-cicle.svg.js +1 -1
  336. package/esm/icons/plus-fine.svg.js +1 -1
  337. package/esm/icons/plus.svg.js +1 -1
  338. package/esm/icons/post.svg.js +1 -1
  339. package/esm/icons/question-mark.svg.js +1 -1
  340. package/esm/icons/question.svg.js +1 -1
  341. package/esm/icons/redo.svg.js +1 -1
  342. package/esm/icons/refresh.svg.js +1 -1
  343. package/esm/icons/reload.svg.js +1 -1
  344. package/esm/icons/remove.svg.js +1 -1
  345. package/esm/icons/retry.svg.js +1 -1
  346. package/esm/icons/right-arrow-bold.svg.js +1 -1
  347. package/esm/icons/right-arrow.svg.js +1 -1
  348. package/esm/icons/right-double-arrow.svg.js +1 -1
  349. package/esm/icons/role.svg.js +1 -1
  350. package/esm/icons/rotate-left.svg.js +1 -1
  351. package/esm/icons/rotate-right.svg.js +1 -1
  352. package/esm/icons/scale-origin.svg.js +1 -1
  353. package/esm/icons/schedule.svg.js +1 -1
  354. package/esm/icons/search.svg.js +1 -1
  355. package/esm/icons/setting.svg.js +1 -1
  356. package/esm/icons/slider-handle-icon.svg.js +1 -1
  357. package/esm/icons/sort-asc.svg.js +1 -1
  358. package/esm/icons/sort-default.svg.js +1 -1
  359. package/esm/icons/sort-desc.svg.js +1 -1
  360. package/esm/icons/star.svg.js +1 -1
  361. package/esm/icons/status-close.svg.js +1 -1
  362. package/esm/icons/steps-finsh.svg.js +1 -1
  363. package/esm/icons/sub-plus.svg.js +20 -0
  364. package/esm/icons/success.svg.js +1 -1
  365. package/esm/icons/transparent.svg.js +1 -1
  366. package/esm/icons/trash.svg.js +1 -1
  367. package/esm/icons/tree-down.svg.js +1 -1
  368. package/esm/icons/undo-normal.svg.js +25 -0
  369. package/esm/icons/undo.svg.js +1 -1
  370. package/esm/icons/unfullscreen.svg.js +21 -0
  371. package/esm/icons/upload.svg.js +1 -1
  372. package/esm/icons/user-remove.svg.js +1 -1
  373. package/esm/icons/view.svg.js +1 -1
  374. package/esm/icons/volume.svg.js +1 -1
  375. package/esm/icons/warning-mark.svg.js +1 -1
  376. package/esm/icons/warning.svg.js +1 -1
  377. package/esm/icons/window-restore.svg.js +1 -1
  378. package/esm/icons/zoom-in.svg.js +1 -1
  379. package/esm/icons/zoom-out.svg.js +1 -1
  380. package/esm/index.js +4 -2
  381. package/esm/locale/de-DE.js +27 -11
  382. package/esm/locale/en-US.js +18 -2
  383. package/esm/locale/zh-CN.js +19 -3
  384. package/esm/node_modules/pdfjs-dist/build/pdf.worker.min.js +37 -0
  385. package/esm/node_modules/smooth-signature/es/index.js +506 -0
  386. package/esm/themes/ang.js +1 -1
  387. package/esm/themes/antd.js +1 -1
  388. package/esm/themes/cxd.js +1 -1
  389. package/esm/themes/dark.js +1 -1
  390. package/lib/_virtual/_commonjsHelpers.js +14 -0
  391. package/lib/_virtual/pdf.worker.min.js +12 -0
  392. package/lib/components/404.js +1 -1
  393. package/lib/components/Alert.d.ts +124 -122
  394. package/lib/components/Alert.js +10 -6
  395. package/lib/components/Alert2.d.ts +20 -20
  396. package/lib/components/Alert2.js +1 -1
  397. package/lib/components/AnchorNav.d.ts +20 -20
  398. package/lib/components/AnchorNav.js +1 -1
  399. package/lib/components/ArrayInput.d.ts +40 -40
  400. package/lib/components/ArrayInput.js +1 -1
  401. package/lib/components/AsideNav.d.ts +12 -11
  402. package/lib/components/AsideNav.js +5 -2
  403. package/lib/components/AssociatedSelection.d.ts +80 -80
  404. package/lib/components/AssociatedSelection.js +4 -4
  405. package/lib/components/Avatar.d.ts +70 -70
  406. package/lib/components/Avatar.js +1 -1
  407. package/lib/components/Badge.d.ts +1 -1
  408. package/lib/components/Badge.js +1 -1
  409. package/lib/components/BaiduMapPicker.js +1 -1
  410. package/lib/components/BarCode.js +1 -1
  411. package/lib/components/Breadcrumb.d.ts +3 -0
  412. package/lib/components/Breadcrumb.js +7 -6
  413. package/lib/components/Button.d.ts +42 -41
  414. package/lib/components/Button.js +3 -3
  415. package/lib/components/CalendarMobile.d.ts +85 -80
  416. package/lib/components/CalendarMobile.js +41 -6
  417. package/lib/components/Card.d.ts +110 -110
  418. package/lib/components/Card.js +1 -1
  419. package/lib/components/Cascader.js +1 -1
  420. package/lib/components/ChainedDropdownSelection.d.ts +80 -80
  421. package/lib/components/ChainedDropdownSelection.js +1 -1
  422. package/lib/components/ChainedSelection.d.ts +80 -80
  423. package/lib/components/ChainedSelection.js +8 -6
  424. package/lib/components/Checkbox.d.ts +12 -11
  425. package/lib/components/Checkbox.js +6 -6
  426. package/lib/components/CityArea.js +1 -1
  427. package/lib/components/CityDB.d.ts +1 -1
  428. package/lib/components/CityDB.js +377 -889
  429. package/lib/components/CodeMirror.d.ts +1 -0
  430. package/lib/components/CodeMirror.js +15 -4
  431. package/lib/components/Collapse.d.ts +140 -140
  432. package/lib/components/Collapse.js +1 -1
  433. package/lib/components/CollapseGroup.d.ts +20 -20
  434. package/lib/components/CollapseGroup.js +1 -1
  435. package/lib/components/ColorPicker.d.ts +40 -40
  436. package/lib/components/ColorPicker.js +1 -1
  437. package/lib/components/Combo.js +1 -1
  438. package/lib/components/ConfirmBox.d.ts +81 -80
  439. package/lib/components/ConfirmBox.js +6 -3
  440. package/lib/components/ContextMenu.d.ts +17 -3
  441. package/lib/components/ContextMenu.js +73 -20
  442. package/lib/components/DatePicker.d.ts +124 -122
  443. package/lib/components/DatePicker.js +12 -12
  444. package/lib/components/DateRangePicker.d.ts +293 -289
  445. package/lib/components/DateRangePicker.js +40 -27
  446. package/lib/components/DndContainer.js +1 -1
  447. package/lib/components/Drawer.d.ts +30 -30
  448. package/lib/components/Drawer.js +1 -1
  449. package/lib/components/DropDownSelection.d.ts +80 -80
  450. package/lib/components/DropDownSelection.js +1 -1
  451. package/lib/components/Editor.d.ts +120 -120
  452. package/lib/components/Editor.js +3 -3
  453. package/lib/components/Form.js +1 -1
  454. package/lib/components/FormField.js +1 -1
  455. package/lib/components/GaodeMapPicker.js +1 -1
  456. package/lib/components/GridNav.js +1 -1
  457. package/lib/components/GroupedSelection.d.ts +80 -80
  458. package/lib/components/GroupedSelection.js +5 -4
  459. package/lib/components/Html.js +1 -1
  460. package/lib/components/ImageGallery.d.ts +40 -40
  461. package/lib/components/ImageGallery.js +2 -1
  462. package/lib/components/Input.d.ts +3 -1
  463. package/lib/components/Input.js +3 -3
  464. package/lib/components/InputBox.d.ts +14 -13
  465. package/lib/components/InputBox.js +6 -6
  466. package/lib/components/InputBoxWithSuggestion.js +7 -7
  467. package/lib/components/InputTable.js +1 -1
  468. package/lib/components/Layout.d.ts +10 -10
  469. package/lib/components/Layout.js +1 -1
  470. package/lib/components/Link.js +1 -1
  471. package/lib/components/ListGroup.d.ts +10 -10
  472. package/lib/components/ListGroup.js +1 -1
  473. package/lib/components/ListMenu.d.ts +82 -80
  474. package/lib/components/ListMenu.js +3 -3
  475. package/lib/components/LocationPicker.d.ts +40 -40
  476. package/lib/components/LocationPicker.js +1 -1
  477. package/lib/components/Markdown.js +1 -1
  478. package/lib/components/Modal.d.ts +80 -80
  479. package/lib/components/Modal.js +1 -1
  480. package/lib/components/ModalManager.js +1 -1
  481. package/lib/components/MonthRangePicker.d.ts +160 -160
  482. package/lib/components/MultilineText.d.ts +40 -40
  483. package/lib/components/MultilineText.js +1 -1
  484. package/lib/components/NumberInput.d.ts +30 -21
  485. package/lib/components/NumberInput.js +36 -6
  486. package/lib/components/OverflowTpl.js +1 -1
  487. package/lib/components/Pagination.d.ts +200 -110
  488. package/lib/components/Pagination.js +20 -20
  489. package/lib/components/PdfViewer.d.ts +49 -0
  490. package/lib/components/PdfViewer.js +91 -0
  491. package/lib/components/Picker.d.ts +1 -0
  492. package/lib/components/Picker.js +4 -4
  493. package/lib/components/PickerColumn.d.ts +1 -0
  494. package/lib/components/PickerColumn.js +7 -5
  495. package/lib/components/PickerContainer.d.ts +1 -2
  496. package/lib/components/PickerContainer.js +26 -16
  497. package/lib/components/PopOverContainer.d.ts +1 -0
  498. package/lib/components/PopOverContainer.js +3 -3
  499. package/lib/components/PopUp.d.ts +40 -40
  500. package/lib/components/PopUp.js +1 -1
  501. package/lib/components/Progress.d.ts +50 -50
  502. package/lib/components/Progress.js +1 -1
  503. package/lib/components/PullRefresh.js +1 -1
  504. package/lib/components/Radios.d.ts +12 -10
  505. package/lib/components/Radios.js +4 -3
  506. package/lib/components/Range.js +1 -1
  507. package/lib/components/Rating.d.ts +10 -10
  508. package/lib/components/Rating.js +1 -1
  509. package/lib/components/ResultBox.d.ts +82 -81
  510. package/lib/components/ResultBox.js +25 -21
  511. package/lib/components/ResultList.d.ts +42 -40
  512. package/lib/components/ResultList.js +5 -4
  513. package/lib/components/ResultTableList.d.ts +80 -80
  514. package/lib/components/ResultTableList.js +5 -4
  515. package/lib/components/ResultTreeList.d.ts +40 -40
  516. package/lib/components/ResultTreeList.js +3 -3
  517. package/lib/components/RichText.js +1 -1
  518. package/lib/components/SearchBox.d.ts +82 -81
  519. package/lib/components/SearchBox.js +7 -7
  520. package/lib/components/Select.d.ts +1366 -1357
  521. package/lib/components/Select.js +12 -11
  522. package/lib/components/SelectMobile.js +22 -19
  523. package/lib/components/Selection.d.ts +82 -80
  524. package/lib/components/Selection.js +1 -1
  525. package/lib/components/Signature.d.ts +280 -0
  526. package/lib/components/Signature.js +275 -0
  527. package/lib/components/SparkLine.d.ts +40 -40
  528. package/lib/components/SparkLine.js +1 -1
  529. package/lib/components/Spinner.d.ts +60 -60
  530. package/lib/components/Spinner.js +1 -1
  531. package/lib/components/Steps.js +1 -1
  532. package/lib/components/Switch.d.ts +12 -12
  533. package/lib/components/Switch.js +3 -3
  534. package/lib/components/TableSelection.d.ts +80 -80
  535. package/lib/components/TableSelection.js +6 -5
  536. package/lib/components/Tabs.d.ts +83 -81
  537. package/lib/components/Tabs.js +21 -22
  538. package/lib/components/TabsTransfer.d.ts +40 -40
  539. package/lib/components/TabsTransfer.js +16 -14
  540. package/lib/components/TabsTransferPicker.js +1 -1
  541. package/lib/components/Tag.d.ts +70 -70
  542. package/lib/components/Tag.js +1 -1
  543. package/lib/components/Textarea.d.ts +42 -42
  544. package/lib/components/Textarea.js +3 -3
  545. package/lib/components/Timeline.js +1 -1
  546. package/lib/components/TimelineItem.d.ts +1 -1
  547. package/lib/components/TimelineItem.js +1 -1
  548. package/lib/components/Tinymce.js +7 -4
  549. package/lib/components/TitleBar.d.ts +10 -10
  550. package/lib/components/TitleBar.js +1 -1
  551. package/lib/components/Toast.d.ts +80 -80
  552. package/lib/components/Toast.js +1 -1
  553. package/lib/components/Tooltip.js +1 -1
  554. package/lib/components/TooltipWrapper.d.ts +42 -42
  555. package/lib/components/TooltipWrapper.js +1 -1
  556. package/lib/components/Transfer.d.ts +192 -190
  557. package/lib/components/Transfer.js +16 -16
  558. package/lib/components/TransferDropDown.d.ts +160 -160
  559. package/lib/components/TransferDropDown.js +1 -1
  560. package/lib/components/TransferPicker.js +1 -1
  561. package/lib/components/TransferSearch.js +1 -1
  562. package/lib/components/Tree.d.ts +286 -290
  563. package/lib/components/Tree.js +31 -29
  564. package/lib/components/TreeSelection.d.ts +120 -120
  565. package/lib/components/TreeSelection.js +1 -1
  566. package/lib/components/UserSelect.d.ts +40 -40
  567. package/lib/components/UserSelect.js +1 -1
  568. package/lib/components/UserTabSelect.d.ts +40 -40
  569. package/lib/components/UserTabSelect.js +1 -1
  570. package/lib/components/WithRemoteConfig.d.ts +9 -0
  571. package/lib/components/WithRemoteConfig.js +19 -3
  572. package/lib/components/WithStore.js +1 -1
  573. package/lib/components/calendar/Calendar.d.ts +2 -1
  574. package/lib/components/calendar/Calendar.js +6 -5
  575. package/lib/components/calendar/CalendarContainer.js +1 -1
  576. package/lib/components/calendar/DaysView.d.ts +2 -1
  577. package/lib/components/calendar/DaysView.js +17 -15
  578. package/lib/components/calendar/MonthsView.d.ts +2 -0
  579. package/lib/components/calendar/MonthsView.js +8 -6
  580. package/lib/components/calendar/QuartersView.d.ts +2 -0
  581. package/lib/components/calendar/QuartersView.js +7 -6
  582. package/lib/components/calendar/TimeView.d.ts +2 -0
  583. package/lib/components/calendar/TimeView.js +8 -7
  584. package/lib/components/calendar/YearsView.d.ts +2 -0
  585. package/lib/components/calendar/YearsView.js +6 -5
  586. package/lib/components/condition-builder/Expression.js +1 -1
  587. package/lib/components/condition-builder/Field.js +1 -1
  588. package/lib/components/condition-builder/Func.js +1 -1
  589. package/lib/components/condition-builder/Group.js +1 -1
  590. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  591. package/lib/components/condition-builder/InputSwitch.js +1 -1
  592. package/lib/components/condition-builder/Item.js +1 -1
  593. package/lib/components/condition-builder/Value.d.ts +1 -0
  594. package/lib/components/condition-builder/Value.js +28 -12
  595. package/lib/components/condition-builder/config.js +1 -1
  596. package/lib/components/condition-builder/index.d.ts +1 -1
  597. package/lib/components/condition-builder/index.js +1 -1
  598. package/lib/components/formula/CodeEditor.d.ts +92 -0
  599. package/lib/components/formula/CodeEditor.js +110 -0
  600. package/lib/components/formula/Editor.d.ts +64 -69
  601. package/lib/components/formula/Editor.js +172 -78
  602. package/lib/components/formula/FuncList.d.ts +1 -1
  603. package/lib/components/formula/FuncList.js +10 -9
  604. package/lib/components/formula/Input.d.ts +68 -54
  605. package/lib/components/formula/Input.js +43 -101
  606. package/lib/components/formula/Picker.d.ts +74 -60
  607. package/lib/components/formula/Picker.js +128 -68
  608. package/lib/components/formula/VariableList.d.ts +1 -1
  609. package/lib/components/formula/VariableList.js +24 -10
  610. package/lib/components/formula/plugin.d.ts +28 -7
  611. package/lib/components/formula/plugin.js +220 -89
  612. package/lib/components/icons.d.ts +4 -2
  613. package/lib/components/icons.js +14 -5
  614. package/lib/components/index.d.ts +5 -3
  615. package/lib/components/json-schema/Array.js +3 -3
  616. package/lib/components/json-schema/Item.d.ts +3 -1
  617. package/lib/components/json-schema/Item.js +39 -8
  618. package/lib/components/json-schema/Object.d.ts +3 -1
  619. package/lib/components/json-schema/Object.js +113 -51
  620. package/lib/components/json-schema/index.d.ts +53 -50
  621. package/lib/components/json-schema/index.js +18 -5
  622. package/lib/components/menu/MenuContext.js +1 -1
  623. package/lib/components/menu/MenuItem.d.ts +2 -1
  624. package/lib/components/menu/MenuItem.js +3 -3
  625. package/lib/components/menu/SubMenu.d.ts +2 -1
  626. package/lib/components/menu/SubMenu.js +5 -5
  627. package/lib/components/menu/index.d.ts +86 -83
  628. package/lib/components/menu/index.js +10 -7
  629. package/lib/components/schema-editor/Array.js +23 -8
  630. package/lib/components/schema-editor/Common.d.ts +17 -1
  631. package/lib/components/schema-editor/Common.js +83 -36
  632. package/lib/components/schema-editor/Item.js +2 -2
  633. package/lib/components/schema-editor/Object.d.ts +7 -1
  634. package/lib/components/schema-editor/Object.js +105 -13
  635. package/lib/components/schema-editor/SchemaVariableList.d.ts +1 -1
  636. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  637. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  638. package/lib/components/schema-editor/index.d.ts +48 -40
  639. package/lib/components/schema-editor/index.js +4 -4
  640. package/lib/components/table/Cell.d.ts +2 -0
  641. package/lib/components/table/Cell.js +4 -4
  642. package/lib/components/table/ColGroup.js +1 -1
  643. package/lib/components/table/Head.d.ts +2 -0
  644. package/lib/components/table/Head.js +12 -9
  645. package/lib/components/table/HeadCellDropDown.d.ts +2 -0
  646. package/lib/components/table/HeadCellDropDown.js +1 -1
  647. package/lib/components/table/HeadCellFilter.d.ts +82 -80
  648. package/lib/components/table/HeadCellFilter.js +8 -8
  649. package/lib/components/table/HeadCellSelect.d.ts +40 -40
  650. package/lib/components/table/HeadCellSelect.js +1 -1
  651. package/lib/components/table/HeadCellSort.d.ts +2 -0
  652. package/lib/components/table/HeadCellSort.js +7 -7
  653. package/lib/components/table/ItemActionsWrapper.js +1 -1
  654. package/lib/components/table/Row.d.ts +2 -0
  655. package/lib/components/table/Row.js +4 -3
  656. package/lib/components/table/SummaryRow.js +1 -1
  657. package/lib/components/table/index.d.ts +122 -120
  658. package/lib/components/table/index.js +7 -5
  659. package/lib/components/table/util.d.ts +7 -7
  660. package/lib/components/table/util.js +4 -2
  661. package/lib/components/virtual-list/AutoSizer.js +1 -1
  662. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  663. package/lib/components/virtual-list/constants.js +1 -1
  664. package/lib/components/virtual-list/index.js +1 -1
  665. package/lib/hooks/use-set-state.js +1 -1
  666. package/lib/hooks/use-sub-form.js +1 -1
  667. package/lib/hooks/use-touch.js +1 -1
  668. package/lib/hooks/use-update-effect.js +1 -1
  669. package/lib/hooks/use-validation-resolver.js +1 -1
  670. package/lib/icons/alert-danger.svg.js +1 -1
  671. package/lib/icons/alert-info.svg.js +1 -1
  672. package/lib/icons/alert-success.svg.js +1 -1
  673. package/lib/icons/alert-warning.svg.js +1 -1
  674. package/lib/icons/arrow-double-left.svg.js +1 -1
  675. package/lib/icons/arrow-double-right.svg.js +1 -1
  676. package/lib/icons/back.svg.js +1 -1
  677. package/lib/icons/calendar.svg.js +1 -1
  678. package/lib/icons/caret.svg.js +1 -1
  679. package/lib/icons/check.svg.js +1 -1
  680. package/lib/icons/clock.svg.js +1 -1
  681. package/lib/icons/close-small.svg.js +1 -1
  682. package/lib/icons/close.svg.js +1 -1
  683. package/lib/icons/cloud-upload.svg.js +1 -1
  684. package/lib/icons/column-filter.svg.js +1 -1
  685. package/lib/icons/columns.svg.js +1 -1
  686. package/lib/icons/compress-alt.svg.js +1 -1
  687. package/lib/icons/copy.svg.js +1 -1
  688. package/lib/icons/date.svg.js +1 -1
  689. package/lib/icons/department.svg.js +1 -1
  690. package/lib/icons/desk-empty.svg.js +1 -1
  691. package/lib/icons/dot.svg.js +1 -1
  692. package/lib/icons/down-arrow-bold.svg.js +1 -1
  693. package/lib/icons/down.svg.js +1 -1
  694. package/lib/icons/download.svg.js +1 -1
  695. package/lib/icons/drag-bar.svg.js +1 -1
  696. package/lib/icons/drag.svg.js +1 -1
  697. package/lib/icons/edit.svg.js +1 -1
  698. package/lib/icons/ellipsis-v.svg.js +1 -1
  699. package/lib/icons/enter.svg.js +1 -1
  700. package/lib/icons/exchange.svg.js +1 -1
  701. package/lib/icons/expand-alt.svg.js +1 -1
  702. package/lib/icons/fail.svg.js +1 -1
  703. package/lib/icons/file.svg.js +1 -1
  704. package/lib/icons/filter.svg.js +1 -1
  705. package/lib/icons/folder.svg.js +1 -1
  706. package/lib/icons/fullscreen.svg.js +28 -0
  707. package/lib/icons/function.svg.js +1 -1
  708. package/lib/icons/home.svg.js +1 -1
  709. package/lib/icons/if.svg.js +1 -1
  710. package/lib/icons/image.svg.js +1 -1
  711. package/lib/icons/info-circle.svg.js +1 -1
  712. package/lib/icons/info.svg.js +1 -1
  713. package/lib/icons/input-clear.svg.js +1 -1
  714. package/lib/icons/invisible.svg.js +1 -1
  715. package/lib/icons/left-arrow.svg.js +1 -1
  716. package/lib/icons/loading-outline.svg.js +1 -1
  717. package/lib/icons/location.svg.js +1 -1
  718. package/lib/icons/menu.svg.js +1 -1
  719. package/lib/icons/minus.svg.js +1 -1
  720. package/lib/icons/move.svg.js +1 -1
  721. package/lib/icons/mute.svg.js +1 -1
  722. package/lib/icons/new-edit.svg.js +1 -1
  723. package/lib/icons/pause.svg.js +1 -1
  724. package/lib/icons/pencil.svg.js +1 -1
  725. package/lib/icons/play.svg.js +1 -1
  726. package/lib/icons/plus-cicle.svg.js +1 -1
  727. package/lib/icons/plus-fine.svg.js +1 -1
  728. package/lib/icons/plus.svg.js +1 -1
  729. package/lib/icons/post.svg.js +1 -1
  730. package/lib/icons/question-mark.svg.js +1 -1
  731. package/lib/icons/question.svg.js +1 -1
  732. package/lib/icons/redo.svg.js +1 -1
  733. package/lib/icons/refresh.svg.js +1 -1
  734. package/lib/icons/reload.svg.js +1 -1
  735. package/lib/icons/remove.svg.js +1 -1
  736. package/lib/icons/retry.svg.js +1 -1
  737. package/lib/icons/right-arrow-bold.svg.js +1 -1
  738. package/lib/icons/right-arrow.svg.js +1 -1
  739. package/lib/icons/right-double-arrow.svg.js +1 -1
  740. package/lib/icons/role.svg.js +1 -1
  741. package/lib/icons/rotate-left.svg.js +1 -1
  742. package/lib/icons/rotate-right.svg.js +1 -1
  743. package/lib/icons/scale-origin.svg.js +1 -1
  744. package/lib/icons/schedule.svg.js +1 -1
  745. package/lib/icons/search.svg.js +1 -1
  746. package/lib/icons/setting.svg.js +1 -1
  747. package/lib/icons/slider-handle-icon.svg.js +1 -1
  748. package/lib/icons/sort-asc.svg.js +1 -1
  749. package/lib/icons/sort-default.svg.js +1 -1
  750. package/lib/icons/sort-desc.svg.js +1 -1
  751. package/lib/icons/star.svg.js +1 -1
  752. package/lib/icons/status-close.svg.js +1 -1
  753. package/lib/icons/steps-finsh.svg.js +1 -1
  754. package/lib/icons/sub-plus.svg.js +27 -0
  755. package/lib/icons/success.svg.js +1 -1
  756. package/lib/icons/transparent.svg.js +1 -1
  757. package/lib/icons/trash.svg.js +1 -1
  758. package/lib/icons/tree-down.svg.js +1 -1
  759. package/lib/icons/undo-normal.svg.js +32 -0
  760. package/lib/icons/undo.svg.js +1 -1
  761. package/lib/icons/unfullscreen.svg.js +28 -0
  762. package/lib/icons/upload.svg.js +1 -1
  763. package/lib/icons/user-remove.svg.js +1 -1
  764. package/lib/icons/view.svg.js +1 -1
  765. package/lib/icons/volume.svg.js +1 -1
  766. package/lib/icons/warning-mark.svg.js +1 -1
  767. package/lib/icons/warning.svg.js +1 -1
  768. package/lib/icons/window-restore.svg.js +1 -1
  769. package/lib/icons/zoom-in.svg.js +1 -1
  770. package/lib/icons/zoom-out.svg.js +1 -1
  771. package/lib/index.js +6 -1
  772. package/lib/locale/de-DE.js +27 -11
  773. package/lib/locale/en-US.js +18 -2
  774. package/lib/locale/zh-CN.js +19 -3
  775. package/lib/node_modules/pdfjs-dist/build/pdf.worker.min.js +41 -0
  776. package/lib/node_modules/smooth-signature/es/index.js +510 -0
  777. package/lib/{scss → packages/amis-ui/scss}/helper.scss.js +1 -1
  778. package/lib/{scss → packages/amis-ui/scss}/themes/ang.scss.js +1 -1
  779. package/lib/{scss → packages/amis-ui/scss}/themes/antd.scss.js +1 -1
  780. package/lib/{scss → packages/amis-ui/scss}/themes/cxd.scss.js +1 -1
  781. package/lib/{scss → packages/amis-ui/scss}/themes/dark.scss.js +1 -1
  782. package/lib/{scss → packages/amis-ui/scss}/themes/default.scss.js +1 -1
  783. package/lib/themes/ang.css +1032 -38
  784. package/lib/themes/ang.js +1 -1
  785. package/lib/themes/antd.css +1032 -38
  786. package/lib/themes/antd.js +1 -1
  787. package/lib/themes/cxd.css +1032 -38
  788. package/lib/themes/cxd.js +1 -1
  789. package/lib/themes/dark.css +1032 -38
  790. package/lib/themes/dark.js +1 -1
  791. package/lib/themes/default.css +1032 -38
  792. package/package.json +4 -3
  793. package/scss/_components.scss +7 -0
  794. package/scss/_mixins.scss +1 -0
  795. package/scss/_thirds.scss +3 -0
  796. package/scss/components/_collapse.scss +1 -1
  797. package/scss/components/_condition-builder.scss +18 -0
  798. package/scss/components/_crud2.scss +4 -0
  799. package/scss/components/_formula.scss +148 -26
  800. package/scss/components/_image-gallery.scss +7 -1
  801. package/scss/components/_input-box.scss +6 -0
  802. package/scss/components/_json-schema-editor.scss +24 -3
  803. package/scss/components/_json-schema.scss +5 -0
  804. package/scss/components/_menu.scss +3 -0
  805. package/scss/components/_pdf_viewer.scss +47 -0
  806. package/scss/components/_signature.scss +97 -0
  807. package/scss/components/_table.scss +6 -1
  808. package/scss/components/_tabs.scss +10 -4
  809. package/scss/components/form/_combo.scss +1 -0
  810. package/scss/components/form/_form.scss +10 -0
  811. package/scss/components/form/_icon-select.scss +3 -0
  812. package/scss/components/form/_picker.scss +2 -1
  813. package/scss/components/form/_tag.scss +2 -1
  814. package/scss/components/form/_text.scss +4 -4
  815. package/scss/themes/_common.scss +2 -0
@@ -0,0 +1,99 @@
1
+ /**
2
+ * amis-ui v6.4.0
3
+ * Copyright 2018-2024 fex
4
+ */
5
+
6
+ import { __assign, __read } from 'tslib';
7
+ import { themeable } from 'amis-core';
8
+ import React__default from 'react';
9
+ import { CodeMirrorEditor } from '../CodeMirror.js';
10
+ import { editorFactory, FormulaPlugin } from './plugin.js';
11
+
12
+ function CodeEditor(props, ref) {
13
+ var cx = props.classnames, className = props.className, value = props.value, onChange = props.onChange, editorDidMount = props.editorDidMount, onFocus = props.onFocus, onBlur = props.onBlur, functions = props.functions, variables = props.variables, evalMode = props.evalMode, singleLine = props.singleLine, autoFocus = props.autoFocus, editorTheme = props.editorTheme, defaultTheme = props.theme, editorOptions = props.editorOptions, placeholder = props.placeholder, highlightMode = props.highlightMode;
14
+ var pluginRef = React__default.useRef();
15
+ var editorFactory$1 = React__default.useCallback(function (dom, cm) {
16
+ var theme = (editorTheme !== null && editorTheme !== void 0 ? editorTheme : ((defaultTheme || '').includes('dark') ? 'dark' : 'light')) === 'dark'
17
+ ? 'base16-dark'
18
+ : 'idea';
19
+ var options = __assign({ autoFocus: autoFocus, indentUnit: 2, lineNumbers: true, lineWrapping: true, // 自动换行
20
+ theme: theme, placeholder: placeholder }, editorOptions);
21
+ if (singleLine) {
22
+ options = __assign({ lineNumbers: false, indentWithTabs: false, indentUnit: 4, lineWrapping: false, scrollbarStyle: null, theme: theme, placeholder: placeholder }, editorOptions);
23
+ }
24
+ return editorFactory(dom, cm, props, options);
25
+ }, []);
26
+ var _a = __read(React__default.useState(props.readOnly), 2), readOnly = _a[0], setReadOnly = _a[1];
27
+ React__default.useEffect(function () { return setReadOnly(props.readOnly); }, [props.readOnly]);
28
+ React__default.useEffect(function () { var _a, _b; return (_b = (_a = pluginRef.current) === null || _a === void 0 ? void 0 : _a.editor) === null || _b === void 0 ? void 0 : _b.setOption('placeholder', placeholder); }, [placeholder]);
29
+ // singleLine 模式下,禁止输入换行符
30
+ var onEditorBeforeChange = React__default.useCallback(function (cm, event) {
31
+ // Identify typing events that add a newline to the buffer.
32
+ var hasTypedNewline = event.origin === '+input' &&
33
+ typeof event.text === 'object' &&
34
+ event.text.join('') === '';
35
+ // Prevent newline characters from being added to the buffer.
36
+ if (hasTypedNewline) {
37
+ return event.cancel();
38
+ }
39
+ // Identify paste events.
40
+ var hasPastedNewline = event.origin === 'paste' &&
41
+ typeof event.text === 'object' &&
42
+ event.text.length > 1;
43
+ // Format pasted text to replace newlines with spaces.
44
+ if (hasPastedNewline) {
45
+ var newText = event.text.join(' ');
46
+ return event.update(null, null, [newText]);
47
+ }
48
+ return null;
49
+ }, []);
50
+ var onEditorMount = React__default.useCallback(function (cm, editor) {
51
+ var plugin = (pluginRef.current = new FormulaPlugin(editor, cm));
52
+ plugin.setEvalMode(!!evalMode);
53
+ plugin.setFunctions(functions || []);
54
+ plugin.setVariables(variables || []);
55
+ plugin.setHighlightMode(highlightMode || 'formula');
56
+ editorDidMount === null || editorDidMount === void 0 ? void 0 : editorDidMount(cm, editor, plugin);
57
+ plugin.autoMarkText();
58
+ // 单行模式,不允许输入换行,同时原来的换行符也要去掉
59
+ if (singleLine) {
60
+ editor.on('beforeChange', onEditorBeforeChange);
61
+ var value_1 = editor.getValue();
62
+ if (value_1 && /[\n\r]/.test(value_1)) {
63
+ // 初始数据有换行,不允许直接编辑
64
+ // 只能弹窗弹出非单行模式编辑
65
+ setReadOnly(true);
66
+ editor.setValue(value_1.replace(/[\n\r]+/g, ''));
67
+ }
68
+ }
69
+ }, [evalMode, functions, variables]);
70
+ React__default.useEffect(function () {
71
+ return function () {
72
+ var _a, _b;
73
+ (_a = pluginRef.current) === null || _a === void 0 ? void 0 : _a.editor.off('beforeChange', onEditorBeforeChange);
74
+ (_b = pluginRef.current) === null || _b === void 0 ? void 0 : _b.dispose();
75
+ };
76
+ }, []);
77
+ React__default.useImperativeHandle(ref, function () {
78
+ return {
79
+ insertContent: function (value, type) { var _a; return (_a = pluginRef.current) === null || _a === void 0 ? void 0 : _a.insertContent(value, type); },
80
+ setValue: function (value) { var _a; return (_a = pluginRef.current) === null || _a === void 0 ? void 0 : _a.setValue(value); },
81
+ getValue: function () { var _a; return (_a = pluginRef.current) === null || _a === void 0 ? void 0 : _a.getValue(); },
82
+ setDisableAutoMark: function (value) { var _a; return (_a = pluginRef.current) === null || _a === void 0 ? void 0 : _a.setDisableAutoMark(value); }
83
+ };
84
+ });
85
+ React__default.useEffect(function () {
86
+ var plugin = pluginRef.current;
87
+ if (!plugin) {
88
+ return;
89
+ }
90
+ plugin.setEvalMode(!!evalMode);
91
+ plugin.setFunctions(functions || []);
92
+ plugin.setVariables(variables || []);
93
+ plugin.autoMarkText();
94
+ }, [evalMode, functions, variables, value]);
95
+ return (React__default.createElement(CodeMirrorEditor, { className: cx('FormulaCodeEditor', className, singleLine ? 'FormulaCodeEditor--singleLine' : ''), value: value, onChange: onChange, editorFactory: editorFactory$1, editorDidMount: onEditorMount, onFocus: onFocus, onBlur: onBlur, readOnly: readOnly }));
96
+ }
97
+ var CodeEditor$1 = themeable(React__default.forwardRef(CodeEditor));
98
+
99
+ export { CodeEditor$1 as default };
@@ -6,27 +6,7 @@
6
6
  import React from 'react';
7
7
  import { ThemeProps, LocaleProps } from 'amis-core';
8
8
  import type { FunctionDocMap } from 'amis-formula/lib/types';
9
- import { FormulaPlugin } from './plugin';
10
- export interface VariableItem {
11
- label: string;
12
- value?: string;
13
- path?: string;
14
- children?: Array<VariableItem>;
15
- type?: string;
16
- tag?: string;
17
- selectMode?: 'tree' | 'tabs';
18
- isMember?: boolean;
19
- }
20
- export interface FuncGroup {
21
- groupName: string;
22
- items: Array<FuncItem>;
23
- }
24
- export interface FuncItem {
25
- name: string;
26
- example?: string;
27
- description?: string;
28
- [propName: string]: any;
29
- }
9
+ import { FuncGroup, FuncItem, VariableItem } from './CodeEditor';
30
10
  export interface FormulaEditorProps extends ThemeProps, LocaleProps {
31
11
  onChange?: (value: string) => void;
32
12
  value?: string;
@@ -75,16 +55,19 @@ export interface FunctionProps {
75
55
  example: string;
76
56
  }
77
57
  export interface FormulaState {
78
- functions: FuncGroup[];
79
58
  focused: boolean;
80
59
  isCodeMode: boolean;
60
+ showRunPanel: boolean;
81
61
  expandTree: boolean;
82
- normalizeVariables?: Array<VariableItem>;
62
+ functions?: Array<FuncGroup>;
63
+ runContext: string;
64
+ runResult: string;
65
+ runValid: boolean;
83
66
  }
84
67
  export declare class FormulaEditor extends React.Component<FormulaEditorProps, FormulaState> {
85
68
  state: FormulaState;
86
- editorPlugin?: FormulaPlugin;
87
69
  unmounted: boolean;
70
+ editor: React.RefObject<any>;
88
71
  static buildDefaultFunctions(doc: Array<{
89
72
  namespace: string;
90
73
  name: string;
@@ -94,32 +77,44 @@ export declare class FormulaEditor extends React.Component<FormulaEditorProps, F
94
77
  groupName: string;
95
78
  items: import("amis-formula/lib/types").FunctionDocItem[];
96
79
  }[];
80
+ static buildFunctions(functions?: Array<any>, functionsFilter?: (functions: Array<FuncGroup>) => Array<FuncGroup>): Promise<any>;
97
81
  static defaultProps: Pick<FormulaEditorProps, 'variables' | 'evalMode'>;
98
82
  static replaceStrByIndex(str: string, idx: number, key: string, replaceKey: string): string;
99
83
  static getRegExpByMode(evalMode: boolean, key: string): RegExp;
84
+ /**
85
+ * 干不掉,太多地方使用了,但是要废弃了。
86
+ * 不要用了,输入框也换成 codemirror 了,本身就支持高亮
87
+ * @deprecated
88
+ * @param value
89
+ * @param variables
90
+ * @param evalMode
91
+ * @returns
92
+ */
100
93
  static highlightValue(value: string, variables: Array<VariableItem>, evalMode?: boolean): {
101
94
  html: string;
102
95
  } | undefined;
103
- componentDidMount(): void;
104
- componentDidUpdate(prevProps: Readonly<FormulaEditorProps>, prevState: Readonly<FormulaState>, snapshot?: any): void;
96
+ constructor(props: FormulaEditorProps);
97
+ componentDidMount(): Promise<void>;
98
+ componentDidUpdate(prevProps: FormulaEditorProps): void;
105
99
  componentWillUnmount(): void;
106
- buildFunctions(): Promise<void>;
107
- normalizeVariables(variables?: Array<VariableItem>): void;
108
100
  handleFocus(): void;
109
101
  handleBlur(): void;
102
+ getEditor(): any;
110
103
  insertValue(value: any, type: 'variable' | 'func'): void;
111
- handleEditorMounted(cm: any, editor: any): void;
112
104
  validate(): any;
113
105
  handleFunctionSelect(item: FuncItem): void;
114
106
  handleVariableSelect(item: VariableItem): void;
115
107
  handleOnChange(value: any): void;
116
108
  editorFactory(dom: HTMLElement, cm: any): import("codemirror").Editor;
117
109
  handleIsCodeModeChange(showCode: boolean): void;
110
+ toggleRunPanel(): void;
111
+ handleRunContextChange(value: string): void;
112
+ runCode(): Promise<void>;
118
113
  handleExpandTreeChange(expand: boolean): void;
119
114
  render(): React.JSX.Element;
120
115
  }
121
116
  declare const _default: {
122
- new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
117
+ new (props: Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
123
118
  variables?: VariableItem[] | undefined;
124
119
  evalMode?: boolean | undefined;
125
120
  } & {} & {
@@ -131,7 +126,7 @@ declare const _default: {
131
126
  getWrappedInstance(): any;
132
127
  render(): React.JSX.Element;
133
128
  context: unknown;
134
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
129
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
135
130
  variables?: VariableItem[] | undefined;
136
131
  evalMode?: boolean | undefined;
137
132
  } & {} & {
@@ -139,7 +134,7 @@ declare const _default: {
139
134
  translate?: ((str: string, ...args: any[]) => string) | undefined;
140
135
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
141
136
  forceUpdate(callback?: (() => void) | undefined): void;
142
- readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
137
+ readonly props: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
143
138
  variables?: VariableItem[] | undefined;
144
139
  evalMode?: boolean | undefined;
145
140
  } & {} & {
@@ -151,7 +146,7 @@ declare const _default: {
151
146
  [key: string]: React.ReactInstance;
152
147
  };
153
148
  componentDidMount?(): void;
154
- shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
149
+ shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
155
150
  variables?: VariableItem[] | undefined;
156
151
  evalMode?: boolean | undefined;
157
152
  } & {} & {
@@ -160,14 +155,14 @@ declare const _default: {
160
155
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
161
156
  componentWillUnmount?(): void;
162
157
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
163
- getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
158
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
164
159
  variables?: VariableItem[] | undefined;
165
160
  evalMode?: boolean | undefined;
166
161
  } & {} & {
167
162
  locale?: string | undefined;
168
163
  translate?: ((str: string, ...args: any[]) => string) | undefined;
169
164
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
170
- componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
165
+ componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
171
166
  variables?: VariableItem[] | undefined;
172
167
  evalMode?: boolean | undefined;
173
168
  } & {} & {
@@ -176,28 +171,28 @@ declare const _default: {
176
171
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
177
172
  componentWillMount?(): void;
178
173
  UNSAFE_componentWillMount?(): void;
179
- componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
174
+ componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
180
175
  variables?: VariableItem[] | undefined;
181
176
  evalMode?: boolean | undefined;
182
177
  } & {} & {
183
178
  locale?: string | undefined;
184
179
  translate?: ((str: string, ...args: any[]) => string) | undefined;
185
180
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
186
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
181
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
187
182
  variables?: VariableItem[] | undefined;
188
183
  evalMode?: boolean | undefined;
189
184
  } & {} & {
190
185
  locale?: string | undefined;
191
186
  translate?: ((str: string, ...args: any[]) => string) | undefined;
192
187
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
193
- componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
188
+ componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
194
189
  variables?: VariableItem[] | undefined;
195
190
  evalMode?: boolean | undefined;
196
191
  } & {} & {
197
192
  locale?: string | undefined;
198
193
  translate?: ((str: string, ...args: any[]) => string) | undefined;
199
194
  }, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
200
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
195
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
201
196
  variables?: VariableItem[] | undefined;
202
197
  evalMode?: boolean | undefined;
203
198
  } & {} & {
@@ -208,7 +203,7 @@ declare const _default: {
208
203
  displayName: string;
209
204
  contextType: React.Context<string>;
210
205
  ComposedComponent: React.ComponentType<{
211
- new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
206
+ new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
212
207
  variables?: VariableItem[] | undefined;
213
208
  evalMode?: boolean | undefined;
214
209
  } & {} & {
@@ -220,7 +215,7 @@ declare const _default: {
220
215
  getWrappedInstance(): any;
221
216
  render(): React.JSX.Element;
222
217
  context: unknown;
223
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
218
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
224
219
  variables?: VariableItem[] | undefined;
225
220
  evalMode?: boolean | undefined;
226
221
  } & {} & {
@@ -228,7 +223,7 @@ declare const _default: {
228
223
  translate?: ((str: string, ...args: any[]) => string) | undefined;
229
224
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
230
225
  forceUpdate(callback?: (() => void) | undefined): void;
231
- readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
226
+ readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
232
227
  variables?: VariableItem[] | undefined;
233
228
  evalMode?: boolean | undefined;
234
229
  } & {} & {
@@ -240,7 +235,7 @@ declare const _default: {
240
235
  [key: string]: React.ReactInstance;
241
236
  };
242
237
  componentDidMount?(): void;
243
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
238
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
244
239
  variables?: VariableItem[] | undefined;
245
240
  evalMode?: boolean | undefined;
246
241
  } & {} & {
@@ -249,14 +244,14 @@ declare const _default: {
249
244
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
250
245
  componentWillUnmount?(): void;
251
246
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
252
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
247
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
253
248
  variables?: VariableItem[] | undefined;
254
249
  evalMode?: boolean | undefined;
255
250
  } & {} & {
256
251
  locale?: string | undefined;
257
252
  translate?: ((str: string, ...args: any[]) => string) | undefined;
258
253
  }>, prevState: Readonly<{}>): any;
259
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
254
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
260
255
  variables?: VariableItem[] | undefined;
261
256
  evalMode?: boolean | undefined;
262
257
  } & {} & {
@@ -265,28 +260,28 @@ declare const _default: {
265
260
  }>, prevState: Readonly<{}>, snapshot?: any): void;
266
261
  componentWillMount?(): void;
267
262
  UNSAFE_componentWillMount?(): void;
268
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
263
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
269
264
  variables?: VariableItem[] | undefined;
270
265
  evalMode?: boolean | undefined;
271
266
  } & {} & {
272
267
  locale?: string | undefined;
273
268
  translate?: ((str: string, ...args: any[]) => string) | undefined;
274
269
  }>, nextContext: any): void;
275
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
270
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
276
271
  variables?: VariableItem[] | undefined;
277
272
  evalMode?: boolean | undefined;
278
273
  } & {} & {
279
274
  locale?: string | undefined;
280
275
  translate?: ((str: string, ...args: any[]) => string) | undefined;
281
276
  }>, nextContext: any): void;
282
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
277
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
283
278
  variables?: VariableItem[] | undefined;
284
279
  evalMode?: boolean | undefined;
285
280
  } & {} & {
286
281
  locale?: string | undefined;
287
282
  translate?: ((str: string, ...args: any[]) => string) | undefined;
288
283
  }>, nextState: Readonly<{}>, nextContext: any): void;
289
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
284
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
290
285
  variables?: VariableItem[] | undefined;
291
286
  evalMode?: boolean | undefined;
292
287
  } & {} & {
@@ -301,7 +296,7 @@ declare const _default: {
301
296
  ComposedComponent: typeof FormulaEditor;
302
297
  }>;
303
298
  } & import("hoist-non-react-statics").NonReactStatics<{
304
- new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
299
+ new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
305
300
  variables?: VariableItem[] | undefined;
306
301
  evalMode?: boolean | undefined;
307
302
  } & {} & {
@@ -313,7 +308,7 @@ declare const _default: {
313
308
  getWrappedInstance(): any;
314
309
  render(): React.JSX.Element;
315
310
  context: unknown;
316
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
311
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
317
312
  variables?: VariableItem[] | undefined;
318
313
  evalMode?: boolean | undefined;
319
314
  } & {} & {
@@ -321,7 +316,7 @@ declare const _default: {
321
316
  translate?: ((str: string, ...args: any[]) => string) | undefined;
322
317
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
323
318
  forceUpdate(callback?: (() => void) | undefined): void;
324
- readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
319
+ readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
325
320
  variables?: VariableItem[] | undefined;
326
321
  evalMode?: boolean | undefined;
327
322
  } & {} & {
@@ -333,7 +328,7 @@ declare const _default: {
333
328
  [key: string]: React.ReactInstance;
334
329
  };
335
330
  componentDidMount?(): void;
336
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
331
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
337
332
  variables?: VariableItem[] | undefined;
338
333
  evalMode?: boolean | undefined;
339
334
  } & {} & {
@@ -342,14 +337,14 @@ declare const _default: {
342
337
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
343
338
  componentWillUnmount?(): void;
344
339
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
345
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
340
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
346
341
  variables?: VariableItem[] | undefined;
347
342
  evalMode?: boolean | undefined;
348
343
  } & {} & {
349
344
  locale?: string | undefined;
350
345
  translate?: ((str: string, ...args: any[]) => string) | undefined;
351
346
  }>, prevState: Readonly<{}>): any;
352
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
347
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
353
348
  variables?: VariableItem[] | undefined;
354
349
  evalMode?: boolean | undefined;
355
350
  } & {} & {
@@ -358,28 +353,28 @@ declare const _default: {
358
353
  }>, prevState: Readonly<{}>, snapshot?: any): void;
359
354
  componentWillMount?(): void;
360
355
  UNSAFE_componentWillMount?(): void;
361
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
356
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
362
357
  variables?: VariableItem[] | undefined;
363
358
  evalMode?: boolean | undefined;
364
359
  } & {} & {
365
360
  locale?: string | undefined;
366
361
  translate?: ((str: string, ...args: any[]) => string) | undefined;
367
362
  }>, nextContext: any): void;
368
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
363
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
369
364
  variables?: VariableItem[] | undefined;
370
365
  evalMode?: boolean | undefined;
371
366
  } & {} & {
372
367
  locale?: string | undefined;
373
368
  translate?: ((str: string, ...args: any[]) => string) | undefined;
374
369
  }>, nextContext: any): void;
375
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
370
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
376
371
  variables?: VariableItem[] | undefined;
377
372
  evalMode?: boolean | undefined;
378
373
  } & {} & {
379
374
  locale?: string | undefined;
380
375
  translate?: ((str: string, ...args: any[]) => string) | undefined;
381
376
  }>, nextState: Readonly<{}>, nextContext: any): void;
382
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
377
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
383
378
  variables?: VariableItem[] | undefined;
384
379
  evalMode?: boolean | undefined;
385
380
  } & {} & {
@@ -394,7 +389,7 @@ declare const _default: {
394
389
  ComposedComponent: typeof FormulaEditor;
395
390
  }, {}> & {
396
391
  ComposedComponent: {
397
- new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
392
+ new (props: Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
398
393
  variables?: VariableItem[] | undefined;
399
394
  evalMode?: boolean | undefined;
400
395
  } & {} & {
@@ -406,7 +401,7 @@ declare const _default: {
406
401
  getWrappedInstance(): any;
407
402
  render(): React.JSX.Element;
408
403
  context: unknown;
409
- setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
404
+ setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
410
405
  variables?: VariableItem[] | undefined;
411
406
  evalMode?: boolean | undefined;
412
407
  } & {} & {
@@ -414,7 +409,7 @@ declare const _default: {
414
409
  translate?: ((str: string, ...args: any[]) => string) | undefined;
415
410
  }>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
416
411
  forceUpdate(callback?: (() => void) | undefined): void;
417
- readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
412
+ readonly props: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
418
413
  variables?: VariableItem[] | undefined;
419
414
  evalMode?: boolean | undefined;
420
415
  } & {} & {
@@ -426,7 +421,7 @@ declare const _default: {
426
421
  [key: string]: React.ReactInstance;
427
422
  };
428
423
  componentDidMount?(): void;
429
- shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
424
+ shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
430
425
  variables?: VariableItem[] | undefined;
431
426
  evalMode?: boolean | undefined;
432
427
  } & {} & {
@@ -435,14 +430,14 @@ declare const _default: {
435
430
  }>, nextState: Readonly<{}>, nextContext: any): boolean;
436
431
  componentWillUnmount?(): void;
437
432
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
438
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
433
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
439
434
  variables?: VariableItem[] | undefined;
440
435
  evalMode?: boolean | undefined;
441
436
  } & {} & {
442
437
  locale?: string | undefined;
443
438
  translate?: ((str: string, ...args: any[]) => string) | undefined;
444
439
  }>, prevState: Readonly<{}>): any;
445
- componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
440
+ componentDidUpdate?(prevProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
446
441
  variables?: VariableItem[] | undefined;
447
442
  evalMode?: boolean | undefined;
448
443
  } & {} & {
@@ -451,28 +446,28 @@ declare const _default: {
451
446
  }>, prevState: Readonly<{}>, snapshot?: any): void;
452
447
  componentWillMount?(): void;
453
448
  UNSAFE_componentWillMount?(): void;
454
- componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
449
+ componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
455
450
  variables?: VariableItem[] | undefined;
456
451
  evalMode?: boolean | undefined;
457
452
  } & {} & {
458
453
  locale?: string | undefined;
459
454
  translate?: ((str: string, ...args: any[]) => string) | undefined;
460
455
  }>, nextContext: any): void;
461
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
456
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
462
457
  variables?: VariableItem[] | undefined;
463
458
  evalMode?: boolean | undefined;
464
459
  } & {} & {
465
460
  locale?: string | undefined;
466
461
  translate?: ((str: string, ...args: any[]) => string) | undefined;
467
462
  }>, nextContext: any): void;
468
- componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
463
+ componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
469
464
  variables?: VariableItem[] | undefined;
470
465
  evalMode?: boolean | undefined;
471
466
  } & {} & {
472
467
  locale?: string | undefined;
473
468
  translate?: ((str: string, ...args: any[]) => string) | undefined;
474
469
  }>, nextState: Readonly<{}>, nextContext: any): void;
475
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classnames" | "classPrefix" | "header" | "style" | "className" | "theme" | "mobileUI" | "value" | "onChange" | "variableMode" | "functions" | "variableClassName" | "functionClassName" | "selfVariableName" | "editorOptions"> & {
470
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<FormulaEditorProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "mobileUI" | "style" | "header" | "value" | "onChange" | "variableMode" | "functions" | "editorOptions" | "selfVariableName" | "variableClassName" | "functionClassName"> & {
476
471
  variables?: VariableItem[] | undefined;
477
472
  evalMode?: boolean | undefined;
478
473
  } & {} & {