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,9 +1,9 @@
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, __assign, __awaiter, __generator } from 'tslib';
6
+ import { __extends, __assign, __awaiter, __generator, __values } from 'tslib';
7
7
  import { resolveVariable } from 'amis';
8
8
  import { someTree, setVariable } from 'amis-core';
9
9
  import { getSchemaTpl, tipedLabel, defaultValue, mockValue, repeatArray, BasePlugin, registerEditorPlugin } from 'amis-editor-core';
@@ -15,879 +15,783 @@ var Table2Plugin = /** @class */function (_super) {
15
15
  function Table2Plugin() {
16
16
  var _this = _super !== null && _super.apply(this, arguments) || this;
17
17
  // 关联渲染器名字
18
- Object.defineProperty(_this, "rendererName", {
19
- enumerable: true,
20
- configurable: true,
21
- writable: true,
22
- value: 'table2'
23
- });
24
- Object.defineProperty(_this, "$schema", {
25
- enumerable: true,
26
- configurable: true,
27
- writable: true,
28
- value: '/schemas/TableSchema.json'
29
- });
18
+ _this.rendererName = 'table2';
19
+ _this.$schema = '/schemas/TableSchema.json';
30
20
  // 组件名称
31
- Object.defineProperty(_this, "name", {
32
- enumerable: true,
33
- configurable: true,
34
- writable: true,
35
- value: i18n("0d1f68afa19f3f3dd88e28d17c98ddf9")
36
- });
37
- Object.defineProperty(_this, "isBaseComponent", {
38
- enumerable: true,
39
- configurable: true,
40
- writable: true,
41
- value: true
42
- });
43
- Object.defineProperty(_this, "panelJustify", {
44
- enumerable: true,
45
- configurable: true,
46
- writable: true,
47
- value: true
48
- });
49
- Object.defineProperty(_this, "disabledRendererPlugin", {
50
- enumerable: true,
51
- configurable: true,
52
- writable: true,
53
- value: true
54
- });
55
- Object.defineProperty(_this, "description", {
56
- enumerable: true,
57
- configurable: true,
58
- writable: true,
59
- value: i18n("ea2b32f5d78d2305b9b7bc21e056a009")
60
- });
61
- Object.defineProperty(_this, "docLink", {
62
- enumerable: true,
63
- configurable: true,
64
- writable: true,
65
- value: '/amis/zh-CN/components/table2'
66
- });
67
- Object.defineProperty(_this, "icon", {
68
- enumerable: true,
69
- configurable: true,
70
- writable: true,
71
- value: 'fa fa-table'
72
- });
73
- Object.defineProperty(_this, "scaffold", {
74
- enumerable: true,
75
- configurable: true,
76
- writable: true,
77
- value: {
78
- type: 'table2',
79
- columns: [{
80
- title: i18n("20aadc3f9b7edb564dc58898898e0dc8"),
81
- name: 'a'
82
- }],
83
- source: '$item'
84
- }
85
- });
86
- Object.defineProperty(_this, "regions", {
87
- enumerable: true,
88
- configurable: true,
89
- writable: true,
90
- value: [{
91
- key: 'columns',
92
- label: i18n("1f9794dd5634220ed0a498c666cf46fe"),
93
- renderMethod: 'renderTable',
94
- preferTag: i18n("027446c2f9070b0f5b16a18208bf5fc7"),
95
- dndMode: 'position-h'
21
+ _this.name = i18n("0d1f68afa19f3f3dd88e28d17c98ddf9");
22
+ _this.isBaseComponent = true;
23
+ _this.panelJustify = true;
24
+ _this.disabledRendererPlugin = true;
25
+ _this.description = i18n("ea2b32f5d78d2305b9b7bc21e056a009");
26
+ _this.docLink = '/amis/zh-CN/components/table2';
27
+ _this.icon = 'fa fa-table';
28
+ _this.scaffold = {
29
+ type: 'table2',
30
+ columns: [{
31
+ title: i18n("20aadc3f9b7edb564dc58898898e0dc8"),
32
+ name: 'a'
33
+ }],
34
+ source: '$item'
35
+ };
36
+ _this.regions = [{
37
+ key: 'columns',
38
+ label: i18n("1f9794dd5634220ed0a498c666cf46fe"),
39
+ renderMethod: 'renderTable',
40
+ preferTag: i18n("027446c2f9070b0f5b16a18208bf5fc7"),
41
+ dndMode: 'position-h'
42
+ }];
43
+ _this.previewSchema = {
44
+ type: 'table2',
45
+ className: 'text-left m-b-none',
46
+ items: [{
47
+ a: 1,
48
+ b: 2,
49
+ c: 9
50
+ }, {
51
+ a: 3,
52
+ b: 4,
53
+ c: 8
54
+ }, {
55
+ a: 5,
56
+ b: 6,
57
+ c: 7
58
+ }],
59
+ columns: [{
60
+ title: 'A',
61
+ name: 'a'
62
+ }, {
63
+ title: 'B',
64
+ name: 'b'
96
65
  }]
97
- });
98
- Object.defineProperty(_this, "previewSchema", {
99
- enumerable: true,
100
- configurable: true,
101
- writable: true,
102
- value: {
103
- type: 'table2',
104
- className: 'text-left m-b-none',
66
+ };
67
+ _this.scaffoldForm = {
68
+ title: i18n("6b93fcfc1a5795189c6072fa6e86d4f6"),
69
+ body: [{
70
+ name: 'columns',
71
+ type: 'combo',
72
+ multiple: true,
73
+ label: false,
74
+ addButtonText: i18n("0c14e431f1b5ecd163f8fa010a0654c7"),
75
+ draggable: true,
105
76
  items: [{
106
- a: 1,
107
- b: 2,
108
- c: 9
109
- }, {
110
- a: 3,
111
- b: 4,
112
- c: 8
77
+ type: 'input-text',
78
+ name: 'title',
79
+ placeholder: i18n("32c65d8d7431e76029678ec7bb73a5ab")
113
80
  }, {
114
- a: 5,
115
- b: 6,
116
- c: 7
117
- }],
118
- columns: [{
119
- title: 'A',
120
- name: 'a'
81
+ type: 'input-text',
82
+ name: 'name',
83
+ placeholder: i18n("41a344642681efaaa418c228ba7fb45c")
121
84
  }, {
122
- title: 'B',
123
- name: 'b'
124
- }]
125
- }
126
- });
127
- Object.defineProperty(_this, "scaffoldForm", {
128
- enumerable: true,
129
- configurable: true,
130
- writable: true,
131
- value: {
132
- title: i18n("6b93fcfc1a5795189c6072fa6e86d4f6"),
133
- body: [{
134
- name: 'columns',
135
- type: 'combo',
136
- multiple: true,
137
- label: false,
138
- addButtonText: i18n("0c14e431f1b5ecd163f8fa010a0654c7"),
139
- draggable: true,
140
- items: [{
141
- type: 'input-text',
142
- name: 'title',
143
- placeholder: i18n("32c65d8d7431e76029678ec7bb73a5ab")
85
+ type: 'select',
86
+ name: 'type',
87
+ placeholder: i18n("226b0912184333c81babf2f1894ec0c1"),
88
+ value: 'text',
89
+ options: [{
90
+ value: 'text',
91
+ label: i18n("ffb01e5bcf4c00447f5150d3cba81371")
144
92
  }, {
145
- type: 'input-text',
146
- name: 'name',
147
- placeholder: i18n("41a344642681efaaa418c228ba7fb45c")
93
+ value: 'tpl',
94
+ label: i18n("59cf15fe6b8d659c9bd2f86143534a06")
148
95
  }, {
149
- type: 'select',
150
- name: 'type',
151
- placeholder: i18n("226b0912184333c81babf2f1894ec0c1"),
152
- value: 'text',
153
- options: [{
154
- value: 'text',
155
- label: i18n("ffb01e5bcf4c00447f5150d3cba81371")
156
- }, {
157
- value: 'tpl',
158
- label: i18n("59cf15fe6b8d659c9bd2f86143534a06")
159
- }, {
160
- value: 'image',
161
- label: i18n("20def7942674282277c3714ed7ea6ce0")
162
- }, {
163
- value: 'date',
164
- label: i18n("4ff1e74e43a3586339251494117185ad")
165
- }, {
166
- value: 'progress',
167
- label: i18n("c7bff79d059a0b7ff9b02441959d8be2")
168
- }, {
169
- value: 'status',
170
- label: i18n("3fea7ca76cdece641436d7ab0d02ab1b")
171
- }, {
172
- value: 'mapping',
173
- label: i18n("9da188491dd34c4382a5b9f006194e41")
174
- }, {
175
- value: 'container',
176
- label: i18n("22c799040acdb2601b437ed5449de076")
177
- }, {
178
- value: 'operation',
179
- label: i18n("8abc564260a1564521e0c3a1d5419b4a")
180
- }]
96
+ value: 'image',
97
+ label: i18n("20def7942674282277c3714ed7ea6ce0")
98
+ }, {
99
+ value: 'date',
100
+ label: i18n("4ff1e74e43a3586339251494117185ad")
101
+ }, {
102
+ value: 'progress',
103
+ label: i18n("c7bff79d059a0b7ff9b02441959d8be2")
104
+ }, {
105
+ value: 'status',
106
+ label: i18n("3fea7ca76cdece641436d7ab0d02ab1b")
107
+ }, {
108
+ value: 'mapping',
109
+ label: i18n("9da188491dd34c4382a5b9f006194e41")
110
+ }, {
111
+ value: 'container',
112
+ label: i18n("22c799040acdb2601b437ed5449de076")
113
+ }, {
114
+ value: 'operation',
115
+ label: i18n("8abc564260a1564521e0c3a1d5419b4a")
181
116
  }]
182
- }],
183
- canRebuild: true
184
- }
185
- });
186
- Object.defineProperty(_this, "panelTitle", {
187
- enumerable: true,
188
- configurable: true,
189
- writable: true,
190
- value: i18n("b339aa87104709397ba68e7ebbc6e5ba")
191
- });
192
- Object.defineProperty(_this, "events", {
193
- enumerable: true,
194
- configurable: true,
195
- writable: true,
196
- value: [{
197
- eventName: 'selectedChange',
198
- eventLabel: i18n("257f5a3886d87d2255206f86b880d07e"),
199
- description: i18n("6130b1f75d624b2f73f5d923492e92f7"),
200
- dataSchema: [{
201
- type: 'object',
202
- properties: {
203
- 'event.data.selectedItems': {
204
- type: 'array',
205
- title: i18n("aeddca0456d8fe520dc95545a83458e9")
206
- },
207
- 'event.data.unSelectedItems': {
208
- type: 'array',
209
- title: i18n("4f907cb94921bb62a8399adec922bb60")
210
- }
211
- }
212
117
  }]
213
- }, {
214
- eventName: 'columnSort',
215
- eventLabel: i18n("f3d21138c8ecf5683503c4f814cc7199"),
216
- description: i18n("d84464cfb2a5828a200fe9c28a323122"),
217
- dataSchema: [{
218
- type: 'object',
219
- properties: {
220
- 'event.data.orderBy': {
221
- type: 'string',
222
- title: i18n("652f155e644e82ebb0a1aed97ab6ab23")
223
- },
224
- 'event.data.orderDir': {
225
- type: 'string',
226
- title: i18n("460e3a697d1680445a47139c0816fbe6")
227
- }
118
+ }],
119
+ canRebuild: true
120
+ };
121
+ _this.panelTitle = i18n("b339aa87104709397ba68e7ebbc6e5ba");
122
+ _this.events = [{
123
+ eventName: 'selectedChange',
124
+ eventLabel: i18n("257f5a3886d87d2255206f86b880d07e"),
125
+ description: i18n("6130b1f75d624b2f73f5d923492e92f7"),
126
+ dataSchema: [{
127
+ type: 'object',
128
+ properties: {
129
+ 'event.data.selectedItems': {
130
+ type: 'array',
131
+ title: i18n("aeddca0456d8fe520dc95545a83458e9")
132
+ },
133
+ 'event.data.unSelectedItems': {
134
+ type: 'array',
135
+ title: i18n("4f907cb94921bb62a8399adec922bb60")
228
136
  }
229
- }]
230
- }, {
231
- eventName: 'columnFilter',
232
- eventLabel: i18n("3d0b957a99d0c366612c01913e17a0c7"),
233
- description: i18n("b35963687361af98e6acdc004e87fc3c"),
234
- dataSchema: [{
235
- type: 'object',
236
- properties: {
237
- 'event.data.filterName': {
238
- type: 'string',
239
- title: i18n("ad11fba3ac676233f3105e76e7de0501")
240
- },
241
- 'event.data.filterValue': {
242
- type: 'string',
243
- title: i18n("8e4b9c88c51aaad1a28a28e8b536697f")
244
- }
137
+ }
138
+ }]
139
+ }, {
140
+ eventName: 'columnSort',
141
+ eventLabel: i18n("f3d21138c8ecf5683503c4f814cc7199"),
142
+ description: i18n("d84464cfb2a5828a200fe9c28a323122"),
143
+ dataSchema: [{
144
+ type: 'object',
145
+ properties: {
146
+ 'event.data.orderBy': {
147
+ type: 'string',
148
+ title: i18n("652f155e644e82ebb0a1aed97ab6ab23")
149
+ },
150
+ 'event.data.orderDir': {
151
+ type: 'string',
152
+ title: i18n("460e3a697d1680445a47139c0816fbe6")
245
153
  }
246
- }]
247
- }, {
248
- eventName: 'columnSearch',
249
- eventLabel: i18n("93a5a0253f11e3a2e58f4e87a52fb094"),
250
- description: i18n("6d4c4990ab2c32efe8a17c5f22e10cb5"),
251
- dataSchema: [{
252
- type: 'object',
253
- properties: {
254
- 'event.data.searchName': {
255
- type: 'string',
256
- title: i18n("a80a4486100baf3f45fab3a59e4a816d")
257
- },
258
- 'event.data.searchValue': {
259
- type: 'object',
260
- title: i18n("b9a565fe1dc488efae1d63464f277f09")
261
- }
154
+ }
155
+ }]
156
+ }, {
157
+ eventName: 'columnFilter',
158
+ eventLabel: i18n("3d0b957a99d0c366612c01913e17a0c7"),
159
+ description: i18n("b35963687361af98e6acdc004e87fc3c"),
160
+ dataSchema: [{
161
+ type: 'object',
162
+ properties: {
163
+ 'event.data.filterName': {
164
+ type: 'string',
165
+ title: i18n("ad11fba3ac676233f3105e76e7de0501")
166
+ },
167
+ 'event.data.filterValue': {
168
+ type: 'string',
169
+ title: i18n("8e4b9c88c51aaad1a28a28e8b536697f")
262
170
  }
263
- }]
264
- }, {
265
- eventName: 'orderChange',
266
- eventLabel: i18n("85ddd38957256b6e9026f42ed570bc35"),
267
- description: i18n("d7a66def82af88cd5d408e38feb8a65a"),
268
- dataSchema: [{
269
- type: 'object',
270
- properties: {
271
- 'event.data.movedItems': {
272
- type: 'array',
273
- title: i18n("1987561c006c7192ab619f81103d2a2f")
274
- }
171
+ }
172
+ }]
173
+ }, {
174
+ eventName: 'columnSearch',
175
+ eventLabel: i18n("93a5a0253f11e3a2e58f4e87a52fb094"),
176
+ description: i18n("6d4c4990ab2c32efe8a17c5f22e10cb5"),
177
+ dataSchema: [{
178
+ type: 'object',
179
+ properties: {
180
+ 'event.data.searchName': {
181
+ type: 'string',
182
+ title: i18n("a80a4486100baf3f45fab3a59e4a816d")
183
+ },
184
+ 'event.data.searchValue': {
185
+ type: 'object',
186
+ title: i18n("b9a565fe1dc488efae1d63464f277f09")
275
187
  }
276
- }]
277
- }, {
278
- eventName: 'columnToggled',
279
- eventLabel: i18n("ecfebbc91e2c18a512aeb11b7da15193"),
280
- description: i18n("c94f45773a42dc386b9c9dcdc6fa542b"),
281
- dataSchema: [{
282
- type: 'object',
283
- properties: {
284
- 'event.data.columns': {
285
- type: 'array',
286
- title: i18n("70567329ee851a5ba7e7301bd8e9d9a1")
287
- }
188
+ }
189
+ }]
190
+ }, {
191
+ eventName: 'orderChange',
192
+ eventLabel: i18n("85ddd38957256b6e9026f42ed570bc35"),
193
+ description: i18n("d7a66def82af88cd5d408e38feb8a65a"),
194
+ dataSchema: [{
195
+ type: 'object',
196
+ properties: {
197
+ 'event.data.movedItems': {
198
+ type: 'array',
199
+ title: i18n("1987561c006c7192ab619f81103d2a2f")
288
200
  }
289
- }]
290
- }, {
291
- eventName: 'rowClick',
292
- eventLabel: i18n("76e47871d654c3b0b0e301c0a076e55a"),
293
- description: i18n("cc13521eab2c7423b3fb857772405cc3"),
294
- dataSchema: [{
295
- type: 'object',
296
- properties: {
297
- 'event.data.rowItem': {
298
- type: 'object',
299
- title: i18n("2fbbf5c38b66ac5496ac42246bbe9e0b")
300
- }
201
+ }
202
+ }]
203
+ }, {
204
+ eventName: 'columnToggled',
205
+ eventLabel: i18n("ecfebbc91e2c18a512aeb11b7da15193"),
206
+ description: i18n("c94f45773a42dc386b9c9dcdc6fa542b"),
207
+ dataSchema: [{
208
+ type: 'object',
209
+ properties: {
210
+ 'event.data.columns': {
211
+ type: 'array',
212
+ title: i18n("70567329ee851a5ba7e7301bd8e9d9a1")
301
213
  }
302
- }]
214
+ }
303
215
  }]
304
- });
305
- Object.defineProperty(_this, "actions", {
306
- enumerable: true,
307
- configurable: true,
308
- writable: true,
309
- value: [{
310
- actionType: 'select',
311
- actionLabel: i18n("8eb3c8b16106e5487cd1fa3b8a1342ce"),
312
- description: i18n("908cc16fe4f7972450167e26276ac726"),
313
- schema: getArgsWrapper([
314
- /*
315
- {
316
- type: 'input-formula',
317
- variables: '${variables}',
318
- evalMode: false,
319
- variableMode: 'tabs',
320
- label: '选中项',
321
- size: 'lg',
322
- name: 'selected',
323
- mode: 'horizontal'
216
+ }, {
217
+ eventName: 'rowClick',
218
+ eventLabel: i18n("76e47871d654c3b0b0e301c0a076e55a"),
219
+ description: i18n("cc13521eab2c7423b3fb857772405cc3"),
220
+ dataSchema: [{
221
+ type: 'object',
222
+ properties: {
223
+ 'event.data.rowItem': {
224
+ type: 'object',
225
+ title: i18n("2fbbf5c38b66ac5496ac42246bbe9e0b")
226
+ }
324
227
  }
325
- */
326
- {
327
- name: 'selected',
328
- label: i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"),
329
- type: 'ae-formulaControl',
330
- variables: '${variables}',
331
- size: 'lg',
332
- mode: 'horizontal'
333
- }])
334
- }, {
335
- actionType: 'selectAll',
336
- actionLabel: i18n("366a3c07289bd6efb7c2a182f7a12772"),
337
- description: i18n("e97c09cd119b64ae0a8dfd42a1d449cb")
338
- }, {
339
- actionType: 'clearAll',
340
- actionLabel: i18n("c3e8652924c258e121eed16414d3a9e5"),
341
- description: i18n("7619ec29c0a854dd49e0a7a47bf1a127")
342
228
  }]
343
- });
344
- Object.defineProperty(_this, "panelBodyCreator", {
345
- enumerable: true,
346
- configurable: true,
347
- writable: true,
348
- value: function (context) {
349
- var isCRUDBody = ['crud', 'crud2'].includes(context.schema.type);
350
- return getSchemaTpl('tabs', [{
351
- title: i18n("24d67862f87f439db7ca957aecb77cce"),
352
- body: [getSchemaTpl('collapseGroup', [{
353
- title: i18n("4092ed98e9035652d4c9ca9441701ed7"),
354
- body: [getSchemaTpl('layout:originPosition', {
355
- value: 'left-top'
356
- }), {
357
- name: 'source',
358
- type: 'input-text',
359
- label: tipedLabel(i18n("c11322c9cc43ce3c004cf03f5ac0acd0"), i18n("8369004103635f8e75026217ebf237da")),
360
- hidden: isCRUDBody,
361
- pipeIn: defaultValue('${items}')
362
- }, getSchemaTpl('switch', {
363
- name: 'title',
364
- label: i18n("bd3e7a1b636e4477a4ea59922ed2cc1e"),
365
- pipeIn: function (value) {
366
- return !!value;
367
- },
368
- pipeOut: function (value) {
369
- if (value) {
370
- return {
371
- type: 'container',
372
- body: [{
373
- type: 'tpl',
374
- wrapperComponent: '',
375
- tpl: i18n("11d00f37d934b2464f3258952a398626"),
376
- inline: false,
377
- style: {
378
- fontSize: 14
379
- }
380
- }]
381
- };
382
- }
383
- return null;
384
- }
385
- }), getSchemaTpl('switch', {
386
- name: 'showHeader',
387
- label: i18n("4e3cd1a7b193e2fd3458278d10c530e2"),
388
- value: true,
389
- pipeIn: function (value) {
390
- return !!value;
391
- },
392
- pipeOut: function (value) {
393
- return !!value;
229
+ }];
230
+ _this.actions = [{
231
+ actionType: 'select',
232
+ actionLabel: i18n("8eb3c8b16106e5487cd1fa3b8a1342ce"),
233
+ description: i18n("908cc16fe4f7972450167e26276ac726"),
234
+ schema: getArgsWrapper([
235
+ /*
236
+ {
237
+ type: 'input-formula',
238
+ variables: '${variables}',
239
+ evalMode: false,
240
+ variableMode: 'tabs',
241
+ label: '选中项',
242
+ size: 'lg',
243
+ name: 'selected',
244
+ mode: 'horizontal'
245
+ }
246
+ */
247
+ getSchemaTpl('formulaControl', {
248
+ name: 'selected',
249
+ label: i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"),
250
+ variables: '${variables}',
251
+ size: 'lg',
252
+ mode: 'horizontal'
253
+ })])
254
+ }, {
255
+ actionType: 'selectAll',
256
+ actionLabel: i18n("366a3c07289bd6efb7c2a182f7a12772"),
257
+ description: i18n("e97c09cd119b64ae0a8dfd42a1d449cb")
258
+ }, {
259
+ actionType: 'clearAll',
260
+ actionLabel: i18n("c3e8652924c258e121eed16414d3a9e5"),
261
+ description: i18n("7619ec29c0a854dd49e0a7a47bf1a127")
262
+ }];
263
+ _this.panelBodyCreator = function (context) {
264
+ var isCRUDBody = ['crud', 'crud2'].includes(context.schema.type);
265
+ return getSchemaTpl('tabs', [{
266
+ title: i18n("24d67862f87f439db7ca957aecb77cce"),
267
+ body: [getSchemaTpl('collapseGroup', [{
268
+ title: i18n("4092ed98e9035652d4c9ca9441701ed7"),
269
+ body: [getSchemaTpl('layout:originPosition', {
270
+ value: 'left-top'
271
+ }), {
272
+ name: 'source',
273
+ type: 'input-text',
274
+ label: tipedLabel(i18n("c11322c9cc43ce3c004cf03f5ac0acd0"), i18n("8369004103635f8e75026217ebf237da")),
275
+ hidden: isCRUDBody,
276
+ pipeIn: defaultValue('${items}')
277
+ }, getSchemaTpl('switch', {
278
+ name: 'title',
279
+ label: i18n("bd3e7a1b636e4477a4ea59922ed2cc1e"),
280
+ pipeIn: function (value) {
281
+ return !!value;
282
+ },
283
+ pipeOut: function (value) {
284
+ if (value) {
285
+ return {
286
+ type: 'container',
287
+ body: [{
288
+ type: 'tpl',
289
+ wrapperComponent: '',
290
+ tpl: i18n("11d00f37d934b2464f3258952a398626"),
291
+ inline: false,
292
+ style: {
293
+ fontSize: 14
294
+ }
295
+ }]
296
+ };
394
297
  }
395
- }), getSchemaTpl('switch', {
396
- visibleOn: 'this.showHeader !== false',
397
- name: 'sticky',
398
- label: i18n("023ff3530e48493e653eb48e958a4eb8"),
399
- pipeIn: defaultValue(false)
400
- }), getSchemaTpl('switch', {
401
- name: 'footer',
402
- label: i18n("dd9b85b2cd13ca724afd1f43567abdbf"),
403
- pipeIn: function (value) {
404
- return !!value;
405
- },
406
- pipeOut: function (value) {
407
- if (value) {
408
- return {
409
- type: 'container',
410
- body: [{
411
- type: 'tpl',
412
- tpl: i18n("c89b5fd3b706a17feb016d93c80e34b1"),
413
- wrapperComponent: '',
414
- inline: false,
415
- style: {
416
- fontSize: 14
417
- }
418
- }]
419
- };
420
- }
421
- return null;
298
+ return null;
299
+ }
300
+ }), getSchemaTpl('switch', {
301
+ name: 'showHeader',
302
+ label: i18n("4e3cd1a7b193e2fd3458278d10c530e2"),
303
+ value: true,
304
+ pipeIn: function (value) {
305
+ return !!value;
306
+ },
307
+ pipeOut: function (value) {
308
+ return !!value;
309
+ }
310
+ }), getSchemaTpl('switch', {
311
+ visibleOn: 'this.showHeader !== false',
312
+ name: 'sticky',
313
+ label: i18n("023ff3530e48493e653eb48e958a4eb8"),
314
+ pipeIn: defaultValue(false)
315
+ }), getSchemaTpl('switch', {
316
+ name: 'footer',
317
+ label: i18n("dd9b85b2cd13ca724afd1f43567abdbf"),
318
+ pipeIn: function (value) {
319
+ return !!value;
320
+ },
321
+ pipeOut: function (value) {
322
+ if (value) {
323
+ return {
324
+ type: 'container',
325
+ body: [{
326
+ type: 'tpl',
327
+ tpl: i18n("c89b5fd3b706a17feb016d93c80e34b1"),
328
+ wrapperComponent: '',
329
+ inline: false,
330
+ style: {
331
+ fontSize: 14
332
+ }
333
+ }]
334
+ };
422
335
  }
423
- }), {
424
- name: 'scroll.y',
425
- label: i18n("a5baa4818b14f4680955aa34dd559d02"),
426
- type: 'button-group-select',
427
- pipeIn: function (v) {
428
- return v != null;
429
- },
430
- pipeOut: function (v) {
431
- return v ? '' : null;
432
- },
433
- options: [{
434
- label: i18n("4db804afe5c99f7ca4fe988ada35c77f"),
435
- value: false
436
- }, {
437
- label: i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),
438
- value: true
439
- }]
440
- }, {
441
- type: 'input-group',
442
- visibleOn: 'data.scroll && data.scroll.y !== null',
443
- label: i18n("ee18dc475df8654cb13ad67dd84eec28"),
444
- body: [{
445
- type: 'input-number',
446
- name: 'scroll.y'
447
- }, {
448
- type: 'tpl',
449
- addOnclassName: 'border-0 bg-none',
450
- tpl: 'px'
451
- }]
336
+ return null;
337
+ }
338
+ }), {
339
+ name: 'scroll.y',
340
+ label: i18n("a5baa4818b14f4680955aa34dd559d02"),
341
+ type: 'button-group-select',
342
+ pipeIn: function (v) {
343
+ return v != null;
344
+ },
345
+ pipeOut: function (v) {
346
+ return v ? '' : null;
347
+ },
348
+ options: [{
349
+ label: i18n("4db804afe5c99f7ca4fe988ada35c77f"),
350
+ value: false
452
351
  }, {
453
- name: 'scroll.x',
454
- label: tipedLabel(i18n("8bb5781dc5f2745e6356cdc5e6d76b16"), i18n("88a364068f684dc77aca5b6c006ef576")),
455
- type: 'button-group-select',
456
- pipeIn: function (v) {
457
- return v != null;
458
- },
459
- pipeOut: function (v) {
460
- return v ? '' : null;
461
- },
462
- options: [{
463
- label: i18n("4db804afe5c99f7ca4fe988ada35c77f"),
464
- value: false
465
- }, {
466
- label: i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),
467
- value: true
468
- }]
352
+ label: i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),
353
+ value: true
354
+ }]
355
+ }, {
356
+ type: 'input-group',
357
+ visibleOn: 'data.scroll && data.scroll.y !== null',
358
+ label: i18n("ee18dc475df8654cb13ad67dd84eec28"),
359
+ body: [{
360
+ type: 'input-number',
361
+ name: 'scroll.y'
469
362
  }, {
470
- type: 'input-group',
471
- visibleOn: 'data.scroll && data.scroll.x !== null',
472
- name: 'scroll.x',
473
- label: i18n("6e3d35b57c29b1b419569cc55b3a5d33"),
474
- body: [{
475
- type: 'input-number',
476
- name: 'scroll.x'
477
- }, {
478
- type: 'tpl',
479
- addOnclassName: 'border-0 bg-none',
480
- tpl: 'px'
481
- }]
482
- }, getSchemaTpl('tablePlaceholder')]
363
+ type: 'tpl',
364
+ addOnclassName: 'border-0 bg-none',
365
+ tpl: 'px'
366
+ }]
483
367
  }, {
484
- title: i18n("949a8b7bd2c10070a2fae16f9c66afbb"),
485
- body: [getSchemaTpl('switch', {
486
- name: 'resizable',
487
- label: tipedLabel(i18n("ba4f461832cbdb7fbdb170fc9c1db647"), i18n("aa2bd9f54608c0c85d3ceecb707938c9")),
488
- pipeIn: function (value) {
489
- return !!value;
490
- },
491
- pipeOut: function (value) {
492
- return value;
493
- }
494
- }), isCRUDBody ? null : {
495
- type: 'ae-Switch-More',
496
- mode: 'normal',
497
- name: 'columnsTogglable',
498
- hiddenOnDefault: true,
499
- formType: 'extend',
500
- label: tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"), i18n("d3c5079f7e26b1a7374ff76341376de4")),
501
- pipeOut: function (value) {
502
- if (value && value.columnsTogglable) {
503
- return {
504
- columnsTogglable: {
505
- type: 'column-toggler'
506
- }
507
- };
508
- }
509
- return value;
510
- },
511
- form: {
512
- body: [{
513
- mode: 'normal',
514
- type: 'ae-columnControl'
515
- }]
516
- }
368
+ name: 'scroll.x',
369
+ label: tipedLabel(i18n("8bb5781dc5f2745e6356cdc5e6d76b16"), i18n("88a364068f684dc77aca5b6c006ef576")),
370
+ type: 'button-group-select',
371
+ pipeIn: function (v) {
372
+ return v != null;
373
+ },
374
+ pipeOut: function (v) {
375
+ return v ? '' : null;
376
+ },
377
+ options: [{
378
+ label: i18n("4db804afe5c99f7ca4fe988ada35c77f"),
379
+ value: false
380
+ }, {
381
+ label: i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),
382
+ value: true
517
383
  }]
518
384
  }, {
519
- title: i18n("ed85be57262e5a0c3116293e88278fef"),
385
+ type: 'input-group',
386
+ visibleOn: 'data.scroll && data.scroll.x !== null',
387
+ name: 'scroll.x',
388
+ label: i18n("6e3d35b57c29b1b419569cc55b3a5d33"),
520
389
  body: [{
521
- name: 'lineHeight',
522
- label: i18n("5a431ad16d8f7f23fac3be5650e51caa"),
523
- type: 'select',
524
- placeholder: i18n("3d2ac2fd2c60931fff1db814662334c3"),
525
- options: [{
526
- label: i18n("85a49c5ed4628647f2ead9206224dba3"),
527
- value: ''
528
- }, {
529
- label: i18n("4296d7d293c9ea4a0e52c6415f0b5c96"),
530
- value: 'large'
531
- }, {
532
- label: i18n("aed1dfbc31703955e64806b799b67645"),
533
- value: 'middle'
534
- }],
535
- clearable: false,
536
- value: ''
537
- }, isCRUDBody ? {
538
- type: 'ae-Switch-More',
539
- mode: 'normal',
540
- name: 'rowSelection',
541
- label: i18n("e3be7b8a459a08fec8f378a0660b642b"),
542
- visibleOn: 'data.selectable',
543
- hiddenOnDefault: true,
544
- formType: 'extend',
545
- form: {
546
- body: [{
547
- label: i18n("1f1ca9df5fa3648c718ad04649888943"),
548
- name: 'rowSelection.rowClick',
549
- type: 'button-group-select',
550
- value: false,
551
- options: [{
552
- label: 'CheckBox',
553
- value: false
554
- }, {
555
- label: i18n("596171970b639a35dadde2aa930d666a"),
556
- value: true
557
- }]
558
- }, {
559
- name: 'rowSelection.disableOn',
560
- type: 'ae-formulaControl',
561
- label: i18n("388855093d17f3df43ff80242d7a1bed")
562
- }, {
563
- name: 'rowSelection.selections',
564
- label: i18n("46705a530ba9721527a4202bae7091bd"),
565
- type: 'checkboxes',
566
- joinValues: false,
567
- inline: false,
568
- itemClassName: 'text-sm',
569
- options: [{
570
- label: i18n("66eeacd93a7c1bda93906fe908ad11a0"),
571
- value: 'all'
572
- }, {
573
- label: i18n("aab57a3547a451f756bb8231a1eee8d7"),
574
- value: 'invert'
575
- }, {
576
- label: i18n("76159d0d1261c0b6c310901244457e36"),
577
- value: 'none'
578
- }, {
579
- label: i18n("be4751b0c9adf1d8deee45226c6124ee"),
580
- value: 'odd'
581
- }, {
582
- label: i18n("49f4010dade8652e5aff6a2c67aa23a4"),
583
- value: 'even'
584
- }],
585
- pipeIn: function (v) {
586
- if (!v) {
587
- return;
588
- }
589
- return v.map(function (item) {
590
- return {
591
- label: item.text,
592
- value: item.key
593
- };
594
- });
595
- },
596
- pipeOut: function (v) {
597
- if (!v) {
598
- return;
599
- }
600
- return v.map(function (item) {
601
- return {
602
- key: item.value,
603
- text: item.label
604
- };
605
- });
390
+ type: 'input-number',
391
+ name: 'scroll.x'
392
+ }, {
393
+ type: 'tpl',
394
+ addOnclassName: 'border-0 bg-none',
395
+ tpl: 'px'
396
+ }]
397
+ }, getSchemaTpl('tablePlaceholder')]
398
+ }, {
399
+ title: i18n("949a8b7bd2c10070a2fae16f9c66afbb"),
400
+ body: [getSchemaTpl('switch', {
401
+ name: 'resizable',
402
+ label: tipedLabel(i18n("ba4f461832cbdb7fbdb170fc9c1db647"), i18n("aa2bd9f54608c0c85d3ceecb707938c9")),
403
+ pipeIn: function (value) {
404
+ return !!value;
405
+ },
406
+ pipeOut: function (value) {
407
+ return value;
408
+ }
409
+ }), isCRUDBody ? null : {
410
+ type: 'ae-Switch-More',
411
+ mode: 'normal',
412
+ name: 'columnsTogglable',
413
+ hiddenOnDefault: true,
414
+ formType: 'extend',
415
+ label: tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"), i18n("d3c5079f7e26b1a7374ff76341376de4")),
416
+ pipeOut: function (value) {
417
+ if (value && value.columnsTogglable) {
418
+ return {
419
+ columnsTogglable: {
420
+ type: 'column-toggler'
606
421
  }
607
- }]
608
- }
609
- } : null, {
610
- type: 'ae-Switch-More',
611
- mode: 'normal',
612
- name: 'expandable',
613
- label: i18n("49b4aa407b91ac997e27314e30c03110"),
614
- hiddenOnDefault: true,
615
- formType: 'extend',
616
- form: {
617
- body: [{
618
- name: 'expandable.expandableOn',
619
- visibleOn: 'data.expandable',
620
- type: 'ae-formulaControl',
621
- label: i18n("8c1f5c49de09adab9a0e0c39e0106f78")
622
- }]
623
- }
624
- }, getSchemaTpl('switch', {
625
- name: 'childrenColumnName',
626
- label: i18n("caca6cb58342bb604483d94f49515234"),
627
- pipeIn: function (value) {
628
- return !!value;
629
- },
630
- pipeOut: function (value) {
631
- return value ? 'children' : '';
422
+ };
632
423
  }
633
- }), getSchemaTpl('switch', {
634
- name: 'draggable',
635
- label: i18n("5bdff9fd07d2a2430ac50e1559dbee27"),
636
- pipeIn: function (value) {
637
- return !!value;
638
- },
639
- pipeOut: function (value) {
640
- return value;
641
- }
642
- })]
643
- }, {
644
- title: i18n("3fea7ca76cdece641436d7ab0d02ab1b"),
645
- body: [getSchemaTpl('hidden', {
646
- label: i18n("dce5379cb978a8259ecfca8f08f00817")
647
- })]
648
- }, {
649
- title: i18n("dfac151de712ab0b3618072c8a7f0a0f"),
650
- body: [getSchemaTpl('apiControl', {
651
- label: i18n("33eaf97ecb3465754855e847f14d129c"),
652
- name: 'quickSaveApi'
653
- }), getSchemaTpl('apiControl', {
654
- label: i18n("ce7d31d64f2315e1d4cede288b9dfc60"),
655
- name: 'quickSaveItemApi'
656
- })]
657
- }]), isCRUDBody ? null : {
658
- type: 'divider'
424
+ return value;
425
+ },
426
+ form: {
427
+ body: [{
428
+ mode: 'normal',
429
+ type: 'ae-columnControl'
430
+ }]
431
+ }
659
432
  }]
660
433
  }, {
661
- title: i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
662
- body: [getSchemaTpl('collapseGroup', [{
663
- title: i18n("4092ed98e9035652d4c9ca9441701ed7"),
664
- body: [getSchemaTpl('switch', {
665
- name: 'bordered',
666
- label: i18n("961534b4ea37e4e88aada736b299d063"),
667
- pipeIn: defaultValue(false)
668
- }), {
669
- name: 'scroll.x',
670
- type: 'input-number',
671
- label: i18n("927b639f244953f237cd12943c8b815c")
672
- }, {
673
- name: 'indentSize',
674
- visibleOn: 'data.childrenColumnName',
675
- type: 'input-number',
676
- unitOptions: [{
677
- label: 'px',
678
- value: 'px'
679
- }],
680
- label: i18n("fdd59ca00eba17d4bfebf744056ce4ab")
681
- }, {
682
- name: 'rowSelection.columnWidth',
683
- visibleOn: 'data.rowSelection',
684
- type: 'input-number',
685
- label: i18n("6bfd4423d8aebbf0cac7ba4d74f245bd"),
686
- description: i18n("21922c6479665dcba83106f8e9ffdf68")
434
+ title: i18n("ed85be57262e5a0c3116293e88278fef"),
435
+ body: [{
436
+ name: 'lineHeight',
437
+ label: i18n("5a431ad16d8f7f23fac3be5650e51caa"),
438
+ type: 'select',
439
+ placeholder: i18n("3d2ac2fd2c60931fff1db814662334c3"),
440
+ options: [{
441
+ label: i18n("85a49c5ed4628647f2ead9206224dba3"),
442
+ value: ''
687
443
  }, {
688
- name: 'expandable.columnWidth',
689
- visibleOn: 'data.expandable',
690
- type: 'input-number',
691
- label: i18n("31b7c58c2d9a170829b90314ff98b66a"),
692
- description: i18n("81ccf26d9622d139a13ba2a61bd9fea4")
693
- }]
694
- }, getSchemaTpl('style:classNames', {
695
- isFormItem: true,
696
- schema: [{
697
- name: 'rowClassNameExpr',
698
- type: 'ae-formulaControl',
699
- label: i18n("68e9249db7bd12ab17994b1761b049f5")
444
+ label: i18n("4296d7d293c9ea4a0e52c6415f0b5c96"),
445
+ value: 'large'
700
446
  }, {
701
- name: 'expandable.expandedRowClassNameExpr',
702
- visibleOn: 'data.expandable',
703
- type: 'ae-formulaControl',
704
- label: i18n("ef0c5b6fa16497343eedb76171d61d68")
705
- }]
706
- })])]
447
+ label: i18n("aed1dfbc31703955e64806b799b67645"),
448
+ value: 'middle'
449
+ }],
450
+ clearable: false,
451
+ value: ''
452
+ }, isCRUDBody ? {
453
+ type: 'ae-Switch-More',
454
+ mode: 'normal',
455
+ name: 'rowSelection',
456
+ label: i18n("e3be7b8a459a08fec8f378a0660b642b"),
457
+ visibleOn: 'data.selectable',
458
+ hiddenOnDefault: true,
459
+ formType: 'extend',
460
+ form: {
461
+ body: [{
462
+ label: i18n("1f1ca9df5fa3648c718ad04649888943"),
463
+ name: 'rowSelection.rowClick',
464
+ type: 'button-group-select',
465
+ value: false,
466
+ options: [{
467
+ label: 'CheckBox',
468
+ value: false
469
+ }, {
470
+ label: i18n("596171970b639a35dadde2aa930d666a"),
471
+ value: true
472
+ }]
473
+ }, getSchemaTpl('formulaControl', {
474
+ name: 'rowSelection.disableOn',
475
+ label: i18n("388855093d17f3df43ff80242d7a1bed")
476
+ }), {
477
+ name: 'rowSelection.selections',
478
+ label: i18n("46705a530ba9721527a4202bae7091bd"),
479
+ type: 'checkboxes',
480
+ joinValues: false,
481
+ inline: false,
482
+ itemClassName: 'text-sm',
483
+ options: [{
484
+ label: i18n("66eeacd93a7c1bda93906fe908ad11a0"),
485
+ value: 'all'
486
+ }, {
487
+ label: i18n("aab57a3547a451f756bb8231a1eee8d7"),
488
+ value: 'invert'
489
+ }, {
490
+ label: i18n("76159d0d1261c0b6c310901244457e36"),
491
+ value: 'none'
492
+ }, {
493
+ label: i18n("be4751b0c9adf1d8deee45226c6124ee"),
494
+ value: 'odd'
495
+ }, {
496
+ label: i18n("49f4010dade8652e5aff6a2c67aa23a4"),
497
+ value: 'even'
498
+ }],
499
+ pipeIn: function (v) {
500
+ if (!v) {
501
+ return;
502
+ }
503
+ return v.map(function (item) {
504
+ return {
505
+ label: item.text,
506
+ value: item.key
507
+ };
508
+ });
509
+ },
510
+ pipeOut: function (v) {
511
+ if (!v) {
512
+ return;
513
+ }
514
+ return v.map(function (item) {
515
+ return {
516
+ key: item.value,
517
+ text: item.label
518
+ };
519
+ });
520
+ }
521
+ }]
522
+ }
523
+ } : null, {
524
+ type: 'ae-Switch-More',
525
+ mode: 'normal',
526
+ name: 'expandable',
527
+ label: i18n("49b4aa407b91ac997e27314e30c03110"),
528
+ hiddenOnDefault: true,
529
+ formType: 'extend',
530
+ form: {
531
+ body: [getSchemaTpl('formulaControl', {
532
+ name: 'expandable.expandableOn',
533
+ visibleOn: 'data.expandable',
534
+ label: i18n("8c1f5c49de09adab9a0e0c39e0106f78")
535
+ })]
536
+ }
537
+ }, getSchemaTpl('switch', {
538
+ name: 'childrenColumnName',
539
+ label: i18n("caca6cb58342bb604483d94f49515234"),
540
+ pipeIn: function (value) {
541
+ return !!value;
542
+ },
543
+ pipeOut: function (value) {
544
+ return value ? 'children' : '';
545
+ }
546
+ }), getSchemaTpl('switch', {
547
+ name: 'draggable',
548
+ label: i18n("5bdff9fd07d2a2430ac50e1559dbee27"),
549
+ pipeIn: function (value) {
550
+ return !!value;
551
+ },
552
+ pipeOut: function (value) {
553
+ return value;
554
+ }
555
+ })]
707
556
  }, {
708
- title: i18n("10b2761db5a8e089049df39675abc550"),
709
- body: [getSchemaTpl('eventControl', __assign({
710
- name: 'onEvent'
711
- }, getEventControlConfig(_this.manager, context)))]
712
- }]);
713
- }
714
- });
557
+ title: i18n("3fea7ca76cdece641436d7ab0d02ab1b"),
558
+ body: [getSchemaTpl('hidden', {
559
+ label: i18n("dce5379cb978a8259ecfca8f08f00817")
560
+ })]
561
+ }, {
562
+ title: i18n("dfac151de712ab0b3618072c8a7f0a0f"),
563
+ body: [getSchemaTpl('apiControl', {
564
+ label: i18n("33eaf97ecb3465754855e847f14d129c"),
565
+ name: 'quickSaveApi'
566
+ }), getSchemaTpl('apiControl', {
567
+ label: i18n("ce7d31d64f2315e1d4cede288b9dfc60"),
568
+ name: 'quickSaveItemApi'
569
+ })]
570
+ }]), isCRUDBody ? null : {
571
+ type: 'divider'
572
+ }]
573
+ }, {
574
+ title: i18n("afcde2611bdd13c1e65b4fb6a2f13425"),
575
+ body: [getSchemaTpl('collapseGroup', [{
576
+ title: i18n("4092ed98e9035652d4c9ca9441701ed7"),
577
+ body: [getSchemaTpl('switch', {
578
+ name: 'bordered',
579
+ label: i18n("961534b4ea37e4e88aada736b299d063"),
580
+ pipeIn: defaultValue(false)
581
+ }), {
582
+ name: 'scroll.x',
583
+ type: 'input-number',
584
+ label: i18n("927b639f244953f237cd12943c8b815c")
585
+ }, {
586
+ name: 'indentSize',
587
+ visibleOn: 'data.childrenColumnName',
588
+ type: 'input-number',
589
+ unitOptions: [{
590
+ label: 'px',
591
+ value: 'px'
592
+ }],
593
+ label: i18n("fdd59ca00eba17d4bfebf744056ce4ab")
594
+ }, {
595
+ name: 'rowSelection.columnWidth',
596
+ visibleOn: 'data.rowSelection',
597
+ type: 'input-number',
598
+ label: i18n("6bfd4423d8aebbf0cac7ba4d74f245bd"),
599
+ description: i18n("21922c6479665dcba83106f8e9ffdf68")
600
+ }, {
601
+ name: 'expandable.columnWidth',
602
+ visibleOn: 'data.expandable',
603
+ type: 'input-number',
604
+ label: i18n("31b7c58c2d9a170829b90314ff98b66a"),
605
+ description: i18n("81ccf26d9622d139a13ba2a61bd9fea4")
606
+ }]
607
+ }, getSchemaTpl('style:classNames', {
608
+ isFormItem: true,
609
+ schema: [getSchemaTpl('formulaControl', {
610
+ name: 'rowClassNameExpr',
611
+ label: i18n("68e9249db7bd12ab17994b1761b049f5")
612
+ }), getSchemaTpl('formulaControl', {
613
+ name: 'expandable.expandedRowClassNameExpr',
614
+ visibleOn: 'data.expandable',
615
+ label: i18n("ef0c5b6fa16497343eedb76171d61d68")
616
+ })]
617
+ })])]
618
+ }, {
619
+ title: i18n("10b2761db5a8e089049df39675abc550"),
620
+ body: [getSchemaTpl('eventControl', __assign({
621
+ name: 'onEvent'
622
+ }, getEventControlConfig(_this.manager, context)))]
623
+ }]);
624
+ };
715
625
  return _this;
716
626
  }
717
- Object.defineProperty(Table2Plugin.prototype, "buildDataSchemas", {
718
- enumerable: false,
719
- configurable: true,
720
- writable: true,
721
- value: function (node, region, trigger) {
722
- var _a, _b;
723
- return __awaiter(this, void 0, void 0, function () {
724
- var itemsSchema, columns, _i, _c, current, schema, _d, _e, _f, cellProperties, isColumnChild, result;
725
- return __generator(this, function (_g) {
726
- switch (_g.label) {
727
- case 0:
728
- itemsSchema = {
729
- $id: 'tableRow',
730
- type: 'object',
731
- properties: {}
732
- };
733
- columns = node.children.find(function (item) {
734
- return item.isRegion && item.region === 'columns';
627
+ Table2Plugin.prototype.buildDataSchemas = function (node, region, trigger) {
628
+ var _a, _b;
629
+ return __awaiter(this, void 0, void 0, function () {
630
+ var itemsSchema, columns, _c, _d, current, schema, _e, _f, _g, e_1_1, cellProperties, isColumnChild, result;
631
+ var e_1, _h;
632
+ return __generator(this, function (_j) {
633
+ switch (_j.label) {
634
+ case 0:
635
+ itemsSchema = {
636
+ $id: 'tableRow',
637
+ type: 'object',
638
+ properties: {}
639
+ };
640
+ columns = node.children.find(function (item) {
641
+ return item.isRegion && item.region === 'columns';
642
+ });
643
+ if (!columns) return [3 /*break*/, 10];
644
+ _j.label = 1;
645
+ case 1:
646
+ _j.trys.push([1, 8, 9, 10]);
647
+ _c = __values(columns.children), _d = _c.next();
648
+ _j.label = 2;
649
+ case 2:
650
+ if (!!_d.done) return [3 /*break*/, 7];
651
+ current = _d.value;
652
+ schema = current.schema;
653
+ if (!(schema === null || schema === void 0 ? void 0 : schema.name)) return [3 /*break*/, 6];
654
+ _e = itemsSchema.properties;
655
+ _f = schema.name;
656
+ if (!((_b = (_a = current.info) === null || _a === void 0 ? void 0 : _a.plugin) === null || _b === void 0 ? void 0 : _b.buildDataSchemas)) return [3 /*break*/, 4];
657
+ return [4 /*yield*/, current.info.plugin.buildDataSchemas(current, region)];
658
+ case 3:
659
+ _g = _j.sent();
660
+ return [3 /*break*/, 5];
661
+ case 4:
662
+ _g = {
663
+ type: 'string',
664
+ title: schema.label || schema.title
665
+ };
666
+ _j.label = 5;
667
+ case 5:
668
+ _e[_f] = _g;
669
+ _j.label = 6;
670
+ case 6:
671
+ _d = _c.next();
672
+ return [3 /*break*/, 2];
673
+ case 7:
674
+ return [3 /*break*/, 10];
675
+ case 8:
676
+ e_1_1 = _j.sent();
677
+ e_1 = {
678
+ error: e_1_1
679
+ };
680
+ return [3 /*break*/, 10];
681
+ case 9:
682
+ try {
683
+ if (_d && !_d.done && (_h = _c.return)) _h.call(_c);
684
+ } finally {
685
+ if (e_1) throw e_1.error;
686
+ }
687
+ return [7 /*endfinally*/];
688
+ case 10:
689
+ cellProperties = {};
690
+ if (trigger) {
691
+ isColumnChild = someTree(columns === null || columns === void 0 ? void 0 : columns.children, function (item) {
692
+ return item.id === trigger.id;
735
693
  });
736
- if (!columns) return [3 /*break*/, 6];
737
- _i = 0, _c = columns.children;
738
- _g.label = 1;
739
- case 1:
740
- if (!(_i < _c.length)) return [3 /*break*/, 6];
741
- current = _c[_i];
742
- schema = current.schema;
743
- if (!(schema === null || schema === void 0 ? void 0 : schema.name)) return [3 /*break*/, 5];
744
- _d = itemsSchema.properties;
745
- _e = schema.name;
746
- if (!((_b = (_a = current.info) === null || _a === void 0 ? void 0 : _a.plugin) === null || _b === void 0 ? void 0 : _b.buildDataSchemas)) return [3 /*break*/, 3];
747
- return [4 /*yield*/, current.info.plugin.buildDataSchemas(current, region)];
748
- case 2:
749
- _f = _g.sent();
750
- return [3 /*break*/, 4];
751
- case 3:
752
- _f = {
753
- type: 'string',
754
- title: schema.label || schema.title
755
- };
756
- _g.label = 4;
757
- case 4:
758
- _d[_e] = _f;
759
- _g.label = 5;
760
- case 5:
761
- _i++;
762
- return [3 /*break*/, 1];
763
- case 6:
764
- cellProperties = {};
765
- if (trigger) {
766
- isColumnChild = someTree(columns === null || columns === void 0 ? void 0 : columns.children, function (item) {
767
- return item.id === trigger.id;
768
- });
769
- isColumnChild && (cellProperties = itemsSchema.properties);
770
- }
771
- result = {
772
- $id: 'table2',
773
- type: 'object',
774
- properties: __assign(__assign({}, cellProperties), {
775
- rows: {
776
- type: 'array',
777
- title: i18n("77fdd35933c099cdcb64b71f3fbe7a6c"),
778
- items: itemsSchema
779
- }
780
- })
781
- };
782
- if ((region === null || region === void 0 ? void 0 : region.region) === 'columns') {
783
- result.properties = __assign(__assign({}, itemsSchema.properties), result.properties);
784
- }
785
- return [2 /*return*/, result];
694
+ isColumnChild && (cellProperties = itemsSchema.properties);
695
+ }
696
+ result = {
697
+ $id: 'table2',
698
+ type: 'object',
699
+ properties: __assign(__assign({}, cellProperties), {
700
+ rows: {
701
+ type: 'array',
702
+ title: i18n("77fdd35933c099cdcb64b71f3fbe7a6c"),
703
+ items: itemsSchema
704
+ }
705
+ })
706
+ };
707
+ if ((region === null || region === void 0 ? void 0 : region.region) === 'columns') {
708
+ result.properties = __assign(__assign({}, itemsSchema.properties), result.properties);
709
+ }
710
+ return [2 /*return*/, result];
711
+ }
712
+ });
713
+ });
714
+ };
715
+ Table2Plugin.prototype.getAvailableContextFields = function (scopeNode, node, region) {
716
+ return __awaiter(this, void 0, void 0, function () {
717
+ return __generator(this, function (_a) {
718
+ return [2 /*return*/];
719
+ });
720
+ });
721
+ };
722
+
723
+ Table2Plugin.prototype.filterProps = function (props) {
724
+ var arr = Array.isArray(props.value) ? props.value : typeof props.source === 'string' ? resolveVariable(props.source, props.data) : resolveVariable('items', props.data);
725
+ if (!Array.isArray(arr) || !arr.length) {
726
+ var mockedData_1 = {};
727
+ if (Array.isArray(props.columns)) {
728
+ props.columns.forEach(function (column) {
729
+ if (column.name) {
730
+ setVariable(mockedData_1, column.name, mockValue(column));
786
731
  }
787
732
  });
788
- });
789
- }
790
- });
791
- Object.defineProperty(Table2Plugin.prototype, "getAvailableContextFields", {
792
- enumerable: false,
793
- configurable: true,
794
- writable: true,
795
- value: function (scopeNode, node, region) {
796
- return __awaiter(this, void 0, void 0, function () {
797
- return __generator(this, function (_a) {
798
- return [2 /*return*/];
733
+ }
734
+ props.value = repeatArray(mockedData_1, 10).map(function (item, index) {
735
+ return __assign(__assign({}, item), {
736
+ id: index + 1
799
737
  });
800
738
  });
739
+ } else {
740
+ // 只取10条预览,否则太多卡顿
741
+ props.value = arr.slice(0, 10);
801
742
  }
802
- });
803
-
804
- Object.defineProperty(Table2Plugin.prototype, "filterProps", {
805
- enumerable: false,
806
- configurable: true,
807
- writable: true,
808
- value: function (props) {
809
- var arr = Array.isArray(props.value) ? props.value : typeof props.source === 'string' ? resolveVariable(props.source, props.data) : resolveVariable('items', props.data);
810
- if (!Array.isArray(arr) || !arr.length) {
811
- var mockedData_1 = {};
812
- if (Array.isArray(props.columns)) {
813
- props.columns.forEach(function (column) {
814
- if (column.name) {
815
- setVariable(mockedData_1, column.name, mockValue(column));
816
- }
817
- });
818
- }
819
- props.value = repeatArray(mockedData_1, 10).map(function (item, index) {
820
- return __assign(__assign({}, item), {
821
- id: index + 1
822
- });
823
- });
824
- } else {
825
- // 只取10条预览,否则太多卡顿
826
- props.value = arr.slice(0, 10);
743
+ // 如果设置了可展开 默认把第一行展开
744
+ if (props.expandable) {
745
+ if (typeof props.expandable === 'boolean') {
746
+ props.expandable = {};
827
747
  }
828
- // 如果设置了可展开 默认把第一行展开
829
- if (props.expandable) {
830
- if (typeof props.expandable === 'boolean') {
831
- props.expandable = {};
832
- }
833
- if (!props.expandable.type) {
834
- props.expandable.type = 'container';
835
- props.expandable.body = [{
836
- type: 'tpl',
837
- tpl: i18n("1a7bd457c08093cf2cf887403dc249d8"),
838
- wrapperComponent: '',
839
- inline: false
840
- }];
841
- }
842
- props.expandable.keyField = 'id';
843
- props.expandable.expandedRowKeys = [1];
748
+ if (!props.expandable.type) {
749
+ props.expandable.type = 'container';
750
+ props.expandable.body = [{
751
+ type: 'tpl',
752
+ tpl: i18n("1a7bd457c08093cf2cf887403dc249d8"),
753
+ wrapperComponent: '',
754
+ inline: false
755
+ }];
844
756
  }
845
- return props;
757
+ props.expandable.keyField = 'id';
758
+ props.expandable.expandedRowKeys = [1];
846
759
  }
847
- });
760
+ return props;
761
+ };
848
762
  // 为了能够自动注入数据。
849
- Object.defineProperty(Table2Plugin.prototype, "getRendererInfo", {
850
- enumerable: false,
851
- configurable: true,
852
- writable: true,
853
- value: function (context) {
854
- var _a;
855
- var plugin = this;
856
- var schema = context.schema,
857
- renderer = context.renderer;
858
- if (!schema.$$id && ['crud', 'crud2'].includes((_a = schema.$$editor) === null || _a === void 0 ? void 0 : _a.renderer.name) && renderer.name === 'table2') {
859
- return __assign(__assign({}, {
860
- id: schema.$$editor.id
861
- }), {
862
- name: plugin.name,
863
- regions: plugin.regions,
864
- patchContainers: plugin.patchContainers,
865
- vRendererConfig: plugin.vRendererConfig,
866
- wrapperProps: plugin.wrapperProps,
867
- wrapperResolve: plugin.wrapperResolve,
868
- filterProps: plugin.filterProps,
869
- $schema: plugin.$schema,
870
- renderRenderer: plugin.renderRenderer
871
- });
872
- }
873
- return _super.prototype.getRendererInfo.call(this, context);
763
+ Table2Plugin.prototype.getRendererInfo = function (context) {
764
+ var _a;
765
+ var plugin = this;
766
+ var schema = context.schema,
767
+ renderer = context.renderer;
768
+ if (!schema.$$id && ['crud', 'crud2'].includes((_a = schema.$$editor) === null || _a === void 0 ? void 0 : _a.renderer.name) && renderer.name === 'table2') {
769
+ return __assign(__assign({}, {
770
+ id: schema.$$editor.id
771
+ }), {
772
+ name: plugin.name,
773
+ regions: plugin.regions,
774
+ patchContainers: plugin.patchContainers,
775
+ vRendererConfig: plugin.vRendererConfig,
776
+ wrapperProps: plugin.wrapperProps,
777
+ wrapperResolve: plugin.wrapperResolve,
778
+ filterProps: plugin.filterProps,
779
+ $schema: plugin.$schema,
780
+ renderRenderer: plugin.renderRenderer
781
+ });
874
782
  }
875
- });
783
+ return _super.prototype.getRendererInfo.call(this, context);
784
+ };
876
785
  // 自动插入 label
877
- Object.defineProperty(Table2Plugin.prototype, "beforeInsert", {
878
- enumerable: false,
879
- configurable: true,
880
- writable: true,
881
- value: function (event) {
882
- var _a, _b, _c, _d;
883
- var context = event.context;
884
- if ((context.info.plugin === this || ((_a = context.node.sameIdChild) === null || _a === void 0 ? void 0 : _a.info.plugin) === this) && context.region === 'columns') {
885
- context.data = __assign(__assign({}, context.data), {
886
- title: (_d = (_b = context.data.label) !== null && _b !== void 0 ? _b : (_c = context.subRenderer) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : i18n("bcee820bc20342a4d388a35ed32a35fe")
887
- });
888
- }
786
+ Table2Plugin.prototype.beforeInsert = function (event) {
787
+ var _a, _b, _c, _d;
788
+ var context = event.context;
789
+ if ((context.info.plugin === this || ((_a = context.node.sameIdChild) === null || _a === void 0 ? void 0 : _a.info.plugin) === this) && context.region === 'columns') {
790
+ context.data = __assign(__assign({}, context.data), {
791
+ title: (_d = (_b = context.data.label) !== null && _b !== void 0 ? _b : (_c = context.subRenderer) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : i18n("bcee820bc20342a4d388a35ed32a35fe")
792
+ });
889
793
  }
890
- });
794
+ };
891
795
  return Table2Plugin;
892
796
  }(BasePlugin);
893
797
  registerEditorPlugin(Table2Plugin);