amis-editor 5.2.5-beta.5 → 5.2.5-beta.6

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