amis-editor-core 5.2.0-beta.0 → 5.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/11f1b17dde564e3fdbb0.svg +16 -0
  2. package/{static/empty.png → lib/6dbcbb49b6fd405190a9.png} +0 -0
  3. package/lib/builder/ApiBuilder.d.ts +1 -0
  4. package/lib/builder/DSBuilder.d.ts +243 -0
  5. package/lib/component/Editor.d.ts +8 -5
  6. package/lib/component/RegionWrapper.d.ts +230 -0
  7. package/lib/component/ScaffoldModal.d.ts +13 -4
  8. package/lib/component/VRenderer.d.ts +230 -0
  9. package/lib/component/base/SearchPanel.d.ts +0 -6
  10. package/lib/component/base/ShortcutKey.d.ts +23 -0
  11. package/lib/component/factory.d.ts +3 -2
  12. package/lib/d1756920baa91367b956.svg +8 -0
  13. package/lib/icons/index.d.ts +2 -2
  14. package/lib/index.d.ts +6 -3
  15. package/lib/index.min.js +1 -1
  16. package/lib/locale/en-US.d.ts +1 -0
  17. package/lib/locale/index.d.ts +2 -0
  18. package/lib/locale/zh-CN.d.ts +1 -0
  19. package/lib/manager.d.ts +260 -9
  20. package/lib/plugin/AvailableRenderers.d.ts +0 -3
  21. package/lib/plugin/BasicToolbar.d.ts +0 -3
  22. package/lib/plugin/Code.d.ts +0 -3
  23. package/lib/plugin/DataDebug.d.ts +1 -3
  24. package/lib/plugin/Outline.d.ts +0 -3
  25. package/lib/plugin.d.ts +61 -10
  26. package/lib/store/editor.d.ts +1039 -1
  27. package/lib/store/node.d.ts +3 -0
  28. package/lib/style.css +1 -1
  29. package/lib/tpl.d.ts +803 -0
  30. package/lib/util.d.ts +14 -5
  31. package/package.json +19 -12
  32. package/scss/_backTop.scss +0 -55
  33. package/scss/_bcn.scss +0 -157
  34. package/scss/_classname-picker.scss +0 -57
  35. package/scss/_context-menu-setting.scss +0 -109
  36. package/scss/_data-chain.scss +0 -39
  37. package/scss/_leftPanel.scss +0 -237
  38. package/scss/_mixin.scss +0 -95
  39. package/scss/_outline.scss +0 -206
  40. package/scss/_renderers.scss +0 -536
  41. package/scss/_rightPanel.scss +0 -424
  42. package/scss/_searchRendererPanel.scss +0 -244
  43. package/scss/_selection.scss +0 -6
  44. package/scss/_tableview.scss +0 -53
  45. package/scss/_targetname.scss +0 -30
  46. package/scss/_tooltip.scss +0 -111
  47. package/scss/_variables.scss +0 -41
  48. package/scss/control/_api-control.scss +0 -61
  49. package/scss/control/_badge-control.scss +0 -46
  50. package/scss/control/_dateshortcut-control.scss +0 -108
  51. package/scss/control/_formItem-control.scss +0 -121
  52. package/scss/control/_formula-control.scss +0 -108
  53. package/scss/control/_option-control.scss +0 -170
  54. package/scss/control/_switch-more-control.scss +0 -121
  55. package/scss/control/_validation-control.scss +0 -101
  56. package/scss/editor.scss +0 -1563
  57. package/scss/style-control/_background.scss +0 -204
  58. package/scss/style-control/_border.scss +0 -105
  59. package/scss/style-control/_box-model.scss +0 -100
  60. package/scss/style-control/_box-shadow.scss +0 -12
  61. package/scss/style-control/_font.scss +0 -28
  62. package/scss/style-control/_size.scss +0 -40
  63. package/scss/style-control/_style-common.scss +0 -22
  64. package/static/Code-hover.png +0 -0
  65. package/static/Code.png +0 -0
  66. package/static/Outline-hover.png +0 -0
  67. package/static/Outline.png +0 -0
  68. package/static/Renderers-hover.png +0 -0
  69. package/static/Renderers.png +0 -0
  70. package/static/side_hide_left.svg +0 -10
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 2</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="补充滚动出现阴影样式" transform="translate(-404.000000, -558.000000)">
6
+ <g id="编组-42备份-3" transform="translate(212.000000, 163.000000)">
7
+ <g id="编组-43" transform="translate(25.000000, 101.000000)">
8
+ <g id="编组-2" transform="translate(167.000000, 294.000000)">
9
+ <rect id="矩形" stroke="#979797" fill="#D8D8D8" opacity="0" x="0.5" y="0.5" width="15" height="15"></rect>
10
+ <path d="M13.5204,4.00008 L14.2274,4.70608 L7.155,11.77708 L7.157,11.77828 L6.449,12.48528 L1.5,7.53528 L2.206,6.82928 L6.448,11.07108 L13.5204,4.00008 Z" id="图标-填色" fill="#2468F2"></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,243 @@
1
+ /**
2
+ * 数据源构造器,可用于对接当前amis中的扩展数据源
3
+ */
4
+ import { ButtonSchema } from 'amis/lib/renderers/Action';
5
+ import { CRUD2Schema } from 'amis/lib/renderers/CRUD2';
6
+ import { FormSchema, SchemaCollection, SchemaObject } from 'amis/lib/Schema';
7
+ import { EditorNodeType } from '../store/node';
8
+ export declare enum DSBehavior {
9
+ create = "create",
10
+ view = "view",
11
+ update = "update",
12
+ table = "table",
13
+ filter = "filter"
14
+ }
15
+ export interface DSField {
16
+ value: string;
17
+ label: string;
18
+ [propKey: string]: any;
19
+ }
20
+ export interface DSFieldGroup {
21
+ value: string;
22
+ label: string;
23
+ children: DSField[];
24
+ [propKey: string]: any;
25
+ }
26
+ /**
27
+ * 支持数据源配置的一些属性名
28
+ */
29
+ export declare enum DSGrain {
30
+ entity = "entity",
31
+ list = "list",
32
+ piece = "piece"
33
+ }
34
+ export declare const DSFeature: {
35
+ List: {
36
+ value: string;
37
+ label: string;
38
+ };
39
+ Insert: {
40
+ value: string;
41
+ label: string;
42
+ };
43
+ View: {
44
+ value: string;
45
+ label: string;
46
+ };
47
+ Edit: {
48
+ value: string;
49
+ label: string;
50
+ };
51
+ Delete: {
52
+ value: string;
53
+ label: string;
54
+ };
55
+ BulkEdit: {
56
+ value: string;
57
+ label: string;
58
+ };
59
+ BulkDelete: {
60
+ value: string;
61
+ label: string;
62
+ };
63
+ Import: {
64
+ value: string;
65
+ label: string;
66
+ };
67
+ Export: {
68
+ value: string;
69
+ label: string;
70
+ };
71
+ SimpleQuery: {
72
+ value: string;
73
+ label: string;
74
+ };
75
+ FuzzyQuery: {
76
+ value: string;
77
+ label: string;
78
+ };
79
+ AdvancedQuery: {
80
+ value: string;
81
+ label: string;
82
+ };
83
+ };
84
+ export declare type DSFeatureType = keyof typeof DSFeature;
85
+ export interface DSSourceSettingFormConfig {
86
+ /** 数据源字段名 */
87
+ name?: string;
88
+ /** 数据源字段标题 */
89
+ label?: string;
90
+ /** 所需要配置的数据粒度 */
91
+ grain?: DSGrain;
92
+ /** 数据源所被使用的功能场景 */
93
+ feat: DSFeatureType;
94
+ /** 是否是在CRUD场景下,有的数据源在CRUD中可以统一设置 */
95
+ inCrud?: boolean;
96
+ /** 是否在脚手架中 */
97
+ inScaffold?: boolean;
98
+ }
99
+ /**
100
+ * 数据源选择构造器
101
+ */
102
+ export declare abstract class DSBuilder {
103
+ /**
104
+ * 数据源名字,中文,可以覆盖同名
105
+ */
106
+ static type: string;
107
+ name: string;
108
+ order: number;
109
+ /**
110
+ * 数据源schema运行前转换
111
+ */
112
+ static schemaFilter?: (schema: any) => any;
113
+ /**
114
+ * 根据组件、属性名判断是否可以使用这个数据源
115
+ */
116
+ static accessable: (controlType: string, propKey: string) => boolean;
117
+ features: Array<keyof typeof DSFeature>;
118
+ /**
119
+ * 根据值内容和schema配置状态,看是否是当前数据源
120
+ */
121
+ abstract match(value: any, schema?: SchemaObject): boolean;
122
+ /**
123
+ * 生成数据源的配置表单
124
+ */
125
+ abstract makeSourceSettingForm(config: DSSourceSettingFormConfig): SchemaObject[];
126
+ abstract makeFieldsSettingForm(config: {
127
+ /** 数据源字段名 */
128
+ sourceKey?: string;
129
+ feat: DSFeatureType;
130
+ inCrud?: boolean;
131
+ inScaffold?: boolean;
132
+ /** 初次设置字段还是选择字段 */
133
+ setting?: boolean;
134
+ }): SchemaObject[];
135
+ /**
136
+ * 生成字段的筛选配置表单
137
+ */
138
+ abstract makeFieldFilterSetting(config: {
139
+ /** 数据源字段名 */
140
+ sourceKey: string;
141
+ schema: any;
142
+ fieldName: string;
143
+ }): Promise<SchemaObject[]>;
144
+ /**
145
+ * 数据源schema生成
146
+ */
147
+ abstract resolveSourceSchema(config: {
148
+ /** schema */
149
+ schema: SchemaObject;
150
+ /** 数据源配置结果 */
151
+ setting: any;
152
+ /** 数据源字段名 */
153
+ name?: string;
154
+ feat?: DSFeatureType;
155
+ /** 是否是在CRUD场景下,有的数据源在CRUD中可以统一设置 */
156
+ inCrud?: boolean;
157
+ inScaffold?: boolean;
158
+ }): void;
159
+ /**
160
+ * 数据删除schema生成
161
+ */
162
+ abstract resolveDeleteSchema(config: {
163
+ schema: ButtonSchema;
164
+ setting: any;
165
+ feat: 'BulkDelete' | 'Delete';
166
+ name?: string;
167
+ }): any;
168
+ /**
169
+ * 生成数据创建表单schema
170
+ */
171
+ abstract resolveCreateSchema(config: {
172
+ /** schema */
173
+ schema: FormSchema;
174
+ /** 脚手架配置数据 */
175
+ setting: any;
176
+ feat: 'Insert' | 'Edit' | 'BulkEdit';
177
+ /** 数据源字段名 */
178
+ name?: string;
179
+ /** 是否是在CRUD场景下,有的数据源在CRUD中可以统一设置 */
180
+ inCrud?: boolean;
181
+ }): void;
182
+ /**
183
+ * 生成数据表格列
184
+ */
185
+ abstract resolveTableSchema(config: {
186
+ /** schema */
187
+ schema: CRUD2Schema;
188
+ /** 脚手架配置数据 */
189
+ setting: any;
190
+ /** 数据源字段名 */
191
+ name?: string;
192
+ /** 是否是在CRUD场景下,有的数据源在CRUD中可以统一设置 */
193
+ inCrud?: boolean;
194
+ }): void;
195
+ /**
196
+ * 生成数据表格列
197
+ */
198
+ abstract resolveViewSchema(config: {
199
+ /** 脚手架配置数据 */
200
+ setting: any;
201
+ feat?: DSFeatureType;
202
+ }): SchemaObject[];
203
+ abstract resolveSimpleFilterSchema(config: {
204
+ setting: any;
205
+ }): SchemaObject[];
206
+ abstract resolveAdvancedFilterSchema(config: {
207
+ setting: any;
208
+ }): SchemaObject | void;
209
+ abstract makeTableColumnsByFields(fields: any[]): SchemaObject[];
210
+ /**
211
+ * 当前上下文中使用的字段
212
+ */
213
+ abstract getContextFileds(config: {
214
+ schema: any;
215
+ sourceKey: string;
216
+ feat: DSFeatureType;
217
+ }): Promise<DSField[] | void>;
218
+ /**
219
+ * 上下文可以使用的字段
220
+ */
221
+ abstract getAvailableContextFileds(config: {
222
+ schema: any;
223
+ sourceKey: string;
224
+ feat: DSFeatureType;
225
+ }, target: EditorNodeType): Promise<SchemaCollection | void>;
226
+ }
227
+ export declare const registerDSBuilder: (builderKClass: any) => void;
228
+ /**
229
+ * 构造器管理工具,便于更好的缓存
230
+ */
231
+ export declare class DSBuilderManager {
232
+ /** 所有可用的数据源构造器实例 */
233
+ builders: {
234
+ [key: string]: DSBuilder;
235
+ };
236
+ get builderNum(): number;
237
+ constructor(type: string, propKey: string);
238
+ resolveBuilderBySetting(setting: any): DSBuilder;
239
+ resolveBuilderBySchema(schema: any, propKey: string): DSBuilder;
240
+ getDefaultBuilderName(): string;
241
+ getDSSwitch(setting?: any): any;
242
+ collectFromBuilders(callee: (builder: DSBuilder, builderName: string) => any): any[];
243
+ }
@@ -3,8 +3,7 @@ import { EditorStoreType } from '../store/editor';
3
3
  import { SchemaObject } from 'amis/lib/Schema';
4
4
  import { EditorManager, PluginClass } from '../manager';
5
5
  import { RenderOptions } from 'amis';
6
- import { PluginEventListener } from '../plugin';
7
- import type { ActionConfigItemsMap, ActionTypeNode } from 'amis-editor-comp/dist/renderers/event-action';
6
+ import { PluginEventListener, RendererPluginAction } from '../plugin';
8
7
  export interface EditorProps extends PluginEventListener {
9
8
  value: SchemaObject;
10
9
  onChange: (value: SchemaObject) => void;
@@ -18,6 +17,7 @@ export interface EditorProps extends PluginEventListener {
18
17
  theme?: string;
19
18
  showCustomRenderersPanel?: boolean;
20
19
  amisDocHost?: string;
20
+ superEditorData?: any;
21
21
  withSuperDataSchema?: boolean;
22
22
  dataBindingChange?: (value: string, data: any, manager?: EditorManager) => void;
23
23
  /**
@@ -46,14 +46,17 @@ export interface EditorProps extends PluginEventListener {
46
46
  * 事件动作面板相关配置
47
47
  */
48
48
  actionOptions?: {
49
+ showOldEntry?: boolean;
49
50
  /**
50
51
  * 通用动作集(事件动作面板左侧动作树)
51
52
  */
52
- actionTreeGetter?: (actionTree: ActionTypeNode[]) => ActionTypeNode[];
53
+ actionTreeGetter?: (actionTree: RendererPluginAction[]) => RendererPluginAction[];
53
54
  /**
54
55
  * 自定义动作配置
55
56
  */
56
- customActionGetter?: (manager: EditorManager) => ActionConfigItemsMap;
57
+ customActionGetter?: (manager: EditorManager) => {
58
+ [propName: string]: RendererPluginAction;
59
+ };
57
60
  };
58
61
  onUndo?: () => void;
59
62
  onRedo?: () => void;
@@ -66,7 +69,7 @@ export default class Editor extends Component<EditorProps> {
66
69
  readonly mainRef: React.RefObject<HTMLDivElement>;
67
70
  unReaction: () => void;
68
71
  lastResult: any;
69
- curCopySchemaId: any;
72
+ curCopySchemaData: any;
70
73
  static defaultProps: {
71
74
  autoFocus: boolean;
72
75
  };
@@ -79,6 +79,121 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
79
79
  readonly schemaParent: any;
80
80
  readonly isSecondFactor: boolean;
81
81
  } & {
82
+ getClosestParentByType: (type: string) => void | ({
83
+ parentId: string;
84
+ parentRegion: string;
85
+ isCommonConfig: boolean;
86
+ id: string;
87
+ type: string;
88
+ label: string;
89
+ regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
90
+ path: string;
91
+ schemaPath: string;
92
+ region: string;
93
+ preferTag: string;
94
+ state: any;
95
+ widthMutable: boolean;
96
+ heightMutable: boolean;
97
+ memberIndex: number;
98
+ folded: boolean;
99
+ patched: boolean;
100
+ x: number;
101
+ y: number;
102
+ w: number;
103
+ h: number;
104
+ 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]>>;
105
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
106
+ getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
107
+ } & {
108
+ readonly info: RendererInfo;
109
+ setInfo(value: RendererInfo): void;
110
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
111
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
112
+ readonly isVitualRenderer: boolean;
113
+ readonly clickable: boolean;
114
+ readonly draggable: boolean;
115
+ readonly moveable: boolean;
116
+ readonly canMoveUp: boolean;
117
+ readonly canMoveDown: boolean;
118
+ readonly removable: boolean;
119
+ readonly duplicatable: boolean;
120
+ readonly replaceable: boolean;
121
+ memberImmutable(region: string): boolean;
122
+ readonly isRegion: boolean;
123
+ readonly childRegions: any[];
124
+ readonly uniqueChildren: any[];
125
+ readonly sameIdChild: any;
126
+ readonly singleRegion: boolean;
127
+ isExists(id: string): boolean;
128
+ getChildById(id: string): any;
129
+ readonly parent: any;
130
+ readonly ancestorField: any;
131
+ readonly host: any;
132
+ readonly firstChild: any;
133
+ readonly index: any;
134
+ readonly prevSibling: any;
135
+ readonly nextSibling: any;
136
+ readonly schema: any;
137
+ readonly schemaParent: any;
138
+ readonly isSecondFactor: boolean;
139
+ } & any & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
140
+ parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
141
+ parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
142
+ isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
143
+ id: import("mobx-state-tree").IType<string | undefined, string, string>;
144
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
145
+ label: import("mobx-state-tree").IType<string | undefined, string, string>;
146
+ regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
147
+ path: import("mobx-state-tree").IType<string | undefined, string, string>;
148
+ schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
149
+ region: import("mobx-state-tree").IType<string | undefined, string, string>;
150
+ preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
151
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
152
+ widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
153
+ heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
154
+ memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
155
+ folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
156
+ patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
157
+ x: import("mobx-state-tree").IType<number | undefined, number, number>;
158
+ y: import("mobx-state-tree").IType<number | undefined, number, number>;
159
+ w: import("mobx-state-tree").IType<number | undefined, number, number>;
160
+ h: import("mobx-state-tree").IType<number | undefined, number, number>;
161
+ children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
162
+ }, {
163
+ getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
164
+ } & {
165
+ readonly info: RendererInfo;
166
+ setInfo(value: RendererInfo): void;
167
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
168
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
169
+ readonly isVitualRenderer: boolean;
170
+ readonly clickable: boolean;
171
+ readonly draggable: boolean;
172
+ readonly moveable: boolean;
173
+ readonly canMoveUp: boolean;
174
+ readonly canMoveDown: boolean;
175
+ readonly removable: boolean;
176
+ readonly duplicatable: boolean;
177
+ readonly replaceable: boolean;
178
+ memberImmutable(region: string): boolean;
179
+ readonly isRegion: boolean;
180
+ readonly childRegions: any[];
181
+ readonly uniqueChildren: any[];
182
+ readonly sameIdChild: any;
183
+ readonly singleRegion: boolean;
184
+ isExists(id: string): boolean;
185
+ getChildById(id: string): any;
186
+ readonly parent: any;
187
+ readonly ancestorField: any;
188
+ readonly host: any;
189
+ readonly firstChild: any;
190
+ readonly index: any;
191
+ readonly prevSibling: any;
192
+ readonly nextSibling: any;
193
+ readonly schema: any;
194
+ readonly schemaParent: any;
195
+ readonly isSecondFactor: boolean;
196
+ } & any, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>);
82
197
  updateIsCommonConfig: (value: boolean) => void;
83
198
  addChild(props: {
84
199
  id: string;
@@ -164,6 +279,121 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
164
279
  readonly schemaParent: any;
165
280
  readonly isSecondFactor: boolean;
166
281
  } & {
282
+ getClosestParentByType: (type: string) => void | ({
283
+ parentId: string;
284
+ parentRegion: string;
285
+ isCommonConfig: boolean;
286
+ id: string;
287
+ type: string;
288
+ label: string;
289
+ regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
290
+ path: string;
291
+ schemaPath: string;
292
+ region: string;
293
+ preferTag: string;
294
+ state: any;
295
+ widthMutable: boolean;
296
+ heightMutable: boolean;
297
+ memberIndex: number;
298
+ folded: boolean;
299
+ patched: boolean;
300
+ x: number;
301
+ y: number;
302
+ w: number;
303
+ h: number;
304
+ 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]>>;
305
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
306
+ getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
307
+ } & {
308
+ readonly info: RendererInfo;
309
+ setInfo(value: RendererInfo): void;
310
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
311
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
312
+ readonly isVitualRenderer: boolean;
313
+ readonly clickable: boolean;
314
+ readonly draggable: boolean;
315
+ readonly moveable: boolean;
316
+ readonly canMoveUp: boolean;
317
+ readonly canMoveDown: boolean;
318
+ readonly removable: boolean;
319
+ readonly duplicatable: boolean;
320
+ readonly replaceable: boolean;
321
+ memberImmutable(region: string): boolean;
322
+ readonly isRegion: boolean;
323
+ readonly childRegions: any[];
324
+ readonly uniqueChildren: any[];
325
+ readonly sameIdChild: any;
326
+ readonly singleRegion: boolean;
327
+ isExists(id: string): boolean;
328
+ getChildById(id: string): any;
329
+ readonly parent: any;
330
+ readonly ancestorField: any;
331
+ readonly host: any;
332
+ readonly firstChild: any;
333
+ readonly index: any;
334
+ readonly prevSibling: any;
335
+ readonly nextSibling: any;
336
+ readonly schema: any;
337
+ readonly schemaParent: any;
338
+ readonly isSecondFactor: boolean;
339
+ } & any & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
340
+ parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
341
+ parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
342
+ isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
343
+ id: import("mobx-state-tree").IType<string | undefined, string, string>;
344
+ type: import("mobx-state-tree").IType<string | undefined, string, string>;
345
+ label: import("mobx-state-tree").IType<string | undefined, string, string>;
346
+ regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
347
+ path: import("mobx-state-tree").IType<string | undefined, string, string>;
348
+ schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
349
+ region: import("mobx-state-tree").IType<string | undefined, string, string>;
350
+ preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
351
+ state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
352
+ widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
353
+ heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
354
+ memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
355
+ folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
356
+ patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
357
+ x: import("mobx-state-tree").IType<number | undefined, number, number>;
358
+ y: import("mobx-state-tree").IType<number | undefined, number, number>;
359
+ w: import("mobx-state-tree").IType<number | undefined, number, number>;
360
+ h: import("mobx-state-tree").IType<number | undefined, number, number>;
361
+ children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
362
+ }, {
363
+ getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
364
+ } & {
365
+ readonly info: RendererInfo;
366
+ setInfo(value: RendererInfo): void;
367
+ readonly rendererConfig: import("amis-core").RendererConfig | undefined;
368
+ setRendererConfig(value: import("amis-core").RendererConfig): void;
369
+ readonly isVitualRenderer: boolean;
370
+ readonly clickable: boolean;
371
+ readonly draggable: boolean;
372
+ readonly moveable: boolean;
373
+ readonly canMoveUp: boolean;
374
+ readonly canMoveDown: boolean;
375
+ readonly removable: boolean;
376
+ readonly duplicatable: boolean;
377
+ readonly replaceable: boolean;
378
+ memberImmutable(region: string): boolean;
379
+ readonly isRegion: boolean;
380
+ readonly childRegions: any[];
381
+ readonly uniqueChildren: any[];
382
+ readonly sameIdChild: any;
383
+ readonly singleRegion: boolean;
384
+ isExists(id: string): boolean;
385
+ getChildById(id: string): any;
386
+ readonly parent: any;
387
+ readonly ancestorField: any;
388
+ readonly host: any;
389
+ readonly firstChild: any;
390
+ readonly index: any;
391
+ readonly prevSibling: any;
392
+ readonly nextSibling: any;
393
+ readonly schema: any;
394
+ readonly schemaParent: any;
395
+ readonly isSecondFactor: boolean;
396
+ } & any, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>);
167
397
  updateIsCommonConfig: (value: boolean) => void;
168
398
  addChild(props: {
169
399
  id: string;
@@ -6,19 +6,28 @@ export interface SubEditorProps {
6
6
  manager: EditorManager;
7
7
  theme?: string;
8
8
  }
9
- export declare class ScaffoldModal extends React.Component<SubEditorProps> {
9
+ interface ScaffoldState {
10
+ step: number;
11
+ }
12
+ export declare class ScaffoldModal extends React.Component<SubEditorProps, ScaffoldState> {
13
+ constructor(props: SubEditorProps);
10
14
  handleConfirm([values]: any): void;
11
15
  buildSchema(): {
12
- [x: string]: any;
16
+ wrapperComponent: string;
17
+ data: {
18
+ __step: number;
19
+ };
13
20
  type: string;
14
21
  wrapWithPanel: boolean;
15
22
  initApi: any;
16
23
  api: any;
17
- mode: "horizontal" | "inline" | "normal";
18
- wrapperComponent: string;
19
24
  };
20
25
  amisScope: any;
21
26
  scopeRef(scoped: any): void;
27
+ goToNextStep(): void;
28
+ goToPrevStep(): void;
22
29
  handleConfirmClick(): Promise<void>;
30
+ handleCancelClick(): void;
23
31
  render(): JSX.Element;
24
32
  }
33
+ export {};