amis-editor-core 6.6.0 → 6.7.0
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/FormConfigWrapper.d.ts +6 -0
- package/esm/component/RegionWrapper.d.ts +16 -0
- package/esm/component/VRenderer.d.ts +16 -0
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +80 -0
- package/esm/manager.d.ts +28 -12
- package/esm/store/editor.d.ts +117 -135
- package/esm/store/node.d.ts +15 -0
- package/esm/util.d.ts +14 -0
- package/lib/component/FormConfigWrapper.d.ts +6 -0
- package/lib/component/RegionWrapper.d.ts +16 -0
- package/lib/component/VRenderer.d.ts +16 -0
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +80 -0
- package/lib/manager.d.ts +28 -12
- package/lib/store/editor.d.ts +117 -136
- package/lib/store/node.d.ts +15 -0
- package/lib/style.css +1 -1
- package/lib/util.d.ts +14 -0
- package/package.json +1 -1
package/esm/store/node.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
9
9
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
10
10
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
11
11
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
12
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
12
13
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
13
14
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
14
15
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -72,6 +73,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
72
73
|
parentId: string;
|
|
73
74
|
parentRegion: string;
|
|
74
75
|
isCommonConfig: boolean;
|
|
76
|
+
isFormConfig: boolean;
|
|
75
77
|
id: string;
|
|
76
78
|
type: string;
|
|
77
79
|
label: string;
|
|
@@ -133,6 +135,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
133
135
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
134
136
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
135
137
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
138
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
136
139
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
137
140
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
138
141
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -192,12 +195,14 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
|
|
|
192
195
|
readonly isSecondFactor: boolean;
|
|
193
196
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
194
197
|
updateIsCommonConfig: (value: boolean) => void;
|
|
198
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
195
199
|
addChild(props: {
|
|
196
200
|
id: string;
|
|
197
201
|
type: string;
|
|
198
202
|
label: string;
|
|
199
203
|
path: string;
|
|
200
204
|
isCommonConfig?: boolean;
|
|
205
|
+
isFormConfig?: boolean;
|
|
201
206
|
info?: RendererInfo;
|
|
202
207
|
region?: string;
|
|
203
208
|
getData?: () => any;
|
|
@@ -231,6 +236,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
231
236
|
parentId: string;
|
|
232
237
|
parentRegion: string;
|
|
233
238
|
isCommonConfig: boolean;
|
|
239
|
+
isFormConfig: boolean;
|
|
234
240
|
id: string;
|
|
235
241
|
type: string;
|
|
236
242
|
label: string;
|
|
@@ -294,6 +300,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
294
300
|
parentId: string;
|
|
295
301
|
parentRegion: string;
|
|
296
302
|
isCommonConfig: boolean;
|
|
303
|
+
isFormConfig: boolean;
|
|
297
304
|
id: string;
|
|
298
305
|
type: string;
|
|
299
306
|
label: string;
|
|
@@ -355,6 +362,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
355
362
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
356
363
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
357
364
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
365
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
358
366
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
359
367
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
360
368
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -414,12 +422,14 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
414
422
|
readonly isSecondFactor: boolean;
|
|
415
423
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
416
424
|
updateIsCommonConfig: (value: boolean) => void;
|
|
425
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
417
426
|
addChild(props: {
|
|
418
427
|
id: string;
|
|
419
428
|
type: string;
|
|
420
429
|
label: string;
|
|
421
430
|
path: string;
|
|
422
431
|
isCommonConfig?: boolean;
|
|
432
|
+
isFormConfig?: boolean;
|
|
423
433
|
info?: RendererInfo;
|
|
424
434
|
region?: string;
|
|
425
435
|
getData?: () => any;
|
|
@@ -452,6 +462,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
452
462
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
453
463
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
454
464
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
465
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
455
466
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
456
467
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
457
468
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -515,6 +526,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
515
526
|
parentId: string;
|
|
516
527
|
parentRegion: string;
|
|
517
528
|
isCommonConfig: boolean;
|
|
529
|
+
isFormConfig: boolean;
|
|
518
530
|
id: string;
|
|
519
531
|
type: string;
|
|
520
532
|
label: string;
|
|
@@ -576,6 +588,7 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
576
588
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
577
589
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
578
590
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
591
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
579
592
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
580
593
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
581
594
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -635,12 +648,14 @@ export declare const EditorNodeContext: React.Context<({
|
|
|
635
648
|
readonly isSecondFactor: boolean;
|
|
636
649
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
637
650
|
updateIsCommonConfig: (value: boolean) => void;
|
|
651
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
638
652
|
addChild(props: {
|
|
639
653
|
id: string;
|
|
640
654
|
type: string;
|
|
641
655
|
label: string;
|
|
642
656
|
path: string;
|
|
643
657
|
isCommonConfig?: boolean;
|
|
658
|
+
isFormConfig?: boolean;
|
|
644
659
|
info?: RendererInfo;
|
|
645
660
|
region?: string;
|
|
646
661
|
getData?: () => any;
|
package/esm/util.d.ts
CHANGED
|
@@ -3,10 +3,12 @@ import type { Schema } from 'amis';
|
|
|
3
3
|
import type { VariableItem } from 'amis-ui';
|
|
4
4
|
import { Diff } from 'deep-diff';
|
|
5
5
|
import { EditorModalBody } from './store/editor';
|
|
6
|
+
import type { SchemaType } from 'amis/lib/Schema';
|
|
6
7
|
declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
|
|
7
8
|
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
8
9
|
export declare let themeConfig: any;
|
|
9
10
|
export declare let themeOptionsData: any;
|
|
11
|
+
export declare let cssVars: any;
|
|
10
12
|
export declare function __uri(id: string): string;
|
|
11
13
|
export declare function cleanUndefined(obj: any): any;
|
|
12
14
|
/**
|
|
@@ -19,6 +21,7 @@ export declare function JSONPipeOut(obj: any, filterHiddenProps?: boolean | ((ke
|
|
|
19
21
|
export declare function JSONGetByPath(json: any, paths: Array<string>, stacks?: Array<any>): any;
|
|
20
22
|
export declare function JSONGetPathById(json: any, id: string, idKey?: string): Array<string> | null;
|
|
21
23
|
export declare function JSONGetById(json: any, id: string, idKey?: string): any;
|
|
24
|
+
export declare function JSONGetNodesById(json: any, id: string, idKey?: string): Array<any>;
|
|
22
25
|
export declare function JSONGetParentById(json: any, id: string, skipArray?: boolean): any;
|
|
23
26
|
export declare function JSONUpdate(json: any, id: string, value: any, replace?: boolean): any;
|
|
24
27
|
export declare function JSONDelete(json: any, id: string, pathsRef?: Array<string>, deleteIfEmpty?: boolean): any;
|
|
@@ -129,6 +132,14 @@ export declare function appTranslate(value?: string): any;
|
|
|
129
132
|
*/
|
|
130
133
|
export declare function needFillPlaceholder(curProps: any): boolean;
|
|
131
134
|
export declare function setThemeConfig(config: any): void;
|
|
135
|
+
/**
|
|
136
|
+
* 获取组件的css变量
|
|
137
|
+
* @param id 组件id
|
|
138
|
+
* @param selectorText 选择器
|
|
139
|
+
* @returns css变量
|
|
140
|
+
*/
|
|
141
|
+
export declare function getCssVarById(id: string, selectorText: string): PlainObject;
|
|
142
|
+
export declare function getAllCssVar(): any;
|
|
132
143
|
export declare function getThemeConfig(): any;
|
|
133
144
|
/**
|
|
134
145
|
* 将style转换为组件ThemeCSS格式
|
|
@@ -185,3 +196,6 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
185
196
|
*/
|
|
186
197
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
187
198
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
199
|
+
export declare const RAW_TYPE_MAP: {
|
|
200
|
+
[k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
|
|
201
|
+
};
|
|
@@ -26,6 +26,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
26
26
|
parentId: string;
|
|
27
27
|
parentRegion: string;
|
|
28
28
|
isCommonConfig: boolean;
|
|
29
|
+
isFormConfig: boolean;
|
|
29
30
|
id: string;
|
|
30
31
|
type: string;
|
|
31
32
|
label: string;
|
|
@@ -88,6 +89,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
88
89
|
parentId: string;
|
|
89
90
|
parentRegion: string;
|
|
90
91
|
isCommonConfig: boolean;
|
|
92
|
+
isFormConfig: boolean;
|
|
91
93
|
id: string;
|
|
92
94
|
type: string;
|
|
93
95
|
label: string;
|
|
@@ -149,6 +151,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
149
151
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
150
152
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
151
153
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
154
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
152
155
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
153
156
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
154
157
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -211,6 +214,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
211
214
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
212
215
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
213
216
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
217
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
214
218
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
215
219
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
216
220
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -236,6 +240,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
236
240
|
parentId: string;
|
|
237
241
|
parentRegion: string;
|
|
238
242
|
isCommonConfig: boolean;
|
|
243
|
+
isFormConfig: boolean;
|
|
239
244
|
id: string;
|
|
240
245
|
type: string;
|
|
241
246
|
label: string;
|
|
@@ -297,6 +302,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
297
302
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
298
303
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
299
304
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
305
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
300
306
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
301
307
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
302
308
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -356,12 +362,14 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
356
362
|
readonly isSecondFactor: boolean;
|
|
357
363
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
358
364
|
updateIsCommonConfig: (value: boolean) => void;
|
|
365
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
359
366
|
addChild(props: {
|
|
360
367
|
id: string;
|
|
361
368
|
type: string;
|
|
362
369
|
label: string;
|
|
363
370
|
path: string;
|
|
364
371
|
isCommonConfig?: boolean | undefined;
|
|
372
|
+
isFormConfig?: boolean | undefined;
|
|
365
373
|
info?: RendererInfo | undefined;
|
|
366
374
|
region?: string | undefined;
|
|
367
375
|
getData?: (() => any) | undefined;
|
|
@@ -389,6 +397,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
389
397
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
390
398
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
391
399
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
400
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
392
401
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
393
402
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
394
403
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -451,6 +460,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
451
460
|
parentId: string;
|
|
452
461
|
parentRegion: string;
|
|
453
462
|
isCommonConfig: boolean;
|
|
463
|
+
isFormConfig: boolean;
|
|
454
464
|
id: string;
|
|
455
465
|
type: string;
|
|
456
466
|
label: string;
|
|
@@ -512,6 +522,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
512
522
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
513
523
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
514
524
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
525
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
515
526
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
516
527
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
517
528
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -574,6 +585,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
574
585
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
575
586
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
576
587
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
588
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
577
589
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
578
590
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
579
591
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -599,6 +611,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
599
611
|
parentId: string;
|
|
600
612
|
parentRegion: string;
|
|
601
613
|
isCommonConfig: boolean;
|
|
614
|
+
isFormConfig: boolean;
|
|
602
615
|
id: string;
|
|
603
616
|
type: string;
|
|
604
617
|
label: string;
|
|
@@ -660,6 +673,7 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
660
673
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
661
674
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
662
675
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
676
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
663
677
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
664
678
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
665
679
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -719,12 +733,14 @@ export declare class RegionWrapper extends React.Component<RegionWrapperProps> {
|
|
|
719
733
|
readonly isSecondFactor: boolean;
|
|
720
734
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
721
735
|
updateIsCommonConfig: (value: boolean) => void;
|
|
736
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
722
737
|
addChild(props: {
|
|
723
738
|
id: string;
|
|
724
739
|
type: string;
|
|
725
740
|
label: string;
|
|
726
741
|
path: string;
|
|
727
742
|
isCommonConfig?: boolean | undefined;
|
|
743
|
+
isFormConfig?: boolean | undefined;
|
|
728
744
|
info?: RendererInfo | undefined;
|
|
729
745
|
region?: string | undefined;
|
|
730
746
|
getData?: (() => any) | undefined;
|
|
@@ -12,6 +12,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
12
12
|
parentId: string;
|
|
13
13
|
parentRegion: string;
|
|
14
14
|
isCommonConfig: boolean;
|
|
15
|
+
isFormConfig: boolean;
|
|
15
16
|
id: string;
|
|
16
17
|
type: string;
|
|
17
18
|
label: string;
|
|
@@ -74,6 +75,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
74
75
|
parentId: string;
|
|
75
76
|
parentRegion: string;
|
|
76
77
|
isCommonConfig: boolean;
|
|
78
|
+
isFormConfig: boolean;
|
|
77
79
|
id: string;
|
|
78
80
|
type: string;
|
|
79
81
|
label: string;
|
|
@@ -135,6 +137,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
135
137
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
136
138
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
137
139
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
140
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
138
141
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
139
142
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
140
143
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -197,6 +200,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
197
200
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
198
201
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
199
202
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
203
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
200
204
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
201
205
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
202
206
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -222,6 +226,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
222
226
|
parentId: string;
|
|
223
227
|
parentRegion: string;
|
|
224
228
|
isCommonConfig: boolean;
|
|
229
|
+
isFormConfig: boolean;
|
|
225
230
|
id: string;
|
|
226
231
|
type: string;
|
|
227
232
|
label: string;
|
|
@@ -283,6 +288,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
283
288
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
284
289
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
285
290
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
291
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
286
292
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
287
293
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
288
294
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -342,12 +348,14 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
342
348
|
readonly isSecondFactor: boolean;
|
|
343
349
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
344
350
|
updateIsCommonConfig: (value: boolean) => void;
|
|
351
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
345
352
|
addChild(props: {
|
|
346
353
|
id: string;
|
|
347
354
|
type: string;
|
|
348
355
|
label: string;
|
|
349
356
|
path: string;
|
|
350
357
|
isCommonConfig?: boolean | undefined;
|
|
358
|
+
isFormConfig?: boolean | undefined;
|
|
351
359
|
info?: RendererInfo | undefined;
|
|
352
360
|
region?: string | undefined;
|
|
353
361
|
getData?: (() => any) | undefined;
|
|
@@ -375,6 +383,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
375
383
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
376
384
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
377
385
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
386
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
378
387
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
379
388
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
380
389
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -437,6 +446,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
437
446
|
parentId: string;
|
|
438
447
|
parentRegion: string;
|
|
439
448
|
isCommonConfig: boolean;
|
|
449
|
+
isFormConfig: boolean;
|
|
440
450
|
id: string;
|
|
441
451
|
type: string;
|
|
442
452
|
label: string;
|
|
@@ -498,6 +508,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
498
508
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
499
509
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
500
510
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
511
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
501
512
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
502
513
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
503
514
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -560,6 +571,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
560
571
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
561
572
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
562
573
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
574
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
563
575
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
564
576
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
565
577
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -585,6 +597,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
585
597
|
parentId: string;
|
|
586
598
|
parentRegion: string;
|
|
587
599
|
isCommonConfig: boolean;
|
|
600
|
+
isFormConfig: boolean;
|
|
588
601
|
id: string;
|
|
589
602
|
type: string;
|
|
590
603
|
label: string;
|
|
@@ -646,6 +659,7 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
646
659
|
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
647
660
|
parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
648
661
|
isCommonConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
662
|
+
isFormConfig: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
649
663
|
id: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
650
664
|
type: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
651
665
|
label: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -705,12 +719,14 @@ export declare class VRenderer extends React.Component<VRendererProps> {
|
|
|
705
719
|
readonly isSecondFactor: boolean;
|
|
706
720
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
707
721
|
updateIsCommonConfig: (value: boolean) => void;
|
|
722
|
+
updateIsFormConfig: (value: boolean) => void;
|
|
708
723
|
addChild(props: {
|
|
709
724
|
id: string;
|
|
710
725
|
type: string;
|
|
711
726
|
label: string;
|
|
712
727
|
path: string;
|
|
713
728
|
isCommonConfig?: boolean | undefined;
|
|
729
|
+
isFormConfig?: boolean | undefined;
|
|
714
730
|
info?: RendererInfo | undefined;
|
|
715
731
|
region?: string | undefined;
|
|
716
732
|
getData?: (() => any) | undefined;
|
package/lib/editor.js
CHANGED