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,9 +1,9 @@
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
 
6
- import { __extends, __awaiter, __generator, __spreadArray, __assign } from 'tslib';
6
+ import { __extends, __awaiter, __generator, __spreadArray, __read, __assign } from 'tslib';
7
7
  import cloneDeep from 'lodash/cloneDeep';
8
8
  import React__default from 'react';
9
9
  import { generateNodeId, getSchemaTpl, DSBuilderManager, tipedLabel, defaultValue, BasePlugin, registerEditorPlugin, DSFeature } from 'amis-editor-core';
@@ -17,7 +17,7 @@ var findObj = function (obj, predicate, stop) {
17
17
  while (waitProcess.length) {
18
18
  var item = waitProcess.pop();
19
19
  if (Array.isArray(item)) {
20
- waitProcess.push.apply(waitProcess, item);
20
+ waitProcess.push.apply(waitProcess, __spreadArray([], __read(item), false));
21
21
  continue;
22
22
  }
23
23
  if (!isObject(item) || stop && stop(item)) {
@@ -26,7 +26,7 @@ var findObj = function (obj, predicate, stop) {
26
26
  if (predicate(item)) {
27
27
  return item;
28
28
  }
29
- waitProcess.push.apply(waitProcess, Object.values(item));
29
+ waitProcess.push.apply(waitProcess, __spreadArray([], __read(Object.values(item)), false));
30
30
  }
31
31
  };
32
32
  var deepRemove = function (obj, predicate) {
@@ -35,15 +35,16 @@ var deepRemove = function (obj, predicate) {
35
35
  var item = waitProcess.pop();
36
36
  if (Array.isArray(item)) {
37
37
  remove(item, predicate);
38
- waitProcess.push.apply(waitProcess, item);
38
+ waitProcess.push.apply(waitProcess, __spreadArray([], __read(item), false));
39
39
  return "continue";
40
40
  }
41
41
  if (!isObject(item)) {
42
42
  return "continue";
43
43
  }
44
44
  Object.entries(item).forEach(function (_a) {
45
- var key = _a[0],
46
- value = _a[1];
45
+ var _b = __read(_a, 2),
46
+ key = _b[0],
47
+ value = _b[1];
47
48
  if (isObject(value) && predicate(value)) {
48
49
  delete item[key];
49
50
  }
@@ -259,7 +260,8 @@ var FilterTypes = [{
259
260
  mode: 'inline',
260
261
  behavior: 'SimpleQuery',
261
262
  body: builder.resolveSimpleFilterSchema({
262
- setting: setting
263
+ setting: setting,
264
+ size: 'full'
263
265
  }) || [],
264
266
  actions: [{
265
267
  type: 'submit',
@@ -425,770 +427,642 @@ var CRUDPlugin = /** @class */function (_super) {
425
427
  __extends(CRUDPlugin, _super);
426
428
  function CRUDPlugin(manager) {
427
429
  var _this = _super.call(this, manager) || this;
428
- Object.defineProperty(_this, "disabledRendererPlugin", {
429
- enumerable: true,
430
- configurable: true,
431
- writable: true,
432
- value: true
433
- });
434
- Object.defineProperty(_this, "dsBuilderMgr", {
435
- enumerable: true,
436
- configurable: true,
437
- writable: true,
438
- value: void 0
439
- });
430
+ _this.disabledRendererPlugin = true;
440
431
  // 关联渲染器名字
441
- Object.defineProperty(_this, "rendererName", {
442
- enumerable: true,
443
- configurable: true,
444
- writable: true,
445
- value: 'crud2'
446
- });
447
- Object.defineProperty(_this, "multifactor", {
448
- enumerable: true,
449
- configurable: true,
450
- writable: true,
451
- value: true
452
- });
453
- Object.defineProperty(_this, "$schema", {
454
- enumerable: true,
455
- configurable: true,
456
- writable: true,
457
- value: '/schemas/CRUD2Schema.json'
458
- });
459
- Object.defineProperty(_this, "order", {
460
- enumerable: true,
461
- configurable: true,
462
- writable: true,
463
- value: -1000
464
- });
465
- Object.defineProperty(_this, "docLink", {
466
- enumerable: true,
467
- configurable: true,
468
- writable: true,
469
- value: '/amis/zh-CN/components/crud'
470
- });
471
- Object.defineProperty(_this, "tags", {
472
- enumerable: true,
473
- configurable: true,
474
- writable: true,
475
- value: [i18n("73721e611daaafe5c34aa9f3f901d016")]
476
- });
477
- Object.defineProperty(_this, "scaffold", {
478
- enumerable: true,
479
- configurable: true,
480
- writable: true,
481
- value: void 0
482
- });
483
- Object.defineProperty(_this, "name", {
484
- enumerable: true,
485
- configurable: true,
486
- writable: true,
487
- value: void 0
488
- });
489
- Object.defineProperty(_this, "events", {
490
- enumerable: true,
491
- configurable: true,
492
- writable: true,
493
- value: [{
494
- eventName: 'get-data',
495
- eventLabel: i18n("1b79a4f49b7a21e62b8868f12189b0b0"),
496
- description: i18n("5a28d015b7b3518f75bc4cc27d9f6c20")
497
- }]
498
- });
499
- Object.defineProperty(_this, "actions", {
500
- enumerable: true,
501
- configurable: true,
502
- writable: true,
503
- value: [{
504
- actionType: 'search',
505
- actionLabel: i18n("cfd84204d9476936c949d071cc2338cf"),
506
- description: i18n("c6bd3393c21379d3f75d179abe36da3d"),
507
- descDetail: function (info) {
508
- return React__default.createElement("div", null, React__default.createElement("span", {
509
- className: "variable-right"
510
- }, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u89E6\u53D1\u6570\u636E\u67E5\u8BE2");
511
- },
512
- schema: getArgsWrapper(
513
- /*
514
- {
515
- type: 'input-formula',
516
- variables: '${variables}',
517
- evalMode: false,
518
- variableMode: 'tabs',
519
- label: '查询条件',
520
- size: 'md',
521
- name: 'query',
522
- mode: 'horizontal'
523
- }
524
- */
525
- getSchemaTpl('formulaControl', {
526
- name: 'query',
527
- label: i18n("cf12e55021998a8328201800ec356773"),
432
+ _this.rendererName = 'crud2';
433
+ _this.multifactor = true;
434
+ _this.$schema = '/schemas/CRUD2Schema.json';
435
+ _this.order = -1000;
436
+ _this.docLink = '/amis/zh-CN/components/crud';
437
+ _this.tags = [i18n("73721e611daaafe5c34aa9f3f901d016")];
438
+ _this.events = [{
439
+ eventName: 'get-data',
440
+ eventLabel: i18n("1b79a4f49b7a21e62b8868f12189b0b0"),
441
+ description: i18n("5a28d015b7b3518f75bc4cc27d9f6c20")
442
+ }];
443
+ _this.actions = [{
444
+ actionType: 'search',
445
+ actionLabel: i18n("cfd84204d9476936c949d071cc2338cf"),
446
+ description: i18n("c6bd3393c21379d3f75d179abe36da3d"),
447
+ descDetail: function (info) {
448
+ return React__default.createElement("div", null, React__default.createElement("span", {
449
+ className: "variable-right"
450
+ }, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u89E6\u53D1\u6570\u636E\u67E5\u8BE2");
451
+ },
452
+ schema: getArgsWrapper(
453
+ /*
454
+ {
455
+ type: 'input-formula',
528
456
  variables: '${variables}',
457
+ evalMode: false,
458
+ variableMode: 'tabs',
459
+ label: '查询条件',
529
460
  size: 'md',
461
+ name: 'query',
530
462
  mode: 'horizontal'
531
- }))
532
- },
533
- // {
534
- // actionType: 'resetQuery',
535
- // actionLabel: '重置查询',
536
- // description: '重新恢复查询条件为初始值',
537
- // descDetail: (info: any) => {
538
- // return (
539
- // <div>
540
- // <span className="variable-right">{info?.__rendererLabel}</span>
541
- // 重置初始查询条件
542
- // </div>
543
- // );
544
- // }
545
- // },
546
- {
547
- actionType: 'loadMore',
548
- actionLabel: i18n("77281549955309c49f5eef77838a85e5"),
549
- description: i18n("b3a4d6a345372c5def1d5a1bf6077bce"),
550
- descDetail: function (info) {
551
- return React__default.createElement("div", null, React__default.createElement("span", {
552
- className: "variable-right"
553
- }, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u52A0\u8F7D\u66F4\u591A\u6570\u636E");
554
463
  }
555
- }]
556
- });
557
- Object.defineProperty(_this, "previewSchema", {
558
- enumerable: true,
559
- configurable: true,
560
- writable: true,
561
- value: {
562
- syncLocation: false,
563
- type: 'crud2',
564
- className: 'text-left',
565
- bodyClassName: 'm-b-none',
566
- affixHeader: false,
567
- data: {
568
- items: [{
569
- a: 1,
570
- b: 2
571
- }, {
572
- a: 3,
573
- b: 4
574
- }, {
575
- a: 5,
576
- b: 6
577
- }]
578
- },
579
- source: '${items}',
580
- columns: [{
581
- title: 'A',
582
- name: 'a'
464
+ */
465
+ getSchemaTpl('formulaControl', {
466
+ name: 'query',
467
+ label: i18n("cf12e55021998a8328201800ec356773"),
468
+ variables: '${variables}',
469
+ size: 'md',
470
+ mode: 'horizontal'
471
+ }))
472
+ },
473
+ // {
474
+ // actionType: 'resetQuery',
475
+ // actionLabel: '重置查询',
476
+ // description: '重新恢复查询条件为初始值',
477
+ // descDetail: (info: any) => {
478
+ // return (
479
+ // <div>
480
+ // <span className="variable-right">{info?.__rendererLabel}</span>
481
+ // 重置初始查询条件
482
+ // </div>
483
+ // );
484
+ // }
485
+ // },
486
+ {
487
+ actionType: 'loadMore',
488
+ actionLabel: i18n("77281549955309c49f5eef77838a85e5"),
489
+ description: i18n("b3a4d6a345372c5def1d5a1bf6077bce"),
490
+ descDetail: function (info) {
491
+ return React__default.createElement("div", null, React__default.createElement("span", {
492
+ className: "variable-right"
493
+ }, info === null || info === void 0 ? void 0 : info.__rendererLabel), "\u52A0\u8F7D\u66F4\u591A\u6570\u636E");
494
+ }
495
+ }];
496
+ _this.previewSchema = {
497
+ syncLocation: false,
498
+ type: 'crud2',
499
+ className: 'text-left',
500
+ bodyClassName: 'm-b-none',
501
+ affixHeader: false,
502
+ data: {
503
+ items: [{
504
+ a: 1,
505
+ b: 2
583
506
  }, {
584
- title: 'B',
585
- name: 'b'
507
+ a: 3,
508
+ b: 4
586
509
  }, {
587
- name: 'operation',
588
- title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
589
- buttons: [{
590
- icon: 'fa fa-eye',
591
- type: 'button'
592
- }, {
593
- icon: 'fa fa-edit',
594
- type: 'button'
595
- }]
510
+ a: 5,
511
+ b: 6
596
512
  }]
597
- }
598
- });
513
+ },
514
+ source: '${items}',
515
+ columns: [{
516
+ title: 'A',
517
+ name: 'a'
518
+ }, {
519
+ title: 'B',
520
+ name: 'b'
521
+ }, {
522
+ name: 'operation',
523
+ title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
524
+ buttons: [{
525
+ icon: 'fa fa-eye',
526
+ type: 'button'
527
+ }, {
528
+ icon: 'fa fa-edit',
529
+ type: 'button'
530
+ }]
531
+ }]
532
+ };
599
533
  _this.dsBuilderMgr = new DSBuilderManager('crud2', 'api');
600
534
  return _this;
601
535
  }
602
- Object.defineProperty(CRUDPlugin.prototype, "afterBuildPanelBody", {
603
- enumerable: false,
604
- configurable: true,
605
- writable: true,
606
- value: function (event) {
607
- var _a;
608
- return __awaiter(this, void 0, void 0, function () {
609
- var context;
610
- return __generator(this, function (_b) {
611
- switch (_b.label) {
612
- case 0:
613
- context = event.context.context;
614
- if (!(((_a = context.info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem) && new RegExp('/crud2/filter/').test(context.path))) return [3 /*break*/, 2];
615
- return [4 /*yield*/, this.addFilterPanelSetting(event.context)];
616
- case 1:
617
- _b.sent();
618
- return [3 /*break*/, 3];
619
- case 2:
620
- if (context.schema.type === 'crud2' && context.schema.mode === this.scaffold.mode) {
621
- this.addListPanelSetting(event.context);
622
- }
623
- _b.label = 3;
624
- case 3:
625
- return [2 /*return*/];
626
- }
627
- });
536
+ CRUDPlugin.prototype.afterBuildPanelBody = function (event) {
537
+ var _a;
538
+ return __awaiter(this, void 0, void 0, function () {
539
+ var context;
540
+ return __generator(this, function (_b) {
541
+ switch (_b.label) {
542
+ case 0:
543
+ context = event.context.context;
544
+ if (!(((_a = context.info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem) && new RegExp('/crud2/filter/').test(context.path))) return [3 /*break*/, 2];
545
+ return [4 /*yield*/, this.addFilterPanelSetting(event.context)];
546
+ case 1:
547
+ _b.sent();
548
+ return [3 /*break*/, 3];
549
+ case 2:
550
+ if (context.schema.type === 'crud2' && context.schema.mode === this.scaffold.mode) {
551
+ this.addListPanelSetting(event.context);
552
+ }
553
+ _b.label = 3;
554
+ case 3:
555
+ return [2 /*return*/];
556
+ }
628
557
  });
629
- }
630
- });
558
+ });
559
+ };
631
560
 
632
- Object.defineProperty(CRUDPlugin.prototype, "addFilterPanelSetting", {
633
- enumerable: false,
634
- configurable: true,
635
- writable: true,
636
- value: function (context) {
637
- var _a;
638
- return __awaiter(this, void 0, void 0, function () {
639
- var _b, info, node, form, host, builder, body_1;
640
- return __generator(this, function (_c) {
641
- switch (_c.label) {
642
- case 0:
643
- _b = context.context, info = _b.info, node = _b.node;
644
- if (!((_a = info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem)) return [3 /*break*/, 2];
645
- form = node.getClosestParentByType('form');
646
- host = node.getClosestParentByType('crud2');
647
- if (!host || !form || !form.schema.behavior || host.schema.mode !== this.scaffold.mode) {
648
- return [2 /*return*/];
649
- }
561
+ CRUDPlugin.prototype.addFilterPanelSetting = function (context) {
562
+ var _a;
563
+ return __awaiter(this, void 0, void 0, function () {
564
+ var _b, info, node, form, host, builder, body_1;
565
+ return __generator(this, function (_c) {
566
+ switch (_c.label) {
567
+ case 0:
568
+ _b = context.context, info = _b.info, node = _b.node;
569
+ if (!((_a = info.renderer) === null || _a === void 0 ? void 0 : _a.isFormItem)) return [3 /*break*/, 2];
570
+ form = node.getClosestParentByType('form');
571
+ host = node.getClosestParentByType('crud2');
572
+ if (!host || !form || !form.schema.behavior || host.schema.mode !== this.scaffold.mode) {
573
+ return [2 /*return*/];
574
+ }
650
575
 
651
- builder = this.dsBuilderMgr.resolveBuilderBySchema(host.schema, 'api');
652
- return [4 /*yield*/, builder.makeFieldFilterSetting({
653
- schema: host.schema,
654
- sourceKey: 'api',
655
- fieldName: node.schema.name
656
- })];
657
- case 1:
658
- body_1 = _c.sent();
659
- if (!body_1 || !body_1.length) {
660
- return [2 /*return*/];
661
- }
662
- // 可能会出错,但是cards table2 list 配置面板结构统一,因此
663
- context.data.tabs.forEach(function (tab) {
664
- if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
665
- tab.body[0].body.forEach(function (collapse) {
666
- var _a;
667
- if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
668
- // 在标题后面插入过滤条件
669
- (_a = collapse.body).splice.apply(_a, __spreadArray([2, 0], body_1, false));
670
- }
671
- });
672
- }
673
- });
674
- _c.label = 2;
675
- case 2:
576
+ builder = this.dsBuilderMgr.resolveBuilderBySchema(host.schema, 'api');
577
+ return [4 /*yield*/, builder.makeFieldFilterSetting({
578
+ schema: host.schema,
579
+ sourceKey: 'api',
580
+ fieldName: node.schema.name
581
+ })];
582
+ case 1:
583
+ body_1 = _c.sent();
584
+ if (!body_1 || !body_1.length) {
676
585
  return [2 /*return*/];
677
- }
678
- });
586
+ }
587
+ // 可能会出错,但是cards table2 list 配置面板结构统一,因此
588
+ context.data.tabs.forEach(function (tab) {
589
+ if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
590
+ tab.body[0].body.forEach(function (collapse) {
591
+ var _a;
592
+ if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
593
+ // 在标题后面插入过滤条件
594
+ (_a = collapse.body).splice.apply(_a, __spreadArray([2, 0], __read(body_1), false));
595
+ }
596
+ });
597
+ }
598
+ });
599
+ _c.label = 2;
600
+ case 2:
601
+ return [2 /*return*/];
602
+ }
679
603
  });
680
- }
681
- });
604
+ });
605
+ };
682
606
 
683
- Object.defineProperty(CRUDPlugin.prototype, "addDataOperatorSchema", {
684
- enumerable: false,
685
- configurable: true,
686
- writable: true,
687
- value: function (schema, content) {}
688
- });
689
- Object.defineProperty(CRUDPlugin.prototype, "addFeatToToolbar", {
690
- enumerable: false,
691
- configurable: true,
692
- writable: true,
693
- value: function (schema, content, position, align) {
694
- var region = "".concat(position, "Toolbar");
695
- schema[region] = schema[region] || [{
696
- type: 'grid',
697
- columns: [{
698
- body: []
699
- }, {
700
- columnClassName: 'text-right',
701
- body: []
702
- }]
703
- }];
704
- // 尝试放到左面第一个,否则只能放外头了
705
- try {
706
- schema[region][0].columns[align === 'left' ? 0 : 1].body.unshift(content);
707
- } catch (e) {
708
- schema[region].unshift(content);
709
- }
607
+ CRUDPlugin.prototype.addDataOperatorSchema = function (schema, content) {};
608
+ CRUDPlugin.prototype.addFeatToToolbar = function (schema, content, position, align) {
609
+ var region = "".concat(position, "Toolbar");
610
+ schema[region] = schema[region] || [{
611
+ type: 'grid',
612
+ columns: [{
613
+ body: []
614
+ }, {
615
+ columnClassName: 'text-right',
616
+ body: []
617
+ }]
618
+ }];
619
+ // 尝试放到左面第一个,否则只能放外头了
620
+ try {
621
+ schema[region][0].columns[align === 'left' ? 0 : 1].body.unshift(content);
622
+ } catch (e) {
623
+ schema[region].unshift(content);
710
624
  }
711
- });
712
- Object.defineProperty(CRUDPlugin.prototype, "filterOperators", {
713
- enumerable: false,
714
- configurable: true,
715
- writable: true,
716
- value: function (builder, context) {
717
- var _this = this;
718
- var operators = [];
719
- Tools.forEach(function (tool) {
720
- if (!builder.features.includes(tool.value)) {
625
+ };
626
+ CRUDPlugin.prototype.filterOperators = function (builder, context) {
627
+ var _this = this;
628
+ var operators = [];
629
+ Tools.forEach(function (tool) {
630
+ if (!builder.features.includes(tool.value)) {
631
+ return;
632
+ }
633
+ operators.push(__assign(__assign({}, tool), {
634
+ remove: function (schema) {
635
+ deepRemove(schema.headerToolbar, function (item) {
636
+ return item.behavior === tool.value;
637
+ });
638
+ deepRemove(schema.footerToolbar, function (item) {
639
+ return item.behavior === tool.value;
640
+ });
641
+ },
642
+ add: function (data) {
643
+ _this.addFeatToToolbar(data, tool.resolveSchema(data, builder), 'header', tool.align);
644
+ },
645
+ isActive: function (data) {
646
+ return _this.isFeatActive(data, tool.value, 'headerToolbar', 'footerToolbar');
647
+ }
648
+ }));
649
+ });
650
+ // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
651
+ if (context.schema.mode === 'table2') {
652
+ DataOperators.forEach(function (op) {
653
+ if (!builder.features.includes(op.value)) {
721
654
  return;
722
655
  }
723
- operators.push(__assign(__assign({}, tool), {
656
+ operators.push(__assign(__assign({}, op), {
724
657
  remove: function (schema) {
725
- deepRemove(schema.headerToolbar, function (item) {
726
- return item.behavior === tool.value;
727
- });
728
- deepRemove(schema.footerToolbar, function (item) {
729
- return item.behavior === tool.value;
658
+ deepRemove(schema.columns, function (item) {
659
+ return item.behavior === op.value;
730
660
  });
731
661
  },
732
662
  add: function (data) {
733
- _this.addFeatToToolbar(data, tool.resolveSchema(data, builder), 'header', tool.align);
663
+ _this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
734
664
  },
735
665
  isActive: function (data) {
736
- return _this.isFeatActive(data, tool.value, 'headerToolbar', 'footerToolbar');
666
+ return _this.isFeatActive(data, op.value, 'columns');
737
667
  }
738
668
  }));
739
669
  });
740
- // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
741
- if (context.schema.mode === 'table2') {
742
- DataOperators.forEach(function (op) {
743
- if (!builder.features.includes(op.value)) {
744
- return;
745
- }
746
- operators.push(__assign(__assign({}, op), {
747
- remove: function (schema) {
748
- deepRemove(schema.columns, function (item) {
749
- return item.behavior === op.value;
750
- });
751
- },
752
- add: function (data) {
753
- _this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
754
- },
755
- isActive: function (data) {
756
- return _this.isFeatActive(data, op.value, 'columns');
757
- }
758
- }));
759
- });
760
- }
761
- return operators;
762
670
  }
763
- });
764
- Object.defineProperty(CRUDPlugin.prototype, "makeFeatSetting", {
765
- enumerable: false,
766
- configurable: true,
767
- writable: true,
768
- value: function (feat, builder, inScaffold) {
769
- if (feat.makeSetting) {
770
- return feat.makeSetting(builder);
771
- }
772
- return builder.makeFieldsSettingForm({
773
- feat: feat.value,
774
- inCrud: true,
775
- inScaffold: inScaffold
671
+ return operators;
672
+ };
673
+ CRUDPlugin.prototype.makeFeatSetting = function (feat, builder, inScaffold) {
674
+ if (feat.makeSetting) {
675
+ return feat.makeSetting(builder);
676
+ }
677
+ return builder.makeFieldsSettingForm({
678
+ feat: feat.value,
679
+ inCrud: true,
680
+ inScaffold: inScaffold
681
+ });
682
+ };
683
+ CRUDPlugin.prototype.isFeatActive = function (schema, feat) {
684
+ var scope = [];
685
+ for (var _i = 2; _i < arguments.length; _i++) {
686
+ scope[_i - 2] = arguments[_i];
687
+ }
688
+ if (scope.length === 0) {
689
+ return findObj(schema, function (item) {
690
+ return item.behavior === feat;
776
691
  });
777
692
  }
778
- });
779
- Object.defineProperty(CRUDPlugin.prototype, "isFeatActive", {
780
- enumerable: false,
781
- configurable: true,
782
- writable: true,
783
- value: function (schema, feat) {
784
- var scope = [];
785
- for (var _i = 2; _i < arguments.length; _i++) {
786
- scope[_i - 2] = arguments[_i];
787
- }
788
- if (scope.length === 0) {
789
- return findObj(schema, function (item) {
790
- return item.behavior === feat;
791
- });
792
- }
793
- var region = null;
794
- while (region = scope.shift()) {
795
- if (findObj(schema[region], function (item) {
796
- return item.behavior === feat;
797
- })) {
798
- return true;
799
- }
693
+ var region = null;
694
+ while (region = scope.shift()) {
695
+ if (findObj(schema[region], function (item) {
696
+ return item.behavior === feat;
697
+ })) {
698
+ return true;
800
699
  }
801
- return false;
802
700
  }
803
- });
804
- Object.defineProperty(CRUDPlugin.prototype, "removeFeatSchema", {
805
- enumerable: false,
806
- configurable: true,
807
- writable: true,
808
- value: function (schema, feat) {
809
- var scope = [];
810
- for (var _i = 2; _i < arguments.length; _i++) {
811
- scope[_i - 2] = arguments[_i];
812
- }
813
- if (scope.length === 0) {
814
- return deepRemove(schema, function (item) {
815
- return item.behavior === feat;
816
- });
817
- }
818
- var region = null;
819
- while (region = scope.shift()) {
820
- deepRemove(schema[region], function (item) {
821
- return item.behavior === feat;
822
- });
823
- }
824
- return false;
701
+ return false;
702
+ };
703
+ CRUDPlugin.prototype.removeFeatSchema = function (schema, feat) {
704
+ var scope = [];
705
+ for (var _i = 2; _i < arguments.length; _i++) {
706
+ scope[_i - 2] = arguments[_i];
825
707
  }
826
- });
827
- Object.defineProperty(CRUDPlugin.prototype, "filterColumns", {
828
- enumerable: false,
829
- configurable: true,
830
- writable: true,
831
- value: function (builder, context) {
832
- var _a, _b, _c;
833
- var existColsName = [];
834
- var columns = [];
835
- // 实时获取,否则点击预览再回到编辑的时context中的node失效
836
- var node = this.manager.store.getNodeById(context.id);
837
- if (!node) {
838
- return columns;
839
- }
840
- var existCols = ((_b = (_a = node.children.find(function (child) {
841
- return child.type === 'table2';
842
- })) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children) || [];
843
- var hasOperatorCol = (_c = node.schema.columns) === null || _c === void 0 ? void 0 : _c.some(function (col) {
844
- return col.type === 'operation';
708
+ if (scope.length === 0) {
709
+ return deepRemove(schema, function (item) {
710
+ return item.behavior === feat;
845
711
  });
846
- existCols.some(function (col, index) {
847
- var _a;
848
- // 严格来说是单元格的集合,因此要屏蔽掉
849
- if (index !== 0 && col.id === existCols[0].id) {
850
- return true;
851
- }
852
- col.schema && columns.push({
853
- label: col.schema.title,
854
- value: col.id
855
- });
856
- ((_a = col.schema) === null || _a === void 0 ? void 0 : _a.key) && existColsName.push(col.schema.key);
857
- return false;
712
+ }
713
+ var region = null;
714
+ while (region = scope.shift()) {
715
+ deepRemove(schema[region], function (item) {
716
+ return item.behavior === feat;
858
717
  });
859
- if (node.schema.__fields) {
860
- var appendCols = builder.makeTableColumnsByFields(node.schema.__fields);
861
- if (appendCols === null || appendCols === void 0 ? void 0 : appendCols.length) {
862
- appendCols.forEach(function (col) {
863
- if (existColsName.includes(col.name)) {
864
- return;
865
- }
866
- columns.push({
867
- label: col.title,
868
- value: null,
869
- add: function (data) {
870
- data.columns.push(col);
871
- },
872
- isActive: function () {
873
- return false;
874
- }
875
- });
876
- });
877
- }
718
+ }
719
+ return false;
720
+ };
721
+ CRUDPlugin.prototype.filterColumns = function (builder, context) {
722
+ var _a, _b, _c;
723
+ var existColsName = [];
724
+ var columns = [];
725
+ // 实时获取,否则点击预览再回到编辑的时context中的node失效
726
+ var node = this.manager.store.getNodeById(context.id);
727
+ if (!node) {
728
+ return columns;
729
+ }
730
+ var existCols = ((_b = (_a = node.children.find(function (child) {
731
+ return child.type === 'table2';
732
+ })) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.children) || [];
733
+ var hasOperatorCol = (_c = node.schema.columns) === null || _c === void 0 ? void 0 : _c.some(function (col) {
734
+ return col.type === 'operation';
735
+ });
736
+ existCols.some(function (col, index) {
737
+ var _a;
738
+ // 严格来说是单元格的集合,因此要屏蔽掉
739
+ if (index !== 0 && col.id === existCols[0].id) {
740
+ return true;
878
741
  }
879
- if (!hasOperatorCol) {
880
- columns.push({
881
- label: i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),
882
- value: null,
883
- isActive: function () {
884
- return false;
885
- },
886
- add: function (data) {
887
- data.columns.push({
888
- type: 'operation',
889
- title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
890
- buttons: []
891
- });
742
+ col.schema && columns.push({
743
+ label: col.schema.title,
744
+ value: col.id
745
+ });
746
+ ((_a = col.schema) === null || _a === void 0 ? void 0 : _a.key) && existColsName.push(col.schema.key);
747
+ return false;
748
+ });
749
+ if (node.schema.__fields) {
750
+ var appendCols = builder.makeTableColumnsByFields(node.schema.__fields);
751
+ if (appendCols === null || appendCols === void 0 ? void 0 : appendCols.length) {
752
+ appendCols.forEach(function (col) {
753
+ if (existColsName.includes(col.name)) {
754
+ return;
892
755
  }
756
+ columns.push({
757
+ label: col.title,
758
+ value: null,
759
+ add: function (data) {
760
+ data.columns.push(col);
761
+ },
762
+ isActive: function () {
763
+ return false;
764
+ }
765
+ });
893
766
  });
894
767
  }
895
- // context.node.
896
- // // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
897
- // if (context.schema.mode === 'table2') {
898
- // DataOperators.forEach(op => {
899
- // if (!builder.features.includes(op.value)) {
900
- // return;
901
- // }
902
- // operators.push({
903
- // ...op,
904
- // remove: (schema: any) => {
905
- // deepRemove(schema.columns, item => item.behavior === op.value);
906
- // },
907
- // add: (data: any) => {
908
- // this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
909
- // },
910
- // isActive:(data: any) => {
911
- // return this.isFeatActive(data, op.value, 'columns');
912
- // }
913
- // });
914
- // });
915
- // }
916
- return columns;
917
768
  }
918
- });
919
- Object.defineProperty(CRUDPlugin.prototype, "addListPanelSetting", {
920
- enumerable: false,
921
- configurable: true,
922
- writable: true,
923
- value: function (context) {
924
- var _this = this;
925
- var body = context.data;
926
- var builder = this.dsBuilderMgr.resolveBuilderBySchema(context.context.schema, 'api');
927
- body.tabs.forEach(function (tab) {
928
- var _a, _b;
929
- if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
930
- tab.body[0].body.forEach(function (collapse) {
931
- var _a;
932
- if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
933
- (_a = collapse.body).unshift.apply(_a, __spreadArray(__spreadArray([], builder.makeSourceSettingForm({
934
- name: 'api',
935
- label: i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),
936
- feat: 'List',
937
- inCrud: true
938
- }), false), [getSchemaTpl('interval'), getSchemaTpl('switch', {
939
- name: 'syncLocation',
940
- label: tipedLabel(i18n("569343b4fe5e48131b78611c11eadbeb"), i18n("6dbee29a8c54eef9d042ef3280999ad9")),
941
- pipeIn: defaultValue(true)
942
- }), getSchemaTpl('switch', {
943
- label: i18n("240145572215920ae06db1eeb85b29c0"),
944
- name: 'selectable'
945
- }), getSchemaTpl('switch', {
946
- name: 'keepItemSelectionOnPageChange',
947
- label: tipedLabel(i18n("099cf136d6a4b6ed4646af4a2ed066b2"), i18n("60011314ed92794f3d4f3e874c359279")),
948
- visbileOn: 'this.selectable'
949
- })], false));
950
- }
951
- if (collapse.title === i18n("949a8b7bd2c10070a2fae16f9c66afbb")) {
952
- collapse.body.unshift(getSchemaTpl('switch', {
953
- name: 'columnsTogglable',
954
- label: tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"), i18n("d3c5079f7e26b1a7374ff76341376de4")),
955
- onChange: function (value, oldValue, model, form) {
956
- var schema = cloneDeep(form.data);
957
- if (value === true) {
958
- _this.addFeatToToolbar(schema, {
959
- type: 'column-toggler'
960
- }, 'header', 'right');
961
- } else {
962
- deepRemove(schema.headerToolbar, function (item) {
963
- return item.type === 'column-toggler';
964
- });
965
- }
966
- form.setValues(schema);
967
- return undefined;
968
- }
969
- }));
970
- collapse.body.unshift({
971
- type: 'ae-feature-control',
972
- label: false,
973
- features: function () {
974
- return _this.filterColumns(builder, context.context);
975
- },
976
- goFeatureComp: function (feat) {
977
- return feat.value;
978
- },
979
- removeFeature: function (feat) {
980
- _this.manager.del(feat.value);
981
- },
982
- manager: _this.manager,
983
- addable: true,
984
- removeable: true
985
- });
986
- }
769
+ if (!hasOperatorCol) {
770
+ columns.push({
771
+ label: i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),
772
+ value: null,
773
+ isActive: function () {
774
+ return false;
775
+ },
776
+ add: function (data) {
777
+ data.columns.push({
778
+ type: 'operation',
779
+ title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
780
+ buttons: []
987
781
  });
988
- var moreCollapse = getSchemaTpl('collapseGroup', [{
989
- title: i18n("4a3ebd0ef27212de3b0c39e6a9701b1d"),
990
- order: 2,
991
- body: FilterTypes.map(function (item) {
992
- // 当前数据源可能不开启这个功能
993
- if (!builder.features.includes(item.value)) {
994
- return null;
995
- }
996
- var fields = [];
997
- // await builder.getContextFileds({
998
- // schema: context.node.schema,
999
- // feat: item.value,
1000
- // sourceKey: 'api'
1001
- // });
1002
- // 开关配置
1003
- // const moreConfig = builder.makeFieldsSettingForm({
1004
- // feat: item.value,
1005
- // inCrud: true,
1006
- // inScaffold: false
1007
- // });
1008
- var base = {
1009
- label: item.label,
1010
- name: "__".concat(item.value),
1011
- pipeIn: function (value, form) {
1012
- if (item.value === 'FuzzyQuery') {
1013
- return _this.isFeatActive(form.data, item.value, 'headerToolbar', 'footerToolvar');
1014
- }
1015
- return _this.isFeatActive(form.data, item.value, 'filter');
1016
- },
1017
- onChange: function (value, oldValue, model, form) {
1018
- var schema = cloneDeep(form.data);
1019
- if (value === true) {
1020
- if (item.value === 'FuzzyQuery') {
1021
- _this.addFeatToToolbar(schema, item.resolveSchema(schema, builder), 'header', 'right');
1022
- } else {
1023
- schema.filter.push(item.resolveSchema(schema, builder));
1024
- }
1025
- } else if (value === false) {
1026
- _this.removeFeatSchema(schema, item.value);
1027
- }
1028
- form.setValues(schema);
1029
- return undefined;
1030
- }
1031
- };
1032
- return fields && fields.length ? __assign(__assign({}, base), {
1033
- type: 'ae-switch-more',
1034
- formType: 'extend',
1035
- mode: 'normal',
1036
- form: {
1037
- body: fields
782
+ }
783
+ });
784
+ }
785
+ // context.node.
786
+ // // 只有表格才能找到操作列放这个内容,卡片和列表不知道位置
787
+ // if (context.schema.mode === 'table2') {
788
+ // DataOperators.forEach(op => {
789
+ // if (!builder.features.includes(op.value)) {
790
+ // return;
791
+ // }
792
+ // operators.push({
793
+ // ...op,
794
+ // remove: (schema: any) => {
795
+ // deepRemove(schema.columns, item => item.behavior === op.value);
796
+ // },
797
+ // add: (data: any) => {
798
+ // this.addDataOperatorSchema(data, op.resolveSchema(data, builder));
799
+ // },
800
+ // isActive:(data: any) => {
801
+ // return this.isFeatActive(data, op.value, 'columns');
802
+ // }
803
+ // });
804
+ // });
805
+ // }
806
+ return columns;
807
+ };
808
+ CRUDPlugin.prototype.addListPanelSetting = function (context) {
809
+ var _this = this;
810
+ var body = context.data;
811
+ var builder = this.dsBuilderMgr.resolveBuilderBySchema(context.context.schema, 'api');
812
+ body.tabs.forEach(function (tab) {
813
+ var _a, _b;
814
+ if (tab.title === i18n("24d67862f87f439db7ca957aecb77cce")) {
815
+ tab.body[0].body.forEach(function (collapse) {
816
+ var _a;
817
+ if (collapse.title === i18n("4092ed98e9035652d4c9ca9441701ed7")) {
818
+ (_a = collapse.body).unshift.apply(_a, __spreadArray(__spreadArray([], __read(builder.makeSourceSettingForm({
819
+ name: 'api',
820
+ label: i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),
821
+ feat: 'List',
822
+ inCrud: true
823
+ })), false), [getSchemaTpl('interval'), getSchemaTpl('switch', {
824
+ name: 'syncLocation',
825
+ label: tipedLabel(i18n("569343b4fe5e48131b78611c11eadbeb"), i18n("6dbee29a8c54eef9d042ef3280999ad9")),
826
+ pipeIn: defaultValue(true)
827
+ }), getSchemaTpl('switch', {
828
+ label: i18n("240145572215920ae06db1eeb85b29c0"),
829
+ name: 'selectable'
830
+ }), getSchemaTpl('switch', {
831
+ name: 'keepItemSelectionOnPageChange',
832
+ label: tipedLabel(i18n("099cf136d6a4b6ed4646af4a2ed066b2"), i18n("60011314ed92794f3d4f3e874c359279")),
833
+ visbileOn: 'this.selectable'
834
+ })], false));
835
+ }
836
+ if (collapse.title === i18n("949a8b7bd2c10070a2fae16f9c66afbb")) {
837
+ collapse.body.unshift(getSchemaTpl('switch', {
838
+ name: 'columnsTogglable',
839
+ label: tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"), i18n("d3c5079f7e26b1a7374ff76341376de4")),
840
+ onChange: function (value, oldValue, model, form) {
841
+ var schema = cloneDeep(form.data);
842
+ if (value === true) {
843
+ _this.addFeatToToolbar(schema, {
844
+ type: 'column-toggler'
845
+ }, 'header', 'right');
846
+ } else {
847
+ deepRemove(schema.headerToolbar, function (item) {
848
+ return item.type === 'column-toggler';
849
+ });
1038
850
  }
1039
- }) : getSchemaTpl('switch', base);
1040
- })
1041
- }, {
1042
- title: i18n("a9a3a4608d48214efbdfac99888f6e0f"),
1043
- order: 3,
1044
- body: [{
851
+ form.setValues(schema);
852
+ return undefined;
853
+ }
854
+ }));
855
+ collapse.body.unshift({
1045
856
  type: 'ae-feature-control',
1046
857
  label: false,
1047
- features: _this.filterOperators(builder, context.context),
858
+ features: function () {
859
+ return _this.filterColumns(builder, context.context);
860
+ },
1048
861
  goFeatureComp: function (feat) {
1049
- var _a;
1050
- var node = context.context.node;
1051
- if (node.isSecondFactor) {
1052
- node = node.parent;
1053
- }
1054
- return (_a = findTree(node.children, function (item) {
1055
- return item.schema.behavior === feat.value;
1056
- })) === null || _a === void 0 ? void 0 : _a.id;
862
+ return feat.value;
863
+ },
864
+ removeFeature: function (feat) {
865
+ _this.manager.del(feat.value);
1057
866
  },
1058
867
  manager: _this.manager,
1059
868
  addable: true,
1060
- addText: i18n("84a2f40385427bbf2edc79e3368e4e0f"),
1061
869
  removeable: true
1062
- }]
1063
- }, {
1064
- title: i18n("cb43abed5ba14bf32fbb1058e12d2303"),
1065
- order: 4,
1066
- body: [{
1067
- type: 'select',
1068
- label: i18n("48b42e5c3ea447092eaf0a1a13195540"),
1069
- name: '__pgType',
1070
- options: [{
1071
- label: i18n("d81bb206a889656035b929cd8bb1ef10"),
1072
- value: 'none'
1073
- }, {
1074
- label: i18n("3862626c138ce5945e0e273a1bdfbad0"),
1075
- value: 'Pagination'
1076
- }, {
1077
- label: i18n("77281549955309c49f5eef77838a85e5"),
1078
- value: 'LoadMore'
1079
- }].filter(function (i) {
1080
- return i;
1081
- }),
870
+ });
871
+ }
872
+ });
873
+ var moreCollapse = getSchemaTpl('collapseGroup', [{
874
+ title: i18n("4a3ebd0ef27212de3b0c39e6a9701b1d"),
875
+ order: 2,
876
+ body: FilterTypes.map(function (item) {
877
+ // 当前数据源可能不开启这个功能
878
+ if (!builder.features.includes(item.value)) {
879
+ return null;
880
+ }
881
+ var fields = [];
882
+ // await builder.getContextFileds({
883
+ // schema: context.node.schema,
884
+ // feat: item.value,
885
+ // sourceKey: 'api'
886
+ // });
887
+ // 开关配置
888
+ // const moreConfig = builder.makeFieldsSettingForm({
889
+ // feat: item.value,
890
+ // inCrud: true,
891
+ // inScaffold: false
892
+ // });
893
+ var base = {
894
+ label: item.label,
895
+ name: "__".concat(item.value),
1082
896
  pipeIn: function (value, form) {
1083
- var pg = findObj([].concat(form.data.headerToolbar).concat(form.data.footerToolbar), function (item) {
1084
- return item && ['Pagination', 'LoadMore'].includes(item.behavior);
1085
- });
1086
- return (pg === null || pg === void 0 ? void 0 : pg.behavior) || 'none';
897
+ if (item.value === 'FuzzyQuery') {
898
+ return _this.isFeatActive(form.data, item.value, 'headerToolbar', 'footerToolvar');
899
+ }
900
+ return _this.isFeatActive(form.data, item.value, 'filter');
1087
901
  },
1088
902
  onChange: function (value, oldValue, model, form) {
1089
903
  var schema = cloneDeep(form.data);
1090
- var region = [].concat(schema.headerToolbar).concat(schema.footerToolbar);
1091
- if (value === 'none') {
1092
- deepRemove(region, function (item) {
1093
- return item && ['Pagination', 'LoadMore'].includes(item.behavior);
1094
- });
1095
- } else {
1096
- var remove_1;
1097
- var content = void 0;
1098
- if (value === 'Pagination') {
1099
- remove_1 = 'LoadMore';
1100
- content = {
1101
- type: 'pagination',
1102
- behavior: value,
1103
- layout: ['total', 'perPage', 'pager', 'go']
1104
- };
904
+ if (value === true) {
905
+ if (item.value === 'FuzzyQuery') {
906
+ _this.addFeatToToolbar(schema, item.resolveSchema(schema, builder), 'header', 'right');
1105
907
  } else {
1106
- remove_1 = 'Pagination';
1107
- content = {
1108
- type: 'button',
1109
- behavior: value,
1110
- label: i18n("77281549955309c49f5eef77838a85e5"),
1111
- onEvent: {
1112
- click: {
1113
- actions: [{
1114
- actionType: 'loadMore',
1115
- componentId: schema.id
1116
- }]
1117
- }
1118
- }
1119
- };
908
+ schema.filter.push(item.resolveSchema(schema, builder));
1120
909
  }
1121
- deepRemove(region, function (item) {
1122
- return item && item.behavior === remove_1;
1123
- });
1124
- _this.addFeatToToolbar(schema, content, 'footer', 'right');
910
+ } else if (value === false) {
911
+ _this.removeFeatSchema(schema, item.value);
1125
912
  }
1126
913
  form.setValues(schema);
1127
914
  return undefined;
1128
915
  }
1129
- }, getSchemaTpl('switch', {
1130
- label: tipedLabel(i18n("16b8ff2b147382be4cf8654f829df904"), i18n("d2e20bb1e977f9571a9e2d1b39a7ff10")),
1131
- name: ''
1132
- })]
1133
- }]);
1134
- (_a = tab.body[0].body).splice.apply(_a, __spreadArray([1, 0], moreCollapse.body, false));
1135
- // 让折叠器默认都展开
1136
- (_b = tab.body[0].activeKey).push.apply(_b, moreCollapse.activeKey);
1137
- }
1138
- });
1139
- }
1140
- });
1141
- Object.defineProperty(CRUDPlugin.prototype, "getScaffoldFeatureTab", {
1142
- enumerable: false,
1143
- configurable: true,
1144
- writable: true,
1145
- value: function () {
1146
- var _this = this;
1147
- var generator = function (feat, featGroup) {
1148
- return _this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
1149
- if (!builder.features.includes(feat.value)) {
1150
- return null;
1151
- }
1152
- var content = _this.makeFeatSetting(feat, builder, true);
1153
- if (!content || content.length === 0) {
1154
- return null;
1155
- }
1156
- var isFeatOpened = featGroup ? "data['".concat(featGroup, "'] && ~data['").concat(featGroup, "'].indexOf('").concat(feat.value, "')") : true;
1157
- return {
1158
- title: feat.label,
1159
- visibleOn: "(!data.dsType || data.dsType === '".concat(builderName, "') && ").concat(isFeatOpened),
1160
- body: content.filter(function (i) {
916
+ };
917
+ return fields && fields.length ? __assign(__assign({}, base), {
918
+ type: 'ae-switch-more',
919
+ formType: 'extend',
920
+ mode: 'normal',
921
+ form: {
922
+ body: fields
923
+ }
924
+ }) : getSchemaTpl('switch', base);
925
+ })
926
+ }, {
927
+ title: i18n("a9a3a4608d48214efbdfac99888f6e0f"),
928
+ order: 3,
929
+ body: [{
930
+ type: 'ae-feature-control',
931
+ label: false,
932
+ features: _this.filterOperators(builder, context.context),
933
+ goFeatureComp: function (feat) {
934
+ var _a;
935
+ var node = context.context.node;
936
+ if (node.isSecondFactor) {
937
+ node = node.parent;
938
+ }
939
+ return (_a = findTree(node.children, function (item) {
940
+ return item.schema.behavior === feat.value;
941
+ })) === null || _a === void 0 ? void 0 : _a.id;
942
+ },
943
+ manager: _this.manager,
944
+ addable: true,
945
+ addText: i18n("84a2f40385427bbf2edc79e3368e4e0f"),
946
+ removeable: true
947
+ }]
948
+ }, {
949
+ title: i18n("cb43abed5ba14bf32fbb1058e12d2303"),
950
+ order: 4,
951
+ body: [{
952
+ type: 'select',
953
+ label: i18n("48b42e5c3ea447092eaf0a1a13195540"),
954
+ name: '__pgType',
955
+ options: [{
956
+ label: i18n("d81bb206a889656035b929cd8bb1ef10"),
957
+ value: 'none'
958
+ }, {
959
+ label: i18n("3862626c138ce5945e0e273a1bdfbad0"),
960
+ value: 'Pagination'
961
+ }, {
962
+ label: i18n("77281549955309c49f5eef77838a85e5"),
963
+ value: 'LoadMore'
964
+ }].filter(function (i) {
1161
965
  return i;
1162
- }).map(function (formItem) {
1163
- return __assign(__assign({}, formItem), {
1164
- mode: 'normal'
966
+ }),
967
+ pipeIn: function (value, form) {
968
+ var pg = findObj([].concat(form.data.headerToolbar).concat(form.data.footerToolbar), function (item) {
969
+ return item && ['Pagination', 'LoadMore'].includes(item.behavior);
1165
970
  });
1166
- })
1167
- };
1168
- });
1169
- };
1170
- return flattenDeep([generator({
1171
- label: i18n("46a0f3086dce242abe54e48bd86e0394"),
1172
- value: 'List',
1173
- resolveSchema: function () {}
1174
- }), Tools.map(function (item) {
1175
- return generator(item, 'tools');
1176
- }), FilterTypes.map(function (item) {
1177
- return generator(item, 'filters');
1178
- }), DataOperators.map(function (item) {
1179
- return generator(item, 'operators');
1180
- })]).filter(function (i) {
1181
- return i;
971
+ return (pg === null || pg === void 0 ? void 0 : pg.behavior) || 'none';
972
+ },
973
+ onChange: function (value, oldValue, model, form) {
974
+ var schema = cloneDeep(form.data);
975
+ var region = [].concat(schema.headerToolbar).concat(schema.footerToolbar);
976
+ if (value === 'none') {
977
+ deepRemove(region, function (item) {
978
+ return item && ['Pagination', 'LoadMore'].includes(item.behavior);
979
+ });
980
+ } else {
981
+ var remove_1;
982
+ var content = void 0;
983
+ if (value === 'Pagination') {
984
+ remove_1 = 'LoadMore';
985
+ content = {
986
+ type: 'pagination',
987
+ behavior: value,
988
+ layout: ['total', 'perPage', 'pager', 'go']
989
+ };
990
+ } else {
991
+ remove_1 = 'Pagination';
992
+ content = {
993
+ type: 'button',
994
+ behavior: value,
995
+ label: i18n("77281549955309c49f5eef77838a85e5"),
996
+ onEvent: {
997
+ click: {
998
+ actions: [{
999
+ actionType: 'loadMore',
1000
+ componentId: schema.id
1001
+ }]
1002
+ }
1003
+ }
1004
+ };
1005
+ }
1006
+ deepRemove(region, function (item) {
1007
+ return item && item.behavior === remove_1;
1008
+ });
1009
+ _this.addFeatToToolbar(schema, content, 'footer', 'right');
1010
+ }
1011
+ form.setValues(schema);
1012
+ return undefined;
1013
+ }
1014
+ }, getSchemaTpl('switch', {
1015
+ label: tipedLabel(i18n("16b8ff2b147382be4cf8654f829df904"), i18n("d2e20bb1e977f9571a9e2d1b39a7ff10")),
1016
+ name: ''
1017
+ })]
1018
+ }]);
1019
+ (_a = tab.body[0].body).splice.apply(_a, __spreadArray([1, 0], __read(moreCollapse.body), false));
1020
+ // 让折叠器默认都展开
1021
+ (_b = tab.body[0].activeKey).push.apply(_b, __spreadArray([], __read(moreCollapse.activeKey), false));
1022
+ }
1023
+ });
1024
+ };
1025
+ CRUDPlugin.prototype.getScaffoldFeatureTab = function () {
1026
+ var _this = this;
1027
+ var generator = function (feat, featGroup) {
1028
+ return _this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
1029
+ if (!builder.features.includes(feat.value)) {
1030
+ return null;
1031
+ }
1032
+ var content = _this.makeFeatSetting(feat, builder, true);
1033
+ if (!content || content.length === 0) {
1034
+ return null;
1035
+ }
1036
+ var isFeatOpened = featGroup ? "data['".concat(featGroup, "'] && ~data['").concat(featGroup, "'].indexOf('").concat(feat.value, "')") : true;
1037
+ return {
1038
+ title: feat.label,
1039
+ visibleOn: "(!data.dsType || data.dsType === '".concat(builderName, "') && ").concat(isFeatOpened),
1040
+ body: content.filter(function (i) {
1041
+ return i;
1042
+ }).map(function (formItem) {
1043
+ return __assign(__assign({}, formItem), {
1044
+ mode: 'normal'
1045
+ });
1046
+ })
1047
+ };
1182
1048
  });
1183
- }
1184
- });
1049
+ };
1050
+ return flattenDeep([generator({
1051
+ label: i18n("46a0f3086dce242abe54e48bd86e0394"),
1052
+ value: 'List',
1053
+ resolveSchema: function () {}
1054
+ }), Tools.map(function (item) {
1055
+ return generator(item, 'tools');
1056
+ }), FilterTypes.map(function (item) {
1057
+ return generator(item, 'filters');
1058
+ }), DataOperators.map(function (item) {
1059
+ return generator(item, 'operators');
1060
+ })]).filter(function (i) {
1061
+ return i;
1062
+ });
1063
+ };
1185
1064
  /** 将数据资源和数据操作进行填充 */
1186
- Object.defineProperty(CRUDPlugin.prototype, "resolveListField", {
1187
- enumerable: false,
1188
- configurable: true,
1189
- writable: true,
1190
- value: function (setting, schema, builder) {}
1191
- });
1065
+ CRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {};
1192
1066
  Object.defineProperty(CRUDPlugin.prototype, "scaffoldForm", {
1193
1067
  get: function () {
1194
1068
  var _this = this;
@@ -1217,7 +1091,7 @@ var CRUDPlugin = /** @class */function (_super) {
1217
1091
  }
1218
1092
  return value;
1219
1093
  }
1220
- })], this.dsBuilderMgr.collectFromBuilders(function (builder, builderFlag) {
1094
+ })], __read(this.dsBuilderMgr.collectFromBuilders(function (builder, builderFlag) {
1221
1095
  return {
1222
1096
  type: 'container',
1223
1097
  visibleOn: "dsType == null || dsType === '".concat(builderFlag, "'"),
@@ -1227,10 +1101,10 @@ var CRUDPlugin = /** @class */function (_super) {
1227
1101
  inCrud: true
1228
1102
  })])
1229
1103
  };
1230
- }), true)
1104
+ })), false)
1231
1105
  }, {
1232
1106
  title: i18n("c2f1f9254c245976e346377515c2e578"),
1233
- body: __spreadArray(__spreadArray([], this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
1107
+ body: __spreadArray(__spreadArray([], __read(this.dsBuilderMgr.collectFromBuilders(function (builder, builderName) {
1234
1108
  var check = function (item) {
1235
1109
  return DSFeature[item.value] == null || builder.features.includes(item.value);
1236
1110
  };
@@ -1267,7 +1141,7 @@ var CRUDPlugin = /** @class */function (_super) {
1267
1141
  type: 'container'
1268
1142
  }]
1269
1143
  };
1270
- }), true), [{
1144
+ })), false), [{
1271
1145
  type: 'tabs',
1272
1146
  tabsMode: 'vertical',
1273
1147
  className: 'ae-Scaffold-Modal-Tabs',
@@ -1338,111 +1212,96 @@ var CRUDPlugin = /** @class */function (_super) {
1338
1212
  enumerable: false,
1339
1213
  configurable: true
1340
1214
  });
1341
- Object.defineProperty(CRUDPlugin.prototype, "getRendererInfo", {
1342
- enumerable: false,
1343
- configurable: true,
1344
- writable: true,
1345
- value: function (context) {
1346
- var renderer = context.renderer,
1347
- schema = context.schema;
1348
- if (this.scaffold && renderer.name === 'crud2' && schema.mode === this.scaffold.mode) {
1349
- return _super.prototype.getRendererInfo.call(this, context);
1350
- }
1215
+ CRUDPlugin.prototype.getRendererInfo = function (context) {
1216
+ var renderer = context.renderer,
1217
+ schema = context.schema;
1218
+ if (this.scaffold && renderer.name === 'crud2' && schema.mode === this.scaffold.mode) {
1219
+ return _super.prototype.getRendererInfo.call(this, context);
1351
1220
  }
1352
- });
1353
- Object.defineProperty(CRUDPlugin.prototype, "buildDataSchemas", {
1354
- enumerable: false,
1355
- configurable: true,
1356
- writable: true,
1357
- value: function (node, region) {
1358
- var _a, _b, _c;
1359
- return __awaiter(this, void 0, void 0, function () {
1360
- var child, items, builder, fields, childDataSchema, schema;
1361
- return __generator(this, function (_d) {
1362
- switch (_d.label) {
1363
- case 0:
1364
- child = node.children.find(function (item) {
1365
- return !!~['table2', 'cards', 'list'].indexOf(item.type);
1366
- });
1367
- builder = this.dsBuilderMgr.resolveBuilderBySchema(node.schema, 'api');
1368
- if (!(builder && node.schema.api)) return [3 /*break*/, 2];
1369
- return [4 /*yield*/, builder.getContextFileds({
1370
- schema: node.schema,
1371
- sourceKey: 'api',
1372
- feat: 'List'
1373
- })];
1374
- case 1:
1375
- fields = _d.sent();
1376
- if (fields) {
1377
- items = {
1378
- type: 'object',
1379
- properties: fromPairs(fields.map(function (field) {
1380
- return [field.value, {
1381
- type: field.valueType || 'string',
1382
- title: field.label
1383
- }];
1384
- }))
1385
- };
1386
- }
1387
- _d.label = 2;
1388
- case 2:
1389
- if (!(items == null)) return [3 /*break*/, 4];
1390
- 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)];
1391
- case 3:
1392
- childDataSchema = _d.sent();
1393
- items = (_c = childDataSchema === null || childDataSchema === void 0 ? void 0 : childDataSchema.properties) === null || _c === void 0 ? void 0 : _c.items;
1394
- _d.label = 4;
1395
- case 4:
1396
- schema = {
1397
- $id: 'crud2',
1221
+ };
1222
+ CRUDPlugin.prototype.buildDataSchemas = function (node, region) {
1223
+ var _a, _b, _c;
1224
+ return __awaiter(this, void 0, void 0, function () {
1225
+ var child, items, builder, fields, childDataSchema, schema;
1226
+ return __generator(this, function (_d) {
1227
+ switch (_d.label) {
1228
+ case 0:
1229
+ child = node.children.find(function (item) {
1230
+ return !!~['table2', 'cards', 'list'].indexOf(item.type);
1231
+ });
1232
+ builder = this.dsBuilderMgr.resolveBuilderBySchema(node.schema, 'api');
1233
+ if (!(builder && node.schema.api)) return [3 /*break*/, 2];
1234
+ return [4 /*yield*/, builder.getContextFileds({
1235
+ schema: node.schema,
1236
+ sourceKey: 'api',
1237
+ feat: 'List'
1238
+ })];
1239
+ case 1:
1240
+ fields = _d.sent();
1241
+ if (fields) {
1242
+ items = {
1398
1243
  type: 'object',
1399
- properties: __assign(__assign({}, items.properties), {
1400
- items: __assign(__assign({}, items), {
1401
- title: i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e")
1402
- }),
1403
- selectedItems: __assign(__assign({}, items), {
1404
- title: i18n("2c77cfaef73ce2e81131861e9c6d670e")
1405
- }),
1406
- unSelectedItems: __assign(__assign({}, items), {
1407
- title: i18n("9c9153c49491c381dc2adb2c36fccb04")
1408
- }),
1409
- page: {
1410
- type: 'number',
1411
- title: i18n("9a4fe969f1066e197fd2369a44d879ac")
1412
- },
1413
- total: {
1414
- type: 'number',
1415
- title: i18n("a7f33a2d99056edcdaced5c8841a9bcb")
1416
- }
1417
- })
1244
+ properties: fromPairs(fields.map(function (field) {
1245
+ return [field.value, {
1246
+ type: field.valueType || 'string',
1247
+ title: field.label
1248
+ }];
1249
+ }))
1418
1250
  };
1419
- return [2 /*return*/, schema];
1420
- }
1421
- });
1251
+ }
1252
+ _d.label = 2;
1253
+ case 2:
1254
+ if (!(items == null)) return [3 /*break*/, 4];
1255
+ 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)];
1256
+ case 3:
1257
+ childDataSchema = _d.sent();
1258
+ items = (_c = childDataSchema === null || childDataSchema === void 0 ? void 0 : childDataSchema.properties) === null || _c === void 0 ? void 0 : _c.items;
1259
+ _d.label = 4;
1260
+ case 4:
1261
+ schema = {
1262
+ $id: 'crud2',
1263
+ type: 'object',
1264
+ properties: __assign(__assign({}, items.properties), {
1265
+ items: __assign(__assign({}, items), {
1266
+ title: i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e")
1267
+ }),
1268
+ selectedItems: __assign(__assign({}, items), {
1269
+ title: i18n("2c77cfaef73ce2e81131861e9c6d670e")
1270
+ }),
1271
+ unSelectedItems: __assign(__assign({}, items), {
1272
+ title: i18n("9c9153c49491c381dc2adb2c36fccb04")
1273
+ }),
1274
+ page: {
1275
+ type: 'number',
1276
+ title: i18n("9a4fe969f1066e197fd2369a44d879ac")
1277
+ },
1278
+ total: {
1279
+ type: 'number',
1280
+ title: i18n("a7f33a2d99056edcdaced5c8841a9bcb")
1281
+ }
1282
+ })
1283
+ };
1284
+ return [2 /*return*/, schema];
1285
+ }
1422
1286
  });
1423
- }
1424
- });
1425
- Object.defineProperty(CRUDPlugin.prototype, "getAvailableContextFields", {
1426
- enumerable: false,
1427
- configurable: true,
1428
- writable: true,
1429
- value: function (scopeNode, node, region) {
1430
- return __awaiter(this, void 0, void 0, function () {
1431
- var builder;
1432
- return __generator(this, function (_a) {
1433
- builder = this.dsBuilderMgr.resolveBuilderBySchema(scopeNode.schema, 'api');
1434
- if (builder && scopeNode.schema.api) {
1435
- return [2 /*return*/, builder.getAvailableContextFileds({
1436
- schema: scopeNode.schema,
1437
- sourceKey: 'api',
1438
- feat: 'List'
1439
- }, node)];
1440
- }
1441
- return [2 /*return*/];
1442
- });
1287
+ });
1288
+ };
1289
+ CRUDPlugin.prototype.getAvailableContextFields = function (scopeNode, node, region) {
1290
+ return __awaiter(this, void 0, void 0, function () {
1291
+ var builder;
1292
+ return __generator(this, function (_a) {
1293
+ builder = this.dsBuilderMgr.resolveBuilderBySchema(scopeNode.schema, 'api');
1294
+ if (builder && scopeNode.schema.api) {
1295
+ return [2 /*return*/, builder.getAvailableContextFileds({
1296
+ schema: scopeNode.schema,
1297
+ sourceKey: 'api',
1298
+ feat: 'List'
1299
+ }, node)];
1300
+ }
1301
+ return [2 /*return*/];
1443
1302
  });
1444
- }
1445
- });
1303
+ });
1304
+ };
1446
1305
 
1447
1306
  return CRUDPlugin;
1448
1307
  }(BasePlugin);
@@ -1451,95 +1310,54 @@ var TableCRUDPlugin = /** @class */function (_super) {
1451
1310
  function TableCRUDPlugin() {
1452
1311
  var _this = _super !== null && _super.apply(this, arguments) || this;
1453
1312
  // 组件名称
1454
- Object.defineProperty(_this, "name", {
1455
- enumerable: true,
1456
- configurable: true,
1457
- writable: true,
1458
- value: i18n("b339aa87104709397ba68e7ebbc6e5ba")
1459
- });
1460
- Object.defineProperty(_this, "isBaseComponent", {
1461
- enumerable: true,
1462
- configurable: true,
1463
- writable: true,
1464
- value: true
1465
- });
1466
- Object.defineProperty(_this, "description", {
1467
- enumerable: true,
1468
- configurable: true,
1469
- writable: true,
1470
- value: i18n("7a9f1ec32752de8b69ef21138970f64d")
1471
- });
1472
- Object.defineProperty(_this, "order", {
1473
- enumerable: true,
1474
- configurable: true,
1475
- writable: true,
1476
- value: -1000
1477
- });
1478
- Object.defineProperty(_this, "icon", {
1479
- enumerable: true,
1480
- configurable: true,
1481
- writable: true,
1482
- value: 'fa fa-table'
1483
- });
1484
- Object.defineProperty(_this, "scaffold", {
1485
- enumerable: true,
1486
- configurable: true,
1487
- writable: true,
1488
- value: {
1489
- type: 'crud2',
1490
- mode: 'table2',
1491
- columns: [{
1492
- name: 'id',
1493
- title: 'ID',
1494
- type: 'container',
1495
- body: [{
1496
- type: 'text'
1497
- }]
1498
- }, {
1499
- name: 'engine',
1500
- title: i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),
1501
- type: 'container',
1502
- body: [{
1503
- type: 'text'
1504
- }]
1313
+ _this.name = i18n("b339aa87104709397ba68e7ebbc6e5ba");
1314
+ _this.isBaseComponent = true;
1315
+ _this.description = i18n("7a9f1ec32752de8b69ef21138970f64d");
1316
+ _this.order = -1000;
1317
+ _this.icon = 'fa fa-table';
1318
+ _this.scaffold = {
1319
+ type: 'crud2',
1320
+ mode: 'table2',
1321
+ columns: [{
1322
+ name: 'id',
1323
+ title: 'ID',
1324
+ type: 'container',
1325
+ body: [{
1326
+ type: 'text'
1505
1327
  }]
1506
- }
1507
- });
1508
- Object.defineProperty(_this, "panelTitle", {
1509
- enumerable: true,
1510
- configurable: true,
1511
- writable: true,
1512
- value: void 0
1513
- });
1328
+ }, {
1329
+ name: 'engine',
1330
+ title: i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),
1331
+ type: 'container',
1332
+ body: [{
1333
+ type: 'text'
1334
+ }]
1335
+ }]
1336
+ };
1514
1337
  return _this;
1515
1338
  }
1516
- Object.defineProperty(TableCRUDPlugin.prototype, "resolveListField", {
1517
- enumerable: false,
1518
- configurable: true,
1519
- writable: true,
1520
- value: function (setting, schema, builder) {
1521
- var _a;
1522
- builder.resolveTableSchema({
1523
- schema: schema,
1524
- setting: setting,
1525
- inCrud: true
1339
+ TableCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
1340
+ var _a;
1341
+ builder.resolveTableSchema({
1342
+ schema: schema,
1343
+ setting: setting,
1344
+ inCrud: true
1345
+ });
1346
+ if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1347
+ var operators_1 = [];
1348
+ DataOperators.forEach(function (feat) {
1349
+ var _a;
1350
+ if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1351
+ operators_1.push(feat.resolveSchema(setting, builder));
1352
+ }
1353
+ });
1354
+ schema.columns.push({
1355
+ type: 'operation',
1356
+ title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
1357
+ buttons: operators_1
1526
1358
  });
1527
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1528
- var operators_1 = [];
1529
- DataOperators.forEach(function (feat) {
1530
- var _a;
1531
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1532
- operators_1.push(feat.resolveSchema(setting, builder));
1533
- }
1534
- });
1535
- schema.columns.push({
1536
- type: 'operation',
1537
- title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
1538
- buttons: operators_1
1539
- });
1540
- }
1541
1359
  }
1542
- });
1360
+ };
1543
1361
  return TableCRUDPlugin;
1544
1362
  }(CRUDPlugin);
1545
1363
  var CardsCRUDPlugin = /** @class */function (_super) {
@@ -1547,159 +1365,114 @@ var CardsCRUDPlugin = /** @class */function (_super) {
1547
1365
  function CardsCRUDPlugin() {
1548
1366
  var _this = _super !== null && _super.apply(this, arguments) || this;
1549
1367
  // 组件名称
1550
- Object.defineProperty(_this, "name", {
1551
- enumerable: true,
1552
- configurable: true,
1553
- writable: true,
1554
- value: i18n("093c340f7e1fbde1928ca56b5c7f9cc4")
1555
- });
1556
- Object.defineProperty(_this, "isBaseComponent", {
1557
- enumerable: true,
1558
- configurable: true,
1559
- writable: true,
1560
- value: true
1561
- });
1562
- Object.defineProperty(_this, "description", {
1563
- enumerable: true,
1564
- configurable: true,
1565
- writable: true,
1566
- value: i18n("a0c35361a003527d123cb581f5c68f4b")
1567
- });
1568
- Object.defineProperty(_this, "order", {
1569
- enumerable: true,
1570
- configurable: true,
1571
- writable: true,
1572
- value: -1000
1573
- });
1574
- Object.defineProperty(_this, "icon", {
1575
- enumerable: true,
1576
- configurable: true,
1577
- writable: true,
1578
- value: 'fa fa-table'
1579
- });
1580
- Object.defineProperty(_this, "scaffold", {
1581
- enumerable: true,
1582
- configurable: true,
1583
- writable: true,
1584
- value: {
1585
- type: 'crud2',
1586
- mode: 'cards',
1587
- card: {
1588
- type: 'card2',
1368
+ _this.name = i18n("093c340f7e1fbde1928ca56b5c7f9cc4");
1369
+ _this.isBaseComponent = true;
1370
+ _this.description = i18n("a0c35361a003527d123cb581f5c68f4b");
1371
+ _this.order = -1000;
1372
+ _this.icon = 'fa fa-table';
1373
+ _this.scaffold = {
1374
+ type: 'crud2',
1375
+ mode: 'cards',
1376
+ card: {
1377
+ type: 'card2',
1378
+ body: [{
1379
+ type: 'container',
1589
1380
  body: [{
1590
- type: 'container',
1381
+ type: 'tpl',
1382
+ tpl: i18n("32c65d8d7431e76029678ec7bb73a5ab"),
1383
+ inline: false,
1384
+ style: {
1385
+ marginTop: '0',
1386
+ marginBottom: '0',
1387
+ paddingTop: '',
1388
+ paddingBottom: ''
1389
+ },
1390
+ wrapperComponent: 'h2'
1391
+ }, {
1392
+ type: 'form',
1591
1393
  body: [{
1592
- type: 'tpl',
1593
- tpl: i18n("32c65d8d7431e76029678ec7bb73a5ab"),
1594
- inline: false,
1595
- style: {
1596
- marginTop: '0',
1597
- marginBottom: '0',
1598
- paddingTop: '',
1599
- paddingBottom: ''
1600
- },
1601
- wrapperComponent: 'h2'
1602
- }, {
1603
- type: 'form',
1604
- body: [{
1605
- type: 'static-tpl',
1606
- label: i18n("9caecd931b956381e0763d05aa42835c"),
1607
- tpl: i18n("2d711b09bd0db0ad240cc83b30dd8014")
1608
- }]
1609
- }, {
1610
- type: 'divider'
1611
- }, {
1612
- type: 'button-group'
1613
- }
1614
- // {
1615
- // type: 'tpl',
1616
- // tpl: '副标题内容',
1617
- // inline: false,
1618
- // wrapperComponent: '',
1619
- // style: {
1620
- // color: '#9b9b9b',
1621
- // marginTop: '0',
1622
- // marginBottom: '0'
1623
- // }
1624
- // }
1625
- ]
1626
- // style: {
1627
- // borderStyle: 'solid',
1628
- // borderColor: '#ebebeb',
1629
- // borderWidth: '1px',
1630
- // 'borderRadius': '5px',
1631
- // 'paddingTop': '10px',
1632
- // 'paddingRight': '10px',
1633
- // 'paddingBottom': '0',
1634
- // 'paddingLeft': '10px'
1635
- // }
1636
- }]
1637
- }
1394
+ type: 'static-tpl',
1395
+ label: i18n("9caecd931b956381e0763d05aa42835c"),
1396
+ tpl: i18n("2d711b09bd0db0ad240cc83b30dd8014")
1397
+ }]
1398
+ }, {
1399
+ type: 'divider'
1400
+ }, {
1401
+ type: 'button-group'
1402
+ }
1403
+ // {
1404
+ // type: 'tpl',
1405
+ // tpl: '副标题内容',
1406
+ // inline: false,
1407
+ // wrapperComponent: '',
1408
+ // style: {
1409
+ // color: '#9b9b9b',
1410
+ // marginTop: '0',
1411
+ // marginBottom: '0'
1412
+ // }
1413
+ // }
1414
+ ]
1415
+ // style: {
1416
+ // borderStyle: 'solid',
1417
+ // borderColor: '#ebebeb',
1418
+ // borderWidth: '1px',
1419
+ // 'borderRadius': '5px',
1420
+ // 'paddingTop': '10px',
1421
+ // 'paddingRight': '10px',
1422
+ // 'paddingBottom': '0',
1423
+ // 'paddingLeft': '10px'
1424
+ // }
1425
+ }]
1638
1426
  }
1639
- });
1427
+ };
1640
1428
 
1641
1429
  return _this;
1642
1430
  }
1643
- Object.defineProperty(CardsCRUDPlugin.prototype, "resolveListField", {
1644
- enumerable: false,
1645
- configurable: true,
1646
- writable: true,
1647
- value: function (setting, schema, builder) {
1648
- var _a;
1649
- var fields = setting.listFields;
1650
- if (!fields || !fields.length) {
1651
- return;
1652
- }
1653
- schema.card.body[0].body = builder.resolveViewSchema({
1654
- setting: setting,
1655
- feat: 'List'
1431
+ CardsCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
1432
+ var _a;
1433
+ var fields = setting.listFields;
1434
+ if (!fields || !fields.length) {
1435
+ return;
1436
+ }
1437
+ schema.card.body[0].body = builder.resolveViewSchema({
1438
+ setting: setting,
1439
+ feat: 'List'
1440
+ });
1441
+ if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1442
+ var operators_2 = [];
1443
+ DataOperators.forEach(function (feat) {
1444
+ var _a;
1445
+ if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1446
+ operators_2.push(feat.resolveSchema(setting, builder));
1447
+ }
1448
+ });
1449
+ schema.card.body.push({
1450
+ type: 'button-group',
1451
+ buttons: operators_2
1656
1452
  });
1657
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1658
- var operators_2 = [];
1659
- DataOperators.forEach(function (feat) {
1660
- var _a;
1661
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1662
- operators_2.push(feat.resolveSchema(setting, builder));
1663
- }
1664
- });
1665
- schema.card.body.push({
1666
- type: 'button-group',
1667
- buttons: operators_2
1668
- });
1669
- }
1670
1453
  }
1671
- });
1454
+ };
1672
1455
  /**填充一个数据操作 */
1673
- Object.defineProperty(CardsCRUDPlugin.prototype, "fillOperatorSchema", {
1674
- enumerable: false,
1675
- configurable: true,
1676
- writable: true,
1677
- value: function (schema, content) {
1678
- var col = schema.columns.find(function (item) {
1679
- return item.type === 'operators';
1456
+ CardsCRUDPlugin.prototype.fillOperatorSchema = function (schema, content) {
1457
+ var col = schema.columns.find(function (item) {
1458
+ return item.type === 'operators';
1459
+ });
1460
+ if (!col) {
1461
+ schema.columns.push({
1462
+ type: 'operation',
1463
+ title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
1464
+ buttons: [content]
1680
1465
  });
1681
- if (!col) {
1682
- schema.columns.push({
1683
- type: 'operation',
1684
- title: i18n("2b6bc0f293f5ca01b006206c2535ccbc"),
1685
- buttons: [content]
1686
- });
1687
- return;
1688
- }
1689
- col.buttons.push(content);
1466
+ return;
1690
1467
  }
1691
- });
1468
+ col.buttons.push(content);
1469
+ };
1692
1470
  /** 判断内容区是否有填充数据操作 */
1693
- Object.defineProperty(CardsCRUDPlugin.prototype, "existOperator", {
1694
- enumerable: false,
1695
- configurable: true,
1696
- writable: true,
1697
- value: function (feat, schema) {
1698
- return findObj(schema.card.body, function (item) {
1699
- return item.behavior === feat;
1700
- });
1701
- }
1702
- });
1471
+ CardsCRUDPlugin.prototype.existOperator = function (feat, schema) {
1472
+ return findObj(schema.card.body, function (item) {
1473
+ return item.behavior === feat;
1474
+ });
1475
+ };
1703
1476
  return CardsCRUDPlugin;
1704
1477
  }(CRUDPlugin);
1705
1478
  var ListCRUDPlugin = /** @class */function (_super) {
@@ -1707,114 +1480,74 @@ var ListCRUDPlugin = /** @class */function (_super) {
1707
1480
  function ListCRUDPlugin() {
1708
1481
  var _this = _super !== null && _super.apply(this, arguments) || this;
1709
1482
  // 组件名称
1710
- Object.defineProperty(_this, "name", {
1711
- enumerable: true,
1712
- configurable: true,
1713
- writable: true,
1714
- value: i18n("3712972d84adf48acbd6ad24b4d75ad0")
1715
- });
1716
- Object.defineProperty(_this, "isBaseComponent", {
1717
- enumerable: true,
1718
- configurable: true,
1719
- writable: true,
1720
- value: true
1721
- });
1722
- Object.defineProperty(_this, "description", {
1723
- enumerable: true,
1724
- configurable: true,
1725
- writable: true,
1726
- value: i18n("860827796ce2fa94e9ee39e53f011ec0")
1727
- });
1728
- Object.defineProperty(_this, "order", {
1729
- enumerable: true,
1730
- configurable: true,
1731
- writable: true,
1732
- value: -1000
1733
- });
1734
- Object.defineProperty(_this, "icon", {
1735
- enumerable: true,
1736
- configurable: true,
1737
- writable: true,
1738
- value: 'fa fa-align-justify'
1739
- });
1740
- Object.defineProperty(_this, "scaffold", {
1741
- enumerable: true,
1742
- configurable: true,
1743
- writable: true,
1744
- value: {
1745
- type: 'crud2',
1746
- mode: 'list',
1747
- listItem: {
1483
+ _this.name = i18n("3712972d84adf48acbd6ad24b4d75ad0");
1484
+ _this.isBaseComponent = true;
1485
+ _this.description = i18n("860827796ce2fa94e9ee39e53f011ec0");
1486
+ _this.order = -1000;
1487
+ _this.icon = 'fa fa-align-justify';
1488
+ _this.scaffold = {
1489
+ type: 'crud2',
1490
+ mode: 'list',
1491
+ listItem: {
1492
+ body: [{
1493
+ type: 'container',
1748
1494
  body: [{
1749
- type: 'container',
1750
- body: [{
1751
- type: 'tpl',
1752
- tpl: i18n("32c65d8d7431e76029678ec7bb73a5ab"),
1753
- inline: false,
1754
- style: {
1755
- marginTop: '0',
1756
- marginBottom: '0',
1757
- paddingTop: '',
1758
- paddingBottom: ''
1759
- },
1760
- wrapperComponent: 'h2'
1761
- }, {
1762
- type: 'tpl',
1763
- tpl: i18n("629645f147f378869fe9d7ee2bbc2857"),
1764
- inline: false,
1765
- wrapperComponent: '',
1766
- style: {
1767
- color: '#9b9b9b',
1768
- marginTop: '0',
1769
- marginBottom: '0'
1770
- }
1771
- }]
1495
+ type: 'tpl',
1496
+ tpl: i18n("32c65d8d7431e76029678ec7bb73a5ab"),
1497
+ inline: false,
1498
+ style: {
1499
+ marginTop: '0',
1500
+ marginBottom: '0',
1501
+ paddingTop: '',
1502
+ paddingBottom: ''
1503
+ },
1504
+ wrapperComponent: 'h2'
1505
+ }, {
1506
+ type: 'tpl',
1507
+ tpl: i18n("629645f147f378869fe9d7ee2bbc2857"),
1508
+ inline: false,
1509
+ wrapperComponent: '',
1510
+ style: {
1511
+ color: '#9b9b9b',
1512
+ marginTop: '0',
1513
+ marginBottom: '0'
1514
+ }
1772
1515
  }]
1773
- }
1516
+ }]
1774
1517
  }
1775
- });
1518
+ };
1776
1519
  return _this;
1777
1520
  }
1778
- Object.defineProperty(ListCRUDPlugin.prototype, "resolveListField", {
1779
- enumerable: false,
1780
- configurable: true,
1781
- writable: true,
1782
- value: function (setting, schema, builder) {
1783
- var _a;
1784
- var fields = setting.listFields;
1785
- if (!fields || !fields.length) {
1786
- return;
1787
- }
1788
- schema.listItem.body = builder.resolveViewSchema({
1789
- setting: setting,
1790
- feat: 'List'
1791
- });
1792
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1793
- var operators_3 = [];
1794
- DataOperators.forEach(function (feat) {
1795
- var _a;
1796
- if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1797
- operators_3.push(feat.resolveSchema(setting, builder));
1798
- }
1799
- });
1800
- schema.listItem.body.push({
1801
- type: 'button-group',
1802
- buttons: operators_3
1803
- });
1804
- }
1521
+ ListCRUDPlugin.prototype.resolveListField = function (setting, schema, builder) {
1522
+ var _a;
1523
+ var fields = setting.listFields;
1524
+ if (!fields || !fields.length) {
1525
+ return;
1805
1526
  }
1806
- });
1807
- /** 判断内容区是否有填充数据操作 */
1808
- Object.defineProperty(ListCRUDPlugin.prototype, "existOperator", {
1809
- enumerable: false,
1810
- configurable: true,
1811
- writable: true,
1812
- value: function (feat, schema) {
1813
- return findObj(schema.listItem.body, function (item) {
1814
- return item.behavior === feat;
1527
+ schema.listItem.body = builder.resolveViewSchema({
1528
+ setting: setting,
1529
+ feat: 'List'
1530
+ });
1531
+ if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.length) {
1532
+ var operators_3 = [];
1533
+ DataOperators.forEach(function (feat) {
1534
+ var _a;
1535
+ if ((_a = setting.operators) === null || _a === void 0 ? void 0 : _a.includes(feat.value)) {
1536
+ operators_3.push(feat.resolveSchema(setting, builder));
1537
+ }
1538
+ });
1539
+ schema.listItem.body.push({
1540
+ type: 'button-group',
1541
+ buttons: operators_3
1815
1542
  });
1816
1543
  }
1817
- });
1544
+ };
1545
+ /** 判断内容区是否有填充数据操作 */
1546
+ ListCRUDPlugin.prototype.existOperator = function (feat, schema) {
1547
+ return findObj(schema.listItem.body, function (item) {
1548
+ return item.behavior === feat;
1549
+ });
1550
+ };
1818
1551
  return ListCRUDPlugin;
1819
1552
  }(CRUDPlugin);
1820
1553
  registerEditorPlugin(TableCRUDPlugin);