amis-ui 2.0.2 → 2.1.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 (595) 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.js +1 -1
  9. package/esm/components/Badge.d.ts +1 -1
  10. package/esm/components/Badge.js +2 -4
  11. package/esm/components/BaiduMapPicker.js +3 -3
  12. package/esm/components/BarCode.js +1 -1
  13. package/esm/components/BarCode2.js +1 -1
  14. package/esm/components/Breadcrumb.js +2 -2
  15. package/esm/components/Button.js +1 -1
  16. package/esm/components/CalendarMobile.js +1 -1
  17. package/esm/components/Card.js +1 -1
  18. package/esm/components/Cascader.js +1 -1
  19. package/esm/components/ChainedSelection.js +1 -1
  20. package/esm/components/Checkbox.js +1 -1
  21. package/esm/components/CityArea.js +1 -1
  22. package/esm/components/CityDB.js +1 -1
  23. package/esm/components/CityDB2.js +1 -1
  24. package/esm/components/CodeMirror.js +1 -1
  25. package/esm/components/Collapse.js +1 -1
  26. package/esm/components/CollapseGroup.js +1 -1
  27. package/esm/components/ColorPicker.js +1 -1
  28. package/esm/components/ColorPicker2.js +1 -1
  29. package/esm/components/ContextMenu.js +1 -1
  30. package/esm/components/DatePicker.d.ts +2 -0
  31. package/esm/components/DatePicker.js +9 -2
  32. package/esm/components/DateRangePicker.d.ts +91 -41
  33. package/esm/components/DateRangePicker.js +92 -51
  34. package/esm/components/Drawer.d.ts +10 -10
  35. package/esm/components/Drawer.js +1 -1
  36. package/esm/components/Editor.d.ts +40 -40
  37. package/esm/components/Editor.js +1 -1
  38. package/esm/components/Form.js +1 -1
  39. package/esm/components/FormField.js +1 -1
  40. package/esm/components/GridNav.js +1 -1
  41. package/esm/components/GroupedSelection.js +1 -1
  42. package/esm/components/Html.js +1 -1
  43. package/esm/components/ImageGallery.d.ts +70 -40
  44. package/esm/components/ImageGallery.js +97 -15
  45. package/esm/components/Input.js +1 -1
  46. package/esm/components/InputBox.js +1 -1
  47. package/esm/components/InputBoxWithSuggestion.js +1 -1
  48. package/esm/components/Layout.js +1 -1
  49. package/esm/components/Link.js +1 -1
  50. package/esm/components/ListGroup.d.ts +10 -10
  51. package/esm/components/ListGroup.js +1 -1
  52. package/esm/components/ListMenu.js +1 -1
  53. package/esm/components/LocationPicker.js +1 -1
  54. package/esm/components/Markdown.js +1 -1
  55. package/esm/components/Markdown2.js +1 -1
  56. package/esm/components/Modal.d.ts +42 -40
  57. package/esm/components/Modal.js +3 -3
  58. package/esm/components/ModalManager.js +1 -1
  59. package/esm/components/NumberInput.js +1 -1
  60. package/esm/components/Pagination.d.ts +49 -66
  61. package/esm/components/Pagination.js +3 -3
  62. package/esm/components/Picker.js +1 -1
  63. package/esm/components/PickerColumn.js +1 -1
  64. package/esm/components/PickerContainer.js +1 -1
  65. package/esm/components/PopOverContainer.js +1 -1
  66. package/esm/components/PopUp.js +1 -1
  67. package/esm/components/Progress.js +8 -4
  68. package/esm/components/PullRefresh.js +1 -1
  69. package/esm/components/Radios.js +1 -1
  70. package/esm/components/Range.js +1 -1
  71. package/esm/components/Rating.js +1 -1
  72. package/esm/components/ResultBox.js +7 -3
  73. package/esm/components/ResultList.js +1 -1
  74. package/esm/components/ResultTableList.js +1 -1
  75. package/esm/components/ResultTreeList.js +1 -1
  76. package/esm/components/RichText.js +1 -1
  77. package/esm/components/RichText2.js +1 -1
  78. package/esm/components/SearchBox.js +1 -1
  79. package/esm/components/Select.d.ts +194 -193
  80. package/esm/components/Select.js +8 -4
  81. package/esm/components/Selection.js +1 -1
  82. package/esm/components/SparkLine.d.ts +40 -40
  83. package/esm/components/SparkLine.js +1 -1
  84. package/esm/components/Spinner.js +1 -1
  85. package/esm/components/Steps.js +1 -1
  86. package/esm/components/Switch.js +1 -1
  87. package/esm/components/TableSelection.js +1 -1
  88. package/esm/components/Tabs.js +1 -3
  89. package/esm/components/TabsTransfer.js +1 -1
  90. package/esm/components/TabsTransferPicker.js +1 -1
  91. package/esm/components/Tag.js +1 -1
  92. package/esm/components/Textarea.js +4 -2
  93. package/esm/components/Timeline.js +1 -1
  94. package/esm/components/TimelineItem.js +3 -3
  95. package/esm/components/Tinymce.d.ts +1 -3
  96. package/esm/components/Tinymce.js +1 -1
  97. package/esm/components/Tinymce2.js +29 -12
  98. package/esm/components/TitleBar.js +1 -1
  99. package/esm/components/Toast.js +1 -1
  100. package/esm/components/Tooltip.js +1 -1
  101. package/esm/components/TooltipWrapper.js +1 -1
  102. package/esm/components/Transfer.js +9 -2
  103. package/esm/components/TransferDropDown.js +2 -3
  104. package/esm/components/TransferPicker.js +1 -1
  105. package/esm/components/TransferSearch.js +1 -1
  106. package/esm/components/Tree.js +34 -33
  107. package/esm/components/TreeSelection.js +1 -1
  108. package/esm/components/UserSelect.js +1 -1
  109. package/esm/components/UserTabSelect.js +1 -1
  110. package/esm/components/WithRemoteConfig.js +1 -1
  111. package/esm/components/WithStore.js +1 -1
  112. package/esm/components/calendar/Calendar.js +4 -2
  113. package/esm/components/calendar/CalendarContainer.js +1 -1
  114. package/esm/components/calendar/DaysView.js +14 -7
  115. package/esm/components/calendar/MonthsView.js +1 -1
  116. package/esm/components/calendar/QuartersView.js +1 -1
  117. package/esm/components/calendar/TimeView.js +1 -1
  118. package/esm/components/calendar/YearsView.js +1 -1
  119. package/esm/components/condition-builder/Expression.js +1 -1
  120. package/esm/components/condition-builder/Field.js +1 -1
  121. package/esm/components/condition-builder/Formula.js +1 -1
  122. package/esm/components/condition-builder/Func.js +1 -1
  123. package/esm/components/condition-builder/Group.js +1 -1
  124. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  125. package/esm/components/condition-builder/InputSwitch.js +1 -1
  126. package/esm/components/condition-builder/Item.js +1 -1
  127. package/esm/components/condition-builder/Value.js +1 -1
  128. package/esm/components/condition-builder/config.js +1 -1
  129. package/esm/components/condition-builder/index.js +1 -1
  130. package/esm/components/formula/Editor.js +1 -1
  131. package/esm/components/formula/FuncList.js +1 -1
  132. package/esm/components/formula/Picker.js +1 -1
  133. package/esm/components/formula/VariableList.js +1 -1
  134. package/esm/components/formula/plugin.d.ts +1 -0
  135. package/esm/components/formula/plugin.js +11 -4
  136. package/esm/components/icons.d.ts +2 -1
  137. package/esm/components/icons.js +18 -1
  138. package/esm/components/json-schema/Array.js +1 -1
  139. package/esm/components/json-schema/Item.js +1 -1
  140. package/esm/components/json-schema/Object.js +1 -1
  141. package/esm/components/json-schema/index.js +1 -1
  142. package/esm/components/schema-editor/Array.js +1 -1
  143. package/esm/components/schema-editor/Common.js +1 -1
  144. package/esm/components/schema-editor/Item.js +1 -1
  145. package/esm/components/schema-editor/Object.js +1 -1
  146. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  147. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  148. package/esm/components/schema-editor/index.js +1 -1
  149. package/esm/components/table/Cell.js +1 -1
  150. package/esm/components/table/HeadCellDropDown.js +1 -1
  151. package/esm/components/table/HeadCellFilter.js +1 -1
  152. package/esm/components/table/HeadCellSelect.js +1 -1
  153. package/esm/components/table/HeadCellSort.js +1 -1
  154. package/esm/components/table/ItemActionsWrapper.js +1 -1
  155. package/esm/components/table/index.js +1 -1
  156. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  157. package/esm/components/virtual-list/constants.js +1 -1
  158. package/esm/components/virtual-list/index.js +1 -1
  159. package/esm/hooks/use-set-state.js +1 -1
  160. package/esm/hooks/use-touch.js +1 -1
  161. package/esm/hooks/use-update-effect.js +1 -1
  162. package/esm/hooks/use-validation-resolver.js +1 -1
  163. package/esm/icons/alert-danger.svg.js +2 -2
  164. package/esm/icons/alert-info.svg.js +1 -1
  165. package/esm/icons/alert-success.svg.js +2 -2
  166. package/esm/icons/alert-warning.svg.js +2 -2
  167. package/esm/icons/back.svg.js +1 -1
  168. package/esm/icons/calendar.svg.js +1 -1
  169. package/esm/icons/caret.svg.js +1 -1
  170. package/esm/icons/check-circle.svg.js +36 -0
  171. package/esm/icons/check.svg.js +1 -1
  172. package/esm/icons/clock.svg.js +1 -1
  173. package/esm/icons/close-small.svg.js +1 -1
  174. package/esm/icons/close.svg.js +1 -1
  175. package/esm/icons/cloud-upload.svg.js +1 -1
  176. package/esm/icons/column-filter.svg.js +1 -1
  177. package/esm/icons/columns.svg.js +1 -1
  178. package/esm/icons/compress-alt.svg.js +1 -1
  179. package/esm/icons/copy.svg.js +1 -1
  180. package/esm/icons/date.svg.js +1 -1
  181. package/esm/icons/department.svg.js +1 -1
  182. package/esm/icons/desk-empty.svg.js +1 -1
  183. package/esm/icons/dot.svg.js +1 -1
  184. package/esm/icons/down-arrow-bold.svg.js +2 -2
  185. package/esm/icons/down.svg.js +31 -0
  186. package/esm/icons/download.svg.js +1 -1
  187. package/esm/icons/drag-bar.svg.js +1 -1
  188. package/esm/icons/drag.svg.js +1 -1
  189. package/esm/icons/edit.svg.js +1 -2
  190. package/esm/icons/ellipsis-v.svg.js +1 -1
  191. package/esm/icons/enter.svg.js +1 -1
  192. package/esm/icons/exchange.svg.js +1 -1
  193. package/esm/icons/expand-alt.svg.js +1 -1
  194. package/esm/icons/fail.svg.js +1 -1
  195. package/esm/icons/file.svg.js +1 -1
  196. package/esm/icons/filter.svg.js +1 -1
  197. package/esm/icons/folder.svg.js +1 -1
  198. package/esm/icons/function.svg.js +1 -1
  199. package/esm/icons/home.svg.js +1 -1
  200. package/esm/icons/image.svg.js +1 -1
  201. package/esm/icons/info-circle.svg.js +1 -1
  202. package/esm/icons/info.svg.js +1 -1
  203. package/esm/icons/input-clear.svg.js +1 -1
  204. package/esm/icons/invisible.svg.js +1 -1
  205. package/esm/icons/left-arrow.svg.js +7 -4
  206. package/esm/icons/loading-outline.svg.js +1 -1
  207. package/esm/icons/location.svg.js +1 -1
  208. package/esm/icons/menu.svg.js +1 -1
  209. package/esm/icons/minus.svg.js +1 -1
  210. package/esm/icons/move.svg.js +1 -1
  211. package/esm/icons/mute.svg.js +1 -1
  212. package/esm/icons/new-edit.svg.js +24 -0
  213. package/esm/icons/pause.svg.js +1 -1
  214. package/esm/icons/pencil.svg.js +1 -1
  215. package/esm/icons/play.svg.js +1 -1
  216. package/esm/icons/plus-cicle.svg.js +1 -1
  217. package/esm/icons/plus-fine.svg.js +1 -1
  218. package/esm/icons/plus.svg.js +1 -1
  219. package/esm/icons/post.svg.js +1 -1
  220. package/esm/icons/question-mark.svg.js +1 -1
  221. package/esm/icons/question.svg.js +1 -1
  222. package/esm/icons/redo.svg.js +1 -1
  223. package/esm/icons/refresh.svg.js +1 -1
  224. package/esm/icons/reload.svg.js +1 -1
  225. package/esm/icons/remove.svg.js +1 -1
  226. package/esm/icons/retry.svg.js +1 -1
  227. package/esm/icons/right-arrow-bold.svg.js +1 -1
  228. package/esm/icons/right-arrow.svg.js +7 -4
  229. package/esm/icons/right-double-arrow.svg.js +24 -0
  230. package/esm/icons/role.svg.js +1 -1
  231. package/esm/icons/rotate-left.svg.js +24 -0
  232. package/esm/icons/rotate-right.svg.js +24 -0
  233. package/esm/icons/scale-origin.svg.js +26 -0
  234. package/esm/icons/schedule.svg.js +1 -1
  235. package/esm/icons/search.svg.js +1 -1
  236. package/esm/icons/setting.svg.js +1 -1
  237. package/esm/icons/slider-handle-icon.svg.js +1 -1
  238. package/esm/icons/sort-asc.svg.js +1 -1
  239. package/esm/icons/sort-default.svg.js +1 -1
  240. package/esm/icons/sort-desc.svg.js +1 -1
  241. package/esm/icons/star.svg.js +2 -2
  242. package/esm/icons/status-close.svg.js +1 -1
  243. package/esm/icons/status-fail.svg.js +1 -1
  244. package/esm/icons/status-info.svg.js +1 -1
  245. package/esm/icons/status-success.svg.js +1 -1
  246. package/esm/icons/status-warning.svg.js +1 -1
  247. package/esm/icons/steps-finsh.svg.js +24 -0
  248. package/esm/icons/success.svg.js +1 -1
  249. package/esm/icons/transparent.svg.js +1 -1
  250. package/esm/icons/trash.svg.js +1 -1
  251. package/esm/icons/tree-down.svg.js +1 -1
  252. package/esm/icons/undo.svg.js +1 -1
  253. package/esm/icons/upload.svg.js +1 -1
  254. package/esm/icons/user-remove.svg.js +1 -1
  255. package/esm/icons/view.svg.js +1 -1
  256. package/esm/icons/volume.svg.js +1 -1
  257. package/esm/icons/warning-mark.svg.js +1 -1
  258. package/esm/icons/warning.svg.js +1 -1
  259. package/esm/icons/window-restore.svg.js +1 -1
  260. package/esm/icons/zoom-in.svg.js +1 -1
  261. package/esm/icons/zoom-out.svg.js +1 -1
  262. package/esm/index.js +2 -1
  263. package/esm/locale/de-DE.js +6 -1
  264. package/esm/locale/en-US.js +6 -1
  265. package/esm/locale/zh-CN.js +8 -3
  266. package/esm/themes/ang.js +1 -1
  267. package/esm/themes/antd.js +1 -1
  268. package/esm/themes/cxd.js +1 -1
  269. package/esm/themes/dark.js +1 -1
  270. package/lib/components/404.js +1 -1
  271. package/lib/components/Alert.js +1 -1
  272. package/lib/components/Alert2.js +2 -2
  273. package/lib/components/AnchorNav.js +1 -1
  274. package/lib/components/ArrayInput.js +1 -1
  275. package/lib/components/AsideNav.js +1 -1
  276. package/lib/components/AssociatedSelection.js +1 -1
  277. package/lib/components/Avatar.js +1 -1
  278. package/lib/components/Badge.d.ts +1 -1
  279. package/lib/components/Badge.js +2 -4
  280. package/lib/components/BaiduMapPicker.js +3 -3
  281. package/lib/components/BarCode.js +1 -1
  282. package/lib/components/BarCode2.js +1 -1
  283. package/lib/components/Breadcrumb.js +2 -2
  284. package/lib/components/Button.js +1 -1
  285. package/lib/components/CalendarMobile.js +1 -1
  286. package/lib/components/Card.js +1 -1
  287. package/lib/components/Cascader.js +1 -1
  288. package/lib/components/ChainedSelection.js +1 -1
  289. package/lib/components/Checkbox.js +1 -1
  290. package/lib/components/CityArea.js +1 -1
  291. package/lib/components/CityDB.js +1 -1
  292. package/lib/components/CityDB2.js +1 -1
  293. package/lib/components/CodeMirror.js +1 -1
  294. package/lib/components/Collapse.js +1 -1
  295. package/lib/components/CollapseGroup.js +1 -1
  296. package/lib/components/ColorPicker.js +1 -1
  297. package/lib/components/ColorPicker2.js +1 -1
  298. package/lib/components/ContextMenu.js +1 -1
  299. package/lib/components/DatePicker.d.ts +2 -0
  300. package/lib/components/DatePicker.js +9 -2
  301. package/lib/components/DateRangePicker.d.ts +91 -41
  302. package/lib/components/DateRangePicker.js +91 -50
  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.js +1 -1
  311. package/lib/components/Html.js +1 -1
  312. package/lib/components/ImageGallery.d.ts +70 -40
  313. package/lib/components/ImageGallery.js +97 -14
  314. package/lib/components/Input.js +1 -1
  315. package/lib/components/InputBox.js +1 -1
  316. package/lib/components/InputBoxWithSuggestion.js +1 -1
  317. package/lib/components/Layout.js +1 -1
  318. package/lib/components/Link.js +1 -1
  319. package/lib/components/ListGroup.d.ts +10 -10
  320. package/lib/components/ListGroup.js +1 -1
  321. package/lib/components/ListMenu.js +1 -1
  322. package/lib/components/LocationPicker.js +1 -1
  323. package/lib/components/Markdown.js +1 -1
  324. package/lib/components/Markdown2.js +1 -1
  325. package/lib/components/Modal.d.ts +42 -40
  326. package/lib/components/Modal.js +3 -3
  327. package/lib/components/ModalManager.js +1 -1
  328. package/lib/components/NumberInput.js +1 -1
  329. package/lib/components/Pagination.d.ts +49 -66
  330. package/lib/components/Pagination.js +3 -3
  331. package/lib/components/Picker.js +1 -1
  332. package/lib/components/PickerColumn.js +1 -1
  333. package/lib/components/PickerContainer.js +1 -1
  334. package/lib/components/PopOverContainer.js +1 -1
  335. package/lib/components/PopUp.js +1 -1
  336. package/lib/components/Progress.js +8 -4
  337. package/lib/components/PullRefresh.js +1 -1
  338. package/lib/components/Radios.js +1 -1
  339. package/lib/components/Range.js +1 -1
  340. package/lib/components/Rating.js +1 -1
  341. package/lib/components/ResultBox.js +7 -3
  342. package/lib/components/ResultList.js +1 -1
  343. package/lib/components/ResultTableList.js +1 -1
  344. package/lib/components/ResultTreeList.js +1 -1
  345. package/lib/components/RichText.js +1 -1
  346. package/lib/components/RichText2.js +1 -1
  347. package/lib/components/SearchBox.js +1 -1
  348. package/lib/components/Select.d.ts +194 -193
  349. package/lib/components/Select.js +8 -4
  350. package/lib/components/Selection.js +1 -1
  351. package/lib/components/SparkLine.d.ts +40 -40
  352. package/lib/components/SparkLine.js +1 -1
  353. package/lib/components/Spinner.js +1 -1
  354. package/lib/components/Steps.js +1 -1
  355. package/lib/components/Switch.js +1 -1
  356. package/lib/components/TableSelection.js +1 -1
  357. package/lib/components/Tabs.js +1 -3
  358. package/lib/components/TabsTransfer.js +1 -1
  359. package/lib/components/TabsTransferPicker.js +1 -1
  360. package/lib/components/Tag.js +1 -1
  361. package/lib/components/Textarea.js +4 -2
  362. package/lib/components/Timeline.js +1 -1
  363. package/lib/components/TimelineItem.js +3 -3
  364. package/lib/components/Tinymce.d.ts +1 -3
  365. package/lib/components/Tinymce.js +1 -1
  366. package/lib/components/Tinymce2.js +29 -12
  367. package/lib/components/TitleBar.js +1 -1
  368. package/lib/components/Toast.js +1 -1
  369. package/lib/components/Tooltip.js +1 -1
  370. package/lib/components/TooltipWrapper.js +1 -1
  371. package/lib/components/Transfer.js +9 -2
  372. package/lib/components/TransferDropDown.js +2 -3
  373. package/lib/components/TransferPicker.js +1 -1
  374. package/lib/components/TransferSearch.js +1 -1
  375. package/lib/components/Tree.js +34 -33
  376. package/lib/components/TreeSelection.js +1 -1
  377. package/lib/components/UserSelect.js +1 -1
  378. package/lib/components/UserTabSelect.js +1 -1
  379. package/lib/components/WithRemoteConfig.js +1 -1
  380. package/lib/components/WithStore.js +1 -1
  381. package/lib/components/calendar/Calendar.js +4 -2
  382. package/lib/components/calendar/CalendarContainer.js +1 -1
  383. package/lib/components/calendar/DaysView.js +14 -7
  384. package/lib/components/calendar/MonthsView.js +1 -1
  385. package/lib/components/calendar/QuartersView.js +1 -1
  386. package/lib/components/calendar/TimeView.js +1 -1
  387. package/lib/components/calendar/YearsView.js +1 -1
  388. package/lib/components/condition-builder/Expression.js +1 -1
  389. package/lib/components/condition-builder/Field.js +1 -1
  390. package/lib/components/condition-builder/Formula.js +1 -1
  391. package/lib/components/condition-builder/Func.js +1 -1
  392. package/lib/components/condition-builder/Group.js +1 -1
  393. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  394. package/lib/components/condition-builder/InputSwitch.js +1 -1
  395. package/lib/components/condition-builder/Item.js +1 -1
  396. package/lib/components/condition-builder/Value.js +1 -1
  397. package/lib/components/condition-builder/config.js +1 -1
  398. package/lib/components/condition-builder/index.js +1 -1
  399. package/lib/components/formula/Editor.js +1 -1
  400. package/lib/components/formula/FuncList.js +1 -1
  401. package/lib/components/formula/Picker.js +1 -1
  402. package/lib/components/formula/VariableList.js +1 -1
  403. package/lib/components/formula/plugin.d.ts +1 -0
  404. package/lib/components/formula/plugin.js +11 -4
  405. package/lib/components/icons.d.ts +2 -1
  406. package/lib/components/icons.js +18 -1
  407. package/lib/components/json-schema/Array.js +1 -1
  408. package/lib/components/json-schema/Item.js +1 -1
  409. package/lib/components/json-schema/Object.js +1 -1
  410. package/lib/components/json-schema/index.js +1 -1
  411. package/lib/components/schema-editor/Array.js +1 -1
  412. package/lib/components/schema-editor/Common.js +1 -1
  413. package/lib/components/schema-editor/Item.js +1 -1
  414. package/lib/components/schema-editor/Object.js +1 -1
  415. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  416. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  417. package/lib/components/schema-editor/index.js +1 -1
  418. package/lib/components/table/Cell.js +1 -1
  419. package/lib/components/table/HeadCellDropDown.js +1 -1
  420. package/lib/components/table/HeadCellFilter.js +1 -1
  421. package/lib/components/table/HeadCellSelect.js +1 -1
  422. package/lib/components/table/HeadCellSort.js +1 -1
  423. package/lib/components/table/ItemActionsWrapper.js +1 -1
  424. package/lib/components/table/index.js +1 -1
  425. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  426. package/lib/components/virtual-list/constants.js +1 -1
  427. package/lib/components/virtual-list/index.js +1 -1
  428. package/lib/hooks/use-set-state.js +1 -1
  429. package/lib/hooks/use-touch.js +1 -1
  430. package/lib/hooks/use-update-effect.js +1 -1
  431. package/lib/hooks/use-validation-resolver.js +1 -1
  432. package/lib/icons/alert-danger.svg.js +2 -2
  433. package/lib/icons/alert-info.svg.js +1 -1
  434. package/lib/icons/alert-success.svg.js +2 -2
  435. package/lib/icons/alert-warning.svg.js +2 -2
  436. package/lib/icons/back.svg.js +1 -1
  437. package/lib/icons/calendar.svg.js +1 -1
  438. package/lib/icons/caret.svg.js +1 -1
  439. package/lib/icons/check-circle.svg.js +60 -0
  440. package/lib/icons/check.svg.js +1 -1
  441. package/lib/icons/clock.svg.js +1 -1
  442. package/lib/icons/close-small.svg.js +1 -1
  443. package/lib/icons/close.svg.js +1 -1
  444. package/lib/icons/cloud-upload.svg.js +1 -1
  445. package/lib/icons/column-filter.svg.js +1 -1
  446. package/lib/icons/columns.svg.js +1 -1
  447. package/lib/icons/compress-alt.svg.js +1 -1
  448. package/lib/icons/copy.svg.js +1 -1
  449. package/lib/icons/date.svg.js +1 -1
  450. package/lib/icons/department.svg.js +1 -1
  451. package/lib/icons/desk-empty.svg.js +1 -1
  452. package/lib/icons/dot.svg.js +1 -1
  453. package/lib/icons/down-arrow-bold.svg.js +2 -2
  454. package/lib/icons/down.svg.js +55 -0
  455. package/lib/icons/download.svg.js +1 -1
  456. package/lib/icons/drag-bar.svg.js +1 -1
  457. package/lib/icons/drag.svg.js +1 -1
  458. package/lib/icons/edit.svg.js +1 -2
  459. package/lib/icons/ellipsis-v.svg.js +1 -1
  460. package/lib/icons/enter.svg.js +1 -1
  461. package/lib/icons/exchange.svg.js +1 -1
  462. package/lib/icons/expand-alt.svg.js +1 -1
  463. package/lib/icons/fail.svg.js +1 -1
  464. package/lib/icons/file.svg.js +1 -1
  465. package/lib/icons/filter.svg.js +1 -1
  466. package/lib/icons/folder.svg.js +1 -1
  467. package/lib/icons/function.svg.js +1 -1
  468. package/lib/icons/home.svg.js +1 -1
  469. package/lib/icons/image.svg.js +1 -1
  470. package/lib/icons/info-circle.svg.js +1 -1
  471. package/lib/icons/info.svg.js +1 -1
  472. package/lib/icons/input-clear.svg.js +1 -1
  473. package/lib/icons/invisible.svg.js +1 -1
  474. package/lib/icons/left-arrow.svg.js +7 -4
  475. package/lib/icons/loading-outline.svg.js +1 -1
  476. package/lib/icons/location.svg.js +1 -1
  477. package/lib/icons/menu.svg.js +1 -1
  478. package/lib/icons/minus.svg.js +1 -1
  479. package/lib/icons/move.svg.js +1 -1
  480. package/lib/icons/mute.svg.js +1 -1
  481. package/lib/icons/new-edit.svg.js +48 -0
  482. package/lib/icons/pause.svg.js +1 -1
  483. package/lib/icons/pencil.svg.js +1 -1
  484. package/lib/icons/play.svg.js +1 -1
  485. package/lib/icons/plus-cicle.svg.js +1 -1
  486. package/lib/icons/plus-fine.svg.js +1 -1
  487. package/lib/icons/plus.svg.js +1 -1
  488. package/lib/icons/post.svg.js +1 -1
  489. package/lib/icons/question-mark.svg.js +1 -1
  490. package/lib/icons/question.svg.js +1 -1
  491. package/lib/icons/redo.svg.js +1 -1
  492. package/lib/icons/refresh.svg.js +1 -1
  493. package/lib/icons/reload.svg.js +1 -1
  494. package/lib/icons/remove.svg.js +1 -1
  495. package/lib/icons/retry.svg.js +1 -1
  496. package/lib/icons/right-arrow-bold.svg.js +1 -1
  497. package/lib/icons/right-arrow.svg.js +7 -4
  498. package/lib/icons/right-double-arrow.svg.js +48 -0
  499. package/lib/icons/role.svg.js +1 -1
  500. package/lib/icons/rotate-left.svg.js +48 -0
  501. package/lib/icons/rotate-right.svg.js +48 -0
  502. package/lib/icons/scale-origin.svg.js +50 -0
  503. package/lib/icons/schedule.svg.js +1 -1
  504. package/lib/icons/search.svg.js +1 -1
  505. package/lib/icons/setting.svg.js +1 -1
  506. package/lib/icons/slider-handle-icon.svg.js +1 -1
  507. package/lib/icons/sort-asc.svg.js +1 -1
  508. package/lib/icons/sort-default.svg.js +1 -1
  509. package/lib/icons/sort-desc.svg.js +1 -1
  510. package/lib/icons/star.svg.js +2 -2
  511. package/lib/icons/status-close.svg.js +1 -1
  512. package/lib/icons/status-fail.svg.js +1 -1
  513. package/lib/icons/status-info.svg.js +1 -1
  514. package/lib/icons/status-success.svg.js +1 -1
  515. package/lib/icons/status-warning.svg.js +1 -1
  516. package/lib/icons/steps-finsh.svg.js +48 -0
  517. package/lib/icons/success.svg.js +1 -1
  518. package/lib/icons/transparent.svg.js +1 -1
  519. package/lib/icons/trash.svg.js +1 -1
  520. package/lib/icons/tree-down.svg.js +1 -1
  521. package/lib/icons/undo.svg.js +1 -1
  522. package/lib/icons/upload.svg.js +1 -1
  523. package/lib/icons/user-remove.svg.js +1 -1
  524. package/lib/icons/view.svg.js +1 -1
  525. package/lib/icons/volume.svg.js +1 -1
  526. package/lib/icons/warning-mark.svg.js +1 -1
  527. package/lib/icons/warning.svg.js +1 -1
  528. package/lib/icons/window-restore.svg.js +1 -1
  529. package/lib/icons/zoom-in.svg.js +1 -1
  530. package/lib/icons/zoom-out.svg.js +1 -1
  531. package/lib/index.js +3 -1
  532. package/lib/locale/de-DE.js +6 -1
  533. package/lib/locale/en-US.js +6 -1
  534. package/lib/locale/zh-CN.js +8 -3
  535. package/lib/scss/helper.scss.js +1 -1
  536. package/lib/scss/helper.scss2.js +1 -1
  537. package/lib/scss/themes/ang.scss.js +1 -1
  538. package/lib/scss/themes/ang.scss2.js +1 -1
  539. package/lib/scss/themes/antd.scss.js +1 -1
  540. package/lib/scss/themes/antd.scss2.js +1 -1
  541. package/lib/scss/themes/cxd.scss.js +1 -1
  542. package/lib/scss/themes/cxd.scss2.js +1 -1
  543. package/lib/scss/themes/dark.scss.js +1 -1
  544. package/lib/scss/themes/dark.scss2.js +1 -1
  545. package/lib/scss/themes/default.scss.js +1 -1
  546. package/lib/scss/themes/default.scss2.js +1 -1
  547. package/lib/themes/ang.css +936 -409
  548. package/lib/themes/ang.js +1 -1
  549. package/lib/themes/antd.css +936 -409
  550. package/lib/themes/antd.js +1 -1
  551. package/lib/themes/cxd.css +947 -423
  552. package/lib/themes/cxd.js +1 -1
  553. package/lib/themes/dark.css +936 -409
  554. package/lib/themes/dark.js +1 -1
  555. package/lib/themes/default.css +947 -423
  556. package/package.json +10 -10
  557. package/scss/_properties.scss +96 -22
  558. package/scss/base/_typography.scss +4 -0
  559. package/scss/components/_alert.scss +15 -0
  560. package/scss/components/_anchor-nav.scss +22 -7
  561. package/scss/components/_badge.scss +1 -0
  562. package/scss/components/_breadcrumb.scss +12 -1
  563. package/scss/components/_card.scss +4 -0
  564. package/scss/components/_collapse-group.scss +13 -1
  565. package/scss/components/_collapse.scss +2 -1
  566. package/scss/components/_crud.scss +10 -2
  567. package/scss/components/_crud2.scss +10 -2
  568. package/scss/components/_image-gallery.scss +62 -0
  569. package/scss/components/_input-box.scss +1 -0
  570. package/scss/components/_modal.scss +14 -12
  571. package/scss/components/_pagination.scss +4 -3
  572. package/scss/components/_progress.scss +2 -1
  573. package/scss/components/_result-box.scss +5 -5
  574. package/scss/components/_search-box.scss +4 -0
  575. package/scss/components/_steps.scss +23 -12
  576. package/scss/components/_table.scss +87 -10
  577. package/scss/components/_tabs.scss +46 -4
  578. package/scss/components/_timeline.scss +15 -1
  579. package/scss/components/form/_checks.scss +13 -2
  580. package/scss/components/form/_date-range.scss +26 -11
  581. package/scss/components/form/_date.scss +97 -33
  582. package/scss/components/form/_form.scss +8 -1
  583. package/scss/components/form/_nested-select.scss +6 -0
  584. package/scss/components/form/_number.scss +18 -13
  585. package/scss/components/form/_picker.scss +8 -0
  586. package/scss/components/form/_rating.scss +2 -2
  587. package/scss/components/form/_select.scss +34 -1
  588. package/scss/components/form/_selection.scss +1 -0
  589. package/scss/components/form/_text.scss +6 -0
  590. package/scss/components/form/_textarea.scss +15 -11
  591. package/scss/components/form/_transfer.scss +2 -5
  592. package/scss/components/form/_tree.scss +31 -4
  593. package/scss/components/react-datetime.scss +6 -1
  594. package/scss/themes/_cxd-variables.scss +9 -8
  595. package/scss/themes/cxd.scss +2 -8
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -12,13 +12,13 @@ var React = require('react');
12
12
  var tinymce = require('tinymce/tinymce');
13
13
  require('tinymce/icons/default/index');
14
14
  require('tinymce/themes/silver');
15
+ require('tinymce/models/dom/model');
15
16
  require('tinymce/plugins/advlist');
16
17
  require('tinymce/plugins/autolink');
17
18
  require('tinymce/plugins/lists');
18
19
  require('tinymce/plugins/link');
19
20
  require('tinymce/plugins/image');
20
21
  require('tinymce/plugins/charmap');
21
- require('tinymce/plugins/print');
22
22
  require('tinymce/plugins/preview');
23
23
  require('tinymce/plugins/anchor');
24
24
  require('tinymce/plugins/searchreplace');
@@ -28,10 +28,8 @@ require('tinymce/plugins/fullscreen');
28
28
  require('tinymce/plugins/insertdatetime');
29
29
  require('tinymce/plugins/media');
30
30
  require('tinymce/plugins/table');
31
- require('tinymce/plugins/paste');
32
31
  require('tinymce/plugins/help');
33
32
  require('tinymce/plugins/wordcount');
34
- require('tinymce/plugins/hr');
35
33
  require('tinymce/plugins/pagebreak');
36
34
  require('tinymce/plugins/visualchars');
37
35
  require('tinymce/plugins/template');
@@ -54,13 +52,32 @@ var TinymceEditor = /** @class */ (function (_super) {
54
52
  TinymceEditor.prototype.componentDidMount = function () {
55
53
  var _this = this;
56
54
  var locale = this.props.locale;
57
- this.config = tslib.__assign(tslib.__assign({ inline: false, skin: false, content_css: false, height: 400, language: !locale || locale === 'zh-CN' ? 'zh_CN' : 'en', plugins: [
58
- 'advlist autolink link image lists charmap print preview hr anchor pagebreak',
59
- 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',
60
- 'table emoticons template paste help'
61
- ], toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | ' +
62
- 'bullist numlist outdent indent | link image | print preview media fullpage | ' +
63
- 'forecolor backcolor emoticons | help', menu: {
55
+ this.config = tslib.__assign(tslib.__assign({ inline: false, skin: false, content_css: false, height: 400, language: !locale || locale === 'zh-CN' ? 'zh_CN' : 'en', branding: false, plugins: [
56
+ 'advlist',
57
+ 'autolink',
58
+ 'link',
59
+ 'image',
60
+ 'lists',
61
+ 'charmap',
62
+ 'preview',
63
+ 'anchor',
64
+ 'pagebreak',
65
+ 'searchreplace',
66
+ 'wordcount',
67
+ 'visualblocks',
68
+ 'visualchars',
69
+ 'code',
70
+ 'fullscreen',
71
+ 'insertdatetime',
72
+ 'media',
73
+ 'nonbreaking',
74
+ 'table',
75
+ 'emoticons',
76
+ 'template',
77
+ 'help'
78
+ ], toolbar: 'undo redo | blocks | bold italic | alignleft aligncenter alignright alignjustify | ' +
79
+ 'bullist numlist outdent indent | link image | preview media | ' +
80
+ 'fontfamily fontsize forecolor backcolor emoticons | print help', menu: {
64
81
  file: {
65
82
  title: 'File',
66
83
  items: 'newdocument restoredraft | preview | print '
@@ -79,7 +96,7 @@ var TinymceEditor = /** @class */ (function (_super) {
79
96
  },
80
97
  format: {
81
98
  title: 'Format',
82
- items: 'bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | forecolor backcolor | removeformat'
99
+ items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontsize align | forecolor backcolor | removeformat'
83
100
  },
84
101
  tools: {
85
102
  title: 'Tools',
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -242,7 +242,14 @@ var Transfer = /** @class */ (function (_super) {
242
242
  var _b = this.state, resultSelectMode = _b.resultSelectMode, isTreeDeferLoad = _b.isTreeDeferLoad;
243
243
  var searchable = !isTreeDeferLoad && resultSearchable;
244
244
  var placeholder = resultSearchPlaceholder || __('Transfer.selectFromLeft');
245
- return resultSelectMode === 'table' ? (React__default["default"].createElement(ResultTableList["default"], { classnames: cx, columns: columns, options: options || [], value: value, disabled: disabled, option2value: option2value, cellRender: cellRender, onChange: onChange, multiple: false, searchable: searchable, placeholder: placeholder, onSearch: onResultSearch })) : resultSelectMode === 'tree' ? (React__default["default"].createElement(ResultTreeList["default"], { classnames: cx, options: options, valueField: 'value', value: value || [], onChange: onChange, itemRender: resultItemRender, searchable: searchable, placeholder: placeholder, onSearch: onResultSearch })) : (React__default["default"].createElement(ResultList["default"], { className: cx('Transfer-value'), sortable: sortable, disabled: disabled, value: value, onChange: onChange, placeholder: placeholder, itemRender: resultItemRender, searchable: searchable, onSearch: onResultSearch }));
245
+ switch (resultSelectMode) {
246
+ case 'table':
247
+ return (React__default["default"].createElement(ResultTableList["default"], { classnames: cx, columns: columns, options: options || [], value: value, disabled: disabled, option2value: option2value, cellRender: cellRender, onChange: onChange, multiple: false, searchable: searchable, placeholder: placeholder, onSearch: onResultSearch }));
248
+ case 'tree':
249
+ return (React__default["default"].createElement(ResultTreeList["default"], { classnames: cx, className: cx('Transfer-value'), options: options, valueField: 'value', value: value || [], onChange: onChange, itemRender: resultItemRender, searchable: searchable, placeholder: placeholder, onSearch: onResultSearch }));
250
+ default:
251
+ return (React__default["default"].createElement(ResultList["default"], { className: cx('Transfer-value'), sortable: sortable, disabled: disabled, value: value, onChange: onChange, placeholder: placeholder, itemRender: resultItemRender, searchable: searchable, onSearch: onResultSearch }));
252
+ }
246
253
  };
247
254
  Transfer.prototype.render = function () {
248
255
  var _a = this.props, inline = _a.inline, cx = _a.classnames, className = _a.className, value = _a.value, resultTitle = _a.resultTitle, options = _a.options, option2value = _a.option2value, disabled = _a.disabled, statistics = _a.statistics, showArrow = _a.showArrow, resultListModeFollowSelect = _a.resultListModeFollowSelect, _b = _a.selectMode, selectMode = _b === void 0 ? 'list' : _b, __ = _a.translate;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -53,8 +53,7 @@ var TransferDropDown = /** @class */ (function (_super) {
53
53
  }, multiple: multiple }))));
54
54
  } }, function (_a) {
55
55
  var onClick = _a.onClick, isOpened = _a.isOpened, ref = _a.ref;
56
- return (React__default["default"].createElement(ResultBox["default"], { className: cx('TransferDropDown', className, isOpened ? 'is-active' : ''), borderMode: borderMode, allowInput: false, result: multiple ? value : (value === null || value === void 0 ? void 0 : value[0]) ? value === null || value === void 0 ? void 0 : value[0] : null, onResultChange: onChange, onResultClick: onClick, placeholder: __('Select.placeholder'), disabled: disabled, clearable: clearable, maxTagCount: maxTagCount, overflowTagPopover: overflowTagPopover, ref: ref, itemRender: itemRender, useMobileUI: useMobileUI }, !mobileUI ? (React__default["default"].createElement("span", { className: cx('TransferDropDown-icon') },
57
- React__default["default"].createElement(icons.Icon, { icon: "right-arrow-bold", className: "icon" }))) : (React__default["default"].createElement(React__default["default"].Fragment, null))));
56
+ return (React__default["default"].createElement(ResultBox["default"], { className: cx('TransferDropDown', className, isOpened ? 'is-opened' : ''), borderMode: borderMode, allowInput: false, result: multiple ? value : (value === null || value === void 0 ? void 0 : value[0]) ? value === null || value === void 0 ? void 0 : value[0] : null, onResultChange: onChange, onResultClick: onClick, placeholder: __('Select.placeholder'), disabled: disabled, clearable: clearable, maxTagCount: maxTagCount, overflowTagPopover: overflowTagPopover, ref: ref, itemRender: itemRender, useMobileUI: useMobileUI, hasDropDownArrow: !mobileUI }));
58
57
  }));
59
58
  };
60
59
  return TransferDropDown;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -546,38 +546,39 @@ var TreeSelector = /** @class */ (function (_super) {
546
546
  }) },
547
547
  React__default["default"].createElement(icons.Icon, { icon: "down-arrow-bold", className: "icon" }))) : (React__default["default"].createElement("span", { className: cx('Tree-itemArrowPlaceholder') })),
548
548
  checkbox,
549
- showIcon ? (React__default["default"].createElement("i", { className: cx("Tree-itemIcon ".concat(childrenItems ? 'Tree-folderIcon' : 'Tree-leafIcon')), onClick: function () {
550
- return !nodeDisabled &&
551
- (multiple
552
- ? _this.handleCheck(item, !selfChecked)
553
- : _this.handleSelect(item));
554
- } }, icons.getIcon(iconValue) ? (React__default["default"].createElement(icons.Icon, { icon: iconValue, className: "icon" })) : (React__default["default"].createElement("i", { className: iconValue })))) : null,
555
- React__default["default"].createElement("span", { className: cx('Tree-itemText'), onClick: function () {
556
- return !nodeDisabled &&
557
- (multiple
558
- ? _this.handleCheck(item, !selfChecked)
559
- : _this.handleSelect(item));
560
- } }, highlightTxt
561
- ? amisCore.highlight("".concat(item[labelField]), highlightTxt)
562
- : itemRender
563
- ? itemRender(item, {
564
- index: key,
565
- multiple: multiple,
566
- checked: checked,
567
- onChange: function () { return _this.handleCheck(item, !selfChecked); },
568
- disabled: disabled || item.disabled
569
- })
570
- : "".concat(item[labelField])),
571
- !nodeDisabled &&
572
- !isAdding &&
573
- !isEditing &&
574
- !(item.defer && !item.loaded) ? (React__default["default"].createElement("div", { className: cx('Tree-item-icons') },
575
- creatable && amisCore.hasAbility(item, 'creatable') ? (React__default["default"].createElement("a", { onClick: _this.handleAdd.bind(_this, item), "data-tooltip": __(createTip), "data-position": "left" },
576
- React__default["default"].createElement(icons.Icon, { icon: "plus", className: "icon" }))) : null,
577
- removable && amisCore.hasAbility(item, 'removable') ? (React__default["default"].createElement("a", { onClick: _this.handleRemove.bind(_this, item), "data-tooltip": __(removeTip), "data-position": "left" },
578
- React__default["default"].createElement(icons.Icon, { icon: "minus", className: "icon" }))) : null,
579
- editable && amisCore.hasAbility(item, 'editable') ? (React__default["default"].createElement("a", { onClick: _this.handleEdit.bind(_this, item), "data-tooltip": __(editTip), "data-position": "left" },
580
- React__default["default"].createElement(icons.Icon, { icon: "pencil", className: "icon" }))) : null)) : null)),
549
+ React__default["default"].createElement("div", { className: cx('Tree-itemLabel-item') },
550
+ showIcon ? (React__default["default"].createElement("i", { className: cx("Tree-itemIcon ".concat(childrenItems ? 'Tree-folderIcon' : 'Tree-leafIcon')), onClick: function () {
551
+ return !nodeDisabled &&
552
+ (multiple
553
+ ? _this.handleCheck(item, !selfChecked)
554
+ : _this.handleSelect(item));
555
+ } }, icons.getIcon(iconValue) ? (React__default["default"].createElement(icons.Icon, { icon: iconValue, className: "icon" })) : React__default["default"].isValidElement(iconValue) ? (iconValue) : (React__default["default"].createElement("i", { className: iconValue })))) : null,
556
+ React__default["default"].createElement("span", { className: cx('Tree-itemText'), onClick: function () {
557
+ return !nodeDisabled &&
558
+ (multiple
559
+ ? _this.handleCheck(item, !selfChecked)
560
+ : _this.handleSelect(item));
561
+ }, title: item[labelField] }, highlightTxt
562
+ ? amisCore.highlight("".concat(item[labelField]), highlightTxt)
563
+ : itemRender
564
+ ? itemRender(item, {
565
+ index: key,
566
+ multiple: multiple,
567
+ checked: checked,
568
+ onChange: function () { return _this.handleCheck(item, !selfChecked); },
569
+ disabled: disabled || item.disabled
570
+ })
571
+ : "".concat(item[labelField])),
572
+ !nodeDisabled &&
573
+ !isAdding &&
574
+ !isEditing &&
575
+ !(item.defer && !item.loaded) ? (React__default["default"].createElement("div", { className: cx('Tree-item-icons') },
576
+ creatable && amisCore.hasAbility(item, 'creatable') ? (React__default["default"].createElement("a", { onClick: _this.handleAdd.bind(_this, item), "data-tooltip": __(createTip), "data-position": "left" },
577
+ React__default["default"].createElement(icons.Icon, { icon: "plus", className: "icon" }))) : null,
578
+ removable && amisCore.hasAbility(item, 'removable') ? (React__default["default"].createElement("a", { onClick: _this.handleRemove.bind(_this, item), "data-tooltip": __(removeTip), "data-position": "left" },
579
+ React__default["default"].createElement(icons.Icon, { icon: "minus", className: "icon" }))) : null,
580
+ editable && amisCore.hasAbility(item, 'editable') ? (React__default["default"].createElement("a", { onClick: _this.handleEdit.bind(_this, item), "data-tooltip": __(editTip), "data-position": "left" },
581
+ React__default["default"].createElement(icons.Icon, { icon: "new-edit", className: "icon" }))) : null)) : null))),
581
582
  (childrenItems && _this.isUnfolded(item)) ||
582
583
  (isAdding && addingParent === item) ? (React__default["default"].createElement("ul", { className: cx('Tree-sublist') },
583
584
  isAdding && addingParent === item ? (React__default["default"].createElement("li", { className: cx('Tree-item') }, _this.renderInput(checkbox
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -489,7 +489,9 @@ var BaseDatePicker = /** @class */ (function (_super) {
489
489
  ? 'rdtPickerTime'
490
490
  : dateFormat && !timeFormat
491
491
  ? 'rdtPickerDate'
492
- : '') },
492
+ : '', viewMode === 'months' || viewMode === 'years' || viewMode === 'quarters'
493
+ ? 'rdtPickerNotDays'
494
+ : '') },
493
495
  React__default["default"].createElement(Component, { view: this.state.currentView, viewProps: viewProps, timeRangeHeader: timeRangeHeader }))));
494
496
  };
495
497
  return BaseDatePicker;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -15,6 +15,7 @@ var findIndex = require('lodash/findIndex');
15
15
  var merge = require('lodash/merge');
16
16
  var amisCore = require('amis-core');
17
17
  var Picker = require('../Picker.js');
18
+ var icons = require('../icons.js');
18
19
 
19
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
21
 
@@ -223,7 +224,6 @@ var CustomDaysView = /** @class */ (function (_super) {
223
224
  var date = selectedDate || (isEndDate ? viewDate.endOf('day') : viewDate);
224
225
  var inputs = [];
225
226
  var timeConstraints = _this.timeConstraints;
226
- inputs.push(_this.showTime());
227
227
  timeFormat.split(':').forEach(function (format, i) {
228
228
  var type = /h/i.test(format)
229
229
  ? 'hours'
@@ -269,7 +269,9 @@ var CustomDaysView = /** @class */ (function (_super) {
269
269
  }
270
270
  });
271
271
  inputs.length && inputs.pop();
272
- return React__default["default"].createElement("div", null, inputs);
272
+ return (React__default["default"].createElement("div", { className: cx('CalendarTimesWrapper') },
273
+ _this.showTime(),
274
+ React__default["default"].createElement("div", { className: cx('CalendarInputsWrapper') }, inputs)));
273
275
  };
274
276
  _this.renderFooter = function () {
275
277
  if (!_this.props.requiredConfirm) {
@@ -427,13 +429,18 @@ var CustomDaysView = /** @class */ (function (_super) {
427
429
  React__default["default"].createElement("tr", null,
428
430
  React__default["default"].createElement("th", { colSpan: 7 },
429
431
  React__default["default"].createElement("div", { className: "rdtHeader" },
430
- React__default["default"].createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') }, "\u00AB"),
431
- React__default["default"].createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'months') }, "\u2039"),
432
+ React__default["default"].createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') },
433
+ React__default["default"].createElement(icons.Icon, { icon: "right-double-arrow", className: "icon date-icon-arrow-left" })),
434
+ React__default["default"].createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'months') },
435
+ React__default["default"].createElement(icons.Icon, { icon: "right-arrow", className: "icon date-icon-arrow-left" })),
432
436
  React__default["default"].createElement("div", { className: "rdtCenter" },
433
437
  React__default["default"].createElement("a", { className: "rdtSwitch", onClick: this.props.showView('years') }, date.format(__('dateformat.year'))),
434
438
  React__default["default"].createElement("a", { className: "rdtSwitch", onClick: this.props.showView('months') }, date.format(__('MMM')))),
435
- React__default["default"].createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'months') }, "\u203A"),
436
- React__default["default"].createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'years') }, "\u00BB")))),
439
+ React__default["default"].createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'months') },
440
+ React__default["default"].createElement(icons.Icon, { icon: "right-arrow", className: "icon date-icon-arrow" })),
441
+ React__default["default"].createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'years') },
442
+ React__default["default"].createElement(icons.Icon, { icon: "right-double-arrow", className: "icon date-icon-arrow" }))),
443
+ React__default["default"].createElement("div", { className: 'header-line' }))),
437
444
  React__default["default"].createElement("tr", null, this.getDaysOfWeek(locale).map(function (day, index) { return (React__default["default"].createElement("th", { key: day + index, className: "dow" }, day)); })))),
438
445
  React__default["default"].createElement("tbody", { key: "tb" }, this.renderDays())
439
446
  ];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -22,6 +22,7 @@ export declare class FormulaPlugin {
22
22
  insertContent(value: any, type?: 'variable' | 'func'): void;
23
23
  markText(from: CodeMirror.Position, to: CodeMirror.Position, label: string, className?: string): void;
24
24
  autoMark(variables: Array<VariableItem>): void;
25
+ focus(value: string): void;
25
26
  dispose(): void;
26
27
  validate(): void;
27
28
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.0.2
2
+ * amis-ui v2.1.0
3
3
  * Copyright 2018-2022 fex
4
4
  */
5
5
 
@@ -33,6 +33,7 @@ var FormulaPlugin = /** @class */ (function () {
33
33
  if (value) {
34
34
  // todo functions 也需要自动替换
35
35
  this.autoMark(variables);
36
+ this.focus(value);
36
37
  }
37
38
  };
38
39
  // 计算 `${`、`}` 括号的位置,如 ${a}+${b}, 结果是 [ { from: 0, to: 3 }, { from: 5, to: 8 } ]
@@ -67,7 +68,7 @@ var FormulaPlugin = /** @class */ (function () {
67
68
  if (braces.length) {
68
69
  for (var index = 0; index < braces.length; index++) {
69
70
  var brace = braces[index];
70
- if (from > brace.begin && to <= brace.end) {
71
+ if (from >= brace.begin && to <= brace.end) {
71
72
  isIn = true;
72
73
  break;
73
74
  }
@@ -142,8 +143,7 @@ var FormulaPlugin = /** @class */ (function () {
142
143
  var varMap = {};
143
144
  amisCore.eachTree(variables, function (item) {
144
145
  if (item.value) {
145
- var key = "${".concat(item.value, "}");
146
- varMap[key] = item.label;
146
+ varMap[item.value] = item.label;
147
147
  }
148
148
  });
149
149
  var vars = Object.keys(varMap).sort(function (a, b) { return b.length - a.length; });
@@ -187,6 +187,13 @@ var FormulaPlugin = /** @class */ (function () {
187
187
  _loop_1(line);
188
188
  }
189
189
  };
190
+ // 焦点放在最后
191
+ FormulaPlugin.prototype.focus = function (value) {
192
+ this.editor.setCursor({
193
+ line: 0,
194
+ ch: (value === null || value === void 0 ? void 0 : value.length) || 0
195
+ });
196
+ };
190
197
  FormulaPlugin.prototype.dispose = function () { };
191
198
  FormulaPlugin.prototype.validate = function () { };
192
199
  return FormulaPlugin;
@@ -26,6 +26,7 @@ import UserRemove from '../icons/user-remove.svg';
26
26
  import Role from '../icons/role.svg';
27
27
  import Department from '../icons/department.svg';
28
28
  import Post from '../icons/post.svg';
29
+ import RightDoubleArrowIcon from '../icons/right-double-arrow.svg';
29
30
  export declare const closeIcon: JSX.Element;
30
31
  export declare const unDoIcon: JSX.Element;
31
32
  export declare const reDoIcon: JSX.Element;
@@ -42,4 +43,4 @@ export declare function registerIcon(key: string, component: React.ReactType<{}>
42
43
  export declare function Icon({ icon, className, ...rest }: {
43
44
  icon: string;
44
45
  } & React.ComponentProps<any>): JSX.Element;
45
- export { InputClearIcon, CloseIcon, UnDoIcon, ReDoIcon, EnterIcon, VolumeIcon, MuteIcon, PlayIcon, PauseIcon, ReloadIcon, LeftArrowIcon, RightArrowIcon, CheckIcon, PlusIcon, MinusIcon, PencilIcon, FunctionIcon, MenuIcon, UserRemove, Role, Department, Post };
46
+ export { InputClearIcon, CloseIcon, UnDoIcon, ReDoIcon, EnterIcon, VolumeIcon, MuteIcon, PlayIcon, PauseIcon, ReloadIcon, LeftArrowIcon, RightArrowIcon, CheckIcon, PlusIcon, MinusIcon, PencilIcon, FunctionIcon, MenuIcon, UserRemove, Role, Department, Post, RightDoubleArrowIcon };