amis-editor-core 6.14.0-beta.0 → 6.14.0-beta.10
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 +48 -351
- package/esm/component/ScaffoldModal.d.ts +2 -0
- 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/plugin.d.ts +3 -3
- package/esm/store/editor.d.ts +389 -2207
- package/esm/store/node.d.ts +4 -3
- package/esm/tpl.d.ts +1 -2
- package/esm/util.d.ts +3 -5
- package/lib/component/Panel/AMisCodeEditor.d.ts +0 -1
- package/lib/component/Panel/AvailableRenderersPanel.d.ts +3 -1
- package/lib/component/RegionWrapper.d.ts +48 -351
- package/lib/component/ScaffoldModal.d.ts +2 -0
- package/lib/component/VRenderer.d.ts +40 -344
- package/lib/component/base/BackTop.d.ts +1 -1
- 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/plugin.d.ts +3 -3
- package/lib/store/editor.d.ts +389 -2206
- package/lib/store/node.d.ts +4 -3
- package/lib/style.css +1 -1
- package/lib/tpl.d.ts +1 -2
- package/lib/util.d.ts +3 -5
- package/package.json +3 -3
package/esm/store/node.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { IAnyModelType, Instance, SnapshotIn } from 'mobx-state-tree';
|
|
6
6
|
import { RegionConfig, RendererInfo } from '../plugin';
|
|
7
7
|
import React from 'react';
|
|
8
|
+
import type { RendererConfig } from 'amis-core';
|
|
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>;
|
|
@@ -219,7 +220,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
219
220
|
}): any;
|
|
220
221
|
removeChild(child: any): void;
|
|
221
222
|
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
222
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
223
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
223
224
|
updateSchema(value: any): void;
|
|
224
225
|
updateSchemaStyle(value: any): void;
|
|
225
226
|
setComponent(value: any): void;
|
|
@@ -450,7 +451,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
450
451
|
}): any;
|
|
451
452
|
removeChild(child: any): void;
|
|
452
453
|
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
453
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
454
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
454
455
|
updateSchema(value: any): void;
|
|
455
456
|
updateSchemaStyle(value: any): void;
|
|
456
457
|
setComponent(value: any): void;
|
|
@@ -680,7 +681,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
680
681
|
}): any;
|
|
681
682
|
removeChild(child: any): void;
|
|
682
683
|
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
683
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
684
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
684
685
|
updateSchema(value: any): void;
|
|
685
686
|
updateSchemaStyle(value: any): void;
|
|
686
687
|
setComponent(value: any): void;
|
package/esm/tpl.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { SchemaObject } from 'amis';
|
|
3
2
|
export declare function getSchemaTpl(name: string, patch?: object, options?: object): any;
|
|
4
3
|
export declare function setSchemaTpl(name: string, value: any): void;
|
|
@@ -389,7 +388,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
|
|
|
389
388
|
writingMode?: import("csstype").Property.WritingMode | undefined;
|
|
390
389
|
zIndex?: import("csstype").Property.ZIndex | undefined;
|
|
391
390
|
zoom?: import("csstype").Property.Zoom | undefined;
|
|
392
|
-
all?: import("csstype").
|
|
391
|
+
all?: import("csstype").Property.All | undefined;
|
|
393
392
|
animation?: import("csstype").Property.Animation<string & {}> | undefined;
|
|
394
393
|
animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
|
|
395
394
|
background?: import("csstype").Property.Background<string | number> | undefined;
|
package/esm/util.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import type { Schema } from 'amis';
|
|
3
2
|
import type { VariableItem } from 'amis-ui';
|
|
4
3
|
import { Diff } from 'deep-diff';
|
|
5
4
|
import { EditorModalBody } from './store/editor';
|
|
6
5
|
import type { SchemaType } from 'amis/lib/Schema';
|
|
7
|
-
import type { DialogSchema } from 'amis/lib/renderers/Dialog';
|
|
8
|
-
import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
|
|
9
6
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
10
7
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
11
8
|
export declare let themeConfig: any;
|
|
@@ -76,7 +73,7 @@ export declare const autobind: any;
|
|
|
76
73
|
export declare function addDragingClass(el: HTMLElement): void;
|
|
77
74
|
export declare function removeDragingClass(el: HTMLElement): void;
|
|
78
75
|
export declare function camelize(str: string): string;
|
|
79
|
-
export declare const reactionWithOldValue: <T>(expression: () => T, effect: (newValue: T, oldValue?: T
|
|
76
|
+
export declare const reactionWithOldValue: <T>(expression: () => T, effect: (newValue: T, oldValue?: T) => void) => import("mobx").IReactionDisposer;
|
|
80
77
|
export declare function repeatArray<T>(child: T, count?: number): Array<T>;
|
|
81
78
|
export type DiffChange = Diff<any, any>;
|
|
82
79
|
export declare function diff(left: any, right: any, prefilter?: (currentPath: Array<string>, key: string) => boolean): Array<DiffChange> | undefined;
|
|
@@ -198,7 +195,8 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
198
195
|
*/
|
|
199
196
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
200
197
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
201
|
-
export declare function getModals(schema: any): (
|
|
198
|
+
export declare function getModals(schema: any): (import("amis/lib/renderers/Dialog").AMISDialogSchema | import("amis/lib/renderers/Drawer").AMISDrawerSchema)[];
|
|
199
|
+
export declare function collectRefs(schema: any): string[];
|
|
202
200
|
/**
|
|
203
201
|
* 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
|
|
204
202
|
* @param target
|
|
@@ -3,7 +3,9 @@ import { PanelProps } from '../../plugin';
|
|
|
3
3
|
type PanelStates = {
|
|
4
4
|
toggleCollapseFolderStatus: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare class AvailableRenderersPanel extends React.Component<PanelProps
|
|
6
|
+
export declare class AvailableRenderersPanel extends React.Component<PanelProps & {
|
|
7
|
+
tabsChildren?: React.ReactNode | ((props: PanelProps) => React.ReactNode);
|
|
8
|
+
}, PanelStates> {
|
|
7
9
|
handleSelect(key: string): void;
|
|
8
10
|
render(): React.JSX.Element;
|
|
9
11
|
}
|
|
@@ -3,12 +3,13 @@ import { EditorManager } from '../manager';
|
|
|
3
3
|
import { RegionConfig, RendererInfo } from '../plugin';
|
|
4
4
|
import { EditorStoreType } from '../store/editor';
|
|
5
5
|
import { EditorNodeType } from '../store/node';
|
|
6
|
+
import { RendererProps } from 'amis-core';
|
|
6
7
|
export interface RegionWrapperProps {
|
|
7
8
|
name: string;
|
|
8
9
|
label: string;
|
|
9
10
|
placeholder?: string | JSX.Element;
|
|
10
11
|
preferTag?: string;
|
|
11
|
-
wrapperResolve?: (dom: HTMLElement) => HTMLElement;
|
|
12
|
+
wrapperResolve?: (dom: HTMLElement, props: RendererProps) => HTMLElement;
|
|
12
13
|
editorStore: EditorStoreType;
|
|
13
14
|
manager: EditorManager;
|
|
14
15
|
rendererName?: string;
|
|
@@ -52,12 +53,12 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
52
53
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
53
54
|
} & {
|
|
54
55
|
readonly info: RendererInfo;
|
|
55
|
-
getNodeById(id: string, regionOrType?: string
|
|
56
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
56
57
|
getNodeByComponentId(id: string): any;
|
|
57
58
|
setInfo(value: RendererInfo): void;
|
|
58
59
|
updateSharedContext(value: Record<string, any>): void;
|
|
59
60
|
readonly rendererConfig: any;
|
|
60
|
-
setRendererConfig(value:
|
|
61
|
+
setRendererConfig(value: RendererProps): void;
|
|
61
62
|
readonly isVitualRenderer: boolean;
|
|
62
63
|
readonly clickable: boolean;
|
|
63
64
|
readonly draggable: boolean;
|
|
@@ -86,7 +87,8 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
86
87
|
readonly schemaParent: any;
|
|
87
88
|
readonly isSecondFactor: boolean;
|
|
88
89
|
} & {
|
|
89
|
-
getClosestParentByType: (type: string) =>
|
|
90
|
+
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
91
|
+
getParentNodeByCB: (callback: (node: import("../store/node").EditorNodeSnapshot) => Boolean) => {
|
|
90
92
|
parentId: string;
|
|
91
93
|
parentRegion: string;
|
|
92
94
|
isCommonConfig: boolean;
|
|
@@ -116,165 +118,12 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
116
118
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
117
119
|
} & {
|
|
118
120
|
readonly info: RendererInfo;
|
|
119
|
-
getNodeById(id: string, regionOrType?: string
|
|
121
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
120
122
|
getNodeByComponentId(id: string): any;
|
|
121
123
|
setInfo(value: RendererInfo): void;
|
|
122
124
|
updateSharedContext(value: Record<string, any>): void;
|
|
123
125
|
readonly rendererConfig: any;
|
|
124
|
-
setRendererConfig(value:
|
|
125
|
-
readonly isVitualRenderer: boolean;
|
|
126
|
-
readonly clickable: boolean;
|
|
127
|
-
readonly draggable: boolean;
|
|
128
|
-
readonly moveable: boolean;
|
|
129
|
-
readonly canMoveUp: boolean;
|
|
130
|
-
readonly canMoveDown: boolean;
|
|
131
|
-
readonly removable: boolean;
|
|
132
|
-
readonly duplicatable: boolean;
|
|
133
|
-
readonly replaceable: boolean;
|
|
134
|
-
memberImmutable(region: string): boolean;
|
|
135
|
-
readonly isRegion: boolean;
|
|
136
|
-
readonly childRegions: any[];
|
|
137
|
-
readonly uniqueChildren: any[];
|
|
138
|
-
readonly sameIdChild: any;
|
|
139
|
-
readonly singleRegion: boolean;
|
|
140
|
-
isExists(id: string): boolean;
|
|
141
|
-
getChildById(id: string): any;
|
|
142
|
-
readonly parent: any;
|
|
143
|
-
readonly ancestorField: any;
|
|
144
|
-
readonly host: any;
|
|
145
|
-
readonly firstChild: any;
|
|
146
|
-
readonly index: any;
|
|
147
|
-
readonly prevSibling: any;
|
|
148
|
-
readonly nextSibling: any;
|
|
149
|
-
readonly schema: any;
|
|
150
|
-
readonly schemaParent: any;
|
|
151
|
-
readonly isSecondFactor: boolean;
|
|
152
|
-
} & any & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
153
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
154
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
155
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
156
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
157
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
158
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
159
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
160
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
161
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
162
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
163
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
164
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
165
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
166
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
167
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
168
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
169
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
170
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
171
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
172
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
173
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
174
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
175
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
176
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
177
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
178
|
-
}, {
|
|
179
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
180
|
-
} & {
|
|
181
|
-
readonly info: RendererInfo;
|
|
182
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
183
|
-
getNodeByComponentId(id: string): any;
|
|
184
|
-
setInfo(value: RendererInfo): void;
|
|
185
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
186
|
-
readonly rendererConfig: any;
|
|
187
|
-
setRendererConfig(value: RendererConfig): void;
|
|
188
|
-
readonly isVitualRenderer: boolean;
|
|
189
|
-
readonly clickable: boolean;
|
|
190
|
-
readonly draggable: boolean;
|
|
191
|
-
readonly moveable: boolean;
|
|
192
|
-
readonly canMoveUp: boolean;
|
|
193
|
-
readonly canMoveDown: boolean;
|
|
194
|
-
readonly removable: boolean;
|
|
195
|
-
readonly duplicatable: boolean;
|
|
196
|
-
readonly replaceable: boolean;
|
|
197
|
-
memberImmutable(region: string): boolean;
|
|
198
|
-
readonly isRegion: boolean;
|
|
199
|
-
readonly childRegions: any[];
|
|
200
|
-
readonly uniqueChildren: any[];
|
|
201
|
-
readonly sameIdChild: any;
|
|
202
|
-
readonly singleRegion: boolean;
|
|
203
|
-
isExists(id: string): boolean;
|
|
204
|
-
getChildById(id: string): any;
|
|
205
|
-
readonly parent: any;
|
|
206
|
-
readonly ancestorField: any;
|
|
207
|
-
readonly host: any;
|
|
208
|
-
readonly firstChild: any;
|
|
209
|
-
readonly index: any;
|
|
210
|
-
readonly prevSibling: any;
|
|
211
|
-
readonly nextSibling: any;
|
|
212
|
-
readonly schema: any;
|
|
213
|
-
readonly schemaParent: any;
|
|
214
|
-
readonly isSecondFactor: boolean;
|
|
215
|
-
} & any, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>);
|
|
216
|
-
getParentNodeByCB: (callback: (node: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
217
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
218
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
219
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
220
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
221
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
222
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
223
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
224
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
225
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
226
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
227
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
228
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
229
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
230
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
231
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
232
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
233
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
234
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
235
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
236
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
237
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
238
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
239
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
240
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
241
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
242
|
-
}>>) => Boolean) => {
|
|
243
|
-
parentId: string;
|
|
244
|
-
parentRegion: string;
|
|
245
|
-
isCommonConfig: boolean;
|
|
246
|
-
isFormConfig: boolean;
|
|
247
|
-
id: string;
|
|
248
|
-
type: string;
|
|
249
|
-
label: string;
|
|
250
|
-
regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
|
|
251
|
-
path: string;
|
|
252
|
-
schemaPath: string;
|
|
253
|
-
region: string;
|
|
254
|
-
preferTag: string;
|
|
255
|
-
state: any;
|
|
256
|
-
widthMutable: boolean;
|
|
257
|
-
heightMutable: boolean;
|
|
258
|
-
memberIndex: number;
|
|
259
|
-
folded: boolean;
|
|
260
|
-
patched: boolean;
|
|
261
|
-
x: number;
|
|
262
|
-
y: number;
|
|
263
|
-
w: number;
|
|
264
|
-
h: number;
|
|
265
|
-
dialogTitle: string;
|
|
266
|
-
dialogType: string;
|
|
267
|
-
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]>>;
|
|
268
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
269
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
270
|
-
} & {
|
|
271
|
-
readonly info: RendererInfo;
|
|
272
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
273
|
-
getNodeByComponentId(id: string): any;
|
|
274
|
-
setInfo(value: RendererInfo): void;
|
|
275
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
276
|
-
readonly rendererConfig: any;
|
|
277
|
-
setRendererConfig(value: RendererConfig): void;
|
|
126
|
+
setRendererConfig(value: RendererProps): void;
|
|
278
127
|
readonly isVitualRenderer: boolean;
|
|
279
128
|
readonly clickable: boolean;
|
|
280
129
|
readonly draggable: boolean;
|
|
@@ -332,12 +181,12 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
332
181
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
333
182
|
} & {
|
|
334
183
|
readonly info: RendererInfo;
|
|
335
|
-
getNodeById(id: string, regionOrType?: string
|
|
184
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
336
185
|
getNodeByComponentId(id: string): any;
|
|
337
186
|
setInfo(value: RendererInfo): void;
|
|
338
187
|
updateSharedContext(value: Record<string, any>): void;
|
|
339
188
|
readonly rendererConfig: any;
|
|
340
|
-
setRendererConfig(value:
|
|
189
|
+
setRendererConfig(value: RendererProps): void;
|
|
341
190
|
readonly isVitualRenderer: boolean;
|
|
342
191
|
readonly clickable: boolean;
|
|
343
192
|
readonly draggable: boolean;
|
|
@@ -373,27 +222,27 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
373
222
|
type: string;
|
|
374
223
|
label: string;
|
|
375
224
|
path: string;
|
|
376
|
-
isCommonConfig?: boolean
|
|
377
|
-
isFormConfig?: boolean
|
|
378
|
-
info?: RendererInfo
|
|
379
|
-
region?: string
|
|
380
|
-
getData?: (
|
|
381
|
-
preferTag?: string
|
|
382
|
-
schemaPath?: string
|
|
383
|
-
dialogTitle?: string
|
|
384
|
-
dialogType?: string
|
|
385
|
-
regionInfo?: RegionConfig
|
|
386
|
-
widthMutable?: boolean
|
|
387
|
-
memberIndex?: number
|
|
225
|
+
isCommonConfig?: boolean;
|
|
226
|
+
isFormConfig?: boolean;
|
|
227
|
+
info?: RendererInfo;
|
|
228
|
+
region?: string;
|
|
229
|
+
getData?: () => any;
|
|
230
|
+
preferTag?: string;
|
|
231
|
+
schemaPath?: string;
|
|
232
|
+
dialogTitle?: string;
|
|
233
|
+
dialogType?: string;
|
|
234
|
+
regionInfo?: RegionConfig;
|
|
235
|
+
widthMutable?: boolean;
|
|
236
|
+
memberIndex?: number;
|
|
388
237
|
}): any;
|
|
389
238
|
removeChild(child: any): void;
|
|
390
|
-
toggleFold(e: React.MouseEvent<HTMLAnchorElement
|
|
391
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
239
|
+
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
240
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
392
241
|
updateSchema(value: any): void;
|
|
393
242
|
updateSchemaStyle(value: any): void;
|
|
394
243
|
setComponent(value: any): void;
|
|
395
244
|
getComponent(): any;
|
|
396
|
-
getTarget():
|
|
245
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
397
246
|
calculateHighlightBox(root?: any): void;
|
|
398
247
|
resetHighlightBox(root: any): void;
|
|
399
248
|
updateState(state: any, replace?: boolean): void;
|
|
@@ -429,12 +278,12 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
429
278
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
430
279
|
} & {
|
|
431
280
|
readonly info: RendererInfo;
|
|
432
|
-
getNodeById(id: string, regionOrType?: string
|
|
281
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
433
282
|
getNodeByComponentId(id: string): any;
|
|
434
283
|
setInfo(value: RendererInfo): void;
|
|
435
284
|
updateSharedContext(value: Record<string, any>): void;
|
|
436
285
|
readonly rendererConfig: any;
|
|
437
|
-
setRendererConfig(value:
|
|
286
|
+
setRendererConfig(value: RendererProps): void;
|
|
438
287
|
readonly isVitualRenderer: boolean;
|
|
439
288
|
readonly clickable: boolean;
|
|
440
289
|
readonly draggable: boolean;
|
|
@@ -463,160 +312,8 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
463
312
|
readonly schemaParent: any;
|
|
464
313
|
readonly isSecondFactor: boolean;
|
|
465
314
|
} & {
|
|
466
|
-
getClosestParentByType: (type: string) =>
|
|
467
|
-
|
|
468
|
-
parentRegion: string;
|
|
469
|
-
isCommonConfig: boolean;
|
|
470
|
-
isFormConfig: boolean;
|
|
471
|
-
id: string;
|
|
472
|
-
type: string;
|
|
473
|
-
label: string;
|
|
474
|
-
regionInfo: (RegionConfig & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>>) | undefined;
|
|
475
|
-
path: string;
|
|
476
|
-
schemaPath: string;
|
|
477
|
-
region: string;
|
|
478
|
-
preferTag: string;
|
|
479
|
-
state: any;
|
|
480
|
-
widthMutable: boolean;
|
|
481
|
-
heightMutable: boolean;
|
|
482
|
-
memberIndex: number;
|
|
483
|
-
folded: boolean;
|
|
484
|
-
patched: boolean;
|
|
485
|
-
x: number;
|
|
486
|
-
y: number;
|
|
487
|
-
w: number;
|
|
488
|
-
h: number;
|
|
489
|
-
dialogTitle: string;
|
|
490
|
-
dialogType: string;
|
|
491
|
-
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]>>;
|
|
492
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
493
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
494
|
-
} & {
|
|
495
|
-
readonly info: RendererInfo;
|
|
496
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
497
|
-
getNodeByComponentId(id: string): any;
|
|
498
|
-
setInfo(value: RendererInfo): void;
|
|
499
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
500
|
-
readonly rendererConfig: any;
|
|
501
|
-
setRendererConfig(value: RendererConfig): void;
|
|
502
|
-
readonly isVitualRenderer: boolean;
|
|
503
|
-
readonly clickable: boolean;
|
|
504
|
-
readonly draggable: boolean;
|
|
505
|
-
readonly moveable: boolean;
|
|
506
|
-
readonly canMoveUp: boolean;
|
|
507
|
-
readonly canMoveDown: boolean;
|
|
508
|
-
readonly removable: boolean;
|
|
509
|
-
readonly duplicatable: boolean;
|
|
510
|
-
readonly replaceable: boolean;
|
|
511
|
-
memberImmutable(region: string): boolean;
|
|
512
|
-
readonly isRegion: boolean;
|
|
513
|
-
readonly childRegions: any[];
|
|
514
|
-
readonly uniqueChildren: any[];
|
|
515
|
-
readonly sameIdChild: any;
|
|
516
|
-
readonly singleRegion: boolean;
|
|
517
|
-
isExists(id: string): boolean;
|
|
518
|
-
getChildById(id: string): any;
|
|
519
|
-
readonly parent: any;
|
|
520
|
-
readonly ancestorField: any;
|
|
521
|
-
readonly host: any;
|
|
522
|
-
readonly firstChild: any;
|
|
523
|
-
readonly index: any;
|
|
524
|
-
readonly prevSibling: any;
|
|
525
|
-
readonly nextSibling: any;
|
|
526
|
-
readonly schema: any;
|
|
527
|
-
readonly schemaParent: any;
|
|
528
|
-
readonly isSecondFactor: boolean;
|
|
529
|
-
} & any & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
530
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
531
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
532
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
533
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
534
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
535
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
536
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
537
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
538
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
539
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
540
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
541
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
542
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
543
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
544
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
545
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
546
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
547
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
548
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
549
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
550
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
551
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
552
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
553
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
554
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
555
|
-
}, {
|
|
556
|
-
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
557
|
-
} & {
|
|
558
|
-
readonly info: RendererInfo;
|
|
559
|
-
getNodeById(id: string, regionOrType?: string | undefined): any;
|
|
560
|
-
getNodeByComponentId(id: string): any;
|
|
561
|
-
setInfo(value: RendererInfo): void;
|
|
562
|
-
updateSharedContext(value: Record<string, any>): void;
|
|
563
|
-
readonly rendererConfig: any;
|
|
564
|
-
setRendererConfig(value: RendererConfig): void;
|
|
565
|
-
readonly isVitualRenderer: boolean;
|
|
566
|
-
readonly clickable: boolean;
|
|
567
|
-
readonly draggable: boolean;
|
|
568
|
-
readonly moveable: boolean;
|
|
569
|
-
readonly canMoveUp: boolean;
|
|
570
|
-
readonly canMoveDown: boolean;
|
|
571
|
-
readonly removable: boolean;
|
|
572
|
-
readonly duplicatable: boolean;
|
|
573
|
-
readonly replaceable: boolean;
|
|
574
|
-
memberImmutable(region: string): boolean;
|
|
575
|
-
readonly isRegion: boolean;
|
|
576
|
-
readonly childRegions: any[];
|
|
577
|
-
readonly uniqueChildren: any[];
|
|
578
|
-
readonly sameIdChild: any;
|
|
579
|
-
readonly singleRegion: boolean;
|
|
580
|
-
isExists(id: string): boolean;
|
|
581
|
-
getChildById(id: string): any;
|
|
582
|
-
readonly parent: any;
|
|
583
|
-
readonly ancestorField: any;
|
|
584
|
-
readonly host: any;
|
|
585
|
-
readonly firstChild: any;
|
|
586
|
-
readonly index: any;
|
|
587
|
-
readonly prevSibling: any;
|
|
588
|
-
readonly nextSibling: any;
|
|
589
|
-
readonly schema: any;
|
|
590
|
-
readonly schemaParent: any;
|
|
591
|
-
readonly isSecondFactor: boolean;
|
|
592
|
-
} & any, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>);
|
|
593
|
-
getParentNodeByCB: (callback: (node: import("mobx-state-tree").ModelCreationType<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
|
|
594
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
595
|
-
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
596
|
-
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
597
|
-
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
598
|
-
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
599
|
-
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
600
|
-
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
601
|
-
regionInfo: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IType<RegionConfig, RegionConfig, RegionConfig>>;
|
|
602
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
603
|
-
schemaPath: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
604
|
-
region: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
605
|
-
preferTag: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
606
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
607
|
-
widthMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
608
|
-
heightMutable: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
609
|
-
memberIndex: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
610
|
-
folded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
611
|
-
patched: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
612
|
-
x: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
613
|
-
y: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
614
|
-
w: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
615
|
-
h: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
616
|
-
dialogTitle: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
617
|
-
dialogType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
618
|
-
children: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>, [undefined]>;
|
|
619
|
-
}>>) => Boolean) => {
|
|
315
|
+
getClosestParentByType: (type: string) => EditorNodeType | void;
|
|
316
|
+
getParentNodeByCB: (callback: (node: import("../store/node").EditorNodeSnapshot) => Boolean) => {
|
|
620
317
|
parentId: string;
|
|
621
318
|
parentRegion: string;
|
|
622
319
|
isCommonConfig: boolean;
|
|
@@ -646,12 +343,12 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
646
343
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
647
344
|
} & {
|
|
648
345
|
readonly info: RendererInfo;
|
|
649
|
-
getNodeById(id: string, regionOrType?: string
|
|
346
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
650
347
|
getNodeByComponentId(id: string): any;
|
|
651
348
|
setInfo(value: RendererInfo): void;
|
|
652
349
|
updateSharedContext(value: Record<string, any>): void;
|
|
653
350
|
readonly rendererConfig: any;
|
|
654
|
-
setRendererConfig(value:
|
|
351
|
+
setRendererConfig(value: RendererProps): void;
|
|
655
352
|
readonly isVitualRenderer: boolean;
|
|
656
353
|
readonly clickable: boolean;
|
|
657
354
|
readonly draggable: boolean;
|
|
@@ -709,12 +406,12 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
709
406
|
getData: import("mobx-state-tree").IType<() => any, () => any, () => any>;
|
|
710
407
|
} & {
|
|
711
408
|
readonly info: RendererInfo;
|
|
712
|
-
getNodeById(id: string, regionOrType?: string
|
|
409
|
+
getNodeById(id: string, regionOrType?: string): any;
|
|
713
410
|
getNodeByComponentId(id: string): any;
|
|
714
411
|
setInfo(value: RendererInfo): void;
|
|
715
412
|
updateSharedContext(value: Record<string, any>): void;
|
|
716
413
|
readonly rendererConfig: any;
|
|
717
|
-
setRendererConfig(value:
|
|
414
|
+
setRendererConfig(value: RendererProps): void;
|
|
718
415
|
readonly isVitualRenderer: boolean;
|
|
719
416
|
readonly clickable: boolean;
|
|
720
417
|
readonly draggable: boolean;
|
|
@@ -750,27 +447,27 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
750
447
|
type: string;
|
|
751
448
|
label: string;
|
|
752
449
|
path: string;
|
|
753
|
-
isCommonConfig?: boolean
|
|
754
|
-
isFormConfig?: boolean
|
|
755
|
-
info?: RendererInfo
|
|
756
|
-
region?: string
|
|
757
|
-
getData?: (
|
|
758
|
-
preferTag?: string
|
|
759
|
-
schemaPath?: string
|
|
760
|
-
dialogTitle?: string
|
|
761
|
-
dialogType?: string
|
|
762
|
-
regionInfo?: RegionConfig
|
|
763
|
-
widthMutable?: boolean
|
|
764
|
-
memberIndex?: number
|
|
450
|
+
isCommonConfig?: boolean;
|
|
451
|
+
isFormConfig?: boolean;
|
|
452
|
+
info?: RendererInfo;
|
|
453
|
+
region?: string;
|
|
454
|
+
getData?: () => any;
|
|
455
|
+
preferTag?: string;
|
|
456
|
+
schemaPath?: string;
|
|
457
|
+
dialogTitle?: string;
|
|
458
|
+
dialogType?: string;
|
|
459
|
+
regionInfo?: RegionConfig;
|
|
460
|
+
widthMutable?: boolean;
|
|
461
|
+
memberIndex?: number;
|
|
765
462
|
}): any;
|
|
766
463
|
removeChild(child: any): void;
|
|
767
|
-
toggleFold(e: React.MouseEvent<HTMLAnchorElement
|
|
768
|
-
patch(store: any, force?: boolean, setPatchInfo?: (
|
|
464
|
+
toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
|
|
465
|
+
patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
|
|
769
466
|
updateSchema(value: any): void;
|
|
770
467
|
updateSchemaStyle(value: any): void;
|
|
771
468
|
setComponent(value: any): void;
|
|
772
469
|
getComponent(): any;
|
|
773
|
-
getTarget():
|
|
470
|
+
getTarget(): null | HTMLElement | Array<HTMLElement>;
|
|
774
471
|
calculateHighlightBox(root?: any): void;
|
|
775
472
|
resetHighlightBox(root: any): void;
|
|
776
473
|
updateState(state: any, replace?: boolean): void;
|
|
@@ -7,7 +7,9 @@ export interface SubEditorProps {
|
|
|
7
7
|
theme?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class ScaffoldModal extends React.Component<SubEditorProps> {
|
|
10
|
+
modalBodyRef: React.RefObject<HTMLDivElement>;
|
|
10
11
|
handleConfirm([values]: any): Promise<void>;
|
|
12
|
+
getPopOverContainer(): any;
|
|
11
13
|
buildSchema(): {
|
|
12
14
|
wrapperComponent: string;
|
|
13
15
|
type: string;
|