amis-editor-core 6.11.0-beta.0 → 6.11.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/component/base/SchemaForm.d.ts +771 -14
- package/esm/index.d.ts +3 -2
- package/esm/index.js +2 -2
- package/esm/manager.d.ts +57 -11
- package/esm/plugin.d.ts +11 -1
- package/esm/store/editor.d.ts +50 -45
- package/esm/variable.d.ts +5 -0
- package/lib/component/base/BackTop.d.ts +1 -1
- package/lib/component/base/SchemaForm.d.ts +771 -14
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +0 -1
- package/lib/manager.d.ts +57 -11
- package/lib/plugin.d.ts +11 -1
- package/lib/store/editor.d.ts +50 -46
- package/lib/style.css +1 -1
- package/lib/variable.d.ts +5 -0
- package/package.json +1 -1
package/lib/layout/flex.d.ts
CHANGED
package/lib/manager.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/// <reference types="lodash" />
|
|
3
3
|
import { DataSchema } from 'amis';
|
|
4
|
-
import { RenderOptions } from 'amis-core';
|
|
4
|
+
import { RenderOptions, GlobalVariableItem } from 'amis-core';
|
|
5
5
|
import { PluginInterface, BasicPanelItem, RendererInfo, SubRendererInfo, PluginEvent, RegionConfig, ContextMenuItem, ContextMenuEventContext, EventContext, PluginEventFn, ScaffoldForm, RendererPluginEvent, PluginEvents, PluginActions } from './plugin';
|
|
6
6
|
import { EditorStoreType, SubEditorContext } from './store/editor';
|
|
7
7
|
import { EditorNodeType } from './store/node';
|
|
@@ -112,6 +112,10 @@ export declare class EditorManager {
|
|
|
112
112
|
readonly removable: boolean;
|
|
113
113
|
readonly duplicatable: boolean;
|
|
114
114
|
readonly replaceable: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
117
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
118
|
+
*/
|
|
115
119
|
memberImmutable(region: string): boolean;
|
|
116
120
|
readonly isRegion: boolean;
|
|
117
121
|
readonly childRegions: any[];
|
|
@@ -176,6 +180,10 @@ export declare class EditorManager {
|
|
|
176
180
|
readonly removable: boolean;
|
|
177
181
|
readonly duplicatable: boolean;
|
|
178
182
|
readonly replaceable: boolean;
|
|
183
|
+
/**
|
|
184
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
185
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
186
|
+
*/
|
|
179
187
|
memberImmutable(region: string): boolean;
|
|
180
188
|
readonly isRegion: boolean;
|
|
181
189
|
readonly childRegions: any[];
|
|
@@ -239,6 +247,10 @@ export declare class EditorManager {
|
|
|
239
247
|
readonly removable: boolean;
|
|
240
248
|
readonly duplicatable: boolean;
|
|
241
249
|
readonly replaceable: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
252
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
253
|
+
*/
|
|
242
254
|
memberImmutable(region: string): boolean;
|
|
243
255
|
readonly isRegion: boolean;
|
|
244
256
|
readonly childRegions: any[];
|
|
@@ -329,6 +341,10 @@ export declare class EditorManager {
|
|
|
329
341
|
readonly removable: boolean;
|
|
330
342
|
readonly duplicatable: boolean;
|
|
331
343
|
readonly replaceable: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
346
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
347
|
+
*/
|
|
332
348
|
memberImmutable(region: string): boolean;
|
|
333
349
|
readonly isRegion: boolean;
|
|
334
350
|
readonly childRegions: any[];
|
|
@@ -392,6 +408,10 @@ export declare class EditorManager {
|
|
|
392
408
|
readonly removable: boolean;
|
|
393
409
|
readonly duplicatable: boolean;
|
|
394
410
|
readonly replaceable: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
413
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
414
|
+
*/
|
|
395
415
|
memberImmutable(region: string): boolean;
|
|
396
416
|
readonly isRegion: boolean;
|
|
397
417
|
readonly childRegions: any[];
|
|
@@ -441,11 +461,6 @@ export declare class EditorManager {
|
|
|
441
461
|
getTarget(): HTMLElement | HTMLElement[] | null;
|
|
442
462
|
calculateHighlightBox(root?: any): void;
|
|
443
463
|
resetHighlightBox(root: any): void;
|
|
444
|
-
/**
|
|
445
|
-
* 显示插入面板
|
|
446
|
-
* @param region
|
|
447
|
-
* @param preferTag
|
|
448
|
-
*/
|
|
449
464
|
updateState(state: any, replace?: boolean): void;
|
|
450
465
|
setWidthMutable(value: any): void;
|
|
451
466
|
setHeightMutable(value: any): void;
|
|
@@ -494,6 +509,10 @@ export declare class EditorManager {
|
|
|
494
509
|
readonly removable: boolean;
|
|
495
510
|
readonly duplicatable: boolean;
|
|
496
511
|
readonly replaceable: boolean;
|
|
512
|
+
/**
|
|
513
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
514
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
515
|
+
*/
|
|
497
516
|
memberImmutable(region: string): boolean;
|
|
498
517
|
readonly isRegion: boolean;
|
|
499
518
|
readonly childRegions: any[];
|
|
@@ -558,6 +577,10 @@ export declare class EditorManager {
|
|
|
558
577
|
readonly removable: boolean;
|
|
559
578
|
readonly duplicatable: boolean;
|
|
560
579
|
readonly replaceable: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
582
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
583
|
+
*/
|
|
561
584
|
memberImmutable(region: string): boolean;
|
|
562
585
|
readonly isRegion: boolean;
|
|
563
586
|
readonly childRegions: any[];
|
|
@@ -621,6 +644,10 @@ export declare class EditorManager {
|
|
|
621
644
|
readonly removable: boolean;
|
|
622
645
|
readonly duplicatable: boolean;
|
|
623
646
|
readonly replaceable: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
649
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
650
|
+
*/
|
|
624
651
|
memberImmutable(region: string): boolean;
|
|
625
652
|
readonly isRegion: boolean;
|
|
626
653
|
readonly childRegions: any[];
|
|
@@ -711,6 +738,10 @@ export declare class EditorManager {
|
|
|
711
738
|
readonly removable: boolean;
|
|
712
739
|
readonly duplicatable: boolean;
|
|
713
740
|
readonly replaceable: boolean;
|
|
741
|
+
/**
|
|
742
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
743
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
744
|
+
*/
|
|
714
745
|
memberImmutable(region: string): boolean;
|
|
715
746
|
readonly isRegion: boolean;
|
|
716
747
|
readonly childRegions: any[];
|
|
@@ -774,6 +805,10 @@ export declare class EditorManager {
|
|
|
774
805
|
readonly removable: boolean;
|
|
775
806
|
readonly duplicatable: boolean;
|
|
776
807
|
readonly replaceable: boolean;
|
|
808
|
+
/**
|
|
809
|
+
* 在 component/Editor.tsx 里面实例化的。
|
|
810
|
+
* 辅助 component/Editor.tsx 实现一些非 UI 相关的功能。
|
|
811
|
+
*/
|
|
777
812
|
memberImmutable(region: string): boolean;
|
|
778
813
|
readonly isRegion: boolean;
|
|
779
814
|
readonly childRegions: any[];
|
|
@@ -823,11 +858,6 @@ export declare class EditorManager {
|
|
|
823
858
|
getTarget(): HTMLElement | HTMLElement[] | null;
|
|
824
859
|
calculateHighlightBox(root?: any): void;
|
|
825
860
|
resetHighlightBox(root: any): void;
|
|
826
|
-
/**
|
|
827
|
-
* 显示插入面板
|
|
828
|
-
* @param region
|
|
829
|
-
* @param preferTag
|
|
830
|
-
*/
|
|
831
861
|
updateState(state: any, replace?: boolean): void;
|
|
832
862
|
setWidthMutable(value: any): void;
|
|
833
863
|
setHeightMutable(value: any): void;
|
|
@@ -1140,6 +1170,22 @@ export declare class EditorManager {
|
|
|
1140
1170
|
* 获取可用上下文待绑定字段
|
|
1141
1171
|
*/
|
|
1142
1172
|
getAvailableContextFields(node: EditorNodeType): Promise<any>;
|
|
1173
|
+
/**
|
|
1174
|
+
* 初始化全局变量
|
|
1175
|
+
*/
|
|
1176
|
+
initGlobalVariables(): Promise<void>;
|
|
1177
|
+
/**
|
|
1178
|
+
* 获取全局变量详情
|
|
1179
|
+
*/
|
|
1180
|
+
getGlobalVariableDetail(variable: Partial<GlobalVariableItem>): Promise<any>;
|
|
1181
|
+
/**
|
|
1182
|
+
* 保存全局变量,包括新增保存和编辑保存
|
|
1183
|
+
*/
|
|
1184
|
+
saveGlobalVariable(variable: Partial<GlobalVariableItem>): Promise<any>;
|
|
1185
|
+
/**
|
|
1186
|
+
* 删除全局变量
|
|
1187
|
+
*/
|
|
1188
|
+
deleteGlobalVariable(variable: Partial<GlobalVariableItem>): Promise<any>;
|
|
1143
1189
|
beforeDispatchEvent(originHook: any, e: any, component: any, scoped: IScopedContext, data: any, broadcasts?: any): void;
|
|
1144
1190
|
/**
|
|
1145
1191
|
* 销毁函数
|
package/lib/plugin.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { EditorStoreType } from './store/editor';
|
|
|
7
7
|
import { EditorNodeType } from './store/node';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { DiffChange } from './util';
|
|
10
|
-
import type { RendererConfig, Schema } from 'amis-core';
|
|
10
|
+
import type { GlobalVariableItem, RendererConfig, Schema } from 'amis-core';
|
|
11
11
|
import type { MenuDivider, MenuItem } from 'amis-ui/lib/components/ContextMenu';
|
|
12
12
|
import type { BaseSchema, SchemaCollection } from 'amis';
|
|
13
13
|
import type { AsyncLayerOptions } from './component/AsyncLayer';
|
|
@@ -470,6 +470,12 @@ export interface ResizeMoveEventContext extends EventContext {
|
|
|
470
470
|
node: EditorNodeType;
|
|
471
471
|
store: EditorStoreType;
|
|
472
472
|
}
|
|
473
|
+
export interface GlobalVariablesEventContext extends EventContext {
|
|
474
|
+
data: Array<GlobalVariableItem>;
|
|
475
|
+
}
|
|
476
|
+
export interface GlobalVariableEventContext extends EventContext {
|
|
477
|
+
data: Partial<GlobalVariableItem>;
|
|
478
|
+
}
|
|
473
479
|
export interface AfterBuildPanelBody extends EventContext {
|
|
474
480
|
data: SchemaCollection;
|
|
475
481
|
plugin: BasePlugin;
|
|
@@ -549,6 +555,10 @@ export interface PluginEventListener {
|
|
|
549
555
|
onMove(e: MouseEvent): void;
|
|
550
556
|
onEnd(e: MouseEvent): void;
|
|
551
557
|
}>) => void;
|
|
558
|
+
onGlobalVariableInit?: (event: PluginEvent<GlobalVariablesEventContext>) => void;
|
|
559
|
+
onGlobalVariableDetail?: (event: PluginEvent<GlobalVariableEventContext>) => void;
|
|
560
|
+
onGlobalVariableSave?: (event: PluginEvent<GlobalVariableEventContext>) => void;
|
|
561
|
+
onGlobalVariableDelete?: (event: PluginEvent<GlobalVariableEventContext>) => void;
|
|
552
562
|
}
|
|
553
563
|
/**
|
|
554
564
|
* 插件的 interface 定义
|
package/lib/store/editor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { GlobalVariableItem } from 'amis-core';
|
|
2
2
|
import { Instance } from 'mobx-state-tree';
|
|
3
3
|
import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm, DeleteEventContext, BaseEventContext, IGlobalEvent } from '../plugin';
|
|
4
4
|
import type { Schema } from 'amis';
|
|
@@ -125,7 +125,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
125
125
|
memberImmutable(region: string): boolean;
|
|
126
126
|
readonly isRegion: boolean;
|
|
127
127
|
readonly childRegions: any[];
|
|
128
|
-
readonly uniqueChildren: any[];
|
|
128
|
+
readonly uniqueChildren: any[];
|
|
129
129
|
readonly sameIdChild: any;
|
|
130
130
|
readonly singleRegion: boolean;
|
|
131
131
|
isExists(id: string): boolean;
|
|
@@ -189,7 +189,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
189
189
|
memberImmutable(region: string): boolean;
|
|
190
190
|
readonly isRegion: boolean;
|
|
191
191
|
readonly childRegions: any[];
|
|
192
|
-
readonly uniqueChildren: any[];
|
|
192
|
+
readonly uniqueChildren: any[];
|
|
193
193
|
readonly sameIdChild: any;
|
|
194
194
|
readonly singleRegion: boolean;
|
|
195
195
|
isExists(id: string): boolean;
|
|
@@ -252,7 +252,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
252
252
|
memberImmutable(region: string): boolean;
|
|
253
253
|
readonly isRegion: boolean;
|
|
254
254
|
readonly childRegions: any[];
|
|
255
|
-
readonly uniqueChildren: any[];
|
|
255
|
+
readonly uniqueChildren: any[];
|
|
256
256
|
readonly sameIdChild: any;
|
|
257
257
|
readonly singleRegion: boolean;
|
|
258
258
|
isExists(id: string): boolean;
|
|
@@ -342,7 +342,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
342
342
|
memberImmutable(region: string): boolean;
|
|
343
343
|
readonly isRegion: boolean;
|
|
344
344
|
readonly childRegions: any[];
|
|
345
|
-
readonly uniqueChildren: any[];
|
|
345
|
+
readonly uniqueChildren: any[];
|
|
346
346
|
readonly sameIdChild: any;
|
|
347
347
|
readonly singleRegion: boolean;
|
|
348
348
|
isExists(id: string): boolean;
|
|
@@ -405,7 +405,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
405
405
|
memberImmutable(region: string): boolean;
|
|
406
406
|
readonly isRegion: boolean;
|
|
407
407
|
readonly childRegions: any[];
|
|
408
|
-
readonly uniqueChildren: any[];
|
|
408
|
+
readonly uniqueChildren: any[];
|
|
409
409
|
readonly sameIdChild: any;
|
|
410
410
|
readonly singleRegion: boolean;
|
|
411
411
|
isExists(id: string): boolean;
|
|
@@ -521,6 +521,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
521
521
|
appCorpusData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
522
522
|
appLocaleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
523
523
|
globalEvents: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<IGlobalEvent[], IGlobalEvent[], IGlobalEvent[]>, [undefined]>;
|
|
524
|
+
globalVariables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
524
525
|
}, {
|
|
525
526
|
readonly filteredSchema: any;
|
|
526
527
|
readonly filteredSchemaForPreview: any;
|
|
@@ -583,7 +584,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
583
584
|
memberImmutable(region: string): boolean;
|
|
584
585
|
readonly isRegion: boolean;
|
|
585
586
|
readonly childRegions: any[];
|
|
586
|
-
readonly uniqueChildren: any[];
|
|
587
|
+
readonly uniqueChildren: any[];
|
|
587
588
|
readonly sameIdChild: any;
|
|
588
589
|
readonly singleRegion: boolean;
|
|
589
590
|
isExists(id: string): boolean;
|
|
@@ -647,7 +648,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
647
648
|
memberImmutable(region: string): boolean;
|
|
648
649
|
readonly isRegion: boolean;
|
|
649
650
|
readonly childRegions: any[];
|
|
650
|
-
readonly uniqueChildren: any[];
|
|
651
|
+
readonly uniqueChildren: any[];
|
|
651
652
|
readonly sameIdChild: any;
|
|
652
653
|
readonly singleRegion: boolean;
|
|
653
654
|
isExists(id: string): boolean;
|
|
@@ -710,7 +711,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
710
711
|
memberImmutable(region: string): boolean;
|
|
711
712
|
readonly isRegion: boolean;
|
|
712
713
|
readonly childRegions: any[];
|
|
713
|
-
readonly uniqueChildren: any[];
|
|
714
|
+
readonly uniqueChildren: any[];
|
|
714
715
|
readonly sameIdChild: any;
|
|
715
716
|
readonly singleRegion: boolean;
|
|
716
717
|
isExists(id: string): boolean;
|
|
@@ -800,7 +801,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
800
801
|
memberImmutable(region: string): boolean;
|
|
801
802
|
readonly isRegion: boolean;
|
|
802
803
|
readonly childRegions: any[];
|
|
803
|
-
readonly uniqueChildren: any[];
|
|
804
|
+
readonly uniqueChildren: any[];
|
|
804
805
|
readonly sameIdChild: any;
|
|
805
806
|
readonly singleRegion: boolean;
|
|
806
807
|
isExists(id: string): boolean;
|
|
@@ -863,7 +864,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
863
864
|
memberImmutable(region: string): boolean;
|
|
864
865
|
readonly isRegion: boolean;
|
|
865
866
|
readonly childRegions: any[];
|
|
866
|
-
readonly uniqueChildren: any[];
|
|
867
|
+
readonly uniqueChildren: any[];
|
|
867
868
|
readonly sameIdChild: any;
|
|
868
869
|
readonly singleRegion: boolean;
|
|
869
870
|
isExists(id: string): boolean;
|
|
@@ -960,7 +961,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
960
961
|
memberImmutable(region: string): boolean;
|
|
961
962
|
readonly isRegion: boolean;
|
|
962
963
|
readonly childRegions: any[];
|
|
963
|
-
readonly uniqueChildren: any[];
|
|
964
|
+
readonly uniqueChildren: any[];
|
|
964
965
|
readonly sameIdChild: any;
|
|
965
966
|
readonly singleRegion: boolean;
|
|
966
967
|
isExists(id: string): boolean;
|
|
@@ -1024,7 +1025,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1024
1025
|
memberImmutable(region: string): boolean;
|
|
1025
1026
|
readonly isRegion: boolean;
|
|
1026
1027
|
readonly childRegions: any[];
|
|
1027
|
-
readonly uniqueChildren: any[];
|
|
1028
|
+
readonly uniqueChildren: any[];
|
|
1028
1029
|
readonly sameIdChild: any;
|
|
1029
1030
|
readonly singleRegion: boolean;
|
|
1030
1031
|
isExists(id: string): boolean;
|
|
@@ -1087,7 +1088,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1087
1088
|
memberImmutable(region: string): boolean;
|
|
1088
1089
|
readonly isRegion: boolean;
|
|
1089
1090
|
readonly childRegions: any[];
|
|
1090
|
-
readonly uniqueChildren: any[];
|
|
1091
|
+
readonly uniqueChildren: any[];
|
|
1091
1092
|
readonly sameIdChild: any;
|
|
1092
1093
|
readonly singleRegion: boolean;
|
|
1093
1094
|
isExists(id: string): boolean;
|
|
@@ -1177,7 +1178,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1177
1178
|
memberImmutable(region: string): boolean;
|
|
1178
1179
|
readonly isRegion: boolean;
|
|
1179
1180
|
readonly childRegions: any[];
|
|
1180
|
-
readonly uniqueChildren: any[];
|
|
1181
|
+
readonly uniqueChildren: any[];
|
|
1181
1182
|
readonly sameIdChild: any;
|
|
1182
1183
|
readonly singleRegion: boolean;
|
|
1183
1184
|
isExists(id: string): boolean;
|
|
@@ -1240,7 +1241,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1240
1241
|
memberImmutable(region: string): boolean;
|
|
1241
1242
|
readonly isRegion: boolean;
|
|
1242
1243
|
readonly childRegions: any[];
|
|
1243
|
-
readonly uniqueChildren: any[];
|
|
1244
|
+
readonly uniqueChildren: any[];
|
|
1244
1245
|
readonly sameIdChild: any;
|
|
1245
1246
|
readonly singleRegion: boolean;
|
|
1246
1247
|
isExists(id: string): boolean;
|
|
@@ -1360,7 +1361,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1360
1361
|
memberImmutable(region: string): boolean;
|
|
1361
1362
|
readonly isRegion: boolean;
|
|
1362
1363
|
readonly childRegions: any[];
|
|
1363
|
-
readonly uniqueChildren: any[];
|
|
1364
|
+
readonly uniqueChildren: any[];
|
|
1364
1365
|
readonly sameIdChild: any;
|
|
1365
1366
|
readonly singleRegion: boolean;
|
|
1366
1367
|
isExists(id: string): boolean;
|
|
@@ -1424,7 +1425,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1424
1425
|
memberImmutable(region: string): boolean;
|
|
1425
1426
|
readonly isRegion: boolean;
|
|
1426
1427
|
readonly childRegions: any[];
|
|
1427
|
-
readonly uniqueChildren: any[];
|
|
1428
|
+
readonly uniqueChildren: any[];
|
|
1428
1429
|
readonly sameIdChild: any;
|
|
1429
1430
|
readonly singleRegion: boolean;
|
|
1430
1431
|
isExists(id: string): boolean;
|
|
@@ -1487,7 +1488,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1487
1488
|
memberImmutable(region: string): boolean;
|
|
1488
1489
|
readonly isRegion: boolean;
|
|
1489
1490
|
readonly childRegions: any[];
|
|
1490
|
-
readonly uniqueChildren: any[];
|
|
1491
|
+
readonly uniqueChildren: any[];
|
|
1491
1492
|
readonly sameIdChild: any;
|
|
1492
1493
|
readonly singleRegion: boolean;
|
|
1493
1494
|
isExists(id: string): boolean;
|
|
@@ -1577,7 +1578,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1577
1578
|
memberImmutable(region: string): boolean;
|
|
1578
1579
|
readonly isRegion: boolean;
|
|
1579
1580
|
readonly childRegions: any[];
|
|
1580
|
-
readonly uniqueChildren: any[];
|
|
1581
|
+
readonly uniqueChildren: any[];
|
|
1581
1582
|
readonly sameIdChild: any;
|
|
1582
1583
|
readonly singleRegion: boolean;
|
|
1583
1584
|
isExists(id: string): boolean;
|
|
@@ -1640,7 +1641,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1640
1641
|
memberImmutable(region: string): boolean;
|
|
1641
1642
|
readonly isRegion: boolean;
|
|
1642
1643
|
readonly childRegions: any[];
|
|
1643
|
-
readonly uniqueChildren: any[];
|
|
1644
|
+
readonly uniqueChildren: any[];
|
|
1644
1645
|
readonly sameIdChild: any;
|
|
1645
1646
|
readonly singleRegion: boolean;
|
|
1646
1647
|
isExists(id: string): boolean;
|
|
@@ -1737,7 +1738,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1737
1738
|
memberImmutable(region: string): boolean;
|
|
1738
1739
|
readonly isRegion: boolean;
|
|
1739
1740
|
readonly childRegions: any[];
|
|
1740
|
-
readonly uniqueChildren: any[];
|
|
1741
|
+
readonly uniqueChildren: any[];
|
|
1741
1742
|
readonly sameIdChild: any;
|
|
1742
1743
|
readonly singleRegion: boolean;
|
|
1743
1744
|
isExists(id: string): boolean;
|
|
@@ -1801,7 +1802,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1801
1802
|
memberImmutable(region: string): boolean;
|
|
1802
1803
|
readonly isRegion: boolean;
|
|
1803
1804
|
readonly childRegions: any[];
|
|
1804
|
-
readonly uniqueChildren: any[];
|
|
1805
|
+
readonly uniqueChildren: any[];
|
|
1805
1806
|
readonly sameIdChild: any;
|
|
1806
1807
|
readonly singleRegion: boolean;
|
|
1807
1808
|
isExists(id: string): boolean;
|
|
@@ -1864,7 +1865,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1864
1865
|
memberImmutable(region: string): boolean;
|
|
1865
1866
|
readonly isRegion: boolean;
|
|
1866
1867
|
readonly childRegions: any[];
|
|
1867
|
-
readonly uniqueChildren: any[];
|
|
1868
|
+
readonly uniqueChildren: any[];
|
|
1868
1869
|
readonly sameIdChild: any;
|
|
1869
1870
|
readonly singleRegion: boolean;
|
|
1870
1871
|
isExists(id: string): boolean;
|
|
@@ -1954,7 +1955,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
1954
1955
|
memberImmutable(region: string): boolean;
|
|
1955
1956
|
readonly isRegion: boolean;
|
|
1956
1957
|
readonly childRegions: any[];
|
|
1957
|
-
readonly uniqueChildren: any[];
|
|
1958
|
+
readonly uniqueChildren: any[];
|
|
1958
1959
|
readonly sameIdChild: any;
|
|
1959
1960
|
readonly singleRegion: boolean;
|
|
1960
1961
|
isExists(id: string): boolean;
|
|
@@ -2017,7 +2018,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2017
2018
|
memberImmutable(region: string): boolean;
|
|
2018
2019
|
readonly isRegion: boolean;
|
|
2019
2020
|
readonly childRegions: any[];
|
|
2020
|
-
readonly uniqueChildren: any[];
|
|
2021
|
+
readonly uniqueChildren: any[];
|
|
2021
2022
|
readonly sameIdChild: any;
|
|
2022
2023
|
readonly singleRegion: boolean;
|
|
2023
2024
|
isExists(id: string): boolean;
|
|
@@ -2115,7 +2116,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2115
2116
|
memberImmutable(region: string): boolean;
|
|
2116
2117
|
readonly isRegion: boolean;
|
|
2117
2118
|
readonly childRegions: any[];
|
|
2118
|
-
readonly uniqueChildren: any[];
|
|
2119
|
+
readonly uniqueChildren: any[];
|
|
2119
2120
|
readonly sameIdChild: any;
|
|
2120
2121
|
readonly singleRegion: boolean;
|
|
2121
2122
|
isExists(id: string): boolean;
|
|
@@ -2179,7 +2180,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2179
2180
|
memberImmutable(region: string): boolean;
|
|
2180
2181
|
readonly isRegion: boolean;
|
|
2181
2182
|
readonly childRegions: any[];
|
|
2182
|
-
readonly uniqueChildren: any[];
|
|
2183
|
+
readonly uniqueChildren: any[];
|
|
2183
2184
|
readonly sameIdChild: any;
|
|
2184
2185
|
readonly singleRegion: boolean;
|
|
2185
2186
|
isExists(id: string): boolean;
|
|
@@ -2242,7 +2243,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2242
2243
|
memberImmutable(region: string): boolean;
|
|
2243
2244
|
readonly isRegion: boolean;
|
|
2244
2245
|
readonly childRegions: any[];
|
|
2245
|
-
readonly uniqueChildren: any[];
|
|
2246
|
+
readonly uniqueChildren: any[];
|
|
2246
2247
|
readonly sameIdChild: any;
|
|
2247
2248
|
readonly singleRegion: boolean;
|
|
2248
2249
|
isExists(id: string): boolean;
|
|
@@ -2332,7 +2333,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2332
2333
|
memberImmutable(region: string): boolean;
|
|
2333
2334
|
readonly isRegion: boolean;
|
|
2334
2335
|
readonly childRegions: any[];
|
|
2335
|
-
readonly uniqueChildren: any[];
|
|
2336
|
+
readonly uniqueChildren: any[];
|
|
2336
2337
|
readonly sameIdChild: any;
|
|
2337
2338
|
readonly singleRegion: boolean;
|
|
2338
2339
|
isExists(id: string): boolean;
|
|
@@ -2395,7 +2396,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2395
2396
|
memberImmutable(region: string): boolean;
|
|
2396
2397
|
readonly isRegion: boolean;
|
|
2397
2398
|
readonly childRegions: any[];
|
|
2398
|
-
readonly uniqueChildren: any[];
|
|
2399
|
+
readonly uniqueChildren: any[];
|
|
2399
2400
|
readonly sameIdChild: any;
|
|
2400
2401
|
readonly singleRegion: boolean;
|
|
2401
2402
|
isExists(id: string): boolean;
|
|
@@ -2492,7 +2493,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2492
2493
|
memberImmutable(region: string): boolean;
|
|
2493
2494
|
readonly isRegion: boolean;
|
|
2494
2495
|
readonly childRegions: any[];
|
|
2495
|
-
readonly uniqueChildren: any[];
|
|
2496
|
+
readonly uniqueChildren: any[];
|
|
2496
2497
|
readonly sameIdChild: any;
|
|
2497
2498
|
readonly singleRegion: boolean;
|
|
2498
2499
|
isExists(id: string): boolean;
|
|
@@ -2556,7 +2557,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2556
2557
|
memberImmutable(region: string): boolean;
|
|
2557
2558
|
readonly isRegion: boolean;
|
|
2558
2559
|
readonly childRegions: any[];
|
|
2559
|
-
readonly uniqueChildren: any[];
|
|
2560
|
+
readonly uniqueChildren: any[];
|
|
2560
2561
|
readonly sameIdChild: any;
|
|
2561
2562
|
readonly singleRegion: boolean;
|
|
2562
2563
|
isExists(id: string): boolean;
|
|
@@ -2619,7 +2620,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2619
2620
|
memberImmutable(region: string): boolean;
|
|
2620
2621
|
readonly isRegion: boolean;
|
|
2621
2622
|
readonly childRegions: any[];
|
|
2622
|
-
readonly uniqueChildren: any[];
|
|
2623
|
+
readonly uniqueChildren: any[];
|
|
2623
2624
|
readonly sameIdChild: any;
|
|
2624
2625
|
readonly singleRegion: boolean;
|
|
2625
2626
|
isExists(id: string): boolean;
|
|
@@ -2709,7 +2710,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2709
2710
|
memberImmutable(region: string): boolean;
|
|
2710
2711
|
readonly isRegion: boolean;
|
|
2711
2712
|
readonly childRegions: any[];
|
|
2712
|
-
readonly uniqueChildren: any[];
|
|
2713
|
+
readonly uniqueChildren: any[];
|
|
2713
2714
|
readonly sameIdChild: any;
|
|
2714
2715
|
readonly singleRegion: boolean;
|
|
2715
2716
|
isExists(id: string): boolean;
|
|
@@ -2772,7 +2773,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2772
2773
|
memberImmutable(region: string): boolean;
|
|
2773
2774
|
readonly isRegion: boolean;
|
|
2774
2775
|
readonly childRegions: any[];
|
|
2775
|
-
readonly uniqueChildren: any[];
|
|
2776
|
+
readonly uniqueChildren: any[];
|
|
2776
2777
|
readonly sameIdChild: any;
|
|
2777
2778
|
readonly singleRegion: boolean;
|
|
2778
2779
|
isExists(id: string): boolean;
|
|
@@ -2870,7 +2871,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2870
2871
|
memberImmutable(region: string): boolean;
|
|
2871
2872
|
readonly isRegion: boolean;
|
|
2872
2873
|
readonly childRegions: any[];
|
|
2873
|
-
readonly uniqueChildren: any[];
|
|
2874
|
+
readonly uniqueChildren: any[];
|
|
2874
2875
|
readonly sameIdChild: any;
|
|
2875
2876
|
readonly singleRegion: boolean;
|
|
2876
2877
|
isExists(id: string): boolean;
|
|
@@ -2934,7 +2935,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2934
2935
|
memberImmutable(region: string): boolean;
|
|
2935
2936
|
readonly isRegion: boolean;
|
|
2936
2937
|
readonly childRegions: any[];
|
|
2937
|
-
readonly uniqueChildren: any[];
|
|
2938
|
+
readonly uniqueChildren: any[];
|
|
2938
2939
|
readonly sameIdChild: any;
|
|
2939
2940
|
readonly singleRegion: boolean;
|
|
2940
2941
|
isExists(id: string): boolean;
|
|
@@ -2997,7 +2998,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
2997
2998
|
memberImmutable(region: string): boolean;
|
|
2998
2999
|
readonly isRegion: boolean;
|
|
2999
3000
|
readonly childRegions: any[];
|
|
3000
|
-
readonly uniqueChildren: any[];
|
|
3001
|
+
readonly uniqueChildren: any[];
|
|
3001
3002
|
readonly sameIdChild: any;
|
|
3002
3003
|
readonly singleRegion: boolean;
|
|
3003
3004
|
isExists(id: string): boolean;
|
|
@@ -3087,7 +3088,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3087
3088
|
memberImmutable(region: string): boolean;
|
|
3088
3089
|
readonly isRegion: boolean;
|
|
3089
3090
|
readonly childRegions: any[];
|
|
3090
|
-
readonly uniqueChildren: any[];
|
|
3091
|
+
readonly uniqueChildren: any[];
|
|
3091
3092
|
readonly sameIdChild: any;
|
|
3092
3093
|
readonly singleRegion: boolean;
|
|
3093
3094
|
isExists(id: string): boolean;
|
|
@@ -3150,7 +3151,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3150
3151
|
memberImmutable(region: string): boolean;
|
|
3151
3152
|
readonly isRegion: boolean;
|
|
3152
3153
|
readonly childRegions: any[];
|
|
3153
|
-
readonly uniqueChildren: any[];
|
|
3154
|
+
readonly uniqueChildren: any[];
|
|
3154
3155
|
readonly sameIdChild: any;
|
|
3155
3156
|
readonly singleRegion: boolean;
|
|
3156
3157
|
isExists(id: string): boolean;
|
|
@@ -3247,7 +3248,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3247
3248
|
memberImmutable(region: string): boolean;
|
|
3248
3249
|
readonly isRegion: boolean;
|
|
3249
3250
|
readonly childRegions: any[];
|
|
3250
|
-
readonly uniqueChildren: any[];
|
|
3251
|
+
readonly uniqueChildren: any[];
|
|
3251
3252
|
readonly sameIdChild: any;
|
|
3252
3253
|
readonly singleRegion: boolean;
|
|
3253
3254
|
isExists(id: string): boolean;
|
|
@@ -3311,7 +3312,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3311
3312
|
memberImmutable(region: string): boolean;
|
|
3312
3313
|
readonly isRegion: boolean;
|
|
3313
3314
|
readonly childRegions: any[];
|
|
3314
|
-
readonly uniqueChildren: any[];
|
|
3315
|
+
readonly uniqueChildren: any[];
|
|
3315
3316
|
readonly sameIdChild: any;
|
|
3316
3317
|
readonly singleRegion: boolean;
|
|
3317
3318
|
isExists(id: string): boolean;
|
|
@@ -3374,7 +3375,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3374
3375
|
memberImmutable(region: string): boolean;
|
|
3375
3376
|
readonly isRegion: boolean;
|
|
3376
3377
|
readonly childRegions: any[];
|
|
3377
|
-
readonly uniqueChildren: any[];
|
|
3378
|
+
readonly uniqueChildren: any[];
|
|
3378
3379
|
readonly sameIdChild: any;
|
|
3379
3380
|
readonly singleRegion: boolean;
|
|
3380
3381
|
isExists(id: string): boolean;
|
|
@@ -3464,7 +3465,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3464
3465
|
memberImmutable(region: string): boolean;
|
|
3465
3466
|
readonly isRegion: boolean;
|
|
3466
3467
|
readonly childRegions: any[];
|
|
3467
|
-
readonly uniqueChildren: any[];
|
|
3468
|
+
readonly uniqueChildren: any[];
|
|
3468
3469
|
readonly sameIdChild: any;
|
|
3469
3470
|
readonly singleRegion: boolean;
|
|
3470
3471
|
isExists(id: string): boolean;
|
|
@@ -3527,7 +3528,7 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3527
3528
|
memberImmutable(region: string): boolean;
|
|
3528
3529
|
readonly isRegion: boolean;
|
|
3529
3530
|
readonly childRegions: any[];
|
|
3530
|
-
readonly uniqueChildren: any[];
|
|
3531
|
+
readonly uniqueChildren: any[];
|
|
3531
3532
|
readonly sameIdChild: any;
|
|
3532
3533
|
readonly singleRegion: boolean;
|
|
3533
3534
|
isExists(id: string): boolean;
|
|
@@ -3765,6 +3766,9 @@ export declare const MainStore: import("mobx-state-tree").IModelType<{
|
|
|
3765
3766
|
/** 设置应用的语料数据 */
|
|
3766
3767
|
setAppCorpusData(data?: any): void;
|
|
3767
3768
|
setGlobalEvents(events: IGlobalEvent[]): void;
|
|
3769
|
+
setGlobalVariables(variables: Array<GlobalVariableItem & {
|
|
3770
|
+
id: string | number;
|
|
3771
|
+
}>): void;
|
|
3768
3772
|
beforeDestroy(): void;
|
|
3769
3773
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
3770
3774
|
export type EditorStoreType = Instance<typeof MainStore>;
|