amis-editor 3.3.9 → 4.0.1-beta.10

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/ContextMenuPanel.d.ts +8 -0
  11. package/dist/component/InputComponentName.d.ts +8 -0
  12. package/dist/component/Outline.d.ts +6 -0
  13. package/dist/component/Preview.d.ts +2 -0
  14. package/dist/component/RegionHLBox.d.ts +1 -8
  15. package/dist/dnd/default.d.ts +1 -1
  16. package/dist/dnd/index.d.ts +1 -1
  17. package/dist/index.d.ts +3 -4
  18. package/dist/index.min.js +1 -1
  19. package/dist/manager.d.ts +442 -0
  20. package/dist/plugin/BasicToolbar.d.ts +1 -1
  21. package/dist/plugin/Date.d.ts +1 -0
  22. package/dist/plugin/Datetime.d.ts +3 -0
  23. package/dist/plugin/Form/FieldSet.d.ts +1 -0
  24. package/dist/plugin/Form/Group.d.ts +1 -0
  25. package/dist/plugin/Form/InputExcel.d.ts +13 -1
  26. package/dist/plugin/Form/InputGroup.d.ts +0 -2
  27. package/dist/plugin/Form/InputKV.d.ts +28 -0
  28. package/dist/plugin/Form/Item.d.ts +1 -1
  29. package/dist/plugin/Grid.d.ts +17 -20
  30. package/dist/plugin/HBox.d.ts +1 -0
  31. package/dist/plugin/Log.d.ts +1 -0
  32. package/dist/plugin/Plain.d.ts +1 -0
  33. package/dist/plugin/Reset.d.ts +1 -0
  34. package/dist/plugin/Steps.d.ts +1 -7
  35. package/dist/plugin/Submit.d.ts +1 -0
  36. package/dist/plugin/Time.d.ts +3 -0
  37. package/dist/plugin/WebComponent.d.ts +1 -0
  38. package/dist/plugin/Wrapper.d.ts +1 -0
  39. package/dist/plugin.d.ts +19 -0
  40. package/dist/store/editor.d.ts +6 -1
  41. package/dist/style.css +1 -1
  42. package/dist/util.d.ts +1 -1
  43. package/package.json +15 -8
  44. package/.editorconfig +0 -12
  45. package/.fecsrc +0 -8
  46. package/.prettierrc +0 -20
  47. package/dist/npm/src/compat.d.ts +0 -30
  48. package/dist/npm/src/component/AvailableRenderersPanel.d.ts +0 -8
  49. package/dist/npm/src/component/Breadcrumb.d.ts +0 -12
  50. package/dist/npm/src/component/ClassNameControl.d.ts +0 -31
  51. package/dist/npm/src/component/CodeEditor.d.ts +0 -34
  52. package/dist/npm/src/component/CodeEditorPanel.d.ts +0 -12
  53. package/dist/npm/src/component/ContainerWrapper.d.ts +0 -12
  54. package/dist/npm/src/component/Editor.d.ts +0 -48
  55. package/dist/npm/src/component/ErrorRenderer.d.ts +0 -4
  56. package/dist/npm/src/component/HighlightBox.d.ts +0 -13
  57. package/dist/npm/src/component/InsertSubRendererPanel.d.ts +0 -11
  58. package/dist/npm/src/component/MiniEditor.d.ts +0 -8
  59. package/dist/npm/src/component/NodeWrapper.d.ts +0 -20
  60. package/dist/npm/src/component/Outline.d.ts +0 -12
  61. package/dist/npm/src/component/Panels.d.ts +0 -17
  62. package/dist/npm/src/component/Preview.d.ts +0 -43
  63. package/dist/npm/src/component/RegionHLBox.d.ts +0 -27
  64. package/dist/npm/src/component/RegionWrapper.d.ts +0 -150
  65. package/dist/npm/src/component/RendererThumb.d.ts +0 -23
  66. package/dist/npm/src/component/ScaffoldModal.d.ts +0 -53
  67. package/dist/npm/src/component/SubEditor.d.ts +0 -71
  68. package/dist/npm/src/component/VRenderer.d.ts +0 -142
  69. package/dist/npm/src/component/schemaTpl.d.ts +0 -4
  70. package/dist/npm/src/dnd/default.d.ts +0 -47
  71. package/dist/npm/src/dnd/index.d.ts +0 -119
  72. package/dist/npm/src/dnd/interface.d.ts +0 -14
  73. package/dist/npm/src/dnd/position-h.d.ts +0 -7
  74. package/dist/npm/src/env.d.ts +0 -5
  75. package/dist/npm/src/index.d.ts +0 -126
  76. package/dist/npm/src/mocker.d.ts +0 -1
  77. package/dist/npm/src/plugin/Action.d.ts +0 -6
  78. package/dist/npm/src/plugin/Alert.d.ts +0 -18
  79. package/dist/npm/src/plugin/Audio.d.ts +0 -21
  80. package/dist/npm/src/plugin/AvailableRenderers.d.ts +0 -8
  81. package/dist/npm/src/plugin/BasicToolbar.d.ts +0 -9
  82. package/dist/npm/src/plugin/Button.d.ts +0 -24
  83. package/dist/npm/src/plugin/ButtonGroup.d.ts +0 -59
  84. package/dist/npm/src/plugin/ButtonToolbar.d.ts +0 -35
  85. package/dist/npm/src/plugin/CRUD.d.ts +0 -28
  86. package/dist/npm/src/plugin/Card.d.ts +0 -55
  87. package/dist/npm/src/plugin/Cards.d.ts +0 -69
  88. package/dist/npm/src/plugin/Carousel.d.ts +0 -31
  89. package/dist/npm/src/plugin/Chart.d.ts +0 -44
  90. package/dist/npm/src/plugin/Code.d.ts +0 -9
  91. package/dist/npm/src/plugin/Collapse.d.ts +0 -21
  92. package/dist/npm/src/plugin/Container.d.ts +0 -20
  93. package/dist/npm/src/plugin/Date.d.ts +0 -19
  94. package/dist/npm/src/plugin/Datetime.d.ts +0 -10
  95. package/dist/npm/src/plugin/Dialog.d.ts +0 -18
  96. package/dist/npm/src/plugin/DiffEditor.d.ts +0 -19
  97. package/dist/npm/src/plugin/Divider.d.ts +0 -13
  98. package/dist/npm/src/plugin/Drawer.d.ts +0 -16
  99. package/dist/npm/src/plugin/DropDownButton.d.ts +0 -41
  100. package/dist/npm/src/plugin/Each.d.ts +0 -35
  101. package/dist/npm/src/plugin/ErrorRenderer.d.ts +0 -6
  102. package/dist/npm/src/plugin/Form/Array.d.ts +0 -26
  103. package/dist/npm/src/plugin/Form/Button.d.ts +0 -11
  104. package/dist/npm/src/plugin/Form/ButtonGroup.d.ts +0 -21
  105. package/dist/npm/src/plugin/Form/ButtonToolbar.d.ts +0 -26
  106. package/dist/npm/src/plugin/Form/ChainedSelect.d.ts +0 -18
  107. package/dist/npm/src/plugin/Form/Checkbox.d.ts +0 -18
  108. package/dist/npm/src/plugin/Form/Checkboxes.d.ts +0 -23
  109. package/dist/npm/src/plugin/Form/City.d.ts +0 -18
  110. package/dist/npm/src/plugin/Form/Color.d.ts +0 -18
  111. package/dist/npm/src/plugin/Form/Combo.d.ts +0 -37
  112. package/dist/npm/src/plugin/Form/Container.d.ts +0 -36
  113. package/dist/npm/src/plugin/Form/Date.d.ts +0 -20
  114. package/dist/npm/src/plugin/Form/DateRange.d.ts +0 -20
  115. package/dist/npm/src/plugin/Form/DateTime.d.ts +0 -19
  116. package/dist/npm/src/plugin/Form/DiffEditor.d.ts +0 -18
  117. package/dist/npm/src/plugin/Form/Editor.d.ts +0 -39
  118. package/dist/npm/src/plugin/Form/Email.d.ts +0 -24
  119. package/dist/npm/src/plugin/Form/FieldSet.d.ts +0 -25
  120. package/dist/npm/src/plugin/Form/File.d.ts +0 -18
  121. package/dist/npm/src/plugin/Form/Form.d.ts +0 -18
  122. package/dist/npm/src/plugin/Form/Formula.d.ts +0 -50
  123. package/dist/npm/src/plugin/Form/Grid.d.ts +0 -32
  124. package/dist/npm/src/plugin/Form/Group.d.ts +0 -23
  125. package/dist/npm/src/plugin/Form/HBox.d.ts +0 -72
  126. package/dist/npm/src/plugin/Form/Hidden.d.ts +0 -22
  127. package/dist/npm/src/plugin/Form/Image.d.ts +0 -19
  128. package/dist/npm/src/plugin/Form/InputGroup.d.ts +0 -33
  129. package/dist/npm/src/plugin/Form/Item.d.ts +0 -10
  130. package/dist/npm/src/plugin/Form/List.d.ts +0 -23
  131. package/dist/npm/src/plugin/Form/Matrix.d.ts +0 -25
  132. package/dist/npm/src/plugin/Form/NestedSelect.d.ts +0 -72
  133. package/dist/npm/src/plugin/Form/Number.d.ts +0 -19
  134. package/dist/npm/src/plugin/Form/Panel.d.ts +0 -23
  135. package/dist/npm/src/plugin/Form/Password.d.ts +0 -24
  136. package/dist/npm/src/plugin/Form/Picker.d.ts +0 -25
  137. package/dist/npm/src/plugin/Form/QRCode.d.ts +0 -19
  138. package/dist/npm/src/plugin/Form/Radios.d.ts +0 -23
  139. package/dist/npm/src/plugin/Form/Range.d.ts +0 -18
  140. package/dist/npm/src/plugin/Form/Rating.d.ts +0 -18
  141. package/dist/npm/src/plugin/Form/Repeat.d.ts +0 -18
  142. package/dist/npm/src/plugin/Form/Reset.d.ts +0 -6
  143. package/dist/npm/src/plugin/Form/RichText.d.ts +0 -18
  144. package/dist/npm/src/plugin/Form/Select.d.ts +0 -23
  145. package/dist/npm/src/plugin/Form/Service.d.ts +0 -23
  146. package/dist/npm/src/plugin/Form/Static.d.ts +0 -22
  147. package/dist/npm/src/plugin/Form/SubForm.d.ts +0 -62
  148. package/dist/npm/src/plugin/Form/Submit.d.ts +0 -6
  149. package/dist/npm/src/plugin/Form/Switch.d.ts +0 -19
  150. package/dist/npm/src/plugin/Form/Table.d.ts +0 -33
  151. package/dist/npm/src/plugin/Form/Tabs.d.ts +0 -16
  152. package/dist/npm/src/plugin/Form/Tag.d.ts +0 -20
  153. package/dist/npm/src/plugin/Form/Text.d.ts +0 -19
  154. package/dist/npm/src/plugin/Form/Textarea.d.ts +0 -19
  155. package/dist/npm/src/plugin/Form/Time.d.ts +0 -18
  156. package/dist/npm/src/plugin/Form/Tree.d.ts +0 -72
  157. package/dist/npm/src/plugin/Form/TreeSelect.d.ts +0 -72
  158. package/dist/npm/src/plugin/Form/Url.d.ts +0 -24
  159. package/dist/npm/src/plugin/Grid.d.ts +0 -30
  160. package/dist/npm/src/plugin/HBox.d.ts +0 -32
  161. package/dist/npm/src/plugin/IFrame.d.ts +0 -28
  162. package/dist/npm/src/plugin/Image.d.ts +0 -19
  163. package/dist/npm/src/plugin/Images.d.ts +0 -24
  164. package/dist/npm/src/plugin/Json.d.ts +0 -24
  165. package/dist/npm/src/plugin/Link.d.ts +0 -20
  166. package/dist/npm/src/plugin/List.d.ts +0 -53
  167. package/dist/npm/src/plugin/ListItem.d.ts +0 -16
  168. package/dist/npm/src/plugin/Mapping.d.ts +0 -35
  169. package/dist/npm/src/plugin/Nav.d.ts +0 -161
  170. package/dist/npm/src/plugin/Operation.d.ts +0 -25
  171. package/dist/npm/src/plugin/Page.d.ts +0 -26
  172. package/dist/npm/src/plugin/Panel.d.ts +0 -16
  173. package/dist/npm/src/plugin/Plain.d.ts +0 -18
  174. package/dist/npm/src/plugin/Progress.d.ts +0 -19
  175. package/dist/npm/src/plugin/QRCode.d.ts +0 -19
  176. package/dist/npm/src/plugin/Reset.d.ts +0 -10
  177. package/dist/npm/src/plugin/Service.d.ts +0 -24
  178. package/dist/npm/src/plugin/Status.d.ts +0 -19
  179. package/dist/npm/src/plugin/Submit.d.ts +0 -10
  180. package/dist/npm/src/plugin/Switch.d.ts +0 -21
  181. package/dist/npm/src/plugin/Table.d.ts +0 -18
  182. package/dist/npm/src/plugin/TableCell.d.ts +0 -8
  183. package/dist/npm/src/plugin/Tabs.d.ts +0 -43
  184. package/dist/npm/src/plugin/Tasks.d.ts +0 -41
  185. package/dist/npm/src/plugin/Time.d.ts +0 -10
  186. package/dist/npm/src/plugin/Tpl.d.ts +0 -16
  187. package/dist/npm/src/plugin/Unknown.d.ts +0 -5
  188. package/dist/npm/src/plugin/Video.d.ts +0 -24
  189. package/dist/npm/src/plugin/Wizard.d.ts +0 -40
  190. package/dist/npm/src/plugin/Wrapper.d.ts +0 -20
  191. package/dist/npm/src/plugin.d.ts +0 -486
  192. package/dist/npm/src/store/editor.d.ts +0 -731
  193. package/dist/npm/src/store/node.d.ts +0 -208
  194. package/dist/npm/src/util.d.ts +0 -45
  195. package/dist/plugin/DiffEditor.d.ts +0 -19
  196. package/dist/plugin/Form/AnchorNav.d.ts +0 -17
  197. package/dist/plugin/Form/Array.d.ts +0 -27
  198. package/dist/plugin/Form/Button.d.ts +0 -11
  199. package/dist/plugin/Form/ButtonGroup.d.ts +0 -22
  200. package/dist/plugin/Form/City.d.ts +0 -19
  201. package/dist/plugin/Form/Color.d.ts +0 -39
  202. package/dist/plugin/Form/Container.d.ts +0 -37
  203. package/dist/plugin/Form/Date.d.ts +0 -20
  204. package/dist/plugin/Form/DateRange.d.ts +0 -20
  205. package/dist/plugin/Form/DateTime.d.ts +0 -19
  206. package/dist/plugin/Form/Email.d.ts +0 -25
  207. package/dist/plugin/Form/File.d.ts +0 -19
  208. package/dist/plugin/Form/Grid.d.ts +0 -32
  209. package/dist/plugin/Form/HBox.d.ts +0 -73
  210. package/dist/plugin/Form/Image.d.ts +0 -20
  211. package/dist/plugin/Form/List.d.ts +0 -24
  212. package/dist/plugin/Form/Location.d.ts +0 -48
  213. package/dist/plugin/Form/Matrix.d.ts +0 -26
  214. package/dist/plugin/Form/Month.d.ts +0 -16
  215. package/dist/plugin/Form/MonthRange.d.ts +0 -20
  216. package/dist/plugin/Form/Number.d.ts +0 -20
  217. package/dist/plugin/Form/Panel.d.ts +0 -24
  218. package/dist/plugin/Form/Password.d.ts +0 -25
  219. package/dist/plugin/Form/QRCode.d.ts +0 -20
  220. package/dist/plugin/Form/Range.d.ts +0 -19
  221. package/dist/plugin/Form/Rating.d.ts +0 -19
  222. package/dist/plugin/Form/Repeat.d.ts +0 -19
  223. package/dist/plugin/Form/Reset.d.ts +0 -7
  224. package/dist/plugin/Form/RichText.d.ts +0 -19
  225. package/dist/plugin/Form/Service.d.ts +0 -24
  226. package/dist/plugin/Form/SubForm.d.ts +0 -64
  227. package/dist/plugin/Form/Submit.d.ts +0 -6
  228. package/dist/plugin/Form/Table.d.ts +0 -34
  229. package/dist/plugin/Form/Tabs.d.ts +0 -17
  230. package/dist/plugin/Form/Tag.d.ts +0 -21
  231. package/dist/plugin/Form/Text.d.ts +0 -20
  232. package/dist/plugin/Form/Time.d.ts +0 -19
  233. package/dist/plugin/Form/Tree.d.ts +0 -73
  234. package/dist/plugin/Form/Url.d.ts +0 -25
  235. package/dist/plugin/Form/Year.d.ts +0 -16
  236. package/dist/plugin/Switch.d.ts +0 -21
  237. package/dist/src/compat.d.ts +0 -30
  238. package/dist/src/component/AvailableRenderersPanel.d.ts +0 -8
  239. package/dist/src/component/Breadcrumb.d.ts +0 -12
  240. package/dist/src/component/ClassNameControl.d.ts +0 -31
  241. package/dist/src/component/CodeEditor.d.ts +0 -37
  242. package/dist/src/component/CodeEditorPanel.d.ts +0 -12
  243. package/dist/src/component/CommonConfigWrapper.d.ts +0 -6
  244. package/dist/src/component/ContainerWrapper.d.ts +0 -12
  245. package/dist/src/component/Editor.d.ts +0 -60
  246. package/dist/src/component/ErrorRenderer.d.ts +0 -4
  247. package/dist/src/component/HighlightBox.d.ts +0 -22
  248. package/dist/src/component/IFrameBridge.d.ts +0 -32
  249. package/dist/src/component/IFramePreview.d.ts +0 -37
  250. package/dist/src/component/InsertSubRendererPanel.d.ts +0 -11
  251. package/dist/src/component/MiniEditor.d.ts +0 -9
  252. package/dist/src/component/NodeWrapper.d.ts +0 -20
  253. package/dist/src/component/Outline.d.ts +0 -12
  254. package/dist/src/component/Panels.d.ts +0 -17
  255. package/dist/src/component/PopOverForm.d.ts +0 -22
  256. package/dist/src/component/Preview.d.ts +0 -62
  257. package/dist/src/component/RegionHLBox.d.ts +0 -27
  258. package/dist/src/component/RegionWrapper.d.ts +0 -181
  259. package/dist/src/component/RendererThumb.d.ts +0 -22
  260. package/dist/src/component/ScaffoldModal.d.ts +0 -24
  261. package/dist/src/component/SubEditor.d.ts +0 -67
  262. package/dist/src/component/TableViewEditor.d.ts +0 -79
  263. package/dist/src/component/TargetNamePanel.d.ts +0 -7
  264. package/dist/src/component/VRenderer.d.ts +0 -169
  265. package/dist/src/component/schemaTpl.d.ts +0 -4
  266. package/dist/src/dnd/default.d.ts +0 -47
  267. package/dist/src/dnd/index.d.ts +0 -119
  268. package/dist/src/dnd/interface.d.ts +0 -14
  269. package/dist/src/dnd/position-h.d.ts +0 -7
  270. package/dist/src/env.d.ts +0 -5
  271. package/dist/src/icons/index.d.ts +0 -2
  272. package/dist/src/index.d.ts +0 -151
  273. package/dist/src/mocker.d.ts +0 -1
  274. package/dist/src/plugin/Action.d.ts +0 -6
  275. package/dist/src/plugin/Alert.d.ts +0 -19
  276. package/dist/src/plugin/AnchorNav.d.ts +0 -66
  277. package/dist/src/plugin/Audio.d.ts +0 -21
  278. package/dist/src/plugin/AvailableRenderers.d.ts +0 -8
  279. package/dist/src/plugin/Avatar.d.ts +0 -17
  280. package/dist/src/plugin/BasicToolbar.d.ts +0 -11
  281. package/dist/src/plugin/Breadcrumb.d.ts +0 -25
  282. package/dist/src/plugin/Button.d.ts +0 -24
  283. package/dist/src/plugin/ButtonGroup.d.ts +0 -59
  284. package/dist/src/plugin/ButtonToolbar.d.ts +0 -35
  285. package/dist/src/plugin/CRUD.d.ts +0 -144
  286. package/dist/src/plugin/Card.d.ts +0 -55
  287. package/dist/src/plugin/Cards.d.ts +0 -69
  288. package/dist/src/plugin/Carousel.d.ts +0 -38
  289. package/dist/src/plugin/Chart.d.ts +0 -46
  290. package/dist/src/plugin/Code.d.ts +0 -9
  291. package/dist/src/plugin/CodeView.d.ts +0 -18
  292. package/dist/src/plugin/Collapse.d.ts +0 -21
  293. package/dist/src/plugin/Container.d.ts +0 -20
  294. package/dist/src/plugin/Custom.d.ts +0 -23
  295. package/dist/src/plugin/DataDebug.d.ts +0 -20
  296. package/dist/src/plugin/Date.d.ts +0 -19
  297. package/dist/src/plugin/Datetime.d.ts +0 -13
  298. package/dist/src/plugin/Dialog.d.ts +0 -20
  299. package/dist/src/plugin/DiffEditor.d.ts +0 -19
  300. package/dist/src/plugin/Divider.d.ts +0 -14
  301. package/dist/src/plugin/Drawer.d.ts +0 -17
  302. package/dist/src/plugin/DropDownButton.d.ts +0 -41
  303. package/dist/src/plugin/Each.d.ts +0 -35
  304. package/dist/src/plugin/ErrorRenderer.d.ts +0 -6
  305. package/dist/src/plugin/Flex.d.ts +0 -28
  306. package/dist/src/plugin/Form/Array.d.ts +0 -26
  307. package/dist/src/plugin/Form/Button.d.ts +0 -11
  308. package/dist/src/plugin/Form/ButtonGroup.d.ts +0 -21
  309. package/dist/src/plugin/Form/ButtonGroupSelect.d.ts +0 -22
  310. package/dist/src/plugin/Form/ButtonToolbar.d.ts +0 -27
  311. package/dist/src/plugin/Form/ChainedSelect.d.ts +0 -19
  312. package/dist/src/plugin/Form/Checkbox.d.ts +0 -19
  313. package/dist/src/plugin/Form/Checkboxes.d.ts +0 -24
  314. package/dist/src/plugin/Form/City.d.ts +0 -18
  315. package/dist/src/plugin/Form/Color.d.ts +0 -39
  316. package/dist/src/plugin/Form/Combo.d.ts +0 -38
  317. package/dist/src/plugin/Form/ConditionBuilder.d.ts +0 -43
  318. package/dist/src/plugin/Form/Container.d.ts +0 -36
  319. package/dist/src/plugin/Form/Control.d.ts +0 -21
  320. package/dist/src/plugin/Form/Date.d.ts +0 -20
  321. package/dist/src/plugin/Form/DateRange.d.ts +0 -20
  322. package/dist/src/plugin/Form/DateTime.d.ts +0 -19
  323. package/dist/src/plugin/Form/DiffEditor.d.ts +0 -19
  324. package/dist/src/plugin/Form/Editor.d.ts +0 -40
  325. package/dist/src/plugin/Form/Email.d.ts +0 -24
  326. package/dist/src/plugin/Form/FieldSet.d.ts +0 -26
  327. package/dist/src/plugin/Form/File.d.ts +0 -18
  328. package/dist/src/plugin/Form/Form.d.ts +0 -18
  329. package/dist/src/plugin/Form/Formula.d.ts +0 -51
  330. package/dist/src/plugin/Form/Grid.d.ts +0 -32
  331. package/dist/src/plugin/Form/Group.d.ts +0 -25
  332. package/dist/src/plugin/Form/HBox.d.ts +0 -72
  333. package/dist/src/plugin/Form/Hidden.d.ts +0 -24
  334. package/dist/src/plugin/Form/Image.d.ts +0 -19
  335. package/dist/src/plugin/Form/InputArray.d.ts +0 -27
  336. package/dist/src/plugin/Form/InputCity.d.ts +0 -19
  337. package/dist/src/plugin/Form/InputDate.d.ts +0 -20
  338. package/dist/src/plugin/Form/InputDateRange.d.ts +0 -20
  339. package/dist/src/plugin/Form/InputDateTime.d.ts +0 -19
  340. package/dist/src/plugin/Form/InputDateTimeRange.d.ts +0 -20
  341. package/dist/src/plugin/Form/InputEmail.d.ts +0 -25
  342. package/dist/src/plugin/Form/InputFile.d.ts +0 -19
  343. package/dist/src/plugin/Form/InputGroup.d.ts +0 -34
  344. package/dist/src/plugin/Form/InputImage.d.ts +0 -20
  345. package/dist/src/plugin/Form/InputMonth.d.ts +0 -16
  346. package/dist/src/plugin/Form/InputMonthRange.d.ts +0 -20
  347. package/dist/src/plugin/Form/InputNumber.d.ts +0 -20
  348. package/dist/src/plugin/Form/InputPassword.d.ts +0 -25
  349. package/dist/src/plugin/Form/InputQuarter.d.ts +0 -16
  350. package/dist/src/plugin/Form/InputQuarterRange.d.ts +0 -20
  351. package/dist/src/plugin/Form/InputRange.d.ts +0 -19
  352. package/dist/src/plugin/Form/InputRating.d.ts +0 -19
  353. package/dist/src/plugin/Form/InputRepeat.d.ts +0 -19
  354. package/dist/src/plugin/Form/InputRichText.d.ts +0 -19
  355. package/dist/src/plugin/Form/InputSubForm.d.ts +0 -64
  356. package/dist/src/plugin/Form/InputTable.d.ts +0 -40
  357. package/dist/src/plugin/Form/InputTag.d.ts +0 -21
  358. package/dist/src/plugin/Form/InputText.d.ts +0 -20
  359. package/dist/src/plugin/Form/InputTime.d.ts +0 -19
  360. package/dist/src/plugin/Form/InputTree.d.ts +0 -73
  361. package/dist/src/plugin/Form/InputURL.d.ts +0 -25
  362. package/dist/src/plugin/Form/InputYear.d.ts +0 -16
  363. package/dist/src/plugin/Form/Item.d.ts +0 -10
  364. package/dist/src/plugin/Form/List.d.ts +0 -23
  365. package/dist/src/plugin/Form/ListSelect.d.ts +0 -24
  366. package/dist/src/plugin/Form/LocationPicker.d.ts +0 -48
  367. package/dist/src/plugin/Form/Matrix.d.ts +0 -25
  368. package/dist/src/plugin/Form/MatrixCheckboxes.d.ts +0 -26
  369. package/dist/src/plugin/Form/NestedSelect.d.ts +0 -73
  370. package/dist/src/plugin/Form/Number.d.ts +0 -19
  371. package/dist/src/plugin/Form/Panel.d.ts +0 -23
  372. package/dist/src/plugin/Form/Password.d.ts +0 -24
  373. package/dist/src/plugin/Form/Picker.d.ts +0 -26
  374. package/dist/src/plugin/Form/QRCode.d.ts +0 -19
  375. package/dist/src/plugin/Form/Radios.d.ts +0 -24
  376. package/dist/src/plugin/Form/Range.d.ts +0 -18
  377. package/dist/src/plugin/Form/Rating.d.ts +0 -18
  378. package/dist/src/plugin/Form/Repeat.d.ts +0 -18
  379. package/dist/src/plugin/Form/Reset.d.ts +0 -7
  380. package/dist/src/plugin/Form/RichText.d.ts +0 -18
  381. package/dist/src/plugin/Form/Select.d.ts +0 -24
  382. package/dist/src/plugin/Form/Service.d.ts +0 -23
  383. package/dist/src/plugin/Form/Static.d.ts +0 -23
  384. package/dist/src/plugin/Form/SubForm.d.ts +0 -62
  385. package/dist/src/plugin/Form/Submit.d.ts +0 -6
  386. package/dist/src/plugin/Form/Switch.d.ts +0 -20
  387. package/dist/src/plugin/Form/Table.d.ts +0 -33
  388. package/dist/src/plugin/Form/Tabs.d.ts +0 -16
  389. package/dist/src/plugin/Form/TabsTransfer.d.ts +0 -74
  390. package/dist/src/plugin/Form/Tag.d.ts +0 -20
  391. package/dist/src/plugin/Form/Text.d.ts +0 -19
  392. package/dist/src/plugin/Form/Textarea.d.ts +0 -20
  393. package/dist/src/plugin/Form/Time.d.ts +0 -18
  394. package/dist/src/plugin/Form/Transfer.d.ts +0 -68
  395. package/dist/src/plugin/Form/Tree.d.ts +0 -72
  396. package/dist/src/plugin/Form/TreeSelect.d.ts +0 -73
  397. package/dist/src/plugin/Form/UUID.d.ts +0 -23
  398. package/dist/src/plugin/Form/Url.d.ts +0 -24
  399. package/dist/src/plugin/Grid.d.ts +0 -49
  400. package/dist/src/plugin/HBox.d.ts +0 -44
  401. package/dist/src/plugin/IFrame.d.ts +0 -28
  402. package/dist/src/plugin/Image.d.ts +0 -19
  403. package/dist/src/plugin/Images.d.ts +0 -24
  404. package/dist/src/plugin/Json.d.ts +0 -24
  405. package/dist/src/plugin/Link.d.ts +0 -20
  406. package/dist/src/plugin/List.d.ts +0 -53
  407. package/dist/src/plugin/ListItem.d.ts +0 -16
  408. package/dist/src/plugin/Log.d.ts +0 -16
  409. package/dist/src/plugin/Mapping.d.ts +0 -35
  410. package/dist/src/plugin/Markdown.d.ts +0 -19
  411. package/dist/src/plugin/Name.d.ts +0 -8
  412. package/dist/src/plugin/Nav.d.ts +0 -161
  413. package/dist/src/plugin/Operation.d.ts +0 -25
  414. package/dist/src/plugin/Page.d.ts +0 -27
  415. package/dist/src/plugin/Panel.d.ts +0 -17
  416. package/dist/src/plugin/Plain.d.ts +0 -19
  417. package/dist/src/plugin/Progress.d.ts +0 -19
  418. package/dist/src/plugin/Property.d.ts +0 -26
  419. package/dist/src/plugin/QRCode.d.ts +0 -19
  420. package/dist/src/plugin/Reset.d.ts +0 -11
  421. package/dist/src/plugin/Service.d.ts +0 -24
  422. package/dist/src/plugin/Sparkline.d.ts +0 -28
  423. package/dist/src/plugin/Status.d.ts +0 -19
  424. package/dist/src/plugin/Steps.d.ts +0 -43
  425. package/dist/src/plugin/Submit.d.ts +0 -10
  426. package/dist/src/plugin/Switch.d.ts +0 -21
  427. package/dist/src/plugin/Table.d.ts +0 -19
  428. package/dist/src/plugin/TableCell.d.ts +0 -9
  429. package/dist/src/plugin/TableView.d.ts +0 -132
  430. package/dist/src/plugin/Tabs.d.ts +0 -43
  431. package/dist/src/plugin/Tasks.d.ts +0 -41
  432. package/dist/src/plugin/Time.d.ts +0 -13
  433. package/dist/src/plugin/Tpl.d.ts +0 -18
  434. package/dist/src/plugin/Unknown.d.ts +0 -5
  435. package/dist/src/plugin/Video.d.ts +0 -24
  436. package/dist/src/plugin/WebComponent.d.ts +0 -47
  437. package/dist/src/plugin/Wizard.d.ts +0 -40
  438. package/dist/src/plugin/Wrapper.d.ts +0 -20
  439. package/dist/src/plugin.d.ts +0 -560
  440. package/dist/src/store/editor.d.ts +0 -891
  441. package/dist/src/store/node.d.ts +0 -247
  442. package/dist/src/util.d.ts +0 -62
  443. package/rollup.config.js +0 -24
@@ -1,181 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { RegionConfig } from '../plugin';
4
- import { EditorStoreType } from '../store/editor';
5
- import { EditorNodeType } from '../store/node';
6
- export interface RegionWrapperProps {
7
- name: string;
8
- label: string;
9
- placeholder?: string;
10
- preferTag?: string;
11
- wrapperResolve?: (dom: HTMLElement) => HTMLElement;
12
- editorStore: EditorStoreType;
13
- manager: EditorManager;
14
- rendererName?: string;
15
- regionConfig: RegionConfig;
16
- }
17
- /**
18
- * 1.DOM标记 添加 data-region、data-region-host 和 data-renderer 属性
19
- * 2.构建 Node store 节点。
20
- */
21
- export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
22
- static contextType: React.Context<({
23
- parentId: string;
24
- parentRegion: string;
25
- isCommonConfig: boolean;
26
- id: string;
27
- label: string;
28
- regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
29
- path: string;
30
- schemaPath: string;
31
- region: string;
32
- preferTag: string;
33
- state: any;
34
- widthMutable: boolean;
35
- memberIndex: number;
36
- folded: boolean;
37
- patched: boolean;
38
- x: number;
39
- y: number;
40
- w: number;
41
- h: number;
42
- 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]>>;
43
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
44
- getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
45
- } & {
46
- readonly info: import("../plugin").RendererInfo;
47
- setInfo(value: import("../plugin").RendererInfo): void;
48
- readonly isVitualRenderer: boolean;
49
- readonly clickable: boolean;
50
- readonly draggable: boolean;
51
- readonly moveable: boolean;
52
- readonly removable: boolean;
53
- readonly duplicatable: boolean;
54
- readonly replaceable: boolean;
55
- memberImmutable(region: string): boolean;
56
- readonly isRegion: boolean;
57
- readonly childRegions: any[];
58
- readonly uniqueChildren: any[];
59
- readonly sameIdChild: any;
60
- readonly singleRegion: boolean;
61
- isExists(id: string): boolean;
62
- getChildById(id: string): any;
63
- readonly parent: any;
64
- readonly host: any;
65
- readonly firstChild: any;
66
- readonly index: any;
67
- readonly prevSibling: any;
68
- readonly nextSibling: any;
69
- readonly schema: any;
70
- readonly schemaParent: any;
71
- } & {
72
- updateIsCommonConfig: (value: boolean) => void;
73
- addChild(props: {
74
- id: string;
75
- label: string;
76
- path: string;
77
- isCommonConfig?: boolean | undefined;
78
- info?: import("../plugin").RendererInfo | undefined;
79
- region?: string | undefined;
80
- getData?: (() => any) | undefined;
81
- preferTag?: string | undefined;
82
- schemaPath?: string | undefined;
83
- regionInfo?: RegionConfig | undefined;
84
- widthMutable?: boolean | undefined;
85
- memberIndex?: number | undefined;
86
- }): any;
87
- removeChild(child: any): void;
88
- toggleFold(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void;
89
- patch(store: any, force?: boolean): void;
90
- updateSchema(value: any): void;
91
- setComponent(value: any): void;
92
- getComponent(): any;
93
- calculateHighlightBox(root?: any): void;
94
- resetHighlightBox(root: any): void;
95
- updateState(state: any, replace?: boolean): void;
96
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
97
- parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
98
- parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
99
- isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
100
- id: import("mobx-state-tree").IType<string | undefined, string, string>;
101
- label: import("mobx-state-tree").IType<string | undefined, string, string>;
102
- regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
103
- path: import("mobx-state-tree").IType<string | undefined, string, string>;
104
- schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
105
- region: import("mobx-state-tree").IType<string | undefined, string, string>;
106
- preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
107
- state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
108
- widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
109
- memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
110
- folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
111
- patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
112
- x: import("mobx-state-tree").IType<number | undefined, number, number>;
113
- y: import("mobx-state-tree").IType<number | undefined, number, number>;
114
- w: import("mobx-state-tree").IType<number | undefined, number, number>;
115
- h: import("mobx-state-tree").IType<number | undefined, number, number>;
116
- children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
117
- }, {
118
- getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
119
- } & {
120
- readonly info: import("../plugin").RendererInfo;
121
- setInfo(value: import("../plugin").RendererInfo): void;
122
- readonly isVitualRenderer: boolean;
123
- readonly clickable: boolean;
124
- readonly draggable: boolean;
125
- readonly moveable: boolean;
126
- readonly removable: boolean;
127
- readonly duplicatable: boolean;
128
- readonly replaceable: boolean;
129
- memberImmutable(region: string): boolean;
130
- readonly isRegion: boolean;
131
- readonly childRegions: any[];
132
- readonly uniqueChildren: any[];
133
- readonly sameIdChild: any;
134
- readonly singleRegion: boolean;
135
- isExists(id: string): boolean;
136
- getChildById(id: string): any;
137
- readonly parent: any;
138
- readonly host: any;
139
- readonly firstChild: any;
140
- readonly index: any;
141
- readonly prevSibling: any;
142
- readonly nextSibling: any;
143
- readonly schema: any;
144
- readonly schemaParent: any;
145
- } & {
146
- updateIsCommonConfig: (value: boolean) => void;
147
- addChild(props: {
148
- id: string;
149
- label: string;
150
- path: string;
151
- isCommonConfig?: boolean | undefined;
152
- info?: import("../plugin").RendererInfo | undefined;
153
- region?: string | undefined;
154
- getData?: (() => any) | undefined;
155
- preferTag?: string | undefined;
156
- schemaPath?: string | undefined;
157
- regionInfo?: RegionConfig | undefined;
158
- widthMutable?: boolean | undefined;
159
- memberIndex?: number | undefined;
160
- }): any;
161
- removeChild(child: any): void;
162
- toggleFold(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void;
163
- patch(store: any, force?: boolean): void;
164
- updateSchema(value: any): void;
165
- setComponent(value: any): void;
166
- getComponent(): any;
167
- calculateHighlightBox(root?: any): void;
168
- resetHighlightBox(root: any): void;
169
- updateState(state: any, replace?: boolean): void;
170
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
171
- editorNode: EditorNodeType;
172
- componentWillMount(): void;
173
- componentDidMount(): void;
174
- componentDidUpdate(prevProps: RegionWrapperProps): void;
175
- componentWillUnmount(): void;
176
- /**
177
- * 弄点标记
178
- */
179
- markDom(id: string, region: string, rendererName?: string): void;
180
- render(): JSX.Element;
181
- }
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { Schema } from 'amis/lib/types';
3
- interface ThumbProps {
4
- schema: Schema;
5
- theme?: string;
6
- env: any;
7
- }
8
- export declare class RendererThumb extends React.Component<ThumbProps> {
9
- ref: HTMLDivElement;
10
- unSensor: Function;
11
- state: {
12
- scale: boolean;
13
- };
14
- env: any;
15
- componentWillMount(): void;
16
- componentWillUnmount(): void;
17
- rootRef(ref: HTMLDivElement): void;
18
- syncHeight(): void;
19
- handleClick(e: React.MouseEvent): void;
20
- render(): JSX.Element;
21
- }
22
- export {};
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { EditorStoreType } from '../store/editor';
4
- export interface SubEditorProps {
5
- store: EditorStoreType;
6
- manager: EditorManager;
7
- theme?: string;
8
- }
9
- export declare class ScaffoldModal extends React.Component<SubEditorProps> {
10
- handleConfirm([values]: any): void;
11
- buildSchema(): {
12
- [x: string]: any;
13
- type: string;
14
- wrapWithPanel: boolean;
15
- initApi: any;
16
- api: any;
17
- mode: "normal" | "inline" | "horizontal";
18
- wrapperComponent: string;
19
- };
20
- amisScope: any;
21
- scopeRef(scoped: any): void;
22
- handleConfirmClick(): Promise<void>;
23
- render(): JSX.Element;
24
- }
@@ -1,67 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { EditorStoreType } from '../store/editor';
4
- import { BuildPanelEventContext, PluginEvent, RendererInfoResolveEventContext } from '../plugin';
5
- export interface SubEditorProps {
6
- store: EditorStoreType;
7
- manager: EditorManager;
8
- theme?: string;
9
- }
10
- export declare class SubEditor extends React.Component<SubEditorProps> {
11
- afterResolveEditorInfo(event: PluginEvent<RendererInfoResolveEventContext>): void;
12
- handleBuildPanels(event: PluginEvent<BuildPanelEventContext>): void;
13
- buildSchema(): {
14
- size: string;
15
- title: string | undefined;
16
- onClose: () => void;
17
- onConfirm: ([valueRaw]: any) => void;
18
- body: {
19
- type: string;
20
- mode: string;
21
- wrapperComponent: string;
22
- onValidate: (value: any) => Promise<{
23
- schema: string;
24
- } | undefined>;
25
- onChange: () => void;
26
- body: {
27
- name: string;
28
- asFormItem: boolean;
29
- children: ({ value, onChange }: {
30
- value: any;
31
- onChange: (value: any) => void;
32
- }) => JSX.Element;
33
- }[];
34
- tpl?: undefined;
35
- } | {
36
- type: string;
37
- tpl: string;
38
- mode?: undefined;
39
- wrapperComponent?: undefined;
40
- onValidate?: undefined;
41
- onChange?: undefined;
42
- body?: undefined;
43
- };
44
- actions: ({
45
- children: JSX.Element | null;
46
- type?: undefined;
47
- label?: undefined;
48
- level?: undefined;
49
- actionType?: undefined;
50
- } | {
51
- type: string;
52
- label: string;
53
- level: string;
54
- children?: undefined;
55
- actionType?: undefined;
56
- } | {
57
- type: string;
58
- label: string;
59
- actionType: string;
60
- children?: undefined;
61
- level?: undefined;
62
- })[][];
63
- closeOnEsc: boolean;
64
- bodyClassName: string;
65
- };
66
- render(): JSX.Element;
67
- }
@@ -1,79 +0,0 @@
1
- /**
2
- * @file tableview 相关的可视化编辑,拖动行高等
3
- */
4
- import React from 'react';
5
- import { TableViewSchema } from 'amis/lib/renderers/TableView';
6
- import { EditorManager } from '../manager';
7
- import { EditorStoreType } from '../store/editor';
8
- interface TableViewEditorProps {
9
- schema: TableViewSchema;
10
- manager: EditorManager;
11
- }
12
- interface TableViewEditorState {
13
- trIds: string[];
14
- tdIds: string[];
15
- displayMergeCell: boolean;
16
- }
17
- export declare class TableViewEditor extends React.Component<TableViewEditorProps, TableViewEditorState> {
18
- tableViewWrapperRef: React.RefObject<HTMLDivElement>;
19
- draggingId: string;
20
- draggingElement: HTMLElement;
21
- draggingElementTop: number;
22
- draggingElementLeft: number;
23
- startX: number;
24
- startY: number;
25
- maxChildTrIndex: number;
26
- store: EditorStoreType;
27
- isSelectionCell: boolean;
28
- selectedCell: {
29
- [cellId: string]: any;
30
- };
31
- preventTableClick: boolean;
32
- constructor(props: TableViewEditorProps);
33
- componentDidMount(): void;
34
- componentWillUnmount(): void;
35
- syncLineState(): void;
36
- removeListenTdSelection(): void;
37
- listenTdSelection(): void;
38
- handleCellMouseDown(e: MouseEvent): void;
39
- handleCellMouseMove(e: MouseEvent): void;
40
- findFirstAndLastCell(): {
41
- minRow: number;
42
- minCol: number;
43
- maxRow: number;
44
- maxCol: number;
45
- firstCell: any;
46
- lastCell: null;
47
- };
48
- /**
49
- * 选择 td 主要是为了单元格合并,它要求是必须是矩形,比如下面的例子
50
- * ┌───┬───┬───┬───┐
51
- * │ a │ b │ c │ d │
52
- * ├───┴───┼───┤ │
53
- * │ e │ f │ │
54
- * │ ├───┼───┤
55
- * │ │ g │ h │
56
- * └───────┴───┴───┘
57
- * 直接选 a 和 c 是不行的,无法进行单元格合并,所以需要补上 b
58
- * 如果选择了 e 和 f,需要自动选择 g 来让整体变成矩形
59
- * 这个函数的主要作用就是将矩形补充完整
60
- */
61
- markSelectingCell(): void;
62
- removeAllSelectionMark(): void;
63
- handleCellMouseUp(e: MouseEvent): void;
64
- handleCellMouseClick(e: MouseEvent): void;
65
- handleMergeCell(): void;
66
- syncLinePos(): void;
67
- componentDidUpdate(prevProps: TableViewEditorProps): void;
68
- lineMouseDownCommon(e: React.MouseEvent<HTMLElement>): void;
69
- handleRowMouseDown(e: React.MouseEvent<HTMLElement>): void;
70
- handleRowMouseMove(e: MouseEvent): void;
71
- handleRowMouseUp(e: MouseEvent): void;
72
- handleColMouseDown(e: React.MouseEvent<HTMLElement>): void;
73
- handleColMouseMove(e: MouseEvent): void;
74
- handleColMouseUp(e: MouseEvent): void;
75
- handleLineClick(e: MouseEvent): void;
76
- renderMergeIcon(): JSX.Element | null;
77
- render(): JSX.Element;
78
- }
79
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '../plugin';
3
- export declare class TargetNamePanel extends React.Component<PanelProps> {
4
- handleClick(e: React.MouseEvent<HTMLElement>): void;
5
- handleEnter(e: React.MouseEvent<HTMLElement>): void;
6
- render(): JSX.Element;
7
- }
@@ -1,169 +0,0 @@
1
- import React from 'react';
2
- import { RendererInfo } from '../plugin';
3
- import { EditorNodeType } from '../store/node';
4
- export interface VRendererProps extends RendererInfo {
5
- path: string;
6
- data?: any;
7
- widthMutable?: boolean;
8
- }
9
- export declare class VRenderer extends React.Component<VRendererProps> {
10
- static contextType: React.Context<({
11
- parentId: string;
12
- parentRegion: string;
13
- isCommonConfig: boolean;
14
- id: string;
15
- label: string;
16
- regionInfo: (import("../plugin").RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>>) | undefined;
17
- path: string;
18
- schemaPath: string;
19
- region: string;
20
- preferTag: string;
21
- state: any;
22
- widthMutable: boolean;
23
- memberIndex: number;
24
- folded: boolean;
25
- patched: boolean;
26
- x: number;
27
- y: number;
28
- w: number;
29
- h: number;
30
- 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]>>;
31
- } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
32
- getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
33
- } & {
34
- readonly info: RendererInfo;
35
- setInfo(value: RendererInfo): void;
36
- readonly isVitualRenderer: boolean;
37
- readonly clickable: boolean;
38
- readonly draggable: boolean;
39
- readonly moveable: boolean;
40
- readonly removable: boolean;
41
- readonly duplicatable: boolean;
42
- readonly replaceable: boolean;
43
- memberImmutable(region: string): boolean;
44
- readonly isRegion: boolean;
45
- readonly childRegions: any[];
46
- readonly uniqueChildren: any[];
47
- readonly sameIdChild: any;
48
- readonly singleRegion: boolean;
49
- isExists(id: string): boolean;
50
- getChildById(id: string): any;
51
- readonly parent: any;
52
- readonly host: any;
53
- readonly firstChild: any;
54
- readonly index: any;
55
- readonly prevSibling: any;
56
- readonly nextSibling: any;
57
- readonly schema: any;
58
- readonly schemaParent: any;
59
- } & {
60
- updateIsCommonConfig: (value: boolean) => void;
61
- addChild(props: {
62
- id: string;
63
- label: string;
64
- path: string;
65
- isCommonConfig?: boolean | undefined;
66
- info?: RendererInfo | undefined;
67
- region?: string | undefined;
68
- getData?: (() => any) | undefined;
69
- preferTag?: string | undefined;
70
- schemaPath?: string | undefined;
71
- regionInfo?: import("../plugin").RegionConfig | undefined;
72
- widthMutable?: boolean | undefined;
73
- memberIndex?: number | undefined;
74
- }): any;
75
- removeChild(child: any): void;
76
- toggleFold(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void;
77
- patch(store: any, force?: boolean): void;
78
- updateSchema(value: any): void;
79
- setComponent(value: any): void;
80
- getComponent(): any;
81
- calculateHighlightBox(root?: any): void;
82
- resetHighlightBox(root: any): void;
83
- updateState(state: any, replace?: boolean): void;
84
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
85
- parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
86
- parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
87
- isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
88
- id: import("mobx-state-tree").IType<string | undefined, string, string>;
89
- label: import("mobx-state-tree").IType<string | undefined, string, string>;
90
- regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
91
- path: import("mobx-state-tree").IType<string | undefined, string, string>;
92
- schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
93
- region: import("mobx-state-tree").IType<string | undefined, string, string>;
94
- preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
95
- state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
96
- widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
97
- memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
98
- folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
99
- patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
100
- x: import("mobx-state-tree").IType<number | undefined, number, number>;
101
- y: import("mobx-state-tree").IType<number | undefined, number, number>;
102
- w: import("mobx-state-tree").IType<number | undefined, number, number>;
103
- h: import("mobx-state-tree").IType<number | undefined, number, number>;
104
- children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
105
- }, {
106
- getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
107
- } & {
108
- readonly info: RendererInfo;
109
- setInfo(value: RendererInfo): void;
110
- readonly isVitualRenderer: boolean;
111
- readonly clickable: boolean;
112
- readonly draggable: boolean;
113
- readonly moveable: boolean;
114
- readonly removable: boolean;
115
- readonly duplicatable: boolean;
116
- readonly replaceable: boolean;
117
- memberImmutable(region: string): boolean;
118
- readonly isRegion: boolean;
119
- readonly childRegions: any[];
120
- readonly uniqueChildren: any[];
121
- readonly sameIdChild: any;
122
- readonly singleRegion: boolean;
123
- isExists(id: string): boolean;
124
- getChildById(id: string): any;
125
- readonly parent: any;
126
- readonly host: any;
127
- readonly firstChild: any;
128
- readonly index: any;
129
- readonly prevSibling: any;
130
- readonly nextSibling: any;
131
- readonly schema: any;
132
- readonly schemaParent: any;
133
- } & {
134
- updateIsCommonConfig: (value: boolean) => void;
135
- addChild(props: {
136
- id: string;
137
- label: string;
138
- path: string;
139
- isCommonConfig?: boolean | undefined;
140
- info?: RendererInfo | undefined;
141
- region?: string | undefined;
142
- getData?: (() => any) | undefined;
143
- preferTag?: string | undefined;
144
- schemaPath?: string | undefined;
145
- regionInfo?: import("../plugin").RegionConfig | undefined;
146
- widthMutable?: boolean | undefined;
147
- memberIndex?: number | undefined;
148
- }): any;
149
- removeChild(child: any): void;
150
- toggleFold(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void;
151
- patch(store: any, force?: boolean): void;
152
- updateSchema(value: any): void;
153
- setComponent(value: any): void;
154
- getComponent(): any;
155
- calculateHighlightBox(root?: any): void;
156
- resetHighlightBox(root: any): void;
157
- updateState(state: any, replace?: boolean): void;
158
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | null>;
159
- editorNode: EditorNodeType;
160
- componentWillMount(): void;
161
- componentDidMount(): void;
162
- componentDidUpdate(): void;
163
- componentWillUnmount(): void;
164
- /**
165
- * 弄点标记
166
- */
167
- markDom(id: string): void;
168
- render(): JSX.Element;
169
- }
@@ -1,4 +0,0 @@
1
- export declare function getSchemaTpl(name: string, patch?: object): any;
2
- export declare function setSchemaTpl(name: string, value: any): void;
3
- export declare function valuePipeOut(value: any): any;
4
- export declare function defaultValue(defaultValue: any, strictMode?: boolean): (value: any) => any;
@@ -1,47 +0,0 @@
1
- import { EditorDNDManager } from '.';
2
- import { EditorNodeType } from '../store/node';
3
- import { DNDModeInterface } from './interface';
4
- export declare class DefaultDNDMode implements DNDModeInterface {
5
- readonly dnd: EditorDNDManager;
6
- readonly region: EditorNodeType;
7
- readonly constainer: HTMLElement;
8
- dropBeforeId?: string;
9
- constructor(dnd: EditorDNDManager, region: EditorNodeType);
10
- /**
11
- * 记录上次交换时的鼠标位置。
12
- */
13
- exchangeX: number;
14
- exchangeY: number;
15
- /**
16
- * 首次拖入,把 ghost 插入进来。让用户有个直观感受。
17
- * @param e
18
- * @param ghost
19
- */
20
- enter(e: DragEvent, ghost: HTMLElement): void;
21
- /**
22
- * 拖出去了,就移除 ghost
23
- * @param e
24
- * @param ghost
25
- */
26
- leave(e: DragEvent, ghost: HTMLElement): void;
27
- over(e: DragEvent, ghost: HTMLElement): void;
28
- /**
29
- * 返回个相对位置,如果没有数据会插入到结尾。
30
- */
31
- getDropBeforeId(): string | undefined;
32
- /**
33
- * 获取当时拖动到了哪个节点上面。
34
- */
35
- getTarget(e: DragEvent): HTMLElement | null;
36
- /**
37
- * 获取区域的直接孩子,因为有时候会在孩子的孩子里面。
38
- * 但是插入 ghost 的相对位置,insertBefore 只能是当前孩子。
39
- * @param dom
40
- * @param descend
41
- */
42
- getChild(dom: HTMLElement, descend: HTMLElement): HTMLElement;
43
- /**
44
- * 好像没啥要弄的。
45
- */
46
- dispose(): void;
47
- }