amis-editor 3.3.9 → 4.0.1-beta.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (443) hide show
  1. package/dist/150a58f3318ca7541ed9.png +0 -0
  2. package/dist/471adb97c322b226e589.png +0 -0
  3. package/dist/4de5f42360bc5946c3c2.png +0 -0
  4. package/dist/4e9968bba3855f088fed.png +0 -0
  5. package/dist/7f09c38ebc687fea847a.png +0 -0
  6. package/dist/c94073576487510314ea.png +0 -0
  7. package/dist/component/AvailableRenderersPanel.d.ts +13 -1
  8. package/dist/component/BackTop.d.ts +26 -0
  9. package/dist/component/Breadcrumb.d.ts +1 -1
  10. package/dist/component/InputComponentName.d.ts +8 -0
  11. package/dist/component/Outline.d.ts +6 -0
  12. package/dist/component/Preview.d.ts +2 -0
  13. package/dist/component/RegionHLBox.d.ts +1 -8
  14. package/dist/dnd/default.d.ts +1 -1
  15. package/dist/dnd/index.d.ts +1 -1
  16. package/dist/index.d.ts +3 -4
  17. package/dist/index.min.js +1 -1
  18. package/dist/manager.d.ts +442 -0
  19. package/dist/plugin/BasicToolbar.d.ts +1 -1
  20. package/dist/plugin/Date.d.ts +1 -0
  21. package/dist/plugin/Datetime.d.ts +3 -0
  22. package/dist/plugin/Form/FieldSet.d.ts +1 -0
  23. package/dist/plugin/Form/Group.d.ts +1 -0
  24. package/dist/plugin/Form/InputExcel.d.ts +13 -1
  25. package/dist/plugin/Form/InputKV.d.ts +28 -0
  26. package/dist/plugin/Form/Item.d.ts +1 -1
  27. package/dist/plugin/Grid.d.ts +17 -20
  28. package/dist/plugin/HBox.d.ts +1 -0
  29. package/dist/plugin/Log.d.ts +1 -0
  30. package/dist/plugin/Plain.d.ts +1 -0
  31. package/dist/plugin/Reset.d.ts +1 -0
  32. package/dist/plugin/Steps.d.ts +1 -7
  33. package/dist/plugin/Submit.d.ts +1 -0
  34. package/dist/plugin/Time.d.ts +3 -0
  35. package/dist/plugin/WebComponent.d.ts +1 -0
  36. package/dist/plugin/Wrapper.d.ts +1 -0
  37. package/dist/plugin.d.ts +18 -0
  38. package/dist/store/editor.d.ts +5 -1
  39. package/dist/style.css +1 -1
  40. package/package.json +9 -7
  41. package/publish-local.sh +37 -0
  42. package/static/Code-hover.png +0 -0
  43. package/static/Code.png +0 -0
  44. package/static/Outline-hover.png +0 -0
  45. package/static/Outline.png +0 -0
  46. package/static/Renderers-hover.png +0 -0
  47. package/static/Renderers.png +0 -0
  48. package/dist/npm/src/compat.d.ts +0 -30
  49. package/dist/npm/src/component/AvailableRenderersPanel.d.ts +0 -8
  50. package/dist/npm/src/component/Breadcrumb.d.ts +0 -12
  51. package/dist/npm/src/component/ClassNameControl.d.ts +0 -31
  52. package/dist/npm/src/component/CodeEditor.d.ts +0 -34
  53. package/dist/npm/src/component/CodeEditorPanel.d.ts +0 -12
  54. package/dist/npm/src/component/ContainerWrapper.d.ts +0 -12
  55. package/dist/npm/src/component/Editor.d.ts +0 -48
  56. package/dist/npm/src/component/ErrorRenderer.d.ts +0 -4
  57. package/dist/npm/src/component/HighlightBox.d.ts +0 -13
  58. package/dist/npm/src/component/InsertSubRendererPanel.d.ts +0 -11
  59. package/dist/npm/src/component/MiniEditor.d.ts +0 -8
  60. package/dist/npm/src/component/NodeWrapper.d.ts +0 -20
  61. package/dist/npm/src/component/Outline.d.ts +0 -12
  62. package/dist/npm/src/component/Panels.d.ts +0 -17
  63. package/dist/npm/src/component/Preview.d.ts +0 -43
  64. package/dist/npm/src/component/RegionHLBox.d.ts +0 -27
  65. package/dist/npm/src/component/RegionWrapper.d.ts +0 -150
  66. package/dist/npm/src/component/RendererThumb.d.ts +0 -23
  67. package/dist/npm/src/component/ScaffoldModal.d.ts +0 -53
  68. package/dist/npm/src/component/SubEditor.d.ts +0 -71
  69. package/dist/npm/src/component/VRenderer.d.ts +0 -142
  70. package/dist/npm/src/component/schemaTpl.d.ts +0 -4
  71. package/dist/npm/src/dnd/default.d.ts +0 -47
  72. package/dist/npm/src/dnd/index.d.ts +0 -119
  73. package/dist/npm/src/dnd/interface.d.ts +0 -14
  74. package/dist/npm/src/dnd/position-h.d.ts +0 -7
  75. package/dist/npm/src/env.d.ts +0 -5
  76. package/dist/npm/src/index.d.ts +0 -126
  77. package/dist/npm/src/mocker.d.ts +0 -1
  78. package/dist/npm/src/plugin/Action.d.ts +0 -6
  79. package/dist/npm/src/plugin/Alert.d.ts +0 -18
  80. package/dist/npm/src/plugin/Audio.d.ts +0 -21
  81. package/dist/npm/src/plugin/AvailableRenderers.d.ts +0 -8
  82. package/dist/npm/src/plugin/BasicToolbar.d.ts +0 -9
  83. package/dist/npm/src/plugin/Button.d.ts +0 -24
  84. package/dist/npm/src/plugin/ButtonGroup.d.ts +0 -59
  85. package/dist/npm/src/plugin/ButtonToolbar.d.ts +0 -35
  86. package/dist/npm/src/plugin/CRUD.d.ts +0 -28
  87. package/dist/npm/src/plugin/Card.d.ts +0 -55
  88. package/dist/npm/src/plugin/Cards.d.ts +0 -69
  89. package/dist/npm/src/plugin/Carousel.d.ts +0 -31
  90. package/dist/npm/src/plugin/Chart.d.ts +0 -44
  91. package/dist/npm/src/plugin/Code.d.ts +0 -9
  92. package/dist/npm/src/plugin/Collapse.d.ts +0 -21
  93. package/dist/npm/src/plugin/Container.d.ts +0 -20
  94. package/dist/npm/src/plugin/Date.d.ts +0 -19
  95. package/dist/npm/src/plugin/Datetime.d.ts +0 -10
  96. package/dist/npm/src/plugin/Dialog.d.ts +0 -18
  97. package/dist/npm/src/plugin/DiffEditor.d.ts +0 -19
  98. package/dist/npm/src/plugin/Divider.d.ts +0 -13
  99. package/dist/npm/src/plugin/Drawer.d.ts +0 -16
  100. package/dist/npm/src/plugin/DropDownButton.d.ts +0 -41
  101. package/dist/npm/src/plugin/Each.d.ts +0 -35
  102. package/dist/npm/src/plugin/ErrorRenderer.d.ts +0 -6
  103. package/dist/npm/src/plugin/Form/Array.d.ts +0 -26
  104. package/dist/npm/src/plugin/Form/Button.d.ts +0 -11
  105. package/dist/npm/src/plugin/Form/ButtonGroup.d.ts +0 -21
  106. package/dist/npm/src/plugin/Form/ButtonToolbar.d.ts +0 -26
  107. package/dist/npm/src/plugin/Form/ChainedSelect.d.ts +0 -18
  108. package/dist/npm/src/plugin/Form/Checkbox.d.ts +0 -18
  109. package/dist/npm/src/plugin/Form/Checkboxes.d.ts +0 -23
  110. package/dist/npm/src/plugin/Form/City.d.ts +0 -18
  111. package/dist/npm/src/plugin/Form/Color.d.ts +0 -18
  112. package/dist/npm/src/plugin/Form/Combo.d.ts +0 -37
  113. package/dist/npm/src/plugin/Form/Container.d.ts +0 -36
  114. package/dist/npm/src/plugin/Form/Date.d.ts +0 -20
  115. package/dist/npm/src/plugin/Form/DateRange.d.ts +0 -20
  116. package/dist/npm/src/plugin/Form/DateTime.d.ts +0 -19
  117. package/dist/npm/src/plugin/Form/DiffEditor.d.ts +0 -18
  118. package/dist/npm/src/plugin/Form/Editor.d.ts +0 -39
  119. package/dist/npm/src/plugin/Form/Email.d.ts +0 -24
  120. package/dist/npm/src/plugin/Form/FieldSet.d.ts +0 -25
  121. package/dist/npm/src/plugin/Form/File.d.ts +0 -18
  122. package/dist/npm/src/plugin/Form/Form.d.ts +0 -18
  123. package/dist/npm/src/plugin/Form/Formula.d.ts +0 -50
  124. package/dist/npm/src/plugin/Form/Grid.d.ts +0 -32
  125. package/dist/npm/src/plugin/Form/Group.d.ts +0 -23
  126. package/dist/npm/src/plugin/Form/HBox.d.ts +0 -72
  127. package/dist/npm/src/plugin/Form/Hidden.d.ts +0 -22
  128. package/dist/npm/src/plugin/Form/Image.d.ts +0 -19
  129. package/dist/npm/src/plugin/Form/InputGroup.d.ts +0 -33
  130. package/dist/npm/src/plugin/Form/Item.d.ts +0 -10
  131. package/dist/npm/src/plugin/Form/List.d.ts +0 -23
  132. package/dist/npm/src/plugin/Form/Matrix.d.ts +0 -25
  133. package/dist/npm/src/plugin/Form/NestedSelect.d.ts +0 -72
  134. package/dist/npm/src/plugin/Form/Number.d.ts +0 -19
  135. package/dist/npm/src/plugin/Form/Panel.d.ts +0 -23
  136. package/dist/npm/src/plugin/Form/Password.d.ts +0 -24
  137. package/dist/npm/src/plugin/Form/Picker.d.ts +0 -25
  138. package/dist/npm/src/plugin/Form/QRCode.d.ts +0 -19
  139. package/dist/npm/src/plugin/Form/Radios.d.ts +0 -23
  140. package/dist/npm/src/plugin/Form/Range.d.ts +0 -18
  141. package/dist/npm/src/plugin/Form/Rating.d.ts +0 -18
  142. package/dist/npm/src/plugin/Form/Repeat.d.ts +0 -18
  143. package/dist/npm/src/plugin/Form/Reset.d.ts +0 -6
  144. package/dist/npm/src/plugin/Form/RichText.d.ts +0 -18
  145. package/dist/npm/src/plugin/Form/Select.d.ts +0 -23
  146. package/dist/npm/src/plugin/Form/Service.d.ts +0 -23
  147. package/dist/npm/src/plugin/Form/Static.d.ts +0 -22
  148. package/dist/npm/src/plugin/Form/SubForm.d.ts +0 -62
  149. package/dist/npm/src/plugin/Form/Submit.d.ts +0 -6
  150. package/dist/npm/src/plugin/Form/Switch.d.ts +0 -19
  151. package/dist/npm/src/plugin/Form/Table.d.ts +0 -33
  152. package/dist/npm/src/plugin/Form/Tabs.d.ts +0 -16
  153. package/dist/npm/src/plugin/Form/Tag.d.ts +0 -20
  154. package/dist/npm/src/plugin/Form/Text.d.ts +0 -19
  155. package/dist/npm/src/plugin/Form/Textarea.d.ts +0 -19
  156. package/dist/npm/src/plugin/Form/Time.d.ts +0 -18
  157. package/dist/npm/src/plugin/Form/Tree.d.ts +0 -72
  158. package/dist/npm/src/plugin/Form/TreeSelect.d.ts +0 -72
  159. package/dist/npm/src/plugin/Form/Url.d.ts +0 -24
  160. package/dist/npm/src/plugin/Grid.d.ts +0 -30
  161. package/dist/npm/src/plugin/HBox.d.ts +0 -32
  162. package/dist/npm/src/plugin/IFrame.d.ts +0 -28
  163. package/dist/npm/src/plugin/Image.d.ts +0 -19
  164. package/dist/npm/src/plugin/Images.d.ts +0 -24
  165. package/dist/npm/src/plugin/Json.d.ts +0 -24
  166. package/dist/npm/src/plugin/Link.d.ts +0 -20
  167. package/dist/npm/src/plugin/List.d.ts +0 -53
  168. package/dist/npm/src/plugin/ListItem.d.ts +0 -16
  169. package/dist/npm/src/plugin/Mapping.d.ts +0 -35
  170. package/dist/npm/src/plugin/Nav.d.ts +0 -161
  171. package/dist/npm/src/plugin/Operation.d.ts +0 -25
  172. package/dist/npm/src/plugin/Page.d.ts +0 -26
  173. package/dist/npm/src/plugin/Panel.d.ts +0 -16
  174. package/dist/npm/src/plugin/Plain.d.ts +0 -18
  175. package/dist/npm/src/plugin/Progress.d.ts +0 -19
  176. package/dist/npm/src/plugin/QRCode.d.ts +0 -19
  177. package/dist/npm/src/plugin/Reset.d.ts +0 -10
  178. package/dist/npm/src/plugin/Service.d.ts +0 -24
  179. package/dist/npm/src/plugin/Status.d.ts +0 -19
  180. package/dist/npm/src/plugin/Submit.d.ts +0 -10
  181. package/dist/npm/src/plugin/Switch.d.ts +0 -21
  182. package/dist/npm/src/plugin/Table.d.ts +0 -18
  183. package/dist/npm/src/plugin/TableCell.d.ts +0 -8
  184. package/dist/npm/src/plugin/Tabs.d.ts +0 -43
  185. package/dist/npm/src/plugin/Tasks.d.ts +0 -41
  186. package/dist/npm/src/plugin/Time.d.ts +0 -10
  187. package/dist/npm/src/plugin/Tpl.d.ts +0 -16
  188. package/dist/npm/src/plugin/Unknown.d.ts +0 -5
  189. package/dist/npm/src/plugin/Video.d.ts +0 -24
  190. package/dist/npm/src/plugin/Wizard.d.ts +0 -40
  191. package/dist/npm/src/plugin/Wrapper.d.ts +0 -20
  192. package/dist/npm/src/plugin.d.ts +0 -486
  193. package/dist/npm/src/store/editor.d.ts +0 -731
  194. package/dist/npm/src/store/node.d.ts +0 -208
  195. package/dist/npm/src/util.d.ts +0 -45
  196. package/dist/plugin/DiffEditor.d.ts +0 -19
  197. package/dist/plugin/Form/AnchorNav.d.ts +0 -17
  198. package/dist/plugin/Form/Array.d.ts +0 -27
  199. package/dist/plugin/Form/Button.d.ts +0 -11
  200. package/dist/plugin/Form/ButtonGroup.d.ts +0 -22
  201. package/dist/plugin/Form/City.d.ts +0 -19
  202. package/dist/plugin/Form/Color.d.ts +0 -39
  203. package/dist/plugin/Form/Container.d.ts +0 -37
  204. package/dist/plugin/Form/Date.d.ts +0 -20
  205. package/dist/plugin/Form/DateRange.d.ts +0 -20
  206. package/dist/plugin/Form/DateTime.d.ts +0 -19
  207. package/dist/plugin/Form/Email.d.ts +0 -25
  208. package/dist/plugin/Form/File.d.ts +0 -19
  209. package/dist/plugin/Form/Grid.d.ts +0 -32
  210. package/dist/plugin/Form/HBox.d.ts +0 -73
  211. package/dist/plugin/Form/Image.d.ts +0 -20
  212. package/dist/plugin/Form/List.d.ts +0 -24
  213. package/dist/plugin/Form/Location.d.ts +0 -48
  214. package/dist/plugin/Form/Matrix.d.ts +0 -26
  215. package/dist/plugin/Form/Month.d.ts +0 -16
  216. package/dist/plugin/Form/MonthRange.d.ts +0 -20
  217. package/dist/plugin/Form/Number.d.ts +0 -20
  218. package/dist/plugin/Form/Panel.d.ts +0 -24
  219. package/dist/plugin/Form/Password.d.ts +0 -25
  220. package/dist/plugin/Form/QRCode.d.ts +0 -20
  221. package/dist/plugin/Form/Range.d.ts +0 -19
  222. package/dist/plugin/Form/Rating.d.ts +0 -19
  223. package/dist/plugin/Form/Repeat.d.ts +0 -19
  224. package/dist/plugin/Form/Reset.d.ts +0 -7
  225. package/dist/plugin/Form/RichText.d.ts +0 -19
  226. package/dist/plugin/Form/Service.d.ts +0 -24
  227. package/dist/plugin/Form/SubForm.d.ts +0 -64
  228. package/dist/plugin/Form/Submit.d.ts +0 -6
  229. package/dist/plugin/Form/Table.d.ts +0 -34
  230. package/dist/plugin/Form/Tabs.d.ts +0 -17
  231. package/dist/plugin/Form/Tag.d.ts +0 -21
  232. package/dist/plugin/Form/Text.d.ts +0 -20
  233. package/dist/plugin/Form/Time.d.ts +0 -19
  234. package/dist/plugin/Form/Tree.d.ts +0 -73
  235. package/dist/plugin/Form/Url.d.ts +0 -25
  236. package/dist/plugin/Form/Year.d.ts +0 -16
  237. package/dist/plugin/Switch.d.ts +0 -21
  238. package/dist/src/compat.d.ts +0 -30
  239. package/dist/src/component/AvailableRenderersPanel.d.ts +0 -8
  240. package/dist/src/component/Breadcrumb.d.ts +0 -12
  241. package/dist/src/component/ClassNameControl.d.ts +0 -31
  242. package/dist/src/component/CodeEditor.d.ts +0 -37
  243. package/dist/src/component/CodeEditorPanel.d.ts +0 -12
  244. package/dist/src/component/CommonConfigWrapper.d.ts +0 -6
  245. package/dist/src/component/ContainerWrapper.d.ts +0 -12
  246. package/dist/src/component/Editor.d.ts +0 -60
  247. package/dist/src/component/ErrorRenderer.d.ts +0 -4
  248. package/dist/src/component/HighlightBox.d.ts +0 -22
  249. package/dist/src/component/IFrameBridge.d.ts +0 -32
  250. package/dist/src/component/IFramePreview.d.ts +0 -37
  251. package/dist/src/component/InsertSubRendererPanel.d.ts +0 -11
  252. package/dist/src/component/MiniEditor.d.ts +0 -9
  253. package/dist/src/component/NodeWrapper.d.ts +0 -20
  254. package/dist/src/component/Outline.d.ts +0 -12
  255. package/dist/src/component/Panels.d.ts +0 -17
  256. package/dist/src/component/PopOverForm.d.ts +0 -22
  257. package/dist/src/component/Preview.d.ts +0 -62
  258. package/dist/src/component/RegionHLBox.d.ts +0 -27
  259. package/dist/src/component/RegionWrapper.d.ts +0 -181
  260. package/dist/src/component/RendererThumb.d.ts +0 -22
  261. package/dist/src/component/ScaffoldModal.d.ts +0 -24
  262. package/dist/src/component/SubEditor.d.ts +0 -67
  263. package/dist/src/component/TableViewEditor.d.ts +0 -79
  264. package/dist/src/component/TargetNamePanel.d.ts +0 -7
  265. package/dist/src/component/VRenderer.d.ts +0 -169
  266. package/dist/src/component/schemaTpl.d.ts +0 -4
  267. package/dist/src/dnd/default.d.ts +0 -47
  268. package/dist/src/dnd/index.d.ts +0 -119
  269. package/dist/src/dnd/interface.d.ts +0 -14
  270. package/dist/src/dnd/position-h.d.ts +0 -7
  271. package/dist/src/env.d.ts +0 -5
  272. package/dist/src/icons/index.d.ts +0 -2
  273. package/dist/src/index.d.ts +0 -151
  274. package/dist/src/mocker.d.ts +0 -1
  275. package/dist/src/plugin/Action.d.ts +0 -6
  276. package/dist/src/plugin/Alert.d.ts +0 -19
  277. package/dist/src/plugin/AnchorNav.d.ts +0 -66
  278. package/dist/src/plugin/Audio.d.ts +0 -21
  279. package/dist/src/plugin/AvailableRenderers.d.ts +0 -8
  280. package/dist/src/plugin/Avatar.d.ts +0 -17
  281. package/dist/src/plugin/BasicToolbar.d.ts +0 -11
  282. package/dist/src/plugin/Breadcrumb.d.ts +0 -25
  283. package/dist/src/plugin/Button.d.ts +0 -24
  284. package/dist/src/plugin/ButtonGroup.d.ts +0 -59
  285. package/dist/src/plugin/ButtonToolbar.d.ts +0 -35
  286. package/dist/src/plugin/CRUD.d.ts +0 -144
  287. package/dist/src/plugin/Card.d.ts +0 -55
  288. package/dist/src/plugin/Cards.d.ts +0 -69
  289. package/dist/src/plugin/Carousel.d.ts +0 -38
  290. package/dist/src/plugin/Chart.d.ts +0 -46
  291. package/dist/src/plugin/Code.d.ts +0 -9
  292. package/dist/src/plugin/CodeView.d.ts +0 -18
  293. package/dist/src/plugin/Collapse.d.ts +0 -21
  294. package/dist/src/plugin/Container.d.ts +0 -20
  295. package/dist/src/plugin/Custom.d.ts +0 -23
  296. package/dist/src/plugin/DataDebug.d.ts +0 -20
  297. package/dist/src/plugin/Date.d.ts +0 -19
  298. package/dist/src/plugin/Datetime.d.ts +0 -13
  299. package/dist/src/plugin/Dialog.d.ts +0 -20
  300. package/dist/src/plugin/DiffEditor.d.ts +0 -19
  301. package/dist/src/plugin/Divider.d.ts +0 -14
  302. package/dist/src/plugin/Drawer.d.ts +0 -17
  303. package/dist/src/plugin/DropDownButton.d.ts +0 -41
  304. package/dist/src/plugin/Each.d.ts +0 -35
  305. package/dist/src/plugin/ErrorRenderer.d.ts +0 -6
  306. package/dist/src/plugin/Flex.d.ts +0 -28
  307. package/dist/src/plugin/Form/Array.d.ts +0 -26
  308. package/dist/src/plugin/Form/Button.d.ts +0 -11
  309. package/dist/src/plugin/Form/ButtonGroup.d.ts +0 -21
  310. package/dist/src/plugin/Form/ButtonGroupSelect.d.ts +0 -22
  311. package/dist/src/plugin/Form/ButtonToolbar.d.ts +0 -27
  312. package/dist/src/plugin/Form/ChainedSelect.d.ts +0 -19
  313. package/dist/src/plugin/Form/Checkbox.d.ts +0 -19
  314. package/dist/src/plugin/Form/Checkboxes.d.ts +0 -24
  315. package/dist/src/plugin/Form/City.d.ts +0 -18
  316. package/dist/src/plugin/Form/Color.d.ts +0 -39
  317. package/dist/src/plugin/Form/Combo.d.ts +0 -38
  318. package/dist/src/plugin/Form/ConditionBuilder.d.ts +0 -43
  319. package/dist/src/plugin/Form/Container.d.ts +0 -36
  320. package/dist/src/plugin/Form/Control.d.ts +0 -21
  321. package/dist/src/plugin/Form/Date.d.ts +0 -20
  322. package/dist/src/plugin/Form/DateRange.d.ts +0 -20
  323. package/dist/src/plugin/Form/DateTime.d.ts +0 -19
  324. package/dist/src/plugin/Form/DiffEditor.d.ts +0 -19
  325. package/dist/src/plugin/Form/Editor.d.ts +0 -40
  326. package/dist/src/plugin/Form/Email.d.ts +0 -24
  327. package/dist/src/plugin/Form/FieldSet.d.ts +0 -26
  328. package/dist/src/plugin/Form/File.d.ts +0 -18
  329. package/dist/src/plugin/Form/Form.d.ts +0 -18
  330. package/dist/src/plugin/Form/Formula.d.ts +0 -51
  331. package/dist/src/plugin/Form/Grid.d.ts +0 -32
  332. package/dist/src/plugin/Form/Group.d.ts +0 -25
  333. package/dist/src/plugin/Form/HBox.d.ts +0 -72
  334. package/dist/src/plugin/Form/Hidden.d.ts +0 -24
  335. package/dist/src/plugin/Form/Image.d.ts +0 -19
  336. package/dist/src/plugin/Form/InputArray.d.ts +0 -27
  337. package/dist/src/plugin/Form/InputCity.d.ts +0 -19
  338. package/dist/src/plugin/Form/InputDate.d.ts +0 -20
  339. package/dist/src/plugin/Form/InputDateRange.d.ts +0 -20
  340. package/dist/src/plugin/Form/InputDateTime.d.ts +0 -19
  341. package/dist/src/plugin/Form/InputDateTimeRange.d.ts +0 -20
  342. package/dist/src/plugin/Form/InputEmail.d.ts +0 -25
  343. package/dist/src/plugin/Form/InputFile.d.ts +0 -19
  344. package/dist/src/plugin/Form/InputGroup.d.ts +0 -34
  345. package/dist/src/plugin/Form/InputImage.d.ts +0 -20
  346. package/dist/src/plugin/Form/InputMonth.d.ts +0 -16
  347. package/dist/src/plugin/Form/InputMonthRange.d.ts +0 -20
  348. package/dist/src/plugin/Form/InputNumber.d.ts +0 -20
  349. package/dist/src/plugin/Form/InputPassword.d.ts +0 -25
  350. package/dist/src/plugin/Form/InputQuarter.d.ts +0 -16
  351. package/dist/src/plugin/Form/InputQuarterRange.d.ts +0 -20
  352. package/dist/src/plugin/Form/InputRange.d.ts +0 -19
  353. package/dist/src/plugin/Form/InputRating.d.ts +0 -19
  354. package/dist/src/plugin/Form/InputRepeat.d.ts +0 -19
  355. package/dist/src/plugin/Form/InputRichText.d.ts +0 -19
  356. package/dist/src/plugin/Form/InputSubForm.d.ts +0 -64
  357. package/dist/src/plugin/Form/InputTable.d.ts +0 -40
  358. package/dist/src/plugin/Form/InputTag.d.ts +0 -21
  359. package/dist/src/plugin/Form/InputText.d.ts +0 -20
  360. package/dist/src/plugin/Form/InputTime.d.ts +0 -19
  361. package/dist/src/plugin/Form/InputTree.d.ts +0 -73
  362. package/dist/src/plugin/Form/InputURL.d.ts +0 -25
  363. package/dist/src/plugin/Form/InputYear.d.ts +0 -16
  364. package/dist/src/plugin/Form/Item.d.ts +0 -10
  365. package/dist/src/plugin/Form/List.d.ts +0 -23
  366. package/dist/src/plugin/Form/ListSelect.d.ts +0 -24
  367. package/dist/src/plugin/Form/LocationPicker.d.ts +0 -48
  368. package/dist/src/plugin/Form/Matrix.d.ts +0 -25
  369. package/dist/src/plugin/Form/MatrixCheckboxes.d.ts +0 -26
  370. package/dist/src/plugin/Form/NestedSelect.d.ts +0 -73
  371. package/dist/src/plugin/Form/Number.d.ts +0 -19
  372. package/dist/src/plugin/Form/Panel.d.ts +0 -23
  373. package/dist/src/plugin/Form/Password.d.ts +0 -24
  374. package/dist/src/plugin/Form/Picker.d.ts +0 -26
  375. package/dist/src/plugin/Form/QRCode.d.ts +0 -19
  376. package/dist/src/plugin/Form/Radios.d.ts +0 -24
  377. package/dist/src/plugin/Form/Range.d.ts +0 -18
  378. package/dist/src/plugin/Form/Rating.d.ts +0 -18
  379. package/dist/src/plugin/Form/Repeat.d.ts +0 -18
  380. package/dist/src/plugin/Form/Reset.d.ts +0 -7
  381. package/dist/src/plugin/Form/RichText.d.ts +0 -18
  382. package/dist/src/plugin/Form/Select.d.ts +0 -24
  383. package/dist/src/plugin/Form/Service.d.ts +0 -23
  384. package/dist/src/plugin/Form/Static.d.ts +0 -23
  385. package/dist/src/plugin/Form/SubForm.d.ts +0 -62
  386. package/dist/src/plugin/Form/Submit.d.ts +0 -6
  387. package/dist/src/plugin/Form/Switch.d.ts +0 -20
  388. package/dist/src/plugin/Form/Table.d.ts +0 -33
  389. package/dist/src/plugin/Form/Tabs.d.ts +0 -16
  390. package/dist/src/plugin/Form/TabsTransfer.d.ts +0 -74
  391. package/dist/src/plugin/Form/Tag.d.ts +0 -20
  392. package/dist/src/plugin/Form/Text.d.ts +0 -19
  393. package/dist/src/plugin/Form/Textarea.d.ts +0 -20
  394. package/dist/src/plugin/Form/Time.d.ts +0 -18
  395. package/dist/src/plugin/Form/Transfer.d.ts +0 -68
  396. package/dist/src/plugin/Form/Tree.d.ts +0 -72
  397. package/dist/src/plugin/Form/TreeSelect.d.ts +0 -73
  398. package/dist/src/plugin/Form/UUID.d.ts +0 -23
  399. package/dist/src/plugin/Form/Url.d.ts +0 -24
  400. package/dist/src/plugin/Grid.d.ts +0 -49
  401. package/dist/src/plugin/HBox.d.ts +0 -44
  402. package/dist/src/plugin/IFrame.d.ts +0 -28
  403. package/dist/src/plugin/Image.d.ts +0 -19
  404. package/dist/src/plugin/Images.d.ts +0 -24
  405. package/dist/src/plugin/Json.d.ts +0 -24
  406. package/dist/src/plugin/Link.d.ts +0 -20
  407. package/dist/src/plugin/List.d.ts +0 -53
  408. package/dist/src/plugin/ListItem.d.ts +0 -16
  409. package/dist/src/plugin/Log.d.ts +0 -16
  410. package/dist/src/plugin/Mapping.d.ts +0 -35
  411. package/dist/src/plugin/Markdown.d.ts +0 -19
  412. package/dist/src/plugin/Name.d.ts +0 -8
  413. package/dist/src/plugin/Nav.d.ts +0 -161
  414. package/dist/src/plugin/Operation.d.ts +0 -25
  415. package/dist/src/plugin/Page.d.ts +0 -27
  416. package/dist/src/plugin/Panel.d.ts +0 -17
  417. package/dist/src/plugin/Plain.d.ts +0 -19
  418. package/dist/src/plugin/Progress.d.ts +0 -19
  419. package/dist/src/plugin/Property.d.ts +0 -26
  420. package/dist/src/plugin/QRCode.d.ts +0 -19
  421. package/dist/src/plugin/Reset.d.ts +0 -11
  422. package/dist/src/plugin/Service.d.ts +0 -24
  423. package/dist/src/plugin/Sparkline.d.ts +0 -28
  424. package/dist/src/plugin/Status.d.ts +0 -19
  425. package/dist/src/plugin/Steps.d.ts +0 -43
  426. package/dist/src/plugin/Submit.d.ts +0 -10
  427. package/dist/src/plugin/Switch.d.ts +0 -21
  428. package/dist/src/plugin/Table.d.ts +0 -19
  429. package/dist/src/plugin/TableCell.d.ts +0 -9
  430. package/dist/src/plugin/TableView.d.ts +0 -132
  431. package/dist/src/plugin/Tabs.d.ts +0 -43
  432. package/dist/src/plugin/Tasks.d.ts +0 -41
  433. package/dist/src/plugin/Time.d.ts +0 -13
  434. package/dist/src/plugin/Tpl.d.ts +0 -18
  435. package/dist/src/plugin/Unknown.d.ts +0 -5
  436. package/dist/src/plugin/Video.d.ts +0 -24
  437. package/dist/src/plugin/WebComponent.d.ts +0 -47
  438. package/dist/src/plugin/Wizard.d.ts +0 -40
  439. package/dist/src/plugin/Wrapper.d.ts +0 -20
  440. package/dist/src/plugin.d.ts +0 -560
  441. package/dist/src/store/editor.d.ts +0 -891
  442. package/dist/src/store/node.d.ts +0 -247
  443. package/dist/src/util.d.ts +0 -62
@@ -0,0 +1,442 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="lodash" />
3
+ /**
4
+ * @file 把一些功能性的东西放在了这个里面,辅助 compoennt/Editor.tsx 组件的。
5
+ * 编辑器非 UI 相关的东西应该放在这。
6
+ */
7
+ import { RendererConfig, RenderOptions } from 'amis/lib/factory';
8
+ import { PluginInterface, BasicPanelItem, RendererInfo, SubRendererInfo, PluginEvent, RegionConfig, ContextMenuItem, ContextMenuEventContext, EventContext, PluginEventFn, ScaffoldForm } from './plugin';
9
+ import { EditorStoreType, SubEditorContext } from './store/editor';
10
+ import { SchemaObject } from 'amis';
11
+ import { EditorNodeType } from './store/node';
12
+ import { EditorProps } from './component/Editor';
13
+ import { EditorDNDManager } from './dnd';
14
+ export interface EditorManagerConfig extends Omit<EditorProps, 'value' | 'onChange'> {
15
+ }
16
+ export interface PluginClass {
17
+ new (manager: EditorManager): PluginInterface;
18
+ id?: string;
19
+ }
20
+ /**
21
+ * 注册默认的插件。
22
+ * @param editor
23
+ */
24
+ export declare function registerEditorPlugin(klass: PluginClass): void;
25
+ /**
26
+ * 获取当前已经注册的插件。
27
+ */
28
+ export declare function getEditorPlugins(): PluginClass[];
29
+ /**
30
+ * 注销插件
31
+ */
32
+ export declare function unRegisterEditorPlugin(id: string): void;
33
+ /**
34
+ * 在 component/Editor.tsx 里面实例化的。
35
+ *
36
+ * 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
37
+ */
38
+ export declare class EditorManager {
39
+ readonly config: EditorManagerConfig;
40
+ readonly store: EditorStoreType;
41
+ readonly parent?: EditorManager | undefined;
42
+ readonly plugins: Array<PluginInterface>;
43
+ readonly env: RenderOptions;
44
+ toDispose: Array<() => void>;
45
+ readonly dnd: EditorDNDManager;
46
+ readonly id: string;
47
+ disableHover: boolean;
48
+ private clipboardData;
49
+ readonly hackIn: any;
50
+ constructor(config: EditorManagerConfig, store: EditorStoreType, parent?: EditorManager | undefined);
51
+ buildEventContext(idOrNode: string | EditorNodeType): {
52
+ node: {
53
+ parentId: string;
54
+ parentRegion: string;
55
+ isCommonConfig: boolean;
56
+ id: string;
57
+ label: string;
58
+ regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
59
+ path: string;
60
+ schemaPath: string;
61
+ region: string;
62
+ preferTag: string;
63
+ state: any;
64
+ widthMutable: boolean;
65
+ heightMutable: boolean;
66
+ memberIndex: number;
67
+ folded: boolean;
68
+ patched: boolean;
69
+ x: number;
70
+ y: number;
71
+ w: number;
72
+ h: number;
73
+ children: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IAnyModelType> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>>;
74
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
75
+ getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
76
+ } & {
77
+ readonly info: RendererInfo;
78
+ setInfo(value: RendererInfo): void;
79
+ readonly isVitualRenderer: boolean;
80
+ readonly clickable: boolean;
81
+ readonly draggable: boolean;
82
+ readonly moveable: boolean;
83
+ readonly removable: boolean;
84
+ readonly duplicatable: boolean;
85
+ readonly replaceable: boolean;
86
+ memberImmutable(region: string): boolean;
87
+ readonly isRegion: boolean;
88
+ readonly childRegions: any[];
89
+ readonly uniqueChildren: any[];
90
+ readonly sameIdChild: any;
91
+ readonly singleRegion: boolean;
92
+ isExists(id: string): boolean;
93
+ getChildById(id: string): any;
94
+ readonly parent: any;
95
+ readonly host: any;
96
+ readonly firstChild: any;
97
+ readonly index: any;
98
+ readonly prevSibling: any;
99
+ readonly nextSibling: any;
100
+ readonly schema: any;
101
+ readonly schemaParent: any;
102
+ readonly isSecondFactor: boolean;
103
+ } & {
104
+ updateIsCommonConfig: (value: boolean) => void;
105
+ addChild(props: {
106
+ id: string;
107
+ label: string;
108
+ path: string;
109
+ isCommonConfig?: boolean | undefined;
110
+ info?: RendererInfo | undefined;
111
+ region?: string | undefined;
112
+ getData?: (() => any) | undefined;
113
+ preferTag?: string | undefined;
114
+ schemaPath?: string | undefined;
115
+ regionInfo?: RegionConfig | undefined;
116
+ widthMutable?: boolean | undefined;
117
+ memberIndex?: number | undefined;
118
+ }): any;
119
+ removeChild(child: any): void;
120
+ toggleFold(e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>): void;
121
+ patch(store: any, force?: boolean): void;
122
+ updateSchema(value: any): void;
123
+ setComponent(value: any): void;
124
+ getComponent(): any;
125
+ calculateHighlightBox(root?: any): void;
126
+ resetHighlightBox(root: any): void;
127
+ updateState(state: any, replace?: boolean): void;
128
+ setWidthMutable(value: any): void;
129
+ setHeightMutable(value: any): void;
130
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
131
+ parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
132
+ parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
133
+ isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
134
+ id: import("mobx-state-tree").IType<string | undefined, string, string>;
135
+ label: import("mobx-state-tree").IType<string | undefined, string, string>;
136
+ regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
137
+ path: import("mobx-state-tree").IType<string | undefined, string, string>;
138
+ schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
139
+ region: import("mobx-state-tree").IType<string | undefined, string, string>;
140
+ preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
141
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
142
+ widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
143
+ heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
144
+ memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
145
+ folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
146
+ patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
147
+ x: import("mobx-state-tree").IType<number | undefined, number, number>;
148
+ y: import("mobx-state-tree").IType<number | undefined, number, number>;
149
+ w: import("mobx-state-tree").IType<number | undefined, number, number>;
150
+ h: import("mobx-state-tree").IType<number | undefined, number, number>;
151
+ children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
152
+ }, {
153
+ getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
154
+ } & {
155
+ readonly info: RendererInfo;
156
+ setInfo(value: RendererInfo): void;
157
+ readonly isVitualRenderer: boolean;
158
+ readonly clickable: boolean;
159
+ readonly draggable: boolean;
160
+ readonly moveable: boolean;
161
+ readonly removable: boolean;
162
+ readonly duplicatable: boolean;
163
+ readonly replaceable: boolean;
164
+ memberImmutable(region: string): boolean;
165
+ readonly isRegion: boolean;
166
+ readonly childRegions: any[];
167
+ readonly uniqueChildren: any[];
168
+ readonly sameIdChild: any;
169
+ readonly singleRegion: boolean;
170
+ isExists(id: string): boolean;
171
+ getChildById(id: string): any;
172
+ readonly parent: any;
173
+ readonly host: any;
174
+ readonly firstChild: any;
175
+ readonly index: any;
176
+ readonly prevSibling: any;
177
+ readonly nextSibling: any;
178
+ readonly schema: any;
179
+ readonly schemaParent: any;
180
+ readonly isSecondFactor: boolean;
181
+ } & {
182
+ updateIsCommonConfig: (value: boolean) => void;
183
+ addChild(props: {
184
+ id: string;
185
+ label: string;
186
+ path: string;
187
+ isCommonConfig?: boolean | undefined;
188
+ info?: RendererInfo | undefined;
189
+ region?: string | undefined;
190
+ getData?: (() => any) | undefined;
191
+ preferTag?: string | undefined;
192
+ schemaPath?: string | undefined;
193
+ regionInfo?: RegionConfig | undefined;
194
+ widthMutable?: boolean | undefined;
195
+ memberIndex?: number | undefined;
196
+ }): any;
197
+ removeChild(child: any): void;
198
+ toggleFold(e: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>): void;
199
+ patch(store: any, force?: boolean): void;
200
+ updateSchema(value: any): void;
201
+ setComponent(value: any): void;
202
+ getComponent(): any;
203
+ calculateHighlightBox(root?: any): void;
204
+ resetHighlightBox(root: any): void;
205
+ updateState(state: any, replace?: boolean): void;
206
+ setWidthMutable(value: any): void;
207
+ setHeightMutable(value: any): void;
208
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
209
+ id: string;
210
+ info: RendererInfo;
211
+ path: string;
212
+ schemaPath: string;
213
+ schema: any;
214
+ data: string;
215
+ };
216
+ /**
217
+ * 构建 JSONSchema Uri,这样可以用代码模式编辑了。
218
+ */
219
+ buildJSONSchemaUri(): void;
220
+ buildToolbars(): void;
221
+ collectPanels(node: EditorNodeType, triggerEvent?: boolean, secondFactor?: boolean): BasicPanelItem[];
222
+ buildPanels(): void;
223
+ collectRenderers(region?: string, id?: string): SubRendererInfo[];
224
+ buildRenderers(region?: string): void;
225
+ rebuild(): void;
226
+ /**
227
+ * 可用组件面板里面会点进来,不同的区域可能可插入的组件不一样。
228
+ * @param region 区域的 key
229
+ */
230
+ switchToRegion(region: string): void;
231
+ /**
232
+ * 显示插入面板
233
+ * @param region
234
+ * @param preferTag
235
+ */
236
+ showInsertPanel(region: string, id?: string, preferTag?: string, mode?: 'insert' | 'replace', originId?: string, beforeId?: string): void;
237
+ /**
238
+ * 显示组件更换面板
239
+ * @param region
240
+ * @param preferTag
241
+ */
242
+ showReplacePanel(id: string, preferTag?: string): void;
243
+ readonly listeners: Array<{
244
+ type: string;
245
+ fn: PluginEventFn;
246
+ }>;
247
+ on(event: string, fn: PluginEventFn): void;
248
+ off(event: string, fn: PluginEventFn): void;
249
+ /**
250
+ * 派发事件。
251
+ * @param type
252
+ * @param context
253
+ */
254
+ trigger<T extends EventContext>(type: string, context: T): PluginEvent<T>;
255
+ /**
256
+ * 组件面板中的组件点选添加
257
+ * @param rendererId
258
+ */
259
+ addElem(rendererId: string): Promise<void>;
260
+ /**
261
+ * 给插入面板使用的,将当前选中的节点插入到当前选中的节点容器内。
262
+ * @param position
263
+ */
264
+ insert(): Promise<void>;
265
+ /**
266
+ * 给插入面板使用的,替换组件类型。
267
+ * @param position
268
+ */
269
+ replace(): Promise<void>;
270
+ /**
271
+ * 入口在 Preview 里面,用来获取渲染器对应的编辑器信息。
272
+ * 拿到这些信息后会在渲染原本渲染器的地方包一层,并创建高亮框在点选或者 hover 的时候显示。
273
+ * @param renderer amis元素渲染器,比如 { type: 'audio', component: 'xxx渲染器'}
274
+ * @param path 节点路径
275
+ * @param schema 节点 schema 数据
276
+ */
277
+ getEditorInfo(renderer: RendererConfig, path: string, schema: any): RendererInfo | null | undefined;
278
+ /**
279
+ * 面板的配置修改方法,不直接调用 store.changeValue 的原因是,
280
+ * 这里面还有事件逻辑,插件里面可以写些逻辑。
281
+ * @param value
282
+ * @param diff
283
+ */
284
+ panelChangeValue(value: any, diff?: any): void;
285
+ /**
286
+ * 打开子编辑器,比如弹框什么的,没办法直接编辑器,靠弹窗个新的编辑器来编辑。
287
+ * @param config
288
+ */
289
+ openSubEditor(config: SubEditorContext): void;
290
+ /**
291
+ * 打开对应节点的右键菜单。
292
+ * @param id
293
+ * @param region
294
+ * @param info
295
+ */
296
+ openContextMenu(id: string, region: string, info: {
297
+ x: number;
298
+ y: number;
299
+ }): void;
300
+ buildContextMenus(context: ContextMenuEventContext): ContextMenuItem[];
301
+ closeContextMenu(): void;
302
+ /**
303
+ * 将当前选中的节点上移
304
+ */
305
+ moveUp(): void;
306
+ /**
307
+ * 将当前选中的节点下移
308
+ */
309
+ moveDown(): void;
310
+ /**
311
+ * 删除节点
312
+ */
313
+ del(ids: string | Array<string>): void;
314
+ /**
315
+ * 重复节点
316
+ * @param id
317
+ */
318
+ duplicate(id: string | Array<string>): void;
319
+ /**
320
+ * 复制节点配置
321
+ * @param id
322
+ */
323
+ copy(id: string): void;
324
+ /**
325
+ * 剪切当前节点,并复制配置到剪切板。
326
+ * @param id
327
+ */
328
+ cut(id: string): void;
329
+ /**
330
+ * 在节点上应用粘贴。
331
+ * @param id
332
+ * @param region
333
+ */
334
+ paste(id: string, region?: string): Promise<void>;
335
+ /**
336
+ * 清空区域
337
+ * @param id
338
+ * @param region
339
+ */
340
+ emptyRegion(id: string, region: string): void;
341
+ /**
342
+ * 添加孩子,成功后返回节点,失败后返回 null。
343
+ * @param id 目标组件 id
344
+ * @param region 目标组件区域
345
+ * @param json
346
+ * @param position
347
+ */
348
+ addChild(id: string, region: string, json: any, beforeId?: string, subRenderer?: SubRendererInfo, dragInfo?: {
349
+ id: string;
350
+ type: string;
351
+ data: any;
352
+ }): any | null;
353
+ /**
354
+ * 移动节点
355
+ * @param id 目标组件 id
356
+ * @param region 目标组件区域
357
+ * @param sourceId 移动的节点 id
358
+ * @param beforeId 移动到哪个节点前面
359
+ */
360
+ move(id: string, region: string, sourceId: string, beforeId?: string): boolean;
361
+ /**
362
+ * 替换节点。
363
+ * @param id
364
+ * @param json
365
+ */
366
+ replaceChild(id: string, json: any, subRenderer?: SubRendererInfo, region?: string): boolean;
367
+ setActiveId(id: string): void;
368
+ /**
369
+ * 打开某节点的编辑面板
370
+ * @param id
371
+ */
372
+ openConfigPanel(id: string): void;
373
+ /**
374
+ * 打开某节点的代码面板
375
+ * @param id
376
+ */
377
+ openCodePanel(id: string): void;
378
+ toggleSelection(id: string): void;
379
+ setSelection(selections: Array<string>, id?: string): void;
380
+ startDrag(id: string, e: React.DragEvent): void;
381
+ scaffold(form: ScaffoldForm, value: any): Promise<SchemaObject>;
382
+ reScaffold(id: string, form: ScaffoldForm, value: any): Promise<void>;
383
+ lazyPatchSchema: import("lodash").DebouncedFunc<any>;
384
+ patching: boolean;
385
+ patchSchema(force?: boolean): void;
386
+ /**
387
+ * 把设置了特殊 region 的,hack 一下。
388
+ */
389
+ hackRenderers(renderers?: RendererConfig[]): void;
390
+ /**
391
+ * 入口在 Preview,用来生成包括元素头部快捷工具栏。
392
+ * @param info
393
+ * @param render
394
+ */
395
+ makeWrapper(info: RendererInfo, render: RendererConfig): any;
396
+ /**
397
+ * 用来生成属性配置面板。
398
+ * @param schema
399
+ */
400
+ makeSchemaFormRender(schema: {
401
+ body?: Array<any>;
402
+ controls?: Array<any>;
403
+ definitions?: any;
404
+ api?: any;
405
+ submitOnChange?: boolean;
406
+ }): ({ value, onChange, popOverContainer, id, store, node }: import("./plugin").PanelProps) => JSX.Element;
407
+ onWidthChangeStart(e: MouseEvent, ctx: {
408
+ dom: HTMLElement;
409
+ node: EditorNodeType;
410
+ resizer: HTMLElement;
411
+ }): PluginEvent<{
412
+ nativeEvent: MouseEvent;
413
+ dom: HTMLElement;
414
+ node: EditorNodeType;
415
+ resizer: HTMLElement;
416
+ }, any>;
417
+ onHeightChangeStart(e: MouseEvent, ctx: {
418
+ dom: HTMLElement;
419
+ node: EditorNodeType;
420
+ resizer: HTMLElement;
421
+ }): PluginEvent<{
422
+ nativeEvent: MouseEvent;
423
+ dom: HTMLElement;
424
+ node: EditorNodeType;
425
+ resizer: HTMLElement;
426
+ }, any>;
427
+ onSizeChangeStart(e: MouseEvent, ctx: {
428
+ dom: HTMLElement;
429
+ node: EditorNodeType;
430
+ resizer: HTMLElement;
431
+ }): PluginEvent<{
432
+ nativeEvent: MouseEvent;
433
+ dom: HTMLElement;
434
+ node: EditorNodeType;
435
+ resizer: HTMLElement;
436
+ }, any>;
437
+ openNodePopOverForm(id: string | EditorNodeType): void;
438
+ /**
439
+ * 销毁函数
440
+ */
441
+ dispose(): void;
442
+ }
@@ -1,6 +1,6 @@
1
1
  import { BasePlugin, BaseEventContext, BasicToolbarItem, ContextMenuItem, ContextMenuEventContext, BasicPanelItem, BuildPanelEventContext, PluginEvent, InsertEventContext } from '../plugin';
2
2
  /**
3
- * 用来添加一些基本的工具栏按钮。
3
+ * 用来给当前选中的元素添加一些基本的工具栏按钮。
4
4
  */
5
5
  export declare class BasicToolbarPlugin extends BasePlugin {
6
6
  order: number;
@@ -8,6 +8,7 @@ export declare class DatePlugin extends BasePlugin {
8
8
  icon: string;
9
9
  scaffold: {
10
10
  type: string;
11
+ value: number;
11
12
  };
12
13
  previewSchema: {
13
14
  format: string;
@@ -1,8 +1,10 @@
1
+ import { BaseEventContext } from '../plugin';
1
2
  import { DatePlugin } from './Date';
2
3
  export declare class DatetimePlugin extends DatePlugin {
3
4
  rendererName: string;
4
5
  scaffold: {
5
6
  type: string;
7
+ value: number;
6
8
  };
7
9
  name: string;
8
10
  previewSchema: {
@@ -10,4 +12,5 @@ export declare class DatetimePlugin extends DatePlugin {
10
12
  value: number;
11
13
  type: string;
12
14
  };
15
+ panelBodyCreator: (context: BaseEventContext) => any[];
13
16
  }
@@ -2,6 +2,7 @@ import { BaseEventContext, BasePlugin, RegionConfig } from '../../plugin';
2
2
  export declare class FieldSetControlPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
+ disabledRendererPlugin: boolean;
5
6
  name: string;
6
7
  icon: string;
7
8
  description: string;
@@ -2,6 +2,7 @@ import { BasePlugin, ContextMenuEventContext, ContextMenuItem, RegionConfig } fr
2
2
  export declare class GroupControlPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
+ disabledRendererPlugin: boolean;
5
6
  name: string;
6
7
  icon: string;
7
8
  description: string;
@@ -1,5 +1,5 @@
1
1
  import { BasePlugin } from '../../plugin';
2
- export declare class ColorControlPlugin extends BasePlugin {
2
+ export declare class ExcelControlPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
5
  name: string;
@@ -24,6 +24,7 @@ export declare class ColorControlPlugin extends BasePlugin {
24
24
  }[];
25
25
  mode?: undefined;
26
26
  className?: undefined;
27
+ pipeIn?: undefined;
27
28
  visibleOn?: undefined;
28
29
  } | {
29
30
  type: string;
@@ -32,6 +33,16 @@ export declare class ColorControlPlugin extends BasePlugin {
32
33
  mode: string;
33
34
  className: string;
34
35
  options?: undefined;
36
+ pipeIn?: undefined;
37
+ visibleOn?: undefined;
38
+ } | {
39
+ type: string;
40
+ name: string;
41
+ label: string;
42
+ pipeIn: (value: any) => any;
43
+ mode: string;
44
+ className: string;
45
+ options?: undefined;
35
46
  visibleOn?: undefined;
36
47
  } | {
37
48
  type: string;
@@ -41,5 +52,6 @@ export declare class ColorControlPlugin extends BasePlugin {
41
52
  visibleOn: string;
42
53
  className: string;
43
54
  options?: undefined;
55
+ pipeIn?: undefined;
44
56
  })[];
45
57
  }
@@ -0,0 +1,28 @@
1
+ import { BasePlugin } from '../../plugin';
2
+ export declare class KVControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ };
15
+ previewSchema: any;
16
+ panelTitle: string;
17
+ panelBody: ({
18
+ type: string;
19
+ name: string;
20
+ label: string;
21
+ pipeIn: (value: any) => any;
22
+ } | {
23
+ type: string;
24
+ name: string;
25
+ label: string;
26
+ pipeIn?: undefined;
27
+ })[];
28
+ }
@@ -1,7 +1,7 @@
1
1
  import { BasePlugin, BaseEventContext, BasicPanelItem, PluginEvent, DragEventContext, ChangeEventContext, ReplaceEventContext, BuildPanelEventContext, ContextMenuEventContext, ContextMenuItem } from '../../plugin';
2
2
  export declare class ItemPlugin extends BasePlugin {
3
- buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
4
3
  panelTitle: string;
4
+ buildEditorPanel(context: BuildPanelEventContext, panels: Array<BasicPanelItem>): void;
5
5
  panelBodyCreator: (context: BaseEventContext) => any[];
6
6
  onDndAccept(event: PluginEvent<DragEventContext>): false | void;
7
7
  afterUpdate(event: PluginEvent<ChangeEventContext>): void;
@@ -5,29 +5,26 @@ export declare class GridPlugin extends BasePlugin {
5
5
  rendererName: string;
6
6
  $schema: string;
7
7
  name: string;
8
+ description: string;
8
9
  tags: string[];
9
10
  icon: string;
10
- scaffolds: {
11
- name: string;
12
- description: string;
13
- scaffold: {
14
- type: string;
15
- columns: {
16
- body: never[];
17
- }[];
18
- };
19
- previewSchema: {
20
- type: string;
21
- columns: {
22
- body: {
23
- type: string;
24
- tpl: string;
25
- inline: boolean;
26
- className: string;
27
- }[];
11
+ scaffold: {
12
+ type: string;
13
+ columns: {
14
+ body: never[];
15
+ }[];
16
+ };
17
+ previewSchema: {
18
+ type: string;
19
+ columns: {
20
+ body: {
21
+ type: string;
22
+ tpl: string;
23
+ inline: boolean;
24
+ className: string;
28
25
  }[];
29
- };
30
- }[];
26
+ }[];
27
+ };
31
28
  panelTitle: string;
32
29
  panelWithOutOthers: boolean;
33
30
  panelBodyCreator(context: BaseEventContext): any[];
@@ -4,6 +4,7 @@ import { Schema } from 'amis/lib/types';
4
4
  export declare class HBoxPlugin extends BasePlugin {
5
5
  rendererName: string;
6
6
  $schema: string;
7
+ disabledRendererPlugin: boolean;
7
8
  name: string;
8
9
  icon: string;
9
10
  description: string;
@@ -9,6 +9,7 @@ export declare class LogPlugin extends BasePlugin {
9
9
  tags: string[];
10
10
  previewSchema: {
11
11
  type: string;
12
+ height: number;
12
13
  };
13
14
  scaffold: any;
14
15
  panelTitle: string;
@@ -2,6 +2,7 @@ import { BaseEventContext, BasePlugin } from '../plugin';
2
2
  export declare class PlainPlugin extends BasePlugin {
3
3
  rendererName: string;
4
4
  $schema: string;
5
+ disabledRendererPlugin: boolean;
5
6
  name: string;
6
7
  icon: string;
7
8
  description: string;
@@ -1,6 +1,7 @@
1
1
  import { ButtonPlugin } from './Button';
2
2
  export declare class ResetPlugin extends ButtonPlugin {
3
3
  rendererName: string;
4
+ disabledRendererPlugin: boolean;
4
5
  name: string;
5
6
  icon: string;
6
7
  description: string;
@@ -33,11 +33,5 @@ export declare class StepsPlugin extends BasePlugin {
33
33
  })[];
34
34
  };
35
35
  panelTitle: string;
36
- panelBody: {
37
- type: string;
38
- tabs: {
39
- title: string;
40
- body: any[];
41
- }[];
42
- }[];
36
+ panelBody: any[];
43
37
  }
@@ -1,6 +1,7 @@
1
1
  import { ButtonPlugin } from './Button';
2
2
  export declare class SubmitPlugin extends ButtonPlugin {
3
3
  rendererName: string;
4
+ disabledRendererPlugin: boolean;
4
5
  name: string;
5
6
  description: string;
6
7
  docLink: string;