amis-editor-core 6.14.0-beta.7 → 6.14.0-beta.9
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.
- package/esm/component/Panel/AMisCodeEditor.d.ts +0 -1
- package/esm/component/Panel/AvailableRenderersPanel.d.ts +3 -1
- package/esm/component/RegionWrapper.d.ts +46 -350
- package/esm/component/VRenderer.d.ts +40 -344
- package/esm/component/base/SchemaForm.d.ts +15 -768
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +17 -3788
- package/esm/manager.d.ts +43 -349
- package/esm/store/editor.d.ts +407 -2226
- package/esm/store/node.d.ts +4 -3
- package/esm/tpl.d.ts +1 -2
- package/esm/util.d.ts +1 -2
- package/lib/component/Panel/AMisCodeEditor.d.ts +0 -1
- package/lib/component/Panel/AvailableRenderersPanel.d.ts +3 -1
- package/lib/component/RegionWrapper.d.ts +46 -350
- package/lib/component/VRenderer.d.ts +40 -344
- package/lib/component/base/SchemaForm.d.ts +15 -768
- package/lib/dnd/default.d.ts +1 -1
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +17 -3788
- package/lib/manager.d.ts +43 -349
- package/lib/store/editor.d.ts +407 -2226
- package/lib/store/node.d.ts +4 -3
- package/lib/tpl.d.ts +1 -2
- package/lib/util.d.ts +1 -2
- package/package.json +3 -3
|
@@ -38,7 +38,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
38
38
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
39
39
|
} & {
|
|
40
40
|
readonly info: RendererInfo;
|
|
41
|
-
getNodeById(id: string, regionOrType?: string
|
|
41
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
42
42
|
getNodeByComponentId(id: string): any;
|
|
43
43
|
setInfo(value: RendererInfo): void;
|
|
44
44
|
updateSharedContext(value: Record<string, any>): void;
|
|
@@ -72,7 +72,8 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
72
72
|
readonly schemaParent: any;
|
|
73
73
|
readonly isSecondFactor: boolean;
|
|
74
74
|
} & {
|
|
75
|
-
getClosestParentByType: (type: string) =>
|
|
75
|
+
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
76
|
+
getParentNodeByCB: (callback: (node: import("../store/node").EditorNodeSnapshot) => Boolean) => {
|
|
76
77
|
parentId: string;
|
|
77
78
|
parentRegion: string;
|
|
78
79
|
isCommonConfig: boolean;
|
|
@@ -102,160 +103,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
102
103
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
103
104
|
} & {
|
|
104
105
|
readonly info: RendererInfo;
|
|
105
|
-
getNodeById(id: string, regionOrType?: string
|
|
106
|
-
getNodeByComponentId(id: string): any;
|
|
107
|
-
setInfo(value: RendererInfo): void;
|
|
108
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
109
|
-
readonly rendererConfig: any;
|
|
110
|
-
setRendererConfig(value: RendererConfig): void;
|
|
111
|
-
readonly isVitualRenderer: boolean;
|
|
112
|
-
readonly clickable: boolean;
|
|
113
|
-
readonly draggable: boolean;
|
|
114
|
-
readonly moveable: boolean;
|
|
115
|
-
readonly canMoveUp: boolean;
|
|
116
|
-
readonly canMoveDown: boolean;
|
|
117
|
-
readonly removable: boolean;
|
|
118
|
-
readonly duplicatable: boolean;
|
|
119
|
-
readonly replaceable: boolean;
|
|
120
|
-
memberImmutable(region: string): boolean;
|
|
121
|
-
readonly isRegion: boolean;
|
|
122
|
-
readonly childRegions: any[];
|
|
123
|
-
readonly uniqueChildren: any[];
|
|
124
|
-
readonly sameIdChild: any;
|
|
125
|
-
readonly singleRegion: boolean;
|
|
126
|
-
isExists(id: string): boolean;
|
|
127
|
-
getChildById(id: string): any;
|
|
128
|
-
readonly parent: any;
|
|
129
|
-
readonly ancestorField: any;
|
|
130
|
-
readonly host: any;
|
|
131
|
-
readonly firstChild: any;
|
|
132
|
-
readonly index: any;
|
|
133
|
-
readonly prevSibling: any;
|
|
134
|
-
readonly nextSibling: any;
|
|
135
|
-
readonly schema: any;
|
|
136
|
-
readonly schemaParent: any;
|
|
137
|
-
readonly isSecondFactor: boolean;
|
|
138
|
-
} & any & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
139
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
140
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
141
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
142
|
-
isFormConfig: 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<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").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
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
162
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
163
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
164
|
-
}, {
|
|
165
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
166
|
-
} & {
|
|
167
|
-
readonly info: RendererInfo;
|
|
168
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
169
|
-
getNodeByComponentId(id: string): any;
|
|
170
|
-
setInfo(value: RendererInfo): void;
|
|
171
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
172
|
-
readonly rendererConfig: any;
|
|
173
|
-
setRendererConfig(value: RendererConfig): void;
|
|
174
|
-
readonly isVitualRenderer: boolean;
|
|
175
|
-
readonly clickable: boolean;
|
|
176
|
-
readonly draggable: boolean;
|
|
177
|
-
readonly moveable: boolean;
|
|
178
|
-
readonly canMoveUp: boolean;
|
|
179
|
-
readonly canMoveDown: boolean;
|
|
180
|
-
readonly removable: boolean;
|
|
181
|
-
readonly duplicatable: boolean;
|
|
182
|
-
readonly replaceable: boolean;
|
|
183
|
-
memberImmutable(region: string): boolean;
|
|
184
|
-
readonly isRegion: boolean;
|
|
185
|
-
readonly childRegions: any[];
|
|
186
|
-
readonly uniqueChildren: any[];
|
|
187
|
-
readonly sameIdChild: any;
|
|
188
|
-
readonly singleRegion: boolean;
|
|
189
|
-
isExists(id: string): boolean;
|
|
190
|
-
getChildById(id: string): any;
|
|
191
|
-
readonly parent: any;
|
|
192
|
-
readonly ancestorField: any;
|
|
193
|
-
readonly host: any;
|
|
194
|
-
readonly firstChild: any;
|
|
195
|
-
readonly index: any;
|
|
196
|
-
readonly prevSibling: any;
|
|
197
|
-
readonly nextSibling: any;
|
|
198
|
-
readonly schema: any;
|
|
199
|
-
readonly schemaParent: any;
|
|
200
|
-
readonly isSecondFactor: boolean;
|
|
201
|
-
} & any, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>);
|
|
202
|
-
getParentNodeByCB: (callback: (node: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
203
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
204
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
205
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
206
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
207
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
208
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
209
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
210
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
|
211
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
212
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
213
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
214
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
215
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
216
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
217
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
218
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
219
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
220
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
221
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
222
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
223
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
224
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
225
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
226
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
227
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
228
|
-
}>>) => Boolean) => {
|
|
229
|
-
parentId: string;
|
|
230
|
-
parentRegion: string;
|
|
231
|
-
isCommonConfig: boolean;
|
|
232
|
-
isFormConfig: boolean;
|
|
233
|
-
id: string;
|
|
234
|
-
type: string;
|
|
235
|
-
label: string;
|
|
236
|
-
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;
|
|
237
|
-
path: string;
|
|
238
|
-
schemaPath: string;
|
|
239
|
-
region: string;
|
|
240
|
-
preferTag: string;
|
|
241
|
-
state: any;
|
|
242
|
-
widthMutable: boolean;
|
|
243
|
-
heightMutable: boolean;
|
|
244
|
-
memberIndex: number;
|
|
245
|
-
folded: boolean;
|
|
246
|
-
patched: boolean;
|
|
247
|
-
x: number;
|
|
248
|
-
y: number;
|
|
249
|
-
w: number;
|
|
250
|
-
h: number;
|
|
251
|
-
dialogTitle: string;
|
|
252
|
-
dialogType: string;
|
|
253
|
-
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]>>;
|
|
254
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
255
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
256
|
-
} & {
|
|
257
|
-
readonly info: RendererInfo;
|
|
258
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
106
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
259
107
|
getNodeByComponentId(id: string): any;
|
|
260
108
|
setInfo(value: RendererInfo): void;
|
|
261
109
|
updateSharedContext(value: Record<string, any>): void;
|
|
@@ -318,7 +166,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
318
166
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
319
167
|
} & {
|
|
320
168
|
readonly info: RendererInfo;
|
|
321
|
-
getNodeById(id: string, regionOrType?: string
|
|
169
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
322
170
|
getNodeByComponentId(id: string): any;
|
|
323
171
|
setInfo(value: RendererInfo): void;
|
|
324
172
|
updateSharedContext(value: Record<string, any>): void;
|
|
@@ -359,27 +207,27 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
359
207
|
type: string;
|
|
360
208
|
label: string;
|
|
361
209
|
path: string;
|
|
362
|
-
isCommonConfig?: boolean
|
|
363
|
-
isFormConfig?: boolean
|
|
364
|
-
info?: RendererInfo
|
|
365
|
-
region?: string
|
|
366
|
-
getData?: (
|
|
367
|
-
preferTag?: string
|
|
368
|
-
schemaPath?: string
|
|
369
|
-
dialogTitle?: string
|
|
370
|
-
dialogType?: string
|
|
371
|
-
regionInfo?: import("../plugin").RegionConfig
|
|
372
|
-
widthMutable?: boolean
|
|
373
|
-
memberIndex?: number
|
|
210
|
+
isCommonConfig?: boolean;
|
|
211
|
+
isFormConfig?: boolean;
|
|
212
|
+
info?: RendererInfo;
|
|
213
|
+
region?: string;
|
|
214
|
+
getData?: () => any;
|
|
215
|
+
preferTag?: string;
|
|
216
|
+
schemaPath?: string;
|
|
217
|
+
dialogTitle?: string;
|
|
218
|
+
dialogType?: string;
|
|
219
|
+
regionInfo?: import("../plugin").RegionConfig;
|
|
220
|
+
widthMutable?: boolean;
|
|
221
|
+
memberIndex?: number;
|
|
374
222
|
}): any;
|
|
375
223
|
removeChild(child: any): void;
|
|
376
|
-
toggleFold(e: React.MouseEvent<HTMLAnchorElement
|
|
377
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
224
|
+
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
225
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
378
226
|
updateSchema(value: any): void;
|
|
379
227
|
updateSchemaStyle(value: any): void;
|
|
380
228
|
setComponent(value: any): void;
|
|
381
229
|
getComponent(): any;
|
|
382
|
-
getTarget():
|
|
230
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
383
231
|
calculateHighlightBox(root?: any): void;
|
|
384
232
|
resetHighlightBox(root: any): void;
|
|
385
233
|
updateState(state: any, replace?: boolean): void;
|
|
@@ -415,7 +263,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
415
263
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
416
264
|
} & {
|
|
417
265
|
readonly info: RendererInfo;
|
|
418
|
-
getNodeById(id: string, regionOrType?: string
|
|
266
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
419
267
|
getNodeByComponentId(id: string): any;
|
|
420
268
|
setInfo(value: RendererInfo): void;
|
|
421
269
|
updateSharedContext(value: Record<string, any>): void;
|
|
@@ -449,160 +297,8 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
449
297
|
readonly schemaParent: any;
|
|
450
298
|
readonly isSecondFactor: boolean;
|
|
451
299
|
} & {
|
|
452
|
-
getClosestParentByType: (type: string) =>
|
|
453
|
-
|
|
454
|
-
parentRegion: string;
|
|
455
|
-
isCommonConfig: boolean;
|
|
456
|
-
isFormConfig: boolean;
|
|
457
|
-
id: string;
|
|
458
|
-
type: string;
|
|
459
|
-
label: string;
|
|
460
|
-
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;
|
|
461
|
-
path: string;
|
|
462
|
-
schemaPath: string;
|
|
463
|
-
region: string;
|
|
464
|
-
preferTag: string;
|
|
465
|
-
state: any;
|
|
466
|
-
widthMutable: boolean;
|
|
467
|
-
heightMutable: boolean;
|
|
468
|
-
memberIndex: number;
|
|
469
|
-
folded: boolean;
|
|
470
|
-
patched: boolean;
|
|
471
|
-
x: number;
|
|
472
|
-
y: number;
|
|
473
|
-
w: number;
|
|
474
|
-
h: number;
|
|
475
|
-
dialogTitle: string;
|
|
476
|
-
dialogType: string;
|
|
477
|
-
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]>>;
|
|
478
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
479
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
480
|
-
} & {
|
|
481
|
-
readonly info: RendererInfo;
|
|
482
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
483
|
-
getNodeByComponentId(id: string): any;
|
|
484
|
-
setInfo(value: RendererInfo): void;
|
|
485
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
486
|
-
readonly rendererConfig: any;
|
|
487
|
-
setRendererConfig(value: RendererConfig): void;
|
|
488
|
-
readonly isVitualRenderer: boolean;
|
|
489
|
-
readonly clickable: boolean;
|
|
490
|
-
readonly draggable: boolean;
|
|
491
|
-
readonly moveable: boolean;
|
|
492
|
-
readonly canMoveUp: boolean;
|
|
493
|
-
readonly canMoveDown: boolean;
|
|
494
|
-
readonly removable: boolean;
|
|
495
|
-
readonly duplicatable: boolean;
|
|
496
|
-
readonly replaceable: boolean;
|
|
497
|
-
memberImmutable(region: string): boolean;
|
|
498
|
-
readonly isRegion: boolean;
|
|
499
|
-
readonly childRegions: any[];
|
|
500
|
-
readonly uniqueChildren: any[];
|
|
501
|
-
readonly sameIdChild: any;
|
|
502
|
-
readonly singleRegion: boolean;
|
|
503
|
-
isExists(id: string): boolean;
|
|
504
|
-
getChildById(id: string): any;
|
|
505
|
-
readonly parent: any;
|
|
506
|
-
readonly ancestorField: any;
|
|
507
|
-
readonly host: any;
|
|
508
|
-
readonly firstChild: any;
|
|
509
|
-
readonly index: any;
|
|
510
|
-
readonly prevSibling: any;
|
|
511
|
-
readonly nextSibling: any;
|
|
512
|
-
readonly schema: any;
|
|
513
|
-
readonly schemaParent: any;
|
|
514
|
-
readonly isSecondFactor: boolean;
|
|
515
|
-
} & any & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
516
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
517
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
518
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
519
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
520
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
521
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
522
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
523
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
|
524
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
525
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
526
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
527
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
528
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
529
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
530
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
531
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
532
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
533
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
534
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
535
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
536
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
537
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
538
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
539
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
540
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
541
|
-
}, {
|
|
542
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
543
|
-
} & {
|
|
544
|
-
readonly info: RendererInfo;
|
|
545
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
546
|
-
getNodeByComponentId(id: string): any;
|
|
547
|
-
setInfo(value: RendererInfo): void;
|
|
548
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
549
|
-
readonly rendererConfig: any;
|
|
550
|
-
setRendererConfig(value: RendererConfig): void;
|
|
551
|
-
readonly isVitualRenderer: boolean;
|
|
552
|
-
readonly clickable: boolean;
|
|
553
|
-
readonly draggable: boolean;
|
|
554
|
-
readonly moveable: boolean;
|
|
555
|
-
readonly canMoveUp: boolean;
|
|
556
|
-
readonly canMoveDown: boolean;
|
|
557
|
-
readonly removable: boolean;
|
|
558
|
-
readonly duplicatable: boolean;
|
|
559
|
-
readonly replaceable: boolean;
|
|
560
|
-
memberImmutable(region: string): boolean;
|
|
561
|
-
readonly isRegion: boolean;
|
|
562
|
-
readonly childRegions: any[];
|
|
563
|
-
readonly uniqueChildren: any[];
|
|
564
|
-
readonly sameIdChild: any;
|
|
565
|
-
readonly singleRegion: boolean;
|
|
566
|
-
isExists(id: string): boolean;
|
|
567
|
-
getChildById(id: string): any;
|
|
568
|
-
readonly parent: any;
|
|
569
|
-
readonly ancestorField: any;
|
|
570
|
-
readonly host: any;
|
|
571
|
-
readonly firstChild: any;
|
|
572
|
-
readonly index: any;
|
|
573
|
-
readonly prevSibling: any;
|
|
574
|
-
readonly nextSibling: any;
|
|
575
|
-
readonly schema: any;
|
|
576
|
-
readonly schemaParent: any;
|
|
577
|
-
readonly isSecondFactor: boolean;
|
|
578
|
-
} & any, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>);
|
|
579
|
-
getParentNodeByCB: (callback: (node: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
580
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
581
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
582
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
583
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
584
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
585
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
586
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
587
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<import("../plugin").RegionConfig, import("../plugin").RegionConfig, import("../plugin").RegionConfig>>;
|
|
588
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
589
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
590
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
591
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
592
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
593
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
594
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
595
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
596
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
597
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
598
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
599
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
600
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
601
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
602
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
603
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
604
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
605
|
-
}>>) => Boolean) => {
|
|
300
|
+
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
301
|
+
getParentNodeByCB: (callback: (node: import("../store/node").EditorNodeSnapshot) => Boolean) => {
|
|
606
302
|
parentId: string;
|
|
607
303
|
parentRegion: string;
|
|
608
304
|
isCommonConfig: boolean;
|
|
@@ -632,7 +328,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
632
328
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
633
329
|
} & {
|
|
634
330
|
readonly info: RendererInfo;
|
|
635
|
-
getNodeById(id: string, regionOrType?: string
|
|
331
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
636
332
|
getNodeByComponentId(id: string): any;
|
|
637
333
|
setInfo(value: RendererInfo): void;
|
|
638
334
|
updateSharedContext(value: Record<string, any>): void;
|
|
@@ -695,7 +391,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
695
391
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
696
392
|
} & {
|
|
697
393
|
readonly info: RendererInfo;
|
|
698
|
-
getNodeById(id: string, regionOrType?: string
|
|
394
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
699
395
|
getNodeByComponentId(id: string): any;
|
|
700
396
|
setInfo(value: RendererInfo): void;
|
|
701
397
|
updateSharedContext(value: Record<string, any>): void;
|
|
@@ -736,27 +432,27 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
736
432
|
type: string;
|
|
737
433
|
label: string;
|
|
738
434
|
path: string;
|
|
739
|
-
isCommonConfig?: boolean
|
|
740
|
-
isFormConfig?: boolean
|
|
741
|
-
info?: RendererInfo
|
|
742
|
-
region?: string
|
|
743
|
-
getData?: (
|
|
744
|
-
preferTag?: string
|
|
745
|
-
schemaPath?: string
|
|
746
|
-
dialogTitle?: string
|
|
747
|
-
dialogType?: string
|
|
748
|
-
regionInfo?: import("../plugin").RegionConfig
|
|
749
|
-
widthMutable?: boolean
|
|
750
|
-
memberIndex?: number
|
|
435
|
+
isCommonConfig?: boolean;
|
|
436
|
+
isFormConfig?: boolean;
|
|
437
|
+
info?: RendererInfo;
|
|
438
|
+
region?: string;
|
|
439
|
+
getData?: () => any;
|
|
440
|
+
preferTag?: string;
|
|
441
|
+
schemaPath?: string;
|
|
442
|
+
dialogTitle?: string;
|
|
443
|
+
dialogType?: string;
|
|
444
|
+
regionInfo?: import("../plugin").RegionConfig;
|
|
445
|
+
widthMutable?: boolean;
|
|
446
|
+
memberIndex?: number;
|
|
751
447
|
}): any;
|
|
752
448
|
removeChild(child: any): void;
|
|
753
|
-
toggleFold(e: React.MouseEvent<HTMLAnchorElement
|
|
754
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
449
|
+
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
450
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
755
451
|
updateSchema(value: any): void;
|
|
756
452
|
updateSchemaStyle(value: any): void;
|
|
757
453
|
setComponent(value: any): void;
|
|
758
454
|
getComponent(): any;
|
|
759
|
-
getTarget():
|
|
455
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
760
456
|
calculateHighlightBox(root?: any): void;
|
|
761
457
|
resetHighlightBox(root: any): void;
|
|
762
458
|
updateState(state: any, replace?: boolean): void;
|