amis-editor 4.2.0-beta.3 → 5.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/dist/6dbcbb49b6fd405190a9.png +0 -0
  2. package/dist/component/Editor.d.ts +16 -0
  3. package/dist/component/RegionWrapper.d.ts +10 -0
  4. package/dist/component/ScaffoldModal.d.ts +1 -1
  5. package/dist/component/VRenderer.d.ts +10 -0
  6. package/dist/component/control/APIControl.d.ts +1158 -0
  7. package/dist/component/control/ActionAPIControl.d.ts +1158 -0
  8. package/dist/component/control/BadgeControl.d.ts +133 -0
  9. package/dist/component/control/BaseControl.d.ts +248 -0
  10. package/dist/component/control/DataBindingControl.d.ts +14 -0
  11. package/dist/component/control/DataPickerControl.d.ts +13 -0
  12. package/dist/component/control/DateShortCutControl.d.ts +83 -0
  13. package/dist/component/control/FormulaControl.d.ts +51 -0
  14. package/dist/component/{Control → control}/OptionControl.d.ts +23 -34
  15. package/dist/component/{Control → control}/PopoverEdit.d.ts +0 -0
  16. package/dist/component/control/StatusControl.d.ts +39 -0
  17. package/dist/component/control/SwitchMoreControl.d.ts +224 -0
  18. package/dist/component/control/ValidationControl.d.ts +65 -0
  19. package/dist/component/control/ValidationItem.d.ts +46 -0
  20. package/dist/component/control/style-control/Background.d.ts +17 -0
  21. package/dist/component/control/style-control/Border.d.ts +18 -0
  22. package/dist/component/control/style-control/BoxModel.d.ts +17 -0
  23. package/dist/component/control/style-control/BoxShadow.d.ts +18 -0
  24. package/dist/component/control/style-control/Display.d.ts +14 -0
  25. package/dist/component/control/style-control/Font.d.ts +16 -0
  26. package/dist/component/control/style-control/font-family.d.ts +11 -0
  27. package/dist/component/control/style-control/transformation.d.ts +29 -0
  28. package/dist/component/control/style-control/types.d.ts +8 -0
  29. package/dist/component/schemaTpl.d.ts +8 -0
  30. package/dist/component/validator.d.ts +62 -0
  31. package/dist/dnd/index.d.ts +1 -1
  32. package/dist/event-action/action-config-panel.d.ts +8 -0
  33. package/dist/event-action/actions.d.ts +3 -0
  34. package/dist/event-action/comp-action-select.d.ts +11 -0
  35. package/dist/event-action/config.d.ts +13 -0
  36. package/dist/event-action/index.d.ts +459 -0
  37. package/dist/event-action/schema.d.ts +32 -0
  38. package/dist/exports.min.js +1 -1
  39. package/dist/index.d.ts +23 -5
  40. package/dist/index.min.js +1 -1
  41. package/dist/manager.d.ts +46 -1
  42. package/dist/plugin/Alert.d.ts +4 -2
  43. package/dist/plugin/Button.d.ts +5 -1
  44. package/dist/plugin/ButtonGroup.d.ts +13 -34
  45. package/dist/plugin/ButtonToolbar.d.ts +4 -10
  46. package/dist/plugin/CRUD.d.ts +2 -0
  47. package/dist/plugin/Chart.d.ts +2 -0
  48. package/dist/plugin/Collapse.d.ts +1 -0
  49. package/dist/plugin/CollapseGroup.d.ts +28 -4
  50. package/dist/plugin/Container.d.ts +2 -1
  51. package/dist/plugin/Dialog.d.ts +12 -2
  52. package/dist/plugin/Drawer.d.ts +12 -2
  53. package/dist/plugin/DropDownButton.d.ts +11 -11
  54. package/dist/plugin/Form/ButtonGroupSelect.d.ts +7 -2
  55. package/dist/plugin/Form/ButtonToolbar.d.ts +8 -7
  56. package/dist/plugin/Form/ChainedSelect.d.ts +3 -0
  57. package/dist/plugin/Form/Checkbox.d.ts +7 -2
  58. package/dist/plugin/Form/Checkboxes.d.ts +8 -2
  59. package/dist/plugin/Form/CodeEditor.d.ts +7 -22
  60. package/dist/plugin/Form/Combo.d.ts +3 -0
  61. package/dist/plugin/Form/Control.d.ts +6 -2
  62. package/dist/plugin/Form/DiffEditor.d.ts +7 -1
  63. package/dist/plugin/Form/Form.d.ts +6 -0
  64. package/dist/plugin/Form/Formula.d.ts +1 -25
  65. package/dist/plugin/Form/InputDate.d.ts +8 -2
  66. package/dist/plugin/Form/InputDateRange.d.ts +8 -2
  67. package/dist/plugin/Form/InputDateTime.d.ts +4 -4
  68. package/dist/plugin/Form/InputDateTimeRange.d.ts +4 -4
  69. package/dist/plugin/Form/InputEmail.d.ts +1 -0
  70. package/dist/plugin/Form/InputExcel.d.ts +6 -41
  71. package/dist/plugin/Form/InputFile.d.ts +7 -3
  72. package/dist/plugin/Form/InputKV.d.ts +6 -0
  73. package/dist/plugin/Form/InputMonth.d.ts +1 -0
  74. package/dist/plugin/Form/InputMonthRange.d.ts +4 -4
  75. package/dist/plugin/Form/InputPassword.d.ts +1 -0
  76. package/dist/plugin/Form/InputQuarter.d.ts +1 -0
  77. package/dist/plugin/Form/InputQuarterRange.d.ts +4 -4
  78. package/dist/plugin/Form/InputRange.d.ts +3 -0
  79. package/dist/plugin/Form/InputRating.d.ts +9 -3
  80. package/dist/plugin/Form/InputText.d.ts +24 -2
  81. package/dist/plugin/Form/InputTime.d.ts +3 -3
  82. package/dist/plugin/Form/InputTimeRange.d.ts +20 -0
  83. package/dist/plugin/Form/InputTree.d.ts +6 -2
  84. package/dist/plugin/Form/InputURL.d.ts +1 -0
  85. package/dist/plugin/Form/InputYear.d.ts +1 -0
  86. package/dist/plugin/Form/InputYearRange.d.ts +20 -0
  87. package/dist/plugin/Form/ListSelect.d.ts +6 -2
  88. package/dist/plugin/Form/LocationPicker.d.ts +1 -31
  89. package/dist/plugin/Form/NestedSelect.d.ts +5 -2
  90. package/dist/plugin/Form/Radios.d.ts +7 -2
  91. package/dist/plugin/Form/Select.d.ts +7 -2
  92. package/dist/plugin/Form/Switch.d.ts +7 -2
  93. package/dist/plugin/Form/TabsTransfer.d.ts +5 -2
  94. package/dist/plugin/Form/Textarea.d.ts +7 -1
  95. package/dist/plugin/Form/Transfer.d.ts +5 -2
  96. package/dist/plugin/Form/TreeSelect.d.ts +6 -2
  97. package/dist/plugin/IFrame.d.ts +2 -2
  98. package/dist/plugin/Nav.d.ts +1 -116
  99. package/dist/plugin/Others/Action.d.ts +5 -1
  100. package/dist/plugin/Page.d.ts +5 -2
  101. package/dist/plugin/Progress.d.ts +5 -1
  102. package/dist/plugin/Table.d.ts +2 -0
  103. package/dist/plugin/Tabs.d.ts +33 -2
  104. package/dist/plugin/TooltipWrapper.d.ts +10 -0
  105. package/dist/plugin/Tpl.d.ts +2 -1
  106. package/dist/plugin/Wizard.d.ts +4 -1
  107. package/dist/plugin.d.ts +37 -1
  108. package/dist/store/editor.d.ts +55 -28
  109. package/dist/store/node.d.ts +16 -0
  110. package/dist/style.css +1 -1
  111. package/dist/util.d.ts +36 -3
  112. package/package.json +14 -8
  113. package/src/component/schemaTpl.tsx +1198 -474
  114. package/src/plugin/.DS_Store +0 -0
  115. package/src/plugin/Alert.tsx +69 -48
  116. package/src/plugin/AnchorNav.tsx +1 -0
  117. package/src/plugin/Audio.tsx +9 -15
  118. package/src/plugin/Avatar.tsx +2 -1
  119. package/src/plugin/Breadcrumb.tsx +2 -1
  120. package/src/plugin/Button.tsx +257 -188
  121. package/src/plugin/ButtonGroup.tsx +99 -38
  122. package/src/plugin/ButtonToolbar.tsx +7 -13
  123. package/src/plugin/CRUD.tsx +77 -135
  124. package/src/plugin/Card.tsx +1 -0
  125. package/src/plugin/Cards.tsx +8 -14
  126. package/src/plugin/Carousel.tsx +1 -1
  127. package/src/plugin/Chart.tsx +26 -14
  128. package/src/plugin/Collapse.tsx +78 -78
  129. package/src/plugin/CollapseGroup.tsx +165 -83
  130. package/src/plugin/Container.tsx +59 -6
  131. package/src/plugin/Custom.tsx +2 -8
  132. package/src/plugin/CustomRegion.tsx +4 -3
  133. package/src/plugin/Dialog.tsx +55 -24
  134. package/src/plugin/Drawer.tsx +65 -35
  135. package/src/plugin/DropDownButton.tsx +95 -79
  136. package/src/plugin/Flex.tsx +123 -65
  137. package/src/plugin/Form/ButtonGroupSelect.tsx +114 -26
  138. package/src/plugin/Form/ButtonToolbar.tsx +62 -55
  139. package/src/plugin/Form/ChainedSelect.tsx +45 -0
  140. package/src/plugin/Form/Checkbox.tsx +122 -33
  141. package/src/plugin/Form/Checkboxes.tsx +154 -87
  142. package/src/plugin/Form/CodeEditor.tsx +163 -34
  143. package/src/plugin/Form/Combo.tsx +104 -65
  144. package/src/plugin/Form/Control.tsx +16 -70
  145. package/src/plugin/Form/DiffEditor.tsx +158 -54
  146. package/src/plugin/Form/FieldSet.tsx +6 -11
  147. package/src/plugin/Form/Form.tsx +277 -70
  148. package/src/plugin/Form/Formula.tsx +8 -14
  149. package/src/plugin/Form/InputArray.tsx +7 -16
  150. package/src/plugin/Form/InputCity.tsx +1 -1
  151. package/src/plugin/Form/InputDate.tsx +344 -121
  152. package/src/plugin/Form/InputDateRange.tsx +303 -161
  153. package/src/plugin/Form/InputDateTime.tsx +6 -150
  154. package/src/plugin/Form/InputDateTimeRange.tsx +7 -187
  155. package/src/plugin/Form/InputEmail.tsx +1 -0
  156. package/src/plugin/Form/InputExcel.tsx +70 -27
  157. package/src/plugin/Form/InputFile.tsx +326 -152
  158. package/src/plugin/Form/InputImage.tsx +1 -1
  159. package/src/plugin/Form/InputKV.tsx +61 -0
  160. package/src/plugin/Form/InputMonth.tsx +3 -1
  161. package/src/plugin/Form/InputMonthRange.tsx +6 -160
  162. package/src/plugin/Form/InputNumber.tsx +1 -1
  163. package/src/plugin/Form/InputPassword.tsx +2 -0
  164. package/src/plugin/Form/InputQuarter.tsx +3 -1
  165. package/src/plugin/Form/InputQuarterRange.tsx +6 -160
  166. package/src/plugin/Form/InputRange.tsx +74 -4
  167. package/src/plugin/Form/InputRating.tsx +347 -35
  168. package/src/plugin/Form/InputRichText.tsx +2 -3
  169. package/src/plugin/Form/InputTable.tsx +33 -49
  170. package/src/plugin/Form/InputTag.tsx +1 -1
  171. package/src/plugin/Form/InputText.tsx +310 -132
  172. package/src/plugin/Form/InputTime.tsx +4 -53
  173. package/src/plugin/Form/InputTimeRange.tsx +41 -0
  174. package/src/plugin/Form/InputTree.tsx +196 -46
  175. package/src/plugin/Form/InputURL.tsx +2 -0
  176. package/src/plugin/Form/InputYear.tsx +2 -0
  177. package/src/plugin/Form/InputYearRange.tsx +41 -0
  178. package/src/plugin/Form/Item.tsx +17 -18
  179. package/src/plugin/Form/ListSelect.tsx +75 -20
  180. package/src/plugin/Form/LocationPicker.tsx +2 -7
  181. package/src/plugin/Form/MatrixCheckboxes.tsx +1 -1
  182. package/src/plugin/Form/NestedSelect.tsx +110 -43
  183. package/src/plugin/Form/Picker.tsx +2 -5
  184. package/src/plugin/Form/Radios.tsx +122 -52
  185. package/src/plugin/Form/Select.tsx +239 -168
  186. package/src/plugin/Form/Static.tsx +1 -1
  187. package/src/plugin/Form/Switch.tsx +170 -58
  188. package/src/plugin/Form/TabsTransfer.tsx +175 -79
  189. package/src/plugin/Form/Textarea.tsx +146 -36
  190. package/src/plugin/Form/Transfer.tsx +295 -233
  191. package/src/plugin/Form/TreeSelect.tsx +287 -146
  192. package/src/plugin/Grid.tsx +340 -312
  193. package/src/plugin/HBox.tsx +1 -0
  194. package/src/plugin/IFrame.tsx +21 -12
  195. package/src/plugin/Image.tsx +7 -12
  196. package/src/plugin/Images.tsx +7 -12
  197. package/src/plugin/Link.tsx +6 -12
  198. package/src/plugin/List.tsx +6 -10
  199. package/src/plugin/ListItem.tsx +1 -0
  200. package/src/plugin/Nav.tsx +7 -9
  201. package/src/plugin/Others/Action.tsx +16 -10
  202. package/src/plugin/Others/BasicToolbar.tsx +4 -1
  203. package/src/plugin/Others/TableCell.tsx +19 -39
  204. package/src/plugin/Page.tsx +315 -229
  205. package/src/plugin/Panel.tsx +6 -7
  206. package/src/plugin/Plain.tsx +3 -6
  207. package/src/plugin/Progress.tsx +234 -94
  208. package/src/plugin/Service.tsx +10 -6
  209. package/src/plugin/Table.tsx +49 -20
  210. package/src/plugin/TableView.tsx +212 -106
  211. package/src/plugin/Tabs.tsx +306 -146
  212. package/src/plugin/TooltipWrapper.tsx +231 -135
  213. package/src/plugin/Tpl.tsx +68 -52
  214. package/src/plugin/Video.tsx +9 -20
  215. package/src/plugin/Wizard.tsx +537 -336
  216. package/src/plugin/Wrapper.tsx +82 -61
  217. package/src/plugin.ts +66 -4
  218. package/static/empty.png +0 -0
  219. package/dist/component/Control/APIControl.d.ts +0 -504
  220. package/dist/component/Control/ValidationControl.d.ts +0 -30
  221. package/dist/component/remarkTpl.d.ts +0 -150
@@ -63,6 +63,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
63
63
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
64
64
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
65
65
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
66
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
66
67
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
67
68
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
68
69
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -85,6 +86,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
85
86
  } & {
86
87
  readonly info: RendererInfo;
87
88
  setInfo(value: RendererInfo): void;
89
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
90
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
88
91
  readonly isVitualRenderer: boolean;
89
92
  readonly clickable: boolean;
90
93
  readonly draggable: boolean;
@@ -103,6 +106,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
103
106
  isExists(id: string): boolean;
104
107
  getChildById(id: string): any;
105
108
  readonly parent: any;
109
+ readonly ancestorField: any;
106
110
  readonly host: any;
107
111
  readonly firstChild: any;
108
112
  readonly index: any;
@@ -115,6 +119,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
115
119
  updateIsCommonConfig: (value: boolean) => void;
116
120
  addChild(props: {
117
121
  id: string;
122
+ type: string;
118
123
  label: string;
119
124
  path: string;
120
125
  isCommonConfig?: boolean | undefined;
@@ -136,9 +141,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
136
141
  calculateHighlightBox(root?: any): void;
137
142
  resetHighlightBox(root: any): void;
138
143
  updateState(state: any, replace?: boolean): void;
139
- setWidthMutable(value: any): void; /** 获取自定义组件
140
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
141
- */
144
+ setWidthMutable(value: any): void;
142
145
  setHeightMutable(value: any): void;
143
146
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
144
147
  theme: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -209,6 +212,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
209
212
  parentRegion: string;
210
213
  isCommonConfig: boolean;
211
214
  id: string;
215
+ type: string;
212
216
  label: string;
213
217
  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;
214
218
  path: string;
@@ -231,6 +235,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
231
235
  } & {
232
236
  readonly info: RendererInfo;
233
237
  setInfo(value: RendererInfo): void;
238
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
239
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
234
240
  readonly isVitualRenderer: boolean;
235
241
  readonly clickable: boolean;
236
242
  readonly draggable: boolean;
@@ -249,6 +255,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
249
255
  isExists(id: string): boolean;
250
256
  getChildById(id: string): any;
251
257
  readonly parent: any;
258
+ readonly ancestorField: any;
252
259
  readonly host: any;
253
260
  readonly firstChild: any;
254
261
  readonly index: any;
@@ -261,6 +268,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
261
268
  updateIsCommonConfig: (value: boolean) => void;
262
269
  addChild(props: {
263
270
  id: string;
271
+ type: string;
264
272
  label: string;
265
273
  path: string;
266
274
  isCommonConfig?: boolean | undefined;
@@ -282,15 +290,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
282
290
  calculateHighlightBox(root?: any): void;
283
291
  resetHighlightBox(root: any): void;
284
292
  updateState(state: any, replace?: boolean): void;
285
- setWidthMutable(value: any): void; /** 获取自定义组件
286
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
287
- */
293
+ setWidthMutable(value: any): void;
288
294
  setHeightMutable(value: any): void;
289
295
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
290
296
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
291
297
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
292
298
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
293
299
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
300
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
294
301
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
295
302
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
296
303
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -313,6 +320,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
313
320
  } & {
314
321
  readonly info: RendererInfo;
315
322
  setInfo(value: RendererInfo): void;
323
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
324
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
316
325
  readonly isVitualRenderer: boolean;
317
326
  readonly clickable: boolean;
318
327
  readonly draggable: boolean;
@@ -331,6 +340,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
331
340
  isExists(id: string): boolean;
332
341
  getChildById(id: string): any;
333
342
  readonly parent: any;
343
+ readonly ancestorField: any;
334
344
  readonly host: any;
335
345
  readonly firstChild: any;
336
346
  readonly index: any;
@@ -343,6 +353,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
343
353
  updateIsCommonConfig: (value: boolean) => void;
344
354
  addChild(props: {
345
355
  id: string;
356
+ type: string;
346
357
  label: string;
347
358
  path: string;
348
359
  isCommonConfig?: boolean | undefined;
@@ -364,12 +375,10 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
364
375
  calculateHighlightBox(root?: any): void;
365
376
  resetHighlightBox(root: any): void;
366
377
  updateState(state: any, replace?: boolean): void;
367
- setWidthMutable(value: any): void; /** 获取自定义组件
368
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
369
- */
378
+ setWidthMutable(value: any): void;
370
379
  setHeightMutable(value: any): void;
371
380
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
372
- getNodeById(id: string, region?: string): EditorNodeType | undefined;
381
+ getNodeById(id: string, regionOrType?: string): EditorNodeType | undefined;
373
382
  readonly activeNodeInfo: RendererInfo | null | undefined;
374
383
  getSchema(id?: string): any;
375
384
  getSchemaParentById(id: string): any;
@@ -394,6 +403,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
394
403
  parentRegion: string;
395
404
  isCommonConfig: boolean;
396
405
  id: string;
406
+ type: string;
397
407
  label: string;
398
408
  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;
399
409
  path: string;
@@ -416,6 +426,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
416
426
  } & {
417
427
  readonly info: RendererInfo;
418
428
  setInfo(value: RendererInfo): void;
429
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
430
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
419
431
  readonly isVitualRenderer: boolean;
420
432
  readonly clickable: boolean;
421
433
  readonly draggable: boolean;
@@ -434,6 +446,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
434
446
  isExists(id: string): boolean;
435
447
  getChildById(id: string): any;
436
448
  readonly parent: any;
449
+ readonly ancestorField: any;
437
450
  readonly host: any;
438
451
  readonly firstChild: any;
439
452
  readonly index: any;
@@ -446,6 +459,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
446
459
  updateIsCommonConfig: (value: boolean) => void;
447
460
  addChild(props: {
448
461
  id: string;
462
+ type: string;
449
463
  label: string;
450
464
  path: string;
451
465
  isCommonConfig?: boolean | undefined;
@@ -467,15 +481,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
467
481
  calculateHighlightBox(root?: any): void;
468
482
  resetHighlightBox(root: any): void;
469
483
  updateState(state: any, replace?: boolean): void;
470
- setWidthMutable(value: any): void; /** 获取自定义组件
471
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
472
- */
484
+ setWidthMutable(value: any): void;
473
485
  setHeightMutable(value: any): void;
474
486
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
475
487
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
476
488
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
477
489
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
478
490
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
491
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
479
492
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
480
493
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
481
494
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -498,6 +511,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
498
511
  } & {
499
512
  readonly info: RendererInfo;
500
513
  setInfo(value: RendererInfo): void;
514
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
515
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
501
516
  readonly isVitualRenderer: boolean;
502
517
  readonly clickable: boolean;
503
518
  readonly draggable: boolean;
@@ -516,6 +531,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
516
531
  isExists(id: string): boolean;
517
532
  getChildById(id: string): any;
518
533
  readonly parent: any;
534
+ readonly ancestorField: any;
519
535
  readonly host: any;
520
536
  readonly firstChild: any;
521
537
  readonly index: any;
@@ -528,6 +544,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
528
544
  updateIsCommonConfig: (value: boolean) => void;
529
545
  addChild(props: {
530
546
  id: string;
547
+ type: string;
531
548
  label: string;
532
549
  path: string;
533
550
  isCommonConfig?: boolean | undefined;
@@ -549,9 +566,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
549
566
  calculateHighlightBox(root?: any): void;
550
567
  resetHighlightBox(root: any): void;
551
568
  updateState(state: any, replace?: boolean): void;
552
- setWidthMutable(value: any): void; /** 获取自定义组件
553
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
554
- */
569
+ setWidthMutable(value: any): void;
555
570
  setHeightMutable(value: any): void;
556
571
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
557
572
  readonly activePath: ({
@@ -559,6 +574,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
559
574
  parentRegion: string;
560
575
  isCommonConfig: boolean;
561
576
  id: string;
577
+ type: string;
562
578
  label: string;
563
579
  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;
564
580
  path: string;
@@ -581,6 +597,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
581
597
  } & {
582
598
  readonly info: RendererInfo;
583
599
  setInfo(value: RendererInfo): void;
600
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
601
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
584
602
  readonly isVitualRenderer: boolean;
585
603
  readonly clickable: boolean;
586
604
  readonly draggable: boolean;
@@ -599,6 +617,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
599
617
  isExists(id: string): boolean;
600
618
  getChildById(id: string): any;
601
619
  readonly parent: any;
620
+ readonly ancestorField: any;
602
621
  readonly host: any;
603
622
  readonly firstChild: any;
604
623
  readonly index: any;
@@ -611,6 +630,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
611
630
  updateIsCommonConfig: (value: boolean) => void;
612
631
  addChild(props: {
613
632
  id: string;
633
+ type: string;
614
634
  label: string;
615
635
  path: string;
616
636
  isCommonConfig?: boolean | undefined;
@@ -632,15 +652,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
632
652
  calculateHighlightBox(root?: any): void;
633
653
  resetHighlightBox(root: any): void;
634
654
  updateState(state: any, replace?: boolean): void;
635
- setWidthMutable(value: any): void; /** 获取自定义组件
636
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
637
- */
655
+ setWidthMutable(value: any): void;
638
656
  setHeightMutable(value: any): void;
639
657
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
640
658
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
641
659
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
642
660
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
643
661
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
662
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
644
663
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
645
664
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
646
665
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -663,6 +682,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
663
682
  } & {
664
683
  readonly info: RendererInfo;
665
684
  setInfo(value: RendererInfo): void;
685
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
686
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
666
687
  readonly isVitualRenderer: boolean;
667
688
  readonly clickable: boolean;
668
689
  readonly draggable: boolean;
@@ -681,6 +702,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
681
702
  isExists(id: string): boolean;
682
703
  getChildById(id: string): any;
683
704
  readonly parent: any;
705
+ readonly ancestorField: any;
684
706
  readonly host: any;
685
707
  readonly firstChild: any;
686
708
  readonly index: any;
@@ -693,6 +715,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
693
715
  updateIsCommonConfig: (value: boolean) => void;
694
716
  addChild(props: {
695
717
  id: string;
718
+ type: string;
696
719
  label: string;
697
720
  path: string;
698
721
  isCommonConfig?: boolean | undefined;
@@ -714,9 +737,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
714
737
  calculateHighlightBox(root?: any): void;
715
738
  resetHighlightBox(root: any): void;
716
739
  updateState(state: any, replace?: boolean): void;
717
- setWidthMutable(value: any): void; /** 获取自定义组件
718
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
719
- */
740
+ setWidthMutable(value: any): void;
720
741
  setHeightMutable(value: any): void;
721
742
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
722
743
  getNodePathById(id: string): ({
@@ -724,6 +745,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
724
745
  parentRegion: string;
725
746
  isCommonConfig: boolean;
726
747
  id: string;
748
+ type: string;
727
749
  label: string;
728
750
  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;
729
751
  path: string;
@@ -746,6 +768,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
746
768
  } & {
747
769
  readonly info: RendererInfo;
748
770
  setInfo(value: RendererInfo): void;
771
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
772
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
749
773
  readonly isVitualRenderer: boolean;
750
774
  readonly clickable: boolean;
751
775
  readonly draggable: boolean;
@@ -764,6 +788,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
764
788
  isExists(id: string): boolean;
765
789
  getChildById(id: string): any;
766
790
  readonly parent: any;
791
+ readonly ancestorField: any;
767
792
  readonly host: any;
768
793
  readonly firstChild: any;
769
794
  readonly index: any;
@@ -776,6 +801,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
776
801
  updateIsCommonConfig: (value: boolean) => void;
777
802
  addChild(props: {
778
803
  id: string;
804
+ type: string;
779
805
  label: string;
780
806
  path: string;
781
807
  isCommonConfig?: boolean | undefined;
@@ -797,15 +823,14 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
797
823
  calculateHighlightBox(root?: any): void;
798
824
  resetHighlightBox(root: any): void;
799
825
  updateState(state: any, replace?: boolean): void;
800
- setWidthMutable(value: any): void; /** 获取自定义组件
801
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
802
- */
826
+ setWidthMutable(value: any): void;
803
827
  setHeightMutable(value: any): void;
804
828
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
805
829
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
806
830
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
807
831
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
808
832
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
833
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
809
834
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
810
835
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
811
836
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -828,6 +853,8 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
828
853
  } & {
829
854
  readonly info: RendererInfo;
830
855
  setInfo(value: RendererInfo): void;
856
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
857
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
831
858
  readonly isVitualRenderer: boolean;
832
859
  readonly clickable: boolean;
833
860
  readonly draggable: boolean;
@@ -846,6 +873,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
846
873
  isExists(id: string): boolean;
847
874
  getChildById(id: string): any;
848
875
  readonly parent: any;
876
+ readonly ancestorField: any;
849
877
  readonly host: any;
850
878
  readonly firstChild: any;
851
879
  readonly index: any;
@@ -858,6 +886,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
858
886
  updateIsCommonConfig: (value: boolean) => void;
859
887
  addChild(props: {
860
888
  id: string;
889
+ type: string;
861
890
  label: string;
862
891
  path: string;
863
892
  isCommonConfig?: boolean | undefined;
@@ -879,9 +908,7 @@ export declare const EditorStore: import("mobx-state-tree").IModelType<{
879
908
  calculateHighlightBox(root?: any): void;
880
909
  resetHighlightBox(root: any): void;
881
910
  updateState(state: any, replace?: boolean): void;
882
- setWidthMutable(value: any): void; /** 获取自定义组件
883
- * 备注:disabledRendererPlugin 为 true 则不在面板中展示
884
- */
911
+ setWidthMutable(value: any): void;
885
912
  setHeightMutable(value: any): void;
886
913
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
887
914
  readonly dragging: boolean;
@@ -5,11 +5,13 @@
5
5
  import { IAnyModelType, Instance } from 'mobx-state-tree';
6
6
  import { RegionConfig, RendererInfo } from '../plugin';
7
7
  import React from 'react';
8
+ import type { RendererConfig } from 'amis-core/lib/factory';
8
9
  export declare const EditorNode: import("mobx-state-tree").IModelType<{
9
10
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
10
11
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
11
12
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
12
13
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
14
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
13
15
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
14
16
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
15
17
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -32,6 +34,8 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
32
34
  } & {
33
35
  readonly info: RendererInfo;
34
36
  setInfo(value: RendererInfo): void;
37
+ readonly rendererConfig: RendererConfig | undefined;
38
+ setRendererConfig(value: RendererConfig): void;
35
39
  readonly isVitualRenderer: boolean;
36
40
  readonly clickable: boolean;
37
41
  readonly draggable: boolean;
@@ -50,6 +54,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
50
54
  isExists(id: string): boolean;
51
55
  getChildById(id: string): any;
52
56
  readonly parent: any;
57
+ readonly ancestorField: any;
53
58
  readonly host: any;
54
59
  readonly firstChild: any;
55
60
  readonly index: any;
@@ -62,6 +67,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
62
67
  updateIsCommonConfig: (value: boolean) => void;
63
68
  addChild(props: {
64
69
  id: string;
70
+ type: string;
65
71
  label: string;
66
72
  path: string;
67
73
  isCommonConfig?: boolean;
@@ -96,6 +102,7 @@ export declare const EditorNodeContext: React.Context<({
96
102
  parentRegion: string;
97
103
  isCommonConfig: boolean;
98
104
  id: string;
105
+ type: string;
99
106
  label: string;
100
107
  regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
101
108
  path: string;
@@ -118,6 +125,8 @@ export declare const EditorNodeContext: React.Context<({
118
125
  } & {
119
126
  readonly info: RendererInfo;
120
127
  setInfo(value: RendererInfo): void;
128
+ readonly rendererConfig: RendererConfig | undefined;
129
+ setRendererConfig(value: RendererConfig): void;
121
130
  readonly isVitualRenderer: boolean;
122
131
  readonly clickable: boolean;
123
132
  readonly draggable: boolean;
@@ -136,6 +145,7 @@ export declare const EditorNodeContext: React.Context<({
136
145
  isExists(id: string): boolean;
137
146
  getChildById(id: string): any;
138
147
  readonly parent: any;
148
+ readonly ancestorField: any;
139
149
  readonly host: any;
140
150
  readonly firstChild: any;
141
151
  readonly index: any;
@@ -148,6 +158,7 @@ export declare const EditorNodeContext: React.Context<({
148
158
  updateIsCommonConfig: (value: boolean) => void;
149
159
  addChild(props: {
150
160
  id: string;
161
+ type: string;
151
162
  label: string;
152
163
  path: string;
153
164
  isCommonConfig?: boolean;
@@ -181,6 +192,7 @@ export declare const EditorNodeContext: React.Context<({
181
192
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
182
193
  isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
183
194
  id: import("mobx-state-tree").IType<string | undefined, string, string>;
195
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
184
196
  label: import("mobx-state-tree").IType<string | undefined, string, string>;
185
197
  regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
186
198
  path: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -203,6 +215,8 @@ export declare const EditorNodeContext: React.Context<({
203
215
  } & {
204
216
  readonly info: RendererInfo;
205
217
  setInfo(value: RendererInfo): void;
218
+ readonly rendererConfig: RendererConfig | undefined;
219
+ setRendererConfig(value: RendererConfig): void;
206
220
  readonly isVitualRenderer: boolean;
207
221
  readonly clickable: boolean;
208
222
  readonly draggable: boolean;
@@ -221,6 +235,7 @@ export declare const EditorNodeContext: React.Context<({
221
235
  isExists(id: string): boolean;
222
236
  getChildById(id: string): any;
223
237
  readonly parent: any;
238
+ readonly ancestorField: any;
224
239
  readonly host: any;
225
240
  readonly firstChild: any;
226
241
  readonly index: any;
@@ -233,6 +248,7 @@ export declare const EditorNodeContext: React.Context<({
233
248
  updateIsCommonConfig: (value: boolean) => void;
234
249
  addChild(props: {
235
250
  id: string;
251
+ type: string;
236
252
  label: string;
237
253
  path: string;
238
254
  isCommonConfig?: boolean;