amis-editor 5.2.1-beta.35 → 5.2.3-beta.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (667) hide show
  1. package/esm/component/BaseControl.d.ts +1 -0
  2. package/esm/component/BaseControl.js +4 -4
  3. package/esm/component/InputComponentName.js +2 -2
  4. package/esm/component/TableViewEditor.js +2 -2
  5. package/esm/icons/btn/btn-group.svg.js +2 -2
  6. package/esm/icons/btn/btn-select.svg.js +2 -2
  7. package/esm/icons/btn/btn-toolbar.svg.js +2 -2
  8. package/esm/icons/btn/button.svg.js +2 -2
  9. package/esm/icons/btn/dropdown-btn.svg.js +2 -2
  10. package/esm/icons/container/anchor-nav.svg.js +2 -2
  11. package/esm/icons/container/collapse.svg.js +2 -2
  12. package/esm/icons/container/container.svg.js +2 -2
  13. package/esm/icons/container/flex-container.svg.js +2 -2
  14. package/esm/icons/container/form-group.svg.js +2 -2
  15. package/esm/icons/container/grid.svg.js +2 -2
  16. package/esm/icons/container/iframe.svg.js +2 -2
  17. package/esm/icons/container/panel.svg.js +2 -2
  18. package/esm/icons/container/table-view.svg.js +2 -2
  19. package/esm/icons/container/tabs.svg.js +2 -2
  20. package/esm/icons/container/tooltip-wrapper.svg.js +2 -2
  21. package/esm/icons/container/web-component.svg.js +2 -2
  22. package/esm/icons/feat/audio.svg.js +2 -2
  23. package/esm/icons/feat/custom.svg.js +2 -2
  24. package/esm/icons/feat/each.svg.js +2 -2
  25. package/esm/icons/feat/form.svg.js +2 -2
  26. package/esm/icons/feat/nav.svg.js +2 -2
  27. package/esm/icons/feat/qrcode.svg.js +2 -2
  28. package/esm/icons/feat/service.svg.js +2 -2
  29. package/esm/icons/feat/table.svg.js +2 -2
  30. package/esm/icons/feat/tasks.svg.js +2 -2
  31. package/esm/icons/feat/video.svg.js +2 -2
  32. package/esm/icons/feat/wizard.svg.js +2 -2
  33. package/esm/icons/form/chained-select.svg.js +2 -2
  34. package/esm/icons/form/checkbox.svg.js +2 -2
  35. package/esm/icons/form/checkboxes.svg.js +2 -2
  36. package/esm/icons/form/combo.svg.js +2 -2
  37. package/esm/icons/form/condition-builder.svg.js +2 -2
  38. package/esm/icons/form/diff-editor.svg.js +2 -2
  39. package/esm/icons/form/editor.svg.js +2 -2
  40. package/esm/icons/form/formula.svg.js +2 -2
  41. package/esm/icons/form/hidden.svg.js +2 -2
  42. package/esm/icons/form/input-city.svg.js +2 -2
  43. package/esm/icons/form/input-color.svg.js +2 -2
  44. package/esm/icons/form/input-date-range.svg.js +2 -2
  45. package/esm/icons/form/input-date.svg.js +2 -2
  46. package/esm/icons/form/input-datetime.svg.js +2 -2
  47. package/esm/icons/form/input-email.svg.js +2 -2
  48. package/esm/icons/form/input-excel.svg.js +2 -2
  49. package/esm/icons/form/input-file.svg.js +2 -2
  50. package/esm/icons/form/input-group.svg.js +2 -2
  51. package/esm/icons/form/input-image.svg.js +2 -2
  52. package/esm/icons/form/input-kv.svg.js +2 -2
  53. package/esm/icons/form/input-month-range.svg.js +2 -2
  54. package/esm/icons/form/input-number.svg.js +2 -2
  55. package/esm/icons/form/input-password.svg.js +2 -2
  56. package/esm/icons/form/input-quarter-range.svg.js +2 -2
  57. package/esm/icons/form/input-range.svg.js +2 -2
  58. package/esm/icons/form/input-rating.svg.js +2 -2
  59. package/esm/icons/form/input-repeat.svg.js +2 -2
  60. package/esm/icons/form/input-rich-text.svg.js +2 -2
  61. package/esm/icons/form/input-tag.svg.js +2 -2
  62. package/esm/icons/form/input-text.svg.js +2 -2
  63. package/esm/icons/form/input-time-range.svg.js +2 -2
  64. package/esm/icons/form/input-time.svg.js +2 -2
  65. package/esm/icons/form/input-tree.svg.js +2 -2
  66. package/esm/icons/form/input-url.svg.js +2 -2
  67. package/esm/icons/form/input-year.svg.js +2 -2
  68. package/esm/icons/form/inputArray.svg.js +2 -2
  69. package/esm/icons/form/list-select.svg.js +2 -2
  70. package/esm/icons/form/location-picker.svg.js +2 -2
  71. package/esm/icons/form/matrix-checkboxes.svg.js +2 -2
  72. package/esm/icons/form/month.svg.js +2 -2
  73. package/esm/icons/form/nested-select.svg.js +2 -2
  74. package/esm/icons/form/picker.svg.js +2 -2
  75. package/esm/icons/form/quarter.svg.js +2 -2
  76. package/esm/icons/form/radios.svg.js +2 -2
  77. package/esm/icons/form/select.svg.js +2 -2
  78. package/esm/icons/form/static.svg.js +2 -2
  79. package/esm/icons/form/sub-form.svg.js +2 -2
  80. package/esm/icons/form/switch.svg.js +2 -2
  81. package/esm/icons/form/tabs-transfer.svg.js +2 -2
  82. package/esm/icons/form/textarea.svg.js +2 -2
  83. package/esm/icons/form/transfer.svg.js +2 -2
  84. package/esm/icons/form/tree-select.svg.js +2 -2
  85. package/esm/icons/form/uuid.svg.js +2 -2
  86. package/esm/icons/index.js +2 -2
  87. package/esm/icons/layout/layout-1with2.svg.js +2 -2
  88. package/esm/icons/layout/layout-2cols.svg.js +2 -2
  89. package/esm/icons/layout/layout-2row.svg.js +2 -2
  90. package/esm/icons/layout/layout-2with1.svg.js +2 -2
  91. package/esm/icons/layout/layout-3cols.svg.js +2 -2
  92. package/esm/icons/layout/layout-3row.svg.js +2 -2
  93. package/esm/icons/layout/layout-absolute.svg.js +2 -2
  94. package/esm/icons/layout/layout-fixed.svg.js +2 -2
  95. package/esm/icons/layout/layout-full.svg.js +2 -2
  96. package/esm/icons/layout/layout1-2.svg.js +2 -2
  97. package/esm/icons/layout/layout2-1.svg.js +2 -2
  98. package/esm/icons/layout/layout3-1.svg.js +2 -2
  99. package/esm/icons/layout/layout3-2.svg.js +2 -2
  100. package/esm/icons/other/divider.svg.js +2 -2
  101. package/esm/icons/other/property-sheet.svg.js +2 -2
  102. package/esm/icons/other/tooltip.svg.js +2 -2
  103. package/esm/icons/show/URL.svg.js +2 -2
  104. package/esm/icons/show/avatar.svg.js +2 -2
  105. package/esm/icons/show/breadcrumb.svg.js +2 -2
  106. package/esm/icons/show/card.svg.js +2 -2
  107. package/esm/icons/show/cards.svg.js +2 -2
  108. package/esm/icons/show/carousel.svg.js +2 -2
  109. package/esm/icons/show/chart.svg.js +2 -2
  110. package/esm/icons/show/code.svg.js +2 -2
  111. package/esm/icons/show/date.svg.js +2 -2
  112. package/esm/icons/show/datetime.svg.js +2 -2
  113. package/esm/icons/show/image.svg.js +2 -2
  114. package/esm/icons/show/images.svg.js +2 -2
  115. package/esm/icons/show/json-view.svg.js +2 -2
  116. package/esm/icons/show/list.svg.js +2 -2
  117. package/esm/icons/show/log.svg.js +2 -2
  118. package/esm/icons/show/mapping.svg.js +2 -2
  119. package/esm/icons/show/markdown.svg.js +2 -2
  120. package/esm/icons/show/plain.svg.js +2 -2
  121. package/esm/icons/show/progress.svg.js +2 -2
  122. package/esm/icons/show/sparkline.svg.js +2 -2
  123. package/esm/icons/show/status.svg.js +2 -2
  124. package/esm/icons/show/steps.svg.js +2 -2
  125. package/esm/icons/show/time.svg.js +2 -2
  126. package/esm/index.js +2 -2
  127. package/esm/locale/en-US.js +13 -7
  128. package/esm/locale/zh-CN.js +9 -3
  129. package/esm/plugin/Alert.js +2 -2
  130. package/esm/plugin/AnchorNav.js +3 -8
  131. package/esm/plugin/Audio.js +2 -2
  132. package/esm/plugin/Avatar.js +3 -11
  133. package/esm/plugin/Breadcrumb.js +2 -2
  134. package/esm/plugin/Button.js +34 -9
  135. package/esm/plugin/ButtonGroup.js +2 -2
  136. package/esm/plugin/CRUD.d.ts +2 -2
  137. package/esm/plugin/CRUD.js +321 -345
  138. package/esm/plugin/CRUD2.js +2 -2
  139. package/esm/plugin/Card.js +4 -19
  140. package/esm/plugin/Card2.js +2 -2
  141. package/esm/plugin/Cards.js +8 -13
  142. package/esm/plugin/Carousel.js +4 -14
  143. package/esm/plugin/Chart.js +2 -2
  144. package/esm/plugin/CodeView.d.ts +2 -2
  145. package/esm/plugin/CodeView.js +25 -23
  146. package/esm/plugin/Collapse.js +4 -19
  147. package/esm/plugin/CollapseGroup.js +2 -2
  148. package/esm/plugin/ColumnToggler.js +2 -2
  149. package/esm/plugin/Container.js +8 -7
  150. package/esm/plugin/Custom.js +2 -2
  151. package/esm/plugin/CustomRegion.js +2 -2
  152. package/esm/plugin/Date.js +2 -2
  153. package/esm/plugin/Datetime.js +2 -2
  154. package/esm/plugin/Dialog.js +2 -2
  155. package/esm/plugin/Divider.d.ts +1 -0
  156. package/esm/plugin/Divider.js +13 -3
  157. package/esm/plugin/Drawer.js +2 -2
  158. package/esm/plugin/DropDownButton.js +5 -7
  159. package/esm/plugin/Each.js +4 -6
  160. package/esm/plugin/Flex.js +2 -2
  161. package/esm/plugin/Form/ButtonGroupSelect.js +3 -7
  162. package/esm/plugin/Form/ButtonToolbar.js +2 -2
  163. package/esm/plugin/Form/ChainedSelect.js +2 -2
  164. package/esm/plugin/Form/Checkbox.js +2 -2
  165. package/esm/plugin/Form/Checkboxes.js +2 -6
  166. package/esm/plugin/Form/CodeEditor.js +2 -2
  167. package/esm/plugin/Form/Combo.js +2 -2
  168. package/esm/plugin/Form/ConditionBuilder.d.ts +1 -1
  169. package/esm/plugin/Form/ConditionBuilder.js +39 -36
  170. package/esm/plugin/Form/Control.js +2 -2
  171. package/esm/plugin/Form/DiffEditor.js +2 -2
  172. package/esm/plugin/Form/FieldSet.js +3 -8
  173. package/esm/plugin/Form/Form.d.ts +1 -1
  174. package/esm/plugin/Form/Form.js +124 -140
  175. package/esm/plugin/Form/Formula.js +2 -2
  176. package/esm/plugin/Form/Group.js +2 -2
  177. package/esm/plugin/Form/Hidden.js +2 -2
  178. package/esm/plugin/Form/InputArray.js +2 -2
  179. package/esm/plugin/Form/InputCity.js +2 -4
  180. package/esm/plugin/Form/InputColor.js +2 -2
  181. package/esm/plugin/Form/InputDate.js +2 -2
  182. package/esm/plugin/Form/InputDateRange.js +3 -13
  183. package/esm/plugin/Form/InputDateTime.js +2 -2
  184. package/esm/plugin/Form/InputDateTimeRange.js +2 -2
  185. package/esm/plugin/Form/InputEmail.js +2 -2
  186. package/esm/plugin/Form/InputExcel.js +2 -2
  187. package/esm/plugin/Form/InputFile.js +3 -8
  188. package/esm/plugin/Form/InputGroup.js +2 -2
  189. package/esm/plugin/Form/InputImage.js +2 -2
  190. package/esm/plugin/Form/InputKV.js +2 -2
  191. package/esm/plugin/Form/InputMonth.js +2 -2
  192. package/esm/plugin/Form/InputMonthRange.js +2 -2
  193. package/esm/plugin/Form/InputNumber.js +4 -40
  194. package/esm/plugin/Form/InputPassword.js +2 -2
  195. package/esm/plugin/Form/InputQuarter.js +2 -2
  196. package/esm/plugin/Form/InputQuarterRange.js +2 -2
  197. package/esm/plugin/Form/InputRange.js +5 -12
  198. package/esm/plugin/Form/InputRating.js +6 -27
  199. package/esm/plugin/Form/InputRepeat.js +2 -2
  200. package/esm/plugin/Form/InputRichText.js +2 -2
  201. package/esm/plugin/Form/InputSubForm.js +6 -8
  202. package/esm/plugin/Form/InputTable.d.ts +1 -1
  203. package/esm/plugin/Form/InputTable.js +70 -67
  204. package/esm/plugin/Form/InputTag.js +3 -8
  205. package/esm/plugin/Form/InputText.js +2 -2
  206. package/esm/plugin/Form/InputTime.js +2 -2
  207. package/esm/plugin/Form/InputTimeRange.js +2 -2
  208. package/esm/plugin/Form/InputTree.js +2 -2
  209. package/esm/plugin/Form/InputURL.js +2 -2
  210. package/esm/plugin/Form/InputYear.js +2 -2
  211. package/esm/plugin/Form/InputYearRange.js +2 -2
  212. package/esm/plugin/Form/Item.js +2 -2
  213. package/esm/plugin/Form/ListSelect.js +2 -6
  214. package/esm/plugin/Form/LocationPicker.js +2 -2
  215. package/esm/plugin/Form/MatrixCheckboxes.js +5 -17
  216. package/esm/plugin/Form/NestedSelect.js +2 -2
  217. package/esm/plugin/Form/Picker.js +2 -2
  218. package/esm/plugin/Form/Radios.js +2 -6
  219. package/esm/plugin/Form/Select.js +2 -2
  220. package/esm/plugin/Form/Static.js +2 -2
  221. package/esm/plugin/Form/Switch.js +3 -7
  222. package/esm/plugin/Form/TabsTransfer.d.ts +1 -13
  223. package/esm/plugin/Form/TabsTransfer.js +5 -6
  224. package/esm/plugin/Form/Textarea.js +3 -8
  225. package/esm/plugin/Form/Transfer.js +2 -2
  226. package/esm/plugin/Form/TreeSelect.js +2 -2
  227. package/esm/plugin/Form/UUID.js +2 -2
  228. package/esm/plugin/Grid.js +5 -3
  229. package/esm/plugin/HBox.js +2 -2
  230. package/esm/plugin/IFrame.js +2 -2
  231. package/esm/plugin/Image.js +4 -10
  232. package/esm/plugin/Images.js +5 -11
  233. package/esm/plugin/Json.js +2 -2
  234. package/esm/plugin/Layout/FlexPluginBase.js +5 -3
  235. package/esm/plugin/Layout/Layout1_2_v4.js +2 -2
  236. package/esm/plugin/Layout/Layout_fixed.js +2 -2
  237. package/esm/plugin/Layout/Layout_free_container.js +2 -2
  238. package/esm/plugin/Layout/Layout_sorption_container.js +2 -2
  239. package/esm/plugin/Link.js +3 -7
  240. package/esm/plugin/List.js +3 -7
  241. package/esm/plugin/ListItem.js +2 -2
  242. package/esm/plugin/Log.js +2 -2
  243. package/esm/plugin/Mapping.js +6 -8
  244. package/esm/plugin/Markdown.js +2 -2
  245. package/esm/plugin/Nav.js +4 -6
  246. package/esm/plugin/Operation.js +2 -2
  247. package/esm/plugin/Others/Action.js +2 -2
  248. package/esm/plugin/Others/TableCell.js +6 -13
  249. package/esm/plugin/Page.js +12 -12
  250. package/esm/plugin/Pagination.js +2 -2
  251. package/esm/plugin/Panel.js +6 -10
  252. package/esm/plugin/Plain.d.ts +3 -0
  253. package/esm/plugin/Plain.js +63 -3
  254. package/esm/plugin/Progress.js +2 -2
  255. package/esm/plugin/Property.js +2 -2
  256. package/esm/plugin/QRCode.js +2 -2
  257. package/esm/plugin/Reset.js +2 -2
  258. package/esm/plugin/Service.js +2 -2
  259. package/esm/plugin/Sparkline.js +2 -2
  260. package/esm/plugin/Status.js +6 -8
  261. package/esm/plugin/Steps.js +4 -16
  262. package/esm/plugin/Submit.js +2 -2
  263. package/esm/plugin/Table.d.ts +2 -2
  264. package/esm/plugin/Table.js +88 -84
  265. package/esm/plugin/Table2.d.ts +1 -1
  266. package/esm/plugin/Table2.js +19 -17
  267. package/esm/plugin/TableCell2.js +2 -2
  268. package/esm/plugin/TableView.js +3 -7
  269. package/esm/plugin/Tabs.js +5 -6
  270. package/esm/plugin/Tasks.js +7 -36
  271. package/esm/plugin/Time.js +2 -2
  272. package/esm/plugin/Timeline.js +2 -2
  273. package/esm/plugin/TooltipWrapper.js +4 -10
  274. package/esm/plugin/Tpl.d.ts +3 -0
  275. package/esm/plugin/Tpl.js +63 -3
  276. package/esm/plugin/Video.js +2 -2
  277. package/esm/plugin/WebComponent.js +6 -6
  278. package/esm/plugin/Wizard.js +6 -29
  279. package/esm/plugin/Wrapper.js +5 -3
  280. package/esm/renderer/APIControl.d.ts +78 -0
  281. package/esm/renderer/APIControl.js +2 -2
  282. package/esm/renderer/BadgeControl.js +2 -2
  283. package/esm/renderer/DataBindingControl.js +2 -2
  284. package/esm/renderer/DataMappingControl.js +2 -2
  285. package/esm/renderer/DataPickerControl.js +2 -2
  286. package/esm/renderer/DateShortCutControl.js +2 -2
  287. package/esm/renderer/ExpressionFormulaControl.js +2 -2
  288. package/esm/renderer/FeatureControl.js +2 -2
  289. package/esm/renderer/FormulaControl.js +2 -2
  290. package/esm/renderer/GoConfigControl.js +2 -2
  291. package/esm/renderer/OptionControl.js +2 -2
  292. package/esm/renderer/RangePartsControl.js +2 -2
  293. package/esm/renderer/StatusControl.js +2 -2
  294. package/esm/renderer/SwitchMoreControl.js +2 -2
  295. package/esm/renderer/TimelineItemControl.js +2 -2
  296. package/esm/renderer/TransferTableControl.js +2 -2
  297. package/esm/renderer/TreeOptionControl.js +2 -2
  298. package/esm/renderer/ValidationControl.js +2 -2
  299. package/esm/renderer/ValidationItem.js +5 -3
  300. package/esm/renderer/event-control/action-config-dialog.js +2 -2
  301. package/esm/renderer/event-control/action-config-panel.js +2 -2
  302. package/esm/renderer/event-control/comp-action-select.js +2 -2
  303. package/esm/renderer/event-control/helper.d.ts +22 -21
  304. package/esm/renderer/event-control/helper.js +1305 -109
  305. package/esm/renderer/event-control/index.js +4 -4
  306. package/esm/renderer/style-control/Background.js +2 -2
  307. package/esm/renderer/style-control/Border.js +2 -2
  308. package/esm/renderer/style-control/BoxModel.js +2 -2
  309. package/esm/renderer/style-control/BoxShadow.js +2 -2
  310. package/esm/renderer/style-control/Display.js +2 -2
  311. package/esm/renderer/style-control/Font.js +2 -2
  312. package/esm/renderer/style-control/InsetBoxModel.js +2 -2
  313. package/esm/renderer/style-control/font-family.js +2 -2
  314. package/esm/renderer/style-control/transformation.js +2 -2
  315. package/esm/renderer/textarea-formula/FormulaPicker.d.ts +3 -0
  316. package/esm/renderer/textarea-formula/FormulaPicker.js +2 -2
  317. package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +9 -0
  318. package/esm/renderer/textarea-formula/TextareaFormulaControl.js +17 -5
  319. package/esm/renderer/textarea-formula/plugin.js +2 -2
  320. package/esm/renderer/textarea-formula/utils.js +2 -2
  321. package/esm/tpl/api.js +2 -2
  322. package/esm/tpl/common.js +366 -3
  323. package/esm/tpl/horizontal.js +2 -2
  324. package/esm/tpl/layout.js +91 -23
  325. package/esm/tpl/options.js +2 -2
  326. package/esm/tpl/style.js +2 -2
  327. package/esm/tpl/validations.js +2 -2
  328. package/esm/util.js +2 -3
  329. package/esm/validator.js +2 -2
  330. package/lib/component/BaseControl.d.ts +1 -0
  331. package/lib/component/BaseControl.js +4 -4
  332. package/lib/component/InputComponentName.js +2 -2
  333. package/lib/component/TableViewEditor.js +2 -2
  334. package/lib/icons/btn/btn-group.svg.js +2 -2
  335. package/lib/icons/btn/btn-select.svg.js +2 -2
  336. package/lib/icons/btn/btn-toolbar.svg.js +2 -2
  337. package/lib/icons/btn/button.svg.js +2 -2
  338. package/lib/icons/btn/dropdown-btn.svg.js +2 -2
  339. package/lib/icons/container/anchor-nav.svg.js +2 -2
  340. package/lib/icons/container/collapse.svg.js +2 -2
  341. package/lib/icons/container/container.svg.js +2 -2
  342. package/lib/icons/container/flex-container.svg.js +2 -2
  343. package/lib/icons/container/form-group.svg.js +2 -2
  344. package/lib/icons/container/grid.svg.js +2 -2
  345. package/lib/icons/container/iframe.svg.js +2 -2
  346. package/lib/icons/container/panel.svg.js +2 -2
  347. package/lib/icons/container/table-view.svg.js +2 -2
  348. package/lib/icons/container/tabs.svg.js +2 -2
  349. package/lib/icons/container/tooltip-wrapper.svg.js +2 -2
  350. package/lib/icons/container/web-component.svg.js +2 -2
  351. package/lib/icons/feat/audio.svg.js +2 -2
  352. package/lib/icons/feat/custom.svg.js +2 -2
  353. package/lib/icons/feat/each.svg.js +2 -2
  354. package/lib/icons/feat/form.svg.js +2 -2
  355. package/lib/icons/feat/nav.svg.js +2 -2
  356. package/lib/icons/feat/qrcode.svg.js +2 -2
  357. package/lib/icons/feat/service.svg.js +2 -2
  358. package/lib/icons/feat/table.svg.js +2 -2
  359. package/lib/icons/feat/tasks.svg.js +2 -2
  360. package/lib/icons/feat/video.svg.js +2 -2
  361. package/lib/icons/feat/wizard.svg.js +2 -2
  362. package/lib/icons/form/chained-select.svg.js +2 -2
  363. package/lib/icons/form/checkbox.svg.js +2 -2
  364. package/lib/icons/form/checkboxes.svg.js +2 -2
  365. package/lib/icons/form/combo.svg.js +2 -2
  366. package/lib/icons/form/condition-builder.svg.js +2 -2
  367. package/lib/icons/form/diff-editor.svg.js +2 -2
  368. package/lib/icons/form/editor.svg.js +2 -2
  369. package/lib/icons/form/formula.svg.js +2 -2
  370. package/lib/icons/form/hidden.svg.js +2 -2
  371. package/lib/icons/form/input-city.svg.js +2 -2
  372. package/lib/icons/form/input-color.svg.js +2 -2
  373. package/lib/icons/form/input-date-range.svg.js +2 -2
  374. package/lib/icons/form/input-date.svg.js +2 -2
  375. package/lib/icons/form/input-datetime.svg.js +2 -2
  376. package/lib/icons/form/input-email.svg.js +2 -2
  377. package/lib/icons/form/input-excel.svg.js +2 -2
  378. package/lib/icons/form/input-file.svg.js +2 -2
  379. package/lib/icons/form/input-group.svg.js +2 -2
  380. package/lib/icons/form/input-image.svg.js +2 -2
  381. package/lib/icons/form/input-kv.svg.js +2 -2
  382. package/lib/icons/form/input-month-range.svg.js +2 -2
  383. package/lib/icons/form/input-number.svg.js +2 -2
  384. package/lib/icons/form/input-password.svg.js +2 -2
  385. package/lib/icons/form/input-quarter-range.svg.js +2 -2
  386. package/lib/icons/form/input-range.svg.js +2 -2
  387. package/lib/icons/form/input-rating.svg.js +2 -2
  388. package/lib/icons/form/input-repeat.svg.js +2 -2
  389. package/lib/icons/form/input-rich-text.svg.js +2 -2
  390. package/lib/icons/form/input-tag.svg.js +2 -2
  391. package/lib/icons/form/input-text.svg.js +2 -2
  392. package/lib/icons/form/input-time-range.svg.js +2 -2
  393. package/lib/icons/form/input-time.svg.js +2 -2
  394. package/lib/icons/form/input-tree.svg.js +2 -2
  395. package/lib/icons/form/input-url.svg.js +2 -2
  396. package/lib/icons/form/input-year.svg.js +2 -2
  397. package/lib/icons/form/inputArray.svg.js +2 -2
  398. package/lib/icons/form/list-select.svg.js +2 -2
  399. package/lib/icons/form/location-picker.svg.js +2 -2
  400. package/lib/icons/form/matrix-checkboxes.svg.js +2 -2
  401. package/lib/icons/form/month.svg.js +2 -2
  402. package/lib/icons/form/nested-select.svg.js +2 -2
  403. package/lib/icons/form/picker.svg.js +2 -2
  404. package/lib/icons/form/quarter.svg.js +2 -2
  405. package/lib/icons/form/radios.svg.js +2 -2
  406. package/lib/icons/form/select.svg.js +2 -2
  407. package/lib/icons/form/static.svg.js +2 -2
  408. package/lib/icons/form/sub-form.svg.js +2 -2
  409. package/lib/icons/form/switch.svg.js +2 -2
  410. package/lib/icons/form/tabs-transfer.svg.js +2 -2
  411. package/lib/icons/form/textarea.svg.js +2 -2
  412. package/lib/icons/form/transfer.svg.js +2 -2
  413. package/lib/icons/form/tree-select.svg.js +2 -2
  414. package/lib/icons/form/uuid.svg.js +2 -2
  415. package/lib/icons/index.js +2 -2
  416. package/lib/icons/layout/layout-1with2.svg.js +2 -2
  417. package/lib/icons/layout/layout-2cols.svg.js +2 -2
  418. package/lib/icons/layout/layout-2row.svg.js +2 -2
  419. package/lib/icons/layout/layout-2with1.svg.js +2 -2
  420. package/lib/icons/layout/layout-3cols.svg.js +2 -2
  421. package/lib/icons/layout/layout-3row.svg.js +2 -2
  422. package/lib/icons/layout/layout-absolute.svg.js +2 -2
  423. package/lib/icons/layout/layout-fixed.svg.js +2 -2
  424. package/lib/icons/layout/layout-full.svg.js +2 -2
  425. package/lib/icons/layout/layout1-2.svg.js +2 -2
  426. package/lib/icons/layout/layout2-1.svg.js +2 -2
  427. package/lib/icons/layout/layout3-1.svg.js +2 -2
  428. package/lib/icons/layout/layout3-2.svg.js +2 -2
  429. package/lib/icons/other/divider.svg.js +2 -2
  430. package/lib/icons/other/property-sheet.svg.js +2 -2
  431. package/lib/icons/other/tooltip.svg.js +2 -2
  432. package/lib/icons/show/URL.svg.js +2 -2
  433. package/lib/icons/show/avatar.svg.js +2 -2
  434. package/lib/icons/show/breadcrumb.svg.js +2 -2
  435. package/lib/icons/show/card.svg.js +2 -2
  436. package/lib/icons/show/cards.svg.js +2 -2
  437. package/lib/icons/show/carousel.svg.js +2 -2
  438. package/lib/icons/show/chart.svg.js +2 -2
  439. package/lib/icons/show/code.svg.js +2 -2
  440. package/lib/icons/show/date.svg.js +2 -2
  441. package/lib/icons/show/datetime.svg.js +2 -2
  442. package/lib/icons/show/image.svg.js +2 -2
  443. package/lib/icons/show/images.svg.js +2 -2
  444. package/lib/icons/show/json-view.svg.js +2 -2
  445. package/lib/icons/show/list.svg.js +2 -2
  446. package/lib/icons/show/log.svg.js +2 -2
  447. package/lib/icons/show/mapping.svg.js +2 -2
  448. package/lib/icons/show/markdown.svg.js +2 -2
  449. package/lib/icons/show/plain.svg.js +2 -2
  450. package/lib/icons/show/progress.svg.js +2 -2
  451. package/lib/icons/show/sparkline.svg.js +2 -2
  452. package/lib/icons/show/status.svg.js +2 -2
  453. package/lib/icons/show/steps.svg.js +2 -2
  454. package/lib/icons/show/time.svg.js +2 -2
  455. package/lib/index.js +2 -2
  456. package/lib/locale/en-US.js +13 -7
  457. package/lib/locale/zh-CN.js +9 -3
  458. package/lib/plugin/Alert.js +2 -2
  459. package/lib/plugin/AnchorNav.js +3 -8
  460. package/lib/plugin/Audio.js +2 -2
  461. package/lib/plugin/Avatar.js +3 -11
  462. package/lib/plugin/Breadcrumb.js +2 -2
  463. package/lib/plugin/Button.js +34 -9
  464. package/lib/plugin/ButtonGroup.js +2 -2
  465. package/lib/plugin/CRUD.d.ts +2 -2
  466. package/lib/plugin/CRUD.js +319 -343
  467. package/lib/plugin/CRUD2.d.ts +1 -1
  468. package/lib/plugin/CRUD2.js +2 -2
  469. package/lib/plugin/Card.js +4 -19
  470. package/lib/plugin/Card2.js +2 -2
  471. package/lib/plugin/Cards.js +8 -13
  472. package/lib/plugin/Carousel.js +4 -14
  473. package/lib/plugin/Chart.js +2 -2
  474. package/lib/plugin/CodeView.d.ts +2 -2
  475. package/lib/plugin/CodeView.js +25 -23
  476. package/lib/plugin/Collapse.js +3 -18
  477. package/lib/plugin/CollapseGroup.js +2 -2
  478. package/lib/plugin/ColumnToggler.js +2 -2
  479. package/lib/plugin/Container.js +8 -7
  480. package/lib/plugin/Custom.js +2 -2
  481. package/lib/plugin/CustomRegion.js +2 -2
  482. package/lib/plugin/Date.js +2 -2
  483. package/lib/plugin/Datetime.js +2 -2
  484. package/lib/plugin/Dialog.js +2 -2
  485. package/lib/plugin/Divider.d.ts +1 -0
  486. package/lib/plugin/Divider.js +13 -3
  487. package/lib/plugin/Drawer.js +2 -2
  488. package/lib/plugin/DropDownButton.js +5 -7
  489. package/lib/plugin/Each.js +4 -6
  490. package/lib/plugin/Flex.js +2 -2
  491. package/lib/plugin/Form/ButtonGroupSelect.js +3 -7
  492. package/lib/plugin/Form/ButtonToolbar.js +2 -2
  493. package/lib/plugin/Form/ChainedSelect.js +2 -2
  494. package/lib/plugin/Form/Checkbox.js +2 -2
  495. package/lib/plugin/Form/Checkboxes.js +2 -6
  496. package/lib/plugin/Form/CodeEditor.js +2 -2
  497. package/lib/plugin/Form/Combo.js +2 -2
  498. package/lib/plugin/Form/ConditionBuilder.d.ts +1 -1
  499. package/lib/plugin/Form/ConditionBuilder.js +39 -36
  500. package/lib/plugin/Form/Control.js +2 -2
  501. package/lib/plugin/Form/DiffEditor.js +2 -2
  502. package/lib/plugin/Form/FieldSet.js +3 -8
  503. package/lib/plugin/Form/Form.d.ts +1 -1
  504. package/lib/plugin/Form/Form.js +123 -139
  505. package/lib/plugin/Form/Formula.js +2 -2
  506. package/lib/plugin/Form/Group.js +2 -2
  507. package/lib/plugin/Form/Hidden.js +2 -2
  508. package/lib/plugin/Form/InputArray.js +2 -2
  509. package/lib/plugin/Form/InputCity.js +2 -4
  510. package/lib/plugin/Form/InputColor.js +2 -2
  511. package/lib/plugin/Form/InputDate.js +2 -2
  512. package/lib/plugin/Form/InputDateRange.js +3 -13
  513. package/lib/plugin/Form/InputDateTime.js +2 -2
  514. package/lib/plugin/Form/InputDateTimeRange.js +2 -2
  515. package/lib/plugin/Form/InputEmail.js +2 -2
  516. package/lib/plugin/Form/InputExcel.js +2 -2
  517. package/lib/plugin/Form/InputFile.js +3 -8
  518. package/lib/plugin/Form/InputGroup.js +2 -2
  519. package/lib/plugin/Form/InputImage.js +2 -2
  520. package/lib/plugin/Form/InputKV.js +2 -2
  521. package/lib/plugin/Form/InputMonth.js +2 -2
  522. package/lib/plugin/Form/InputMonthRange.js +2 -2
  523. package/lib/plugin/Form/InputNumber.js +3 -39
  524. package/lib/plugin/Form/InputPassword.js +2 -2
  525. package/lib/plugin/Form/InputQuarter.js +2 -2
  526. package/lib/plugin/Form/InputQuarterRange.js +2 -2
  527. package/lib/plugin/Form/InputRange.js +5 -12
  528. package/lib/plugin/Form/InputRating.js +6 -27
  529. package/lib/plugin/Form/InputRepeat.js +2 -2
  530. package/lib/plugin/Form/InputRichText.js +2 -2
  531. package/lib/plugin/Form/InputSubForm.js +6 -8
  532. package/lib/plugin/Form/InputTable.d.ts +1 -1
  533. package/lib/plugin/Form/InputTable.js +70 -67
  534. package/lib/plugin/Form/InputTag.js +3 -8
  535. package/lib/plugin/Form/InputText.js +2 -2
  536. package/lib/plugin/Form/InputTime.js +2 -2
  537. package/lib/plugin/Form/InputTimeRange.js +2 -2
  538. package/lib/plugin/Form/InputTree.js +2 -2
  539. package/lib/plugin/Form/InputURL.js +2 -2
  540. package/lib/plugin/Form/InputYear.js +2 -2
  541. package/lib/plugin/Form/InputYearRange.js +2 -2
  542. package/lib/plugin/Form/Item.js +2 -2
  543. package/lib/plugin/Form/ListSelect.js +2 -6
  544. package/lib/plugin/Form/LocationPicker.js +2 -2
  545. package/lib/plugin/Form/MatrixCheckboxes.js +5 -17
  546. package/lib/plugin/Form/NestedSelect.js +2 -2
  547. package/lib/plugin/Form/Picker.js +2 -2
  548. package/lib/plugin/Form/Radios.js +2 -6
  549. package/lib/plugin/Form/Select.js +2 -2
  550. package/lib/plugin/Form/Static.js +2 -2
  551. package/lib/plugin/Form/Switch.js +3 -7
  552. package/lib/plugin/Form/TabsTransfer.d.ts +1 -13
  553. package/lib/plugin/Form/TabsTransfer.js +5 -6
  554. package/lib/plugin/Form/Textarea.js +3 -8
  555. package/lib/plugin/Form/Transfer.js +2 -2
  556. package/lib/plugin/Form/TreeSelect.js +2 -2
  557. package/lib/plugin/Form/UUID.js +2 -2
  558. package/lib/plugin/Grid.js +5 -3
  559. package/lib/plugin/HBox.js +2 -2
  560. package/lib/plugin/IFrame.js +2 -2
  561. package/lib/plugin/Image.js +4 -10
  562. package/lib/plugin/Images.js +5 -11
  563. package/lib/plugin/Json.js +2 -2
  564. package/lib/plugin/Layout/FlexPluginBase.js +5 -3
  565. package/lib/plugin/Layout/Layout1_2_v4.js +2 -2
  566. package/lib/plugin/Layout/Layout_fixed.js +2 -2
  567. package/lib/plugin/Layout/Layout_free_container.js +2 -2
  568. package/lib/plugin/Layout/Layout_sorption_container.js +2 -2
  569. package/lib/plugin/Link.js +3 -7
  570. package/lib/plugin/List.js +3 -7
  571. package/lib/plugin/ListItem.js +2 -2
  572. package/lib/plugin/Log.js +2 -2
  573. package/lib/plugin/Mapping.js +6 -8
  574. package/lib/plugin/Markdown.js +2 -2
  575. package/lib/plugin/Nav.js +4 -6
  576. package/lib/plugin/Operation.js +2 -2
  577. package/lib/plugin/Others/Action.js +2 -2
  578. package/lib/plugin/Others/TableCell.js +6 -13
  579. package/lib/plugin/Page.js +12 -12
  580. package/lib/plugin/Pagination.js +2 -2
  581. package/lib/plugin/Panel.js +6 -10
  582. package/lib/plugin/Plain.d.ts +3 -0
  583. package/lib/plugin/Plain.js +62 -2
  584. package/lib/plugin/Progress.js +2 -2
  585. package/lib/plugin/Property.js +2 -2
  586. package/lib/plugin/QRCode.js +2 -2
  587. package/lib/plugin/Reset.js +2 -2
  588. package/lib/plugin/Service.js +2 -2
  589. package/lib/plugin/Sparkline.js +2 -2
  590. package/lib/plugin/Status.js +6 -8
  591. package/lib/plugin/Steps.js +4 -16
  592. package/lib/plugin/Submit.js +2 -2
  593. package/lib/plugin/Table.d.ts +2 -2
  594. package/lib/plugin/Table.js +87 -83
  595. package/lib/plugin/Table2.d.ts +1 -1
  596. package/lib/plugin/Table2.js +18 -16
  597. package/lib/plugin/TableCell2.js +2 -2
  598. package/lib/plugin/TableView.js +3 -7
  599. package/lib/plugin/Tabs.d.ts +1 -0
  600. package/lib/plugin/Tabs.js +5 -6
  601. package/lib/plugin/Tasks.js +7 -36
  602. package/lib/plugin/Time.js +2 -2
  603. package/lib/plugin/Timeline.js +2 -2
  604. package/lib/plugin/TooltipWrapper.js +4 -10
  605. package/lib/plugin/Tpl.d.ts +3 -0
  606. package/lib/plugin/Tpl.js +62 -2
  607. package/lib/plugin/Video.js +2 -2
  608. package/lib/plugin/WebComponent.js +6 -6
  609. package/lib/plugin/Wizard.js +5 -28
  610. package/lib/plugin/Wrapper.js +5 -3
  611. package/lib/renderer/APIControl.d.ts +80 -2
  612. package/lib/renderer/APIControl.js +2 -2
  613. package/lib/renderer/BadgeControl.d.ts +10 -10
  614. package/lib/renderer/BadgeControl.js +2 -2
  615. package/lib/renderer/DataBindingControl.js +2 -2
  616. package/lib/renderer/DataMappingControl.js +2 -2
  617. package/lib/renderer/DataPickerControl.js +2 -2
  618. package/lib/renderer/DateShortCutControl.js +2 -2
  619. package/lib/renderer/ExpressionFormulaControl.js +2 -2
  620. package/lib/renderer/FeatureControl.js +2 -2
  621. package/lib/renderer/FormulaControl.js +2 -2
  622. package/lib/renderer/GoConfigControl.js +2 -2
  623. package/lib/renderer/OptionControl.js +2 -2
  624. package/lib/renderer/RangePartsControl.js +2 -2
  625. package/lib/renderer/StatusControl.js +2 -2
  626. package/lib/renderer/SwitchMoreControl.d.ts +62 -62
  627. package/lib/renderer/SwitchMoreControl.js +2 -2
  628. package/lib/renderer/TimelineItemControl.js +2 -2
  629. package/lib/renderer/TransferTableControl.js +2 -2
  630. package/lib/renderer/TreeOptionControl.js +2 -2
  631. package/lib/renderer/ValidationControl.js +2 -2
  632. package/lib/renderer/ValidationItem.js +5 -3
  633. package/lib/renderer/event-control/action-config-dialog.js +2 -2
  634. package/lib/renderer/event-control/action-config-panel.js +2 -2
  635. package/lib/renderer/event-control/comp-action-select.js +2 -2
  636. package/lib/renderer/event-control/helper.d.ts +22 -21
  637. package/lib/renderer/event-control/helper.js +1305 -108
  638. package/lib/renderer/event-control/index.js +4 -3
  639. package/lib/renderer/style-control/Background.js +2 -2
  640. package/lib/renderer/style-control/Border.js +2 -2
  641. package/lib/renderer/style-control/BoxModel.js +2 -2
  642. package/lib/renderer/style-control/BoxShadow.js +2 -2
  643. package/lib/renderer/style-control/Display.js +2 -2
  644. package/lib/renderer/style-control/Font.js +2 -2
  645. package/lib/renderer/style-control/InsetBoxModel.js +2 -2
  646. package/lib/renderer/style-control/font-family.js +2 -2
  647. package/lib/renderer/style-control/transformation.js +2 -2
  648. package/lib/renderer/textarea-formula/FormulaPicker.d.ts +3 -0
  649. package/lib/renderer/textarea-formula/FormulaPicker.js +2 -2
  650. package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +9 -0
  651. package/lib/renderer/textarea-formula/TextareaFormulaControl.js +17 -5
  652. package/lib/renderer/textarea-formula/plugin.js +2 -2
  653. package/lib/renderer/textarea-formula/utils.js +2 -2
  654. package/lib/tpl/api.js +2 -2
  655. package/lib/tpl/common.js +366 -3
  656. package/lib/tpl/horizontal.js +2 -2
  657. package/lib/tpl/layout.js +91 -23
  658. package/lib/tpl/options.js +2 -2
  659. package/lib/tpl/style.js +2 -2
  660. package/lib/tpl/validations.js +2 -2
  661. package/lib/util.js +2 -3
  662. package/lib/validator.js +2 -2
  663. package/package.json +1 -5
  664. package/esm/renderer/event-control/actions.d.ts +0 -3
  665. package/esm/renderer/event-control/actions.js +0 -1211
  666. package/lib/renderer/event-control/actions.d.ts +0 -3
  667. package/lib/renderer/event-control/actions.js +0 -1219
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-editor v5.2.1-beta.35
3
- * Copyright 2018-2022 @fex
2
+ * amis-editor v5.2.3-beta.15
3
+ * Copyright 2018-2023 @fex
4
4
  */
5
5
 
6
6
  'use strict';
@@ -11,31 +11,16 @@ var tslib = require('tslib');
11
11
  var React = require('react');
12
12
  var amisEditorCore = require('amis-editor-core');
13
13
  var amisCore = require('amis-core');
14
- var compActionSelect = require('./comp-action-select.js');
15
14
  var amis = require('amis');
16
- var actions = require('./actions.js');
17
- var without = require('lodash/without');
18
15
  var i18nRuntime = require('i18n-runtime');
16
+ var without = require('lodash/without');
17
+ var compActionSelect = require('./comp-action-select.js');
19
18
 
20
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
20
 
22
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
22
  var without__default = /*#__PURE__*/_interopDefaultLegacy(without);
24
23
 
25
- var DATA_CONTAINER = ['form', 'dialog', 'drawer', 'wizard', 'service', 'crud', 'page', 'app', 'chart'];
26
- // 下拉展示可赋值属性范围
27
- var SELECT_PROPS_CONTAINER = ['form'];
28
- // 是否数据容器
29
- var IS_DATA_CONTAINER = "".concat(JSON.stringify(DATA_CONTAINER), ".includes(data.__rendererName)");
30
- // 是否下拉展示可赋值属性
31
- var SHOW_SELECT_PROP = "".concat(JSON.stringify(SELECT_PROPS_CONTAINER), ".includes(data.__rendererName)");
32
- // 表单项组件
33
- var FORMITEM_CMPTS = ['button-group-select', 'button-toolbar', 'chained-select', 'chart-radios', 'checkbox', 'checkboxes', 'combo', 'input-kv', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-array', 'input-city', 'input-color', 'input-date', 'input-date-range', 'input-datetime-range', 'input-time-range', 'input-excel', 'input-file', 'input-formula', 'input-group', 'input-image', 'input-month-range', 'input-number', 'input-quarter-range', 'input-range', 'input-rating', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'input-tag', 'input-text', 'input-password', 'input-email', 'input-url', 'native-date', 'native-time', 'native-number', 'input-tree', 'input-year-range', 'list-select', 'location-picker', 'matrix-checkboxes', 'nested-select', 'cascader-select', 'picker', 'radios', 'select', 'multi-select', 'switch', 'tabs-transfer', 'tabs-transfer-picker', 'textarea', 'transfer', 'transfer-picker', 'tree-select', 'uuid'];
34
- var SUPPORT_STATIC_FORMITEM_CMPTS = without__default["default"].apply(void 0, tslib.__spreadArray([FORMITEM_CMPTS], ['button-toolbar', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-excel', 'input-file', 'input-formula', 'input-image', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'picker', 'uuid'], false));
35
- var SUPPORT_DISABLED_CMPTS = ['button-group', 'action', 'button', 'submit', 'reset', 'collapse', 'container', 'dropdown-button', 'flex', 'flex-item', 'grid', 'grid-2d', 'link', 'nav', 'wizard'
36
- // 'card2'
37
- ];
38
-
39
24
  var getArgsWrapper = function (items, multiple, patch) {
40
25
  if (multiple === void 0) {
41
26
  multiple = false;
@@ -53,6 +38,1305 @@ var getArgsWrapper = function (items, multiple, patch) {
53
38
  items: Array.isArray(items) ? items : [items]
54
39
  });
55
40
  };
41
+ // 数据容器范围
42
+ var DATA_CONTAINER = ['form', 'dialog', 'drawer', 'wizard', 'service', 'crud', 'page', 'app', 'chart'];
43
+ var MSG_TYPES = {
44
+ info: i18nRuntime.i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),
45
+ warning: i18nRuntime.i18n("900c70fa5f7dbc014e6f762d5e0e885c"),
46
+ success: i18nRuntime.i18n("330363dfc524cff2488f2ebde0500896"),
47
+ error: i18nRuntime.i18n("7030ff64701a938becbc5aa67ddb86e8")
48
+ };
49
+ // 下拉展示可赋值属性范围
50
+ var SELECT_PROPS_CONTAINER = ['form'];
51
+ // 是否数据容器
52
+ var IS_DATA_CONTAINER = "".concat(JSON.stringify(DATA_CONTAINER), ".includes(data.__rendererName)");
53
+ // 是否下拉展示可赋值属性
54
+ var SHOW_SELECT_PROP = "".concat(JSON.stringify(SELECT_PROPS_CONTAINER), ".includes(data.__rendererName)");
55
+ // 表单项组件
56
+ var FORMITEM_CMPTS = ['button-group-select', 'button-toolbar', 'chained-select', 'chart-radios', 'checkbox', 'checkboxes', 'combo', 'input-kv', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-array', 'input-city', 'input-color', 'input-date', 'input-date-range', 'input-datetime-range', 'input-time-range', 'input-excel', 'input-file', 'input-formula', 'input-group', 'input-image', 'input-month-range', 'input-number', 'input-quarter-range', 'input-range', 'input-rating', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'input-tag', 'input-text', 'input-password', 'input-email', 'input-url', 'native-date', 'native-time', 'native-number', 'input-tree', 'input-year-range', 'list-select', 'location-picker', 'matrix-checkboxes', 'nested-select', 'cascader-select', 'picker', 'radios', 'select', 'multi-select', 'switch', 'tabs-transfer', 'tabs-transfer-picker', 'textarea', 'transfer', 'transfer-picker', 'tree-select', 'uuid'];
57
+ var SUPPORT_STATIC_FORMITEM_CMPTS = without__default["default"].apply(void 0, tslib.__spreadArray([FORMITEM_CMPTS], ['button-toolbar', 'condition-builder', 'diff-editor', 'editor', 'formula', 'hidden', 'icon-picker', 'input-excel', 'input-file', 'input-formula', 'input-image', 'input-repeat', 'input-rich-text', 'input-sub-form', 'input-table', 'picker', 'uuid'], false));
58
+ var SUPPORT_DISABLED_CMPTS = ['button-group', 'action', 'button', 'submit', 'reset', 'collapse', 'container', 'dropdown-button', 'flex', 'flex-item', 'grid', 'grid-2d', 'link', 'nav', 'wizard'
59
+ // 'card2'
60
+ ];
61
+
62
+ var ACTION_TYPE_TREE = function (manager) {
63
+ return [{
64
+ actionLabel: i18nRuntime.i18n("59ceff465ad16932d8972191ad815dfb"),
65
+ actionType: 'page',
66
+ children: [{
67
+ actionLabel: i18nRuntime.i18n("dec2eb7145e149f281cb7e75fbe8972a"),
68
+ actionType: 'url',
69
+ description: i18nRuntime.i18n("ae10a948eca808b3dd77506b24f3fd0e"),
70
+ innerArgs: ['url', 'params', 'blank'],
71
+ descDetail: function (info) {
72
+ var _a;
73
+ return React__default["default"].createElement("div", null, "\u8DF3\u8F6C\u81F3", React__default["default"].createElement("span", {
74
+ className: "variable-left"
75
+ }, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.url) || '-'));
76
+ },
77
+ schema: getArgsWrapper([{
78
+ type: 'wrapper',
79
+ className: 'p-none',
80
+ body: [
81
+ /**
82
+ {
83
+ label: '页面地址',
84
+ type: 'input-formula',
85
+ variables: '${variables}',
86
+ evalMode: false,
87
+ variableMode: 'tabs',
88
+ inputMode: 'input-group',
89
+ name: 'url',
90
+ placeholder: 'http://',
91
+ mode: 'horizontal',
92
+ size: 'lg',
93
+ required: true,
94
+ visibleOn: 'data.actionType === "url"'
95
+ },
96
+ */
97
+ {
98
+ name: 'url',
99
+ label: i18nRuntime.i18n("8f1c078c6d42759e6ccb1a9bf35f1629"),
100
+ type: 'ae-textareaFormulaControl',
101
+ variables: '${variables}',
102
+ mode: 'horizontal',
103
+ // placeholder: 'http://', 长文本暂不支持
104
+ size: 'lg',
105
+ required: true,
106
+ visibleOn: 'data.actionType === "url"'
107
+ }, {
108
+ type: 'combo',
109
+ name: 'params',
110
+ label: i18nRuntime.i18n("0b72392143e4038e98128cb0f6f679b3"),
111
+ multiple: true,
112
+ mode: 'horizontal',
113
+ size: 'lg',
114
+ items: [{
115
+ name: 'key',
116
+ placeholder: i18nRuntime.i18n("c068b579db3bf0a553bd0af4f81cc14f"),
117
+ type: 'input-text'
118
+ },
119
+ /**
120
+ {
121
+ name: 'val',
122
+ placeholder: '参数值',
123
+ type: 'input-formula',
124
+ variables: '${variables}',
125
+ evalMode: false,
126
+ variableMode: 'tabs',
127
+ inputMode: 'input-group',
128
+ size: 'xs'
129
+ },
130
+ */
131
+ {
132
+ type: 'ae-formulaControl',
133
+ variables: '${variables}',
134
+ name: 'val',
135
+ variableMode: 'tabs',
136
+ placeholder: i18nRuntime.i18n("bfed4943c5f487de1b63a82f7230cce2")
137
+ }]
138
+ }, {
139
+ type: 'switch',
140
+ name: 'blank',
141
+ label: i18nRuntime.i18n("56aa76ab3c987377e855ae2c6c612050"),
142
+ onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
143
+ offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
144
+ mode: 'horizontal',
145
+ pipeIn: amisEditorCore.defaultValue(true)
146
+ }]
147
+ }])
148
+ }, {
149
+ actionLabel: i18nRuntime.i18n("fd5fb471ecce1eea63a6a95b6707f815"),
150
+ actionType: 'link',
151
+ description: i18nRuntime.i18n("67e21dd387607ae3fb59846504fa2c4c"),
152
+ innerArgs: ['link', 'params', 'pageName', '__pageInputSchema'],
153
+ descDetail: function (info) {
154
+ var _a;
155
+ return React__default["default"].createElement("div", null, "\u6253\u5F00", React__default["default"].createElement("span", {
156
+ className: "variable-left variable-right"
157
+ }, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.pageName) || '-'), "\u9875\u9762");
158
+ },
159
+ schema: getArgsWrapper([{
160
+ type: 'wrapper',
161
+ className: 'p-none',
162
+ body: [amisEditorCore.getSchemaTpl('app-page'), amisEditorCore.getSchemaTpl('app-page-args')]
163
+ }])
164
+ }, {
165
+ actionLabel: i18nRuntime.i18n("39e107b7c4aa580f913ccbebc00f7534"),
166
+ actionType: 'refresh',
167
+ description: i18nRuntime.i18n("261242fe62b18b620419802c7dd7da7f")
168
+ }, {
169
+ actionLabel: i18nRuntime.i18n("ca180138a862543561d3a2c4f08b2e1b"),
170
+ actionType: 'goBack',
171
+ description: i18nRuntime.i18n("5f6b9e7a050ae3f34b38191435e14b24"),
172
+ descDetail: function (info) {
173
+ return React__default["default"].createElement("div", null, "\u8FD4\u56DE\u4E0A\u4E00\u9875");
174
+ }
175
+ }]
176
+ }, {
177
+ actionLabel: i18nRuntime.i18n("f80d12dcd65429fd28841e768062d3c2"),
178
+ actionType: 'dialogs',
179
+ children: [{
180
+ actionLabel: i18nRuntime.i18n("0561589c26e732981f29709a9b574234"),
181
+ actionType: 'openDialog',
182
+ description: i18nRuntime.i18n("256dbc5161ae393ec8a0e83ae6cf9469"),
183
+ actions: [{
184
+ actionType: 'dialog'
185
+ }, {
186
+ actionType: 'drawer'
187
+ }],
188
+ schema: [{
189
+ type: 'radios',
190
+ label: i18nRuntime.i18n("226b0912184333c81babf2f1894ec0c1"),
191
+ name: 'groupType',
192
+ mode: 'horizontal',
193
+ value: 'dialog',
194
+ required: true,
195
+ pipeIn: amisEditorCore.defaultValue('dialog'),
196
+ inputClassName: 'event-action-radio',
197
+ options: [{
198
+ label: i18nRuntime.i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),
199
+ value: 'dialog'
200
+ }, {
201
+ label: i18nRuntime.i18n("2a2924380dfcaea998bd8a49703545a9"),
202
+ value: 'drawer'
203
+ }],
204
+ visibleOn: 'data.actionType === "openDialog"'
205
+ }, {
206
+ name: 'dialog',
207
+ label: i18nRuntime.i18n("507c1d40c5d6b990cf8c832b0a91cadb"),
208
+ mode: 'horizontal',
209
+ required: true,
210
+ pipeIn: amisEditorCore.defaultValue({
211
+ title: i18nRuntime.i18n("8a089992349df754f182a5d02de8e8e0"),
212
+ body: i18nRuntime.i18n("b680997c50ca749acd4e6075cdca244e"),
213
+ showCloseButton: true,
214
+ showErrorMsg: true,
215
+ showLoading: true
216
+ }),
217
+ asFormItem: true,
218
+ visibleOn: 'data.groupType === "dialog"',
219
+ children: function (_a) {
220
+ var value = _a.value,
221
+ onChange = _a.onChange,
222
+ data = _a.data;
223
+ return React__default["default"].createElement(amis.Button, {
224
+ size: "sm",
225
+ className: "action-btn-width",
226
+ onClick: function () {
227
+ return manager.openSubEditor({
228
+ title: i18nRuntime.i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),
229
+ value: tslib.__assign({
230
+ type: 'dialog'
231
+ }, value),
232
+ data: data,
233
+ onChange: function (value) {
234
+ return onChange(value);
235
+ }
236
+ });
237
+ },
238
+ block: true
239
+ }, i18nRuntime.i18n('a532be3ad5f3fda70d228b8542e81835'));
240
+ }
241
+ }, {
242
+ name: 'drawer',
243
+ label: i18nRuntime.i18n("b67cbb1ca7439053f06d59aac5e410dc"),
244
+ mode: 'horizontal',
245
+ required: true,
246
+ pipeIn: amisEditorCore.defaultValue({
247
+ title: i18nRuntime.i18n("8a089992349df754f182a5d02de8e8e0"),
248
+ body: i18nRuntime.i18n("b680997c50ca749acd4e6075cdca244e")
249
+ }),
250
+ asFormItem: true,
251
+ visibleOn: 'data.groupType === "drawer"',
252
+ children: function (_a) {
253
+ var value = _a.value,
254
+ onChange = _a.onChange;
255
+ _a.data;
256
+ return React__default["default"].createElement(amis.Button, {
257
+ size: "sm",
258
+ className: "action-btn-width",
259
+ onClick: function () {
260
+ return manager.openSubEditor({
261
+ title: i18nRuntime.i18n("262c7c7b9874ae5607fb51da468d0e8c"),
262
+ value: tslib.__assign({
263
+ type: 'drawer'
264
+ }, value),
265
+ onChange: function (value) {
266
+ return onChange(value);
267
+ }
268
+ });
269
+ },
270
+ block: true
271
+ }, i18nRuntime.i18n('a532be3ad5f3fda70d228b8542e81835'));
272
+ }
273
+ }]
274
+ }, {
275
+ actionLabel: i18nRuntime.i18n("3b02248ca3790e356e47b6900c0e3931"),
276
+ actionType: 'closeDialog',
277
+ description: i18nRuntime.i18n("f33c2c6ff58bcec40d3e74e591bb3df2") // 或者关闭指定弹窗
278
+ // schema: getArgsWrapper({
279
+ // type: 'wrapper',
280
+ // className: 'p-none',
281
+ // body: [
282
+ // {
283
+ // type: 'radios',
284
+ // label: '类型',
285
+ // name: 'groupType',
286
+ // mode: 'horizontal',
287
+ // value: 'closeDialog',
288
+ // required: true,
289
+ // pipeIn: defaultValue('closeDialog'),
290
+ // options: [
291
+ // {
292
+ // label: '弹窗',
293
+ // value: 'closeDialog'
294
+ // },
295
+ // {
296
+ // label: '抽屉',
297
+ // value: 'closeDrawer'
298
+ // }
299
+ // ],
300
+ // visibleOn: 'data.actionType === "closeDialog"'
301
+ // }
302
+ // ]
303
+ // })
304
+ },
305
+ // 暂时下掉,看后面具体设计
306
+ // {
307
+ // actionLabel: '打开提示对话框',
308
+ // actionType: 'alert',
309
+ // description: '弹个提示对话框'
310
+ // },
311
+ // {
312
+ // actionLabel: '打开确认对话框',
313
+ // actionType: 'confirm',
314
+ // description: '弹个确认对话框'
315
+ // },
316
+ {
317
+ actionLabel: i18nRuntime.i18n("e495f416b83e4c7ff3c66ec3be96a76f"),
318
+ actionType: 'toast',
319
+ description: i18nRuntime.i18n("61d7aaa88181c527cfb936d4c686d267"),
320
+ innerArgs: ['title', 'msgType', 'msg', 'position', 'timeout', 'closeButton', 'showIcon'],
321
+ descDetail: function (info) {
322
+ var _a, _b;
323
+ return React__default["default"].createElement("div", null, MSG_TYPES[(_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.msgType] || '', "\u6D88\u606F\uFF1A", React__default["default"].createElement("span", {
324
+ className: "variable-left"
325
+ }, ((_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.msg) || '-'));
326
+ },
327
+ schema: getArgsWrapper({
328
+ type: 'wrapper',
329
+ className: 'p-none',
330
+ body: [{
331
+ type: 'button-group-select',
332
+ name: 'msgType',
333
+ label: i18nRuntime.i18n("6d00710a2528332bfcac14b58e412042"),
334
+ value: 'info',
335
+ required: true,
336
+ mode: 'horizontal',
337
+ options: Object.keys(MSG_TYPES).map(function (key) {
338
+ return {
339
+ label: MSG_TYPES[key],
340
+ value: key,
341
+ level: 'default'
342
+ };
343
+ })
344
+ },
345
+ /*
346
+ {
347
+ name: 'msg',
348
+ label: '消息内容',
349
+ mode: 'horizontal',
350
+ type: 'input-formula',
351
+ variables: '${variables}',
352
+ evalMode: false,
353
+ variableMode: 'tabs',
354
+ inputMode: 'input-group',
355
+ size: 'lg',
356
+ required: true
357
+ },
358
+ */
359
+ {
360
+ name: 'msg',
361
+ label: i18nRuntime.i18n("b87b77561e776367e6756e11ea652217"),
362
+ type: 'ae-textareaFormulaControl',
363
+ mode: 'horizontal',
364
+ variables: '${variables}',
365
+ size: 'lg',
366
+ required: true
367
+ },
368
+ /*
369
+ {
370
+ name: 'title',
371
+ type: 'input-formula',
372
+ variables: '${variables}',
373
+ evalMode: false,
374
+ variableMode: 'tabs',
375
+ inputMode: 'input-group',
376
+ label: '标题内容',
377
+ size: 'lg',
378
+ mode: 'horizontal'
379
+ },
380
+ */
381
+ {
382
+ name: 'title',
383
+ label: i18nRuntime.i18n("43ab9af06e1e0f0b2a8767b46cf8b1cf"),
384
+ type: 'ae-textareaFormulaControl',
385
+ variables: '${variables}',
386
+ mode: 'horizontal',
387
+ size: 'lg'
388
+ },
389
+ /*
390
+ {
391
+ name: 'timeout',
392
+ type: 'input-formula',
393
+ variables: '${variables}',
394
+ evalMode: false,
395
+ variableMode: 'tabs',
396
+ inputMode: 'input-group',
397
+ label: '持续时间(ms)',
398
+ size: 'lg',
399
+ mode: 'horizontal'
400
+ },
401
+ */
402
+ {
403
+ name: 'timeout',
404
+ label: i18nRuntime.i18n("f41a94bb85c5223181c4cdf83ea9021b"),
405
+ type: 'ae-formulaControl',
406
+ rendererSchema: {
407
+ type: 'input-number'
408
+ },
409
+ valueType: 'number',
410
+ variables: '${variables}',
411
+ size: 'lg',
412
+ mode: 'horizontal'
413
+ }, {
414
+ type: 'button-group-select',
415
+ name: 'position',
416
+ value: 'top-right',
417
+ mode: 'horizontal',
418
+ label: i18nRuntime.i18n("a0a837f2873de80bc9ec353c30e73171"),
419
+ options: [{
420
+ label: i18nRuntime.i18n("f3296f64a8a1330d7a07f1d269a1db92"),
421
+ value: 'top-left'
422
+ }, {
423
+ label: i18nRuntime.i18n("b97a5adf068bee6c852db9dcea3a9799"),
424
+ value: 'top-center'
425
+ }, {
426
+ label: i18nRuntime.i18n("eafeba264b6338939f11f1b1adf40d2b"),
427
+ value: 'top-right'
428
+ }, {
429
+ label: i18nRuntime.i18n("d429ffb093e9aa3bf80da125f1be318c"),
430
+ value: 'bottom-left'
431
+ }, {
432
+ label: i18nRuntime.i18n("c241aa8f427118a719b94cbd8f2bb22d"),
433
+ value: 'bottom-center'
434
+ }, {
435
+ label: i18nRuntime.i18n("9cd707caffdfb314d939298f2f2c267c"),
436
+ value: 'bottom-right'
437
+ }]
438
+ }, {
439
+ type: 'switch',
440
+ name: 'closeButton',
441
+ value: true,
442
+ label: i18nRuntime.i18n("8c8fbec263e20f087555c9abcb6dd07a"),
443
+ mode: 'horizontal'
444
+ }, {
445
+ type: 'switch',
446
+ name: 'showIcon',
447
+ value: true,
448
+ label: i18nRuntime.i18n("3f3a016027e540ef10a16dbd49fffde9"),
449
+ mode: 'horizontal'
450
+ }]
451
+ })
452
+ }]
453
+ }, {
454
+ actionLabel: i18nRuntime.i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),
455
+ actionType: 'service',
456
+ children: [{
457
+ actionLabel: i18nRuntime.i18n("4f02d2efe05a20232ab9da63c090595c"),
458
+ actionType: 'ajax',
459
+ description: i18nRuntime.i18n("0cd902f953656adb29985b68e6fc9754"),
460
+ innerArgs: ['api', 'options'],
461
+ descDetail: function (info) {
462
+ var _a;
463
+ var apiInfo = (_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.api;
464
+ if (typeof apiInfo === 'string') {
465
+ apiInfo = amisCore.normalizeApi(apiInfo);
466
+ }
467
+ return React__default["default"].createElement("div", null, "\u53D1\u9001", React__default["default"].createElement("span", {
468
+ className: "variable-right variable-left"
469
+ }, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), "\u8BF7\u6C42\uFF1A", React__default["default"].createElement("span", {
470
+ className: "variable-left"
471
+ }, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.url) || '-'));
472
+ },
473
+ schema: {
474
+ type: 'wrapper',
475
+ className: 'p-none',
476
+ body: [getArgsWrapper([amisEditorCore.getSchemaTpl('apiControl', {
477
+ name: 'api',
478
+ label: i18nRuntime.i18n("88bdaf32c27ab169d3d686b86b3fae99"),
479
+ mode: 'horizontal',
480
+ size: 'lg',
481
+ inputClassName: 'm-b-none',
482
+ renderLabel: true,
483
+ required: true
484
+ }), {
485
+ name: 'options',
486
+ type: 'combo',
487
+ label: amisEditorCore.tipedLabel(i18nRuntime.i18n("6e6d4269d0dc3324d551062350a2ae9f"), i18nRuntime.i18n("56e13c39822a814ab39b0d5a0867d7dc")),
488
+ mode: 'horizontal',
489
+ items: [{
490
+ type: 'switch',
491
+ name: 'silent',
492
+ label: false,
493
+ onText: i18nRuntime.i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
494
+ offText: i18nRuntime.i18n("b15d91274e9fc68608c609999e0413fa"),
495
+ mode: 'horizontal',
496
+ pipeIn: amisEditorCore.defaultValue(false)
497
+ }]
498
+ }], false, {
499
+ className: 'action-apiControl'
500
+ }), {
501
+ name: 'outputVar',
502
+ type: 'input-text',
503
+ label: i18nRuntime.i18n("e3b49b5bbbdea05598525e91dbdfa638"),
504
+ placeholder: i18nRuntime.i18n("4dca05af026848011eedee1b53efa61c"),
505
+ description: i18nRuntime.i18n("4da82260041107e5780bcbb3a14ef791"),
506
+ mode: 'horizontal',
507
+ size: 'lg',
508
+ value: 'responseResult',
509
+ required: true
510
+ }]
511
+ },
512
+ outputVarDataSchema: [{
513
+ type: 'object',
514
+ properties: {
515
+ 'event.data.${outputVar}.responseData': {
516
+ type: 'object',
517
+ title: i18nRuntime.i18n("0d83078816aa273f2941c9b55ec82bf3")
518
+ },
519
+ 'event.data.${outputVar}.responseStatus': {
520
+ type: 'number',
521
+ title: i18nRuntime.i18n("3f9e257178738d5d180ddc2996809c10")
522
+ },
523
+ 'event.data.${outputVar}.responseMsg': {
524
+ type: 'string',
525
+ title: i18nRuntime.i18n("99c74120cc62f4bf31d661e3212b7121")
526
+ }
527
+ }
528
+ }]
529
+ }, {
530
+ actionLabel: i18nRuntime.i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),
531
+ actionType: 'download',
532
+ description: i18nRuntime.i18n("89049706952412d790b801def284629e"),
533
+ innerArgs: ['api'],
534
+ schema: {
535
+ type: 'wrapper',
536
+ style: {
537
+ padding: '0'
538
+ },
539
+ body: [getArgsWrapper(amisEditorCore.getSchemaTpl('apiControl', {
540
+ name: 'api',
541
+ label: i18nRuntime.i18n("88bdaf32c27ab169d3d686b86b3fae99"),
542
+ mode: 'horizontal',
543
+ inputClassName: 'm-b-none',
544
+ size: 'lg',
545
+ renderLabel: true,
546
+ required: true
547
+ }), false, {
548
+ className: 'action-apiControl'
549
+ })]
550
+ }
551
+ }]
552
+ }, {
553
+ actionLabel: i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"),
554
+ actionType: 'cmpt',
555
+ children: [{
556
+ actionLabel: i18nRuntime.i18n("c852fb60f1b8ce921c3def1eba000bc5"),
557
+ actionType: 'visibility',
558
+ description: i18nRuntime.i18n("1bd4cfded5e11a7a8ea4dcfd2fa17e15"),
559
+ actions: [{
560
+ actionType: 'show',
561
+ descDetail: function (info) {
562
+ return React__default["default"].createElement("div", null, "\u663E\u793A", React__default["default"].createElement("span", {
563
+ className: "variable-left variable-right"
564
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
565
+ }
566
+ }, {
567
+ actionType: 'hidden',
568
+ descDetail: function (info) {
569
+ return React__default["default"].createElement("div", null, "\u9690\u85CF", React__default["default"].createElement("span", {
570
+ className: "variable-left variable-right"
571
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
572
+ }
573
+ }, {
574
+ actionType: 'visibility',
575
+ descDetail: function (info) {
576
+ return React__default["default"].createElement("div", null, "\u7EC4\u4EF6", React__default["default"].createElement("span", {
577
+ className: "variable-left variable-right"
578
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
579
+ }
580
+ }],
581
+ supportComponents: '*',
582
+ schema: tslib.__spreadArray(tslib.__spreadArray([], renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true), true), [{
583
+ type: 'radios',
584
+ label: i18nRuntime.i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
585
+ name: 'groupType',
586
+ mode: 'horizontal',
587
+ value: 'static',
588
+ required: true,
589
+ inputClassName: 'event-action-radio',
590
+ options: [{
591
+ label: i18nRuntime.i18n("8baf21fa26d6d24b4faa872953275d8d"),
592
+ value: 'static'
593
+ }, {
594
+ label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
595
+ value: 'visibility'
596
+ }]
597
+ }, {
598
+ type: 'radios',
599
+ label: i18nRuntime.i18n("edf25860e3d457eb8ca9cb5dca06dfd7"),
600
+ name: '__statusType',
601
+ mode: 'horizontal',
602
+ value: 'show',
603
+ required: true,
604
+ pipeIn: amisEditorCore.defaultValue('show'),
605
+ inputClassName: 'event-action-radio',
606
+ visibleOn: "this.groupType === 'static'",
607
+ options: [{
608
+ label: i18nRuntime.i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),
609
+ value: 'show'
610
+ }, {
611
+ label: i18nRuntime.i18n("dce5379cb978a8259ecfca8f08f00817"),
612
+ value: 'hidden'
613
+ }]
614
+ }, {
615
+ type: 'ae-expressionFormulaControl',
616
+ mode: 'horizontal',
617
+ label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
618
+ required: true,
619
+ size: 'lg',
620
+ variables: '${variables}',
621
+ evalMode: true,
622
+ name: '__actionExpression',
623
+ visibleOn: "this.groupType === 'visibility'"
624
+ }], false)
625
+ }, {
626
+ actionLabel: i18nRuntime.i18n("12c8d50c55eeec7059ddd5c303e34f77"),
627
+ actionType: 'usability',
628
+ description: i18nRuntime.i18n("5e75800641ec5c1198092bcf9d34f180"),
629
+ actions: [{
630
+ actionType: 'enabled',
631
+ descDetail: function (info) {
632
+ return React__default["default"].createElement("div", null, "\u542F\u7528", React__default["default"].createElement("span", {
633
+ className: "variable-left variable-right"
634
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
635
+ }
636
+ }, {
637
+ actionType: 'disabled',
638
+ descDetail: function (info) {
639
+ return React__default["default"].createElement("div", null, "\u7981\u7528", React__default["default"].createElement("span", {
640
+ className: "variable-left variable-right"
641
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
642
+ }
643
+ }, {
644
+ actionType: 'usability',
645
+ descDetail: function (info) {
646
+ return React__default["default"].createElement("div", null, "\u7EC4\u4EF6", React__default["default"].createElement("span", {
647
+ className: "variable-left variable-right"
648
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u8868\u8FBE\u5F0F\u5DF2\u914D\u7F6E");
649
+ }
650
+ }],
651
+ supportComponents: tslib.__spreadArray(tslib.__spreadArray(['form'], FORMITEM_CMPTS, true), SUPPORT_DISABLED_CMPTS, true),
652
+ schema: tslib.__spreadArray(tslib.__spreadArray([], renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true), true), [{
653
+ type: 'radios',
654
+ label: i18nRuntime.i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
655
+ name: 'groupType',
656
+ mode: 'horizontal',
657
+ inputClassName: 'event-action-radio',
658
+ value: 'static',
659
+ required: true,
660
+ options: [{
661
+ label: i18nRuntime.i18n("8baf21fa26d6d24b4faa872953275d8d"),
662
+ value: 'static'
663
+ }, {
664
+ label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
665
+ value: 'usability'
666
+ }]
667
+ }, {
668
+ type: 'radios',
669
+ label: i18nRuntime.i18n("d86d5919f595226b7a1e8264635ca23d"),
670
+ name: '__statusType',
671
+ mode: 'horizontal',
672
+ inputClassName: 'event-action-radio',
673
+ value: 'enabled',
674
+ required: true,
675
+ pipeIn: amisEditorCore.defaultValue('enabled'),
676
+ visibleOn: "this.groupType === 'static'",
677
+ options: [{
678
+ label: i18nRuntime.i18n("7854b52a889b3ef0590d9f542efeb4c8"),
679
+ value: 'enabled'
680
+ }, {
681
+ label: i18nRuntime.i18n("710ad08b11419332713360d2750cd707"),
682
+ value: 'disabled'
683
+ }]
684
+ }, {
685
+ type: 'ae-expressionFormulaControl',
686
+ mode: 'horizontal',
687
+ label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
688
+ required: true,
689
+ size: 'lg',
690
+ evalMode: true,
691
+ name: '__actionExpression',
692
+ visibleOn: "this.groupType === 'usability'"
693
+ }], false)
694
+ }, {
695
+ actionLabel: i18nRuntime.i18n("e052287273ad39a1d3fa9fa3decb5fd9"),
696
+ actionType: 'staticStatus',
697
+ description: i18nRuntime.i18n("506f28f48dbebd5d19e19dfc721e13be"),
698
+ actions: [{
699
+ actionType: 'static',
700
+ descDetail: function (info) {
701
+ return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
702
+ className: "variable-right"
703
+ }, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u9759\u6001");
704
+ }
705
+ }, {
706
+ actionType: 'nonstatic',
707
+ descDetail: function (info) {
708
+ return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
709
+ className: "variable-right"
710
+ }, info === null || info === void 0 ? void 0 : info.rendererLabel), "\u7EC4\u4EF6\u5207\u6362\u4E3A\u8F93\u5165\u6001");
711
+ }
712
+ }],
713
+ supportComponents: tslib.__spreadArray(['form'], SUPPORT_STATIC_FORMITEM_CMPTS, true),
714
+ schema: tslib.__spreadArray(tslib.__spreadArray([], renderCmptSelect(i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"), true), true), [{
715
+ type: 'radios',
716
+ label: i18nRuntime.i18n("d2e930293da37452638759e17d771adf"),
717
+ name: 'groupType',
718
+ mode: 'horizontal',
719
+ inputClassName: 'event-action-radio',
720
+ value: 'nonstatic',
721
+ required: true,
722
+ pipeIn: amisEditorCore.defaultValue('nonstatic'),
723
+ options: [{
724
+ label: i18nRuntime.i18n("b535bea11c97ec5588b1494799de4d60"),
725
+ value: 'nonstatic'
726
+ }, {
727
+ label: i18nRuntime.i18n("f7784642f42d33f506ba05f3daefc3c4"),
728
+ value: 'static'
729
+ }]
730
+ }], false)
731
+ }, {
732
+ actionLabel: i18nRuntime.i18n("c5a9b6e8c522de8a14ad7fab51c1a1e3"),
733
+ actionType: 'reload',
734
+ description: i18nRuntime.i18n("be4b778e7f5aa6aa5a811d7db4e1a8b3"),
735
+ descDetail: function (info) {
736
+ return React__default["default"].createElement("div", null, "\u5237\u65B0", React__default["default"].createElement("span", {
737
+ className: "variable-left variable-right"
738
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7EC4\u4EF6");
739
+ },
740
+ supportComponents: 'byComponent',
741
+ schema: tslib.__spreadArray(tslib.__spreadArray([], renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
742
+ form.setValueByName('args.resetPage', true);
743
+ form.setValueByName('__addParam', true);
744
+ form.setValueByName('__customData', false);
745
+ form.setValueByName('__containerType', 'all');
746
+ form.setValueByName('__reloadParam', []);
747
+ }), true), [{
748
+ type: 'switch',
749
+ name: '__resetPage',
750
+ label: amisEditorCore.tipedLabel(i18nRuntime.i18n("697af73997072e0ce9ee65b15a7b3715"), i18nRuntime.i18n("d7bf42dd6e66f2818f9a232603c4a53b")),
751
+ onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
752
+ offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
753
+ mode: 'horizontal',
754
+ pipeIn: amisEditorCore.defaultValue(true),
755
+ visibleOn: "data.actionType === \"reload\" && data.__rendererName === \"crud\""
756
+ }, {
757
+ type: 'switch',
758
+ name: '__addParam',
759
+ label: amisEditorCore.tipedLabel(i18nRuntime.i18n("fee99f2bcced486e4753a8f58f511d3f"), i18nRuntime.i18n("0f9803bd27434940d4017007c105a861")),
760
+ onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
761
+ offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
762
+ mode: 'horizontal',
763
+ pipeIn: amisEditorCore.defaultValue(true),
764
+ visibleOn: "data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
765
+ }, {
766
+ type: 'switch',
767
+ name: '__customData',
768
+ label: amisEditorCore.tipedLabel(i18nRuntime.i18n("fd951a59a7c635d5330bc1aeec22c813"), i18nRuntime.i18n("b62ce3df3c0d5772006c525b60d5eeab")),
769
+ onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
770
+ offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
771
+ mode: 'horizontal',
772
+ pipeIn: amisEditorCore.defaultValue(true),
773
+ visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
774
+ onChange: function (value, oldVal, data, form) {
775
+ form.setValueByName('__containerType', 'all');
776
+ }
777
+ }, {
778
+ type: 'radios',
779
+ name: '__containerType',
780
+ mode: 'horizontal',
781
+ label: '',
782
+ pipeIn: amisEditorCore.defaultValue('all'),
783
+ visibleOn: "data.__addParam && data.__customData && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
784
+ options: [{
785
+ label: i18nRuntime.i18n("77b1081c177fa3334cc93c99f0ecee75"),
786
+ value: 'all'
787
+ }, {
788
+ label: i18nRuntime.i18n("f5c5e3d69daee06ea1606378ef466765"),
789
+ value: 'appoint'
790
+ }],
791
+ onChange: function (value, oldVal, data, form) {
792
+ form.setValueByName('__reloadParams', []);
793
+ form.setValueByName('__valueInput', undefined);
794
+ }
795
+ },
796
+ /*
797
+ {
798
+ name: '__valueInput',
799
+ type: 'input-formula',
800
+ variables: '${variables}',
801
+ evalMode: false,
802
+ required: true,
803
+ variableMode: 'tabs',
804
+ inputMode: 'input-group',
805
+ label: '',
806
+ size: 'lg',
807
+ mode: 'horizontal',
808
+ visibleOn: `data.__addParam && data.__customData && data.__containerType === "all" && data.actionType === "reload" && ${IS_DATA_CONTAINER}`
809
+ },
810
+ */
811
+ {
812
+ name: '__valueInput',
813
+ label: '',
814
+ type: 'ae-formulaControl',
815
+ variables: '${variables}',
816
+ size: 'lg',
817
+ mode: 'horizontal',
818
+ required: true,
819
+ visibleOn: "data.__addParam && data.__customData && data.__containerType === \"all\" && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
820
+ }, {
821
+ type: 'combo',
822
+ name: '__reloadParams',
823
+ label: '',
824
+ multiple: true,
825
+ removable: true,
826
+ addable: true,
827
+ strictMode: false,
828
+ canAccessSuperData: true,
829
+ size: 'lg',
830
+ mode: 'horizontal',
831
+ items: [{
832
+ name: 'key',
833
+ type: 'input-text',
834
+ placeholder: i18nRuntime.i18n("c068b579db3bf0a553bd0af4f81cc14f"),
835
+ labelField: 'label',
836
+ valueField: 'value',
837
+ required: true
838
+ },
839
+ /*
840
+ {
841
+ name: 'val',
842
+ type: 'input-formula',
843
+ placeholder: '参数值',
844
+ variables: '${variables}',
845
+ evalMode: false,
846
+ variableMode: 'tabs',
847
+ inputMode: 'input-group'
848
+ }
849
+ */
850
+ {
851
+ name: 'val',
852
+ type: 'ae-formulaControl',
853
+ variables: '${variables}',
854
+ placeholder: i18nRuntime.i18n("bfed4943c5f487de1b63a82f7230cce2")
855
+ }],
856
+ visibleOn: "data.__addParam && data.__customData && data.__containerType === \"appoint\" && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER)
857
+ }, {
858
+ type: 'radios',
859
+ name: 'dataMergeMode',
860
+ mode: 'horizontal',
861
+ label: amisEditorCore.tipedLabel(i18nRuntime.i18n("2aecb19ca1655d66fc80fc27a783cc9e"), i18nRuntime.i18n("b67b01a3b9170f1daf78082cfd0df793")),
862
+ pipeIn: amisEditorCore.defaultValue('merge'),
863
+ visibleOn: "data.__addParam && data.actionType === \"reload\" && ".concat(IS_DATA_CONTAINER),
864
+ options: [{
865
+ label: i18nRuntime.i18n("bd81577a6fd4956e676cec499bb70d00"),
866
+ value: 'merge'
867
+ }, {
868
+ label: i18nRuntime.i18n("e09fea40f7e4abd4b2a495b315940688"),
869
+ value: 'override'
870
+ }]
871
+ }], false)
872
+ }, {
873
+ actionLabel: i18nRuntime.i18n("fa644cb20c66f7530d8a376d4fa6a36e"),
874
+ actionType: 'setValue',
875
+ description: i18nRuntime.i18n("7d9260bd45b2e85a09398f218c25f220"),
876
+ innerArgs: ['value', 'index', '__valueInput', '__comboType', '__containerType'],
877
+ descDetail: function (info) {
878
+ return React__default["default"].createElement("div", null, "\u8BBE\u7F6E", React__default["default"].createElement("span", {
879
+ className: "variable-left variable-right"
880
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
881
+ },
882
+ supportComponents: 'byComponent',
883
+ schema: tslib.__spreadArray(tslib.__spreadArray([], renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
884
+ form.setValueByName('args.__containerType', 'all');
885
+ form.setValueByName('args.__comboType', 'all');
886
+ }), true), [getArgsWrapper({
887
+ type: 'wrapper',
888
+ className: 'p-none',
889
+ body: [{
890
+ type: 'radios',
891
+ name: '__containerType',
892
+ mode: 'horizontal',
893
+ label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
894
+ pipeIn: amisEditorCore.defaultValue('all'),
895
+ visibleOn: "".concat(IS_DATA_CONTAINER),
896
+ options: [{
897
+ label: i18nRuntime.i18n("77b1081c177fa3334cc93c99f0ecee75"),
898
+ value: 'all'
899
+ }, {
900
+ label: i18nRuntime.i18n("f5c5e3d69daee06ea1606378ef466765"),
901
+ value: 'appoint'
902
+ }],
903
+ onChange: function (value, oldVal, data, form) {
904
+ form.setValueByName('value', []);
905
+ form.setValueByName('__valueInput', undefined);
906
+ }
907
+ }, {
908
+ type: 'radios',
909
+ name: '__comboType',
910
+ inputClassName: 'event-action-radio',
911
+ mode: 'horizontal',
912
+ label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
913
+ pipeIn: amisEditorCore.defaultValue('all'),
914
+ visibleOn: "data.__rendererName === 'combo'",
915
+ options: [{
916
+ label: i18nRuntime.i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),
917
+ value: 'all'
918
+ }, {
919
+ label: i18nRuntime.i18n("139294edcce271bf483dda437c421c29"),
920
+ value: 'appoint'
921
+ }],
922
+ onChange: function (value, oldVal, data, form) {
923
+ form.setValueByName('index', undefined);
924
+ form.setValueByName('value', []);
925
+ form.setValueByName('__valueInput', undefined);
926
+ }
927
+ }, {
928
+ type: 'input-number',
929
+ required: true,
930
+ name: 'index',
931
+ mode: 'horizontal',
932
+ label: i18nRuntime.i18n("a7b0b80a7bea1e5e973967c179866ef0"),
933
+ size: 'lg',
934
+ placeholder: i18nRuntime.i18n("e887792fbbd65d21e43e832a5cd63aac"),
935
+ visibleOn: "data.__comboType === 'appoint' && data.__rendererName === 'combo'"
936
+ }, {
937
+ type: 'combo',
938
+ name: 'value',
939
+ label: '',
940
+ multiple: true,
941
+ removable: true,
942
+ required: true,
943
+ addable: true,
944
+ strictMode: false,
945
+ canAccessSuperData: true,
946
+ size: 'lg',
947
+ mode: 'horizontal',
948
+ items: [{
949
+ name: 'key',
950
+ type: 'input-text',
951
+ placeholder: i18nRuntime.i18n("a25657422b40023f2731619587940bc7"),
952
+ source: '${__setValueDs}',
953
+ labelField: 'label',
954
+ valueField: 'value',
955
+ required: true
956
+ },
957
+ /*
958
+ {
959
+ name: 'val',
960
+ type: 'input-formula',
961
+ placeholder: '字段值',
962
+ variables: '${variables}',
963
+ evalMode: false,
964
+ variableMode: 'tabs',
965
+ inputMode: 'input-group'
966
+ }
967
+ */
968
+ {
969
+ name: 'val',
970
+ type: 'ae-formulaControl',
971
+ variables: '${variables}',
972
+ placeholder: i18nRuntime.i18n("a33903526e8fb3d1ac3066da70e7941e")
973
+ }],
974
+ visibleOn: "".concat(IS_DATA_CONTAINER, " && data.__containerType === 'appoint' || data.__comboType === 'appoint'")
975
+ }, {
976
+ type: 'combo',
977
+ name: 'value',
978
+ label: '',
979
+ multiple: true,
980
+ removable: true,
981
+ required: true,
982
+ addable: true,
983
+ strictMode: false,
984
+ canAccessSuperData: true,
985
+ mode: 'horizontal',
986
+ size: 'lg',
987
+ items: [{
988
+ type: 'combo',
989
+ name: 'item',
990
+ label: false,
991
+ renderLabel: false,
992
+ multiple: true,
993
+ removable: true,
994
+ required: true,
995
+ addable: true,
996
+ strictMode: false,
997
+ canAccessSuperData: true,
998
+ className: 'm-l',
999
+ size: 'lg',
1000
+ mode: 'horizontal',
1001
+ items: [{
1002
+ name: 'key',
1003
+ type: 'input-text',
1004
+ source: '${__setValueDs}',
1005
+ labelField: 'label',
1006
+ valueField: 'value',
1007
+ required: true,
1008
+ visibleOn: "data.__rendererName"
1009
+ },
1010
+ /*
1011
+ {
1012
+ name: 'val',
1013
+ type: 'input-formula',
1014
+ variables: '${variables}',
1015
+ evalMode: false,
1016
+ variableMode: 'tabs',
1017
+ inputMode: 'input-group'
1018
+ }
1019
+ */
1020
+ {
1021
+ name: 'val',
1022
+ type: 'ae-formulaControl',
1023
+ variables: '${variables}'
1024
+ }]
1025
+ }],
1026
+ visibleOn: "data.__rendererName === 'combo' && data.__comboType === 'all'"
1027
+ },
1028
+ /*
1029
+ {
1030
+ name: '__valueInput',
1031
+ type: 'input-formula',
1032
+ variables: '${variables}',
1033
+ evalMode: false,
1034
+ variableMode: 'tabs',
1035
+ inputMode: 'input-group',
1036
+ label: '',
1037
+ size: 'lg',
1038
+ mode: 'horizontal',
1039
+ visibleOn: `(${IS_DATA_CONTAINER} || ${SHOW_SELECT_PROP}) && data.__containerType === 'all'`,
1040
+ required: true
1041
+ },
1042
+ */
1043
+ {
1044
+ name: '__valueInput',
1045
+ label: '',
1046
+ type: 'ae-formulaControl',
1047
+ variables: '${variables}',
1048
+ size: 'lg',
1049
+ mode: 'horizontal',
1050
+ visibleOn: "(".concat(IS_DATA_CONTAINER, " || ").concat(SHOW_SELECT_PROP, ") && data.__containerType === 'all'"),
1051
+ required: true
1052
+ },,
1053
+ /*
1054
+ {
1055
+ name: '__valueInput',
1056
+ type: 'input-formula',
1057
+ variables: '${variables}',
1058
+ evalMode: false,
1059
+ variableMode: 'tabs',
1060
+ inputMode: 'input-group',
1061
+ label: '数据设置',
1062
+ size: 'lg',
1063
+ mode: 'horizontal',
1064
+ visibleOn: `data.__rendererName && !${IS_DATA_CONTAINER} && data.__rendererName !== 'combo'`,
1065
+ required: true
1066
+ }
1067
+ */
1068
+ {
1069
+ name: '__valueInput',
1070
+ label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
1071
+ type: 'ae-formulaControl',
1072
+ variables: '${variables}',
1073
+ size: 'lg',
1074
+ mode: 'horizontal',
1075
+ visibleOn: "data.__rendererName && !".concat(IS_DATA_CONTAINER, " && data.__rendererName !== 'combo'"),
1076
+ required: true
1077
+ }]
1078
+ })], false)
1079
+ }, {
1080
+ actionLabel: i18nRuntime.i18n("4e34003861eee3de1e0c9c1222249bbb"),
1081
+ actionType: 'submit',
1082
+ description: i18nRuntime.i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),
1083
+ descDetail: function (info) {
1084
+ return React__default["default"].createElement("div", null, "\u63D0\u4EA4", React__default["default"].createElement("span", {
1085
+ className: "variable-left variable-right"
1086
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
1087
+ },
1088
+ supportComponents: 'form',
1089
+ schema: renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
1090
+ }, {
1091
+ actionLabel: i18nRuntime.i18n("4a3deab45c0a7218b8ae58a33fd24c28"),
1092
+ actionType: 'clear',
1093
+ description: i18nRuntime.i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),
1094
+ descDetail: function (info) {
1095
+ return React__default["default"].createElement("div", null, "\u6E05\u7A7A", React__default["default"].createElement("span", {
1096
+ className: "variable-left variable-right"
1097
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
1098
+ },
1099
+ supportComponents: 'form',
1100
+ schema: renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
1101
+ }, {
1102
+ actionLabel: i18nRuntime.i18n("1b6f5cc49e71c90a5b85a796285e3135"),
1103
+ actionType: 'reset',
1104
+ description: i18nRuntime.i18n("f457845da8c119a8688e333a3554284f"),
1105
+ descDetail: function (info) {
1106
+ return React__default["default"].createElement("div", null, "\u91CD\u7F6E", React__default["default"].createElement("span", {
1107
+ className: "variable-left variable-right"
1108
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
1109
+ },
1110
+ supportComponents: 'form',
1111
+ schema: renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
1112
+ }, {
1113
+ actionLabel: i18nRuntime.i18n("17f2bf425eeb7d20d79c595344e9dc94"),
1114
+ actionType: 'validate',
1115
+ description: i18nRuntime.i18n("a84a1311bea7370f1749341ffa6f75e1"),
1116
+ descDetail: function (info) {
1117
+ return React__default["default"].createElement("div", null, "\u6821\u9A8C", React__default["default"].createElement("span", {
1118
+ className: "variable-left variable-right"
1119
+ }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || '-'), "\u7684\u6570\u636E");
1120
+ },
1121
+ supportComponents: 'form',
1122
+ schema: renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)
1123
+ }, {
1124
+ actionLabel: i18nRuntime.i18n("51325230409d4b7c64aaeb3db9904801"),
1125
+ actionType: 'component',
1126
+ description: i18nRuntime.i18n("98d130cb9a360df782f6510abacbc022"),
1127
+ supportComponents: '*',
1128
+ schema: renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"))
1129
+ }]
1130
+ }, {
1131
+ actionLabel: i18nRuntime.i18n("0d98c74797e49d00bcc4c17c9d557a2b"),
1132
+ actionType: 'others',
1133
+ children: [{
1134
+ actionLabel: i18nRuntime.i18n("6a086902a84969a835423002718e86b4"),
1135
+ actionType: 'copy',
1136
+ description: i18nRuntime.i18n("557d01c07aa7c4450a414932e6c1ed2a"),
1137
+ innerArgs: ['content', 'copyFormat'],
1138
+ descDetail: function (info) {
1139
+ var _a;
1140
+ return React__default["default"].createElement("div", null, "\u590D\u5236\u5185\u5BB9\uFF1A", React__default["default"].createElement("span", {
1141
+ className: "variable-left"
1142
+ }, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.content) || '-'));
1143
+ },
1144
+ schema: getArgsWrapper({
1145
+ type: 'wrapper',
1146
+ className: 'p-none',
1147
+ body: [
1148
+ /*
1149
+ {
1150
+ name: 'content',
1151
+ type: 'input-formula',
1152
+ variables: '${variables}',
1153
+ evalMode: false,
1154
+ variableMode: 'tabs',
1155
+ inputMode: 'input-group',
1156
+ label: '内容模板',
1157
+ mode: 'horizontal',
1158
+ size: 'lg',
1159
+ visibleOn: 'data.actionType === "copy"',
1160
+ required: true
1161
+ },
1162
+ */
1163
+ {
1164
+ name: 'content',
1165
+ label: i18nRuntime.i18n("ac04259507be8ba6b891dc9dc208f491"),
1166
+ type: 'ae-textareaFormulaControl',
1167
+ variables: '${variables}',
1168
+ mode: 'horizontal',
1169
+ size: 'lg',
1170
+ visibleOn: 'data.actionType === "copy"',
1171
+ required: true
1172
+ }, {
1173
+ type: 'select',
1174
+ name: 'copyFormat',
1175
+ mode: 'horizontal',
1176
+ value: 'text/plain',
1177
+ size: 'lg',
1178
+ options: [{
1179
+ label: i18nRuntime.i18n("ffb01e5bcf4c00447f5150d3cba81371"),
1180
+ value: 'text/plain'
1181
+ }, {
1182
+ label: i18nRuntime.i18n("e2591e971f4c28db7c80a5f546084a1d"),
1183
+ value: 'text/html'
1184
+ }],
1185
+ label: i18nRuntime.i18n("c28f4d63beabc4833b17aaa10ca550db")
1186
+ }]
1187
+ })
1188
+ }, {
1189
+ actionLabel: i18nRuntime.i18n("c7f16d729f3bca8f6936416884a74fb8"),
1190
+ actionType: 'custom',
1191
+ description: i18nRuntime.i18n("1b5a6299ef404c1f7b4292c290b80f55"),
1192
+ schema: {
1193
+ type: 'js-editor',
1194
+ allowFullscreen: true,
1195
+ required: true,
1196
+ name: 'script',
1197
+ label: i18nRuntime.i18n("c7f16d729f3bca8f6936416884a74fb8"),
1198
+ mode: 'horizontal',
1199
+ options: {
1200
+ automaticLayout: true,
1201
+ lineNumbers: 'off',
1202
+ glyphMargin: false,
1203
+ tabSize: 2,
1204
+ fontSize: '12px',
1205
+ wordWrap: 'on',
1206
+ lineDecorationsWidth: 0,
1207
+ lineNumbersMinChars: 0,
1208
+ selectOnLineNumbers: true,
1209
+ scrollBeyondLastLine: false,
1210
+ folding: true
1211
+ },
1212
+ className: 'ae-event-control-action-js-editor',
1213
+ value: "/* \u81EA\u5B9A\u4E49JS\u4F7F\u7528\u8BF4\u660E\uFF1A\n * 1.\u52A8\u4F5C\u6267\u884C\u51FD\u6570doAction\uFF0C\u53EF\u4EE5\u6267\u884C\u6240\u6709\u7C7B\u578B\u7684\u52A8\u4F5C\n * 2.\u901A\u8FC7\u4E0A\u4E0B\u6587\u5BF9\u8C61context\u53EF\u4EE5\u83B7\u53D6\u5F53\u524D\u7EC4\u4EF6\u5B9E\u4F8B\uFF0C\u4F8B\u5982context.props\u53EF\u4EE5\u83B7\u53D6\u8BE5\u7EC4\u4EF6\u76F8\u5173\u5C5E\u6027\n * 3.\u4E8B\u4EF6\u5BF9\u8C61event\uFF0C\u5728doAction\u4E4B\u540E\u6267\u884Cevent.stopPropagation = true;\u53EF\u4EE5\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u6267\u884C\n*/\nconst myMsg = '\u6211\u662F\u81EA\u5B9A\u4E49JS';\ndoAction({\n actionType: 'toast',\n args: {\n msg: myMsg\n }\n});\n"
1214
+ }
1215
+ }
1216
+ // {
1217
+ // actionLabel: '广播',
1218
+ // actionType: 'broadcast',
1219
+ // description: '发送广播事件',
1220
+ // schema: {
1221
+ // type: 'wrapper',
1222
+ // className: 'p-none',
1223
+ // body: [
1224
+ // {
1225
+ // type: 'input-text',
1226
+ // name: 'eventName',
1227
+ // label: '广播标识',
1228
+ // mode: 'horizontal',
1229
+ // required: true,
1230
+ // description: '广播事件标识派发出去后,其他组件可以进行监听并作出响应'
1231
+ // },
1232
+ // {
1233
+ // type: 'input-text',
1234
+ // label: '广播名称',
1235
+ // name: 'eventLabel',
1236
+ // mode: 'horizontal',
1237
+ // required: true
1238
+ // },
1239
+ // {
1240
+ // type: 'textarea',
1241
+ // label: '描述',
1242
+ // name: 'description',
1243
+ // mode: 'horizontal',
1244
+ // required: true
1245
+ // }
1246
+ // ]
1247
+ // }
1248
+ // }
1249
+ ]
1250
+ }];
1251
+ };
1252
+ // 渲染组件选择配置项
1253
+ var renderCmptSelect = function (componentLabel, required, onChange) {
1254
+ return [{
1255
+ type: 'tree-select',
1256
+ name: 'componentId',
1257
+ label: componentLabel || i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"),
1258
+ showIcon: false,
1259
+ searchable: true,
1260
+ required: required,
1261
+ selfDisabledAffectChildren: false,
1262
+ size: 'lg',
1263
+ source: '${__cmptTreeSource}',
1264
+ mode: 'horizontal',
1265
+ autoFill: {
1266
+ __rendererLabel: '${label}',
1267
+ __rendererName: '${type}',
1268
+ __nodeId: '${id}',
1269
+ __nodeSchema: '${schema}'
1270
+ },
1271
+ onChange: function (value, oldVal, data, form) {
1272
+ return tslib.__awaiter(void 0, void 0, void 0, function () {
1273
+ return tslib.__generator(this, function (_a) {
1274
+ onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
1275
+ return [2 /*return*/];
1276
+ });
1277
+ });
1278
+ }
1279
+ }];
1280
+ };
1281
+ // 渲染组件特性动作配置项
1282
+ var renderCmptActionSelect = function (componentLabel, required, onChange) {
1283
+ return tslib.__spreadArray(tslib.__spreadArray([], renderCmptSelect(componentLabel || i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"), true, function (value, oldVal, data, form) {
1284
+ return tslib.__awaiter(void 0, void 0, void 0, function () {
1285
+ var rendererType, dataSchema, dataSchemaIns, variables;
1286
+ var _a, _b;
1287
+ return tslib.__generator(this, function (_c) {
1288
+ switch (_c.label) {
1289
+ case 0:
1290
+ rendererType = form.data.__rendererName;
1291
+ if (!form.data.__nodeId) return [3 /*break*/, 2];
1292
+ return [4 /*yield*/, (_b = (_a = form.data).getContextSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, form.data.__nodeId, true)];
1293
+ case 1:
1294
+ dataSchema = _c.sent();
1295
+ dataSchemaIns = new amisCore.DataSchema(dataSchema || []);
1296
+ variables = (dataSchemaIns === null || dataSchemaIns === void 0 ? void 0 : dataSchemaIns.getDataPropsAsOptions()) || [];
1297
+ form.setValueByName('__cmptDataSchema', dataSchema);
1298
+ form.setValueByName('__cmptVariables', variables); // 组件上下文(不含父级)
1299
+ form.setValueByName('__cmptVariablesWithSys', tslib.__spreadArray([
1300
+ // 组件上下文+页面+系统
1301
+ {
1302
+ label: "".concat(form.data.__rendererLabel, "\u53D8\u91CF"),
1303
+ children: variables
1304
+ }], form.data.rawVariables.filter(function (item) {
1305
+ return [i18nRuntime.i18n("cc6aeb073ebc3cb29734a49164f8964c"), i18nRuntime.i18n("979a50681e278dcc0be18f68459e8217")].includes(item.label);
1306
+ }), true));
1307
+ if (form.data.actionType === 'setValue') {
1308
+ // todo:这里会闪一下,需要从amis查下问题
1309
+ form.setValueByName('args.value', []);
1310
+ form.setValueByName('args.__comboType', undefined);
1311
+ form.setValueByName('args.__valueInput', undefined);
1312
+ form.setValueByName('args.__containerType', undefined);
1313
+ if (SELECT_PROPS_CONTAINER.includes(rendererType)) {
1314
+ form.setValueByName('__setValueDs', variables.filter(function (item) {
1315
+ return item.value !== '$$id';
1316
+ }));
1317
+ } else {
1318
+ form.setValueByName('__setValueDs', []);
1319
+ }
1320
+ }
1321
+ _c.label = 2;
1322
+ case 2:
1323
+ form.setValueByName('groupType', '');
1324
+ onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
1325
+ return [2 /*return*/];
1326
+ }
1327
+ });
1328
+ });
1329
+ }), true), [{
1330
+ asFormItem: true,
1331
+ label: i18nRuntime.i18n("8deee3cdecdf06a05d22fcacc7031492"),
1332
+ name: 'groupType',
1333
+ mode: 'horizontal',
1334
+ required: true,
1335
+ visibleOn: 'data.actionType === "component"',
1336
+ component: compActionSelect["default"],
1337
+ description: '${__cmptActionDesc}'
1338
+ }], false);
1339
+ };
56
1340
  // 动作配置项schema map
57
1341
  var COMMON_ACTION_SCHEMA_MAP = {
58
1342
  setValue: {
@@ -340,94 +1624,6 @@ var getPropOfAcion = function (action, propName, actionTree, pluginActions, comm
340
1624
  }
341
1625
  return prop;
342
1626
  };
343
- // 渲染组件选择配置项
344
- var renderCmptSelect = function (componentLabel, required, onChange) {
345
- return [{
346
- type: 'tree-select',
347
- name: 'componentId',
348
- label: componentLabel || i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"),
349
- showIcon: false,
350
- searchable: true,
351
- required: required,
352
- selfDisabledAffectChildren: false,
353
- size: 'lg',
354
- source: '${__cmptTreeSource}',
355
- mode: 'horizontal',
356
- autoFill: {
357
- __rendererLabel: '${label}',
358
- __rendererName: '${type}',
359
- __nodeId: '${id}',
360
- __nodeSchema: '${schema}'
361
- },
362
- onChange: function (value, oldVal, data, form) {
363
- return tslib.__awaiter(void 0, void 0, void 0, function () {
364
- return tslib.__generator(this, function (_a) {
365
- onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
366
- return [2 /*return*/];
367
- });
368
- });
369
- }
370
- }];
371
- };
372
- // 渲染组件特性动作配置项
373
- var renderCmptActionSelect = function (componentLabel, required, onChange) {
374
- return tslib.__spreadArray(tslib.__spreadArray([], renderCmptSelect(componentLabel || i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"), true, function (value, oldVal, data, form) {
375
- return tslib.__awaiter(void 0, void 0, void 0, function () {
376
- var rendererType, dataSchema, dataSchemaIns, variables;
377
- var _a, _b;
378
- return tslib.__generator(this, function (_c) {
379
- switch (_c.label) {
380
- case 0:
381
- rendererType = form.data.__rendererName;
382
- if (!form.data.__nodeId) return [3 /*break*/, 2];
383
- return [4 /*yield*/, (_b = (_a = form.data).getContextSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, form.data.__nodeId, true)];
384
- case 1:
385
- dataSchema = _c.sent();
386
- dataSchemaIns = new amisCore.DataSchema(dataSchema || []);
387
- variables = (dataSchemaIns === null || dataSchemaIns === void 0 ? void 0 : dataSchemaIns.getDataPropsAsOptions()) || [];
388
- form.setValueByName('__cmptDataSchema', dataSchema);
389
- form.setValueByName('__cmptVariables', variables); // 组件上下文(不含父级)
390
- form.setValueByName('__cmptVariablesWithSys', tslib.__spreadArray([
391
- // 组件上下文+页面+系统
392
- {
393
- label: "".concat(form.data.__rendererLabel, "\u53D8\u91CF"),
394
- children: variables
395
- }], form.data.rawVariables.filter(function (item) {
396
- return [i18nRuntime.i18n("cc6aeb073ebc3cb29734a49164f8964c"), i18nRuntime.i18n("979a50681e278dcc0be18f68459e8217")].includes(item.label);
397
- }), true));
398
- if (form.data.actionType === 'setValue') {
399
- // todo:这里会闪一下,需要从amis查下问题
400
- form.setValueByName('args.value', []);
401
- form.setValueByName('args.__comboType', undefined);
402
- form.setValueByName('args.__valueInput', undefined);
403
- form.setValueByName('args.__containerType', undefined);
404
- if (SELECT_PROPS_CONTAINER.includes(rendererType)) {
405
- form.setValueByName('__setValueDs', variables.filter(function (item) {
406
- return item.value !== '$$id';
407
- }));
408
- } else {
409
- form.setValueByName('__setValueDs', []);
410
- }
411
- }
412
- _c.label = 2;
413
- case 2:
414
- form.setValueByName('groupType', '');
415
- onChange === null || onChange === void 0 ? void 0 : onChange(value, oldVal, data, form);
416
- return [2 /*return*/];
417
- }
418
- });
419
- });
420
- }), true), [{
421
- asFormItem: true,
422
- label: i18nRuntime.i18n("8deee3cdecdf06a05d22fcacc7031492"),
423
- name: 'groupType',
424
- mode: 'horizontal',
425
- required: true,
426
- visibleOn: 'data.actionType === "component"',
427
- component: compActionSelect["default"],
428
- description: '${__cmptActionDesc}'
429
- }], false);
430
- };
431
1627
  var getOldActionSchema = function (manager, context) {
432
1628
  var isInDialog = /(?:\/|^)dialog\/.+$/.test(context.path);
433
1629
  return {
@@ -743,7 +1939,7 @@ var getEventControlConfig = function (manager, context) {
743
1939
  // 通用动作配置
744
1940
  var commonActions = (_b = (_a = manager === null || manager === void 0 ? void 0 : manager.config.actionOptions) === null || _a === void 0 ? void 0 : _a.customActionGetter) === null || _b === void 0 ? void 0 : _b.call(_a, manager);
745
1941
  // 动作树
746
- var actionTree = ((_c = manager === null || manager === void 0 ? void 0 : manager.config.actionOptions) === null || _c === void 0 ? void 0 : _c.actionTreeGetter) ? (_d = manager === null || manager === void 0 ? void 0 : manager.config.actionOptions) === null || _d === void 0 ? void 0 : _d.actionTreeGetter(actions["default"](manager)) : actions["default"](manager);
1942
+ var actionTree = ((_c = manager === null || manager === void 0 ? void 0 : manager.config.actionOptions) === null || _c === void 0 ? void 0 : _c.actionTreeGetter) ? (_d = manager === null || manager === void 0 ? void 0 : manager.config.actionOptions) === null || _d === void 0 ? void 0 : _d.actionTreeGetter(ACTION_TYPE_TREE(manager)) : ACTION_TYPE_TREE(manager);
747
1943
  var allComponents = amisCore.mapTree((_f = (_e = manager === null || manager === void 0 ? void 0 : manager.store) === null || _e === void 0 ? void 0 : _e.outline) !== null && _f !== void 0 ? _f : [], function (item) {
748
1944
  var _a, _b, _c, _d;
749
1945
  var schema = (_a = manager === null || manager === void 0 ? void 0 : manager.store) === null || _a === void 0 ? void 0 : _a.getSchema(item.id);
@@ -1048,6 +2244,7 @@ var getEventControlConfig = function (manager, context) {
1048
2244
  };
1049
2245
  };
1050
2246
 
2247
+ exports.ACTION_TYPE_TREE = ACTION_TYPE_TREE;
1051
2248
  exports.COMMON_ACTION_SCHEMA_MAP = COMMON_ACTION_SCHEMA_MAP;
1052
2249
  exports.DATA_CONTAINER = DATA_CONTAINER;
1053
2250
  exports.FORMITEM_CMPTS = FORMITEM_CMPTS;