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,21 +0,0 @@
1
- import { BaseEventContext, BasePlugin } from '../plugin';
2
- export declare class SwitchPlugin extends BasePlugin {
3
- rendererName: string;
4
- $schema: string;
5
- name: string;
6
- description: string;
7
- tags: string[];
8
- icon: string;
9
- scaffold: {
10
- type: string;
11
- name: string;
12
- };
13
- previewSchema: {
14
- value: boolean;
15
- disabled: boolean;
16
- type: string;
17
- name: string;
18
- };
19
- panelTitle: string;
20
- panelControlsCreator: (context: BaseEventContext) => any[];
21
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * 兼容 1.x 里面的注册渲染器的方法。
3
- */
4
- import { EditorManager } from './manager';
5
- import { BasePlugin } from './plugin';
6
- /**
7
- * 旧版本注册渲染器编辑器的方法。
8
- *
9
- * @deprecated
10
- * @param rendererName
11
- * @param config
12
- */
13
- export declare function RendererEditor(rendererName: string, config: {
14
- name: string;
15
- description?: string;
16
- type?: string;
17
- previewSchema?: any;
18
- scaffold?: any;
19
- }): (Klass: new (manager: EditorManager) => BasicEditor) => void;
20
- /**
21
- * 为了兼容旧版的注册方法
22
- * @deprecated
23
- */
24
- export declare class BasicEditor extends BasePlugin {
25
- tipName?: string;
26
- settingsSchema?: {
27
- title: string;
28
- body: Array<any>;
29
- };
30
- }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '../plugin';
3
- export declare class AvailableRenderersPanel extends React.Component<PanelProps> {
4
- handleRegionFilterClick(e: React.MouseEvent): void;
5
- handleDragStart(e: React.DragEvent): void;
6
- renderThumb(schema: any): JSX.Element;
7
- render(): JSX.Element;
8
- }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { EditorStoreType } from '../store/editor';
3
- import { EditorManager } from '../manager';
4
- export interface BreadcrumbProps {
5
- store: EditorStoreType;
6
- manager: EditorManager;
7
- }
8
- export default class Breadcrumb extends React.Component<BreadcrumbProps> {
9
- handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
10
- handleMouseEnter(e: React.MouseEvent<HTMLAnchorElement>): void;
11
- render(): JSX.Element;
12
- }
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { RendererProps } from 'amis/lib/factory';
3
- import { Schema } from 'amis/lib/types';
4
- interface ClassNameControlProps extends RendererProps {
5
- schema: Schema;
6
- }
7
- interface ClassNameControlState {
8
- isFocused: boolean;
9
- isOpened: boolean;
10
- }
11
- export declare class ClassNameControl extends React.Component<ClassNameControlProps, ClassNameControlState> {
12
- state: {
13
- isFocused: boolean;
14
- isOpened: boolean;
15
- };
16
- values: Array<string>;
17
- open(): void;
18
- close(): void;
19
- toggle(): void;
20
- handleFocus(e: any): void;
21
- handleBlur(e: any): void;
22
- handleChange(e: React.ChangeEvent<HTMLInputElement>): void;
23
- getParent(): Element | Text | null;
24
- getTarget(): HTMLElement;
25
- handlePopOverChange(option: any): void;
26
- renderGroup(option: any, index: number): JSX.Element;
27
- renderOptions(options: Array<any>, index: number): JSX.Element[];
28
- renderPopover(): JSX.Element;
29
- render(): JSX.Element;
30
- }
31
- export {};
@@ -1,37 +0,0 @@
1
- /// <reference types="lodash" />
2
- import React from 'react';
3
- export interface AMisCodeEditorProps {
4
- value: any;
5
- onChange: (value: any, diff: any) => void;
6
- onPaste?: () => void;
7
- disabled?: boolean;
8
- $schemaUrl?: string;
9
- $schema?: string;
10
- className?: string;
11
- theme?: string;
12
- }
13
- export default class AMisCodeEditor extends React.Component<AMisCodeEditorProps, any> {
14
- state: {
15
- wrongSchema: string;
16
- value: any;
17
- contents: any;
18
- };
19
- lastResult: any;
20
- toDispose: Array<() => void>;
21
- editor: any;
22
- monaco: any;
23
- model: any;
24
- decorations: any;
25
- uri: string;
26
- componentDidUpdate(prevProps: AMisCodeEditorProps): void;
27
- obj2str(value: any, props: AMisCodeEditorProps): any;
28
- str2obj(str: string): any;
29
- emitChange: import("lodash").DebouncedFunc<() => void>;
30
- changeJsonOptions(props?: AMisCodeEditorProps): void;
31
- editorFactory: (containerElement: HTMLElement, monaco: any, options: any) => any;
32
- editorDidMount: (editor: any, monaco: any) => void;
33
- editorWillUnmount: (editor: any, monaco: any) => void;
34
- handleChange: (value: string) => void;
35
- handleBlur: () => Promise<void>;
36
- render(): JSX.Element;
37
- }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '../plugin';
3
- export declare class CodeEditorPanel extends React.Component<PanelProps> {
4
- startX: number;
5
- startWidth: number;
6
- codeWrap: HTMLElement;
7
- handleResizeMouseDown(e: React.MouseEvent): void;
8
- handleResizeMouseMove(e: MouseEvent): void;
9
- handleResizeMouseUp(): void;
10
- handleCodePaste(): void;
11
- render(): JSX.Element;
12
- }
@@ -1,6 +0,0 @@
1
- import { NodeWrapper } from './NodeWrapper';
2
- export declare class CommonConfigWrapper extends NodeWrapper {
3
- componentWillUnmount(): void;
4
- markDom(id: string): void;
5
- render(): any;
6
- }
@@ -1,12 +0,0 @@
1
- import { NodeWrapperProps } from './NodeWrapper';
2
- import React from 'react';
3
- import { Schema } from 'amis/lib/types';
4
- export interface ContainerWrapperProps extends NodeWrapperProps {
5
- }
6
- export declare class ContainerWrapper extends React.Component<ContainerWrapperProps> {
7
- ref: any;
8
- getWrappedInstance(): any;
9
- refFn(ref: any): void;
10
- renderChild(region: string, node: Schema, props: any): JSX.Element;
11
- render(): JSX.Element;
12
- }
@@ -1,60 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { EditorStoreType } from '../store/editor';
3
- import { SchemaObject } from 'amis/lib/Schema';
4
- import { EditorManager, PluginClass } from '../manager';
5
- import { RenderOptions } from 'amis/lib/factory';
6
- import { PluginEventListener } from '../plugin';
7
- export interface EditorProps extends PluginEventListener {
8
- value: SchemaObject;
9
- onChange: (value: SchemaObject) => void;
10
- preview?: boolean;
11
- isMobile?: boolean;
12
- isSubEditor?: boolean;
13
- autoFocus?: boolean;
14
- className?: string;
15
- $schemaUrl?: string;
16
- theme?: string;
17
- /**
18
- * Preview 预览前可以修改配置。
19
- * 比如把api地址替换成 proxy 地址。
20
- */
21
- schemaFilter?: (schema: any) => any;
22
- amisEnv?: RenderOptions;
23
- /**
24
- * 上下文数据,设置后,面板和脚手架表单里面可以取到这些值。
25
- */
26
- ctx?: any;
27
- data?: any;
28
- /**
29
- * 是否禁用内置插件
30
- */
31
- disableBultinPlugin?: boolean;
32
- plugins?: Array<PluginClass>;
33
- /**
34
- * 传给预览器的其他属性
35
- */
36
- previewProps?: any;
37
- iframeUrl?: string;
38
- isHiddenProps?: (key: string) => boolean;
39
- }
40
- export default class Editor extends Component<EditorProps> {
41
- readonly store: EditorStoreType;
42
- readonly manager: EditorManager;
43
- readonly mainRef: React.RefObject<HTMLDivElement>;
44
- unReaction: () => void;
45
- lastResult: any;
46
- static defaultProps: {
47
- autoFocus: boolean;
48
- };
49
- isInternalChange: boolean;
50
- constructor(props: EditorProps);
51
- componentDidUpdate(prevProps: EditorProps): void;
52
- componentWillUnmount(): void;
53
- handleContextMenu(e: React.MouseEvent<HTMLElement>): void;
54
- canUndo(): boolean;
55
- canRedo(): boolean;
56
- undo(): void;
57
- redo(): void;
58
- getToolbarContainer(): HTMLDivElement | null;
59
- render(): JSX.Element;
60
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare class ErrorRenderer extends React.Component<any> {
3
- render(): JSX.Element;
4
- }
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { EditorStoreType } from '../store/editor';
3
- import { EditorNodeType } from '../store/node';
4
- import { EditorManager } from '../manager';
5
- export interface HighlightBoxProps {
6
- store: EditorStoreType;
7
- node: EditorNodeType;
8
- id: string;
9
- className?: string;
10
- title: string;
11
- toolbarContainer?: () => any;
12
- onSwitch?: (id: string) => void;
13
- manager: EditorManager;
14
- }
15
- export default class HighlightBox extends React.Component<HighlightBoxProps> {
16
- mainRef: React.RefObject<HTMLDivElement>;
17
- handleWResizerMouseDown(e: MouseEvent): void;
18
- wResizerDom: HTMLElement;
19
- wResizerRef(ref: any): void;
20
- handleMouseEnter(): void;
21
- render(): JSX.Element;
22
- }
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { EditorStoreType } from '../store/editor';
4
- export interface IFrameBridgeProps {
5
- className?: string;
6
- url: string;
7
- editable?: boolean;
8
- isMobile?: boolean;
9
- store: EditorStoreType;
10
- manager: EditorManager;
11
- theme?: string;
12
- data?: any;
13
- env?: any;
14
- autoFocus?: boolean;
15
- }
16
- export interface BridgeApi {
17
- update: (props: any) => void;
18
- }
19
- export default class IFrameBridge extends React.PureComponent<IFrameBridgeProps> {
20
- bridgeFnName: string;
21
- bridge?: BridgeApi;
22
- schema: any;
23
- constructor(props: IFrameBridgeProps);
24
- componentDidUpdate(): void;
25
- componentWillUnmount(): void;
26
- iframeRef(iframe: any): void;
27
- update(props?: Readonly<IFrameBridgeProps> & Readonly<{
28
- children?: React.ReactNode;
29
- }>): void;
30
- render(): JSX.Element;
31
- }
32
- export declare function mountInIframe(dom: HTMLElement, reactDom: any, envCreator?: any): void;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { EditorStoreType } from '../store/editor';
4
- import { RendererConfig, RenderOptions } from 'amis/lib/factory';
5
- import { Schema } from 'amis/lib/types';
6
- export interface IFramePreviewProps {
7
- className: string;
8
- editable?: boolean;
9
- isMobile?: boolean;
10
- schema: any;
11
- theme?: string;
12
- store: EditorStoreType;
13
- manager: EditorManager;
14
- autoFocus?: boolean;
15
- data?: any;
16
- envCreator?: (props: IFramePreviewProps) => any;
17
- }
18
- export default class IFramePreview extends React.Component<IFramePreviewProps> {
19
- env: RenderOptions;
20
- componentDidMount(): void;
21
- componentWillUnmount(): void;
22
- dom?: HTMLElement;
23
- unSensor?: () => void;
24
- contentsRef(ref: HTMLDivElement | null): void;
25
- syncIframeHeight(): void;
26
- handleClick(e: MouseEvent): void;
27
- handleMouseMove(e: MouseEvent): void;
28
- handleMouseLeave(): void;
29
- handeMouseOver(e: MouseEvent): void;
30
- handleDragEnter(e: React.DragEvent): void;
31
- handleDragLeave(e: React.DragEvent): void;
32
- handleDragOver(e: React.DragEvent): void;
33
- handleDrop(e: React.DragEvent): void;
34
- handleContextMenu(e: React.MouseEvent<HTMLElement>): void;
35
- rendererResolver(path: string, schema: Schema, props: any): RendererConfig;
36
- render(): JSX.Element;
37
- }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '../plugin';
3
- export declare class InsertSubRendererPanel extends React.Component<PanelProps> {
4
- handleLeftClick(e: React.MouseEvent): void;
5
- handleClick(e: React.MouseEvent): void;
6
- hadnlDBClick(e: React.MouseEvent): void;
7
- handleInsert(): void;
8
- handleReplace(): void;
9
- handleCancel(): void;
10
- render(): JSX.Element;
11
- }
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import Editor, { EditorProps } from './Editor';
3
- import { BaseEventContext, PluginEvent } from '../plugin';
4
- export default class MiniEditor extends Editor {
5
- constructor(props: EditorProps);
6
- componentWillUnmount(): void;
7
- buildPanels(event: PluginEvent<BaseEventContext>): void;
8
- render(): JSX.Element;
9
- }
@@ -1,20 +0,0 @@
1
- import { RendererProps } from 'amis/lib/factory';
2
- import React from 'react';
3
- import { RendererInfo } from '../plugin';
4
- import { EditorNodeType } from '../store/node';
5
- export interface NodeWrapperProps extends RendererProps {
6
- $$editor: RendererInfo;
7
- $$node?: EditorNodeType;
8
- }
9
- export declare class NodeWrapper extends React.Component<NodeWrapperProps> {
10
- componentDidMount(): void;
11
- componentDidUpdate(prevProps: NodeWrapperProps): void;
12
- ref: any;
13
- getWrappedInstance(): any;
14
- refFn(ref: any): void;
15
- /**
16
- * 弄点标记
17
- */
18
- markDom(id: string): void;
19
- render(): any;
20
- }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PanelProps } from '../plugin';
3
- import { EditorNodeType } from '../store/node';
4
- export declare class OutlinePanel extends React.Component<PanelProps> {
5
- handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
6
- handleEnter(e: React.MouseEvent): void;
7
- handleDragStart(e: React.DragEvent): void;
8
- handleDragOver(e: React.DragEvent): void;
9
- handleDrop(e: React.DragEvent): void;
10
- renderItem(option: EditorNodeType, index: number): JSX.Element | null;
11
- render(): JSX.Element;
12
- }
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { EditorStoreType } from '../store/editor';
4
- export interface PanelsProps {
5
- store: EditorStoreType;
6
- manager: EditorManager;
7
- theme?: string;
8
- isLeftPanel?: boolean;
9
- }
10
- export declare class Panels extends React.Component<PanelsProps> {
11
- isLeftPanel: boolean;
12
- handleSelect(key: string): void;
13
- getPopOverContainer(): HTMLElement;
14
- resizeSensor?: () => void;
15
- tabsRef(ref: any): void;
16
- render(): JSX.Element;
17
- }
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { EditorManager } from '../manager';
3
- import { EditorStoreType } from '../store/editor';
4
- export interface PopOverFormProps {
5
- store: EditorStoreType;
6
- manager: EditorManager;
7
- theme?: string;
8
- }
9
- export declare class PopOverForm extends React.Component<PopOverFormProps> {
10
- overlay: React.RefObject<any>;
11
- buildSchema(): {
12
- type: string;
13
- wrapWithPanel: boolean;
14
- mode: string;
15
- wrapperComponent: string;
16
- body: any[];
17
- submitOnChange: boolean;
18
- autoFocus: boolean;
19
- onFinished: (newValue: any) => void;
20
- };
21
- render(): JSX.Element;
22
- }
@@ -1,62 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { RendererConfig, RenderOptions } from 'amis/lib/factory';
3
- import { Schema } from 'amis/lib/types';
4
- import { EditorStoreType } from '../store/editor';
5
- import { EditorManager } from '../manager';
6
- export interface PreviewProps {
7
- theme?: string;
8
- amisEnv?: any;
9
- className?: string;
10
- editable?: boolean;
11
- isMobile?: boolean;
12
- store: EditorStoreType;
13
- manager: EditorManager;
14
- data?: any;
15
- iframeUrl?: string;
16
- autoFocus?: boolean;
17
- toolbarContainer?: () => any;
18
- }
19
- export interface PreviewState {
20
- ready?: boolean;
21
- }
22
- export default class Preview extends Component<PreviewProps> {
23
- env: RenderOptions;
24
- doingSelection: boolean;
25
- componentDidMount(): void;
26
- componentWillUnmount(): void;
27
- unSensor?: () => void;
28
- layer?: HTMLDivElement;
29
- contentsRef(ref: HTMLDivElement | null): void;
30
- readonly unReaction: () => void;
31
- handlePanelChange(): void;
32
- getHighlightNodes(): string[];
33
- calculateHighlightBox(ids: Array<string>): void;
34
- handeMouseDown(e: MouseEvent): void;
35
- doSelection(rect: {
36
- x: number;
37
- y: number;
38
- w: number;
39
- h: number;
40
- }): void;
41
- handleClick(e: MouseEvent): void;
42
- handleNavSwitch(id: string): void;
43
- handleMouseMove(e: MouseEvent): void;
44
- handleMouseLeave(): void;
45
- handeMouseOver(e: MouseEvent): void;
46
- handleDragEnter(e: React.DragEvent): void;
47
- handleDragLeave(e: React.DragEvent): void;
48
- handleDragOver(e: React.DragEvent): void;
49
- handleDrop(e: React.DragEvent): void;
50
- rendererResolver(path: string, schema: Schema, props: any): RendererConfig;
51
- render(): JSX.Element;
52
- }
53
- /**
54
- * 这个用了 observer,所以能最小程度的刷新,数据不变按理是不会刷新的。
55
- */
56
- export interface SmartPreviewProps {
57
- editable?: boolean;
58
- autoFocus?: boolean;
59
- store: EditorStoreType;
60
- env: any;
61
- data?: any;
62
- }
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import { EditorStoreType } from '../store/editor';
3
- import { EditorManager } from '../manager';
4
- import { EditorNodeType } from '../store/node';
5
- export declare const AddBTNSvg = "<svg viewBox=\"0 0 12 12\">\n<g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"plus\" fill=\"currentColor\" fill-rule=\"nonzero\">\n <polygon points=\"6.6 6.6 6.6 12 5.4 12 5.4 6.6 0 6.6 0 5.4 5.4 5.4 5.4 0 6.6 0 6.6 5.4 12 5.4 12 6.6\"></polygon>\n </g>\n</g>\n</svg>";
6
- export interface HighlightBoxProps {
7
- store: EditorStoreType;
8
- node: EditorNodeType;
9
- name: string;
10
- id: string;
11
- className?: string;
12
- title: string;
13
- preferTag?: string;
14
- manager: EditorManager;
15
- }
16
- export default class RegionHighlightBox extends React.Component<HighlightBoxProps> {
17
- addBtn: HTMLElement;
18
- constructor(props: HighlightBoxProps);
19
- componentDidMount(): void;
20
- componentDidUpdate(): void;
21
- componentWillUnmount(): void;
22
- attachAddBtn(): void;
23
- handleClick(): void;
24
- handleMouseEnter(): void;
25
- handleMouseLeave(): void;
26
- render(): JSX.Element;
27
- }