amis-editor 5.2.5 → 5.4.0

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