amis-ui 2.9.0 → 3.0.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 (719) hide show
  1. package/esm/_virtual/index.js +1 -1
  2. package/esm/_virtual/react-is.development.js +1 -1
  3. package/esm/_virtual/react-is.production.min.js +1 -1
  4. package/esm/components/404.js +1 -1
  5. package/esm/components/Alert.js +1 -1
  6. package/esm/components/Alert2.js +1 -1
  7. package/esm/components/AnchorNav.js +1 -1
  8. package/esm/components/ArrayInput.js +1 -1
  9. package/esm/components/AsideNav.js +1 -1
  10. package/esm/components/AssociatedSelection.js +1 -1
  11. package/esm/components/Avatar.js +1 -1
  12. package/esm/components/Badge.d.ts +1 -1
  13. package/esm/components/Badge.js +1 -1
  14. package/esm/components/BaiduMapPicker.js +1 -1
  15. package/esm/components/BarCode.js +1 -1
  16. package/esm/components/Breadcrumb.js +1 -1
  17. package/esm/components/Button.js +1 -1
  18. package/esm/components/CalendarMobile.js +1 -1
  19. package/esm/components/Card.d.ts +10 -10
  20. package/esm/components/Card.js +1 -1
  21. package/esm/components/Cascader.js +1 -1
  22. package/esm/components/ChainedSelection.js +1 -1
  23. package/esm/components/Checkbox.js +2 -2
  24. package/esm/components/CityArea.js +1 -1
  25. package/esm/components/CityDB.js +1 -1
  26. package/esm/components/CodeMirror.js +1 -1
  27. package/esm/components/Collapse.d.ts +10 -10
  28. package/esm/components/Collapse.js +1 -1
  29. package/esm/components/CollapseGroup.js +1 -1
  30. package/esm/components/ColorPicker.js +1 -1
  31. package/esm/components/Combo.js +1 -1
  32. package/esm/components/ConfirmBox.d.ts +40 -40
  33. package/esm/components/ConfirmBox.js +1 -1
  34. package/esm/components/ContextMenu.js +1 -1
  35. package/esm/components/DatePicker.d.ts +0 -1
  36. package/esm/components/DatePicker.js +1 -2
  37. package/esm/components/DateRangePicker.js +8 -6
  38. package/esm/components/DndContainer.js +1 -1
  39. package/esm/components/Drawer.js +2 -2
  40. package/esm/components/Editor.js +1 -1
  41. package/esm/components/Form.js +1 -1
  42. package/esm/components/FormField.js +1 -1
  43. package/esm/components/GaodeMapPicker.d.ts +89 -0
  44. package/esm/components/GaodeMapPicker.js +204 -0
  45. package/esm/components/GridNav.js +1 -1
  46. package/esm/components/GroupedSelection.js +1 -1
  47. package/esm/components/Html.d.ts +11 -10
  48. package/esm/components/Html.js +3 -3
  49. package/esm/components/ImageGallery.d.ts +45 -41
  50. package/esm/components/ImageGallery.js +5 -3
  51. package/esm/components/Input.js +1 -1
  52. package/esm/components/InputBox.js +1 -1
  53. package/esm/components/InputBoxWithSuggestion.js +1 -1
  54. package/esm/components/InputTable.js +1 -1
  55. package/esm/components/Layout.js +1 -1
  56. package/esm/components/Link.js +1 -1
  57. package/esm/components/ListGroup.d.ts +10 -10
  58. package/esm/components/ListGroup.js +1 -1
  59. package/esm/components/ListMenu.js +1 -1
  60. package/esm/components/LocationPicker.js +14 -2
  61. package/esm/components/Markdown.js +1 -1
  62. package/esm/components/Modal.js +1 -1
  63. package/esm/components/ModalManager.js +1 -1
  64. package/esm/components/MultilineText.js +1 -1
  65. package/esm/components/NumberInput.d.ts +23 -12
  66. package/esm/components/NumberInput.js +10 -5
  67. package/esm/components/Pagination.js +1 -1
  68. package/esm/components/Picker.js +1 -1
  69. package/esm/components/PickerColumn.js +1 -1
  70. package/esm/components/PickerContainer.js +1 -1
  71. package/esm/components/PopOverContainer.js +1 -1
  72. package/esm/components/PopUp.js +1 -1
  73. package/esm/components/Progress.js +1 -1
  74. package/esm/components/PullRefresh.js +1 -1
  75. package/esm/components/Radios.js +1 -1
  76. package/esm/components/Range.d.ts +22 -1
  77. package/esm/components/Range.js +35 -4
  78. package/esm/components/Rating.js +1 -1
  79. package/esm/components/ResultBox.js +1 -1
  80. package/esm/components/ResultList.js +1 -1
  81. package/esm/components/ResultTableList.js +1 -1
  82. package/esm/components/ResultTreeList.js +1 -1
  83. package/esm/components/RichText.d.ts +1 -0
  84. package/esm/components/RichText.js +1 -1
  85. package/esm/components/SearchBox.js +1 -1
  86. package/esm/components/Select.js +1 -1
  87. package/esm/components/Selection.js +1 -1
  88. package/esm/components/SparkLine.js +1 -1
  89. package/esm/components/Spinner.js +3 -3
  90. package/esm/components/Steps.d.ts +2 -2
  91. package/esm/components/Steps.js +4 -2
  92. package/esm/components/Switch.js +1 -1
  93. package/esm/components/TableSelection.js +1 -1
  94. package/esm/components/Tabs.js +1 -1
  95. package/esm/components/TabsTransfer.d.ts +41 -40
  96. package/esm/components/TabsTransfer.js +4 -4
  97. package/esm/components/TabsTransferPicker.js +1 -1
  98. package/esm/components/Tag.js +20 -4
  99. package/esm/components/Textarea.js +1 -1
  100. package/esm/components/Timeline.js +1 -1
  101. package/esm/components/TimelineItem.js +1 -1
  102. package/esm/components/Tinymce.js +1 -1
  103. package/esm/components/TitleBar.js +1 -1
  104. package/esm/components/Toast.d.ts +2 -0
  105. package/esm/components/Toast.js +5 -5
  106. package/esm/components/Tooltip.d.ts +1 -0
  107. package/esm/components/Tooltip.js +3 -3
  108. package/esm/components/TooltipWrapper.d.ts +8 -0
  109. package/esm/components/TooltipWrapper.js +3 -3
  110. package/esm/components/Transfer.js +1 -1
  111. package/esm/components/TransferDropDown.js +1 -1
  112. package/esm/components/TransferPicker.js +1 -1
  113. package/esm/components/TransferSearch.js +1 -1
  114. package/esm/components/Tree.js +8 -6
  115. package/esm/components/TreeSelection.js +1 -1
  116. package/esm/components/UserSelect.js +3 -1
  117. package/esm/components/UserTabSelect.js +3 -1
  118. package/esm/components/WithRemoteConfig.js +1 -1
  119. package/esm/components/WithStore.js +1 -1
  120. package/esm/components/calendar/Calendar.d.ts +2 -0
  121. package/esm/components/calendar/Calendar.js +3 -1
  122. package/esm/components/calendar/CalendarContainer.js +1 -1
  123. package/esm/components/calendar/DaysView.js +3 -3
  124. package/esm/components/calendar/MonthsView.js +8 -8
  125. package/esm/components/calendar/QuartersView.js +1 -1
  126. package/esm/components/calendar/TimeView.js +1 -1
  127. package/esm/components/calendar/YearsView.js +1 -1
  128. package/esm/components/condition-builder/Expression.js +1 -1
  129. package/esm/components/condition-builder/Field.js +1 -1
  130. package/esm/components/condition-builder/Formula.js +1 -1
  131. package/esm/components/condition-builder/Func.js +1 -1
  132. package/esm/components/condition-builder/Group.js +1 -1
  133. package/esm/components/condition-builder/GroupOrItem.js +1 -1
  134. package/esm/components/condition-builder/InputSwitch.js +1 -1
  135. package/esm/components/condition-builder/Item.d.ts +1 -1
  136. package/esm/components/condition-builder/Item.js +7 -7
  137. package/esm/components/condition-builder/Value.js +3 -12
  138. package/esm/components/condition-builder/config.js +1 -1
  139. package/esm/components/condition-builder/index.js +1 -1
  140. package/esm/components/condition-builder/types.d.ts +1 -1
  141. package/esm/components/formula/Editor.js +1 -1
  142. package/esm/components/formula/FuncList.js +1 -1
  143. package/esm/components/formula/Picker.js +1 -1
  144. package/esm/components/formula/VariableList.js +4 -4
  145. package/esm/components/formula/plugin.js +1 -1
  146. package/esm/components/icons.js +1 -1
  147. package/esm/components/index.d.ts +5 -1
  148. package/esm/components/json-schema/Array.js +1 -1
  149. package/esm/components/json-schema/Item.js +1 -1
  150. package/esm/components/json-schema/Object.js +1 -1
  151. package/esm/components/json-schema/index.js +1 -1
  152. package/esm/components/menu/MenuContext.js +1 -1
  153. package/esm/components/menu/MenuItem.d.ts +0 -3
  154. package/esm/components/menu/MenuItem.js +5 -24
  155. package/esm/components/menu/SubMenu.d.ts +0 -3
  156. package/esm/components/menu/SubMenu.js +13 -28
  157. package/esm/components/menu/index.d.ts +25 -28
  158. package/esm/components/menu/index.js +8 -9
  159. package/esm/components/schema-editor/Array.js +1 -1
  160. package/esm/components/schema-editor/Common.js +1 -1
  161. package/esm/components/schema-editor/Item.js +1 -1
  162. package/esm/components/schema-editor/Object.js +1 -1
  163. package/esm/components/schema-editor/SchemaVariableList.js +1 -1
  164. package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
  165. package/esm/components/schema-editor/index.js +1 -1
  166. package/esm/components/table/Cell.js +1 -1
  167. package/esm/components/table/HeadCellDropDown.js +1 -1
  168. package/esm/components/table/HeadCellFilter.js +5 -2
  169. package/esm/components/table/HeadCellSelect.js +1 -1
  170. package/esm/components/table/HeadCellSort.js +5 -5
  171. package/esm/components/table/ItemActionsWrapper.js +1 -1
  172. package/esm/components/table/index.d.ts +2 -2
  173. package/esm/components/table/index.js +98 -57
  174. package/esm/components/virtual-list/AutoSizer.js +1 -1
  175. package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
  176. package/esm/components/virtual-list/constants.js +1 -1
  177. package/esm/components/virtual-list/index.js +1 -1
  178. package/esm/hooks/use-set-state.js +1 -1
  179. package/esm/hooks/use-sub-form.js +1 -1
  180. package/esm/hooks/use-touch.js +1 -1
  181. package/esm/hooks/use-update-effect.js +1 -1
  182. package/esm/hooks/use-validation-resolver.js +1 -1
  183. package/esm/icons/alert-danger.svg.js +1 -1
  184. package/esm/icons/alert-info.svg.js +1 -1
  185. package/esm/icons/alert-success.svg.js +1 -1
  186. package/esm/icons/alert-warning.svg.js +1 -1
  187. package/esm/icons/back.svg.js +1 -1
  188. package/esm/icons/calendar.svg.js +1 -1
  189. package/esm/icons/caret.svg.js +1 -1
  190. package/esm/icons/check.svg.js +1 -1
  191. package/esm/icons/clock.svg.js +1 -1
  192. package/esm/icons/close-small.svg.js +1 -1
  193. package/esm/icons/close.svg.js +1 -1
  194. package/esm/icons/cloud-upload.svg.js +1 -1
  195. package/esm/icons/column-filter.svg.js +1 -1
  196. package/esm/icons/columns.svg.js +1 -1
  197. package/esm/icons/compress-alt.svg.js +1 -1
  198. package/esm/icons/copy.svg.js +1 -1
  199. package/esm/icons/date.svg.js +1 -1
  200. package/esm/icons/department.svg.js +1 -1
  201. package/esm/icons/desk-empty.svg.js +1 -1
  202. package/esm/icons/dot.svg.js +1 -1
  203. package/esm/icons/down-arrow-bold.svg.js +1 -1
  204. package/esm/icons/down.svg.js +1 -1
  205. package/esm/icons/download.svg.js +1 -1
  206. package/esm/icons/drag-bar.svg.js +1 -1
  207. package/esm/icons/drag.svg.js +1 -1
  208. package/esm/icons/edit.svg.js +1 -1
  209. package/esm/icons/ellipsis-v.svg.js +1 -1
  210. package/esm/icons/enter.svg.js +1 -1
  211. package/esm/icons/exchange.svg.js +1 -1
  212. package/esm/icons/expand-alt.svg.js +1 -1
  213. package/esm/icons/fail.svg.js +1 -1
  214. package/esm/icons/file.svg.js +1 -1
  215. package/esm/icons/filter.svg.js +1 -1
  216. package/esm/icons/folder.svg.js +1 -1
  217. package/esm/icons/function.svg.js +1 -1
  218. package/esm/icons/home.svg.js +1 -1
  219. package/esm/icons/image.svg.js +1 -1
  220. package/esm/icons/info-circle.svg.js +1 -1
  221. package/esm/icons/info.svg.js +1 -1
  222. package/esm/icons/input-clear.svg.js +1 -1
  223. package/esm/icons/invisible.svg.js +1 -1
  224. package/esm/icons/left-arrow.svg.js +1 -1
  225. package/esm/icons/loading-outline.svg.js +1 -1
  226. package/esm/icons/location.svg.js +1 -1
  227. package/esm/icons/menu.svg.js +1 -1
  228. package/esm/icons/minus.svg.js +1 -1
  229. package/esm/icons/move.svg.js +1 -1
  230. package/esm/icons/mute.svg.js +1 -1
  231. package/esm/icons/new-edit.svg.js +1 -1
  232. package/esm/icons/pause.svg.js +1 -1
  233. package/esm/icons/pencil.svg.js +1 -1
  234. package/esm/icons/play.svg.js +1 -1
  235. package/esm/icons/plus-cicle.svg.js +1 -1
  236. package/esm/icons/plus-fine.svg.js +1 -1
  237. package/esm/icons/plus.svg.js +1 -1
  238. package/esm/icons/post.svg.js +1 -1
  239. package/esm/icons/question-mark.svg.js +1 -1
  240. package/esm/icons/question.svg.js +1 -1
  241. package/esm/icons/redo.svg.js +1 -1
  242. package/esm/icons/refresh.svg.js +1 -1
  243. package/esm/icons/reload.svg.js +1 -1
  244. package/esm/icons/remove.svg.js +1 -1
  245. package/esm/icons/retry.svg.js +1 -1
  246. package/esm/icons/right-arrow-bold.svg.js +1 -1
  247. package/esm/icons/right-arrow.svg.js +1 -1
  248. package/esm/icons/right-double-arrow.svg.js +1 -1
  249. package/esm/icons/role.svg.js +1 -1
  250. package/esm/icons/rotate-left.svg.js +1 -1
  251. package/esm/icons/rotate-right.svg.js +1 -1
  252. package/esm/icons/scale-origin.svg.js +1 -1
  253. package/esm/icons/schedule.svg.js +1 -1
  254. package/esm/icons/search.svg.js +1 -1
  255. package/esm/icons/setting.svg.js +1 -1
  256. package/esm/icons/slider-handle-icon.svg.js +1 -1
  257. package/esm/icons/sort-asc.svg.js +1 -1
  258. package/esm/icons/sort-default.svg.js +1 -1
  259. package/esm/icons/sort-desc.svg.js +1 -1
  260. package/esm/icons/star.svg.js +1 -1
  261. package/esm/icons/status-close.svg.js +2 -2
  262. package/esm/icons/steps-finsh.svg.js +1 -1
  263. package/esm/icons/success.svg.js +1 -1
  264. package/esm/icons/transparent.svg.js +1 -1
  265. package/esm/icons/trash.svg.js +1 -1
  266. package/esm/icons/tree-down.svg.js +1 -1
  267. package/esm/icons/undo.svg.js +1 -1
  268. package/esm/icons/upload.svg.js +1 -1
  269. package/esm/icons/user-remove.svg.js +1 -1
  270. package/esm/icons/view.svg.js +1 -1
  271. package/esm/icons/volume.svg.js +1 -1
  272. package/esm/icons/warning-mark.svg.js +1 -1
  273. package/esm/icons/warning.svg.js +1 -1
  274. package/esm/icons/window-restore.svg.js +1 -1
  275. package/esm/icons/zoom-in.svg.js +1 -1
  276. package/esm/icons/zoom-out.svg.js +1 -1
  277. package/esm/index.d.ts +3 -0
  278. package/esm/index.js +4 -1
  279. package/esm/locale/de-DE.js +2 -2
  280. package/esm/locale/en-US.js +3 -2
  281. package/esm/locale/zh-CN.js +4 -3
  282. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
  283. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  284. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  285. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  286. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  287. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  288. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  289. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  290. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  291. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  292. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  293. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
  294. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  295. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  296. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  297. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  298. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  299. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  300. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  301. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  302. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  303. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  304. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  305. package/esm/node_modules/rc-overflow/es/Item.js +1 -1
  306. package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
  307. package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
  308. package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
  309. package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
  310. package/esm/node_modules/rc-overflow/es/index.js +1 -1
  311. package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
  312. package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
  313. package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
  314. package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
  315. package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
  316. package/esm/node_modules/rc-util/es/Children/toArray.js +1 -1
  317. package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
  318. package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
  319. package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
  320. package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
  321. package/esm/node_modules/rc-util/es/raf.js +1 -1
  322. package/esm/node_modules/rc-util/es/ref.js +1 -1
  323. package/esm/node_modules/rc-util/es/warning.js +8 -2
  324. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
  325. package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  326. package/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
  327. package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  328. package/esm/themes/ang.js +1 -1
  329. package/esm/themes/antd.js +1 -1
  330. package/esm/themes/cxd.js +1 -1
  331. package/esm/themes/dark.js +1 -1
  332. package/lib/_virtual/index.js +1 -1
  333. package/lib/_virtual/react-is.development.js +1 -1
  334. package/lib/_virtual/react-is.production.min.js +1 -1
  335. package/lib/components/404.js +1 -1
  336. package/lib/components/Alert.js +1 -1
  337. package/lib/components/Alert2.js +1 -1
  338. package/lib/components/AnchorNav.js +1 -1
  339. package/lib/components/ArrayInput.js +1 -1
  340. package/lib/components/AsideNav.js +1 -1
  341. package/lib/components/AssociatedSelection.js +1 -1
  342. package/lib/components/Avatar.js +1 -1
  343. package/lib/components/Badge.d.ts +1 -1
  344. package/lib/components/Badge.js +1 -1
  345. package/lib/components/BaiduMapPicker.js +1 -1
  346. package/lib/components/BarCode.js +1 -1
  347. package/lib/components/Breadcrumb.js +1 -1
  348. package/lib/components/Button.js +1 -1
  349. package/lib/components/CalendarMobile.js +1 -1
  350. package/lib/components/Card.d.ts +10 -10
  351. package/lib/components/Card.js +1 -1
  352. package/lib/components/Cascader.js +1 -1
  353. package/lib/components/ChainedSelection.js +1 -1
  354. package/lib/components/Checkbox.js +2 -2
  355. package/lib/components/CityArea.js +1 -1
  356. package/lib/components/CityDB.js +1 -1
  357. package/lib/components/CodeMirror.js +1 -1
  358. package/lib/components/Collapse.d.ts +10 -10
  359. package/lib/components/Collapse.js +1 -1
  360. package/lib/components/CollapseGroup.js +1 -1
  361. package/lib/components/ColorPicker.js +1 -1
  362. package/lib/components/Combo.js +1 -1
  363. package/lib/components/ConfirmBox.d.ts +40 -40
  364. package/lib/components/ConfirmBox.js +1 -1
  365. package/lib/components/ContextMenu.js +1 -1
  366. package/lib/components/DatePicker.d.ts +0 -1
  367. package/lib/components/DatePicker.js +1 -2
  368. package/lib/components/DateRangePicker.js +8 -6
  369. package/lib/components/DndContainer.js +1 -1
  370. package/lib/components/Drawer.js +2 -2
  371. package/lib/components/Editor.js +1 -1
  372. package/lib/components/Form.js +1 -1
  373. package/lib/components/FormField.js +1 -1
  374. package/lib/components/GaodeMapPicker.d.ts +89 -0
  375. package/lib/components/GaodeMapPicker.js +214 -0
  376. package/lib/components/GridNav.js +1 -1
  377. package/lib/components/GroupedSelection.js +1 -1
  378. package/lib/components/Html.d.ts +11 -10
  379. package/lib/components/Html.js +3 -3
  380. package/lib/components/ImageGallery.d.ts +45 -41
  381. package/lib/components/ImageGallery.js +5 -3
  382. package/lib/components/Input.js +1 -1
  383. package/lib/components/InputBox.js +1 -1
  384. package/lib/components/InputBoxWithSuggestion.js +1 -1
  385. package/lib/components/InputTable.js +1 -1
  386. package/lib/components/Layout.js +1 -1
  387. package/lib/components/Link.js +1 -1
  388. package/lib/components/ListGroup.d.ts +10 -10
  389. package/lib/components/ListGroup.js +1 -1
  390. package/lib/components/ListMenu.js +1 -1
  391. package/lib/components/LocationPicker.js +14 -2
  392. package/lib/components/Markdown.js +1 -1
  393. package/lib/components/Modal.js +1 -1
  394. package/lib/components/ModalManager.js +1 -1
  395. package/lib/components/MultilineText.js +1 -1
  396. package/lib/components/NumberInput.d.ts +23 -12
  397. package/lib/components/NumberInput.js +10 -5
  398. package/lib/components/Pagination.js +1 -1
  399. package/lib/components/Picker.js +1 -1
  400. package/lib/components/PickerColumn.js +1 -1
  401. package/lib/components/PickerContainer.js +1 -1
  402. package/lib/components/PopOverContainer.js +1 -1
  403. package/lib/components/PopUp.js +1 -1
  404. package/lib/components/Progress.js +1 -1
  405. package/lib/components/PullRefresh.js +1 -1
  406. package/lib/components/Radios.js +1 -1
  407. package/lib/components/Range.d.ts +22 -1
  408. package/lib/components/Range.js +35 -4
  409. package/lib/components/Rating.js +1 -1
  410. package/lib/components/ResultBox.js +1 -1
  411. package/lib/components/ResultList.js +1 -1
  412. package/lib/components/ResultTableList.js +1 -1
  413. package/lib/components/ResultTreeList.js +1 -1
  414. package/lib/components/RichText.d.ts +1 -0
  415. package/lib/components/RichText.js +1 -1
  416. package/lib/components/SearchBox.js +1 -1
  417. package/lib/components/Select.js +1 -1
  418. package/lib/components/Selection.js +1 -1
  419. package/lib/components/SparkLine.js +1 -1
  420. package/lib/components/Spinner.js +3 -3
  421. package/lib/components/Steps.d.ts +2 -2
  422. package/lib/components/Steps.js +4 -2
  423. package/lib/components/Switch.js +1 -1
  424. package/lib/components/TableSelection.js +1 -1
  425. package/lib/components/Tabs.js +1 -1
  426. package/lib/components/TabsTransfer.d.ts +41 -40
  427. package/lib/components/TabsTransfer.js +3 -3
  428. package/lib/components/TabsTransferPicker.js +1 -1
  429. package/lib/components/Tag.js +20 -4
  430. package/lib/components/Textarea.js +1 -1
  431. package/lib/components/Timeline.js +1 -1
  432. package/lib/components/TimelineItem.js +1 -1
  433. package/lib/components/Tinymce.js +1 -1
  434. package/lib/components/TitleBar.js +1 -1
  435. package/lib/components/Toast.d.ts +2 -0
  436. package/lib/components/Toast.js +5 -5
  437. package/lib/components/Tooltip.d.ts +1 -0
  438. package/lib/components/Tooltip.js +3 -3
  439. package/lib/components/TooltipWrapper.d.ts +8 -0
  440. package/lib/components/TooltipWrapper.js +3 -3
  441. package/lib/components/Transfer.js +1 -1
  442. package/lib/components/TransferDropDown.js +1 -1
  443. package/lib/components/TransferPicker.js +1 -1
  444. package/lib/components/TransferSearch.js +1 -1
  445. package/lib/components/Tree.js +8 -6
  446. package/lib/components/TreeSelection.js +1 -1
  447. package/lib/components/UserSelect.js +3 -1
  448. package/lib/components/UserTabSelect.js +3 -1
  449. package/lib/components/WithRemoteConfig.js +1 -1
  450. package/lib/components/WithStore.js +1 -1
  451. package/lib/components/calendar/Calendar.d.ts +2 -0
  452. package/lib/components/calendar/Calendar.js +3 -1
  453. package/lib/components/calendar/CalendarContainer.js +1 -1
  454. package/lib/components/calendar/DaysView.js +3 -3
  455. package/lib/components/calendar/MonthsView.js +7 -7
  456. package/lib/components/calendar/QuartersView.js +1 -1
  457. package/lib/components/calendar/TimeView.js +1 -1
  458. package/lib/components/calendar/YearsView.js +1 -1
  459. package/lib/components/condition-builder/Expression.js +1 -1
  460. package/lib/components/condition-builder/Field.js +1 -1
  461. package/lib/components/condition-builder/Formula.js +1 -1
  462. package/lib/components/condition-builder/Func.js +1 -1
  463. package/lib/components/condition-builder/Group.js +1 -1
  464. package/lib/components/condition-builder/GroupOrItem.js +1 -1
  465. package/lib/components/condition-builder/InputSwitch.js +1 -1
  466. package/lib/components/condition-builder/Item.d.ts +1 -1
  467. package/lib/components/condition-builder/Item.js +6 -6
  468. package/lib/components/condition-builder/Value.js +3 -12
  469. package/lib/components/condition-builder/config.js +1 -1
  470. package/lib/components/condition-builder/index.js +1 -1
  471. package/lib/components/condition-builder/types.d.ts +1 -1
  472. package/lib/components/formula/Editor.js +1 -1
  473. package/lib/components/formula/FuncList.js +1 -1
  474. package/lib/components/formula/Picker.js +1 -1
  475. package/lib/components/formula/VariableList.js +3 -3
  476. package/lib/components/formula/plugin.js +1 -1
  477. package/lib/components/icons.js +1 -1
  478. package/lib/components/index.d.ts +5 -1
  479. package/lib/components/json-schema/Array.js +1 -1
  480. package/lib/components/json-schema/Item.js +1 -1
  481. package/lib/components/json-schema/Object.js +1 -1
  482. package/lib/components/json-schema/index.js +1 -1
  483. package/lib/components/menu/MenuContext.js +1 -1
  484. package/lib/components/menu/MenuItem.d.ts +0 -3
  485. package/lib/components/menu/MenuItem.js +5 -24
  486. package/lib/components/menu/SubMenu.d.ts +0 -3
  487. package/lib/components/menu/SubMenu.js +13 -28
  488. package/lib/components/menu/index.d.ts +25 -28
  489. package/lib/components/menu/index.js +8 -9
  490. package/lib/components/schema-editor/Array.js +1 -1
  491. package/lib/components/schema-editor/Common.js +1 -1
  492. package/lib/components/schema-editor/Item.js +1 -1
  493. package/lib/components/schema-editor/Object.js +1 -1
  494. package/lib/components/schema-editor/SchemaVariableList.js +1 -1
  495. package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
  496. package/lib/components/schema-editor/index.js +1 -1
  497. package/lib/components/table/Cell.js +1 -1
  498. package/lib/components/table/HeadCellDropDown.js +1 -1
  499. package/lib/components/table/HeadCellFilter.js +5 -2
  500. package/lib/components/table/HeadCellSelect.js +1 -1
  501. package/lib/components/table/HeadCellSort.js +5 -5
  502. package/lib/components/table/ItemActionsWrapper.js +1 -1
  503. package/lib/components/table/index.d.ts +2 -2
  504. package/lib/components/table/index.js +98 -57
  505. package/lib/components/virtual-list/AutoSizer.js +1 -1
  506. package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
  507. package/lib/components/virtual-list/constants.js +1 -1
  508. package/lib/components/virtual-list/index.js +1 -1
  509. package/lib/helper.css +9569 -1234
  510. package/lib/hooks/use-set-state.js +1 -1
  511. package/lib/hooks/use-sub-form.js +1 -1
  512. package/lib/hooks/use-touch.js +1 -1
  513. package/lib/hooks/use-update-effect.js +1 -1
  514. package/lib/hooks/use-validation-resolver.js +1 -1
  515. package/lib/icons/alert-danger.svg.js +1 -1
  516. package/lib/icons/alert-info.svg.js +1 -1
  517. package/lib/icons/alert-success.svg.js +1 -1
  518. package/lib/icons/alert-warning.svg.js +1 -1
  519. package/lib/icons/back.svg.js +1 -1
  520. package/lib/icons/calendar.svg.js +1 -1
  521. package/lib/icons/caret.svg.js +1 -1
  522. package/lib/icons/check.svg.js +1 -1
  523. package/lib/icons/clock.svg.js +1 -1
  524. package/lib/icons/close-small.svg.js +1 -1
  525. package/lib/icons/close.svg.js +1 -1
  526. package/lib/icons/cloud-upload.svg.js +1 -1
  527. package/lib/icons/column-filter.svg.js +1 -1
  528. package/lib/icons/columns.svg.js +1 -1
  529. package/lib/icons/compress-alt.svg.js +1 -1
  530. package/lib/icons/copy.svg.js +1 -1
  531. package/lib/icons/date.svg.js +1 -1
  532. package/lib/icons/department.svg.js +1 -1
  533. package/lib/icons/desk-empty.svg.js +1 -1
  534. package/lib/icons/dot.svg.js +1 -1
  535. package/lib/icons/down-arrow-bold.svg.js +1 -1
  536. package/lib/icons/down.svg.js +1 -1
  537. package/lib/icons/download.svg.js +1 -1
  538. package/lib/icons/drag-bar.svg.js +1 -1
  539. package/lib/icons/drag.svg.js +1 -1
  540. package/lib/icons/edit.svg.js +1 -1
  541. package/lib/icons/ellipsis-v.svg.js +1 -1
  542. package/lib/icons/enter.svg.js +1 -1
  543. package/lib/icons/exchange.svg.js +1 -1
  544. package/lib/icons/expand-alt.svg.js +1 -1
  545. package/lib/icons/fail.svg.js +1 -1
  546. package/lib/icons/file.svg.js +1 -1
  547. package/lib/icons/filter.svg.js +1 -1
  548. package/lib/icons/folder.svg.js +1 -1
  549. package/lib/icons/function.svg.js +1 -1
  550. package/lib/icons/home.svg.js +1 -1
  551. package/lib/icons/image.svg.js +1 -1
  552. package/lib/icons/info-circle.svg.js +1 -1
  553. package/lib/icons/info.svg.js +1 -1
  554. package/lib/icons/input-clear.svg.js +1 -1
  555. package/lib/icons/invisible.svg.js +1 -1
  556. package/lib/icons/left-arrow.svg.js +1 -1
  557. package/lib/icons/loading-outline.svg.js +1 -1
  558. package/lib/icons/location.svg.js +1 -1
  559. package/lib/icons/menu.svg.js +1 -1
  560. package/lib/icons/minus.svg.js +1 -1
  561. package/lib/icons/move.svg.js +1 -1
  562. package/lib/icons/mute.svg.js +1 -1
  563. package/lib/icons/new-edit.svg.js +1 -1
  564. package/lib/icons/pause.svg.js +1 -1
  565. package/lib/icons/pencil.svg.js +1 -1
  566. package/lib/icons/play.svg.js +1 -1
  567. package/lib/icons/plus-cicle.svg.js +1 -1
  568. package/lib/icons/plus-fine.svg.js +1 -1
  569. package/lib/icons/plus.svg.js +1 -1
  570. package/lib/icons/post.svg.js +1 -1
  571. package/lib/icons/question-mark.svg.js +1 -1
  572. package/lib/icons/question.svg.js +1 -1
  573. package/lib/icons/redo.svg.js +1 -1
  574. package/lib/icons/refresh.svg.js +1 -1
  575. package/lib/icons/reload.svg.js +1 -1
  576. package/lib/icons/remove.svg.js +1 -1
  577. package/lib/icons/retry.svg.js +1 -1
  578. package/lib/icons/right-arrow-bold.svg.js +1 -1
  579. package/lib/icons/right-arrow.svg.js +1 -1
  580. package/lib/icons/right-double-arrow.svg.js +1 -1
  581. package/lib/icons/role.svg.js +1 -1
  582. package/lib/icons/rotate-left.svg.js +1 -1
  583. package/lib/icons/rotate-right.svg.js +1 -1
  584. package/lib/icons/scale-origin.svg.js +1 -1
  585. package/lib/icons/schedule.svg.js +1 -1
  586. package/lib/icons/search.svg.js +1 -1
  587. package/lib/icons/setting.svg.js +1 -1
  588. package/lib/icons/slider-handle-icon.svg.js +1 -1
  589. package/lib/icons/sort-asc.svg.js +1 -1
  590. package/lib/icons/sort-default.svg.js +1 -1
  591. package/lib/icons/sort-desc.svg.js +1 -1
  592. package/lib/icons/star.svg.js +1 -1
  593. package/lib/icons/status-close.svg.js +2 -2
  594. package/lib/icons/steps-finsh.svg.js +1 -1
  595. package/lib/icons/success.svg.js +1 -1
  596. package/lib/icons/transparent.svg.js +1 -1
  597. package/lib/icons/trash.svg.js +1 -1
  598. package/lib/icons/tree-down.svg.js +1 -1
  599. package/lib/icons/undo.svg.js +1 -1
  600. package/lib/icons/upload.svg.js +1 -1
  601. package/lib/icons/user-remove.svg.js +1 -1
  602. package/lib/icons/view.svg.js +1 -1
  603. package/lib/icons/volume.svg.js +1 -1
  604. package/lib/icons/warning-mark.svg.js +1 -1
  605. package/lib/icons/warning.svg.js +1 -1
  606. package/lib/icons/window-restore.svg.js +1 -1
  607. package/lib/icons/zoom-in.svg.js +1 -1
  608. package/lib/icons/zoom-out.svg.js +1 -1
  609. package/lib/index.d.ts +3 -0
  610. package/lib/index.js +7 -1
  611. package/lib/locale/de-DE.js +2 -2
  612. package/lib/locale/en-US.js +3 -2
  613. package/lib/locale/zh-CN.js +4 -3
  614. package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
  615. package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  616. package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  617. package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  618. package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  619. package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  620. package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  621. package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  622. package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  623. package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  624. package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  625. package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
  626. package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  627. package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  628. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  629. package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  630. package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  631. package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  632. package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  633. package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  634. package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  635. package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  636. package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  637. package/lib/node_modules/rc-overflow/es/Item.js +1 -1
  638. package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
  639. package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
  640. package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
  641. package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
  642. package/lib/node_modules/rc-overflow/es/index.js +1 -1
  643. package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
  644. package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
  645. package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
  646. package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
  647. package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
  648. package/lib/node_modules/rc-util/es/Children/toArray.js +1 -1
  649. package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
  650. package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
  651. package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
  652. package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
  653. package/lib/node_modules/rc-util/es/raf.js +1 -1
  654. package/lib/node_modules/rc-util/es/ref.js +1 -1
  655. package/lib/node_modules/rc-util/es/warning.js +8 -2
  656. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +1 -1
  657. package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  658. package/lib/node_modules/rc-util/node_modules/react-is/index.js +1 -1
  659. package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
  660. package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
  661. package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
  662. package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
  663. package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
  664. package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
  665. package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
  666. package/lib/themes/ang.css +2767 -1920
  667. package/lib/themes/ang.js +1 -1
  668. package/lib/themes/antd.css +2767 -1920
  669. package/lib/themes/antd.js +1 -1
  670. package/lib/themes/cxd.css +2767 -1920
  671. package/lib/themes/cxd.js +1 -1
  672. package/lib/themes/dark.css +2767 -1920
  673. package/lib/themes/dark.js +1 -1
  674. package/lib/themes/default.css +2767 -1920
  675. package/package.json +5 -5
  676. package/scss/_components.scss +1296 -115
  677. package/scss/_mixins.scss +1 -1
  678. package/scss/_properties.scss +5 -374
  679. package/scss/base/_common.scss +4 -0
  680. package/scss/components/_alert.scss +30 -9
  681. package/scss/components/_button-group.scss +0 -1
  682. package/scss/components/_calendar.scss +14 -0
  683. package/scss/components/_column-toggler.scss +5 -2
  684. package/scss/components/_condition-builder.scss +38 -22
  685. package/scss/components/_crud.scss +21 -5
  686. package/scss/components/_crud2.scss +21 -5
  687. package/scss/components/_drawer.scss +20 -12
  688. package/scss/components/_image-gallery.scss +9 -6
  689. package/scss/components/_images.scss +13 -5
  690. package/scss/components/_menu.scss +243 -609
  691. package/scss/components/_modal.scss +22 -12
  692. package/scss/components/_nav.scss +6 -354
  693. package/scss/components/_progress.scss +11 -2
  694. package/scss/components/_result-box.scss +1 -0
  695. package/scss/components/_spinner.scss +6 -4
  696. package/scss/components/_status.scss +27 -11
  697. package/scss/components/_steps.scss +60 -20
  698. package/scss/components/_table2.scss +84 -40
  699. package/scss/components/_tag.scss +42 -36
  700. package/scss/components/_timeline.scss +20 -9
  701. package/scss/components/_toast.scss +64 -12
  702. package/scss/components/_wizard.scss +13 -7
  703. package/scss/components/form/_checks.scss +17 -3
  704. package/scss/components/form/_color.scss +5 -0
  705. package/scss/components/form/_combo.scss +28 -18
  706. package/scss/components/form/_date-range.scss +5 -0
  707. package/scss/components/form/_date.scss +8 -1
  708. package/scss/components/form/_fieldset.scss +62 -28
  709. package/scss/components/form/_form.scss +16 -0
  710. package/scss/components/form/_icon-select.scss +18 -0
  711. package/scss/components/form/_image.scss +43 -7
  712. package/scss/components/form/_number.scss +10 -0
  713. package/scss/components/form/_picker.scss +105 -12
  714. package/scss/components/form/_range.scss +6 -0
  715. package/scss/components/form/_rich-text.scss +81 -35
  716. package/scss/components/form/_tag.scss +56 -6
  717. package/scss/components/form/_text.scss +8 -0
  718. package/scss/components/form/_transfer.scss +18 -26
  719. package/scss/components/form/_tree.scss +55 -23
@@ -1,12 +1,12 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
6
6
  import { __extends, __assign, __decorate, __metadata } from 'tslib';
7
7
  import React__default from 'react';
8
8
  import { findDOMNode } from 'react-dom';
9
- import { findTree, noop, autobind, themeable, localeable } from 'amis-core';
9
+ import { findTree, noop, getVariable, autobind, themeable, localeable } from 'amis-core';
10
10
  import { Icon } from '../icons.js';
11
11
  import Expression from './Expression.js';
12
12
  import { OperationMap } from './config.js';
@@ -51,10 +51,10 @@ var ConditionItem = /** @class */ (function (_super) {
51
51
  var onChange = this.props.onChange;
52
52
  onChange(value, this.props.index);
53
53
  };
54
- ConditionItem.prototype.handleRightSubChange = function (isCustom, index, rightValue) {
54
+ ConditionItem.prototype.handleRightSubChange = function (index, rightValue) {
55
55
  var _a, _b;
56
56
  var origin;
57
- if (isCustom) {
57
+ if (typeof index === 'string') {
58
58
  origin = Object.assign({}, (_a = this.props.value) === null || _a === void 0 ? void 0 : _a.right);
59
59
  origin[index] = rightValue;
60
60
  }
@@ -160,16 +160,16 @@ var ConditionItem = /** @class */ (function (_super) {
160
160
  }
161
161
  else if (op === 'between' || op === 'not_between') {
162
162
  return (React__default.createElement(React__default.Fragment, null,
163
- React__default.createElement(Expression, { config: config, funcs: funcs, valueField: field, value: (_c = value.right) === null || _c === void 0 ? void 0 : _c[0], data: data, onChange: this.handleRightSubChange.bind(this, false, 0), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
163
+ React__default.createElement(Expression, { config: config, funcs: funcs, valueField: field, value: (_c = value.right) === null || _c === void 0 ? void 0 : _c[0], data: data, onChange: this.handleRightSubChange.bind(this, 0), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
164
164
  config.valueTypes || ['value', 'field', 'func', 'formula'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue }),
165
165
  React__default.createElement("span", { className: cx('CBSeprator') }, "~"),
166
- React__default.createElement(Expression, { config: config, funcs: funcs, valueField: field, value: (_d = value.right) === null || _d === void 0 ? void 0 : _d[1], data: data, onChange: this.handleRightSubChange.bind(this, false, 1), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
166
+ React__default.createElement(Expression, { config: config, funcs: funcs, valueField: field, value: (_d = value.right) === null || _d === void 0 ? void 0 : _d[1], data: data, onChange: this.handleRightSubChange.bind(this, 1), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
167
167
  config.valueTypes || ['value', 'field', 'func', 'formula'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue })));
168
168
  }
169
169
  else if (option && typeof option !== 'string' && option.values) {
170
170
  return option.values.map(function (schema, i) {
171
171
  return (React__default.createElement("span", { key: i },
172
- React__default.createElement(Expression, { config: config, op: op, funcs: funcs, valueField: schema, value: value.right, data: data, onChange: _this.handleRightSubChange.bind(_this, true, schema.name), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
172
+ React__default.createElement(Expression, { config: config, op: op, funcs: funcs, valueField: __assign(__assign({}, field), { value: schema }), value: getVariable(value.right, schema.name), data: data, onChange: _this.handleRightSubChange.bind(_this, schema.name), fields: fields, allowedTypes: (field === null || field === void 0 ? void 0 : field.valueTypes) ||
173
173
  config.valueTypes || ['value', 'field', 'func', 'formula'], disabled: disabled, formula: formula, popOverContainer: popOverContainer, renderEtrValue: renderEtrValue })));
174
174
  });
175
175
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -58,23 +58,14 @@ var Value = /** @class */ (function (_super) {
58
58
  }
59
59
  else if (field.type === 'custom') {
60
60
  input = renderEtrValue
61
- ? renderEtrValue(__assign(__assign({}, field.value), { name: field.name }), {
61
+ ? renderEtrValue(__assign(__assign({}, field.value), { name: 'TMP_WHATEVER_NAME' }), // name 随便输入,应该是 value 传入的为主,目前表单项内部逻辑还有问题先传一个 name
62
+ {
62
63
  data: data,
63
64
  onChange: onChange,
64
65
  value: value !== null && value !== void 0 ? value : field.defaultValue
65
66
  })
66
67
  : null;
67
68
  }
68
- else {
69
- var res = value !== null && value !== void 0 ? value : field.defaultValue;
70
- input = renderEtrValue
71
- ? renderEtrValue(field, {
72
- data: data,
73
- onChange: onChange,
74
- value: res ? res[field.name] : res
75
- })
76
- : null;
77
- }
78
69
  return React__default.createElement("div", { className: cx('CBValue') }, input);
79
70
  };
80
71
  return Value;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -76,7 +76,7 @@ interface BooleanField extends BaseField {
76
76
  type: 'boolean';
77
77
  name: string;
78
78
  }
79
- interface CustomField extends BaseField {
79
+ export interface CustomField extends BaseField {
80
80
  type: 'custom';
81
81
  name: string;
82
82
  value: any;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,11 +1,11 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
6
6
  import { __read } from 'tslib';
7
7
  import React__default from 'react';
8
- import { themeable, findTree } from 'amis-core';
8
+ import { themeable, findTreeAll } from 'amis-core';
9
9
  import GroupedSelection from '../GroupedSelection.js';
10
10
  import ThemedTabs, { Tab } from '../Tabs.js';
11
11
  import TreeSelection from '../TreeSelection.js';
@@ -33,8 +33,8 @@ function VariableList(props) {
33
33
  (option === null || option === void 0 ? void 0 : option.tag) ? (React__default.createElement("span", { className: cx("".concat(classPrefix, "-item-tag")) }, option.tag)) : null));
34
34
  };
35
35
  function onSearch(term) {
36
- var tree = findTree(list, function (i) { return ~i.label.indexOf(term); });
37
- setFilterVars(!term ? list : tree ? [tree] : []);
36
+ var tree = findTreeAll(list, function (i) { return ~i.label.indexOf(term); });
37
+ setFilterVars(!term ? list : tree);
38
38
  }
39
39
  function renderSearchBox() {
40
40
  return (React__default.createElement("div", { className: cx('FormulaEditor-VariableList-searchBox') },
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -62,6 +62,8 @@ import SchemaVariableListPicker from './schema-editor/SchemaVariableListPicker';
62
62
  import SchemaVariableList from './schema-editor/SchemaVariableList';
63
63
  import VariableList from './formula/VariableList';
64
64
  import FormulaPicker from './formula/Picker';
65
+ import { FormulaEditor } from './formula/Editor';
66
+ import type { VariableItem } from './formula/Editor';
65
67
  import PickerContainer from './PickerContainer';
66
68
  import InputJSONSchema from './json-schema';
67
69
  import { Badge, withBadge } from './Badge';
@@ -111,4 +113,6 @@ import ConfirmBox from './ConfirmBox';
111
113
  import DndContainer from './DndContainer';
112
114
  import Menu from './menu';
113
115
  import InputBoxWithSuggestion from './InputBoxWithSuggestion';
114
- export { NotFound, Alert as AlertComponent, alert, Avatar, confirm, prompt, setRenderSchemaFn, ContextMenu, openContextMenus, Alert2, AsideNav, Button, Breadcrumb, Checkbox, Checkboxes, Collapse, CollapseGroup, DatePicker, DateRangePicker, Drawer, Tabs, Tab, Editor, Html, Icons, Layout, LazyComponent, Modal, Overlay, PopOver, Radios, Range, Rating, Select, SparkLine, Spinner, SpinnerExtraProps, Switch, Textarea, TitleBar, ToastComponent, toast, Tooltip, TooltipWrapper, Tree, Transfer, TabsTransfer, Selection, GroupedSelection, ChainedSelection, TableSelection, TreeSelection, AssociatedSelection, ResultBox, InputBox, InputBoxWithSuggestion, SearchBox, ListGroup, NumberInput, ArrayInput, PullRefresh, Table, SchemaVariableListPicker, SchemaVariableList, VariableList, PickerContainer, ConfirmBox, FormulaPicker, InputJSONSchema, withBadge, BadgeObject, Icon, withRemoteConfig, RemoteOptionsProps, ConditionBuilder, ConditionBuilderFuncs, ConditionBuilderFields, ConditionBuilderConfig, CityArea, PresetColor, ListMenu, Input, JSONSchemaEditor, LocationPicker, PopUp, Cascader, TransferDropDown, TabsTransferPicker, ResultList, TransferPicker, UserSelect, UserTabSelect, getIcon, registerIcon, Badge, HeadCellDropDown, AnchorNav, AnchorNavSection, Card, GridNavDirection, GridNav, GridNavItem, Link, VirtualList, AutoSizer, withStore, PopOverContainer, Pagination, Progress, Steps, StepStatus, Tag, Timeline, ImageGallery, BaiduMapPicker, MultilineText, Form, FormField, Controller, Combo, InputTable, InputTableColumnProps, DndContainer, Menu };
116
+ import { CodeMirrorEditor } from './CodeMirror';
117
+ import type CodeMirror from 'codemirror';
118
+ export { NotFound, Alert as AlertComponent, alert, Avatar, confirm, prompt, setRenderSchemaFn, ContextMenu, openContextMenus, Alert2, AsideNav, Button, Breadcrumb, Checkbox, Checkboxes, Collapse, CollapseGroup, DatePicker, DateRangePicker, Drawer, Tabs, Tab, Editor, Html, Icons, Layout, LazyComponent, Modal, Overlay, PopOver, Radios, Range, Rating, Select, SparkLine, Spinner, SpinnerExtraProps, Switch, Textarea, TitleBar, ToastComponent, toast, Tooltip, TooltipWrapper, Tree, Transfer, TabsTransfer, Selection, GroupedSelection, ChainedSelection, TableSelection, TreeSelection, AssociatedSelection, ResultBox, InputBox, InputBoxWithSuggestion, SearchBox, ListGroup, NumberInput, ArrayInput, PullRefresh, Table, SchemaVariableListPicker, SchemaVariableList, VariableList, PickerContainer, ConfirmBox, FormulaPicker, VariableItem, FormulaEditor, InputJSONSchema, withBadge, BadgeObject, Icon, withRemoteConfig, RemoteOptionsProps, ConditionBuilder, ConditionBuilderFuncs, ConditionBuilderFields, ConditionBuilderConfig, CityArea, PresetColor, ListMenu, Input, JSONSchemaEditor, LocationPicker, PopUp, Cascader, TransferDropDown, TabsTransferPicker, ResultList, TransferPicker, UserSelect, UserTabSelect, getIcon, registerIcon, Badge, HeadCellDropDown, AnchorNav, AnchorNavSection, Card, GridNavDirection, GridNav, GridNavItem, Link, VirtualList, AutoSizer, withStore, PopOverContainer, Pagination, Progress, Steps, StepStatus, Tag, Timeline, ImageGallery, BaiduMapPicker, MultilineText, Form, FormField, Controller, Combo, InputTable, InputTableColumnProps, DndContainer, Menu, CodeMirror, CodeMirrorEditor };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -38,9 +38,6 @@ export declare class MenuItem extends React.Component<MenuItemProps> {
38
38
  * @memberof MenuItem
39
39
  */
40
40
  internalProps: string[];
41
- getDynamicStyle(hasIcon: boolean): {
42
- maxWidth: string;
43
- };
44
41
  /** 检查icon参数值是否为文件路径 */
45
42
  isImgPath(raw: string): boolean;
46
43
  renderMenuItem(): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -41,24 +41,6 @@ var MenuItem = /** @class */ (function (_super) {
41
41
  ];
42
42
  return _this;
43
43
  }
44
- MenuItem.prototype.getDynamicStyle = function (hasIcon) {
45
- var _a = this.context, stacked = _a.stacked, _b = _a.inlineIndent, inlineIndent = _b === void 0 ? 16 : _b;
46
- var depth = this.props.depth;
47
- var isHorizontal = !stacked;
48
- var defaultIndentWidth = typeof inlineIndent === 'number' ? inlineIndent : 16;
49
- var indentWidth = "(\n ".concat(hasIcon ? 'var(--Menu-icon-size) + var(--gap-sm) +' : '', "\n ").concat(depth === 1
50
- ? isHorizontal
51
- ? 'var(--Menu-Submenu-title-paddingX) * 2'
52
- : '0px'
53
- : isHorizontal
54
- ? "var(--Menu-Submenu-title-paddingX) + ".concat(defaultIndentWidth, "px")
55
- : "".concat(defaultIndentWidth, "px"), "\n )");
56
- return {
57
- maxWidth: isHorizontal
58
- ? "calc(var(--Menu-width) - ".concat(indentWidth, ")")
59
- : "calc(100% - ".concat(indentWidth, ")")
60
- };
61
- };
62
44
  /** 检查icon参数值是否为文件路径 */
63
45
  MenuItem.prototype.isImgPath = function (raw) {
64
46
  return (typeof raw === 'string' &&
@@ -80,12 +62,11 @@ var MenuItem = /** @class */ (function (_super) {
80
62
  })) : null) : null;
81
63
  var labelNode = label && (typeof label === 'string' || Array.isArray(label)) ? (React__default.createElement("span", { className: cx("Nav-Menu-item-label", (_c = {},
82
64
  _c['Nav-Menu-item-label-collapsed'] = isCollapsedNode,
83
- _c)), title: isCollapsedNode || Array.isArray(label) ? '' : label, style: this.getDynamicStyle(!!iconNode) }, isCollapsedNode ? label.slice(0, 1) : label)) : React__default.isValidElement(label) ? (React__default.cloneElement(label, {
65
+ _c)), title: isCollapsedNode || Array.isArray(label) ? '' : label }, isCollapsedNode ? label.slice(0, 1) : label)) : React__default.isValidElement(label) ? (React__default.cloneElement(label, {
84
66
  className: cx('Nav-Menu-item-label', (_f = label === null || label === void 0 ? void 0 : label.props) === null || _f === void 0 ? void 0 : _f.className, (_d = {},
85
67
  _d['Nav-Menu-item-label-collapsed'] = isCollapsedNode,
86
68
  _d['Nav-Menu-item-label-subTitle'] = !isCollapsedNode,
87
- _d)),
88
- style: this.getDynamicStyle(!!iconNode)
69
+ _d))
89
70
  })) : null;
90
71
  var dragNode = !disabled && stacked && mode === 'inline' && !collapsed && draggable ? (React__default.createElement("span", { className: cx('Nav-Menu-item-dragBar'), draggable: true },
91
72
  React__default.createElement(DragIcon, null))) : null;
@@ -104,7 +85,7 @@ var MenuItem = /** @class */ (function (_super) {
104
85
  };
105
86
  MenuItem.prototype.render = function () {
106
87
  var _a;
107
- var _b = this.props, className = _b.className, tooltipClassName = _b.tooltipClassName, cx = _b.classnames, label = _b.label, disabled = _b.disabled, disabledTip = _b.disabledTip, tooltipContainer = _b.tooltipContainer, tooltipTrigger = _b.tooltipTrigger, depth = _b.depth, hidden = _b.hidden, order = _b.order, overflowedIndicator = _b.overflowedIndicator, overflowMaxCount = _b.overflowMaxCount;
88
+ var _b = this.props, tooltipClassName = _b.tooltipClassName, cx = _b.classnames, label = _b.label, disabled = _b.disabled, disabledTip = _b.disabledTip, tooltipContainer = _b.tooltipContainer, tooltipTrigger = _b.tooltipTrigger, depth = _b.depth, hidden = _b.hidden, order = _b.order, overflowedIndicator = _b.overflowedIndicator, overflowMaxCount = _b.overflowMaxCount;
108
89
  var _c = this.context, collapsed = _c.collapsed, mode = _c.mode, stacked = _c.stacked, themeColor = _c.themeColor, direction = _c.direction;
109
90
  var showToolTip = stacked && mode === 'inline' && collapsed && depth === 1;
110
91
  var isMaxOverflow = overflowedIndicator && overflowMaxCount;
@@ -116,7 +97,7 @@ var MenuItem = /** @class */ (function (_super) {
116
97
  _a['Nav-Menu-item-tooltip-dark'] = themeColor === 'dark',
117
98
  _a)), placement: direction === 'rtl' ? 'left' : 'right', tooltip: disabled ? disabledTip : showToolTip ? label : '', container: tooltipContainer, trigger: tooltipTrigger, rootClose: true },
118
99
  React__default.createElement("ul", { className: cx('Nav-Menu-item-tooltip-wrap'), style: isMaxOverflow ? {} : { order: order } },
119
- React__default.createElement(Item, __assign({}, pick(this.props, this.internalProps), { className: cx(className) }), this.renderMenuItem()))));
100
+ React__default.createElement(Item, __assign({}, pick(this.props, this.internalProps)), this.renderMenuItem()))));
120
101
  };
121
102
  MenuItem.defaultProps = {
122
103
  disabled: false,
@@ -42,9 +42,6 @@ export declare class SubMenu extends React.Component<SubMenuProps> {
42
42
  */
43
43
  internalProps: string[];
44
44
  handleSubmenuTitleActived({ key, domEvent }: MenuItemTitleInfo): void;
45
- getDynamicStyle(hasIcon: boolean): {
46
- maxWidth: string;
47
- };
48
45
  /** 检查icon参数值是否为文件路径 */
49
46
  isImgPath(raw: string): boolean;
50
47
  renderSubMenuTitle(): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-ui v2.9.0
2
+ * amis-ui v3.0.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -54,21 +54,6 @@ var SubMenu = /** @class */ (function (_super) {
54
54
  var _b = this.context, onSubmenuClick = _b.onSubmenuClick, stacked = _b.stacked;
55
55
  stacked && (onSubmenuClick === null || onSubmenuClick === void 0 ? void 0 : onSubmenuClick({ key: key, domEvent: domEvent, props: this.props }));
56
56
  };
57
- SubMenu.prototype.getDynamicStyle = function (hasIcon) {
58
- var stacked = this.context.stacked;
59
- var depth = this.props.depth;
60
- var isHorizontal = !stacked;
61
- var indentWidth = "(\n ".concat(hasIcon ? 'var(--Menu-icon-size) + var(--gap-sm) +' : '', "\n ").concat(isHorizontal
62
- ? 'var(--Menu-Submenu-title-paddingX) * 2'
63
- : depth === 1
64
- ? '0px'
65
- : 'var(--Menu-Submenu-title-paddingX)', "\n )");
66
- return {
67
- maxWidth: isHorizontal
68
- ? "calc(var(--Menu-width) - ".concat(indentWidth, ")")
69
- : "calc(100% - ".concat(indentWidth, ")")
70
- };
71
- };
72
57
  /** 检查icon参数值是否为文件路径 */
73
58
  SubMenu.prototype.isImgPath = function (raw) {
74
59
  return (typeof raw === 'string' &&
@@ -78,28 +63,27 @@ var SubMenu = /** @class */ (function (_super) {
78
63
  var _a, _b, _c, _d;
79
64
  var _e, _f;
80
65
  var _g = this.context, collapsed = _g.collapsed, stacked = _g.stacked, mode = _g.mode, draggable = _g.draggable, onDragStart = _g.onDragStart;
81
- var _h = this.props, cx = _h.classnames, id = _h.id, label = _h.label, icon = _h.icon, path = _h.path, depth = _h.depth, badge = _h.badge, badgeClassName = _h.badgeClassName, disabled = _h.disabled, defaultData = _h.data, extra = _h.extra, renderLink = _h.renderLink;
66
+ var _h = this.props, cx = _h.classnames, id = _h.id, label = _h.label, labelExtra = _h.labelExtra, icon = _h.icon, path = _h.path, depth = _h.depth, badge = _h.badge, badgeClassName = _h.badgeClassName, disabled = _h.disabled, defaultData = _h.data, extra = _h.extra, renderLink = _h.renderLink;
82
67
  var isCollapsedNode = collapsed && depth === 1;
83
68
  var link = renderLink && typeof renderLink === 'function'
84
69
  ? renderLink(this.props)
85
70
  : path || '';
86
- var iconNode = icon ? (typeof icon === 'string' ? (this.isImgPath(icon) ? (React__default.createElement("div", { className: cx("Menu-item-icon") },
87
- React__default.createElement("img", { width: "14px", src: icon }))) : (React__default.createElement("i", { key: "icon", className: cx("Menu-item-icon", icon, (_a = {},
88
- _a['Menu-item-icon-collapsed'] = isCollapsedNode,
71
+ var iconNode = icon ? (typeof icon === 'string' ? (this.isImgPath(icon) ? (React__default.createElement("div", { className: cx("Nav-Menu-item-icon") },
72
+ React__default.createElement("img", { width: "14px", src: icon }))) : (React__default.createElement("i", { key: "icon", className: cx("Nav-Menu-item-icon", icon, (_a = {},
73
+ _a['Nav-Menu-item-icon-collapsed'] = isCollapsedNode,
89
74
  _a)) }))) : React__default.isValidElement(icon) ? (React__default.cloneElement(icon, {
90
- className: cx("Menu-item-icon", (_e = icon.props) === null || _e === void 0 ? void 0 : _e.className, (_b = {},
91
- _b['Menu-item-icon-svg-collapsed'] = isCollapsedNode,
75
+ className: cx("Nav-Menu-item-icon", (_e = icon.props) === null || _e === void 0 ? void 0 : _e.className, (_b = {},
76
+ _b['Nav-Menu-item-icon-svg-collapsed'] = isCollapsedNode,
92
77
  _b))
93
78
  })) : null) : null;
94
79
  var labelNode = label && (typeof label === 'string' || Array.isArray(label)) ? (React__default.createElement("span", { className: cx('Nav-Menu-item-label', (_c = {},
95
80
  _c['Nav-Menu-item-label-collapsed'] = isCollapsedNode,
96
81
  _c['Nav-Menu-item-label-subTitle'] = !isCollapsedNode,
97
- _c)), title: isCollapsedNode || Array.isArray(label) ? '' : label, style: this.getDynamicStyle(!!iconNode) }, isCollapsedNode ? label.slice(0, 1) : label)) : React__default.isValidElement(label) ? (React__default.cloneElement(label, {
82
+ _c)), title: isCollapsedNode || Array.isArray(label) ? '' : label }, isCollapsedNode ? label.slice(0, 1) : label)) : React__default.isValidElement(label) ? (React__default.cloneElement(label, {
98
83
  className: cx('Nav-Menu-item-label', (_f = label === null || label === void 0 ? void 0 : label.props) === null || _f === void 0 ? void 0 : _f.className, (_d = {},
99
84
  _d['Nav-Menu-item-label-collapsed'] = isCollapsedNode,
100
85
  _d['Nav-Menu-item-label-subTitle'] = !isCollapsedNode,
101
- _d)),
102
- style: this.getDynamicStyle(!!iconNode)
86
+ _d))
103
87
  })) : null;
104
88
  var dragNode = !disabled && stacked && mode === 'inline' && !collapsed && draggable ? (React__default.createElement("span", { className: cx('Nav-Menu-item-dragBar'), draggable: true },
105
89
  React__default.createElement(DragIcon, null))) : null;
@@ -108,7 +92,8 @@ var SubMenu = /** @class */ (function (_super) {
108
92
  dragNode,
109
93
  iconNode,
110
94
  labelNode,
111
- !stacked ? (React__default.createElement("span", { key: "expand-toggle", className: cx('Nav-Menu-submenu-arrow') },
95
+ labelExtra,
96
+ !stacked && depth === 1 ? (React__default.createElement("span", { key: "expand-toggle", className: cx('Nav-Menu-submenu-arrow') },
112
97
  React__default.createElement(Icon, { icon: "right-arrow-bold", className: "icon" }))) : null));
113
98
  };
114
99
  return (React__default.createElement("div", { className: cx('Nav-Menu-item-wrap') },
@@ -119,11 +104,11 @@ var SubMenu = /** @class */ (function (_super) {
119
104
  };
120
105
  SubMenu.prototype.render = function () {
121
106
  var _a, _b;
122
- var _c = this.props, className = _c.className, popupClassName = _c.popupClassName, cx = _c.classnames, hidden = _c.hidden;
107
+ var _c = this.props, popupClassName = _c.popupClassName, cx = _c.classnames, hidden = _c.hidden;
123
108
  var isDarkTheme = this.context.themeColor === 'dark';
124
109
  return hidden ? null : (React__default.createElement(SubMenu$2, __assign({}, pick(this.props, this.internalProps), { className: cx('Nav-Menu-submenu', (_a = {},
125
110
  _a['Nav-Menu-submenu-dark'] = isDarkTheme,
126
- _a), className), popupClassName: cx('Nav-Menu-submenu-popup', (_b = {},
111
+ _a)), popupClassName: cx('Nav-Menu-submenu-popup', (_b = {},
127
112
  _b['Nav-Menu-submenu-popup-dark'] = isDarkTheme,
128
113
  _b), popupClassName), title: this.renderSubMenuTitle(), onTitleClick: this.handleSubmenuTitleActived })));
129
114
  };