amis-editor 5.5.0 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (979) hide show
  1. package/esm/builder/ApiDSBuilder.d.ts +491 -0
  2. package/esm/builder/ApiDSBuilder.js +1212 -0
  3. package/esm/builder/DSBuilder.d.ts +171 -0
  4. package/esm/builder/DSBuilder.js +49 -0
  5. package/esm/builder/DSBuilderManager.d.ts +62 -0
  6. package/esm/builder/DSBuilderManager.js +207 -0
  7. package/esm/builder/constants.d.ts +97 -0
  8. package/esm/builder/constants.js +135 -0
  9. package/esm/builder/index.d.ts +6 -0
  10. package/esm/builder/type.d.ts +96 -0
  11. package/esm/builder/utils.d.ts +10 -0
  12. package/esm/builder/utils.js +93 -0
  13. package/esm/component/BaseControl.js +5 -3
  14. package/esm/component/InputComponentName.js +3 -1
  15. package/esm/component/TableViewEditor.d.ts +2 -2
  16. package/esm/component/TableViewEditor.js +4 -2
  17. package/esm/icons/btn/btn-group.svg.js +3 -1
  18. package/esm/icons/btn/btn-select.svg.js +3 -1
  19. package/esm/icons/btn/btn-toolbar.svg.js +3 -1
  20. package/esm/icons/btn/button.svg.js +3 -1
  21. package/esm/icons/btn/dropdown-btn.svg.js +3 -1
  22. package/esm/icons/container/anchor-nav.svg.js +3 -1
  23. package/esm/icons/container/collapse.svg.js +3 -1
  24. package/esm/icons/container/container.svg.js +3 -1
  25. package/esm/icons/container/flex-container.svg.js +3 -1
  26. package/esm/icons/container/form-group.svg.js +3 -1
  27. package/esm/icons/container/grid.svg.js +3 -1
  28. package/esm/icons/container/iframe.svg.js +3 -1
  29. package/esm/icons/container/panel.svg.js +3 -1
  30. package/esm/icons/container/table-view.svg.js +3 -1
  31. package/esm/icons/container/tabs.svg.js +3 -1
  32. package/esm/icons/container/tooltip-wrapper.svg.js +3 -1
  33. package/esm/icons/container/web-component.svg.js +3 -1
  34. package/esm/icons/crud/column-add.svg.js +26 -0
  35. package/esm/icons/crud/column-delete.svg.js +24 -0
  36. package/esm/icons/crud/column-setting.svg.js +24 -0
  37. package/esm/icons/crud/share-link.svg.js +22 -0
  38. package/esm/icons/display/aBaseline.svg.js +4 -1
  39. package/esm/icons/display/aCenter.svg.js +4 -1
  40. package/esm/icons/display/aFlexEnd.svg.js +4 -1
  41. package/esm/icons/display/aFlexStart.svg.js +4 -1
  42. package/esm/icons/display/aStretch.svg.js +4 -1
  43. package/esm/icons/display/block.svg.js +4 -1
  44. package/esm/icons/display/dcolumn.svg.js +4 -1
  45. package/esm/icons/display/dcolumnReverse.svg.js +4 -1
  46. package/esm/icons/display/drow.svg.js +4 -1
  47. package/esm/icons/display/drowReverse.svg.js +4 -1
  48. package/esm/icons/display/flex.svg.js +4 -1
  49. package/esm/icons/display/inline-block.svg.js +4 -1
  50. package/esm/icons/display/inline.svg.js +4 -1
  51. package/esm/icons/display/jCenter.svg.js +4 -1
  52. package/esm/icons/display/jFlexEnd.svg.js +4 -1
  53. package/esm/icons/display/jFlexStart.svg.js +4 -1
  54. package/esm/icons/display/jSpaceAround.svg.js +4 -1
  55. package/esm/icons/display/jSpaceBetween.svg.js +4 -1
  56. package/esm/icons/feat/audio.svg.js +3 -1
  57. package/esm/icons/feat/custom.svg.js +3 -1
  58. package/esm/icons/feat/each.svg.js +3 -1
  59. package/esm/icons/feat/form.svg.js +3 -1
  60. package/esm/icons/feat/nav.svg.js +3 -1
  61. package/esm/icons/feat/qrcode.svg.js +3 -1
  62. package/esm/icons/feat/service.svg.js +3 -1
  63. package/esm/icons/feat/table.svg.js +3 -1
  64. package/esm/icons/feat/tasks.svg.js +3 -1
  65. package/esm/icons/feat/video.svg.js +3 -1
  66. package/esm/icons/feat/wizard.svg.js +3 -1
  67. package/esm/icons/form/chained-select.svg.js +3 -1
  68. package/esm/icons/form/checkbox.svg.js +3 -1
  69. package/esm/icons/form/checkboxes.svg.js +3 -1
  70. package/esm/icons/form/combo.svg.js +3 -1
  71. package/esm/icons/form/condition-builder.svg.js +3 -1
  72. package/esm/icons/form/diff-editor.svg.js +3 -1
  73. package/esm/icons/form/editor.svg.js +3 -1
  74. package/esm/icons/form/formula.svg.js +3 -1
  75. package/esm/icons/form/hidden.svg.js +3 -1
  76. package/esm/icons/form/input-city.svg.js +3 -1
  77. package/esm/icons/form/input-color.svg.js +3 -1
  78. package/esm/icons/form/input-date-range.svg.js +3 -1
  79. package/esm/icons/form/input-date.svg.js +3 -1
  80. package/esm/icons/form/input-datetime.svg.js +3 -1
  81. package/esm/icons/form/input-email.svg.js +3 -1
  82. package/esm/icons/form/input-excel.svg.js +3 -1
  83. package/esm/icons/form/input-file.svg.js +3 -1
  84. package/esm/icons/form/input-group.svg.js +3 -1
  85. package/esm/icons/form/input-image.svg.js +3 -1
  86. package/esm/icons/form/input-kv.svg.js +3 -1
  87. package/esm/icons/form/input-month-range.svg.js +3 -1
  88. package/esm/icons/form/input-number.svg.js +3 -1
  89. package/esm/icons/form/input-password.svg.js +3 -1
  90. package/esm/icons/form/input-quarter-range.svg.js +3 -1
  91. package/esm/icons/form/input-range.svg.js +3 -1
  92. package/esm/icons/form/input-rating.svg.js +3 -1
  93. package/esm/icons/form/input-repeat.svg.js +3 -1
  94. package/esm/icons/form/input-rich-text.svg.js +3 -1
  95. package/esm/icons/form/input-tag.svg.js +3 -1
  96. package/esm/icons/form/input-text.svg.js +3 -1
  97. package/esm/icons/form/input-time-range.svg.js +3 -1
  98. package/esm/icons/form/input-time.svg.js +3 -1
  99. package/esm/icons/form/input-tree.svg.js +3 -1
  100. package/esm/icons/form/input-url.svg.js +3 -1
  101. package/esm/icons/form/input-year.svg.js +3 -1
  102. package/esm/icons/form/inputArray.svg.js +3 -1
  103. package/esm/icons/form/list-select.svg.js +3 -1
  104. package/esm/icons/form/location-picker.svg.js +3 -1
  105. package/esm/icons/form/matrix-checkboxes.svg.js +3 -1
  106. package/esm/icons/form/month.svg.js +3 -1
  107. package/esm/icons/form/nested-select.svg.js +3 -1
  108. package/esm/icons/form/picker.svg.js +3 -1
  109. package/esm/icons/form/quarter.svg.js +3 -1
  110. package/esm/icons/form/radios.svg.js +3 -1
  111. package/esm/icons/form/select.svg.js +3 -1
  112. package/esm/icons/form/static.svg.js +3 -1
  113. package/esm/icons/form/sub-form.svg.js +3 -1
  114. package/esm/icons/form/switch.svg.js +3 -1
  115. package/esm/icons/form/tabs-transfer.svg.js +3 -1
  116. package/esm/icons/form/textarea.svg.js +3 -1
  117. package/esm/icons/form/transfer.svg.js +3 -1
  118. package/esm/icons/form/tree-select.svg.js +3 -1
  119. package/esm/icons/form/uuid.svg.js +3 -1
  120. package/esm/icons/index.js +12 -1
  121. package/esm/icons/layout/layout-1with2.svg.js +3 -1
  122. package/esm/icons/layout/layout-2cols.svg.js +3 -1
  123. package/esm/icons/layout/layout-2row.svg.js +3 -1
  124. package/esm/icons/layout/layout-2with1.svg.js +3 -1
  125. package/esm/icons/layout/layout-3cols.svg.js +3 -1
  126. package/esm/icons/layout/layout-3row.svg.js +3 -1
  127. package/esm/icons/layout/layout-absolute.svg.js +3 -1
  128. package/esm/icons/layout/layout-fixed-top.svg.js +3 -1
  129. package/esm/icons/layout/layout-fixed.svg.js +3 -1
  130. package/esm/icons/layout/layout-free-container.svg.js +3 -1
  131. package/esm/icons/layout/layout-full.svg.js +3 -1
  132. package/esm/icons/layout/layout1-2.svg.js +3 -1
  133. package/esm/icons/layout/layout2-1.svg.js +3 -1
  134. package/esm/icons/layout/layout3-1.svg.js +3 -1
  135. package/esm/icons/layout/layout3-2.svg.js +3 -1
  136. package/esm/icons/other/_fx.svg.js +3 -1
  137. package/esm/icons/other/divider.svg.js +3 -1
  138. package/esm/icons/other/fx.svg.js +3 -1
  139. package/esm/icons/other/property-sheet.svg.js +3 -1
  140. package/esm/icons/other/tooltip.svg.js +3 -1
  141. package/esm/icons/show/URL.svg.js +3 -1
  142. package/esm/icons/show/avatar.svg.js +3 -1
  143. package/esm/icons/show/breadcrumb.svg.js +3 -1
  144. package/esm/icons/show/card.svg.js +3 -1
  145. package/esm/icons/show/cards.svg.js +3 -1
  146. package/esm/icons/show/carousel.svg.js +3 -1
  147. package/esm/icons/show/chart.svg.js +3 -1
  148. package/esm/icons/show/code.svg.js +3 -1
  149. package/esm/icons/show/date.svg.js +3 -1
  150. package/esm/icons/show/datetime.svg.js +3 -1
  151. package/esm/icons/show/image.svg.js +3 -1
  152. package/esm/icons/show/images.svg.js +3 -1
  153. package/esm/icons/show/json-view.svg.js +3 -1
  154. package/esm/icons/show/list.svg.js +3 -1
  155. package/esm/icons/show/log.svg.js +3 -1
  156. package/esm/icons/show/mapping.svg.js +3 -1
  157. package/esm/icons/show/markdown.svg.js +3 -1
  158. package/esm/icons/show/plain.svg.js +3 -1
  159. package/esm/icons/show/progress.svg.js +3 -1
  160. package/esm/icons/show/sparkline.svg.js +3 -1
  161. package/esm/icons/show/status.svg.js +3 -1
  162. package/esm/icons/show/steps.svg.js +3 -1
  163. package/esm/icons/show/time.svg.js +3 -1
  164. package/esm/icons/theme/css.svg.js +3 -1
  165. package/esm/index.d.ts +9 -145
  166. package/esm/index.js +154 -139
  167. package/esm/locale/en-US.js +307 -2
  168. package/esm/locale/zh-CN.js +315 -4
  169. package/esm/plugin/Alert.js +3 -1
  170. package/esm/plugin/AnchorNav.js +5 -3
  171. package/esm/plugin/Audio.js +3 -1
  172. package/esm/plugin/Avatar.js +3 -1
  173. package/esm/plugin/Breadcrumb.js +3 -1
  174. package/esm/plugin/Button.js +5 -3
  175. package/esm/plugin/ButtonGroup.js +3 -1
  176. package/esm/plugin/CRUD.d.ts +4 -3
  177. package/esm/plugin/CRUD.js +29 -23
  178. package/esm/plugin/CRUD2/BaseCRUD.d.ts +233 -0
  179. package/esm/plugin/CRUD2/BaseCRUD.js +1045 -0
  180. package/esm/plugin/CRUD2/CRUDCards.d.ts +53 -0
  181. package/esm/plugin/CRUD2/CRUDList.d.ts +53 -0
  182. package/esm/plugin/CRUD2/CRUDTable.d.ts +21 -0
  183. package/esm/plugin/CRUD2/CRUDTable.js +48 -0
  184. package/esm/plugin/CRUD2/constants.d.ts +32 -0
  185. package/esm/plugin/CRUD2/constants.js +75 -0
  186. package/esm/plugin/CRUD2/utils.d.ts +8 -0
  187. package/esm/plugin/CRUD2/utils.js +91 -0
  188. package/esm/plugin/Card.js +10 -4
  189. package/esm/plugin/Card2.js +3 -1
  190. package/esm/plugin/Cards.d.ts +547 -41
  191. package/esm/plugin/Cards.js +368 -174
  192. package/esm/plugin/Carousel.js +122 -97
  193. package/esm/plugin/Chart.d.ts +3 -0
  194. package/esm/plugin/Chart.js +147 -91
  195. package/esm/plugin/CodeView.js +3 -1
  196. package/esm/plugin/Collapse.d.ts +2 -1
  197. package/esm/plugin/Collapse.js +56 -8
  198. package/esm/plugin/CollapseGroup.js +14 -13
  199. package/esm/plugin/ColumnToggler.d.ts +11 -6
  200. package/esm/plugin/ColumnToggler.js +69 -10
  201. package/esm/plugin/Container.d.ts +4 -1
  202. package/esm/plugin/Container.js +79 -9
  203. package/esm/plugin/Custom.js +5 -3
  204. package/esm/plugin/CustomRegion.js +5 -2
  205. package/esm/plugin/Date.js +3 -1
  206. package/esm/plugin/Datetime.js +3 -1
  207. package/esm/plugin/Dialog.d.ts +26 -3
  208. package/esm/plugin/Dialog.js +217 -23
  209. package/esm/plugin/Divider.js +72 -6
  210. package/esm/plugin/Drawer.d.ts +7 -1
  211. package/esm/plugin/Drawer.js +134 -44
  212. package/esm/plugin/DropDownButton.js +4 -2
  213. package/esm/plugin/Each.d.ts +226 -11
  214. package/esm/plugin/Each.js +238 -89
  215. package/esm/plugin/Flex.js +3 -1
  216. package/esm/plugin/Form/ButtonGroupSelect.d.ts +2 -0
  217. package/esm/plugin/Form/ButtonGroupSelect.js +52 -2
  218. package/esm/plugin/Form/ButtonToolbar.js +3 -1
  219. package/esm/plugin/Form/ChainedSelect.d.ts +2 -0
  220. package/esm/plugin/Form/ChainedSelect.js +43 -3
  221. package/esm/plugin/Form/Checkbox.d.ts +6 -0
  222. package/esm/plugin/Form/Checkbox.js +61 -12
  223. package/esm/plugin/Form/Checkboxes.d.ts +2 -0
  224. package/esm/plugin/Form/Checkboxes.js +66 -22
  225. package/esm/plugin/Form/CodeEditor.js +3 -1
  226. package/esm/plugin/Form/Combo.d.ts +4 -2
  227. package/esm/plugin/Form/Combo.js +79 -6
  228. package/esm/plugin/Form/ConditionBuilder.js +5 -2
  229. package/esm/plugin/Form/Control.js +5 -3
  230. package/esm/plugin/Form/DiffEditor.js +3 -1
  231. package/esm/plugin/Form/FieldSet.js +4 -2
  232. package/esm/plugin/Form/Form.d.ts +37 -8
  233. package/esm/plugin/Form/Form.js +629 -491
  234. package/esm/plugin/Form/Formula.js +3 -1
  235. package/esm/plugin/Form/Group.js +5 -3
  236. package/esm/plugin/Form/Hidden.js +3 -1
  237. package/esm/plugin/Form/InputArray.js +4 -2
  238. package/esm/plugin/Form/InputCity.d.ts +2 -0
  239. package/esm/plugin/Form/InputCity.js +56 -2
  240. package/esm/plugin/Form/InputColor.js +3 -1
  241. package/esm/plugin/Form/InputDate.js +29 -43
  242. package/esm/plugin/Form/InputDateRange.js +42 -31
  243. package/esm/plugin/Form/InputDateTime.js +3 -1
  244. package/esm/plugin/Form/InputDateTimeRange.js +3 -1
  245. package/esm/plugin/Form/InputEmail.js +3 -1
  246. package/esm/plugin/Form/InputExcel.js +3 -1
  247. package/esm/plugin/Form/InputFile.js +8 -2
  248. package/esm/plugin/Form/InputGroup.d.ts +1 -0
  249. package/esm/plugin/Form/InputGroup.js +3 -1
  250. package/esm/plugin/Form/InputImage.js +12 -6
  251. package/esm/plugin/Form/InputKV.js +3 -1
  252. package/esm/plugin/Form/InputMonth.js +3 -1
  253. package/esm/plugin/Form/InputMonthRange.js +3 -1
  254. package/esm/plugin/Form/InputNumber.d.ts +6 -1
  255. package/esm/plugin/Form/InputNumber.js +12 -1
  256. package/esm/plugin/Form/InputPassword.js +3 -1
  257. package/esm/plugin/Form/InputQuarter.js +3 -1
  258. package/esm/plugin/Form/InputQuarterRange.js +3 -1
  259. package/esm/plugin/Form/InputRange.d.ts +21 -1
  260. package/esm/plugin/Form/InputRange.js +50 -35
  261. package/esm/plugin/Form/InputRating.d.ts +6 -0
  262. package/esm/plugin/Form/InputRating.js +12 -1
  263. package/esm/plugin/Form/InputRepeat.js +3 -1
  264. package/esm/plugin/Form/InputRichText.js +3 -1
  265. package/esm/plugin/Form/InputSubForm.js +5 -3
  266. package/esm/plugin/Form/InputTable.d.ts +4 -3
  267. package/esm/plugin/Form/InputTable.js +85 -64
  268. package/esm/plugin/Form/InputTag.d.ts +6 -1
  269. package/esm/plugin/Form/InputTag.js +54 -4
  270. package/esm/plugin/Form/InputText.d.ts +2 -0
  271. package/esm/plugin/Form/InputText.js +51 -1
  272. package/esm/plugin/Form/InputTime.js +3 -1
  273. package/esm/plugin/Form/InputTimeRange.js +3 -1
  274. package/esm/plugin/Form/InputTree.d.ts +2 -1
  275. package/esm/plugin/Form/InputTree.js +98 -35
  276. package/esm/plugin/Form/InputURL.js +3 -1
  277. package/esm/plugin/Form/InputYear.js +3 -1
  278. package/esm/plugin/Form/InputYearRange.js +3 -1
  279. package/esm/plugin/Form/Item.js +20 -15
  280. package/esm/plugin/Form/ListSelect.d.ts +2 -0
  281. package/esm/plugin/Form/ListSelect.js +52 -2
  282. package/esm/plugin/Form/LocationPicker.d.ts +28 -0
  283. package/esm/plugin/Form/LocationPicker.js +34 -1
  284. package/esm/plugin/Form/MatrixCheckboxes.d.ts +1 -2
  285. package/esm/plugin/Form/MatrixCheckboxes.js +32 -6
  286. package/esm/plugin/Form/NestedSelect.d.ts +2 -1
  287. package/esm/plugin/Form/NestedSelect.js +52 -2
  288. package/esm/plugin/Form/Picker.d.ts +2 -1
  289. package/esm/plugin/Form/Picker.js +51 -3
  290. package/esm/plugin/Form/Radios.d.ts +2 -0
  291. package/esm/plugin/Form/Radios.js +33 -2
  292. package/esm/plugin/Form/Select.d.ts +9 -7
  293. package/esm/plugin/Form/Select.js +68 -51
  294. package/esm/plugin/Form/Static.js +5 -3
  295. package/esm/plugin/Form/Switch.d.ts +6 -1
  296. package/esm/plugin/Form/Switch.js +13 -1
  297. package/esm/plugin/Form/TabsTransfer.d.ts +4 -3
  298. package/esm/plugin/Form/TabsTransfer.js +81 -28
  299. package/esm/plugin/Form/Textarea.js +3 -1
  300. package/esm/plugin/Form/Transfer.d.ts +2 -0
  301. package/esm/plugin/Form/Transfer.js +46 -5
  302. package/esm/plugin/Form/TreeSelect.d.ts +2 -1
  303. package/esm/plugin/Form/TreeSelect.js +86 -30
  304. package/esm/plugin/Form/UUID.js +3 -1
  305. package/esm/plugin/Grid.js +13 -8
  306. package/esm/plugin/HBox.js +10 -8
  307. package/esm/plugin/IFrame.js +3 -1
  308. package/esm/plugin/Icon.js +5 -3
  309. package/esm/plugin/Image.js +54 -31
  310. package/esm/plugin/Images.js +22 -10
  311. package/esm/plugin/Json.js +3 -1
  312. package/esm/plugin/Layout/FlexPluginBase.js +18 -16
  313. package/esm/plugin/Layout/Layout_fixed.js +3 -1
  314. package/esm/plugin/Layout/Layout_free_container.js +3 -1
  315. package/esm/plugin/Layout/Layout_sorption_container.js +3 -1
  316. package/esm/plugin/Link.js +17 -5
  317. package/esm/plugin/List.d.ts +5 -0
  318. package/esm/plugin/List.js +59 -23
  319. package/esm/plugin/List2.d.ts +545 -0
  320. package/esm/plugin/List2.js +380 -0
  321. package/esm/plugin/ListItem.js +4 -2
  322. package/esm/plugin/Log.js +6 -4
  323. package/esm/plugin/Mapping.js +3 -1
  324. package/esm/plugin/Markdown.js +3 -1
  325. package/esm/plugin/Nav.d.ts +2 -0
  326. package/esm/plugin/Nav.js +7 -3
  327. package/esm/plugin/OfficeViewer.js +3 -1
  328. package/esm/plugin/Operation.js +4 -3
  329. package/esm/plugin/Others/Action.js +7 -5
  330. package/esm/plugin/Others/TableCell.js +5 -3
  331. package/esm/plugin/Page.d.ts +1 -1
  332. package/esm/plugin/Page.js +66 -20
  333. package/esm/plugin/Pagination.d.ts +0 -1
  334. package/esm/plugin/Pagination.js +35 -19
  335. package/esm/plugin/Panel.js +4 -2
  336. package/esm/plugin/Plain.js +3 -1
  337. package/esm/plugin/Progress.js +37 -10
  338. package/esm/plugin/Property.js +3 -1
  339. package/esm/plugin/QRCode.js +3 -1
  340. package/esm/plugin/Reset.js +3 -1
  341. package/esm/plugin/SearchBox.d.ts +3 -1
  342. package/esm/plugin/SearchBox.js +14 -1
  343. package/esm/plugin/Service.d.ts +20 -13
  344. package/esm/plugin/Service.js +203 -94
  345. package/esm/plugin/Sparkline.d.ts +2 -1
  346. package/esm/plugin/Sparkline.js +32 -9
  347. package/esm/plugin/Status.js +3 -1
  348. package/esm/plugin/Steps.js +3 -1
  349. package/esm/plugin/Submit.js +3 -1
  350. package/esm/plugin/Table.d.ts +10 -1
  351. package/esm/plugin/Table.js +160 -107
  352. package/esm/plugin/Table2.d.ts +24 -10
  353. package/esm/plugin/Table2.js +668 -420
  354. package/esm/plugin/TableCell2.d.ts +14 -2
  355. package/esm/plugin/TableCell2.js +510 -365
  356. package/esm/plugin/TableView.d.ts +2 -1
  357. package/esm/plugin/TableView.js +3 -1
  358. package/esm/plugin/Tabs.d.ts +2 -1
  359. package/esm/plugin/Tabs.js +6 -4
  360. package/esm/plugin/Tag.js +10 -2
  361. package/esm/plugin/Tasks.js +3 -1
  362. package/esm/plugin/Time.js +3 -1
  363. package/esm/plugin/Timeline.d.ts +2 -1
  364. package/esm/plugin/Timeline.js +77 -4
  365. package/esm/plugin/TooltipWrapper.js +12 -9
  366. package/esm/plugin/Tpl.js +21 -3
  367. package/esm/plugin/Video.js +3 -1
  368. package/esm/plugin/WebComponent.js +3 -1
  369. package/esm/plugin/Wizard.js +7 -5
  370. package/esm/plugin/Wrapper.js +10 -8
  371. package/esm/plugin/index.d.ts +144 -0
  372. package/esm/renderer/APIAdaptorControl.d.ts +16 -2
  373. package/esm/renderer/APIAdaptorControl.js +33 -47
  374. package/esm/renderer/APIControl.d.ts +4 -4
  375. package/esm/renderer/APIControl.js +13 -3
  376. package/esm/renderer/ActionApiControl.d.ts +9 -3
  377. package/esm/renderer/BadgeControl.d.ts +7 -7
  378. package/esm/renderer/BadgeControl.js +8 -3
  379. package/esm/renderer/ButtonGroupControl.d.ts +1 -1
  380. package/esm/renderer/ButtonGroupControl.js +3 -1
  381. package/esm/renderer/ColumnControl.d.ts +1 -1
  382. package/esm/renderer/DataBindingControl.d.ts +3 -3
  383. package/esm/renderer/DataBindingControl.js +12 -6
  384. package/esm/renderer/DataMappingControl.js +3 -1
  385. package/esm/renderer/DataPickerControl.d.ts +1 -1
  386. package/esm/renderer/DataPickerControl.js +3 -1
  387. package/esm/renderer/DateShortCutControl.d.ts +3 -2
  388. package/esm/renderer/DateShortCutControl.js +10 -6
  389. package/esm/renderer/ExpressionFormulaControl.d.ts +1 -1
  390. package/esm/renderer/ExpressionFormulaControl.js +4 -2
  391. package/esm/renderer/FeatureControl.d.ts +18 -5
  392. package/esm/renderer/FeatureControl.js +74 -12
  393. package/esm/renderer/FieldSetting.d.ts +66 -0
  394. package/esm/renderer/FieldSetting.js +492 -0
  395. package/esm/renderer/FlexSettingControl.d.ts +1 -1
  396. package/esm/renderer/FlexSettingControl.js +4 -2
  397. package/esm/renderer/FormulaControl.d.ts +8 -3
  398. package/esm/renderer/FormulaControl.js +24 -7
  399. package/esm/renderer/FunctionEditorControl.d.ts +79 -0
  400. package/esm/renderer/FunctionEditorControl.js +107 -0
  401. package/esm/renderer/GoConfigControl.d.ts +1 -1
  402. package/esm/renderer/GoConfigControl.js +4 -2
  403. package/esm/renderer/InputRangeValueControl.d.ts +15 -0
  404. package/esm/renderer/InputRangeValueControl.js +121 -0
  405. package/esm/renderer/MapSourceControl.d.ts +3 -3
  406. package/esm/renderer/MapSourceControl.js +4 -2
  407. package/esm/renderer/NavBadgeControl.d.ts +7 -7
  408. package/esm/renderer/NavBadgeControl.js +3 -1
  409. package/esm/renderer/NavDefaultActive.js +3 -1
  410. package/esm/renderer/NavSourceControl.d.ts +53 -35
  411. package/esm/renderer/NavSourceControl.js +601 -230
  412. package/esm/renderer/OptionControl.d.ts +5 -3
  413. package/esm/renderer/OptionControl.js +37 -25
  414. package/esm/renderer/RangePartsControl.d.ts +5 -5
  415. package/esm/renderer/RangePartsControl.js +6 -4
  416. package/esm/renderer/StatusControl.d.ts +2 -2
  417. package/esm/renderer/StatusControl.js +19 -3
  418. package/esm/renderer/SwitchMoreControl.d.ts +12 -5
  419. package/esm/renderer/SwitchMoreControl.js +23 -8
  420. package/esm/renderer/TableColumnWidthControl.d.ts +29 -0
  421. package/esm/renderer/TableColumnWidthControl.js +177 -0
  422. package/esm/renderer/TimelineItemControl.d.ts +6 -6
  423. package/esm/renderer/TimelineItemControl.js +26 -7
  424. package/esm/renderer/TplFormulaControl.d.ts +1 -1
  425. package/esm/renderer/TplFormulaControl.js +3 -1
  426. package/esm/renderer/TransferTableControl.d.ts +3 -3
  427. package/esm/renderer/TransferTableControl.js +4 -2
  428. package/esm/renderer/TreeOptionControl.d.ts +4 -4
  429. package/esm/renderer/TreeOptionControl.js +15 -13
  430. package/esm/renderer/ValidationControl.d.ts +4 -4
  431. package/esm/renderer/ValidationControl.js +4 -2
  432. package/esm/renderer/ValidationItem.d.ts +3 -3
  433. package/esm/renderer/ValidationItem.js +3 -1
  434. package/esm/renderer/crud2-control/AddColumnModal.d.ts +6 -0
  435. package/esm/renderer/crud2-control/AddColumnModal.js +256 -0
  436. package/esm/renderer/crud2-control/CRUDColumnControl.d.ts +68 -0
  437. package/esm/renderer/crud2-control/CRUDColumnControl.js +473 -0
  438. package/esm/renderer/crud2-control/CRUDFiltersControl.d.ts +53 -0
  439. package/esm/renderer/crud2-control/CRUDFiltersControl.js +691 -0
  440. package/esm/renderer/crud2-control/CRUDToolbarControl.d.ts +49 -0
  441. package/esm/renderer/crud2-control/CRUDToolbarControl.js +417 -0
  442. package/esm/renderer/event-control/action-config-dialog.d.ts +1 -1
  443. package/esm/renderer/event-control/action-config-dialog.js +30 -4
  444. package/esm/renderer/event-control/action-config-panel.js +3 -1
  445. package/esm/renderer/event-control/comp-action-select.d.ts +1 -1
  446. package/esm/renderer/event-control/comp-action-select.js +3 -1
  447. package/esm/renderer/event-control/helper.d.ts +2 -1
  448. package/esm/renderer/event-control/helper.js +307 -206
  449. package/esm/renderer/event-control/index.d.ts +28 -19
  450. package/esm/renderer/event-control/index.js +115 -22
  451. package/esm/renderer/style-control/Background.d.ts +1 -1
  452. package/esm/renderer/style-control/Background.js +3 -1
  453. package/esm/renderer/style-control/Border.d.ts +2 -2
  454. package/esm/renderer/style-control/Border.js +10 -8
  455. package/esm/renderer/style-control/BoxModel.d.ts +2 -2
  456. package/esm/renderer/style-control/BoxModel.js +3 -1
  457. package/esm/renderer/style-control/BoxShadow.d.ts +2 -2
  458. package/esm/renderer/style-control/BoxShadow.js +3 -1
  459. package/esm/renderer/style-control/Display.d.ts +1 -1
  460. package/esm/renderer/style-control/Display.js +3 -1
  461. package/esm/renderer/style-control/Font.d.ts +1 -1
  462. package/esm/renderer/style-control/Font.js +3 -1
  463. package/esm/renderer/style-control/InsetBoxModel.d.ts +2 -2
  464. package/esm/renderer/style-control/InsetBoxModel.js +3 -1
  465. package/esm/renderer/style-control/ThemeCssCode.d.ts +1 -1
  466. package/esm/renderer/style-control/ThemeCssCode.js +134 -282
  467. package/esm/renderer/style-control/font-family.js +3 -1
  468. package/esm/renderer/style-control/helper.js +3 -1
  469. package/esm/renderer/style-control/transformation.js +3 -1
  470. package/esm/renderer/textarea-formula/FormulaPicker.js +5 -3
  471. package/esm/renderer/textarea-formula/TextareaFormulaControl.d.ts +3 -1
  472. package/esm/renderer/textarea-formula/TextareaFormulaControl.js +77 -8
  473. package/esm/renderer/textarea-formula/plugin.js +5 -3
  474. package/esm/tpl/api.js +16 -11
  475. package/esm/tpl/common.js +60 -18
  476. package/esm/tpl/horizontal.js +4 -2
  477. package/esm/tpl/layout.js +16 -10
  478. package/esm/tpl/options.d.ts +10 -1
  479. package/esm/tpl/options.js +251 -11
  480. package/esm/tpl/remark.js +3 -1
  481. package/esm/tpl/style.js +99 -60
  482. package/esm/tpl/validations.js +3 -1
  483. package/esm/util.d.ts +14 -0
  484. package/esm/util.js +39 -3
  485. package/esm/validator.js +7 -5
  486. package/lib/builder/ApiDSBuilder.d.ts +491 -0
  487. package/lib/builder/ApiDSBuilder.js +1226 -0
  488. package/lib/builder/DSBuilder.d.ts +171 -0
  489. package/lib/builder/DSBuilder.js +55 -0
  490. package/lib/builder/DSBuilderManager.d.ts +62 -0
  491. package/lib/builder/DSBuilderManager.js +211 -0
  492. package/lib/builder/constants.d.ts +97 -0
  493. package/lib/builder/constants.js +144 -0
  494. package/lib/builder/index.d.ts +6 -0
  495. package/lib/builder/type.d.ts +96 -0
  496. package/lib/builder/utils.d.ts +10 -0
  497. package/lib/builder/utils.js +104 -0
  498. package/lib/component/BaseControl.js +5 -3
  499. package/lib/component/InputComponentName.js +3 -1
  500. package/lib/component/TableViewEditor.d.ts +2 -2
  501. package/lib/component/TableViewEditor.js +4 -2
  502. package/lib/icons/btn/btn-group.svg.js +3 -1
  503. package/lib/icons/btn/btn-select.svg.js +3 -1
  504. package/lib/icons/btn/btn-toolbar.svg.js +3 -1
  505. package/lib/icons/btn/button.svg.js +3 -1
  506. package/lib/icons/btn/dropdown-btn.svg.js +3 -1
  507. package/lib/icons/container/anchor-nav.svg.js +3 -1
  508. package/lib/icons/container/collapse.svg.js +3 -1
  509. package/lib/icons/container/container.svg.js +3 -1
  510. package/lib/icons/container/flex-container.svg.js +3 -1
  511. package/lib/icons/container/form-group.svg.js +3 -1
  512. package/lib/icons/container/grid.svg.js +3 -1
  513. package/lib/icons/container/iframe.svg.js +3 -1
  514. package/lib/icons/container/panel.svg.js +3 -1
  515. package/lib/icons/container/table-view.svg.js +3 -1
  516. package/lib/icons/container/tabs.svg.js +3 -1
  517. package/lib/icons/container/tooltip-wrapper.svg.js +3 -1
  518. package/lib/icons/container/web-component.svg.js +3 -1
  519. package/lib/icons/crud/column-add.svg.js +50 -0
  520. package/lib/icons/crud/column-delete.svg.js +48 -0
  521. package/lib/icons/crud/column-setting.svg.js +48 -0
  522. package/lib/icons/crud/share-link.svg.js +46 -0
  523. package/lib/icons/display/aBaseline.svg.js +19 -16
  524. package/lib/icons/display/aCenter.svg.js +19 -16
  525. package/lib/icons/display/aFlexEnd.svg.js +19 -16
  526. package/lib/icons/display/aFlexStart.svg.js +19 -16
  527. package/lib/icons/display/aStretch.svg.js +19 -16
  528. package/lib/icons/display/block.svg.js +19 -16
  529. package/lib/icons/display/dcolumn.svg.js +19 -16
  530. package/lib/icons/display/dcolumnReverse.svg.js +19 -16
  531. package/lib/icons/display/drow.svg.js +19 -16
  532. package/lib/icons/display/drowReverse.svg.js +19 -16
  533. package/lib/icons/display/flex.svg.js +19 -16
  534. package/lib/icons/display/inline-block.svg.js +19 -16
  535. package/lib/icons/display/inline.svg.js +19 -16
  536. package/lib/icons/display/jCenter.svg.js +19 -16
  537. package/lib/icons/display/jFlexEnd.svg.js +19 -16
  538. package/lib/icons/display/jFlexStart.svg.js +19 -16
  539. package/lib/icons/display/jSpaceAround.svg.js +19 -16
  540. package/lib/icons/display/jSpaceBetween.svg.js +19 -16
  541. package/lib/icons/feat/audio.svg.js +3 -1
  542. package/lib/icons/feat/custom.svg.js +3 -1
  543. package/lib/icons/feat/each.svg.js +3 -1
  544. package/lib/icons/feat/form.svg.js +3 -1
  545. package/lib/icons/feat/nav.svg.js +3 -1
  546. package/lib/icons/feat/qrcode.svg.js +3 -1
  547. package/lib/icons/feat/service.svg.js +3 -1
  548. package/lib/icons/feat/table.svg.js +3 -1
  549. package/lib/icons/feat/tasks.svg.js +3 -1
  550. package/lib/icons/feat/video.svg.js +3 -1
  551. package/lib/icons/feat/wizard.svg.js +3 -1
  552. package/lib/icons/form/chained-select.svg.js +3 -1
  553. package/lib/icons/form/checkbox.svg.js +3 -1
  554. package/lib/icons/form/checkboxes.svg.js +3 -1
  555. package/lib/icons/form/combo.svg.js +3 -1
  556. package/lib/icons/form/condition-builder.svg.js +3 -1
  557. package/lib/icons/form/diff-editor.svg.js +3 -1
  558. package/lib/icons/form/editor.svg.js +3 -1
  559. package/lib/icons/form/formula.svg.js +3 -1
  560. package/lib/icons/form/hidden.svg.js +3 -1
  561. package/lib/icons/form/input-city.svg.js +3 -1
  562. package/lib/icons/form/input-color.svg.js +3 -1
  563. package/lib/icons/form/input-date-range.svg.js +3 -1
  564. package/lib/icons/form/input-date.svg.js +3 -1
  565. package/lib/icons/form/input-datetime.svg.js +3 -1
  566. package/lib/icons/form/input-email.svg.js +3 -1
  567. package/lib/icons/form/input-excel.svg.js +3 -1
  568. package/lib/icons/form/input-file.svg.js +3 -1
  569. package/lib/icons/form/input-group.svg.js +3 -1
  570. package/lib/icons/form/input-image.svg.js +3 -1
  571. package/lib/icons/form/input-kv.svg.js +3 -1
  572. package/lib/icons/form/input-month-range.svg.js +3 -1
  573. package/lib/icons/form/input-number.svg.js +3 -1
  574. package/lib/icons/form/input-password.svg.js +3 -1
  575. package/lib/icons/form/input-quarter-range.svg.js +3 -1
  576. package/lib/icons/form/input-range.svg.js +3 -1
  577. package/lib/icons/form/input-rating.svg.js +3 -1
  578. package/lib/icons/form/input-repeat.svg.js +3 -1
  579. package/lib/icons/form/input-rich-text.svg.js +3 -1
  580. package/lib/icons/form/input-tag.svg.js +3 -1
  581. package/lib/icons/form/input-text.svg.js +3 -1
  582. package/lib/icons/form/input-time-range.svg.js +3 -1
  583. package/lib/icons/form/input-time.svg.js +3 -1
  584. package/lib/icons/form/input-tree.svg.js +3 -1
  585. package/lib/icons/form/input-url.svg.js +3 -1
  586. package/lib/icons/form/input-year.svg.js +3 -1
  587. package/lib/icons/form/inputArray.svg.js +3 -1
  588. package/lib/icons/form/list-select.svg.js +3 -1
  589. package/lib/icons/form/location-picker.svg.js +3 -1
  590. package/lib/icons/form/matrix-checkboxes.svg.js +3 -1
  591. package/lib/icons/form/month.svg.js +3 -1
  592. package/lib/icons/form/nested-select.svg.js +3 -1
  593. package/lib/icons/form/picker.svg.js +3 -1
  594. package/lib/icons/form/quarter.svg.js +3 -1
  595. package/lib/icons/form/radios.svg.js +3 -1
  596. package/lib/icons/form/select.svg.js +3 -1
  597. package/lib/icons/form/static.svg.js +3 -1
  598. package/lib/icons/form/sub-form.svg.js +3 -1
  599. package/lib/icons/form/switch.svg.js +3 -1
  600. package/lib/icons/form/tabs-transfer.svg.js +3 -1
  601. package/lib/icons/form/textarea.svg.js +3 -1
  602. package/lib/icons/form/transfer.svg.js +3 -1
  603. package/lib/icons/form/tree-select.svg.js +3 -1
  604. package/lib/icons/form/uuid.svg.js +3 -1
  605. package/lib/icons/index.js +12 -1
  606. package/lib/icons/layout/layout-1with2.svg.js +3 -1
  607. package/lib/icons/layout/layout-2cols.svg.js +3 -1
  608. package/lib/icons/layout/layout-2row.svg.js +3 -1
  609. package/lib/icons/layout/layout-2with1.svg.js +3 -1
  610. package/lib/icons/layout/layout-3cols.svg.js +3 -1
  611. package/lib/icons/layout/layout-3row.svg.js +3 -1
  612. package/lib/icons/layout/layout-absolute.svg.js +3 -1
  613. package/lib/icons/layout/layout-fixed-top.svg.js +3 -1
  614. package/lib/icons/layout/layout-fixed.svg.js +3 -1
  615. package/lib/icons/layout/layout-free-container.svg.js +3 -1
  616. package/lib/icons/layout/layout-full.svg.js +3 -1
  617. package/lib/icons/layout/layout1-2.svg.js +3 -1
  618. package/lib/icons/layout/layout2-1.svg.js +3 -1
  619. package/lib/icons/layout/layout3-1.svg.js +3 -1
  620. package/lib/icons/layout/layout3-2.svg.js +3 -1
  621. package/lib/icons/other/_fx.svg.js +3 -1
  622. package/lib/icons/other/divider.svg.js +3 -1
  623. package/lib/icons/other/fx.svg.js +3 -1
  624. package/lib/icons/other/property-sheet.svg.js +3 -1
  625. package/lib/icons/other/tooltip.svg.js +3 -1
  626. package/lib/icons/show/URL.svg.js +3 -1
  627. package/lib/icons/show/avatar.svg.js +3 -1
  628. package/lib/icons/show/breadcrumb.svg.js +3 -1
  629. package/lib/icons/show/card.svg.js +3 -1
  630. package/lib/icons/show/cards.svg.js +3 -1
  631. package/lib/icons/show/carousel.svg.js +3 -1
  632. package/lib/icons/show/chart.svg.js +3 -1
  633. package/lib/icons/show/code.svg.js +3 -1
  634. package/lib/icons/show/date.svg.js +3 -1
  635. package/lib/icons/show/datetime.svg.js +3 -1
  636. package/lib/icons/show/image.svg.js +3 -1
  637. package/lib/icons/show/images.svg.js +3 -1
  638. package/lib/icons/show/json-view.svg.js +3 -1
  639. package/lib/icons/show/list.svg.js +3 -1
  640. package/lib/icons/show/log.svg.js +3 -1
  641. package/lib/icons/show/mapping.svg.js +3 -1
  642. package/lib/icons/show/markdown.svg.js +3 -1
  643. package/lib/icons/show/plain.svg.js +3 -1
  644. package/lib/icons/show/progress.svg.js +3 -1
  645. package/lib/icons/show/sparkline.svg.js +3 -1
  646. package/lib/icons/show/status.svg.js +3 -1
  647. package/lib/icons/show/steps.svg.js +3 -1
  648. package/lib/icons/show/time.svg.js +3 -1
  649. package/lib/icons/theme/css.svg.js +3 -1
  650. package/lib/index.d.ts +9 -145
  651. package/lib/index.js +322 -139
  652. package/lib/locale/en-US.js +307 -2
  653. package/lib/locale/zh-CN.js +315 -4
  654. package/lib/plugin/Alert.js +3 -1
  655. package/lib/plugin/AnchorNav.js +5 -3
  656. package/lib/plugin/Audio.js +3 -1
  657. package/lib/plugin/Avatar.js +3 -1
  658. package/lib/plugin/Breadcrumb.js +3 -1
  659. package/lib/plugin/Button.js +5 -3
  660. package/lib/plugin/ButtonGroup.js +3 -1
  661. package/lib/plugin/CRUD.d.ts +4 -3
  662. package/lib/plugin/CRUD.js +29 -23
  663. package/lib/plugin/CRUD2/BaseCRUD.d.ts +233 -0
  664. package/lib/plugin/CRUD2/BaseCRUD.js +1060 -0
  665. package/lib/plugin/CRUD2/CRUDCards.d.ts +53 -0
  666. package/lib/plugin/CRUD2/CRUDList.d.ts +53 -0
  667. package/lib/plugin/CRUD2/CRUDTable.d.ts +21 -0
  668. package/lib/plugin/CRUD2/CRUDTable.js +52 -0
  669. package/lib/plugin/CRUD2/constants.d.ts +32 -0
  670. package/lib/plugin/CRUD2/constants.js +81 -0
  671. package/lib/plugin/CRUD2/utils.d.ts +8 -0
  672. package/lib/plugin/CRUD2/utils.js +103 -0
  673. package/lib/plugin/Card.js +10 -4
  674. package/lib/plugin/Card2.js +3 -1
  675. package/lib/plugin/Cards.d.ts +547 -41
  676. package/lib/plugin/Cards.js +365 -171
  677. package/lib/plugin/Carousel.js +122 -97
  678. package/lib/plugin/Chart.d.ts +3 -0
  679. package/lib/plugin/Chart.js +145 -89
  680. package/lib/plugin/CodeView.js +3 -1
  681. package/lib/plugin/Collapse.d.ts +2 -1
  682. package/lib/plugin/Collapse.js +56 -8
  683. package/lib/plugin/CollapseGroup.js +14 -13
  684. package/lib/plugin/ColumnToggler.d.ts +11 -6
  685. package/lib/plugin/ColumnToggler.js +72 -9
  686. package/lib/plugin/Container.d.ts +4 -1
  687. package/lib/plugin/Container.js +79 -9
  688. package/lib/plugin/Custom.js +5 -3
  689. package/lib/plugin/CustomRegion.js +5 -2
  690. package/lib/plugin/Date.js +3 -1
  691. package/lib/plugin/Datetime.js +3 -1
  692. package/lib/plugin/Dialog.d.ts +26 -3
  693. package/lib/plugin/Dialog.js +215 -20
  694. package/lib/plugin/Divider.js +72 -6
  695. package/lib/plugin/Drawer.d.ts +7 -1
  696. package/lib/plugin/Drawer.js +136 -42
  697. package/lib/plugin/DropDownButton.js +4 -2
  698. package/lib/plugin/Each.d.ts +226 -11
  699. package/lib/plugin/Each.js +234 -89
  700. package/lib/plugin/Flex.js +3 -1
  701. package/lib/plugin/Form/ButtonGroupSelect.d.ts +2 -0
  702. package/lib/plugin/Form/ButtonGroupSelect.js +52 -2
  703. package/lib/plugin/Form/ButtonToolbar.js +3 -1
  704. package/lib/plugin/Form/ChainedSelect.d.ts +2 -0
  705. package/lib/plugin/Form/ChainedSelect.js +43 -3
  706. package/lib/plugin/Form/Checkbox.d.ts +6 -0
  707. package/lib/plugin/Form/Checkbox.js +65 -12
  708. package/lib/plugin/Form/Checkboxes.d.ts +2 -0
  709. package/lib/plugin/Form/Checkboxes.js +66 -22
  710. package/lib/plugin/Form/CodeEditor.js +3 -1
  711. package/lib/plugin/Form/Combo.d.ts +4 -2
  712. package/lib/plugin/Form/Combo.js +78 -5
  713. package/lib/plugin/Form/ConditionBuilder.js +9 -4
  714. package/lib/plugin/Form/Control.js +5 -3
  715. package/lib/plugin/Form/DiffEditor.js +3 -1
  716. package/lib/plugin/Form/FieldSet.js +4 -2
  717. package/lib/plugin/Form/Form.d.ts +37 -8
  718. package/lib/plugin/Form/Form.js +633 -489
  719. package/lib/plugin/Form/Formula.js +3 -1
  720. package/lib/plugin/Form/Group.js +5 -3
  721. package/lib/plugin/Form/Hidden.js +3 -1
  722. package/lib/plugin/Form/InputArray.js +4 -2
  723. package/lib/plugin/Form/InputCity.d.ts +2 -0
  724. package/lib/plugin/Form/InputCity.js +56 -2
  725. package/lib/plugin/Form/InputColor.js +3 -1
  726. package/lib/plugin/Form/InputDate.js +29 -43
  727. package/lib/plugin/Form/InputDateRange.js +42 -31
  728. package/lib/plugin/Form/InputDateTime.js +3 -1
  729. package/lib/plugin/Form/InputDateTimeRange.js +3 -1
  730. package/lib/plugin/Form/InputEmail.js +3 -1
  731. package/lib/plugin/Form/InputExcel.js +3 -1
  732. package/lib/plugin/Form/InputFile.js +8 -2
  733. package/lib/plugin/Form/InputGroup.d.ts +1 -0
  734. package/lib/plugin/Form/InputGroup.js +3 -1
  735. package/lib/plugin/Form/InputImage.js +12 -6
  736. package/lib/plugin/Form/InputKV.js +3 -1
  737. package/lib/plugin/Form/InputMonth.js +3 -1
  738. package/lib/plugin/Form/InputMonthRange.js +3 -1
  739. package/lib/plugin/Form/InputNumber.d.ts +6 -1
  740. package/lib/plugin/Form/InputNumber.js +12 -1
  741. package/lib/plugin/Form/InputPassword.js +3 -1
  742. package/lib/plugin/Form/InputQuarter.js +3 -1
  743. package/lib/plugin/Form/InputQuarterRange.js +3 -1
  744. package/lib/plugin/Form/InputRange.d.ts +21 -1
  745. package/lib/plugin/Form/InputRange.js +50 -35
  746. package/lib/plugin/Form/InputRating.d.ts +6 -0
  747. package/lib/plugin/Form/InputRating.js +12 -1
  748. package/lib/plugin/Form/InputRepeat.js +3 -1
  749. package/lib/plugin/Form/InputRichText.js +3 -1
  750. package/lib/plugin/Form/InputSubForm.js +5 -3
  751. package/lib/plugin/Form/InputTable.d.ts +4 -3
  752. package/lib/plugin/Form/InputTable.js +82 -61
  753. package/lib/plugin/Form/InputTag.d.ts +6 -1
  754. package/lib/plugin/Form/InputTag.js +54 -4
  755. package/lib/plugin/Form/InputText.d.ts +2 -0
  756. package/lib/plugin/Form/InputText.js +51 -1
  757. package/lib/plugin/Form/InputTime.js +3 -1
  758. package/lib/plugin/Form/InputTimeRange.js +3 -1
  759. package/lib/plugin/Form/InputTree.d.ts +2 -1
  760. package/lib/plugin/Form/InputTree.js +98 -35
  761. package/lib/plugin/Form/InputURL.js +3 -1
  762. package/lib/plugin/Form/InputYear.js +3 -1
  763. package/lib/plugin/Form/InputYearRange.js +3 -1
  764. package/lib/plugin/Form/Item.js +20 -15
  765. package/lib/plugin/Form/ListSelect.d.ts +2 -0
  766. package/lib/plugin/Form/ListSelect.js +52 -2
  767. package/lib/plugin/Form/LocationPicker.d.ts +28 -0
  768. package/lib/plugin/Form/LocationPicker.js +34 -1
  769. package/lib/plugin/Form/MatrixCheckboxes.d.ts +1 -2
  770. package/lib/plugin/Form/MatrixCheckboxes.js +32 -6
  771. package/lib/plugin/Form/NestedSelect.d.ts +2 -1
  772. package/lib/plugin/Form/NestedSelect.js +52 -2
  773. package/lib/plugin/Form/Picker.d.ts +2 -1
  774. package/lib/plugin/Form/Picker.js +51 -3
  775. package/lib/plugin/Form/Radios.d.ts +2 -0
  776. package/lib/plugin/Form/Radios.js +33 -2
  777. package/lib/plugin/Form/Select.d.ts +9 -7
  778. package/lib/plugin/Form/Select.js +68 -51
  779. package/lib/plugin/Form/Static.js +5 -3
  780. package/lib/plugin/Form/Switch.d.ts +6 -1
  781. package/lib/plugin/Form/Switch.js +13 -1
  782. package/lib/plugin/Form/TabsTransfer.d.ts +4 -3
  783. package/lib/plugin/Form/TabsTransfer.js +80 -27
  784. package/lib/plugin/Form/Textarea.js +3 -1
  785. package/lib/plugin/Form/Transfer.d.ts +2 -0
  786. package/lib/plugin/Form/Transfer.js +46 -5
  787. package/lib/plugin/Form/TreeSelect.d.ts +2 -1
  788. package/lib/plugin/Form/TreeSelect.js +86 -30
  789. package/lib/plugin/Form/UUID.js +3 -1
  790. package/lib/plugin/Grid.js +13 -8
  791. package/lib/plugin/HBox.js +10 -8
  792. package/lib/plugin/IFrame.js +3 -1
  793. package/lib/plugin/Icon.js +5 -3
  794. package/lib/plugin/Image.js +54 -31
  795. package/lib/plugin/Images.js +22 -10
  796. package/lib/plugin/Json.js +3 -1
  797. package/lib/plugin/Layout/FlexPluginBase.js +18 -16
  798. package/lib/plugin/Layout/Layout_fixed.js +3 -1
  799. package/lib/plugin/Layout/Layout_free_container.js +3 -1
  800. package/lib/plugin/Layout/Layout_sorption_container.js +3 -1
  801. package/lib/plugin/Link.js +17 -5
  802. package/lib/plugin/List.d.ts +5 -0
  803. package/lib/plugin/List.js +58 -21
  804. package/lib/plugin/List2.d.ts +545 -0
  805. package/lib/plugin/List2.js +388 -0
  806. package/lib/plugin/ListItem.js +4 -2
  807. package/lib/plugin/Log.js +6 -4
  808. package/lib/plugin/Mapping.js +3 -1
  809. package/lib/plugin/Markdown.js +3 -1
  810. package/lib/plugin/Nav.d.ts +2 -0
  811. package/lib/plugin/Nav.js +7 -3
  812. package/lib/plugin/OfficeViewer.js +3 -1
  813. package/lib/plugin/Operation.js +4 -3
  814. package/lib/plugin/Others/Action.js +7 -5
  815. package/lib/plugin/Others/TableCell.js +5 -3
  816. package/lib/plugin/Page.d.ts +1 -1
  817. package/lib/plugin/Page.js +65 -23
  818. package/lib/plugin/Pagination.d.ts +0 -1
  819. package/lib/plugin/Pagination.js +38 -18
  820. package/lib/plugin/Panel.js +4 -2
  821. package/lib/plugin/Plain.js +3 -1
  822. package/lib/plugin/Progress.js +37 -10
  823. package/lib/plugin/Property.js +3 -1
  824. package/lib/plugin/QRCode.js +3 -1
  825. package/lib/plugin/Reset.js +3 -1
  826. package/lib/plugin/SearchBox.d.ts +3 -1
  827. package/lib/plugin/SearchBox.js +14 -1
  828. package/lib/plugin/Service.d.ts +20 -13
  829. package/lib/plugin/Service.js +201 -92
  830. package/lib/plugin/Sparkline.d.ts +2 -1
  831. package/lib/plugin/Sparkline.js +31 -8
  832. package/lib/plugin/Status.js +3 -1
  833. package/lib/plugin/Steps.js +3 -1
  834. package/lib/plugin/Submit.js +3 -1
  835. package/lib/plugin/Table.d.ts +10 -1
  836. package/lib/plugin/Table.js +159 -106
  837. package/lib/plugin/Table2.d.ts +24 -10
  838. package/lib/plugin/Table2.js +672 -418
  839. package/lib/plugin/TableCell2.d.ts +14 -2
  840. package/lib/plugin/TableCell2.js +509 -362
  841. package/lib/plugin/TableView.d.ts +2 -1
  842. package/lib/plugin/TableView.js +3 -1
  843. package/lib/plugin/Tabs.d.ts +2 -1
  844. package/lib/plugin/Tabs.js +6 -4
  845. package/lib/plugin/Tag.js +10 -2
  846. package/lib/plugin/Tasks.js +3 -1
  847. package/lib/plugin/Time.js +3 -1
  848. package/lib/plugin/Timeline.d.ts +2 -1
  849. package/lib/plugin/Timeline.js +76 -3
  850. package/lib/plugin/TooltipWrapper.js +12 -9
  851. package/lib/plugin/Tpl.js +21 -3
  852. package/lib/plugin/Video.js +3 -1
  853. package/lib/plugin/WebComponent.js +3 -1
  854. package/lib/plugin/Wizard.js +7 -5
  855. package/lib/plugin/Wrapper.js +10 -8
  856. package/lib/plugin/index.d.ts +144 -0
  857. package/lib/renderer/APIAdaptorControl.d.ts +16 -2
  858. package/lib/renderer/APIAdaptorControl.js +34 -46
  859. package/lib/renderer/APIControl.d.ts +4 -4
  860. package/lib/renderer/APIControl.js +13 -3
  861. package/lib/renderer/ActionApiControl.d.ts +9 -3
  862. package/lib/renderer/BadgeControl.d.ts +9 -9
  863. package/lib/renderer/BadgeControl.js +8 -3
  864. package/lib/renderer/ButtonGroupControl.d.ts +1 -1
  865. package/lib/renderer/ButtonGroupControl.js +3 -1
  866. package/lib/renderer/ColumnControl.d.ts +1 -1
  867. package/lib/renderer/DataBindingControl.d.ts +3 -3
  868. package/lib/renderer/DataBindingControl.js +13 -6
  869. package/lib/renderer/DataMappingControl.js +3 -1
  870. package/lib/renderer/DataPickerControl.d.ts +1 -1
  871. package/lib/renderer/DataPickerControl.js +3 -1
  872. package/lib/renderer/DateShortCutControl.d.ts +3 -2
  873. package/lib/renderer/DateShortCutControl.js +10 -6
  874. package/lib/renderer/ExpressionFormulaControl.d.ts +1 -1
  875. package/lib/renderer/ExpressionFormulaControl.js +4 -2
  876. package/lib/renderer/FeatureControl.d.ts +18 -5
  877. package/lib/renderer/FeatureControl.js +81 -16
  878. package/lib/renderer/FieldSetting.d.ts +66 -0
  879. package/lib/renderer/FieldSetting.js +503 -0
  880. package/lib/renderer/FlexSettingControl.d.ts +1 -1
  881. package/lib/renderer/FlexSettingControl.js +4 -2
  882. package/lib/renderer/FormulaControl.d.ts +8 -3
  883. package/lib/renderer/FormulaControl.js +23 -6
  884. package/lib/renderer/FunctionEditorControl.d.ts +79 -0
  885. package/lib/renderer/FunctionEditorControl.js +115 -0
  886. package/lib/renderer/GoConfigControl.d.ts +1 -1
  887. package/lib/renderer/GoConfigControl.js +4 -2
  888. package/lib/renderer/InputRangeValueControl.d.ts +15 -0
  889. package/lib/renderer/InputRangeValueControl.js +127 -0
  890. package/lib/renderer/MapSourceControl.d.ts +3 -3
  891. package/lib/renderer/MapSourceControl.js +4 -2
  892. package/lib/renderer/NavBadgeControl.d.ts +7 -7
  893. package/lib/renderer/NavBadgeControl.js +3 -1
  894. package/lib/renderer/NavDefaultActive.js +3 -1
  895. package/lib/renderer/NavSourceControl.d.ts +53 -35
  896. package/lib/renderer/NavSourceControl.js +600 -227
  897. package/lib/renderer/OptionControl.d.ts +5 -3
  898. package/lib/renderer/OptionControl.js +37 -25
  899. package/lib/renderer/RangePartsControl.d.ts +5 -5
  900. package/lib/renderer/RangePartsControl.js +6 -4
  901. package/lib/renderer/StatusControl.d.ts +2 -2
  902. package/lib/renderer/StatusControl.js +19 -3
  903. package/lib/renderer/SwitchMoreControl.d.ts +12 -5
  904. package/lib/renderer/SwitchMoreControl.js +26 -9
  905. package/lib/renderer/TableColumnWidthControl.d.ts +29 -0
  906. package/lib/renderer/TableColumnWidthControl.js +186 -0
  907. package/lib/renderer/TimelineItemControl.d.ts +6 -6
  908. package/lib/renderer/TimelineItemControl.js +26 -7
  909. package/lib/renderer/TplFormulaControl.d.ts +1 -1
  910. package/lib/renderer/TplFormulaControl.js +3 -1
  911. package/lib/renderer/TransferTableControl.d.ts +3 -3
  912. package/lib/renderer/TransferTableControl.js +4 -2
  913. package/lib/renderer/TreeOptionControl.d.ts +4 -4
  914. package/lib/renderer/TreeOptionControl.js +15 -13
  915. package/lib/renderer/ValidationControl.d.ts +4 -4
  916. package/lib/renderer/ValidationControl.js +4 -2
  917. package/lib/renderer/ValidationItem.d.ts +3 -3
  918. package/lib/renderer/ValidationItem.js +3 -1
  919. package/lib/renderer/crud2-control/AddColumnModal.d.ts +6 -0
  920. package/lib/renderer/crud2-control/AddColumnModal.js +265 -0
  921. package/lib/renderer/crud2-control/CRUDColumnControl.d.ts +68 -0
  922. package/lib/renderer/crud2-control/CRUDColumnControl.js +482 -0
  923. package/lib/renderer/crud2-control/CRUDFiltersControl.d.ts +53 -0
  924. package/lib/renderer/crud2-control/CRUDFiltersControl.js +701 -0
  925. package/lib/renderer/crud2-control/CRUDToolbarControl.d.ts +49 -0
  926. package/lib/renderer/crud2-control/CRUDToolbarControl.js +426 -0
  927. package/lib/renderer/event-control/action-config-dialog.d.ts +1 -1
  928. package/lib/renderer/event-control/action-config-dialog.js +29 -3
  929. package/lib/renderer/event-control/action-config-panel.js +3 -1
  930. package/lib/renderer/event-control/comp-action-select.d.ts +1 -1
  931. package/lib/renderer/event-control/comp-action-select.js +3 -1
  932. package/lib/renderer/event-control/helper.d.ts +2 -1
  933. package/lib/renderer/event-control/helper.js +305 -204
  934. package/lib/renderer/event-control/index.d.ts +28 -19
  935. package/lib/renderer/event-control/index.js +115 -22
  936. package/lib/renderer/style-control/Background.d.ts +1 -1
  937. package/lib/renderer/style-control/Background.js +3 -1
  938. package/lib/renderer/style-control/Border.d.ts +2 -2
  939. package/lib/renderer/style-control/Border.js +10 -8
  940. package/lib/renderer/style-control/BoxModel.d.ts +2 -2
  941. package/lib/renderer/style-control/BoxModel.js +3 -1
  942. package/lib/renderer/style-control/BoxShadow.d.ts +2 -2
  943. package/lib/renderer/style-control/BoxShadow.js +3 -1
  944. package/lib/renderer/style-control/Display.d.ts +1 -1
  945. package/lib/renderer/style-control/Display.js +3 -1
  946. package/lib/renderer/style-control/Font.d.ts +1 -1
  947. package/lib/renderer/style-control/Font.js +3 -1
  948. package/lib/renderer/style-control/InsetBoxModel.d.ts +2 -2
  949. package/lib/renderer/style-control/InsetBoxModel.js +3 -1
  950. package/lib/renderer/style-control/ThemeCssCode.d.ts +1 -1
  951. package/lib/renderer/style-control/ThemeCssCode.js +136 -282
  952. package/lib/renderer/style-control/font-family.js +3 -1
  953. package/lib/renderer/style-control/helper.js +3 -1
  954. package/lib/renderer/style-control/transformation.js +3 -1
  955. package/lib/renderer/textarea-formula/FormulaPicker.js +5 -3
  956. package/lib/renderer/textarea-formula/TextareaFormulaControl.d.ts +3 -1
  957. package/lib/renderer/textarea-formula/TextareaFormulaControl.js +76 -7
  958. package/lib/renderer/textarea-formula/plugin.js +5 -3
  959. package/lib/tpl/api.js +19 -13
  960. package/lib/tpl/common.js +63 -18
  961. package/lib/tpl/horizontal.js +9 -3
  962. package/lib/tpl/layout.js +17 -10
  963. package/lib/tpl/options.d.ts +10 -1
  964. package/lib/tpl/options.js +251 -10
  965. package/lib/tpl/remark.js +3 -1
  966. package/lib/tpl/style.js +99 -60
  967. package/lib/tpl/validations.js +3 -1
  968. package/lib/util.d.ts +14 -0
  969. package/lib/util.js +39 -1
  970. package/lib/validator.js +7 -5
  971. package/package.json +2 -1
  972. package/esm/plugin/CRUD2.d.ts +0 -78
  973. package/esm/plugin/CRUD2.js +0 -1553
  974. package/esm/renderer/style-control/themeLanguage.d.ts +0 -1
  975. package/esm/renderer/style-control/themeLanguage.js +0 -1894
  976. package/lib/plugin/CRUD2.d.ts +0 -78
  977. package/lib/plugin/CRUD2.js +0 -1565
  978. package/lib/renderer/style-control/themeLanguage.d.ts +0 -1
  979. package/lib/renderer/style-control/themeLanguage.js +0 -1898
@@ -1,1565 +0,0 @@
1
- /**
2
- * amis-editor v5.5.0
3
- * Copyright 2018-2023 @fex
4
- */
5
-
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- var tslib = require('tslib');
11
- var cloneDeep = require('lodash/cloneDeep');
12
- var React = require('react');
13
- var amisEditorCore = require('amis-editor-core');
14
- var _ = require('lodash');
15
- var amis = require('amis');
16
- var helper = require('../renderer/event-control/helper.js');
17
- var i18nRuntime = require('i18n-runtime');
18
-
19
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
-
21
- var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
22
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
-
24
- var findObj = function (obj, predicate, stop) {
25
- var waitProcess = [obj];
26
- while (waitProcess.length) {
27
- var item = waitProcess.pop();
28
- if (Array.isArray(item)) {
29
- waitProcess.push.apply(waitProcess, tslib.__spreadArray([], tslib.__read(item), false));
30
- continue;
31
- }
32
- if (!_.isObject(item) || stop && stop(item)) {
33
- continue;
34
- }
35
- if (predicate(item)) {
36
- return item;
37
- }
38
- waitProcess.push.apply(waitProcess, tslib.__spreadArray([], tslib.__read(Object.values(item)), false));
39
- }
40
- };
41
- var deepRemove = function (obj, predicate) {
42
- var waitProcess = [obj];
43
- var _loop_1 = function () {
44
- var item = waitProcess.pop();
45
- if (Array.isArray(item)) {
46
- _.remove(item, predicate);
47
- waitProcess.push.apply(waitProcess, tslib.__spreadArray([], tslib.__read(item), false));
48
- return "continue";
49
- }
50
- if (!_.isObject(item)) {
51
- return "continue";
52
- }
53
- Object.entries(item).forEach(function (_a) {
54
- var _b = tslib.__read(_a, 2),
55
- key = _b[0],
56
- value = _b[1];
57
- if (_.isObject(value) && predicate(value)) {
58
- delete item[key];
59
- }
60
- waitProcess.push(value);
61
- });
62
- };
63
- while (waitProcess.length) {
64
- _loop_1();
65
- }
66
- };
67
- var Tools = [{
68
- label: i18nRuntime.i18n("a4313469fd7361486fe47076629c76ac"),
69
- value: 'Insert',
70
- resolveSchema: function (setting, builder) {
71
- if (setting === void 0) {
72
- setting = {};
73
- }
74
- var form = {
75
- type: 'form',
76
- body: [],
77
- onEvent: {
78
- submitSucc: {
79
- actions: [{
80
- actionType: 'search',
81
- componentId: setting.id
82
- }]
83
- }
84
- }
85
- };
86
- builder.resolveCreateSchema({
87
- schema: form,
88
- setting: setting,
89
- feat: 'Insert',
90
- inCrud: true
91
- });
92
- return {
93
- type: 'button',
94
- behavior: 'Insert',
95
- label: i18nRuntime.i18n("66ab5e9f24c8f46012a25c89919fb191"),
96
- level: 'primary',
97
- className: 'm-r-xs',
98
- onEvent: {
99
- click: {
100
- actions: [{
101
- actionType: 'dialog',
102
- dialog: {
103
- title: i18nRuntime.i18n("50abd0bf31e07dbee84e9e5b9a407840"),
104
- body: form
105
- }
106
- }]
107
- }
108
- }
109
- };
110
- },
111
- align: 'left'
112
- }, {
113
- label: i18nRuntime.i18n("e73cefac9d030927da1618c7b15c98c9"),
114
- value: 'BulkEdit',
115
- resolveSchema: function (setting, builder) {
116
- if (setting === void 0) {
117
- setting = {};
118
- }
119
- var form = {
120
- type: 'form',
121
- // @ts-ignore
122
- behavior: 'BulkEdit',
123
- body: [],
124
- onEvent: {
125
- submitSucc: {
126
- actions: [{
127
- actionType: 'search',
128
- componentId: setting.id
129
- }]
130
- }
131
- }
132
- };
133
- builder.resolveCreateSchema({
134
- schema: form,
135
- setting: setting,
136
- feat: 'BulkEdit',
137
- inCrud: true
138
- });
139
- return {
140
- type: 'button',
141
- behavior: 'BulkEdit',
142
- label: i18nRuntime.i18n("e73cefac9d030927da1618c7b15c98c9"),
143
- className: 'm-r-xs',
144
- onEvent: {
145
- click: {
146
- actions: [{
147
- actionType: 'dialog',
148
- dialog: {
149
- title: i18nRuntime.i18n("e73cefac9d030927da1618c7b15c98c9"),
150
- body: form
151
- }
152
- }]
153
- }
154
- },
155
- disabledOn: 'selectedItems != null && selectedItems.length < 1'
156
- };
157
- },
158
- align: 'left'
159
- }, {
160
- label: i18nRuntime.i18n("7fb62b30119c3797a843a48368463314"),
161
- value: 'BulkDelete',
162
- resolveSchema: function (setting, builder) {
163
- var _a, _b, _c;
164
- if (setting === void 0) {
165
- setting = {};
166
- }
167
- var button = {
168
- type: 'button',
169
- className: 'm-r-xs',
170
- label: i18nRuntime.i18n("7fb62b30119c3797a843a48368463314"),
171
- level: 'danger',
172
- // @ts-ignore
173
- behavior: 'BulkDelete',
174
- disabledOn: 'selectedItems != null && selectedItems.length < 1'
175
- };
176
- builder.resolveDeleteSchema({
177
- schema: button,
178
- setting: setting,
179
- feat: 'BulkDelete'
180
- });
181
- (_c = (_b = (_a = button.onEvent) === null || _a === void 0 ? void 0 : _a.click) === null || _b === void 0 ? void 0 : _b.actions) === null || _c === void 0 ? void 0 : _c.push({
182
- actionType: 'search',
183
- componentId: setting.id
184
- });
185
- return button;
186
- },
187
- align: 'left'
188
- }, {
189
- label: i18nRuntime.i18n("73f28ac83b623fb81d73f16fb3856fa0"),
190
- value: 'Import',
191
- resolveSchema: function (setting, builder) {
192
- return {
193
- type: 'button',
194
- className: 'm-r-xs',
195
- label: i18nRuntime.i18n("8d9a071ee2ef45e045968e117a205c07"),
196
- // @ts-ignore
197
- behavior: 'Import'
198
- };
199
- },
200
- align: 'left'
201
- }, {
202
- label: i18nRuntime.i18n("09d44261d7883bf5141a462a790d2816"),
203
- value: 'Export',
204
- resolveSchema: function (setting, builder) {
205
- return {
206
- type: 'button',
207
- className: 'm-r-xs',
208
- label: i18nRuntime.i18n("55405ea6ff6fd823ffab7e6b10ddfa95"),
209
- // @ts-ignore
210
- behavior: 'Export'
211
- };
212
- },
213
- align: 'left'
214
- }];
215
- var FilterTypes = [{
216
- label: i18nRuntime.i18n("6ff4bf3d567e977aa4c90c27dff1e6db"),
217
- value: 'FuzzyQuery',
218
- resolveSchema: function (setting, builder) {
219
- if (setting === void 0) {
220
- setting = {};
221
- }
222
- var formId = amisEditorCore.generateNodeId();
223
- return {
224
- type: 'form',
225
- behavior: 'FuzzyQuery',
226
- id: formId,
227
- submitOnChange: true,
228
- wrapWithPanel: false,
229
- onEvent: {
230
- validateSucc: {
231
- actions: [{
232
- actionType: 'search',
233
- componentId: setting.id,
234
- args: {
235
- query: '${event.data}'
236
- }
237
- }]
238
- }
239
- },
240
- body: [{
241
- name: 'keywords',
242
- type: 'input-text',
243
- label: false,
244
- addOn: {
245
- type: 'button',
246
- label: i18nRuntime.i18n("e5f71fc31e7246dd6ccc5539570471b0"),
247
- onEvent: {
248
- click: {
249
- actions: [{
250
- actionType: 'submit',
251
- componentId: formId
252
- }]
253
- }
254
- }
255
- }
256
- }]
257
- };
258
- }
259
- }, {
260
- label: i18nRuntime.i18n("c26996a6506adf397f0668d376d0b40b"),
261
- value: 'SimpleQuery',
262
- resolveSchema: function (setting, builder) {
263
- if (setting === void 0) {
264
- setting = {};
265
- }
266
- return {
267
- title: i18nRuntime.i18n("c26996a6506adf397f0668d376d0b40b"),
268
- type: 'form',
269
- mode: 'inline',
270
- behavior: 'SimpleQuery',
271
- body: builder.resolveSimpleFilterSchema({
272
- setting: setting,
273
- size: 'full'
274
- }) || [],
275
- actions: [{
276
- type: 'submit',
277
- label: i18nRuntime.i18n("bee912d79eefb7335988c4997aa9138d")
278
- }, {
279
- type: 'reset',
280
- label: i18nRuntime.i18n("4b9c3271dc2f299dc3aeffb369187513")
281
- }],
282
- onEvent: {
283
- validateSucc: {
284
- actions: [{
285
- actionType: 'search',
286
- componentId: setting.id,
287
- args: {
288
- query: {
289
- simpleFilters: '${event.data}'
290
- }
291
- }
292
- }]
293
- }
294
- }
295
- };
296
- }
297
- }, {
298
- label: i18nRuntime.i18n("9c4666fd08c2738eb9611a3721cb5f0f"),
299
- value: 'AdvancedQuery',
300
- resolveSchema: function (setting, builder) {
301
- if (setting === void 0) {
302
- setting = {};
303
- }
304
- return {
305
- title: i18nRuntime.i18n("9c4666fd08c2738eb9611a3721cb5f0f"),
306
- type: 'form',
307
- mode: 'inline',
308
- behavior: 'AdvancedQuery',
309
- body: builder.resolveAdvancedFilterSchema({
310
- setting: setting
311
- }) || [],
312
- actions: [{
313
- type: 'submit',
314
- label: i18nRuntime.i18n("bee912d79eefb7335988c4997aa9138d")
315
- }, {
316
- type: 'reset',
317
- label: i18nRuntime.i18n("4b9c3271dc2f299dc3aeffb369187513")
318
- }],
319
- onEvent: {
320
- validateSucc: {
321
- actions: [{
322
- actionType: 'search',
323
- componentId: setting.id,
324
- args: {
325
- query: {
326
- customFilters: '${event.data}'
327
- }
328
- }
329
- }]
330
- }
331
- }
332
- };
333
- }
334
- }];
335
- // 数据操作
336
- var DataOperators = [{
337
- label: i18nRuntime.i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),
338
- value: 'View',
339
- resolveSchema: function (setting, builder) {
340
- if (setting === void 0) {
341
- setting = {};
342
- }
343
- return {
344
- type: 'button',
345
- label: i18nRuntime.i18n("607e7a4f377fa66b0b28ce318aab841f"),
346
- level: 'link',
347
- behavior: 'View',
348
- onEvent: {
349
- click: {
350
- actions: [{
351
- actionType: 'dialog',
352
- dialog: {
353
- type: 'form',
354
- title: i18nRuntime.i18n("607e7a4f377fa66b0b28ce318aab841f"),
355
- body: builder.resolveViewSchema({
356
- setting: setting
357
- })
358
- }
359
- }]
360
- }
361
- }
362
- };
363
- }
364
- }, {
365
- label: i18nRuntime.i18n("e22b59b6bda1cf9a58f8979fd0a0b43c"),
366
- value: 'Edit',
367
- resolveSchema: function (setting, builder) {
368
- if (setting === void 0) {
369
- setting = {};
370
- }
371
- var form = {
372
- type: 'form',
373
- body: [],
374
- onEvent: {
375
- submitSucc: {
376
- actions: [{
377
- actionType: 'search',
378
- componentId: setting.id
379
- }]
380
- }
381
- }
382
- };
383
- builder.resolveCreateSchema({
384
- schema: form,
385
- setting: setting,
386
- feat: 'Edit',
387
- inCrud: true
388
- });
389
- return {
390
- type: 'button',
391
- label: i18nRuntime.i18n("95b351c86267f3aedf89520959bce689"),
392
- level: 'link',
393
- behavior: 'Edit',
394
- onEvent: {
395
- click: {
396
- actions: [{
397
- actionType: 'dialog',
398
- dialog: {
399
- title: i18nRuntime.i18n("95b351c86267f3aedf89520959bce689"),
400
- body: form
401
- }
402
- }]
403
- }
404
- }
405
- };
406
- }
407
- }, {
408
- label: i18nRuntime.i18n("a790208cafd5c95a18dd9a168319ecf8"),
409
- value: 'Delete',
410
- resolveSchema: function (setting, builder) {
411
- var _a, _b, _c;
412
- if (setting === void 0) {
413
- setting = {};
414
- }
415
- var button = {
416
- type: 'button',
417
- className: 'm-r-xs',
418
- label: i18nRuntime.i18n("2f4aaddde33c9b93c36fd2503f3d122b"),
419
- level: 'link',
420
- // @ts-ignore
421
- behavior: 'Delete'
422
- };
423
- builder.resolveDeleteSchema({
424
- schema: button,
425
- setting: setting,
426
- feat: 'Delete'
427
- });
428
- (_c = (_b = (_a = button.onEvent) === null || _a === void 0 ? void 0 : _a.click) === null || _b === void 0 ? void 0 : _b.actions) === null || _c === void 0 ? void 0 : _c.push({
429
- actionType: 'search',
430
- componentId: setting.id
431
- });
432
- return button;
433
- }
434
- }];
435
- var CRUDPlugin = /** @class */function (_super) {
436
- tslib.__extends(CRUDPlugin, _super);
437
- function CRUDPlugin(manager) {
438
- var _this = _super.call(this, manager) || this;
439
- _this.disabledRendererPlugin = true;
440
- // 关联渲染器名字
441
- _this.rendererName = 'crud2';
442
- _this.multifactor = true;
443
- _this.$schema = '/schemas/CRUD2Schema.json';
444
- _this.order = -1000;
445
- _this.docLink = '/amis/zh-CN/components/crud';
446
- _this.tags = [i18nRuntime.i18n("73721e611daaafe5c34aa9f3f901d016")];
447
- _this.actions = [{
448
- actionType: 'search',
449
- actionLabel: i18nRuntime.i18n("cfd84204d9476936c949d071cc2338cf"),
450
- description: i18nRuntime.i18n("c6bd3393c21379d3f75d179abe36da3d"),
451
- descDetail: function (info) {
452
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
453
- className: "variable-right"
454
- }, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u89E6\u53D1\u6570\u636E\u67E5\u8BE2");
455
- },
456
- schema: helper.getArgsWrapper(
457
- /*
458
- {
459
- type: 'input-formula',
460
- variables: '${variables}',
461
- evalMode: false,
462
- variableMode: 'tabs',
463
- label: '查询条件',
464
- size: 'md',
465
- name: 'query',
466
- mode: 'horizontal'
467
- }
468
- */
469
- amisEditorCore.getSchemaTpl('formulaControl', {
470
- name: 'query',
471
- label: i18nRuntime.i18n("cf12e55021998a8328201800ec356773"),
472
- variables: '${variables}',
473
- size: 'md',
474
- mode: 'horizontal'
475
- }))
476
- },
477
- // {
478
- // actionType: 'resetQuery',
479
- // actionLabel: '重置查询',
480
- // description: '重新恢复查询条件为初始值',
481
- // descDetail: (info: any) => {
482
- // return (
483
- // <div>
484
- // <span className="variable-right">{info?.__rendererLabel}</span>
485
- // 重置初始查询条件
486
- // </div>
487
- // );
488
- // }
489
- // },
490
- {
491
- actionType: 'loadMore',
492
- actionLabel: i18nRuntime.i18n("77281549955309c49f5eef77838a85e5"),
493
- description: i18nRuntime.i18n("b3a4d6a345372c5def1d5a1bf6077bce"),
494
- descDetail: function (info) {
495
- return React__default["default"].createElement("div", null, React__default["default"].createElement("span", {
496
- className: "variable-right"
497
- }, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u52A0\u8F7D\u66F4\u591A\u6570\u636E");
498
- }
499
- }];
500
- _this.previewSchema = {
501
- syncLocation: false,
502
- type: 'crud2',
503
- className: 'text-left',
504
- bodyClassName: 'm-b-none',
505
- affixHeader: false,
506
- data: {
507
- items: [{
508
- a: 1,
509
- b: 2
510
- }, {
511
- a: 3,
512
- b: 4
513
- }, {
514
- a: 5,
515
- b: 6
516
- }]
517
- },
518
- source: '${items}',
519
- columns: [{
520
- title: 'A',
521
- name: 'a'
522
- }, {
523
- title: 'B',
524
- name: 'b'
525
- }, {
526
- name: 'operation',
527
- title: i18nRuntime.i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
528
- buttons: [{
529
- icon: 'fa fa-eye',
530
- type: 'button'
531
- }, {
532
- icon: 'fa fa-edit',
533
- type: 'button'
534
- }]
535
- }]
536
- };
537
- _this.dsBuilderMgr = new amisEditorCore.DSBuilderManager('crud2', 'api');
538
- return _this;
539
- }
540
- CRUDPlugin.prototype.afterBuildPanelBody = function (event) {
541
- var _a;
542
- return tslib.__awaiter(this, void 0, void 0, function () {
543
- var context;
544
- return tslib.__generator(this, function (_b) {
545
- switch (_b.label) {
546
- case 0:
547
- context = event.context.context;
548
- if (!(((_a = context.info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem) && new RegExp('/crud2/filter/').test(context.path))) return [3 /*break*/, 2];
549
- return [4 /*yield*/, this.addFilterPanelSetting(event.context)];
550
- case 1:
551
- _b.sent();
552
- return [3 /*break*/, 3];
553
- case 2:
554
- if (context.schema.type === 'crud2' && context.schema.mode === this.scaffold.mode) {
555
- this.addListPanelSetting(event.context);
556
- }
557
- _b.label = 3;
558
- case 3:
559
- return [2 /*return*/];
560
- }
561
- });
562
- });
563
- };
564
-
565
- CRUDPlugin.prototype.addFilterPanelSetting = function (context) {
566
- var _a;
567
- return tslib.__awaiter(this, void 0, void 0, function () {
568
- var _b, info, node, form, host, builder, body_1;
569
- return tslib.__generator(this, function (_c) {
570
- switch (_c.label) {
571
- case 0:
572
- _b = context.context, info = _b.info, node = _b.node;
573
- if (!((_a = info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem)) return [3 /*break*/, 2];
574
- form = node.getClosestParentByType('form');
575
- host = node.getClosestParentByType('crud2');
576
- if (!host || !form || !form.schema.behavior || host.schema.mode !== this.scaffold.mode) {
577
- return [2 /*return*/];
578
- }
579
-
580
- builder = this.dsBuilderMgr.resolveBuilderBySchema(host.schema, 'api');
581
- return [4 /*yield*/, builder.makeFieldFilterSetting({
582
- schema: host.schema,
583
- sourceKey: 'api',
584
- fieldName: node.schema.name
585
- })];
586
- case 1:
587
- body_1 = _c.sent();
588
- if (!body_1 || !body_1.length) {
589
- return [2 /*return*/];
590
- }
591
- // 可能会出错,但是cards table2 list 配置面板结构统一,因此
592
- context.data.tabs.forEach(function (tab) {
593
- if (tab.title === i18nRuntime.i18n("24d67862f87f439db7ca957aecb77cce")) {
594
- tab.body[0].body.forEach(function (collapse) {
595
- var _a;
596
- if (collapse.title === i18nRuntime.i18n("4092ed98e9035652d4c9ca9441701ed7")) {
597
- // 在标题后面插入过滤条件
598
- (_a = collapse.body).splice.apply(_a, tslib.__spreadArray([2, 0], tslib.__read(body_1), false));
599
- }
600
- });
601
- }
602
- });
603
- _c.label = 2;
604
- case 2:
605
- return [2 /*return*/];
606
- }
607
- });
608
- });
609
- };
610
-
611
- CRUDPlugin.prototype.addDataOperatorSchema = function (schema, content) {};
612
- CRUDPlugin.prototype.addFeatToToolbar = function (schema, content, position, align) {
613
- var region = "".concat(position, "Toolbar");
614
- schema[region] = schema[region] || [{
615
- type: 'grid',
616
- columns: [{
617
- body: []
618
- }, {
619
- columnClassName: 'text-right',
620
- body: []
621
- }]
622
- }];
623
- // 尝试放到左面第一个,否则只能放外头了
624
- try {
625
- schema[region][0].columns[align === 'left' ? 0 : 1].body.unshift(content);
626
- } catch (e) {
627
- schema[region].unshift(content);
628
- }
629
- };
630
- CRUDPlugin.prototype.filterOperators = function (builder, context) {
631
- var _this = this;
632
- var operators = [];
633
- Tools.forEach(function (tool) {
634
- if (!builder.features.includes(tool.value)) {
635
- return;
636
- }
637
- operators.push(tslib.__assign(tslib.__assign({}, tool), {
638
- remove: function (schema) {
639
- deepRemove(schema.headerToolbar, function (item) {
640
- return item.behavior === tool.value;
641
- });
642
- deepRemove(schema.footerToolbar, function (item) {
643
- return item.behavior === tool.value;
644
- });
645
- },
646
- add: function (data) {
647
- _this.addFeatToToolbar(data, tool.resolveSchema(data, builder), 'header', tool.align);
648
- },
649
- isActive: function (data) {
650
- return _this.isFeatActive(data, tool.value, 'headerToolbar', 'footerToolbar');
651
- }
652
- }));
653
- });
654
- // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
655
- if (context.schema.mode === 'table2') {
656
- DataOperators.forEach(function (op) {
657
- if (!builder.features.includes(op.value)) {
658
- return;
659
- }
660
- operators.push(tslib.__assign(tslib.__assign({}, op), {
661
- remove: function (schema) {
662
- deepRemove(schema.columns, function (item) {
663
- return item.behavior === op.value;
664
- });
665
- },
666
- add: function (data) {
667
- _this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
668
- },
669
- isActive: function (data) {
670
- return _this.isFeatActive(data, op.value, 'columns');
671
- }
672
- }));
673
- });
674
- }
675
- return operators;
676
- };
677
- CRUDPlugin.prototype.makeFeatSetting = function (feat, builder, inScaffold) {
678
- if (feat.makeSetting) {
679
- return feat.makeSetting(builder);
680
- }
681
- return builder.makeFieldsSettingForm({
682
- feat: feat.value,
683
- inCrud: true,
684
- inScaffold: inScaffold
685
- });
686
- };
687
- CRUDPlugin.prototype.isFeatActive = function (schema, feat) {
688
- var scope = [];
689
- for (var _i = 2; _i < arguments.length; _i++) {
690
- scope[_i - 2] = arguments[_i];
691
- }
692
- if (scope.length === 0) {
693
- return findObj(schema, function (item) {
694
- return item.behavior === feat;
695
- });
696
- }
697
- var region = null;
698
- while (region = scope.shift()) {
699
- if (findObj(schema[region], function (item) {
700
- return item.behavior === feat;
701
- })) {
702
- return true;
703
- }
704
- }
705
- return false;
706
- };
707
- CRUDPlugin.prototype.removeFeatSchema = function (schema, feat) {
708
- var scope = [];
709
- for (var _i = 2; _i < arguments.length; _i++) {
710
- scope[_i - 2] = arguments[_i];
711
- }
712
- if (scope.length === 0) {
713
- return deepRemove(schema, function (item) {
714
- return item.behavior === feat;
715
- });
716
- }
717
- var region = null;
718
- while (region = scope.shift()) {
719
- deepRemove(schema[region], function (item) {
720
- return item.behavior === feat;
721
- });
722
- }
723
- return false;
724
- };
725
- CRUDPlugin.prototype.filterColumns = function (builder, context) {
726
- var _a, _b, _c;
727
- var existColsName = [];
728
- var columns = [];
729
- // 实时获取,否则点击预览再回到编辑的时context中的node失效
730
- var node = this.manager.store.getNodeById(context.id);
731
- if (!node) {
732
- return columns;
733
- }
734
- var existCols = ((_b = (_a = node.children.find(function (child) {
735
- return child.type === 'table2';
736
- })) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children) || [];
737
- var hasOperatorCol = (_c = node.schema.columns) === null || _c === void 0 ? void 0 : _c.some(function (col) {
738
- return col.type === 'operation';
739
- });
740
- existCols.some(function (col, index) {
741
- var _a;
742
- // 严格来说是单元格的集合,因此要屏蔽掉
743
- if (index !== 0 && col.id === existCols[0].id) {
744
- return true;
745
- }
746
- col.schema && columns.push({
747
- label: col.schema.title,
748
- value: col.id
749
- });
750
- ((_a = col.schema) === null || _a === void 0 ? void 0 : _a.key) && existColsName.push(col.schema.key);
751
- return false;
752
- });
753
- if (node.schema.__fields) {
754
- var appendCols = builder.makeTableColumnsByFields(node.schema.__fields);
755
- if (appendCols === null || appendCols === void 0 ? void 0 : appendCols.length) {
756
- appendCols.forEach(function (col) {
757
- if (existColsName.includes(col.name)) {
758
- return;
759
- }
760
- columns.push({
761
- label: col.title,
762
- value: null,
763
- add: function (data) {
764
- data.columns.push(col);
765
- },
766
- isActive: function () {
767
- return false;
768
- }
769
- });
770
- });
771
- }
772
- }
773
- if (!hasOperatorCol) {
774
- columns.push({
775
- label: i18nRuntime.i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),
776
- value: null,
777
- isActive: function () {
778
- return false;
779
- },
780
- add: function (data) {
781
- data.columns.push({
782
- type: 'operation',
783
- title: i18nRuntime.i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
784
- buttons: []
785
- });
786
- }
787
- });
788
- }
789
- // context.node.
790
- // // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
791
- // if (context.schema.mode === 'table2') {
792
- // DataOperators.forEach(op => {
793
- // if (!builder.features.includes(op.value)) {
794
- // return;
795
- // }
796
- // operators.push({
797
- // ...op,
798
- // remove: (schema: any) => {
799
- // deepRemove(schema.columns, item => item.behavior === op.value);
800
- // },
801
- // add: (data: any) => {
802
- // this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
803
- // },
804
- // isActive:(data: any) => {
805
- // return this.isFeatActive(data, op.value, 'columns');
806
- // }
807
- // });
808
- // });
809
- // }
810
- return columns;
811
- };
812
- CRUDPlugin.prototype.addListPanelSetting = function (context) {
813
- var _this = this;
814
- var body = context.data;
815
- var builder = this.dsBuilderMgr.resolveBuilderBySchema(context.context.schema, 'api');
816
- body.tabs.forEach(function (tab) {
817
- var _a, _b;
818
- if (tab.title === i18nRuntime.i18n("24d67862f87f439db7ca957aecb77cce")) {
819
- tab.body[0].body.forEach(function (collapse) {
820
- var _a;
821
- if (collapse.title === i18nRuntime.i18n("4092ed98e9035652d4c9ca9441701ed7")) {
822
- (_a = collapse.body).unshift.apply(_a, tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(builder.makeSourceSettingForm({
823
- name: 'api',
824
- label: i18nRuntime.i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),
825
- feat: 'List',
826
- inCrud: true
827
- })), false), [amisEditorCore.getSchemaTpl('interval'), amisEditorCore.getSchemaTpl('switch', {
828
- name: 'syncLocation',
829
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("569343b4fe5e48131b78611c11eadbeb"), i18nRuntime.i18n("6dbee29a8c54eef9d042ef3280999ad9")),
830
- pipeIn: amisEditorCore.defaultValue(true)
831
- }), amisEditorCore.getSchemaTpl('switch', {
832
- label: i18nRuntime.i18n("240145572215920ae06db1eeb85b29c0"),
833
- name: 'selectable'
834
- }), amisEditorCore.getSchemaTpl('switch', {
835
- name: 'keepItemSelectionOnPageChange',
836
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("099cf136d6a4b6ed4646af4a2ed066b2"), i18nRuntime.i18n("60011314ed92794f3d4f3e874c359279")),
837
- visbileOn: 'this.selectable'
838
- })], false));
839
- }
840
- if (collapse.title === i18nRuntime.i18n("949a8b7bd2c10070a2fae16f9c66afbb")) {
841
- collapse.body.unshift(amisEditorCore.getSchemaTpl('switch', {
842
- name: 'columnsTogglable',
843
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("2816cea6c4887a53c417831deb5fbe00"), i18nRuntime.i18n("d3c5079f7e26b1a7374ff76341376de4")),
844
- onChange: function (value, oldValue, model, form) {
845
- var schema = cloneDeep__default["default"](form.data);
846
- if (value === true) {
847
- _this.addFeatToToolbar(schema, {
848
- type: 'column-toggler'
849
- }, 'header', 'right');
850
- } else {
851
- deepRemove(schema.headerToolbar, function (item) {
852
- return item.type === 'column-toggler';
853
- });
854
- }
855
- form.setValues(schema);
856
- return undefined;
857
- }
858
- }));
859
- collapse.body.unshift({
860
- type: 'ae-feature-control',
861
- label: false,
862
- features: function () {
863
- return _this.filterColumns(builder, context.context);
864
- },
865
- goFeatureComp: function (feat) {
866
- return feat.value;
867
- },
868
- removeFeature: function (feat) {
869
- _this.manager.del(feat.value);
870
- },
871
- manager: _this.manager,
872
- addable: true,
873
- removeable: true
874
- });
875
- }
876
- });
877
- var moreCollapse = amisEditorCore.getSchemaTpl('collapseGroup', [{
878
- title: i18nRuntime.i18n("4a3ebd0ef27212de3b0c39e6a9701b1d"),
879
- order: 2,
880
- body: FilterTypes.map(function (item) {
881
- // 当前数据源可能不开启这个功能
882
- if (!builder.features.includes(item.value)) {
883
- return null;
884
- }
885
- var fields = [];
886
- // await builder.getContextFileds({
887
- // schema: context.node.schema,
888
- // feat: item.value,
889
- // sourceKey: 'api'
890
- // });
891
- // 开关配置
892
- // const moreConfig = builder.makeFieldsSettingForm({
893
- // feat: item.value,
894
- // inCrud: true,
895
- // inScaffold: false
896
- // });
897
- var base = {
898
- label: item.label,
899
- name: "__".concat(item.value),
900
- pipeIn: function (value, form) {
901
- if (item.value === 'FuzzyQuery') {
902
- return _this.isFeatActive(form.data, item.value, 'headerToolbar', 'footerToolvar');
903
- }
904
- return _this.isFeatActive(form.data, item.value, 'filter');
905
- },
906
- onChange: function (value, oldValue, model, form) {
907
- var schema = cloneDeep__default["default"](form.data);
908
- if (value === true) {
909
- if (item.value === 'FuzzyQuery') {
910
- _this.addFeatToToolbar(schema, item.resolveSchema(schema, builder), 'header', 'right');
911
- } else {
912
- schema.filter.push(item.resolveSchema(schema, builder));
913
- }
914
- } else if (value === false) {
915
- _this.removeFeatSchema(schema, item.value);
916
- }
917
- form.setValues(schema);
918
- return undefined;
919
- }
920
- };
921
- return fields && fields.length ? tslib.__assign(tslib.__assign({}, base), {
922
- type: 'ae-switch-more',
923
- formType: 'extend',
924
- mode: 'normal',
925
- form: {
926
- body: fields
927
- }
928
- }) : amisEditorCore.getSchemaTpl('switch', base);
929
- })
930
- }, {
931
- title: i18nRuntime.i18n("a9a3a4608d48214efbdfac99888f6e0f"),
932
- order: 3,
933
- body: [{
934
- type: 'ae-feature-control',
935
- label: false,
936
- features: _this.filterOperators(builder, context.context),
937
- goFeatureComp: function (feat) {
938
- var _a;
939
- var node = context.context.node;
940
- if (node.isSecondFactor) {
941
- node = node.parent;
942
- }
943
- return (_a = amis.findTree(node.children, function (item) {
944
- return item.schema.behavior === feat.value;
945
- })) === null || _a === void 0 ? void 0 : _a.id;
946
- },
947
- manager: _this.manager,
948
- addable: true,
949
- addText: i18nRuntime.i18n("84a2f40385427bbf2edc79e3368e4e0f"),
950
- removeable: true
951
- }]
952
- }, {
953
- title: i18nRuntime.i18n("cb43abed5ba14bf32fbb1058e12d2303"),
954
- order: 4,
955
- body: [{
956
- type: 'select',
957
- label: i18nRuntime.i18n("48b42e5c3ea447092eaf0a1a13195540"),
958
- name: '__pgType',
959
- options: [{
960
- label: i18nRuntime.i18n("d81bb206a889656035b929cd8bb1ef10"),
961
- value: 'none'
962
- }, {
963
- label: i18nRuntime.i18n("3862626c138ce5945e0e273a1bdfbad0"),
964
- value: 'Pagination'
965
- }, {
966
- label: i18nRuntime.i18n("77281549955309c49f5eef77838a85e5"),
967
- value: 'LoadMore'
968
- }].filter(function (i) {
969
- return i;
970
- }),
971
- pipeIn: function (value, form) {
972
- var pg = findObj([].concat(form.data.headerToolbar).concat(form.data.footerToolbar), function (item) {
973
- return item && ['Pagination', 'LoadMore'].includes(item.behavior);
974
- });
975
- return (pg === null || pg === void 0 ? void 0 : pg.behavior) || 'none';
976
- },
977
- onChange: function (value, oldValue, model, form) {
978
- var schema = cloneDeep__default["default"](form.data);
979
- var region = [].concat(schema.headerToolbar).concat(schema.footerToolbar);
980
- if (value === 'none') {
981
- deepRemove(region, function (item) {
982
- return item && ['Pagination', 'LoadMore'].includes(item.behavior);
983
- });
984
- } else {
985
- var remove_1;
986
- var content = void 0;
987
- if (value === 'Pagination') {
988
- remove_1 = 'LoadMore';
989
- content = {
990
- type: 'pagination',
991
- behavior: value,
992
- layout: ['total', 'perPage', 'pager', 'go']
993
- };
994
- } else {
995
- remove_1 = 'Pagination';
996
- content = {
997
- type: 'button',
998
- behavior: value,
999
- label: i18nRuntime.i18n("77281549955309c49f5eef77838a85e5"),
1000
- onEvent: {
1001
- click: {
1002
- actions: [{
1003
- actionType: 'loadMore',
1004
- componentId: schema.id
1005
- }]
1006
- }
1007
- }
1008
- };
1009
- }
1010
- deepRemove(region, function (item) {
1011
- return item && item.behavior === remove_1;
1012
- });
1013
- _this.addFeatToToolbar(schema, content, 'footer', 'right');
1014
- }
1015
- form.setValues(schema);
1016
- return undefined;
1017
- }
1018
- }, amisEditorCore.getSchemaTpl('switch', {
1019
- label: amisEditorCore.tipedLabel(i18nRuntime.i18n("16b8ff2b147382be4cf8654f829df904"), i18nRuntime.i18n("d2e20bb1e977f9571a9e2d1b39a7ff10")),
1020
- name: ''
1021
- })]
1022
- }]);
1023
- (_a = tab.body[0].body).splice.apply(_a, tslib.__spreadArray([1, 0], tslib.__read(moreCollapse.body), false));
1024
- // 让折叠器默认都展开
1025
- (_b = tab.body[0].activeKey).push.apply(_b, tslib.__spreadArray([], tslib.__read(moreCollapse.activeKey), false));
1026
- }
1027
- });
1028
- };
1029
- CRUDPlugin.prototype.getScaffoldFeatureTab = function () {
1030
- var _this = this;
1031
- var generator = function (feat, featGroup) {
1032
- return _this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
1033
- if (!builder.features.includes(feat.value)) {
1034
- return null;
1035
- }
1036
- var content = _this.makeFeatSetting(feat, builder, true);
1037
- if (!content || content.length === 0) {
1038
- return null;
1039
- }
1040
- var isFeatOpened = featGroup ? "data['".concat(featGroup, "'] && ~data['").concat(featGroup, "'].indexOf('").concat(feat.value, "')") : true;
1041
- return {
1042
- title: feat.label,
1043
- visibleOn: "(!data.dsType || data.dsType === '".concat(builderName, "') && ").concat(isFeatOpened),
1044
- body: content.filter(function (i) {
1045
- return i;
1046
- }).map(function (formItem) {
1047
- return tslib.__assign(tslib.__assign({}, formItem), {
1048
- mode: 'normal'
1049
- });
1050
- })
1051
- };
1052
- });
1053
- };
1054
- return _.flattenDeep([generator({
1055
- label: i18nRuntime.i18n("46a0f3086dce242abe54e48bd86e0394"),
1056
- value: 'List',
1057
- resolveSchema: function () {}
1058
- }), Tools.map(function (item) {
1059
- return generator(item, 'tools');
1060
- }), FilterTypes.map(function (item) {
1061
- return generator(item, 'filters');
1062
- }), DataOperators.map(function (item) {
1063
- return generator(item, 'operators');
1064
- })]).filter(function (i) {
1065
- return i;
1066
- });
1067
- };
1068
- /** 将数据资源和数据操作进行填充 */
1069
- CRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {};
1070
- Object.defineProperty(CRUDPlugin.prototype, "scaffoldForm", {
1071
- get: function () {
1072
- var _this = this;
1073
- return {
1074
- title: "".concat(this.name, "\u521B\u5EFA\u5411\u5BFC"),
1075
- mode: {
1076
- mode: 'horizontal',
1077
- horizontal: {
1078
- leftFixed: 'sm'
1079
- }
1080
- },
1081
- className: 'ae-Scaffold-Modal ae-formItemControl',
1082
- stepsBody: true,
1083
- body: [{
1084
- title: i18nRuntime.i18n("d75a7984d3fa5b32f5d8312e899aeea8"),
1085
- body: tslib.__spreadArray([this.dsBuilderMgr.getDSSwitch({
1086
- onChange: function (value, oldValue, model, form) {
1087
- if (value !== oldValue) {
1088
- var data = form.data;
1089
- Object.keys(data).forEach(function (key) {
1090
- if (key.endsWith('Fields') || key.endsWith('api')) {
1091
- form.deleteValueByName(key);
1092
- }
1093
- });
1094
- form.deleteValueByName('__fields');
1095
- }
1096
- return value;
1097
- }
1098
- })], tslib.__read(this.dsBuilderMgr.collectFromBuilders(function (builder, builderFlag) {
1099
- return {
1100
- type: 'container',
1101
- visibleOn: "dsType == null || dsType === '".concat(builderFlag, "'"),
1102
- body: _.flattenDeep([builder.makeSourceSettingForm({
1103
- feat: 'List',
1104
- inScaffold: true,
1105
- inCrud: true
1106
- })])
1107
- };
1108
- })), false)
1109
- }, {
1110
- title: i18nRuntime.i18n("c2f1f9254c245976e346377515c2e578"),
1111
- body: tslib.__spreadArray(tslib.__spreadArray([], tslib.__read(this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
1112
- var check = function (item) {
1113
- return amisEditorCore.DSFeature[item.value] == null || builder.features.includes(item.value);
1114
- };
1115
- return {
1116
- type: 'container',
1117
- visibleOn: "dsType == null || dsType === '".concat(builderName, "'"),
1118
- body: [{
1119
- type: 'checkboxes',
1120
- label: i18nRuntime.i18n("012f602372cd2dbd639cd966c63e1f90"),
1121
- name: 'tools',
1122
- joinValues: false,
1123
- extractValue: true,
1124
- multiple: true,
1125
- options: Tools.filter(check)
1126
- }, {
1127
- type: 'checkboxes',
1128
- label: i18nRuntime.i18n("0943d61befec4c6cf2d21d170c9b066e"),
1129
- name: 'filters',
1130
- multiple: true,
1131
- joinValues: false,
1132
- extractValue: true,
1133
- options: FilterTypes.filter(check)
1134
- }, {
1135
- type: 'checkboxes',
1136
- label: i18nRuntime.i18n("5246d2c81fa12b1f4f73635c257e232d"),
1137
- name: 'operators',
1138
- multiple: true,
1139
- joinValues: false,
1140
- extractValue: true,
1141
- options: DataOperators.filter(check)
1142
- },
1143
- // 占位,最后一个form item没有间距
1144
- {
1145
- type: 'container'
1146
- }]
1147
- };
1148
- })), false), [{
1149
- type: 'tabs',
1150
- tabsMode: 'vertical',
1151
- className: 'ae-Scaffold-Modal-Tabs',
1152
- tabs: this.getScaffoldFeatureTab()
1153
- }], false)
1154
- }],
1155
- pipeIn: function (value) {
1156
- return (value === null || value === void 0 ? void 0 : value.$$m) || {
1157
- dsType: _this.dsBuilderMgr.getDefaultBuilderName()
1158
- };
1159
- },
1160
- pipeOut: function (value) {
1161
- var _a;
1162
- // 决定组件基础配置和所使用的模式
1163
- var schema = cloneDeep__default["default"](_this.scaffold);
1164
- var builder = _this.dsBuilderMgr.resolveBuilderBySetting(value);
1165
- if (!builder) {
1166
- return schema;
1167
- }
1168
- // list功能
1169
- builder.resolveSourceSchema({
1170
- schema: schema,
1171
- feat: 'List',
1172
- setting: value,
1173
- name: 'api',
1174
- inCrud: true
1175
- });
1176
- schema.id = (_a = schema.id) !== null && _a !== void 0 ? _a : amisEditorCore.generateNodeId(); // 先生成一个,方便其他流程生成事件动作
1177
- value.id = schema.id; // 事件动作需要
1178
- schema.$$m = value;
1179
- if (value.filters) {
1180
- schema.filter = [];
1181
- FilterTypes.forEach(function (feat) {
1182
- if (!value.filters.includes(feat.value)) {
1183
- return;
1184
- }
1185
- if (feat.value === 'FuzzyQuery') {
1186
- _this.addFeatToToolbar(schema, feat.resolveSchema(value, builder), 'header', 'right');
1187
- return;
1188
- }
1189
- schema.filter.push(feat.resolveSchema(value, builder));
1190
- });
1191
- }
1192
- if (value.tools) {
1193
- Tools.concat().reverse().forEach(function (feat) {
1194
- if (value.tools.includes(feat.value)) {
1195
- _this.addFeatToToolbar(schema, feat.resolveSchema(value, builder), 'header', feat.align);
1196
- }
1197
- });
1198
- if (value.tools.find(function (obj) {
1199
- return ['BulkEdit', 'BulkDelete'].includes(obj);
1200
- })) {
1201
- schema.multiple = true;
1202
- schema.selectable = true;
1203
- }
1204
- }
1205
- _this.resolveListField(value, schema, builder);
1206
- _this.addFeatToToolbar(schema, {
1207
- type: 'pagination',
1208
- behavior: 'Pagination',
1209
- layout: ['total', 'perPage', 'pager', 'go']
1210
- }, 'footer', 'right');
1211
- return schema;
1212
- },
1213
- canRebuild: true
1214
- };
1215
- },
1216
- enumerable: false,
1217
- configurable: true
1218
- });
1219
- CRUDPlugin.prototype.getRendererInfo = function (context) {
1220
- var renderer = context.renderer,
1221
- schema = context.schema;
1222
- if (this.scaffold && renderer.name === 'crud2' && schema.mode === this.scaffold.mode) {
1223
- return _super.prototype.getRendererInfo.call(this, context);
1224
- }
1225
- };
1226
- CRUDPlugin.prototype.buildDataSchemas = function (node, region) {
1227
- var _a, _b, _c;
1228
- return tslib.__awaiter(this, void 0, void 0, function () {
1229
- var child, items, builder, fields, childDataSchema, schema;
1230
- return tslib.__generator(this, function (_d) {
1231
- switch (_d.label) {
1232
- case 0:
1233
- child = node.children.find(function (item) {
1234
- return !!~['table2', 'cards', 'list'].indexOf(item.type);
1235
- });
1236
- builder = this.dsBuilderMgr.resolveBuilderBySchema(node.schema, 'api');
1237
- if (!(builder && node.schema.api)) return [3 /*break*/, 2];
1238
- return [4 /*yield*/, builder.getContextFileds({
1239
- schema: node.schema,
1240
- sourceKey: 'api',
1241
- feat: 'List'
1242
- })];
1243
- case 1:
1244
- fields = _d.sent();
1245
- if (fields) {
1246
- items = {
1247
- type: 'object',
1248
- properties: _.fromPairs(fields.map(function (field) {
1249
- return [field.value, {
1250
- type: field.valueType || 'string',
1251
- title: field.label
1252
- }];
1253
- }))
1254
- };
1255
- }
1256
- _d.label = 2;
1257
- case 2:
1258
- if (!(items == null)) return [3 /*break*/, 4];
1259
- return [4 /*yield*/, (_b = child === null || child === void 0 ? void 0 : (_a = child.info.plugin).buildDataSchemas) === null || _b === void 0 ? void 0 : _b.call(_a, child, region)];
1260
- case 3:
1261
- childDataSchema = _d.sent();
1262
- items = (_c = childDataSchema === null || childDataSchema === void 0 ? void 0 : childDataSchema.properties) === null || _c === void 0 ? void 0 : _c.items;
1263
- _d.label = 4;
1264
- case 4:
1265
- schema = {
1266
- $id: 'crud2',
1267
- type: 'object',
1268
- properties: tslib.__assign(tslib.__assign({}, items.properties), {
1269
- items: tslib.__assign(tslib.__assign({}, items), {
1270
- title: i18nRuntime.i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e")
1271
- }),
1272
- selectedItems: tslib.__assign(tslib.__assign({}, items), {
1273
- title: i18nRuntime.i18n("2c77cfaef73ce2e81131861e9c6d670e")
1274
- }),
1275
- unSelectedItems: tslib.__assign(tslib.__assign({}, items), {
1276
- title: i18nRuntime.i18n("9c9153c49491c381dc2adb2c36fccb04")
1277
- }),
1278
- page: {
1279
- type: 'number',
1280
- title: i18nRuntime.i18n("9a4fe969f1066e197fd2369a44d879ac")
1281
- },
1282
- total: {
1283
- type: 'number',
1284
- title: i18nRuntime.i18n("a7f33a2d99056edcdaced5c8841a9bcb")
1285
- }
1286
- })
1287
- };
1288
- return [2 /*return*/, schema];
1289
- }
1290
- });
1291
- });
1292
- };
1293
- CRUDPlugin.prototype.getAvailableContextFields = function (scopeNode, node, region) {
1294
- return tslib.__awaiter(this, void 0, void 0, function () {
1295
- var builder;
1296
- return tslib.__generator(this, function (_a) {
1297
- builder = this.dsBuilderMgr.resolveBuilderBySchema(scopeNode.schema, 'api');
1298
- if (builder && scopeNode.schema.api) {
1299
- return [2 /*return*/, builder.getAvailableContextFileds({
1300
- schema: scopeNode.schema,
1301
- sourceKey: 'api',
1302
- feat: 'List'
1303
- }, node)];
1304
- }
1305
- return [2 /*return*/];
1306
- });
1307
- });
1308
- };
1309
-
1310
- CRUDPlugin.id = 'CRUD2Plugin';
1311
- return CRUDPlugin;
1312
- }(amisEditorCore.BasePlugin);
1313
- var TableCRUDPlugin = /** @class */function (_super) {
1314
- tslib.__extends(TableCRUDPlugin, _super);
1315
- function TableCRUDPlugin() {
1316
- var _this = _super !== null && _super.apply(this, arguments) || this;
1317
- // 组件名称
1318
- _this.name = i18nRuntime.i18n("b339aa87104709397ba68e7ebbc6e5ba");
1319
- _this.isBaseComponent = true;
1320
- _this.description = i18nRuntime.i18n("7a9f1ec32752de8b69ef21138970f64d");
1321
- _this.order = -1000;
1322
- _this.icon = 'fa fa-table';
1323
- _this.scaffold = {
1324
- type: 'crud2',
1325
- mode: 'table2',
1326
- columns: [{
1327
- name: 'id',
1328
- title: 'ID',
1329
- type: 'container',
1330
- body: [{
1331
- type: 'text'
1332
- }]
1333
- }, {
1334
- name: 'engine',
1335
- title: i18nRuntime.i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),
1336
- type: 'container',
1337
- body: [{
1338
- type: 'text'
1339
- }]
1340
- }]
1341
- };
1342
- return _this;
1343
- }
1344
- TableCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
1345
- var _a;
1346
- builder.resolveTableSchema({
1347
- schema: schema,
1348
- setting: setting,
1349
- inCrud: true
1350
- });
1351
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1352
- var operators_1 = [];
1353
- DataOperators.forEach(function (feat) {
1354
- var _a;
1355
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1356
- operators_1.push(feat.resolveSchema(setting, builder));
1357
- }
1358
- });
1359
- schema.columns.push({
1360
- type: 'operation',
1361
- title: i18nRuntime.i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
1362
- buttons: operators_1
1363
- });
1364
- }
1365
- };
1366
- return TableCRUDPlugin;
1367
- }(CRUDPlugin);
1368
- var CardsCRUDPlugin = /** @class */function (_super) {
1369
- tslib.__extends(CardsCRUDPlugin, _super);
1370
- function CardsCRUDPlugin() {
1371
- var _this = _super !== null && _super.apply(this, arguments) || this;
1372
- // 组件名称
1373
- _this.name = i18nRuntime.i18n("093c340f7e1fbde1928ca56b5c7f9cc4");
1374
- _this.isBaseComponent = true;
1375
- _this.description = i18nRuntime.i18n("a0c35361a003527d123cb581f5c68f4b");
1376
- _this.order = -1000;
1377
- _this.icon = 'fa fa-table';
1378
- _this.scaffold = {
1379
- type: 'crud2',
1380
- mode: 'cards',
1381
- card: {
1382
- type: 'card2',
1383
- body: [{
1384
- type: 'container',
1385
- body: [{
1386
- type: 'tpl',
1387
- tpl: i18nRuntime.i18n("32c65d8d7431e76029678ec7bb73a5ab"),
1388
- inline: false,
1389
- style: {
1390
- marginTop: '0',
1391
- marginBottom: '0',
1392
- paddingTop: '',
1393
- paddingBottom: ''
1394
- },
1395
- wrapperComponent: 'h2'
1396
- }, {
1397
- type: 'form',
1398
- body: [{
1399
- type: 'static-tpl',
1400
- label: i18nRuntime.i18n("9caecd931b956381e0763d05aa42835c"),
1401
- tpl: i18nRuntime.i18n("2d711b09bd0db0ad240cc83b30dd8014")
1402
- }]
1403
- }, {
1404
- type: 'divider'
1405
- }, {
1406
- type: 'button-group'
1407
- }
1408
- // {
1409
- // type: 'tpl',
1410
- // tpl: '副标题内容',
1411
- // inline: false,
1412
- // wrapperComponent: '',
1413
- // style: {
1414
- // color: '#9b9b9b',
1415
- // marginTop: '0',
1416
- // marginBottom: '0'
1417
- // }
1418
- // }
1419
- ]
1420
- // style: {
1421
- // borderStyle: 'solid',
1422
- // borderColor: '#ebebeb',
1423
- // borderWidth: '1px',
1424
- // 'borderRadius': '5px',
1425
- // 'paddingTop': '10px',
1426
- // 'paddingRight': '10px',
1427
- // 'paddingBottom': '0',
1428
- // 'paddingLeft': '10px'
1429
- // }
1430
- }]
1431
- }
1432
- };
1433
-
1434
- return _this;
1435
- }
1436
- CardsCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
1437
- var _a;
1438
- var fields = setting.listFields;
1439
- if (!fields || !fields.length) {
1440
- return;
1441
- }
1442
- schema.card.body[0].body = builder.resolveViewSchema({
1443
- setting: setting,
1444
- feat: 'List'
1445
- });
1446
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1447
- var operators_2 = [];
1448
- DataOperators.forEach(function (feat) {
1449
- var _a;
1450
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1451
- operators_2.push(feat.resolveSchema(setting, builder));
1452
- }
1453
- });
1454
- schema.card.body.push({
1455
- type: 'button-group',
1456
- buttons: operators_2
1457
- });
1458
- }
1459
- };
1460
- /**填充一个数据操作 */
1461
- CardsCRUDPlugin.prototype.fillOperatorSchema = function (schema, content) {
1462
- var col = schema.columns.find(function (item) {
1463
- return item.type === 'operators';
1464
- });
1465
- if (!col) {
1466
- schema.columns.push({
1467
- type: 'operation',
1468
- title: i18nRuntime.i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
1469
- buttons: [content]
1470
- });
1471
- return;
1472
- }
1473
- col.buttons.push(content);
1474
- };
1475
- /** 判断内容区是否有填充数据操作 */
1476
- CardsCRUDPlugin.prototype.existOperator = function (feat, schema) {
1477
- return findObj(schema.card.body, function (item) {
1478
- return item.behavior === feat;
1479
- });
1480
- };
1481
- return CardsCRUDPlugin;
1482
- }(CRUDPlugin);
1483
- var ListCRUDPlugin = /** @class */function (_super) {
1484
- tslib.__extends(ListCRUDPlugin, _super);
1485
- function ListCRUDPlugin() {
1486
- var _this = _super !== null && _super.apply(this, arguments) || this;
1487
- // 组件名称
1488
- _this.name = i18nRuntime.i18n("3712972d84adf48acbd6ad24b4d75ad0");
1489
- _this.isBaseComponent = true;
1490
- _this.description = i18nRuntime.i18n("860827796ce2fa94e9ee39e53f011ec0");
1491
- _this.order = -1000;
1492
- _this.icon = 'fa fa-align-justify';
1493
- _this.scaffold = {
1494
- type: 'crud2',
1495
- mode: 'list',
1496
- listItem: {
1497
- body: [{
1498
- type: 'container',
1499
- body: [{
1500
- type: 'tpl',
1501
- tpl: i18nRuntime.i18n("32c65d8d7431e76029678ec7bb73a5ab"),
1502
- inline: false,
1503
- style: {
1504
- marginTop: '0',
1505
- marginBottom: '0',
1506
- paddingTop: '',
1507
- paddingBottom: ''
1508
- },
1509
- wrapperComponent: 'h2'
1510
- }, {
1511
- type: 'tpl',
1512
- tpl: i18nRuntime.i18n("629645f147f378869fe9d7ee2bbc2857"),
1513
- inline: false,
1514
- wrapperComponent: '',
1515
- style: {
1516
- color: '#9b9b9b',
1517
- marginTop: '0',
1518
- marginBottom: '0'
1519
- }
1520
- }]
1521
- }]
1522
- }
1523
- };
1524
- return _this;
1525
- }
1526
- ListCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
1527
- var _a;
1528
- var fields = setting.listFields;
1529
- if (!fields || !fields.length) {
1530
- return;
1531
- }
1532
- schema.listItem.body = builder.resolveViewSchema({
1533
- setting: setting,
1534
- feat: 'List'
1535
- });
1536
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1537
- var operators_3 = [];
1538
- DataOperators.forEach(function (feat) {
1539
- var _a;
1540
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1541
- operators_3.push(feat.resolveSchema(setting, builder));
1542
- }
1543
- });
1544
- schema.listItem.body.push({
1545
- type: 'button-group',
1546
- buttons: operators_3
1547
- });
1548
- }
1549
- };
1550
- /** 判断内容区是否有填充数据操作 */
1551
- ListCRUDPlugin.prototype.existOperator = function (feat, schema) {
1552
- return findObj(schema.listItem.body, function (item) {
1553
- return item.behavior === feat;
1554
- });
1555
- };
1556
- return ListCRUDPlugin;
1557
- }(CRUDPlugin);
1558
- amisEditorCore.registerEditorPlugin(TableCRUDPlugin);
1559
- amisEditorCore.registerEditorPlugin(CardsCRUDPlugin);
1560
- amisEditorCore.registerEditorPlugin(ListCRUDPlugin);
1561
-
1562
- exports.CRUDPlugin = CRUDPlugin;
1563
- exports.CardsCRUDPlugin = CardsCRUDPlugin;
1564
- exports.ListCRUDPlugin = ListCRUDPlugin;
1565
- exports.TableCRUDPlugin = TableCRUDPlugin;