amis-editor 6.9.0-rc.1 → 6.9.0-rc.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (988) hide show
  1. package/esm/builder/ApiDSBuilder.js +2 -3
  2. package/esm/builder/DSBuilder.js +2 -3
  3. package/esm/builder/DSBuilderManager.js +2 -3
  4. package/esm/builder/constants.js +2 -3
  5. package/esm/builder/utils.js +2 -3
  6. package/esm/component/BaseControl.js +7 -5
  7. package/esm/component/InputComponentName.js +2 -3
  8. package/esm/component/ModalSettingPanel.js +2 -3
  9. package/esm/component/TableViewEditor.js +2 -3
  10. package/esm/icons/btn/btn-group.svg.js +2 -3
  11. package/esm/icons/btn/btn-select.svg.js +2 -3
  12. package/esm/icons/btn/btn-toolbar.svg.js +2 -3
  13. package/esm/icons/btn/button.svg.js +2 -3
  14. package/esm/icons/btn/dropdown-btn.svg.js +2 -3
  15. package/esm/icons/container/anchor-nav.svg.js +2 -3
  16. package/esm/icons/container/collapse.svg.js +2 -3
  17. package/esm/icons/container/container.svg.js +2 -3
  18. package/esm/icons/container/flex-container.svg.js +2 -3
  19. package/esm/icons/container/form-group.svg.js +2 -3
  20. package/esm/icons/container/grid.svg.js +2 -3
  21. package/esm/icons/container/iframe.svg.js +2 -3
  22. package/esm/icons/container/panel.svg.js +2 -3
  23. package/esm/icons/container/switch-container.svg.js +2 -3
  24. package/esm/icons/container/table-view.svg.js +2 -3
  25. package/esm/icons/container/tabs.svg.js +2 -3
  26. package/esm/icons/container/tooltip-wrapper.svg.js +2 -3
  27. package/esm/icons/container/web-component.svg.js +2 -3
  28. package/esm/icons/crud/column-add.svg.js +2 -3
  29. package/esm/icons/crud/column-delete.svg.js +2 -3
  30. package/esm/icons/crud/column-setting.svg.js +2 -3
  31. package/esm/icons/crud/share-link.svg.js +2 -3
  32. package/esm/icons/display/aBaseline.svg.js +2 -3
  33. package/esm/icons/display/aCenter.svg.js +2 -3
  34. package/esm/icons/display/aFlexEnd.svg.js +2 -3
  35. package/esm/icons/display/aFlexStart.svg.js +2 -3
  36. package/esm/icons/display/aStretch.svg.js +2 -3
  37. package/esm/icons/display/block.svg.js +2 -3
  38. package/esm/icons/display/dcolumn.svg.js +2 -3
  39. package/esm/icons/display/dcolumnReverse.svg.js +2 -3
  40. package/esm/icons/display/drow.svg.js +2 -3
  41. package/esm/icons/display/drowReverse.svg.js +2 -3
  42. package/esm/icons/display/flex.svg.js +2 -3
  43. package/esm/icons/display/inline-block.svg.js +2 -3
  44. package/esm/icons/display/inline.svg.js +2 -3
  45. package/esm/icons/display/jCenter.svg.js +2 -3
  46. package/esm/icons/display/jFlexEnd.svg.js +2 -3
  47. package/esm/icons/display/jFlexStart.svg.js +2 -3
  48. package/esm/icons/display/jSpaceAround.svg.js +2 -3
  49. package/esm/icons/display/jSpaceBetween.svg.js +2 -3
  50. package/esm/icons/feat/audio.svg.js +2 -3
  51. package/esm/icons/feat/custom.svg.js +2 -3
  52. package/esm/icons/feat/each.svg.js +2 -3
  53. package/esm/icons/feat/form.svg.js +2 -3
  54. package/esm/icons/feat/nav.svg.js +2 -3
  55. package/esm/icons/feat/qrcode.svg.js +2 -3
  56. package/esm/icons/feat/service.svg.js +2 -3
  57. package/esm/icons/feat/table.svg.js +2 -3
  58. package/esm/icons/feat/tasks.svg.js +2 -3
  59. package/esm/icons/feat/video.svg.js +2 -3
  60. package/esm/icons/feat/wizard.svg.js +2 -3
  61. package/esm/icons/form/chained-select.svg.js +2 -3
  62. package/esm/icons/form/checkbox.svg.js +2 -3
  63. package/esm/icons/form/checkboxes.svg.js +2 -3
  64. package/esm/icons/form/combo.svg.js +2 -3
  65. package/esm/icons/form/condition-builder.svg.js +2 -3
  66. package/esm/icons/form/diff-editor.svg.js +2 -3
  67. package/esm/icons/form/editor.svg.js +2 -3
  68. package/esm/icons/form/formula.svg.js +2 -3
  69. package/esm/icons/form/hidden.svg.js +2 -3
  70. package/esm/icons/form/input-city.svg.js +2 -3
  71. package/esm/icons/form/input-color.svg.js +2 -3
  72. package/esm/icons/form/input-date-range.svg.js +2 -3
  73. package/esm/icons/form/input-date.svg.js +2 -3
  74. package/esm/icons/form/input-datetime.svg.js +2 -3
  75. package/esm/icons/form/input-email.svg.js +2 -3
  76. package/esm/icons/form/input-excel.svg.js +2 -3
  77. package/esm/icons/form/input-file.svg.js +2 -3
  78. package/esm/icons/form/input-group.svg.js +2 -3
  79. package/esm/icons/form/input-image.svg.js +2 -3
  80. package/esm/icons/form/input-kv.svg.js +2 -3
  81. package/esm/icons/form/input-month-range.svg.js +2 -3
  82. package/esm/icons/form/input-number.svg.js +2 -3
  83. package/esm/icons/form/input-password.svg.js +2 -3
  84. package/esm/icons/form/input-quarter-range.svg.js +2 -3
  85. package/esm/icons/form/input-range.svg.js +2 -3
  86. package/esm/icons/form/input-rating.svg.js +2 -3
  87. package/esm/icons/form/input-repeat.svg.js +2 -3
  88. package/esm/icons/form/input-rich-text.svg.js +2 -3
  89. package/esm/icons/form/input-signature.svg.js +2 -3
  90. package/esm/icons/form/input-tag.svg.js +2 -3
  91. package/esm/icons/form/input-text.svg.js +2 -3
  92. package/esm/icons/form/input-time-range.svg.js +2 -3
  93. package/esm/icons/form/input-time.svg.js +2 -3
  94. package/esm/icons/form/input-tree.svg.js +2 -3
  95. package/esm/icons/form/input-url.svg.js +2 -3
  96. package/esm/icons/form/input-year.svg.js +2 -3
  97. package/esm/icons/form/inputArray.svg.js +2 -3
  98. package/esm/icons/form/list-select.svg.js +2 -3
  99. package/esm/icons/form/location-picker.svg.js +2 -3
  100. package/esm/icons/form/matrix-checkboxes.svg.js +2 -3
  101. package/esm/icons/form/month.svg.js +2 -3
  102. package/esm/icons/form/nested-select.svg.js +2 -3
  103. package/esm/icons/form/picker.svg.js +2 -3
  104. package/esm/icons/form/quarter.svg.js +2 -3
  105. package/esm/icons/form/radios.svg.js +2 -3
  106. package/esm/icons/form/select.svg.js +2 -3
  107. package/esm/icons/form/static.svg.js +2 -3
  108. package/esm/icons/form/sub-form.svg.js +2 -3
  109. package/esm/icons/form/switch.svg.js +2 -3
  110. package/esm/icons/form/tabs-transfer.svg.js +2 -3
  111. package/esm/icons/form/textarea.svg.js +2 -3
  112. package/esm/icons/form/transfer.svg.js +2 -3
  113. package/esm/icons/form/tree-select.svg.js +2 -3
  114. package/esm/icons/form/uuid.svg.js +2 -3
  115. package/esm/icons/index.js +2 -3
  116. package/esm/icons/layout/layout-1with2.svg.js +2 -3
  117. package/esm/icons/layout/layout-2cols.svg.js +2 -3
  118. package/esm/icons/layout/layout-2row.svg.js +2 -3
  119. package/esm/icons/layout/layout-2with1.svg.js +2 -3
  120. package/esm/icons/layout/layout-3cols.svg.js +2 -3
  121. package/esm/icons/layout/layout-3row.svg.js +2 -3
  122. package/esm/icons/layout/layout-absolute.svg.js +2 -3
  123. package/esm/icons/layout/layout-fixed-top.svg.js +2 -3
  124. package/esm/icons/layout/layout-fixed.svg.js +2 -3
  125. package/esm/icons/layout/layout-free-container.svg.js +2 -3
  126. package/esm/icons/layout/layout-full.svg.js +2 -3
  127. package/esm/icons/layout/layout1-2.svg.js +2 -3
  128. package/esm/icons/layout/layout2-1.svg.js +2 -3
  129. package/esm/icons/layout/layout3-1.svg.js +2 -3
  130. package/esm/icons/layout/layout3-2.svg.js +2 -3
  131. package/esm/icons/other/_fx.svg.js +2 -3
  132. package/esm/icons/other/divider.svg.js +2 -3
  133. package/esm/icons/other/fx.svg.js +2 -3
  134. package/esm/icons/other/modal-setting.svg.js +2 -3
  135. package/esm/icons/other/property-sheet.svg.js +2 -3
  136. package/esm/icons/other/tooltip.svg.js +2 -3
  137. package/esm/icons/show/URL.svg.js +2 -3
  138. package/esm/icons/show/avatar.svg.js +2 -3
  139. package/esm/icons/show/breadcrumb.svg.js +2 -3
  140. package/esm/icons/show/card.svg.js +2 -3
  141. package/esm/icons/show/cards.svg.js +2 -3
  142. package/esm/icons/show/carousel.svg.js +2 -3
  143. package/esm/icons/show/chart.svg.js +2 -3
  144. package/esm/icons/show/code.svg.js +2 -3
  145. package/esm/icons/show/date.svg.js +2 -3
  146. package/esm/icons/show/datetime.svg.js +2 -3
  147. package/esm/icons/show/image.svg.js +2 -3
  148. package/esm/icons/show/images.svg.js +2 -3
  149. package/esm/icons/show/json-view.svg.js +2 -3
  150. package/esm/icons/show/list.svg.js +2 -3
  151. package/esm/icons/show/log.svg.js +2 -3
  152. package/esm/icons/show/mapping.svg.js +2 -3
  153. package/esm/icons/show/markdown.svg.js +2 -3
  154. package/esm/icons/show/plain.svg.js +2 -3
  155. package/esm/icons/show/progress.svg.js +2 -3
  156. package/esm/icons/show/sparkline.svg.js +2 -3
  157. package/esm/icons/show/status.svg.js +2 -3
  158. package/esm/icons/show/steps.svg.js +2 -3
  159. package/esm/icons/show/time.svg.js +2 -3
  160. package/esm/icons/theme/css.svg.js +2 -3
  161. package/esm/index.d.ts +4 -1
  162. package/esm/index.js +5 -3
  163. package/esm/locale/en-US.js +2 -3
  164. package/esm/locale/zh-CN.js +2 -3
  165. package/esm/plugin/Alert.js +2 -3
  166. package/esm/plugin/AnchorNav.js +4 -3
  167. package/esm/plugin/Audio.js +2 -3
  168. package/esm/plugin/Avatar.js +2 -3
  169. package/esm/plugin/Breadcrumb.js +2 -3
  170. package/esm/plugin/Button.js +3 -45
  171. package/esm/plugin/ButtonGroup.js +2 -3
  172. package/esm/plugin/CRUD.js +6 -7
  173. package/esm/plugin/CRUD2/BaseCRUD.d.ts +1 -1
  174. package/esm/plugin/CRUD2/BaseCRUD.js +14 -10
  175. package/esm/plugin/CRUD2/CRUDTable.js +2 -3
  176. package/esm/plugin/CRUD2/constants.js +2 -3
  177. package/esm/plugin/CRUD2/utils.js +2 -3
  178. package/esm/plugin/Calendar.d.ts +2 -7
  179. package/esm/plugin/Calendar.js +7 -8
  180. package/esm/plugin/Card.js +2 -3
  181. package/esm/plugin/Card2.js +2 -3
  182. package/esm/plugin/Cards.js +15 -12
  183. package/esm/plugin/Carousel.js +2 -3
  184. package/esm/plugin/Chart.js +6 -9
  185. package/esm/plugin/CodeView.js +2 -3
  186. package/esm/plugin/Collapse.d.ts +1 -2
  187. package/esm/plugin/Collapse.js +14 -7
  188. package/esm/plugin/CollapseGroup.d.ts +2 -0
  189. package/esm/plugin/CollapseGroup.js +16 -3
  190. package/esm/plugin/ColumnToggler.js +2 -3
  191. package/esm/plugin/Container.js +2 -3
  192. package/esm/plugin/Custom.js +2 -3
  193. package/esm/plugin/CustomRegion.js +2 -3
  194. package/esm/plugin/Date.js +2 -3
  195. package/esm/plugin/Datetime.js +2 -3
  196. package/esm/plugin/Dialog.d.ts +1 -5
  197. package/esm/plugin/Dialog.js +9 -7
  198. package/esm/plugin/Divider.js +2 -3
  199. package/esm/plugin/Drawer.d.ts +1 -5
  200. package/esm/plugin/Drawer.js +10 -7
  201. package/esm/plugin/DropDownButton.js +28 -5
  202. package/esm/plugin/Each.js +15 -12
  203. package/esm/plugin/Flex.js +2 -3
  204. package/esm/plugin/Form/ButtonGroupSelect.d.ts +1 -3
  205. package/esm/plugin/Form/ButtonGroupSelect.js +8 -9
  206. package/esm/plugin/Form/ButtonToolbar.js +2 -3
  207. package/esm/plugin/Form/ChainedSelect.d.ts +1 -2
  208. package/esm/plugin/Form/ChainedSelect.js +28 -18
  209. package/esm/plugin/Form/Checkbox.d.ts +2 -3
  210. package/esm/plugin/Form/Checkbox.js +58 -14
  211. package/esm/plugin/Form/Checkboxes.d.ts +1 -3
  212. package/esm/plugin/Form/Checkboxes.js +57 -13
  213. package/esm/plugin/Form/CodeEditor.d.ts +1 -2
  214. package/esm/plugin/Form/CodeEditor.js +8 -9
  215. package/esm/plugin/Form/Combo.js +8 -9
  216. package/esm/plugin/Form/ConditionBuilder.js +2 -3
  217. package/esm/plugin/Form/Control.js +2 -3
  218. package/esm/plugin/Form/DiffEditor.js +8 -9
  219. package/esm/plugin/Form/FieldSet.js +2 -3
  220. package/esm/plugin/Form/Form.d.ts +2 -2
  221. package/esm/plugin/Form/Form.js +19 -12
  222. package/esm/plugin/Form/Formula.js +2 -3
  223. package/esm/plugin/Form/Group.js +2 -3
  224. package/esm/plugin/Form/Hidden.js +2 -3
  225. package/esm/plugin/Form/InputArray.js +2 -3
  226. package/esm/plugin/Form/InputCity.d.ts +1 -3
  227. package/esm/plugin/Form/InputCity.js +7 -8
  228. package/esm/plugin/Form/InputColor.js +2 -3
  229. package/esm/plugin/Form/InputDate.d.ts +1 -2
  230. package/esm/plugin/Form/InputDate.js +9 -8
  231. package/esm/plugin/Form/InputDateRange.d.ts +1 -2
  232. package/esm/plugin/Form/InputDateRange.js +11 -10
  233. package/esm/plugin/Form/InputDateTime.js +2 -3
  234. package/esm/plugin/Form/InputDateTimeRange.js +2 -3
  235. package/esm/plugin/Form/InputEmail.js +2 -3
  236. package/esm/plugin/Form/InputExcel.d.ts +4 -2
  237. package/esm/plugin/Form/InputExcel.js +7 -7
  238. package/esm/plugin/Form/InputFile.d.ts +1 -2
  239. package/esm/plugin/Form/InputFile.js +6 -7
  240. package/esm/plugin/Form/InputGroup.js +2 -3
  241. package/esm/plugin/Form/InputImage.js +6 -7
  242. package/esm/plugin/Form/InputKV.d.ts +1 -2
  243. package/esm/plugin/Form/InputKV.js +7 -7
  244. package/esm/plugin/Form/InputMonth.js +2 -3
  245. package/esm/plugin/Form/InputMonthRange.js +2 -3
  246. package/esm/plugin/Form/InputNumber.d.ts +2 -2
  247. package/esm/plugin/Form/InputNumber.js +30 -16
  248. package/esm/plugin/Form/InputPassword.js +2 -3
  249. package/esm/plugin/Form/InputQuarter.js +2 -3
  250. package/esm/plugin/Form/InputQuarterRange.js +2 -3
  251. package/esm/plugin/Form/InputRange.js +7 -8
  252. package/esm/plugin/Form/InputRating.d.ts +1 -3
  253. package/esm/plugin/Form/InputRating.js +7 -8
  254. package/esm/plugin/Form/InputRepeat.js +2 -3
  255. package/esm/plugin/Form/InputRichText.js +2 -3
  256. package/esm/plugin/Form/InputSignature.js +2 -3
  257. package/esm/plugin/Form/InputSubForm.js +2 -3
  258. package/esm/plugin/Form/InputTable.js +7 -14
  259. package/esm/plugin/Form/InputTag.d.ts +1 -3
  260. package/esm/plugin/Form/InputTag.js +7 -7
  261. package/esm/plugin/Form/InputText.d.ts +2 -7
  262. package/esm/plugin/Form/InputText.js +8 -9
  263. package/esm/plugin/Form/InputTime.js +2 -3
  264. package/esm/plugin/Form/InputTimeRange.js +2 -3
  265. package/esm/plugin/Form/InputTree.d.ts +1 -2
  266. package/esm/plugin/Form/InputTree.js +13 -12
  267. package/esm/plugin/Form/InputURL.js +2 -3
  268. package/esm/plugin/Form/InputYear.js +2 -3
  269. package/esm/plugin/Form/InputYearRange.js +2 -3
  270. package/esm/plugin/Form/Item.js +7 -6
  271. package/esm/plugin/Form/ListSelect.d.ts +1 -2
  272. package/esm/plugin/Form/ListSelect.js +8 -8
  273. package/esm/plugin/Form/LocationPicker.d.ts +1 -3
  274. package/esm/plugin/Form/LocationPicker.js +7 -8
  275. package/esm/plugin/Form/MatrixCheckboxes.js +8 -9
  276. package/esm/plugin/Form/NestedSelect.d.ts +1 -2
  277. package/esm/plugin/Form/NestedSelect.js +29 -24
  278. package/esm/plugin/Form/Picker.js +2 -3
  279. package/esm/plugin/Form/Radios.d.ts +1 -3
  280. package/esm/plugin/Form/Radios.js +73 -13
  281. package/esm/plugin/Form/Select.js +22 -12
  282. package/esm/plugin/Form/Static.js +2 -3
  283. package/esm/plugin/Form/Switch.d.ts +1 -2
  284. package/esm/plugin/Form/Switch.js +8 -9
  285. package/esm/plugin/Form/TabsTransfer.d.ts +1 -3
  286. package/esm/plugin/Form/TabsTransfer.js +12 -11
  287. package/esm/plugin/Form/Textarea.d.ts +1 -2
  288. package/esm/plugin/Form/Textarea.js +7 -8
  289. package/esm/plugin/Form/Transfer.d.ts +1 -3
  290. package/esm/plugin/Form/Transfer.js +22 -13
  291. package/esm/plugin/Form/TransferPicker.d.ts +2 -0
  292. package/esm/plugin/Form/TransferPicker.js +23 -4
  293. package/esm/plugin/Form/TreeSelect.d.ts +1 -2
  294. package/esm/plugin/Form/TreeSelect.js +8 -9
  295. package/esm/plugin/Form/UUID.js +2 -3
  296. package/esm/plugin/Grid.js +2 -3
  297. package/esm/plugin/HBox.js +2 -3
  298. package/esm/plugin/IFrame.js +2 -3
  299. package/esm/plugin/Icon.js +2 -3
  300. package/esm/plugin/Image.js +34 -31
  301. package/esm/plugin/Images.js +2 -3
  302. package/esm/plugin/Json.js +2 -3
  303. package/esm/plugin/Layout/FlexPluginBase.js +2 -3
  304. package/esm/plugin/Layout/Layout_fixed.js +2 -3
  305. package/esm/plugin/Layout/Layout_free_container.js +2 -3
  306. package/esm/plugin/Layout/Layout_sorption_container.js +2 -3
  307. package/esm/plugin/Link.js +2 -3
  308. package/esm/plugin/List.js +15 -12
  309. package/esm/plugin/List2.js +15 -12
  310. package/esm/plugin/ListItem.js +2 -3
  311. package/esm/plugin/Log.js +2 -3
  312. package/esm/plugin/Mapping.js +3 -3
  313. package/esm/plugin/Markdown.js +2 -3
  314. package/esm/plugin/Nav.js +6 -7
  315. package/esm/plugin/OfficeViewer.js +2 -3
  316. package/esm/plugin/Operation.js +2 -3
  317. package/esm/plugin/Others/Action.js +2 -3
  318. package/esm/plugin/Others/TableCell.js +2 -3
  319. package/esm/plugin/Page.js +42 -11
  320. package/esm/plugin/Pagination.js +2 -3
  321. package/esm/plugin/Panel.js +5 -3
  322. package/esm/plugin/PdfViewer.js +2 -3
  323. package/esm/plugin/Plain.js +2 -3
  324. package/esm/plugin/Progress.d.ts +1 -2
  325. package/esm/plugin/Progress.js +6 -6
  326. package/esm/plugin/Property.js +2 -3
  327. package/esm/plugin/QRCode.js +2 -3
  328. package/esm/plugin/Reset.js +2 -3
  329. package/esm/plugin/SearchBox.js +6 -7
  330. package/esm/plugin/Service.js +8 -9
  331. package/esm/plugin/Sparkline.js +2 -3
  332. package/esm/plugin/Status.js +2 -3
  333. package/esm/plugin/Steps.js +2 -3
  334. package/esm/plugin/Submit.js +2 -3
  335. package/esm/plugin/SwitchContainer.js +2 -3
  336. package/esm/plugin/Table.d.ts +2 -4
  337. package/esm/plugin/Table.js +6 -7
  338. package/esm/plugin/Table2.js +6 -7
  339. package/esm/plugin/TableCell2.js +2 -3
  340. package/esm/plugin/TableView.js +2 -3
  341. package/esm/plugin/Tabs.d.ts +15 -2
  342. package/esm/plugin/Tabs.js +93 -28
  343. package/esm/plugin/Tag.js +2 -3
  344. package/esm/plugin/Tasks.js +2 -3
  345. package/esm/plugin/Time.js +2 -3
  346. package/esm/plugin/Timeline.js +2 -3
  347. package/esm/plugin/TooltipWrapper.js +2 -3
  348. package/esm/plugin/Tpl.js +2 -3
  349. package/esm/plugin/Video.js +2 -3
  350. package/esm/plugin/WebComponent.js +2 -3
  351. package/esm/plugin/Wizard.d.ts +1 -3
  352. package/esm/plugin/Wizard.js +33 -16
  353. package/esm/plugin/Wrapper.js +2 -3
  354. package/esm/renderer/APIAdaptorControl.js +2 -3
  355. package/esm/renderer/APIControl.js +2 -3
  356. package/esm/renderer/BadgeControl.js +2 -3
  357. package/esm/renderer/ButtonGroupControl.js +2 -3
  358. package/esm/renderer/ConditionFormulaControl.js +2 -3
  359. package/esm/renderer/DataBindingControl.js +2 -3
  360. package/esm/renderer/DataMappingControl.js +2 -3
  361. package/esm/renderer/DataPickerControl.js +2 -3
  362. package/esm/renderer/DateShortCutControl.js +2 -3
  363. package/esm/renderer/ExpressionFormulaControl.js +2 -3
  364. package/esm/renderer/FeatureControl.js +2 -3
  365. package/esm/renderer/FieldSetting.js +2 -3
  366. package/esm/renderer/FlexSettingControl.js +2 -3
  367. package/esm/renderer/FormulaControl.js +2 -3
  368. package/esm/renderer/FunctionEditorControl.js +2 -3
  369. package/esm/renderer/GoConfigControl.js +2 -3
  370. package/esm/renderer/InputRangeValueControl.js +2 -3
  371. package/esm/renderer/KeyValueMapControl.js +2 -3
  372. package/esm/renderer/ListItemControl.js +2 -3
  373. package/esm/renderer/MapSourceControl.js +2 -3
  374. package/esm/renderer/NavBadgeControl.js +2 -3
  375. package/esm/renderer/NavDefaultActive.js +2 -3
  376. package/esm/renderer/NavSourceControl.js +2 -3
  377. package/esm/renderer/OptionControl.js +2 -3
  378. package/esm/renderer/RangePartsControl.js +2 -3
  379. package/esm/renderer/StatusControl.js +2 -3
  380. package/esm/renderer/SwitchMoreControl.js +2 -3
  381. package/esm/renderer/TableColumnWidthControl.js +2 -3
  382. package/esm/renderer/TimelineItemControl.js +2 -3
  383. package/esm/renderer/TplFormulaControl.js +2 -3
  384. package/esm/renderer/TransferTableControl.js +2 -3
  385. package/esm/renderer/TreeOptionControl.js +2 -3
  386. package/esm/renderer/ValidateApiControl.js +2 -3
  387. package/esm/renderer/ValidationControl.js +2 -3
  388. package/esm/renderer/ValidationItem.js +2 -3
  389. package/esm/renderer/ValueFormatControl.js +2 -3
  390. package/esm/renderer/crud2-control/AddColumnModal.js +2 -3
  391. package/esm/renderer/crud2-control/CRUDColumnControl.js +2 -3
  392. package/esm/renderer/crud2-control/CRUDFiltersControl.js +27 -10
  393. package/esm/renderer/crud2-control/CRUDToolbarControl.js +2 -3
  394. package/esm/renderer/event-control/DialogActionPanel.js +2 -3
  395. package/esm/renderer/event-control/action-config-dialog.d.ts +1 -0
  396. package/esm/renderer/event-control/action-config-dialog.js +56 -22
  397. package/esm/renderer/event-control/action-config-panel.js +8 -8
  398. package/esm/renderer/event-control/actionsPanelManager.d.ts +24 -0
  399. package/esm/renderer/event-control/actionsPanelManager.js +89 -0
  400. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/clear.d.ts +1 -0
  401. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/clear.js +27 -0
  402. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/component.d.ts +1 -0
  403. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/component.js +19 -0
  404. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/helper.d.ts +76 -0
  405. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/helper.js +136 -0
  406. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/index.d.ts +11 -0
  407. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reload.d.ts +1 -0
  408. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reload.js +145 -0
  409. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reset.d.ts +1 -0
  410. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reset.js +27 -0
  411. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.d.ts +2 -0
  412. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.js +383 -0
  413. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.d.ts +1 -0
  414. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.js +55 -0
  415. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/submit.d.ts +1 -0
  416. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/submit.js +59 -0
  417. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/usability.d.ts +1 -0
  418. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/usability.js +86 -0
  419. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validate.d.ts +1 -0
  420. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validate.js +55 -0
  421. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validateFormItem.d.ts +1 -0
  422. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validateFormItem.js +51 -0
  423. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/visibility.d.ts +1 -0
  424. package/esm/renderer/event-control/actionsPanelPlugins/componentActionsPanel/visibility.js +86 -0
  425. package/esm/renderer/event-control/actionsPanelPlugins/index.d.ts +5 -0
  426. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/closeDialog.d.ts +1 -0
  427. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/closeDialog.js +14 -0
  428. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/index.d.ts +3 -0
  429. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/openDialog.d.ts +1 -0
  430. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/openDialog.js +104 -0
  431. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/toast.d.ts +1 -0
  432. package/esm/renderer/event-control/actionsPanelPlugins/modalActionsPanel/toast.js +110 -0
  433. package/esm/renderer/event-control/actionsPanelPlugins/otherActionsPanel/copy.d.ts +1 -0
  434. package/esm/renderer/event-control/actionsPanelPlugins/otherActionsPanel/copy.js +54 -0
  435. package/esm/renderer/event-control/actionsPanelPlugins/otherActionsPanel/custom.d.ts +1 -0
  436. package/esm/renderer/event-control/actionsPanelPlugins/otherActionsPanel/custom.js +37 -0
  437. package/esm/renderer/event-control/actionsPanelPlugins/otherActionsPanel/index.d.ts +2 -0
  438. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/goBack.d.ts +1 -0
  439. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/goBack.js +20 -0
  440. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/index.d.ts +3 -0
  441. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/refresh.d.ts +1 -0
  442. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/refresh.js +20 -0
  443. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/url.d.ts +1 -0
  444. package/esm/renderer/event-control/actionsPanelPlugins/pageActionsPanel/url.js +69 -0
  445. package/esm/renderer/event-control/actionsPanelPlugins/serverActionsPanel/ajax.d.ts +1 -0
  446. package/esm/renderer/event-control/actionsPanelPlugins/serverActionsPanel/ajax.js +87 -0
  447. package/esm/renderer/event-control/actionsPanelPlugins/serverActionsPanel/download.d.ts +1 -0
  448. package/esm/renderer/event-control/actionsPanelPlugins/serverActionsPanel/download.js +28 -0
  449. package/esm/renderer/event-control/actionsPanelPlugins/serverActionsPanel/index.d.ts +2 -0
  450. package/esm/renderer/event-control/comp-action-select.js +50 -62
  451. package/esm/renderer/event-control/constants.d.ts +4 -0
  452. package/esm/renderer/event-control/constants.js +32 -0
  453. package/esm/renderer/event-control/eventControlConfigHelper.d.ts +19 -0
  454. package/esm/renderer/event-control/eventControlConfigHelper.js +479 -0
  455. package/esm/renderer/event-control/helper.d.ts +10 -18
  456. package/esm/renderer/event-control/helper.js +94 -1906
  457. package/esm/renderer/event-control/index.d.ts +3 -0
  458. package/esm/renderer/event-control/index.js +164 -134
  459. package/esm/renderer/style-control/Background.js +2 -3
  460. package/esm/renderer/style-control/Border.js +2 -3
  461. package/esm/renderer/style-control/BoxModel.js +2 -3
  462. package/esm/renderer/style-control/BoxShadow.js +2 -3
  463. package/esm/renderer/style-control/ColCount.js +2 -3
  464. package/esm/renderer/style-control/ColSize.js +2 -3
  465. package/esm/renderer/style-control/Display.js +2 -3
  466. package/esm/renderer/style-control/FlexLayout.js +2 -3
  467. package/esm/renderer/style-control/Font.js +2 -3
  468. package/esm/renderer/style-control/InsetBoxModel.js +2 -3
  469. package/esm/renderer/style-control/LabelAlign.js +2 -3
  470. package/esm/renderer/style-control/SingleThemeCssCode.d.ts +16 -0
  471. package/esm/renderer/style-control/SingleThemeCssCode.js +2043 -0
  472. package/esm/renderer/style-control/ThemeCssCode.js +2 -3
  473. package/esm/renderer/style-control/font-family.js +2 -3
  474. package/esm/renderer/style-control/helper.d.ts +18 -4
  475. package/esm/renderer/style-control/helper.js +82 -41
  476. package/esm/renderer/style-control/transformation.js +2 -3
  477. package/esm/renderer/textarea-formula/FormulaPicker.js +2 -3
  478. package/esm/renderer/textarea-formula/TextareaFormulaControl.js +2 -3
  479. package/esm/renderer/textarea-formula/plugin.js +2 -3
  480. package/esm/tpl/api.js +2 -3
  481. package/esm/tpl/common.js +15 -3
  482. package/esm/tpl/horizontal.js +2 -3
  483. package/esm/tpl/layout.js +2 -3
  484. package/esm/tpl/options.js +2 -3
  485. package/esm/tpl/remark.js +2 -3
  486. package/esm/tpl/style.js +500 -10
  487. package/esm/tpl/validations.js +2 -3
  488. package/esm/util.js +2 -3
  489. package/esm/validator.d.ts +1 -0
  490. package/esm/validator.js +4 -3
  491. package/lib/builder/ApiDSBuilder.d.ts +8 -8
  492. package/lib/builder/ApiDSBuilder.js +2 -3
  493. package/lib/builder/DSBuilder.js +2 -3
  494. package/lib/builder/DSBuilderManager.js +2 -3
  495. package/lib/builder/constants.d.ts +1 -1
  496. package/lib/builder/constants.js +2 -3
  497. package/lib/builder/utils.js +2 -3
  498. package/lib/component/BaseControl.d.ts +1 -1
  499. package/lib/component/BaseControl.js +6 -4
  500. package/lib/component/InputComponentName.js +2 -3
  501. package/lib/component/ModalSettingPanel.js +2 -3
  502. package/lib/component/TableViewEditor.js +2 -3
  503. package/lib/icons/btn/btn-group.svg.js +2 -3
  504. package/lib/icons/btn/btn-select.svg.js +2 -3
  505. package/lib/icons/btn/btn-toolbar.svg.js +2 -3
  506. package/lib/icons/btn/button.svg.js +2 -3
  507. package/lib/icons/btn/dropdown-btn.svg.js +2 -3
  508. package/lib/icons/container/anchor-nav.svg.js +2 -3
  509. package/lib/icons/container/collapse.svg.js +2 -3
  510. package/lib/icons/container/container.svg.js +2 -3
  511. package/lib/icons/container/flex-container.svg.js +2 -3
  512. package/lib/icons/container/form-group.svg.js +2 -3
  513. package/lib/icons/container/grid.svg.js +2 -3
  514. package/lib/icons/container/iframe.svg.js +2 -3
  515. package/lib/icons/container/panel.svg.js +2 -3
  516. package/lib/icons/container/switch-container.svg.js +2 -3
  517. package/lib/icons/container/table-view.svg.js +2 -3
  518. package/lib/icons/container/tabs.svg.js +2 -3
  519. package/lib/icons/container/tooltip-wrapper.svg.js +2 -3
  520. package/lib/icons/container/web-component.svg.js +2 -3
  521. package/lib/icons/crud/column-add.svg.js +2 -3
  522. package/lib/icons/crud/column-delete.svg.js +2 -3
  523. package/lib/icons/crud/column-setting.svg.js +2 -3
  524. package/lib/icons/crud/share-link.svg.js +2 -3
  525. package/lib/icons/display/aBaseline.svg.js +2 -3
  526. package/lib/icons/display/aCenter.svg.js +2 -3
  527. package/lib/icons/display/aFlexEnd.svg.js +2 -3
  528. package/lib/icons/display/aFlexStart.svg.js +2 -3
  529. package/lib/icons/display/aStretch.svg.js +2 -3
  530. package/lib/icons/display/block.svg.js +2 -3
  531. package/lib/icons/display/dcolumn.svg.js +2 -3
  532. package/lib/icons/display/dcolumnReverse.svg.js +2 -3
  533. package/lib/icons/display/drow.svg.js +2 -3
  534. package/lib/icons/display/drowReverse.svg.js +2 -3
  535. package/lib/icons/display/flex.svg.js +2 -3
  536. package/lib/icons/display/inline-block.svg.js +2 -3
  537. package/lib/icons/display/inline.svg.js +2 -3
  538. package/lib/icons/display/jCenter.svg.js +2 -3
  539. package/lib/icons/display/jFlexEnd.svg.js +2 -3
  540. package/lib/icons/display/jFlexStart.svg.js +2 -3
  541. package/lib/icons/display/jSpaceAround.svg.js +2 -3
  542. package/lib/icons/display/jSpaceBetween.svg.js +2 -3
  543. package/lib/icons/feat/audio.svg.js +2 -3
  544. package/lib/icons/feat/custom.svg.js +2 -3
  545. package/lib/icons/feat/each.svg.js +2 -3
  546. package/lib/icons/feat/form.svg.js +2 -3
  547. package/lib/icons/feat/nav.svg.js +2 -3
  548. package/lib/icons/feat/qrcode.svg.js +2 -3
  549. package/lib/icons/feat/service.svg.js +2 -3
  550. package/lib/icons/feat/table.svg.js +2 -3
  551. package/lib/icons/feat/tasks.svg.js +2 -3
  552. package/lib/icons/feat/video.svg.js +2 -3
  553. package/lib/icons/feat/wizard.svg.js +2 -3
  554. package/lib/icons/form/chained-select.svg.js +2 -3
  555. package/lib/icons/form/checkbox.svg.js +2 -3
  556. package/lib/icons/form/checkboxes.svg.js +2 -3
  557. package/lib/icons/form/combo.svg.js +2 -3
  558. package/lib/icons/form/condition-builder.svg.js +2 -3
  559. package/lib/icons/form/diff-editor.svg.js +2 -3
  560. package/lib/icons/form/editor.svg.js +2 -3
  561. package/lib/icons/form/formula.svg.js +2 -3
  562. package/lib/icons/form/hidden.svg.js +2 -3
  563. package/lib/icons/form/input-city.svg.js +2 -3
  564. package/lib/icons/form/input-color.svg.js +2 -3
  565. package/lib/icons/form/input-date-range.svg.js +2 -3
  566. package/lib/icons/form/input-date.svg.js +2 -3
  567. package/lib/icons/form/input-datetime.svg.js +2 -3
  568. package/lib/icons/form/input-email.svg.js +2 -3
  569. package/lib/icons/form/input-excel.svg.js +2 -3
  570. package/lib/icons/form/input-file.svg.js +2 -3
  571. package/lib/icons/form/input-group.svg.js +2 -3
  572. package/lib/icons/form/input-image.svg.js +2 -3
  573. package/lib/icons/form/input-kv.svg.js +2 -3
  574. package/lib/icons/form/input-month-range.svg.js +2 -3
  575. package/lib/icons/form/input-number.svg.js +2 -3
  576. package/lib/icons/form/input-password.svg.js +2 -3
  577. package/lib/icons/form/input-quarter-range.svg.js +2 -3
  578. package/lib/icons/form/input-range.svg.js +2 -3
  579. package/lib/icons/form/input-rating.svg.js +2 -3
  580. package/lib/icons/form/input-repeat.svg.js +2 -3
  581. package/lib/icons/form/input-rich-text.svg.js +2 -3
  582. package/lib/icons/form/input-signature.svg.js +2 -3
  583. package/lib/icons/form/input-tag.svg.js +2 -3
  584. package/lib/icons/form/input-text.svg.js +2 -3
  585. package/lib/icons/form/input-time-range.svg.js +2 -3
  586. package/lib/icons/form/input-time.svg.js +2 -3
  587. package/lib/icons/form/input-tree.svg.js +2 -3
  588. package/lib/icons/form/input-url.svg.js +2 -3
  589. package/lib/icons/form/input-year.svg.js +2 -3
  590. package/lib/icons/form/inputArray.svg.js +2 -3
  591. package/lib/icons/form/list-select.svg.js +2 -3
  592. package/lib/icons/form/location-picker.svg.js +2 -3
  593. package/lib/icons/form/matrix-checkboxes.svg.js +2 -3
  594. package/lib/icons/form/month.svg.js +2 -3
  595. package/lib/icons/form/nested-select.svg.js +2 -3
  596. package/lib/icons/form/picker.svg.js +2 -3
  597. package/lib/icons/form/quarter.svg.js +2 -3
  598. package/lib/icons/form/radios.svg.js +2 -3
  599. package/lib/icons/form/select.svg.js +2 -3
  600. package/lib/icons/form/static.svg.js +2 -3
  601. package/lib/icons/form/sub-form.svg.js +2 -3
  602. package/lib/icons/form/switch.svg.js +2 -3
  603. package/lib/icons/form/tabs-transfer.svg.js +2 -3
  604. package/lib/icons/form/textarea.svg.js +2 -3
  605. package/lib/icons/form/transfer.svg.js +2 -3
  606. package/lib/icons/form/tree-select.svg.js +2 -3
  607. package/lib/icons/form/uuid.svg.js +2 -3
  608. package/lib/icons/index.js +2 -3
  609. package/lib/icons/layout/layout-1with2.svg.js +2 -3
  610. package/lib/icons/layout/layout-2cols.svg.js +2 -3
  611. package/lib/icons/layout/layout-2row.svg.js +2 -3
  612. package/lib/icons/layout/layout-2with1.svg.js +2 -3
  613. package/lib/icons/layout/layout-3cols.svg.js +2 -3
  614. package/lib/icons/layout/layout-3row.svg.js +2 -3
  615. package/lib/icons/layout/layout-absolute.svg.js +2 -3
  616. package/lib/icons/layout/layout-fixed-top.svg.js +2 -3
  617. package/lib/icons/layout/layout-fixed.svg.js +2 -3
  618. package/lib/icons/layout/layout-free-container.svg.js +2 -3
  619. package/lib/icons/layout/layout-full.svg.js +2 -3
  620. package/lib/icons/layout/layout1-2.svg.js +2 -3
  621. package/lib/icons/layout/layout2-1.svg.js +2 -3
  622. package/lib/icons/layout/layout3-1.svg.js +2 -3
  623. package/lib/icons/layout/layout3-2.svg.js +2 -3
  624. package/lib/icons/other/_fx.svg.js +2 -3
  625. package/lib/icons/other/divider.svg.js +2 -3
  626. package/lib/icons/other/fx.svg.js +2 -3
  627. package/lib/icons/other/modal-setting.svg.js +2 -3
  628. package/lib/icons/other/property-sheet.svg.js +2 -3
  629. package/lib/icons/other/tooltip.svg.js +2 -3
  630. package/lib/icons/show/URL.svg.js +2 -3
  631. package/lib/icons/show/avatar.svg.js +2 -3
  632. package/lib/icons/show/breadcrumb.svg.js +2 -3
  633. package/lib/icons/show/card.svg.js +2 -3
  634. package/lib/icons/show/cards.svg.js +2 -3
  635. package/lib/icons/show/carousel.svg.js +2 -3
  636. package/lib/icons/show/chart.svg.js +2 -3
  637. package/lib/icons/show/code.svg.js +2 -3
  638. package/lib/icons/show/date.svg.js +2 -3
  639. package/lib/icons/show/datetime.svg.js +2 -3
  640. package/lib/icons/show/image.svg.js +2 -3
  641. package/lib/icons/show/images.svg.js +2 -3
  642. package/lib/icons/show/json-view.svg.js +2 -3
  643. package/lib/icons/show/list.svg.js +2 -3
  644. package/lib/icons/show/log.svg.js +2 -3
  645. package/lib/icons/show/mapping.svg.js +2 -3
  646. package/lib/icons/show/markdown.svg.js +2 -3
  647. package/lib/icons/show/plain.svg.js +2 -3
  648. package/lib/icons/show/progress.svg.js +2 -3
  649. package/lib/icons/show/sparkline.svg.js +2 -3
  650. package/lib/icons/show/status.svg.js +2 -3
  651. package/lib/icons/show/steps.svg.js +2 -3
  652. package/lib/icons/show/time.svg.js +2 -3
  653. package/lib/icons/theme/css.svg.js +2 -3
  654. package/lib/index.d.ts +4 -1
  655. package/lib/index.js +22 -3
  656. package/lib/locale/en-US.js +2 -3
  657. package/lib/locale/zh-CN.js +2 -3
  658. package/lib/plugin/Alert.js +2 -3
  659. package/lib/plugin/AnchorNav.js +4 -3
  660. package/lib/plugin/Audio.js +2 -3
  661. package/lib/plugin/Avatar.js +2 -3
  662. package/lib/plugin/Breadcrumb.js +2 -3
  663. package/lib/plugin/Button.js +8 -50
  664. package/lib/plugin/ButtonGroup.js +2 -3
  665. package/lib/plugin/CRUD.js +5 -6
  666. package/lib/plugin/CRUD2/BaseCRUD.d.ts +1 -1
  667. package/lib/plugin/CRUD2/BaseCRUD.js +13 -9
  668. package/lib/plugin/CRUD2/CRUDTable.js +2 -3
  669. package/lib/plugin/CRUD2/constants.js +2 -3
  670. package/lib/plugin/CRUD2/utils.js +2 -3
  671. package/lib/plugin/Calendar.d.ts +2 -7
  672. package/lib/plugin/Calendar.js +6 -7
  673. package/lib/plugin/Card.js +2 -3
  674. package/lib/plugin/Card2.js +2 -3
  675. package/lib/plugin/Cards.js +15 -12
  676. package/lib/plugin/Carousel.js +2 -3
  677. package/lib/plugin/Chart.js +5 -8
  678. package/lib/plugin/CodeView.js +2 -3
  679. package/lib/plugin/Collapse.d.ts +1 -2
  680. package/lib/plugin/Collapse.js +17 -6
  681. package/lib/plugin/CollapseGroup.d.ts +2 -0
  682. package/lib/plugin/CollapseGroup.js +16 -3
  683. package/lib/plugin/ColumnToggler.js +2 -3
  684. package/lib/plugin/Container.js +2 -3
  685. package/lib/plugin/Custom.js +2 -3
  686. package/lib/plugin/CustomRegion.js +2 -3
  687. package/lib/plugin/Date.js +2 -3
  688. package/lib/plugin/Datetime.js +2 -3
  689. package/lib/plugin/Dialog.d.ts +1 -5
  690. package/lib/plugin/Dialog.js +8 -6
  691. package/lib/plugin/Divider.js +2 -3
  692. package/lib/plugin/Drawer.d.ts +1 -5
  693. package/lib/plugin/Drawer.js +10 -6
  694. package/lib/plugin/DropDownButton.js +27 -4
  695. package/lib/plugin/Each.js +15 -12
  696. package/lib/plugin/Flex.js +2 -3
  697. package/lib/plugin/Form/ButtonGroupSelect.d.ts +1 -3
  698. package/lib/plugin/Form/ButtonGroupSelect.js +7 -8
  699. package/lib/plugin/Form/ButtonToolbar.js +2 -3
  700. package/lib/plugin/Form/ChainedSelect.d.ts +1 -2
  701. package/lib/plugin/Form/ChainedSelect.js +26 -16
  702. package/lib/plugin/Form/Checkbox.d.ts +2 -3
  703. package/lib/plugin/Form/Checkbox.js +56 -12
  704. package/lib/plugin/Form/Checkboxes.d.ts +1 -3
  705. package/lib/plugin/Form/Checkboxes.js +56 -12
  706. package/lib/plugin/Form/CodeEditor.d.ts +1 -2
  707. package/lib/plugin/Form/CodeEditor.js +7 -8
  708. package/lib/plugin/Form/Combo.js +7 -8
  709. package/lib/plugin/Form/ConditionBuilder.js +2 -3
  710. package/lib/plugin/Form/Control.js +2 -3
  711. package/lib/plugin/Form/DiffEditor.js +7 -8
  712. package/lib/plugin/Form/FieldSet.js +2 -3
  713. package/lib/plugin/Form/Form.d.ts +2 -2
  714. package/lib/plugin/Form/Form.js +19 -11
  715. package/lib/plugin/Form/Formula.js +2 -3
  716. package/lib/plugin/Form/Group.js +2 -3
  717. package/lib/plugin/Form/Hidden.js +2 -3
  718. package/lib/plugin/Form/InputArray.js +2 -3
  719. package/lib/plugin/Form/InputCity.d.ts +1 -3
  720. package/lib/plugin/Form/InputCity.js +6 -7
  721. package/lib/plugin/Form/InputColor.js +2 -3
  722. package/lib/plugin/Form/InputDate.d.ts +1 -2
  723. package/lib/plugin/Form/InputDate.js +8 -7
  724. package/lib/plugin/Form/InputDateRange.d.ts +1 -2
  725. package/lib/plugin/Form/InputDateRange.js +10 -9
  726. package/lib/plugin/Form/InputDateTime.js +2 -3
  727. package/lib/plugin/Form/InputDateTimeRange.js +2 -3
  728. package/lib/plugin/Form/InputEmail.js +2 -3
  729. package/lib/plugin/Form/InputExcel.d.ts +4 -2
  730. package/lib/plugin/Form/InputExcel.js +7 -7
  731. package/lib/plugin/Form/InputFile.d.ts +1 -2
  732. package/lib/plugin/Form/InputFile.js +5 -6
  733. package/lib/plugin/Form/InputGroup.d.ts +0 -1
  734. package/lib/plugin/Form/InputGroup.js +2 -3
  735. package/lib/plugin/Form/InputImage.js +5 -6
  736. package/lib/plugin/Form/InputKV.d.ts +1 -2
  737. package/lib/plugin/Form/InputKV.js +7 -7
  738. package/lib/plugin/Form/InputMonth.js +2 -3
  739. package/lib/plugin/Form/InputMonthRange.js +2 -3
  740. package/lib/plugin/Form/InputNumber.d.ts +2 -2
  741. package/lib/plugin/Form/InputNumber.js +33 -19
  742. package/lib/plugin/Form/InputPassword.js +2 -3
  743. package/lib/plugin/Form/InputQuarter.js +2 -3
  744. package/lib/plugin/Form/InputQuarterRange.js +2 -3
  745. package/lib/plugin/Form/InputRange.js +6 -7
  746. package/lib/plugin/Form/InputRating.d.ts +1 -3
  747. package/lib/plugin/Form/InputRating.js +6 -7
  748. package/lib/plugin/Form/InputRepeat.js +2 -3
  749. package/lib/plugin/Form/InputRichText.js +2 -3
  750. package/lib/plugin/Form/InputSignature.js +2 -3
  751. package/lib/plugin/Form/InputSubForm.js +2 -3
  752. package/lib/plugin/Form/InputTable.js +6 -13
  753. package/lib/plugin/Form/InputTag.d.ts +1 -3
  754. package/lib/plugin/Form/InputTag.js +7 -7
  755. package/lib/plugin/Form/InputText.d.ts +2 -7
  756. package/lib/plugin/Form/InputText.js +11 -12
  757. package/lib/plugin/Form/InputTime.js +2 -3
  758. package/lib/plugin/Form/InputTimeRange.js +2 -3
  759. package/lib/plugin/Form/InputTree.d.ts +1 -2
  760. package/lib/plugin/Form/InputTree.js +12 -11
  761. package/lib/plugin/Form/InputURL.js +2 -3
  762. package/lib/plugin/Form/InputYear.js +2 -3
  763. package/lib/plugin/Form/InputYearRange.js +2 -3
  764. package/lib/plugin/Form/Item.js +6 -5
  765. package/lib/plugin/Form/ListSelect.d.ts +1 -2
  766. package/lib/plugin/Form/ListSelect.js +8 -8
  767. package/lib/plugin/Form/LocationPicker.d.ts +1 -3
  768. package/lib/plugin/Form/LocationPicker.js +6 -7
  769. package/lib/plugin/Form/MatrixCheckboxes.js +7 -8
  770. package/lib/plugin/Form/NestedSelect.d.ts +1 -2
  771. package/lib/plugin/Form/NestedSelect.js +27 -22
  772. package/lib/plugin/Form/Picker.js +2 -3
  773. package/lib/plugin/Form/Radios.d.ts +1 -3
  774. package/lib/plugin/Form/Radios.js +71 -11
  775. package/lib/plugin/Form/Select.js +24 -14
  776. package/lib/plugin/Form/Static.js +2 -3
  777. package/lib/plugin/Form/Switch.d.ts +1 -2
  778. package/lib/plugin/Form/Switch.js +8 -9
  779. package/lib/plugin/Form/TabsTransfer.d.ts +1 -3
  780. package/lib/plugin/Form/TabsTransfer.js +11 -10
  781. package/lib/plugin/Form/Textarea.d.ts +1 -2
  782. package/lib/plugin/Form/Textarea.js +10 -11
  783. package/lib/plugin/Form/Transfer.d.ts +1 -3
  784. package/lib/plugin/Form/Transfer.js +21 -12
  785. package/lib/plugin/Form/TransferPicker.d.ts +2 -0
  786. package/lib/plugin/Form/TransferPicker.js +22 -3
  787. package/lib/plugin/Form/TreeSelect.d.ts +1 -2
  788. package/lib/plugin/Form/TreeSelect.js +7 -8
  789. package/lib/plugin/Form/UUID.js +2 -3
  790. package/lib/plugin/Grid.js +2 -3
  791. package/lib/plugin/HBox.js +2 -3
  792. package/lib/plugin/IFrame.js +2 -3
  793. package/lib/plugin/Icon.js +2 -3
  794. package/lib/plugin/Image.js +34 -31
  795. package/lib/plugin/Images.js +2 -3
  796. package/lib/plugin/Json.js +2 -3
  797. package/lib/plugin/Layout/FlexPluginBase.js +2 -3
  798. package/lib/plugin/Layout/Layout_fixed.js +2 -3
  799. package/lib/plugin/Layout/Layout_free_container.js +2 -3
  800. package/lib/plugin/Layout/Layout_sorption_container.js +2 -3
  801. package/lib/plugin/Link.js +2 -3
  802. package/lib/plugin/List.js +15 -12
  803. package/lib/plugin/List2.js +15 -12
  804. package/lib/plugin/ListItem.js +2 -3
  805. package/lib/plugin/Log.js +2 -3
  806. package/lib/plugin/Mapping.js +3 -3
  807. package/lib/plugin/Markdown.js +2 -3
  808. package/lib/plugin/Nav.js +5 -6
  809. package/lib/plugin/OfficeViewer.js +2 -3
  810. package/lib/plugin/Operation.js +2 -3
  811. package/lib/plugin/Others/Action.js +2 -3
  812. package/lib/plugin/Others/TableCell.js +2 -3
  813. package/lib/plugin/Page.js +40 -9
  814. package/lib/plugin/Pagination.js +2 -3
  815. package/lib/plugin/Panel.js +5 -3
  816. package/lib/plugin/PdfViewer.js +2 -3
  817. package/lib/plugin/Plain.js +2 -3
  818. package/lib/plugin/Progress.d.ts +1 -2
  819. package/lib/plugin/Progress.js +6 -6
  820. package/lib/plugin/Property.js +2 -3
  821. package/lib/plugin/QRCode.js +2 -3
  822. package/lib/plugin/Reset.js +2 -3
  823. package/lib/plugin/SearchBox.js +5 -6
  824. package/lib/plugin/Service.js +6 -7
  825. package/lib/plugin/Sparkline.js +2 -3
  826. package/lib/plugin/Status.js +2 -3
  827. package/lib/plugin/Steps.js +2 -3
  828. package/lib/plugin/Submit.js +2 -3
  829. package/lib/plugin/SwitchContainer.js +2 -3
  830. package/lib/plugin/Table.d.ts +2 -4
  831. package/lib/plugin/Table.js +5 -6
  832. package/lib/plugin/Table2.js +4 -5
  833. package/lib/plugin/TableCell2.js +2 -3
  834. package/lib/plugin/TableView.js +2 -3
  835. package/lib/plugin/Tabs.d.ts +15 -2
  836. package/lib/plugin/Tabs.js +93 -28
  837. package/lib/plugin/Tag.js +2 -3
  838. package/lib/plugin/Tasks.js +2 -3
  839. package/lib/plugin/Time.js +2 -3
  840. package/lib/plugin/Timeline.js +2 -3
  841. package/lib/plugin/TooltipWrapper.js +2 -3
  842. package/lib/plugin/Tpl.js +2 -3
  843. package/lib/plugin/Video.js +2 -3
  844. package/lib/plugin/WebComponent.js +2 -3
  845. package/lib/plugin/Wizard.d.ts +1 -3
  846. package/lib/plugin/Wizard.js +32 -15
  847. package/lib/plugin/Wrapper.js +2 -3
  848. package/lib/renderer/APIAdaptorControl.js +2 -3
  849. package/lib/renderer/APIControl.js +2 -3
  850. package/lib/renderer/BadgeControl.d.ts +6 -6
  851. package/lib/renderer/BadgeControl.js +2 -3
  852. package/lib/renderer/ButtonGroupControl.js +2 -3
  853. package/lib/renderer/ConditionFormulaControl.js +2 -3
  854. package/lib/renderer/DataBindingControl.js +2 -3
  855. package/lib/renderer/DataMappingControl.js +2 -3
  856. package/lib/renderer/DataPickerControl.js +2 -3
  857. package/lib/renderer/DateShortCutControl.js +2 -3
  858. package/lib/renderer/ExpressionFormulaControl.js +2 -3
  859. package/lib/renderer/FeatureControl.js +2 -3
  860. package/lib/renderer/FieldSetting.js +2 -3
  861. package/lib/renderer/FlexSettingControl.js +2 -3
  862. package/lib/renderer/FormulaControl.js +2 -3
  863. package/lib/renderer/FunctionEditorControl.js +2 -3
  864. package/lib/renderer/GoConfigControl.js +2 -3
  865. package/lib/renderer/InputRangeValueControl.js +2 -3
  866. package/lib/renderer/KeyValueMapControl.js +2 -3
  867. package/lib/renderer/ListItemControl.js +2 -3
  868. package/lib/renderer/MapSourceControl.js +2 -3
  869. package/lib/renderer/NavBadgeControl.d.ts +6 -6
  870. package/lib/renderer/NavBadgeControl.js +2 -3
  871. package/lib/renderer/NavDefaultActive.js +2 -3
  872. package/lib/renderer/NavSourceControl.d.ts +1 -1
  873. package/lib/renderer/NavSourceControl.js +2 -3
  874. package/lib/renderer/OptionControl.js +2 -3
  875. package/lib/renderer/RangePartsControl.js +2 -3
  876. package/lib/renderer/StatusControl.js +2 -3
  877. package/lib/renderer/SwitchMoreControl.js +2 -3
  878. package/lib/renderer/TableColumnWidthControl.js +2 -3
  879. package/lib/renderer/TimelineItemControl.js +2 -3
  880. package/lib/renderer/TplFormulaControl.js +2 -3
  881. package/lib/renderer/TransferTableControl.js +2 -3
  882. package/lib/renderer/TreeOptionControl.js +2 -3
  883. package/lib/renderer/ValidateApiControl.js +2 -3
  884. package/lib/renderer/ValidationControl.js +2 -3
  885. package/lib/renderer/ValidationItem.js +2 -3
  886. package/lib/renderer/ValueFormatControl.js +2 -3
  887. package/lib/renderer/crud2-control/AddColumnModal.js +2 -3
  888. package/lib/renderer/crud2-control/CRUDColumnControl.js +2 -3
  889. package/lib/renderer/crud2-control/CRUDFiltersControl.js +26 -9
  890. package/lib/renderer/crud2-control/CRUDToolbarControl.js +2 -3
  891. package/lib/renderer/event-control/DialogActionPanel.js +2 -3
  892. package/lib/renderer/event-control/action-config-dialog.d.ts +1 -0
  893. package/lib/renderer/event-control/action-config-dialog.js +57 -23
  894. package/lib/renderer/event-control/action-config-panel.js +7 -6
  895. package/lib/renderer/event-control/actionsPanelManager.d.ts +24 -0
  896. package/lib/renderer/event-control/actionsPanelManager.js +95 -0
  897. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/clear.d.ts +1 -0
  898. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/clear.js +33 -0
  899. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/component.d.ts +1 -0
  900. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/component.js +21 -0
  901. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/helper.d.ts +76 -0
  902. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/helper.js +143 -0
  903. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/index.d.ts +11 -0
  904. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reload.d.ts +1 -0
  905. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reload.js +151 -0
  906. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reset.d.ts +1 -0
  907. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/reset.js +33 -0
  908. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.d.ts +2 -0
  909. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.js +392 -0
  910. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.d.ts +1 -0
  911. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/staticStatus.js +61 -0
  912. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/submit.d.ts +1 -0
  913. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/submit.js +65 -0
  914. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/usability.d.ts +1 -0
  915. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/usability.js +92 -0
  916. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validate.d.ts +1 -0
  917. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validate.js +61 -0
  918. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validateFormItem.d.ts +1 -0
  919. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/validateFormItem.js +57 -0
  920. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/visibility.d.ts +1 -0
  921. package/lib/renderer/event-control/actionsPanelPlugins/componentActionsPanel/visibility.js +92 -0
  922. package/lib/renderer/event-control/actionsPanelPlugins/index.d.ts +5 -0
  923. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/closeDialog.d.ts +1 -0
  924. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/closeDialog.js +16 -0
  925. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/index.d.ts +3 -0
  926. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/openDialog.d.ts +1 -0
  927. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/openDialog.js +110 -0
  928. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/toast.d.ts +1 -0
  929. package/lib/renderer/event-control/actionsPanelPlugins/modalActionsPanel/toast.js +116 -0
  930. package/lib/renderer/event-control/actionsPanelPlugins/otherActionsPanel/copy.d.ts +1 -0
  931. package/lib/renderer/event-control/actionsPanelPlugins/otherActionsPanel/copy.js +60 -0
  932. package/lib/renderer/event-control/actionsPanelPlugins/otherActionsPanel/custom.d.ts +1 -0
  933. package/lib/renderer/event-control/actionsPanelPlugins/otherActionsPanel/custom.js +39 -0
  934. package/lib/renderer/event-control/actionsPanelPlugins/otherActionsPanel/index.d.ts +2 -0
  935. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/goBack.d.ts +1 -0
  936. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/goBack.js +26 -0
  937. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/index.d.ts +3 -0
  938. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/refresh.d.ts +1 -0
  939. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/refresh.js +26 -0
  940. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/url.d.ts +1 -0
  941. package/lib/renderer/event-control/actionsPanelPlugins/pageActionsPanel/url.js +75 -0
  942. package/lib/renderer/event-control/actionsPanelPlugins/serverActionsPanel/ajax.d.ts +1 -0
  943. package/lib/renderer/event-control/actionsPanelPlugins/serverActionsPanel/ajax.js +93 -0
  944. package/lib/renderer/event-control/actionsPanelPlugins/serverActionsPanel/download.d.ts +1 -0
  945. package/lib/renderer/event-control/actionsPanelPlugins/serverActionsPanel/download.js +30 -0
  946. package/lib/renderer/event-control/actionsPanelPlugins/serverActionsPanel/index.d.ts +2 -0
  947. package/lib/renderer/event-control/comp-action-select.js +50 -62
  948. package/lib/renderer/event-control/constants.d.ts +4 -0
  949. package/lib/renderer/event-control/constants.js +38 -0
  950. package/lib/renderer/event-control/eventControlConfigHelper.d.ts +19 -0
  951. package/lib/renderer/event-control/eventControlConfigHelper.js +493 -0
  952. package/lib/renderer/event-control/helper.d.ts +10 -18
  953. package/lib/renderer/event-control/helper.js +94 -1916
  954. package/lib/renderer/event-control/index.d.ts +3 -0
  955. package/lib/renderer/event-control/index.js +174 -152
  956. package/lib/renderer/style-control/Background.js +2 -3
  957. package/lib/renderer/style-control/Border.js +2 -3
  958. package/lib/renderer/style-control/BoxModel.js +2 -3
  959. package/lib/renderer/style-control/BoxShadow.js +2 -3
  960. package/lib/renderer/style-control/ColCount.js +2 -3
  961. package/lib/renderer/style-control/ColSize.js +2 -3
  962. package/lib/renderer/style-control/Display.js +2 -3
  963. package/lib/renderer/style-control/FlexLayout.js +2 -3
  964. package/lib/renderer/style-control/Font.js +2 -3
  965. package/lib/renderer/style-control/InsetBoxModel.js +2 -3
  966. package/lib/renderer/style-control/LabelAlign.js +2 -3
  967. package/lib/renderer/style-control/SingleThemeCssCode.d.ts +16 -0
  968. package/lib/renderer/style-control/SingleThemeCssCode.js +2052 -0
  969. package/lib/renderer/style-control/ThemeCssCode.js +2 -3
  970. package/lib/renderer/style-control/font-family.js +2 -3
  971. package/lib/renderer/style-control/helper.d.ts +18 -4
  972. package/lib/renderer/style-control/helper.js +82 -40
  973. package/lib/renderer/style-control/transformation.js +2 -3
  974. package/lib/renderer/textarea-formula/FormulaPicker.js +2 -3
  975. package/lib/renderer/textarea-formula/TextareaFormulaControl.js +2 -3
  976. package/lib/renderer/textarea-formula/plugin.js +2 -3
  977. package/lib/tpl/api.js +2 -3
  978. package/lib/tpl/common.js +15 -3
  979. package/lib/tpl/horizontal.js +2 -3
  980. package/lib/tpl/layout.js +2 -3
  981. package/lib/tpl/options.js +2 -3
  982. package/lib/tpl/remark.js +2 -3
  983. package/lib/tpl/style.js +500 -10
  984. package/lib/tpl/validations.js +2 -3
  985. package/lib/util.js +2 -3
  986. package/lib/validator.d.ts +1 -0
  987. package/lib/validator.js +4 -3
  988. package/package.json +5 -4
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-editor v6.9.0-rc.1
3
- * build time: 2024-09-23
2
+ * amis-editor v6.9.0-rc.11
3
+ * build time: 2024-11-19
4
4
  * Copyright 2018-2024 @fex
5
5
  */
6
6
 
@@ -13,15 +13,15 @@ var React = require('react');
13
13
  var amisEditorCore = require('amis-editor-core');
14
14
  var amisCore = require('amis-core');
15
15
  var amis = require('amis');
16
- var without = require('lodash/without');
17
16
  var compActionSelect = require('./comp-action-select.js');
18
- var DialogActionPanel = require('./DialogActionPanel.js');
17
+ var eventControlConfigHelper = require('./eventControlConfigHelper.js');
18
+ var actionsPanelManager = require('./actionsPanelManager.js');
19
+ var constants = require('./constants.js');
19
20
  var i18nRuntime = require('i18n-runtime');
20
21
 
21
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
23
 
23
24
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
- var without__default = /*#__PURE__*/_interopDefaultLegacy(without);
25
25
 
26
26
  var getArgsWrapper = function (items, multiple, patch) {
27
27
  if (multiple === void 0) {
@@ -40,1377 +40,6 @@ var getArgsWrapper = function (items, multiple, patch) {
40
40
  items: Array.isArray(items) ? items : [items]
41
41
  });
42
42
  };
43
- var getRootManager = function (manager) {
44
- var rootManager = manager;
45
- while (rootManager) {
46
- if (!rootManager.parent) {
47
- break;
48
- }
49
- rootManager = rootManager.parent;
50
- }
51
- return rootManager;
52
- };
53
- // 数据容器范围
54
- var DATA_CONTAINER = ['form', 'dialog', 'drawer', 'wizard', 'service', 'crud', 'page', 'app', 'chart', 'crud2'];
55
- var MSG_TYPES = {
56
- info: i18nRuntime.i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),
57
- warning: i18nRuntime.i18n("900c70fa5f7dbc014e6f762d5e0e885c"),
58
- success: i18nRuntime.i18n("330363dfc524cff2488f2ebde0500896"),
59
- error: i18nRuntime.i18n("7030ff64701a938becbc5aa67ddb86e8")
60
- };
61
- // 下拉展示可赋值属性范围
62
- var SELECT_PROPS_CONTAINER = ['form'];
63
- // 是否数据容器
64
- "".concat(JSON.stringify(DATA_CONTAINER), ".includes(this.__rendererName)");
65
- // 是否下拉展示可赋值属性
66
- var SHOW_SELECT_PROP = "".concat(JSON.stringify(SELECT_PROPS_CONTAINER), ".includes(this.__rendererName)");
67
- // 表单项组件
68
- 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', 'user-select', 'department-select'];
69
- 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));
70
- var SUPPORT_DISABLED_CMPTS = ['button-group', 'action', 'button', 'submit', 'reset', 'collapse', 'container', 'dropdown-button', 'flex', 'flex-item', 'grid', 'grid-2d', 'link', 'nav', 'wizard'
71
- // 'card2'
72
- ];
73
- // 用于变量赋值 页面变量和内存变量的树选择器中,支持展示变量类型
74
- var getCustomNodeTreeSelectSchema = function (opts) {
75
- return tslib.__assign({
76
- type: 'tree-select',
77
- name: 'path',
78
- label: i18nRuntime.i18n("c6f30c2f084ddeacb7944235348bdaa4"),
79
- multiple: false,
80
- mode: 'horizontal',
81
- required: true,
82
- placeholder: i18nRuntime.i18n("844a7a7aacc5be82d0fd6225edc6bf63"),
83
- showIcon: false,
84
- size: 'lg',
85
- hideRoot: false,
86
- rootLabel: i18nRuntime.i18n("c6f30c2f084ddeacb7944235348bdaa4"),
87
- options: [],
88
- menuTpl: {
89
- type: 'flex',
90
- className: 'p-1',
91
- items: [{
92
- type: 'container',
93
- body: [{
94
- type: 'tpl',
95
- tpl: '${label}',
96
- inline: true,
97
- wrapperComponent: ''
98
- }],
99
- style: {
100
- display: 'flex',
101
- flexWrap: 'nowrap',
102
- alignItems: 'center',
103
- position: 'static',
104
- overflowY: 'auto',
105
- flex: '0 0 auto'
106
- },
107
- wrapperBody: false,
108
- isFixedHeight: true
109
- }, {
110
- type: 'container',
111
- body: [{
112
- type: 'tpl',
113
- tpl: '${type}',
114
- inline: true,
115
- wrapperComponent: '',
116
- style: {
117
- background: '#f5f5f5',
118
- paddingLeft: '8px',
119
- paddingRight: '8px',
120
- borderRadius: '4px'
121
- }
122
- }],
123
- size: 'xs',
124
- style: {
125
- display: 'flex',
126
- flexWrap: 'nowrap',
127
- alignItems: 'center',
128
- position: 'static',
129
- overflowY: 'auto',
130
- flex: '0 0 auto'
131
- },
132
- wrapperBody: false,
133
- isFixedHeight: true,
134
- isFixedWidth: false
135
- }],
136
- style: {
137
- position: 'relative',
138
- inset: 'auto',
139
- flexWrap: 'nowrap',
140
- justifyContent: 'space-between',
141
- alignItems: 'center',
142
- height: '24px',
143
- overflowY: 'hidden'
144
- },
145
- isFixedHeight: true,
146
- isFixedWidth: false
147
- }
148
- }, opts);
149
- };
150
- var ACTION_TYPE_TREE = function (manager) {
151
- var variableManager = manager === null || manager === void 0 ? void 0 : manager.variableManager;
152
- /** 变量列表 */
153
- var variableOptions = (variableManager === null || variableManager === void 0 ? void 0 : variableManager.getVariableOptions()) || [];
154
- var pageVariableOptions = (variableManager === null || variableManager === void 0 ? void 0 : variableManager.getPageVariablesOptions()) || [];
155
- var modalDescDetail = function (info, _a, props) {
156
- var _b, _c, _d, _e;
157
- var eventKey = _a.eventKey,
158
- actionIndex = _a.actionIndex;
159
- props.actionTree;
160
- props.actions;
161
- props.commonActions;
162
- props.allComponents;
163
- var node = props.node,
164
- manager = props.manager;
165
- var store = manager.store;
166
- var modals = store.modals;
167
- var onEvent = (_b = node.schema) === null || _b === void 0 ? void 0 : _b.onEvent;
168
- var action = (_c = onEvent === null || onEvent === void 0 ? void 0 : onEvent[eventKey].actions) === null || _c === void 0 ? void 0 : _c[actionIndex];
169
- var actionBody = action === null || action === void 0 ? void 0 : action[(action === null || action === void 0 ? void 0 : action.actionType) === 'drawer' ? 'drawer' : 'dialog'];
170
- var modalId = actionBody === null || actionBody === void 0 ? void 0 : actionBody.$$id;
171
- if (actionBody === null || actionBody === void 0 ? void 0 : actionBody.$ref) {
172
- modalId = ((_d = modals.find(function (item) {
173
- return item.$$ref === actionBody.$ref;
174
- })) === null || _d === void 0 ? void 0 : _d.$$id) || '';
175
- }
176
- var modal = modalId ? manager.store.modals.find(function (item) {
177
- return item.$$id === modalId;
178
- }) : '';
179
- if (modal) {
180
- return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("div", null, "\u6253\u5F00\u00A0", React__default["default"].createElement("a", {
181
- href: "#",
182
- onClick: function (e) {
183
- e.preventDefault();
184
- e.stopPropagation();
185
- var modalId = modal.$$id;
186
- manager.openSubEditor({
187
- title: '编辑弹窗',
188
- value: tslib.__assign(tslib.__assign({
189
- type: 'dialog'
190
- }, modal), {
191
- definitions: amisEditorCore.modalsToDefinitions(store.modals, {}, modal)
192
- }),
193
- onChange: function (_a, diff) {
194
- var definitions = _a.definitions,
195
- modal = tslib.__rest(_a, ["definitions"]);
196
- store.updateModal(modalId, modal, definitions);
197
- }
198
- });
199
- }
200
- }, ((_e = modal.editorSetting) === null || _e === void 0 ? void 0 : _e.displayName) || modal.title || '未命名弹窗'), "\u00A0", modal.actionType === 'confirmDialog' ? '确认框' : modal.type === 'drawer' ? '抽屉弹窗' : i18nRuntime.i18n("6cff4b6d794cc17f5d24dbe0d21e5732")));
201
- } else if (Array.isArray(info.__actionModals)) {
202
- var modal_1 = info.__actionModals.find(function (item) {
203
- return item.isActive;
204
- });
205
- if (modal_1) {
206
- // 这个时候还不能打开弹窗,schema 还没插入进去不知道 $$id,无法定位
207
- return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("div", null, i18nRuntime.i18n("d7098f5050f017673319c5db1473ada7"), React__default["default"].createElement("span", {
208
- className: "variable-left"
209
- }, modal_1.label), "\u00A0", modal_1.tip));
210
- }
211
- }
212
- return null;
213
- };
214
- return [{
215
- actionLabel: i18nRuntime.i18n("59ceff465ad16932d8972191ad815dfb"),
216
- actionType: 'page',
217
- children: [{
218
- actionLabel: i18nRuntime.i18n("dec2eb7145e149f281cb7e75fbe8972a"),
219
- actionType: 'url',
220
- description: i18nRuntime.i18n("ae10a948eca808b3dd77506b24f3fd0e"),
221
- innerArgs: ['url', 'params', 'blank'],
222
- descDetail: function (info) {
223
- var _a;
224
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("c7a34a3465d1beea2f85d53edcff8235"), React__default["default"].createElement("span", {
225
- className: "variable-left"
226
- }, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.url) || '-'));
227
- },
228
- schema: getArgsWrapper([{
229
- type: 'wrapper',
230
- body: [amisEditorCore.getSchemaTpl('textareaFormulaControl', {
231
- name: 'url',
232
- label: i18nRuntime.i18n("8f1c078c6d42759e6ccb1a9bf35f1629"),
233
- variables: '${variables}',
234
- mode: 'horizontal',
235
- // placeholder: 'http://', 长文本暂不支持
236
- size: 'lg',
237
- required: true,
238
- visibleOn: 'this.actionType === "url"'
239
- }), {
240
- type: 'combo',
241
- name: 'params',
242
- label: i18nRuntime.i18n("0b72392143e4038e98128cb0f6f679b3"),
243
- multiple: true,
244
- mode: 'horizontal',
245
- size: 'lg',
246
- formClassName: 'event-action-combo',
247
- itemClassName: 'event-action-combo-item',
248
- items: [{
249
- name: 'key',
250
- placeholder: i18nRuntime.i18n("c068b579db3bf0a553bd0af4f81cc14f"),
251
- type: 'input-text'
252
- }, amisEditorCore.getSchemaTpl('formulaControl', {
253
- variables: '${variables}',
254
- name: 'val',
255
- placeholder: i18nRuntime.i18n("bfed4943c5f487de1b63a82f7230cce2"),
256
- columnClassName: 'flex-1'
257
- })]
258
- }, {
259
- type: 'switch',
260
- name: 'blank',
261
- label: i18nRuntime.i18n("56aa76ab3c987377e855ae2c6c612050"),
262
- onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
263
- offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
264
- mode: 'horizontal',
265
- pipeIn: amisEditorCore.defaultValue(true)
266
- }]
267
- }])
268
- }, {
269
- actionLabel: i18nRuntime.i18n("39e107b7c4aa580f913ccbebc00f7534"),
270
- actionType: 'refresh',
271
- description: i18nRuntime.i18n("261242fe62b18b620419802c7dd7da7f")
272
- }, {
273
- actionLabel: i18nRuntime.i18n("ca180138a862543561d3a2c4f08b2e1b"),
274
- actionType: 'goBack',
275
- description: i18nRuntime.i18n("5f6b9e7a050ae3f34b38191435e14b24"),
276
- descDetail: function (info) {
277
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("27e0ca877865238aad6940481b2984d4"));
278
- }
279
- }]
280
- }, {
281
- actionLabel: i18nRuntime.i18n("0db9e779f5cd9ad8bd3d16d7e8a16b64"),
282
- actionType: 'dialogs',
283
- children: [{
284
- actionLabel: i18nRuntime.i18n("0561589c26e732981f29709a9b574234"),
285
- actionType: 'openDialog',
286
- description: i18nRuntime.i18n("4a502e748d1335385c2c05bf30e582e7"),
287
- actions: [{
288
- actionType: 'dialog',
289
- descDetail: modalDescDetail
290
- }, {
291
- actionType: 'drawer',
292
- descDetail: modalDescDetail
293
- }, {
294
- actionType: 'confirmDialog',
295
- descDetail: modalDescDetail
296
- }],
297
- schema: [{
298
- component: DialogActionPanel["default"]
299
- }
300
- // {
301
- // name: '__selectDialog',
302
- // type: 'select',
303
- // label: '选择弹窗',
304
- // source: '${__dialogActions}',
305
- // mode: 'horizontal',
306
- // size: 'lg'
307
- // }
308
- ]
309
- }, {
310
- actionLabel: i18nRuntime.i18n("3b02248ca3790e356e47b6900c0e3931"),
311
- actionType: 'closeDialog',
312
- description: i18nRuntime.i18n("f33c2c6ff58bcec40d3e74e591bb3df2") // 或者关闭指定弹窗
313
- // schema: getArgsWrapper({
314
- // type: 'wrapper',
315
- // body: [
316
- // {
317
- // type: 'radios',
318
- // label: '类型',
319
- // name: 'groupType',
320
- // mode: 'horizontal',
321
- // value: 'closeDialog',
322
- // required: true,
323
- // pipeIn: defaultValue('closeDialog'),
324
- // options: [
325
- // {
326
- // label: '弹窗',
327
- // value: 'closeDialog'
328
- // },
329
- // {
330
- // label: '抽屉',
331
- // value: 'closeDrawer'
332
- // }
333
- // ],
334
- // visibleOn: 'this.actionType === "closeDialog"'
335
- // }
336
- // ]
337
- // })
338
- },
339
- // 暂时下掉,看后面具体设计
340
- // {
341
- // actionLabel: '打开提示对话框',
342
- // actionType: 'alert',
343
- // description: '弹个提示对话框'
344
- // },
345
- // {
346
- // actionLabel: '打开确认对话框',
347
- // actionType: 'confirm',
348
- // description: '弹个确认对话框'
349
- // },
350
- {
351
- actionLabel: i18nRuntime.i18n("e495f416b83e4c7ff3c66ec3be96a76f"),
352
- actionType: 'toast',
353
- description: i18nRuntime.i18n("61d7aaa88181c527cfb936d4c686d267"),
354
- innerArgs: ['title', 'msgType', 'msg', 'position', 'timeout', 'closeButton', 'showIcon', 'className'],
355
- descDetail: function (info) {
356
- var _a, _b;
357
- 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] || '', i18nRuntime.i18n("4e5242a645864528e10f04dc2326a5c4"), React__default["default"].createElement("span", {
358
- className: "variable-left"
359
- }, ((_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.msg) || '-'));
360
- },
361
- schema: getArgsWrapper({
362
- type: 'wrapper',
363
- body: [{
364
- type: 'button-group-select',
365
- name: 'msgType',
366
- label: i18nRuntime.i18n("6d00710a2528332bfcac14b58e412042"),
367
- value: 'info',
368
- required: true,
369
- mode: 'horizontal',
370
- options: Object.keys(MSG_TYPES).map(function (key) {
371
- return {
372
- label: MSG_TYPES[key],
373
- value: key,
374
- level: 'default'
375
- };
376
- })
377
- }, amisEditorCore.getSchemaTpl('textareaFormulaControl', {
378
- name: 'msg',
379
- label: i18nRuntime.i18n("b87b77561e776367e6756e11ea652217"),
380
- mode: 'horizontal',
381
- variables: '${variables}',
382
- size: 'lg',
383
- required: true
384
- }), amisEditorCore.getSchemaTpl('textareaFormulaControl', {
385
- name: 'title',
386
- label: i18nRuntime.i18n("43ab9af06e1e0f0b2a8767b46cf8b1cf"),
387
- variables: '${variables}',
388
- mode: 'horizontal',
389
- size: 'lg'
390
- }), amisEditorCore.getSchemaTpl('formulaControl', {
391
- name: 'timeout',
392
- label: i18nRuntime.i18n("f41a94bb85c5223181c4cdf83ea9021b"),
393
- rendererSchema: {
394
- type: 'input-number'
395
- },
396
- valueType: 'number',
397
- variables: '${variables}',
398
- size: 'lg',
399
- mode: 'horizontal'
400
- }), {
401
- type: 'button-group-select',
402
- name: 'position',
403
- value: 'top-right',
404
- mode: 'horizontal',
405
- label: i18nRuntime.i18n("a0a837f2873de80bc9ec353c30e73171"),
406
- options: [{
407
- label: i18nRuntime.i18n("f3296f64a8a1330d7a07f1d269a1db92"),
408
- value: 'top-left'
409
- }, {
410
- label: i18nRuntime.i18n("b97a5adf068bee6c852db9dcea3a9799"),
411
- value: 'top-center'
412
- }, {
413
- label: i18nRuntime.i18n("eafeba264b6338939f11f1b1adf40d2b"),
414
- value: 'top-right'
415
- }, {
416
- label: i18nRuntime.i18n("d429ffb093e9aa3bf80da125f1be318c"),
417
- value: 'bottom-left'
418
- }, {
419
- label: i18nRuntime.i18n("c241aa8f427118a719b94cbd8f2bb22d"),
420
- value: 'bottom-center'
421
- }, {
422
- label: i18nRuntime.i18n("9cd707caffdfb314d939298f2f2c267c"),
423
- value: 'bottom-right'
424
- }]
425
- }, {
426
- type: 'switch',
427
- name: 'closeButton',
428
- value: true,
429
- label: i18nRuntime.i18n("8c8fbec263e20f087555c9abcb6dd07a"),
430
- mode: 'horizontal'
431
- }, {
432
- type: 'switch',
433
- name: 'showIcon',
434
- value: true,
435
- label: i18nRuntime.i18n("3f3a016027e540ef10a16dbd49fffde9"),
436
- mode: 'horizontal'
437
- }]
438
- })
439
- }]
440
- }, {
441
- actionLabel: i18nRuntime.i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),
442
- actionType: 'service',
443
- children: [{
444
- actionLabel: i18nRuntime.i18n("4f02d2efe05a20232ab9da63c090595c"),
445
- actionType: 'ajax',
446
- description: i18nRuntime.i18n("0cd902f953656adb29985b68e6fc9754"),
447
- // innerArgs: ['api', 'options'],
448
- descDetail: function (info) {
449
- var _a, _b;
450
- var apiInfo = (_a = info === null || info === void 0 ? void 0 : info.api) !== null && _a !== void 0 ? _a : (_b = info === null || info === void 0 ? void 0 : info.args) === null || _b === void 0 ? void 0 : _b.api;
451
- if (typeof apiInfo === 'string') {
452
- apiInfo = amisCore.normalizeApi(apiInfo);
453
- }
454
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("1535fcfa4cb8e4d467127154977e9788"), React__default["default"].createElement("span", {
455
- className: "variable-right variable-left"
456
- }, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.method) || '-'), i18nRuntime.i18n("c14a21300b61bb83b4420a1586497951"), React__default["default"].createElement("span", {
457
- className: "variable-left"
458
- }, (apiInfo === null || apiInfo === void 0 ? void 0 : apiInfo.url) || '-'));
459
- },
460
- schema: {
461
- type: 'wrapper',
462
- className: 'p-none',
463
- body: [
464
- // getArgsWrapper(
465
- // [
466
- // getSchemaTpl('apiControl', {
467
- // name: 'api',
468
- // label: '配置请求',
469
- // mode: 'horizontal',
470
- // size: 'lg',
471
- // inputClassName: 'm-b-none',
472
- // renderLabel: true,
473
- // required: true
474
- // }),
475
- // {
476
- // name: 'options',
477
- // type: 'combo',
478
- // label: tipedLabel(
479
- // '静默请求',
480
- // '开启后,服务请求将以静默模式发送,即不会弹出成功或报错提示。'
481
- // ),
482
- // mode: 'horizontal',
483
- // items: [
484
- // {
485
- // type: 'switch',
486
- // name: 'silent',
487
- // label: false,
488
- // onText: '开启',
489
- // offText: '关闭',
490
- // mode: 'horizontal',
491
- // pipeIn: defaultValue(false)
492
- // }
493
- // ]
494
- // }
495
- // ],
496
- // false,
497
- // {
498
- // className: 'action-apiControl'
499
- // }
500
- // ),
501
- amisEditorCore.getSchemaTpl('apiControl', {
502
- name: 'api',
503
- label: i18nRuntime.i18n("88bdaf32c27ab169d3d686b86b3fae99"),
504
- mode: 'horizontal',
505
- size: 'lg',
506
- inputClassName: 'm-b-none',
507
- renderLabel: true,
508
- required: true
509
- }), {
510
- name: 'options',
511
- type: 'combo',
512
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("6e6d4269d0dc3324d551062350a2ae9f"), i18nRuntime.i18n("56e13c39822a814ab39b0d5a0867d7dc")),
513
- mode: 'horizontal',
514
- items: [{
515
- type: 'switch',
516
- name: 'silent',
517
- label: false,
518
- onText: i18nRuntime.i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),
519
- offText: i18nRuntime.i18n("b15d91274e9fc68608c609999e0413fa"),
520
- mode: 'horizontal',
521
- pipeIn: amisEditorCore.defaultValue(false)
522
- }]
523
- }, {
524
- name: 'outputVar',
525
- type: 'input-text',
526
- label: i18nRuntime.i18n("139c619a4dbfc26fb61d76dc388e3e7d"),
527
- placeholder: i18nRuntime.i18n("4dca05af026848011eedee1b53efa61c"),
528
- description: i18nRuntime.i18n("4da82260041107e5780bcbb3a14ef791"),
529
- mode: 'horizontal',
530
- size: 'lg',
531
- value: 'responseResult',
532
- required: true
533
- }]
534
- },
535
- outputVarDataSchema: [{
536
- type: 'object',
537
- title: 'responseResult',
538
- properties: {
539
- responseData: {
540
- type: 'object',
541
- title: i18nRuntime.i18n("aa6070a7f454f554fc1c7d8b1d2d935f")
542
- },
543
- responseStatus: {
544
- type: 'number',
545
- title: i18nRuntime.i18n("3f9e257178738d5d180ddc2996809c10")
546
- },
547
- responseMsg: {
548
- type: 'string',
549
- title: i18nRuntime.i18n("99c74120cc62f4bf31d661e3212b7121")
550
- }
551
- }
552
- }]
553
- }, {
554
- actionLabel: i18nRuntime.i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),
555
- actionType: 'download',
556
- description: i18nRuntime.i18n("89049706952412d790b801def284629e"),
557
- // innerArgs: ['api'],
558
- schema: {
559
- type: 'wrapper',
560
- className: 'p-none',
561
- body: [
562
- // getArgsWrapper(
563
- // getSchemaTpl('apiControl', {
564
- // name: 'api',
565
- // label: '配置请求',
566
- // mode: 'horizontal',
567
- // inputClassName: 'm-b-none',
568
- // size: 'lg',
569
- // renderLabel: true,
570
- // required: true
571
- // }),
572
- // false,
573
- // {
574
- // className: 'action-apiControl'
575
- // }
576
- // )
577
- amisEditorCore.getSchemaTpl('apiControl', {
578
- name: 'api',
579
- label: i18nRuntime.i18n("88bdaf32c27ab169d3d686b86b3fae99"),
580
- mode: 'horizontal',
581
- inputClassName: 'm-b-none',
582
- size: 'lg',
583
- renderLabel: true,
584
- required: true
585
- })]
586
- }
587
- }]
588
- }, {
589
- actionLabel: i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"),
590
- actionType: 'cmpt',
591
- children: [{
592
- actionLabel: i18nRuntime.i18n("c852fb60f1b8ce921c3def1eba000bc5"),
593
- actionType: 'visibility',
594
- description: i18nRuntime.i18n("1bd4cfded5e11a7a8ea4dcfd2fa17e15"),
595
- actions: [{
596
- actionType: 'show',
597
- descDetail: function (info) {
598
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"), React__default["default"].createElement("span", {
599
- className: "variable-left variable-right"
600
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
601
- }
602
- }, {
603
- actionType: 'hidden',
604
- descDetail: function (info) {
605
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("dce5379cb978a8259ecfca8f08f00817"), React__default["default"].createElement("span", {
606
- className: "variable-left variable-right"
607
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
608
- }
609
- }, {
610
- actionType: 'visibility',
611
- descDetail: function (info) {
612
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"), React__default["default"].createElement("span", {
613
- className: "variable-left variable-right"
614
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("7f019b96ffb7d72ec8d6ce8d76e5362f"));
615
- }
616
- }],
617
- supportComponents: '*',
618
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput(), {
619
- type: 'radios',
620
- label: i18nRuntime.i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
621
- name: 'groupType',
622
- mode: 'horizontal',
623
- value: 'static',
624
- required: true,
625
- inputClassName: 'event-action-radio',
626
- options: [{
627
- label: i18nRuntime.i18n("8baf21fa26d6d24b4faa872953275d8d"),
628
- value: 'static'
629
- }, {
630
- label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
631
- value: 'visibility'
632
- }]
633
- }, {
634
- type: 'radios',
635
- label: i18nRuntime.i18n("edf25860e3d457eb8ca9cb5dca06dfd7"),
636
- name: '__statusType',
637
- mode: 'horizontal',
638
- value: 'show',
639
- required: true,
640
- pipeIn: amisEditorCore.defaultValue('show'),
641
- inputClassName: 'event-action-radio',
642
- visibleOn: "this.groupType === 'static'",
643
- options: [{
644
- label: i18nRuntime.i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),
645
- value: 'show'
646
- }, {
647
- label: i18nRuntime.i18n("dce5379cb978a8259ecfca8f08f00817"),
648
- value: 'hidden'
649
- }]
650
- }, amisEditorCore.getSchemaTpl('expressionFormulaControl', {
651
- mode: 'horizontal',
652
- label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
653
- required: true,
654
- size: 'lg',
655
- variables: '${variables}',
656
- evalMode: true,
657
- name: '__actionExpression',
658
- visibleOn: "this.groupType === 'visibility'"
659
- })], false)
660
- }, {
661
- actionLabel: i18nRuntime.i18n("12c8d50c55eeec7059ddd5c303e34f77"),
662
- actionType: 'usability',
663
- description: i18nRuntime.i18n("5e75800641ec5c1198092bcf9d34f180"),
664
- actions: [{
665
- actionType: 'enabled',
666
- descDetail: function (info) {
667
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("7854b52a889b3ef0590d9f542efeb4c8"), React__default["default"].createElement("span", {
668
- className: "variable-left variable-right"
669
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
670
- }
671
- }, {
672
- actionType: 'disabled',
673
- descDetail: function (info) {
674
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("710ad08b11419332713360d2750cd707"), React__default["default"].createElement("span", {
675
- className: "variable-left variable-right"
676
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
677
- }
678
- }, {
679
- actionType: 'usability',
680
- descDetail: function (info) {
681
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"), React__default["default"].createElement("span", {
682
- className: "variable-left variable-right"
683
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("7f019b96ffb7d72ec8d6ce8d76e5362f"));
684
- }
685
- }],
686
- supportComponents: tslib.__spreadArray(tslib.__spreadArray(['form'], tslib.__read(FORMITEM_CMPTS), false), tslib.__read(SUPPORT_DISABLED_CMPTS), false),
687
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput(), {
688
- type: 'radios',
689
- label: i18nRuntime.i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),
690
- name: 'groupType',
691
- mode: 'horizontal',
692
- inputClassName: 'event-action-radio',
693
- value: 'static',
694
- required: true,
695
- options: [{
696
- label: i18nRuntime.i18n("8baf21fa26d6d24b4faa872953275d8d"),
697
- value: 'static'
698
- }, {
699
- label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
700
- value: 'usability'
701
- }]
702
- }, {
703
- type: 'radios',
704
- label: i18nRuntime.i18n("d86d5919f595226b7a1e8264635ca23d"),
705
- name: '__statusType',
706
- mode: 'horizontal',
707
- inputClassName: 'event-action-radio',
708
- value: 'enabled',
709
- required: true,
710
- pipeIn: amisEditorCore.defaultValue('enabled'),
711
- visibleOn: "this.groupType === 'static'",
712
- options: [{
713
- label: i18nRuntime.i18n("7854b52a889b3ef0590d9f542efeb4c8"),
714
- value: 'enabled'
715
- }, {
716
- label: i18nRuntime.i18n("710ad08b11419332713360d2750cd707"),
717
- value: 'disabled'
718
- }]
719
- }, amisEditorCore.getSchemaTpl('expressionFormulaControl', {
720
- mode: 'horizontal',
721
- label: i18nRuntime.i18n("a9400c408441f1f7f6d6954deb05ae9a"),
722
- required: true,
723
- size: 'lg',
724
- evalMode: true,
725
- name: '__actionExpression',
726
- visibleOn: "this.groupType === 'usability'"
727
- })], false)
728
- }, {
729
- actionLabel: i18nRuntime.i18n("e052287273ad39a1d3fa9fa3decb5fd9"),
730
- actionType: 'staticStatus',
731
- description: i18nRuntime.i18n("506f28f48dbebd5d19e19dfc721e13be"),
732
- actions: [{
733
- actionType: 'static',
734
- descDetail: function (info) {
735
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
736
- className: "variable-right"
737
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId), i18nRuntime.i18n("0e35b091e18032508758899735664df7"));
738
- }
739
- }, {
740
- actionType: 'nonstatic',
741
- descDetail: function (info) {
742
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
743
- className: "variable-right"
744
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId), i18nRuntime.i18n("34d361256526b04909e064c29d9a9b76"));
745
- }
746
- }],
747
- supportComponents: tslib.__spreadArray(['form'], tslib.__read(SUPPORT_STATIC_FORMITEM_CMPTS), false),
748
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("d80bc0fcbfb250480320b683e48b1467"), true)), false), [renderCmptIdInput(), {
749
- type: 'radios',
750
- label: i18nRuntime.i18n("d2e930293da37452638759e17d771adf"),
751
- name: 'groupType',
752
- mode: 'horizontal',
753
- inputClassName: 'event-action-radio',
754
- value: 'nonstatic',
755
- required: true,
756
- pipeIn: amisEditorCore.defaultValue('nonstatic'),
757
- options: [{
758
- label: i18nRuntime.i18n("b535bea11c97ec5588b1494799de4d60"),
759
- value: 'nonstatic'
760
- }, {
761
- label: i18nRuntime.i18n("f7784642f42d33f506ba05f3daefc3c4"),
762
- value: 'static'
763
- }]
764
- }], false)
765
- }, {
766
- actionLabel: i18nRuntime.i18n("0eb4e63db88e158600dab0e723e8a213"),
767
- actionType: 'reload',
768
- description: i18nRuntime.i18n("f16654604d6cb2f62469e5aa9db19871"),
769
- descDetail: function (info) {
770
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"), React__default["default"].createElement("span", {
771
- className: "variable-left variable-right"
772
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
773
- },
774
- supportComponents: 'byComponent',
775
- schema: [{
776
- type: 'wrapper',
777
- size: 'sm',
778
- body: tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
779
- form.setValueByName('args.resetPage', true);
780
- form.setValueByName('__addParam', false);
781
- form.setValueByName('__containerType', 'all');
782
- form.setValueByName('__reloadParam', []);
783
- }, true)), false)
784
- }, renderCmptIdInput(function (value, oldVal, data, form) {
785
- // 找到组件并设置相关的属性
786
- var schema = amisEditorCore.JSONGetById(manager.store.schema, value, 'id');
787
- if (schema) {
788
- var __isScopeContainer = DATA_CONTAINER.includes(schema.type);
789
- var __rendererName = schema.type;
790
- form.setValues({
791
- __isScopeContainer: __isScopeContainer,
792
- __rendererName: __rendererName
793
- });
794
- } else {
795
- form.setValues({
796
- __isScopeContainer: false,
797
- __rendererName: ''
798
- });
799
- }
800
- }), {
801
- type: 'switch',
802
- name: '__resetPage',
803
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("697af73997072e0ce9ee65b15a7b3715"), i18nRuntime.i18n("d7bf42dd6e66f2818f9a232603c4a53b")),
804
- onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
805
- offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
806
- mode: 'horizontal',
807
- pipeIn: amisEditorCore.defaultValue(true),
808
- visibleOn: "this.actionType === \"reload\" && this.__rendererName === \"crud\""
809
- }, {
810
- type: 'switch',
811
- name: '__addParam',
812
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("8f0064a9cfd7dcbb3c729f1357f11772"), i18nRuntime.i18n("a0c117d927c6290bab55ae0e848a4d4b")),
813
- onText: i18nRuntime.i18n("0a60ac8f02ccd2cf723f927284877851"),
814
- offText: i18nRuntime.i18n("c9744f45e76d885ae1c74d4f4a934b2e"),
815
- mode: 'horizontal',
816
- pipeIn: amisEditorCore.defaultValue(false),
817
- visibleOn: "this.actionType === \"reload\" && this.__isScopeContainer",
818
- onChange: function (value, oldVal, data, form) {
819
- form.setValueByName('__containerType', 'all');
820
- }
821
- }, {
822
- type: 'radios',
823
- name: '__containerType',
824
- mode: 'horizontal',
825
- label: '',
826
- pipeIn: amisEditorCore.defaultValue('all'),
827
- visibleOn: "this.__addParam && this.actionType === \"reload\" && this.__isScopeContainer",
828
- options: [{
829
- label: i18nRuntime.i18n("77b1081c177fa3334cc93c99f0ecee75"),
830
- value: 'all'
831
- }, {
832
- label: i18nRuntime.i18n("f5c5e3d69daee06ea1606378ef466765"),
833
- value: 'appoint'
834
- }],
835
- onChange: function (value, oldVal, data, form) {
836
- form.setValueByName('__reloadParams', []);
837
- form.setValueByName('__valueInput', undefined);
838
- }
839
- }, amisEditorCore.getSchemaTpl('formulaControl', {
840
- name: '__valueInput',
841
- label: '',
842
- variables: '${variables}',
843
- size: 'lg',
844
- mode: 'horizontal',
845
- required: true,
846
- visibleOn: "this.__addParam && this.__containerType === \"all\" && this.actionType === \"reload\" && this.__isScopeContainer"
847
- }), {
848
- type: 'combo',
849
- name: '__reloadParams',
850
- label: '',
851
- multiple: true,
852
- removable: true,
853
- addable: true,
854
- strictMode: false,
855
- canAccessSuperData: true,
856
- size: 'lg',
857
- mode: 'horizontal',
858
- formClassName: 'event-action-combo',
859
- itemClassName: 'event-action-combo-item',
860
- items: [{
861
- name: 'key',
862
- type: 'input-text',
863
- placeholder: i18nRuntime.i18n("c068b579db3bf0a553bd0af4f81cc14f"),
864
- labelField: 'label',
865
- valueField: 'value',
866
- required: true
867
- }, amisEditorCore.getSchemaTpl('formulaControl', {
868
- name: 'val',
869
- variables: '${variables}',
870
- placeholder: i18nRuntime.i18n("bfed4943c5f487de1b63a82f7230cce2"),
871
- columnClassName: 'flex-1'
872
- })],
873
- visibleOn: "this.__addParam && this.__containerType === \"appoint\" && this.actionType === \"reload\" && this.__isScopeContainer"
874
- }, {
875
- type: 'radios',
876
- name: 'dataMergeMode',
877
- mode: 'horizontal',
878
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("eb6cd21b9ed45ded3ecdb12f62b590e1"), i18nRuntime.i18n("b67b01a3b9170f1daf78082cfd0df793")),
879
- pipeIn: amisEditorCore.defaultValue('merge'),
880
- visibleOn: "this.__addParam && this.actionType === \"reload\" && this.__isScopeContainer",
881
- options: [{
882
- label: i18nRuntime.i18n("bd81577a6fd4956e676cec499bb70d00"),
883
- value: 'merge'
884
- }, {
885
- label: i18nRuntime.i18n("e09fea40f7e4abd4b2a495b315940688"),
886
- value: 'override'
887
- }]
888
- }]
889
- }, {
890
- actionLabel: i18nRuntime.i18n("e22855f53b7a1ab33e920375c0cd0e3d"),
891
- actionType: 'setValue',
892
- description: i18nRuntime.i18n("2464e9d13bfc84169eb8333b6996203c"),
893
- innerArgs: ['path', 'value', 'index', '__valueInput', '__comboType', '__containerType'],
894
- descDetail: function (info) {
895
- var _a;
896
- return React__default["default"].createElement("div", null, typeof ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.path) === 'string' && !(info === null || info === void 0 ? void 0 : info.componentId) ? React__default["default"].createElement(React__default["default"].Fragment, null, "\u8BBE\u7F6E\u53D8\u91CF", React__default["default"].createElement("span", {
897
- className: "variable-left variable-right"
898
- }, variableManager.getNameByPath(info.args.path)), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9")) : React__default["default"].createElement(React__default["default"].Fragment, null, "\u8BBE\u7F6E\u7EC4\u4EF6", React__default["default"].createElement("span", {
899
- className: "variable-left variable-right"
900
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9")));
901
- },
902
- supportComponents: 'byComponent',
903
- schema: [{
904
- children: function (_a) {
905
- var _b;
906
- var render = _a.render,
907
- data = _a.data;
908
- var path = ((_b = data === null || data === void 0 ? void 0 : data.args) === null || _b === void 0 ? void 0 : _b.path) || '';
909
- return render('setValueType', {
910
- name: '__actionSubType',
911
- type: 'radios',
912
- label: i18nRuntime.i18n("6c6e12c54723170f214527bedaf81f7d"),
913
- mode: 'horizontal',
914
- options: [{
915
- label: i18nRuntime.i18n("1b7e6b2dbf3b7f4b1baf2c42e49a995d"),
916
- value: 'cmpt'
917
- }, {
918
- label: i18nRuntime.i18n("0b72392143e4038e98128cb0f6f679b3"),
919
- value: 'page'
920
- }, {
921
- label: i18nRuntime.i18n("c6f30c2f084ddeacb7944235348bdaa4"),
922
- value: 'app'
923
- }],
924
- value: /^appVariables/.test(path) // 只需要初始化时更新value
925
- ? 'app' : /^(__page|__query)/.test(path) ? 'page' : 'cmpt',
926
- onChange: function (value, oldVal, data, form) {
927
- form.setValueByName('__valueInput', undefined);
928
- form.setValueByName('args.value', undefined);
929
- form.deleteValueByName('args.path');
930
- }
931
- });
932
- }
933
- },
934
- // 组件变量
935
- {
936
- type: 'container',
937
- visibleOn: '__actionSubType === "cmpt"',
938
- body: [{
939
- type: 'wrapper',
940
- visibleOn: 'this.componentId === "customCmptId"',
941
- className: 'p-none mb-6',
942
- body: tslib.__spreadArray([], tslib.__read(renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
943
- form.setValueByName('args.__containerType', 'all');
944
- form.setValueByName('args.__comboType', 'all');
945
- }, true)), false)
946
- }, {
947
- type: 'wrapper',
948
- visibleOn: 'this.componentId !== "customCmptId"',
949
- className: 'p-none mb-6',
950
- body: tslib.__spreadArray([], tslib.__read(renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true, function (value, oldVal, data, form) {
951
- form.setValueByName('args.__containerType', 'all');
952
- form.setValueByName('args.__comboType', 'all');
953
- })), false)
954
- }, renderCmptIdInput(function (value, oldVal, data, form) {
955
- // 找到root再查询
956
- var root = getRootManager(manager);
957
- // 找到组件并设置相关的属性
958
- var schema = amisEditorCore.JSONGetById(root.store.schema, value, 'id');
959
- if (schema) {
960
- var __isScopeContainer = DATA_CONTAINER.includes(schema.type);
961
- var __rendererName = schema.type;
962
- form.setValues({
963
- __isScopeContainer: __isScopeContainer,
964
- __rendererName: __rendererName
965
- });
966
- } else {
967
- form.setValues({
968
- __isScopeContainer: false,
969
- __rendererName: ''
970
- });
971
- }
972
- }), getArgsWrapper({
973
- type: 'wrapper',
974
- body: [{
975
- type: 'radios',
976
- name: '__containerType',
977
- mode: 'horizontal',
978
- label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
979
- pipeIn: amisEditorCore.defaultValue('all'),
980
- visibleOn: 'this.__isScopeContainer',
981
- options: [{
982
- label: i18nRuntime.i18n("77b1081c177fa3334cc93c99f0ecee75"),
983
- value: 'all'
984
- }, {
985
- label: i18nRuntime.i18n("f5c5e3d69daee06ea1606378ef466765"),
986
- value: 'appoint'
987
- }],
988
- onChange: function (value, oldVal, data, form) {
989
- form.setValueByName('value', []);
990
- form.setValueByName('__valueInput', undefined);
991
- }
992
- }, {
993
- type: 'radios',
994
- name: '__comboType',
995
- inputClassName: 'event-action-radio',
996
- mode: 'horizontal',
997
- label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
998
- pipeIn: amisEditorCore.defaultValue('all'),
999
- visibleOn: "this.__rendererName === 'combo' || this.__rendererName === 'input-table'",
1000
- options: [{
1001
- label: i18nRuntime.i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),
1002
- value: 'all'
1003
- }, {
1004
- label: i18nRuntime.i18n("139294edcce271bf483dda437c421c29"),
1005
- value: 'appoint'
1006
- }],
1007
- onChange: function (value, oldVal, data, form) {
1008
- form.setValueByName('index', undefined);
1009
- form.setValueByName('value', []);
1010
- form.setValueByName('__valueInput', undefined);
1011
- }
1012
- }, {
1013
- type: 'input-number',
1014
- required: true,
1015
- name: 'index',
1016
- mode: 'horizontal',
1017
- label: i18nRuntime.i18n("a7b0b80a7bea1e5e973967c179866ef0"),
1018
- size: 'lg',
1019
- placeholder: i18nRuntime.i18n("e887792fbbd65d21e43e832a5cd63aac"),
1020
- visibleOn: "(this.__rendererName === 'input-table' || this.__rendererName === 'combo')\n && this.__comboType === 'appoint'"
1021
- }, {
1022
- type: 'combo',
1023
- name: 'value',
1024
- label: '',
1025
- multiple: true,
1026
- removable: true,
1027
- required: true,
1028
- addable: true,
1029
- strictMode: false,
1030
- canAccessSuperData: true,
1031
- size: 'lg',
1032
- mode: 'horizontal',
1033
- formClassName: 'event-action-combo',
1034
- itemClassName: 'event-action-combo-item',
1035
- items: [{
1036
- name: 'key',
1037
- type: 'input-text',
1038
- placeholder: i18nRuntime.i18n("a25657422b40023f2731619587940bc7"),
1039
- source: '${__setValueDs}',
1040
- labelField: 'label',
1041
- valueField: 'value',
1042
- required: true
1043
- }, amisEditorCore.getSchemaTpl('formulaControl', {
1044
- name: 'val',
1045
- variables: '${variables}',
1046
- placeholder: i18nRuntime.i18n("a33903526e8fb3d1ac3066da70e7941e"),
1047
- columnClassName: 'flex-1'
1048
- })],
1049
- visibleOn: "this.__isScopeContainer && this.__containerType === 'appoint' || this.__comboType === 'appoint'"
1050
- }, {
1051
- type: 'combo',
1052
- name: 'value',
1053
- label: '',
1054
- multiple: true,
1055
- removable: true,
1056
- required: true,
1057
- addable: true,
1058
- strictMode: false,
1059
- canAccessSuperData: true,
1060
- mode: 'horizontal',
1061
- size: 'lg',
1062
- items: [{
1063
- type: 'combo',
1064
- name: 'item',
1065
- label: false,
1066
- renderLabel: false,
1067
- multiple: true,
1068
- removable: true,
1069
- required: true,
1070
- addable: true,
1071
- strictMode: false,
1072
- canAccessSuperData: true,
1073
- className: 'm-l',
1074
- size: 'lg',
1075
- mode: 'horizontal',
1076
- formClassName: 'event-action-combo',
1077
- itemClassName: 'event-action-combo-item',
1078
- items: [{
1079
- name: 'key',
1080
- type: 'input-text',
1081
- source: '${__setValueDs}',
1082
- labelField: 'label',
1083
- valueField: 'value',
1084
- required: true,
1085
- visibleOn: "this.__rendererName"
1086
- }, amisEditorCore.getSchemaTpl('formulaControl', {
1087
- name: 'val',
1088
- variables: '${variables}',
1089
- columnClassName: 'flex-1'
1090
- })]
1091
- }],
1092
- visibleOn: "(this.__rendererName === 'combo' || this.__rendererName === 'input-table')\n && this.__comboType === 'all'"
1093
- }, amisEditorCore.getSchemaTpl('formulaControl', {
1094
- name: '__valueInput',
1095
- label: '',
1096
- variables: '${variables}',
1097
- size: 'lg',
1098
- mode: 'horizontal',
1099
- visibleOn: "(this.__isScopeContainer || ".concat(SHOW_SELECT_PROP, ") && this.__containerType === 'all'"),
1100
- required: true
1101
- }), amisEditorCore.getSchemaTpl('formulaControl', {
1102
- name: '__valueInput',
1103
- label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
1104
- variables: '${variables}',
1105
- size: 'lg',
1106
- mode: 'horizontal',
1107
- visibleOn: "this.__rendererName && !this.__isScopeContainer && this.__rendererName !== 'combo' && this.__rendererName !== 'input-table'",
1108
- required: true
1109
- })]
1110
- })]
1111
- },
1112
- // 页面参数
1113
- {
1114
- type: 'container',
1115
- visibleOn: '__actionSubType === "page"',
1116
- body: [getArgsWrapper([{
1117
- type: 'wrapper',
1118
- body: [getCustomNodeTreeSelectSchema({
1119
- label: i18nRuntime.i18n("0b72392143e4038e98128cb0f6f679b3"),
1120
- rootLabel: i18nRuntime.i18n("0b72392143e4038e98128cb0f6f679b3"),
1121
- options: pageVariableOptions,
1122
- horizontal: {
1123
- leftFixed: true
1124
- }
1125
- }), amisEditorCore.getSchemaTpl('formulaControl', {
1126
- name: 'value',
1127
- label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
1128
- variables: '${variables}',
1129
- size: 'lg',
1130
- mode: 'horizontal',
1131
- required: true,
1132
- placeholder: i18nRuntime.i18n("85451d2eb59327a23e8f745161066d4a"),
1133
- horizontal: {
1134
- leftFixed: true
1135
- }
1136
- })]
1137
- }])]
1138
- },
1139
- // 内存变量
1140
- {
1141
- type: 'container',
1142
- visibleOn: '__actionSubType === "app"',
1143
- body: [getArgsWrapper([{
1144
- type: 'wrapper',
1145
- body: [getCustomNodeTreeSelectSchema({
1146
- options: variableOptions,
1147
- horizontal: {
1148
- leftFixed: true
1149
- }
1150
- }), amisEditorCore.getSchemaTpl('formulaControl', {
1151
- name: 'value',
1152
- label: i18nRuntime.i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),
1153
- variables: '${variables}',
1154
- size: 'lg',
1155
- mode: 'horizontal',
1156
- required: true,
1157
- placeholder: i18nRuntime.i18n("85451d2eb59327a23e8f745161066d4a"),
1158
- horizontal: {
1159
- leftFixed: true
1160
- }
1161
- })]
1162
- }])]
1163
- }]
1164
- }, {
1165
- actionLabel: i18nRuntime.i18n("4e34003861eee3de1e0c9c1222249bbb"),
1166
- actionType: 'submit',
1167
- description: i18nRuntime.i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),
1168
- descDetail: function (info) {
1169
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("939d5345ad4345dbaabe14798f6ac0f1"), React__default["default"].createElement("span", {
1170
- className: "variable-left variable-right"
1171
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1172
- },
1173
- supportComponents: 'form',
1174
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput(), {
1175
- name: 'outputVar',
1176
- type: 'input-text',
1177
- label: i18nRuntime.i18n("ac24ffeb131a7a9d2465b3ba7b14e10c"),
1178
- placeholder: i18nRuntime.i18n("0e3517fb21e2c4066bd0ab75c51bc6fb"),
1179
- description: i18nRuntime.i18n("0e2ba6becfa8760853cfa31c9e15a94b"),
1180
- mode: 'horizontal',
1181
- size: 'lg',
1182
- value: 'submitResult',
1183
- required: true
1184
- }], false),
1185
- outputVarDataSchema: [{
1186
- type: 'object',
1187
- title: 'submitResult',
1188
- properties: {
1189
- error: {
1190
- type: 'string',
1191
- title: i18nRuntime.i18n("4604d5023479171cb6e901dbeccf62c0")
1192
- },
1193
- errors: {
1194
- type: 'object',
1195
- title: i18nRuntime.i18n("71f6236494bfc8b023804abb0cca1639")
1196
- },
1197
- payload: {
1198
- type: 'object',
1199
- title: i18nRuntime.i18n("335d6c56c43204f9efcefe36f097d35a")
1200
- },
1201
- responseData: {
1202
- type: 'object',
1203
- title: i18nRuntime.i18n("4e6bfc5ad98f719f9bc6b2ad3b6440ee")
1204
- }
1205
- }
1206
- }]
1207
- }, {
1208
- actionLabel: i18nRuntime.i18n("4a3deab45c0a7218b8ae58a33fd24c28"),
1209
- actionType: 'clear',
1210
- description: i18nRuntime.i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),
1211
- descDetail: function (info) {
1212
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("288f0c404c4e546aa3683ff5054e85e2"), React__default["default"].createElement("span", {
1213
- className: "variable-left variable-right"
1214
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1215
- },
1216
- supportComponents: 'form',
1217
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput()], false)
1218
- }, {
1219
- actionLabel: i18nRuntime.i18n("1b6f5cc49e71c90a5b85a796285e3135"),
1220
- actionType: 'reset',
1221
- description: i18nRuntime.i18n("f457845da8c119a8688e333a3554284f"),
1222
- descDetail: function (info) {
1223
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("4b9c3271dc2f299dc3aeffb369187513"), React__default["default"].createElement("span", {
1224
- className: "variable-left variable-right"
1225
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1226
- },
1227
- supportComponents: 'form',
1228
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput()], false)
1229
- }, {
1230
- actionLabel: i18nRuntime.i18n("17f2bf425eeb7d20d79c595344e9dc94"),
1231
- actionType: 'validate',
1232
- description: i18nRuntime.i18n("a84a1311bea7370f1749341ffa6f75e1"),
1233
- descDetail: function (info) {
1234
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("b7579706a363e5f23b1040fecfbcb677"), React__default["default"].createElement("span", {
1235
- className: "variable-left variable-right"
1236
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1237
- },
1238
- supportComponents: 'form',
1239
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput(), {
1240
- name: 'outputVar',
1241
- type: 'input-text',
1242
- label: i18nRuntime.i18n("bf0f829689370b36d01ce871324e0bb6"),
1243
- placeholder: i18nRuntime.i18n("d23157205c994bde20bb2605c193fd27"),
1244
- description: i18nRuntime.i18n("a422eb12ebbfdd3347c4deb5ec6b4b54"),
1245
- mode: 'horizontal',
1246
- size: 'lg',
1247
- value: 'validateResult',
1248
- required: true
1249
- }], false),
1250
- outputVarDataSchema: [{
1251
- type: 'object',
1252
- title: 'validateResult',
1253
- properties: {
1254
- error: {
1255
- type: 'string',
1256
- title: i18nRuntime.i18n("4604d5023479171cb6e901dbeccf62c0")
1257
- },
1258
- errors: {
1259
- type: 'object',
1260
- title: i18nRuntime.i18n("71f6236494bfc8b023804abb0cca1639")
1261
- },
1262
- payload: {
1263
- type: 'object',
1264
- title: i18nRuntime.i18n("335d6c56c43204f9efcefe36f097d35a")
1265
- }
1266
- }
1267
- }]
1268
- }, {
1269
- actionLabel: i18nRuntime.i18n("1a04578671f6c3bfa2d35a8cbd9d1a9e"),
1270
- actionType: 'validateFormItem',
1271
- description: i18nRuntime.i18n("e4092e07c4613278048c91064f4bfdf7"),
1272
- descDetail: function (info) {
1273
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("b7579706a363e5f23b1040fecfbcb677"), React__default["default"].createElement("span", {
1274
- className: "variable-left variable-right"
1275
- }, (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-'), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1276
- },
1277
- supportComponents: tslib.__spreadArray([], tslib.__read(FORMITEM_CMPTS), false),
1278
- schema: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(renderCmptSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"), true)), false), [renderCmptIdInput(), {
1279
- name: 'outputVar',
1280
- type: 'input-text',
1281
- label: i18nRuntime.i18n("bf0f829689370b36d01ce871324e0bb6"),
1282
- placeholder: i18nRuntime.i18n("d23157205c994bde20bb2605c193fd27"),
1283
- description: i18nRuntime.i18n("a422eb12ebbfdd3347c4deb5ec6b4b54"),
1284
- mode: 'horizontal',
1285
- size: 'lg',
1286
- value: 'validateFormItemResult',
1287
- required: true
1288
- }], false),
1289
- outputVarDataSchema: [{
1290
- type: 'object',
1291
- title: 'validateFormItemResult',
1292
- properties: {
1293
- error: {
1294
- type: 'string',
1295
- title: i18nRuntime.i18n("4604d5023479171cb6e901dbeccf62c0")
1296
- },
1297
- value: {
1298
- type: 'object',
1299
- title: i18nRuntime.i18n("dd39bd1bf78f1b2aec6ed8a05ced6884")
1300
- }
1301
- }
1302
- }]
1303
- }, {
1304
- actionLabel: i18nRuntime.i18n("51325230409d4b7c64aaeb3db9904801"),
1305
- actionType: 'component',
1306
- description: i18nRuntime.i18n("98d130cb9a360df782f6510abacbc022"),
1307
- supportComponents: '*',
1308
- schema: renderCmptActionSelect(i18nRuntime.i18n("6afde638796d237377b0755506d08ded"))
1309
- }]
1310
- }, {
1311
- actionLabel: i18nRuntime.i18n("0d98c74797e49d00bcc4c17c9d557a2b"),
1312
- actionType: 'others',
1313
- children: [{
1314
- actionLabel: i18nRuntime.i18n("6a086902a84969a835423002718e86b4"),
1315
- actionType: 'copy',
1316
- description: i18nRuntime.i18n("557d01c07aa7c4450a414932e6c1ed2a"),
1317
- innerArgs: ['content', 'copyFormat'],
1318
- descDetail: function (info) {
1319
- var _a;
1320
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("5aa4369ec61715ddef3641992fad0d4d"), React__default["default"].createElement("span", {
1321
- className: "variable-left"
1322
- }, ((_a = info === null || info === void 0 ? void 0 : info.args) === null || _a === void 0 ? void 0 : _a.content) || '-'));
1323
- },
1324
- schema: getArgsWrapper({
1325
- type: 'wrapper',
1326
- body: [amisEditorCore.getSchemaTpl('textareaFormulaControl', {
1327
- name: 'content',
1328
- label: i18nRuntime.i18n("ac04259507be8ba6b891dc9dc208f491"),
1329
- variables: '${variables}',
1330
- mode: 'horizontal',
1331
- size: 'lg',
1332
- visibleOn: 'this.actionType === "copy"',
1333
- required: true
1334
- }), {
1335
- type: 'select',
1336
- name: 'copyFormat',
1337
- mode: 'horizontal',
1338
- value: 'text/plain',
1339
- size: 'lg',
1340
- options: [{
1341
- label: i18nRuntime.i18n("ffb01e5bcf4c00447f5150d3cba81371"),
1342
- value: 'text/plain'
1343
- }, {
1344
- label: i18nRuntime.i18n("e2591e971f4c28db7c80a5f546084a1d"),
1345
- value: 'text/html'
1346
- }],
1347
- label: i18nRuntime.i18n("c28f4d63beabc4833b17aaa10ca550db")
1348
- }]
1349
- })
1350
- }, {
1351
- actionLabel: i18nRuntime.i18n("c7f16d729f3bca8f6936416884a74fb8"),
1352
- actionType: 'custom',
1353
- description: i18nRuntime.i18n("1b5a6299ef404c1f7b4292c290b80f55"),
1354
- schema: {
1355
- type: 'js-editor',
1356
- allowFullscreen: true,
1357
- required: true,
1358
- name: 'script',
1359
- label: i18nRuntime.i18n("c7f16d729f3bca8f6936416884a74fb8"),
1360
- mode: 'horizontal',
1361
- options: {
1362
- automaticLayout: true,
1363
- lineNumbers: 'off',
1364
- glyphMargin: false,
1365
- tabSize: 2,
1366
- fontSize: '12px',
1367
- wordWrap: 'on',
1368
- lineDecorationsWidth: 0,
1369
- lineNumbersMinChars: 0,
1370
- selectOnLineNumbers: true,
1371
- scrollBeyondLastLine: false,
1372
- folding: true
1373
- },
1374
- className: 'ae-event-control-action-js-editor',
1375
- value: i18nRuntime.i18n("fbaa94ca6b6e6e76a07124e80733f109")
1376
- }
1377
- }
1378
- // {
1379
- // actionLabel: '广播',
1380
- // actionType: 'broadcast',
1381
- // description: '发送广播事件',
1382
- // schema: {
1383
- // type: 'wrapper',
1384
- // className: 'p-none',
1385
- // body: [
1386
- // {
1387
- // type: 'input-text',
1388
- // name: 'eventName',
1389
- // label: '广播标识',
1390
- // mode: 'horizontal',
1391
- // required: true,
1392
- // description: '广播事件标识派发出去后,其他组件可以进行监听并作出响应'
1393
- // },
1394
- // {
1395
- // type: 'input-text',
1396
- // label: '广播名称',
1397
- // name: 'eventLabel',
1398
- // mode: 'horizontal',
1399
- // required: true
1400
- // },
1401
- // {
1402
- // type: 'textarea',
1403
- // label: '描述',
1404
- // name: 'description',
1405
- // mode: 'horizontal',
1406
- // required: true
1407
- // }
1408
- // ]
1409
- // }
1410
- // }
1411
- ]
1412
- }];
1413
- };
1414
43
  // 渲染组件选择配置项
1415
44
  var renderCmptSelect = function (componentLabel, required, onChange, hideAutoFill) {
1416
45
  return [{
@@ -1458,7 +87,7 @@ var renderCmptActionSelect = function (componentLabel, required, onChange, hideA
1458
87
  form.setValueByName('args.__comboType', undefined);
1459
88
  form.setValueByName('args.__valueInput', undefined);
1460
89
  form.setValueByName('args.__containerType', undefined);
1461
- if (!SELECT_PROPS_CONTAINER.includes(form.data.__rendererName)) return [3 /*break*/, 2];
90
+ if (!constants.SELECT_PROPS_CONTAINER.includes(form.data.__rendererName)) return [3 /*break*/, 2];
1462
91
  return [4 /*yield*/, (_b = (_a = form.data).getContextSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, form.data.__nodeId, true)];
1463
92
  case 1:
1464
93
  contextSchema = _c.sent();
@@ -1534,14 +163,48 @@ var renderCmptIdInput = function (onChange) {
1534
163
  }
1535
164
  };
1536
165
  };
166
+ var getActionCommonProps = function (actionType, info) {
167
+ if (!actionType) {
168
+ console.warn('请传入actionType');
169
+ }
170
+ return COMMON_ACTION_SCHEMA_MAP[actionType];
171
+ };
172
+ var buildLinkActionDesc = function (manager, info) {
173
+ var desc = (info === null || info === void 0 ? void 0 : info.rendererLabel) || info.componentId || '-';
174
+ return React__default["default"].createElement("span", {
175
+ className: "desc-tag variable-left variable-right"
176
+ }, React__default["default"].createElement(amis.TooltipWrapper, {
177
+ rootClose: true,
178
+ placement: "top",
179
+ tooltip: "".concat(desc, "\uFF0C\u70B9\u51FB\u951A\u5B9A\u5230\u8BE5\u7EC4\u4EF6"),
180
+ tooltipClassName: "ae-event-item-header-tip"
181
+ }, React__default["default"].createElement("a", {
182
+ href: "#",
183
+ className: "component-action-tag",
184
+ onClick: function (e) {
185
+ e.preventDefault();
186
+ e.stopPropagation();
187
+ if (/^u:[A-Za-z0-9]{12}$/.test(desc)) {
188
+ amis.toast.info('该组件可能在弹窗内,暂无法锚定到该组件');
189
+ return;
190
+ }
191
+ var schema = amisEditorCore.JSONGetById(manager.store.schema, info.componentId, 'id');
192
+ if (!schema) {
193
+ amis.toast.info('温馨提示:未找到该组件');
194
+ return;
195
+ }
196
+ manager.store.setActiveId(schema.$$id);
197
+ }
198
+ }, desc)));
199
+ };
1537
200
  // 动作配置项schema map
1538
201
  var COMMON_ACTION_SCHEMA_MAP = {
1539
202
  setValue: {
1540
203
  innerArgs: ['value'],
1541
- descDetail: function (info) {
1542
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("e366ccf1556c0672dcecba135ed5472e"), React__default["default"].createElement("span", {
1543
- className: "variable-left variable-right"
1544
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
204
+ descDetail: function (info, context, props) {
205
+ return React__default["default"].createElement("div", {
206
+ className: "action-desc"
207
+ }, i18nRuntime.i18n("e366ccf1556c0672dcecba135ed5472e"), buildLinkActionDesc(props.manager, info), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1545
208
  },
1546
209
  schema: getArgsWrapper({
1547
210
  type: 'wrapper',
@@ -1670,7 +333,7 @@ var COMMON_ACTION_SCHEMA_MAP = {
1670
333
  variables: '${variables}',
1671
334
  size: 'lg',
1672
335
  mode: 'horizontal',
1673
- visibleOn: "(this.__isScopeContainer || ".concat(SHOW_SELECT_PROP, ") && this.__containerType === 'all'"),
336
+ visibleOn: "(this.__isScopeContainer || ".concat(constants.SHOW_SELECT_PROP, ") && this.__containerType === 'all'"),
1674
337
  required: true
1675
338
  }), amisEditorCore.getSchemaTpl('formulaControl', {
1676
339
  name: '__valueInput',
@@ -1687,127 +350,61 @@ var COMMON_ACTION_SCHEMA_MAP = {
1687
350
  })
1688
351
  },
1689
352
  reload: {
1690
- descDetail: function (info) {
1691
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"), React__default["default"].createElement("span", {
1692
- className: "variable-left variable-right"
1693
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
353
+ descDetail: function (info, context, props) {
354
+ return React__default["default"].createElement("div", {
355
+ className: "action-desc"
356
+ }, i18nRuntime.i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"), buildLinkActionDesc(props.manager, info), i18nRuntime.i18n("bb79667f37035e9562ec6bcffd6cf8ef"));
1694
357
  }
1695
358
  },
1696
359
  clear: {
1697
- descDetail: function (info) {
1698
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("288f0c404c4e546aa3683ff5054e85e2"), React__default["default"].createElement("span", {
1699
- className: "variable-left variable-right"
1700
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
360
+ descDetail: function (info, context, props) {
361
+ return React__default["default"].createElement("div", {
362
+ className: "action-desc"
363
+ }, i18nRuntime.i18n("288f0c404c4e546aa3683ff5054e85e2"), buildLinkActionDesc(props.manager, info), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1701
364
  }
1702
365
  },
1703
366
  reset: {
1704
- descDetail: function (info) {
1705
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("4b9c3271dc2f299dc3aeffb369187513"), React__default["default"].createElement("span", {
1706
- className: "variable-left variable-right"
1707
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
367
+ descDetail: function (info, context, props) {
368
+ return React__default["default"].createElement("div", {
369
+ className: "action-desc"
370
+ }, i18nRuntime.i18n("4b9c3271dc2f299dc3aeffb369187513"), buildLinkActionDesc(props.manager, info), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1708
371
  }
1709
372
  },
1710
373
  submit: {
1711
- descDetail: function (info) {
1712
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("939d5345ad4345dbaabe14798f6ac0f1"), React__default["default"].createElement("span", {
1713
- className: "variable-left variable-right"
1714
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), (info === null || info === void 0 ? void 0 : info.__rendererName) === 'wizard' ? i18nRuntime.i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e") : i18nRuntime.i18n("0d83078816aa273f2941c9b55ec82bf3"));
1715
- }
1716
- },
1717
- validate: {
1718
- descDetail: function (info) {
1719
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("b7579706a363e5f23b1040fecfbcb677"), React__default["default"].createElement("span", {
1720
- className: "variable-left variable-right"
1721
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("b91ebe714155c83b6d3bc02b675a31e9"));
1722
- }
1723
- },
1724
- prev: {
1725
- descDetail: function (info) {
1726
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
1727
- className: "variable-right"
1728
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), (info === null || info === void 0 ? void 0 : info.__rendererName) === 'carousel' ? i18nRuntime.i18n("186c8d63db1c09c38bcfd048fb15846e") : null, (info === null || info === void 0 ? void 0 : info.__rendererName) === 'wizard' ? i18nRuntime.i18n("d9b6b8e29d63ac6bb7a0381e994ebcb5") : null);
1729
- }
1730
- },
1731
- next: {
1732
- descDetail: function (info) {
1733
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
1734
- className: "variable-right"
1735
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), (info === null || info === void 0 ? void 0 : info.__rendererName) === 'carousel' ? i18nRuntime.i18n("47b9cbf9f3a3f08264b19f4a1228e865") : null, (info === null || info === void 0 ? void 0 : info.__rendererName) === 'wizard' ? i18nRuntime.i18n("832efcc5c30746b84b910cde8630d491") : null);
1736
- }
1737
- },
1738
- expand: {
1739
- descDetail: function (info) {
1740
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
1741
- className: "variable-right"
1742
- }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("e2edde5adbdf33f6dce59a299cbf5fad"));
374
+ descDetail: function (info, context, props) {
375
+ return React__default["default"].createElement("div", {
376
+ className: "action-desc"
377
+ }, i18nRuntime.i18n("939d5345ad4345dbaabe14798f6ac0f1"), buildLinkActionDesc(props.manager, info), (info === null || info === void 0 ? void 0 : info.__rendererName) === 'wizard' ? i18nRuntime.i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e") : i18nRuntime.i18n("0d83078816aa273f2941c9b55ec82bf3"));
1743
378
  }
1744
379
  },
1745
380
  collapse: {
1746
- descDetail: function (info) {
1747
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
381
+ descDetail: function (info, context, props) {
382
+ return React__default["default"].createElement("div", {
383
+ className: "action-desc"
384
+ }, React__default["default"].createElement("span", {
1748
385
  className: "variable-right"
1749
386
  }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("def9e98b60e3bfc493bcd7693e702096"));
1750
387
  }
1751
388
  },
1752
389
  selectAll: {
1753
- descDetail: function (info) {
1754
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
390
+ descDetail: function (info, context, props) {
391
+ return React__default["default"].createElement("div", {
392
+ className: "action-desc"
393
+ }, React__default["default"].createElement("span", {
1755
394
  className: "variable-right"
1756
395
  }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("8b3a9a5c912610c384bc8dc2c8514386"));
1757
396
  }
1758
397
  },
1759
398
  focus: {
1760
- descDetail: function (info) {
1761
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
399
+ descDetail: function (info, context, props) {
400
+ return React__default["default"].createElement("div", {
401
+ className: "action-desc"
402
+ }, React__default["default"].createElement("span", {
1762
403
  className: "variable-right"
1763
404
  }, info === null || info === void 0 ? void 0 : info.rendererLabel), i18nRuntime.i18n("ab0710b367acefa1d6a78e2338291e86"));
1764
405
  }
1765
- },
1766
- refresh: {
1767
- descDetail: function (info) {
1768
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("39e107b7c4aa580f913ccbebc00f7534"));
1769
- }
1770
- },
1771
- alert: {
1772
- descDetail: function (info) {
1773
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("211ae8c8666f8b803282a74f90fb0dc6"));
1774
- }
1775
- },
1776
- confirm: {
1777
- descDetail: function (info) {
1778
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("56eafb82d11c72b65efe07b9bedb5c19"));
1779
- }
1780
- },
1781
- preview: {
1782
- descDetail: function (info) {
1783
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("9aa70276e6d364abdc0543deccea2dac"));
1784
- }
1785
- },
1786
- zoom: {
1787
- descDetail: function (info) {
1788
- return React__default["default"].createElement("div", null, i18nRuntime.i18n("893a9d45e4df161d0b0c57340631bd2f"));
1789
- }
1790
406
  }
1791
407
  };
1792
- // 获取动作树中指定的动作
1793
- var findActionNode = function (actions, actionType) {
1794
- return amisCore.findTree(actions, function (node) {
1795
- return node.actionType === actionType;
1796
- });
1797
- };
1798
- // 获取包含指定子动作的动作
1799
- var findSubActionNode = function (actions, actionType) {
1800
- return amisCore.findTree(actions, function (node) {
1801
- var _a;
1802
- return (_a = node.actions) === null || _a === void 0 ? void 0 : _a.find(function (item) {
1803
- return item.actionType === actionType;
1804
- });
1805
- });
1806
- };
1807
- // 获取真实的动作类型
1808
- var getActionType = function (action, hasSubActionNode) {
1809
- return action.groupType === 'component' ? 'component' : hasSubActionNode ? hasSubActionNode.actionType : action.actionType;
1810
- };
1811
408
  // 获取事件Label文案
1812
409
  var getEventLabel = function (events, name) {
1813
410
  var _a;
@@ -1828,44 +425,6 @@ var getEventStrongDesc = function (events, name) {
1828
425
  return item.eventName === name;
1829
426
  })) === null || _a === void 0 ? void 0 : _a.strongDesc;
1830
427
  };
1831
- // 判断插件动作中是否存在指定动作
1832
- var hasActionType = function (actionType, actions) {
1833
- if (!Array.isArray(actions)) {
1834
- return false;
1835
- }
1836
- return !!(actions === null || actions === void 0 ? void 0 : actions.find(function (item) {
1837
- return [item.actionType, 'component'].includes(actionType);
1838
- }));
1839
- };
1840
- // 获取动作配置,主要是为了获取config和desc,schema强制捆绑在动作树节点(动作配置可能在插件动作中 > 树节点 or 子动作)
1841
- var getPropOfAcion = function (action, propName, actionTree, pluginActions, commonActions, allComponents) {
1842
- var _a, _b, _c, _d, _e, _f, _g;
1843
- var prop = null;
1844
- if (action.componentId) {
1845
- // 优先从组件特性动作中找
1846
- var node = amisCore.findTree(allComponents !== null && allComponents !== void 0 ? allComponents : [], function (item) {
1847
- return item.value === action.componentId;
1848
- });
1849
- prop = node && ((_b = (_a = pluginActions[node.type]) === null || _a === void 0 ? void 0 : _a.find(function (item) {
1850
- return item.actionType === action.actionType;
1851
- })) === null || _b === void 0 ? void 0 : _b[propName]);
1852
- }
1853
- if (!prop) {
1854
- prop = (_c = findActionNode(actionTree, action.actionType)) === null || _c === void 0 ? void 0 : _c[propName];
1855
- }
1856
- if (!prop) {
1857
- var commonActionConfig = tslib.__assign(tslib.__assign({}, COMMON_ACTION_SCHEMA_MAP), commonActions);
1858
- var hasSubActionNode = findSubActionNode(actionTree, action.actionType);
1859
- if (propName === 'actionLabel') {
1860
- prop = hasSubActionNode === null || hasSubActionNode === void 0 ? void 0 : hasSubActionNode.actionLabel;
1861
- } else {
1862
- prop = (_f = (_e = (_d = hasSubActionNode === null || hasSubActionNode === void 0 ? void 0 : hasSubActionNode.actions) === null || _d === void 0 ? void 0 : _d.find(function (item) {
1863
- return item.actionType === action.actionType;
1864
- })) === null || _e === void 0 ? void 0 : _e[propName]) !== null && _f !== void 0 ? _f : (_g = commonActionConfig[action.actionType]) === null || _g === void 0 ? void 0 : _g[propName];
1865
- }
1866
- }
1867
- return prop;
1868
- };
1869
428
  var getOldActionSchema = function (manager, context) {
1870
429
  var isInDialog = /(?:\/|^)dialog\/.+$/.test(context.path);
1871
430
  return {
@@ -2149,72 +708,16 @@ var getOldActionSchema = function (manager, context) {
2149
708
  }]
2150
709
  };
2151
710
  };
2152
- /**
2153
- * 对象转Combo组件对象数组
2154
- * @param obj
2155
- * @returns
2156
- */
2157
- var objectToComboArray = function (obj) {
2158
- return Object.entries(obj).map(function (_a) {
2159
- var _b = tslib.__read(_a, 2),
2160
- key = _b[0],
2161
- val = _b[1];
2162
- return {
2163
- key: key,
2164
- val: val
2165
- };
2166
- });
2167
- };
2168
- /**
2169
- * Combo组件对象数组转对象
2170
- * @param arr
2171
- * @returns
2172
- */
2173
- var comboArrayToObject = function (arr) {
2174
- var obj = {};
2175
- arr === null || arr === void 0 ? void 0 : arr.forEach(function (item) {
2176
- obj[item.key] = item.val;
2177
- });
2178
- return obj;
2179
- };
2180
711
  /**
2181
712
  * 获取事件动作面板所需属性配置
2182
713
  */
2183
714
  var getEventControlConfig = function (manager, context) {
2184
715
  var _a, _b, _c, _d, _e;
2185
- var isSubEditor = manager.store.isSubEditor;
2186
716
  // 通用动作配置
2187
717
  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);
2188
718
  // 动作树
2189
- 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);
719
+ 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(actionsPanelManager.ACTION_TYPE_TREE()) : actionsPanelManager.ACTION_TYPE_TREE();
2190
720
  var allComponents = (_e = manager === null || manager === void 0 ? void 0 : manager.store) === null || _e === void 0 ? void 0 : _e.getComponentTreeSource();
2191
- var checkComponent = function (node, action) {
2192
- var _a;
2193
- var actionType = action === null || action === void 0 ? void 0 : action.actionType;
2194
- var actions = manager === null || manager === void 0 ? void 0 : manager.pluginActions[node.type];
2195
- var haveChild = !!((_a = node.children) === null || _a === void 0 ? void 0 : _a.length);
2196
- var isSupport = false;
2197
- if (typeof action.supportComponents === 'string') {
2198
- isSupport = action.supportComponents === '*' || action.supportComponents === node.type;
2199
- // 内置逻辑
2200
- if (action.supportComponents === 'byComponent' && actionType) {
2201
- isSupport = hasActionType(actionType, actions);
2202
- node.scoped = isSupport;
2203
- }
2204
- } else if (Array.isArray(action.supportComponents)) {
2205
- isSupport = action.supportComponents.includes(node.type);
2206
- }
2207
- node.isScopeContainer = DATA_CONTAINER.includes(node.type);
2208
- if (actionType === 'component' && !(actions === null || actions === void 0 ? void 0 : actions.length)) {
2209
- node.disabled = true;
2210
- }
2211
- if (isSupport) {
2212
- return true;
2213
- } else if (haveChild) {
2214
- return true;
2215
- }
2216
- return false;
2217
- };
2218
721
  return {
2219
722
  showOldEntry: !!(context.schema.actionType && !['dialog', 'drawer'].includes(context.schema.type)) || ['submit', 'reset'].includes(context.schema.type),
2220
723
  actions: manager === null || manager === void 0 ? void 0 : manager.pluginActions,
@@ -2225,338 +728,10 @@ var getEventControlConfig = function (manager, context) {
2225
728
  addBroadcast: manager === null || manager === void 0 ? void 0 : manager.addBroadcast,
2226
729
  removeBroadcast: manager === null || manager === void 0 ? void 0 : manager.removeBroadcast,
2227
730
  allComponents: allComponents,
2228
- getContextSchemas: function (id, withoutSuper) {
2229
- return tslib.__awaiter(void 0, void 0, void 0, function () {
2230
- var dataSchema;
2231
- return tslib.__generator(this, function (_a) {
2232
- switch (_a.label) {
2233
- case 0:
2234
- return [4 /*yield*/, manager.getContextSchemas(id !== null && id !== void 0 ? id : context.id, withoutSuper)];
2235
- case 1:
2236
- dataSchema = _a.sent();
2237
- // 存在指定id时,只需要当前层上下文
2238
- if (id) {
2239
- return [2 /*return*/, dataSchema];
2240
- }
2241
- return [2 /*return*/, manager.dataSchema];
2242
- }
2243
- });
2244
- });
2245
- },
2246
- getComponents: function (action) {
2247
- var _a;
2248
- if (!action) {
2249
- return [];
2250
- }
2251
- var components = (_a = manager === null || manager === void 0 ? void 0 : manager.store) === null || _a === void 0 ? void 0 : _a.getComponentTreeSource();
2252
- var finalCmpts = [];
2253
- if (isSubEditor) {
2254
- var editorData = manager.store.getSuperEditorData;
2255
- while (components) {
2256
- if (editorData === null || editorData === void 0 ? void 0 : editorData.__curCmptTreeWrap) {
2257
- components = [tslib.__assign(tslib.__assign({}, editorData.__curCmptTreeWrap), {
2258
- children: components
2259
- })];
2260
- }
2261
- finalCmpts = tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(finalCmpts), false), tslib.__read(components), false);
2262
- components = editorData === null || editorData === void 0 ? void 0 : editorData.__superCmptTreeSource;
2263
- editorData = editorData === null || editorData === void 0 ? void 0 : editorData.__super;
2264
- }
2265
- } else {
2266
- finalCmpts = components;
2267
- }
2268
- var result = amisCore.filterTree(finalCmpts, function (node) {
2269
- return checkComponent(node, action);
2270
- }, 1, true);
2271
- result.unshift({
2272
- label: i18nRuntime.i18n("7c80a8d7f7af4e8eeef653c0af82010d"),
2273
- value: 'customCmptId'
2274
- });
2275
- return result;
2276
- },
2277
- actionConfigInitFormatter: function (action) {
2278
- return tslib.__awaiter(void 0, void 0, void 0, function () {
2279
- var config, innerArgs, node, root, schema, __isScopeContainer, comboArray, tmpArgs_1, hasSubActionNode;
2280
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
2281
- return tslib.__generator(this, function (_w) {
2282
- config = tslib.__assign({}, action);
2283
- config.args = tslib.__assign({}, action.args);
2284
- if (['link', 'url'].includes(action.actionType) && ((_a = action.args) === null || _a === void 0 ? void 0 : _a.params)) {
2285
- config.args = tslib.__assign(tslib.__assign({}, config.args), {
2286
- params: objectToComboArray((_b = action.args) === null || _b === void 0 ? void 0 : _b.params)
2287
- });
2288
- }
2289
- if (['setValue'].includes(action.actionType) && ((_c = action.args) === null || _c === void 0 ? void 0 : _c.value)) {
2290
- !config.args && (config.args = {});
2291
- if (Array.isArray((_d = action.args) === null || _d === void 0 ? void 0 : _d.value)) {
2292
- config.args.value = (_e = action.args) === null || _e === void 0 ? void 0 : _e.value.reduce(function (arr, valueItem, index) {
2293
- if (!arr[index]) {
2294
- arr[index] = {};
2295
- }
2296
- arr[index].item = objectToComboArray(valueItem);
2297
- return arr;
2298
- }, []);
2299
- // 目前只有给combo赋值会是数组,所以认为是全量的赋值方式
2300
- config.args['__comboType'] = 'all';
2301
- } else if (typeof ((_f = action.args) === null || _f === void 0 ? void 0 : _f.value) === 'object') {
2302
- config.args.value = objectToComboArray((_g = action.args) === null || _g === void 0 ? void 0 : _g.value);
2303
- config.args['__containerType'] = 'appoint';
2304
- // 如果有index,认为是给指定序号的combo赋值,所以认为是指定序号的赋值方式
2305
- if (action.args.index !== undefined) {
2306
- config.args['__comboType'] = 'appoint';
2307
- }
2308
- } else if (action.actionType === 'setValue' && typeof ((_h = action.args) === null || _h === void 0 ? void 0 : _h.path) === 'string' && typeof ((_j = action.args) === null || _j === void 0 ? void 0 : _j.value) === 'string') {
2309
- /** 应用变量赋值 */
2310
- config.args['__containerType'] = 'all';
2311
- } else if (action.actionType === 'setValue' && typeof ((_k = action.args) === null || _k === void 0 ? void 0 : _k.value) === 'string') {
2312
- config.args['__containerType'] = 'all';
2313
- config.args['__valueInput'] = config.args['value'];
2314
- (_l = config.args) === null || _l === void 0 ? true : delete _l.value;
2315
- }
2316
- }
2317
- if (['show', 'hidden', 'enabled', 'disabled'].includes(action.actionType)) {
2318
- // 兼容老逻辑,初始化actionType
2319
- config.__statusType = action.actionType;
2320
- config.__actionType = 'static';
2321
- }
2322
- if (['usability', 'visibility'].includes(action.actionType)) {
2323
- // 初始化条件参数
2324
- config.__actionExpression = (_m = action.args) === null || _m === void 0 ? void 0 : _m.value;
2325
- }
2326
- if (['ajax', 'download'].includes(action.actionType)) {
2327
- config.api = (_o = action.api) !== null && _o !== void 0 ? _o : (_p = action === null || action === void 0 ? void 0 : action.args) === null || _p === void 0 ? void 0 : _p.api;
2328
- config.options = (_q = action.options) !== null && _q !== void 0 ? _q : (_r = action === null || action === void 0 ? void 0 : action.args) === null || _r === void 0 ? void 0 : _r.options;
2329
- if (typeof (action === null || action === void 0 ? void 0 : action.api) === 'string') {
2330
- config.api = amisCore.normalizeApi(action === null || action === void 0 ? void 0 : action.api);
2331
- }
2332
- delete config.args;
2333
- }
2334
- innerArgs = getPropOfAcion(action, 'innerArgs', actionTree, manager.pluginActions, commonActions);
2335
- // 处理刷新组件动作的追加参数
2336
- if (config.actionType === 'reload') {
2337
- config.__resetPage = (_s = config.args) === null || _s === void 0 ? void 0 : _s.resetPage;
2338
- config.__addParam = !!config.data;
2339
- if (config.data && typeof config.data === 'object' || config.args && Object.keys(config.args).length && config.data === undefined) {
2340
- config.__addParam = true;
2341
- config.__containerType = 'appoint';
2342
- config.dataMergeMode = config.dataMergeMode || 'merge';
2343
- }
2344
- if (config.__addParam && config.data) {
2345
- if (typeof config.data === 'string') {
2346
- config.__containerType = 'all';
2347
- config.__valueInput = config.data;
2348
- } else {
2349
- config.__containerType = 'appoint';
2350
- config.__reloadParams = objectToComboArray(config.data);
2351
- }
2352
- } else if (config.args && Object.keys(config.args).length && config.data === undefined) {
2353
- config.__reloadParams = objectToComboArray(config.args);
2354
- }
2355
- }
2356
- // 如果不在可以选择的组件范围,设置一下自定义输入组件数据
2357
- if (['setValue', 'static', 'nonstatic', 'show', 'visibility', 'hidden', 'enabled', 'disabled', 'usability', 'reload', 'submit', 'clear', 'reset', 'validate'].includes(action.actionType)) {
2358
- node = amisCore.findTree(allComponents !== null && allComponents !== void 0 ? allComponents : [], function (item) {
2359
- return item.value === config.componentId;
2360
- });
2361
- if (!node) {
2362
- config.__cmptId = config.componentId;
2363
- config.componentId = 'customCmptId';
2364
- }
2365
- if (['setValue'].includes(action.actionType)) {
2366
- root = getRootManager(manager);
2367
- schema = amisEditorCore.JSONGetById(root.store.schema, config.__cmptId || action.componentId, 'id');
2368
- if (schema) {
2369
- __isScopeContainer = DATA_CONTAINER.includes(schema.type);
2370
- config.__isScopeContainer = __isScopeContainer;
2371
- config.__rendererName = schema.type;
2372
- }
2373
- }
2374
- }
2375
- delete config.data;
2376
- // 处理下 addItem 的初始化
2377
- if (action.actionType === 'addItem') {
2378
- if (Array.isArray((_t = action.args) === null || _t === void 0 ? void 0 : _t.item)) {
2379
- comboArray = (((_u = action.args) === null || _u === void 0 ? void 0 : _u.item) || []).map(function (raw) {
2380
- return objectToComboArray(raw);
2381
- });
2382
- config.args = tslib.__assign(tslib.__assign({}, config.args), {
2383
- value: comboArray.map(function (combo) {
2384
- return {
2385
- item: combo
2386
- };
2387
- })
2388
- });
2389
- } else {
2390
- config.args = tslib.__assign(tslib.__assign({}, config.args), {
2391
- item: objectToComboArray((_v = action.args) === null || _v === void 0 ? void 0 : _v.item)
2392
- });
2393
- }
2394
- }
2395
- // 还原args为可视化配置结构(args + addOnArgs)
2396
- if (config.args) {
2397
- if (innerArgs) {
2398
- tmpArgs_1 = {};
2399
- config.addOnArgs = [];
2400
- Object.keys(config.args).forEach(function (key) {
2401
- var _a;
2402
- var _b, _c;
2403
- // 筛选出附加配置参数
2404
- if (!innerArgs.includes(key)) {
2405
- config.addOnArgs = tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(config.addOnArgs), false), [{
2406
- key: key,
2407
- val: (_b = config.args) === null || _b === void 0 ? void 0 : _b[key]
2408
- }], false);
2409
- } else {
2410
- tmpArgs_1 = tslib.__assign(tslib.__assign({}, tmpArgs_1), (_a = {}, _a[key] = (_c = config.args) === null || _c === void 0 ? void 0 : _c[key], _a));
2411
- }
2412
- });
2413
- config.args = tmpArgs_1;
2414
- }
2415
- }
2416
- hasSubActionNode = findSubActionNode(actionTree, action.actionType);
2417
- return [2 /*return*/, tslib.__assign(tslib.__assign({}, config), {
2418
- actionType: getActionType(action, hasSubActionNode),
2419
- args: config.args
2420
- })];
2421
- });
2422
- });
2423
- },
2424
- actionConfigSubmitFormatter: function (config, type, actionData, shcema) {
2425
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
2426
- var action = tslib.__assign(tslib.__assign({}, config), {
2427
- groupType: undefined
2428
- });
2429
- action.__title = (_a = findActionNode(actionTree, config.actionType)) === null || _a === void 0 ? void 0 : _a.actionLabel;
2430
- // 修正动作名称
2431
- if (config.actionType === 'component') {
2432
- action.actionType = config.groupType;
2433
- // 标记一下组件特性动作
2434
- action.groupType = config.actionType;
2435
- }
2436
- var hasSubActionNode = findSubActionNode(actionTree, config.groupType);
2437
- if (hasSubActionNode) {
2438
- // 修正动作
2439
- action.actionType = config.groupType;
2440
- }
2441
- // 合并附加的动作参数
2442
- if (config.addOnArgs) {
2443
- config.addOnArgs.forEach(function (args) {
2444
- var _a;
2445
- var _b;
2446
- action.args = (_b = action.args) !== null && _b !== void 0 ? _b : {};
2447
- action.args = tslib.__assign(tslib.__assign({}, action.args), (_a = {}, _a[args.key] = args.val, _a));
2448
- });
2449
- delete action.addOnArgs;
2450
- }
2451
- // 不加回来可能数据会丢失
2452
- ['drawer', 'dialog', 'args'].forEach(function (key) {
2453
- var _a;
2454
- action[key] = (_a = action[key]) !== null && _a !== void 0 ? _a : actionData === null || actionData === void 0 ? void 0 : actionData[key];
2455
- });
2456
- // 刷新组件时,处理是否追加事件变量
2457
- if (config.actionType === 'reload') {
2458
- action.data = undefined;
2459
- action.dataMergeMode = undefined;
2460
- action.args = action.__rendererName === 'crud' ? tslib.__assign(tslib.__assign({}, action.args), {
2461
- resetPage: (_b = config.__resetPage) !== null && _b !== void 0 ? _b : true
2462
- }) : undefined;
2463
- action.data = undefined;
2464
- if (config.__addParam) {
2465
- action.dataMergeMode = config.dataMergeMode || 'merge';
2466
- action.data = config.__containerType === 'all' ? config.__valueInput : comboArrayToObject(config.__reloadParams || []);
2467
- }
2468
- }
2469
- // 转换下格式
2470
- if (['link', 'url'].includes(action.actionType)) {
2471
- var params = (_c = config.args) === null || _c === void 0 ? void 0 : _c.params;
2472
- if (params && params.length) {
2473
- action.args = tslib.__assign(tslib.__assign({}, action.args), {
2474
- params: comboArrayToObject(params)
2475
- });
2476
- }
2477
- }
2478
- if (action.actionType === 'toast') {
2479
- // 配置一个toast组件默认class
2480
- action.args = tslib.__assign(tslib.__assign({}, action.args), {
2481
- className: 'theme-toast-action-scope'
2482
- });
2483
- }
2484
- // 转换下格式
2485
- if (action.actionType === 'setValue') {
2486
- if ((_d = config.args) === null || _d === void 0 ? void 0 : _d.hasOwnProperty('path')) {
2487
- /** 应用变量赋值 */
2488
- action.args = {
2489
- path: config.args.path,
2490
- value: (_f = (_e = config.args) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : ''
2491
- };
2492
- action.hasOwnProperty('componentId') && delete action.componentId;
2493
- return action;
2494
- } else {
2495
- ((_g = action === null || action === void 0 ? void 0 : action.args) === null || _g === void 0 ? void 0 : _g.hasOwnProperty('path')) && delete action.args.path;
2496
- if (((_h = config.args) === null || _h === void 0 ? void 0 : _h.__valueInput) !== undefined) {
2497
- action.args = {
2498
- value: (_j = config.args) === null || _j === void 0 ? void 0 : _j.__valueInput
2499
- };
2500
- } else if (Array.isArray((_k = config.args) === null || _k === void 0 ? void 0 : _k.value)) {
2501
- action.args = (_l = action.args) !== null && _l !== void 0 ? _l : {};
2502
- if ((action.__rendererName === 'combo' || action.__rendererName === 'input-table') && ((_m = action.args) === null || _m === void 0 ? void 0 : _m.index) === undefined) {
2503
- // combo、input-table特殊处理
2504
- var tempArr_1 = [];
2505
- (_o = config.args) === null || _o === void 0 ? void 0 : _o.value.forEach(function (valueItem, index) {
2506
- valueItem.item.forEach(function (item) {
2507
- if (!tempArr_1[index]) {
2508
- tempArr_1[index] = {};
2509
- }
2510
- tempArr_1[index][item.key] = item.val;
2511
- });
2512
- });
2513
- action.args = tslib.__assign(tslib.__assign({}, action.args), {
2514
- value: tempArr_1
2515
- });
2516
- } else {
2517
- action.args = tslib.__assign(tslib.__assign({}, action.args), {
2518
- value: comboArrayToObject((_p = config.args) === null || _p === void 0 ? void 0 : _p.value)
2519
- });
2520
- }
2521
- }
2522
- }
2523
- }
2524
- if (['setValue', 'static', 'nonstatic', 'show', 'visibility', 'hidden', 'enabled', 'disabled', 'usability', 'reload', 'submit', 'clear', 'reset', 'validate'].includes(action.actionType)) {
2525
- // 处理一下自行输入组件id的转换
2526
- if (action.componentId === 'customCmptId') {
2527
- action.componentId = action.__cmptId;
2528
- }
2529
- }
2530
- if (action.actionType === 'addItem' && action.__rendererName === 'combo') {
2531
- action.args = tslib.__assign(tslib.__assign({}, action.args), {
2532
- item: comboArrayToObject((_q = config.args) === null || _q === void 0 ? void 0 : _q.item)
2533
- });
2534
- }
2535
- if (action.actionType === 'addItem' && action.__rendererName === 'input-table') {
2536
- var comboArray = (((_r = config.args) === null || _r === void 0 ? void 0 : _r.value) || []).map(function (combo) {
2537
- return combo.item || {};
2538
- });
2539
- action.args = tslib.__assign(tslib.__assign({}, action.args), {
2540
- item: comboArray.map(function (raw) {
2541
- return comboArrayToObject(raw);
2542
- })
2543
- });
2544
- (_s = action.args) === null || _s === void 0 ? true : delete _s.value;
2545
- }
2546
- // 转换下格式
2547
- if (['visibility', 'usability'].includes(config.actionType)) {
2548
- action.args = action.actionType !== 'static' ? {
2549
- value: action.__actionExpression
2550
- } : undefined;
2551
- action.actionType === 'static' && (action.actionType = config.__statusType);
2552
- delete action.__actionExpression;
2553
- delete action.__statusType;
2554
- }
2555
- delete action.config;
2556
- delete action.__keywords;
2557
- delete action.__resultActionTree;
2558
- return action;
2559
- }
731
+ getContextSchemas: eventControlConfigHelper.getContextSchemasHoc(manager, context),
732
+ getComponents: eventControlConfigHelper.getComponentsHoc(manager),
733
+ actionConfigInitFormatter: eventControlConfigHelper.actionConfigInitFormatterHoc(manager, actionTree, commonActions, allComponents),
734
+ actionConfigSubmitFormatter: eventControlConfigHelper.actionConfigSubmitFormatterHoc(actionTree)
2560
735
  };
2561
736
  };
2562
737
  /**
@@ -2577,28 +752,31 @@ var updateCommonUseActions = function (action) {
2577
752
  });
2578
753
  amisEditorCore.persistSet('common-use-actions', commonUseActions);
2579
754
  };
755
+ var getActionsByRendererName = function (pluginActions, rendererName) {
756
+ var _a;
757
+ var actions = (pluginActions[rendererName] || []).slice();
758
+ // 表单项类型组件,添加校验动作
759
+ if ((_a = amisCore.getRendererByName(rendererName)) === null || _a === void 0 ? void 0 : _a.isFormItem) {
760
+ actions.push({
761
+ actionLabel: i18nRuntime.i18n("b7579706a363e5f23b1040fecfbcb677"),
762
+ description: i18nRuntime.i18n("1889907dcbe32f9e8ac2c9df6603f12e"),
763
+ actionType: 'validateFormItem'
764
+ });
765
+ }
766
+ return actions;
767
+ };
2580
768
 
2581
- exports.ACTION_TYPE_TREE = ACTION_TYPE_TREE;
2582
769
  exports.COMMON_ACTION_SCHEMA_MAP = COMMON_ACTION_SCHEMA_MAP;
2583
- exports.DATA_CONTAINER = DATA_CONTAINER;
2584
- exports.FORMITEM_CMPTS = FORMITEM_CMPTS;
2585
- exports.SELECT_PROPS_CONTAINER = SELECT_PROPS_CONTAINER;
2586
- exports.SHOW_SELECT_PROP = SHOW_SELECT_PROP;
2587
- exports.SUPPORT_DISABLED_CMPTS = SUPPORT_DISABLED_CMPTS;
2588
- exports.SUPPORT_STATIC_FORMITEM_CMPTS = SUPPORT_STATIC_FORMITEM_CMPTS;
2589
- exports.findActionNode = findActionNode;
2590
- exports.findSubActionNode = findSubActionNode;
2591
- exports.getActionType = getActionType;
770
+ exports.buildLinkActionDesc = buildLinkActionDesc;
771
+ exports.getActionCommonProps = getActionCommonProps;
772
+ exports.getActionsByRendererName = getActionsByRendererName;
2592
773
  exports.getArgsWrapper = getArgsWrapper;
2593
774
  exports.getEventControlConfig = getEventControlConfig;
2594
775
  exports.getEventDesc = getEventDesc;
2595
776
  exports.getEventLabel = getEventLabel;
2596
777
  exports.getEventStrongDesc = getEventStrongDesc;
2597
778
  exports.getOldActionSchema = getOldActionSchema;
2598
- exports.getPropOfAcion = getPropOfAcion;
2599
- exports.hasActionType = hasActionType;
2600
779
  exports.renderCmptActionSelect = renderCmptActionSelect;
2601
780
  exports.renderCmptIdInput = renderCmptIdInput;
2602
781
  exports.renderCmptSelect = renderCmptSelect;
2603
782
  exports.updateCommonUseActions = updateCommonUseActions;
2604
- window.amisEditorVersionInfo={version:'6.9.0-rc.1',buildTime:'2024-09-23'};