amis-editor 5.2.0-beta.2 → 5.2.1-beta.15

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