amis-core 1.0.0-beta.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/dist/Root.js +94 -0
- package/dist/RootRenderer.js +288 -0
- package/dist/SchemaRenderer.js +323 -0
- package/dist/Scoped.js +252 -0
- package/dist/WithRootStore.js +44 -0
- package/dist/WithStore.js +179 -0
- package/dist/__tests__/compat.test.d.ts +1 -0
- package/dist/__tests__/factory.test.d.ts +1 -0
- package/dist/__tests__/filter.test.d.ts +1 -0
- package/dist/__tests__/helper.d.ts +13 -0
- package/dist/__tests__/tokenize.test.d.ts +1 -0
- package/dist/actions/Action.js +119 -0
- package/dist/actions/AjaxAction.js +96 -0
- package/dist/actions/BreakAction.js +35 -0
- package/dist/actions/BroadcastAction.js +49 -0
- package/dist/actions/CmptAction.js +60 -0
- package/dist/actions/ContinueAction.js +35 -0
- package/dist/actions/CopyAction.js +43 -0
- package/dist/actions/CustomAction.js +49 -0
- package/dist/actions/DialogAction.js +104 -0
- package/dist/actions/DrawerAction.js +66 -0
- package/dist/actions/EmailAction.js +48 -0
- package/dist/actions/LinkAction.js +52 -0
- package/dist/actions/LoopAction.js +107 -0
- package/dist/actions/PageAction.js +80 -0
- package/dist/actions/ParallelAction.js +40 -0
- package/dist/actions/SwitchAction.js +52 -0
- package/dist/actions/ToastAction.js +35 -0
- package/dist/components/LazyComponent.js +99 -0
- package/dist/env.js +20 -0
- package/dist/envOverwrite.js +43 -0
- package/dist/factory.js +308 -0
- package/dist/index.js +218 -0
- package/dist/index2.js +255 -0
- package/dist/locale.js +114 -0
- package/dist/renderers/Form.js +1162 -0
- package/dist/renderers/Item.js +636 -0
- package/dist/renderers/Options.js +881 -0
- package/dist/renderers/Placeholder.js +31 -0
- package/dist/renderers/builtin.js +27 -0
- package/dist/renderers/wrapControl.js +507 -0
- package/dist/src/Root.d.ts +37 -0
- package/dist/src/RootRenderer.d.ts +27 -0
- package/dist/src/SchemaRenderer.d.ts +37 -0
- package/dist/src/Scoped.d.ts +38 -0
- package/dist/src/WithRootStore.d.ts +737 -0
- package/dist/src/WithStore.d.ts +5 -0
- package/dist/src/actions/Action.d.ts +38 -0
- package/dist/src/actions/AjaxAction.d.ts +25 -0
- package/dist/src/actions/BreakAction.d.ts +15 -0
- package/dist/src/actions/BroadcastAction.d.ts +16 -0
- package/dist/src/actions/CmptAction.d.ts +20 -0
- package/dist/src/actions/ContinueAction.d.ts +15 -0
- package/dist/src/actions/CopyAction.d.ts +20 -0
- package/dist/src/actions/CustomAction.d.ts +17 -0
- package/dist/src/actions/Decorators.d.ts +25 -0
- package/dist/src/actions/DialogAction.d.ts +57 -0
- package/dist/src/actions/DrawerAction.d.ts +30 -0
- package/dist/src/actions/EmailAction.d.ts +23 -0
- package/dist/src/actions/LinkAction.d.ts +24 -0
- package/dist/src/actions/LoopAction.d.ts +19 -0
- package/dist/src/actions/PageAction.d.ts +39 -0
- package/dist/src/actions/ParallelAction.d.ts +8 -0
- package/dist/src/actions/SwitchAction.d.ts +11 -0
- package/dist/src/actions/ToastAction.d.ts +19 -0
- package/dist/src/actions/index.d.ts +21 -0
- package/dist/src/components/LazyComponent.d.ts +32 -0
- package/dist/src/env.d.ts +172 -0
- package/dist/src/envOverwrite.d.ts +4 -0
- package/dist/src/factory.d.ts +78 -0
- package/dist/src/index.d.ts +25 -0
- package/dist/src/locale.d.ts +82 -0
- package/dist/src/renderers/Form.d.ts +352 -0
- package/dist/src/renderers/Item.d.ts +795 -0
- package/dist/src/renderers/Options.d.ts +150 -0
- package/dist/src/renderers/Placeholder.d.ts +6 -0
- package/dist/src/renderers/builtin.d.ts +1 -0
- package/dist/src/renderers/wrapControl.d.ts +446 -0
- package/dist/src/schema.d.ts +369 -0
- package/dist/src/store/app.d.ts +89 -0
- package/dist/src/store/combo.d.ts +8504 -0
- package/dist/src/store/crud.d.ts +124 -0
- package/dist/src/store/form.d.ts +3394 -0
- package/dist/src/store/formItem.d.ts +130 -0
- package/dist/src/store/iRenderer.d.ts +46 -0
- package/dist/src/store/index.d.ts +105 -0
- package/dist/src/store/list.d.ts +270 -0
- package/dist/src/store/manager.d.ts +115 -0
- package/dist/src/store/modal.d.ts +84 -0
- package/dist/src/store/node.d.ts +22 -0
- package/dist/src/store/pagination.d.ts +58 -0
- package/dist/src/store/root.d.ts +79 -0
- package/dist/src/store/service.d.ts +71 -0
- package/dist/src/store/table-v2.d.ts +309 -0
- package/dist/src/store/table.d.ts +8334 -0
- package/dist/src/theme.d.ts +83 -0
- package/dist/src/types.d.ts +217 -0
- package/dist/src/utils/Animation.d.ts +22 -0
- package/dist/src/utils/ColorScale.d.ts +19 -0
- package/dist/src/utils/DataSchema.d.ts +25 -0
- package/dist/src/utils/DataScope.d.ts +23 -0
- package/dist/src/utils/RootClose.d.ts +4 -0
- package/dist/src/utils/SimpleMap.d.ts +8 -0
- package/dist/src/utils/api.d.ts +27 -0
- package/dist/src/utils/attachmentAdpator.d.ts +7 -0
- package/dist/src/utils/autobind.d.ts +7 -0
- package/dist/src/utils/columnsSplit.d.ts +1 -0
- package/dist/src/utils/dataMapping.d.ts +3 -0
- package/dist/src/utils/date.d.ts +4 -0
- package/dist/src/utils/debug.d.ts +26 -0
- package/dist/src/utils/dom.d.ts +13 -0
- package/dist/src/utils/errors.d.ts +6 -0
- package/dist/src/utils/escapeHtml.d.ts +1 -0
- package/dist/src/utils/filter-schema.d.ts +12 -0
- package/dist/src/utils/filter.d.ts +1 -0
- package/dist/src/utils/formatDuration.d.ts +1 -0
- package/dist/src/utils/formula.d.ts +16 -0
- package/dist/src/utils/getVariable.d.ts +3 -0
- package/dist/src/utils/grammar.d.ts +4 -0
- package/dist/src/utils/handleAction.d.ts +6 -0
- package/dist/src/utils/helper.d.ts +286 -0
- package/dist/src/utils/icon.d.ts +12 -0
- package/dist/src/utils/image.d.ts +17 -0
- package/dist/src/utils/index.d.ts +12 -0
- package/dist/src/utils/isPureVariable.d.ts +1 -0
- package/dist/src/utils/json-schema-2-amis-schema.d.ts +6 -0
- package/dist/src/utils/keyToPath.d.ts +6 -0
- package/dist/src/utils/makeSorter.d.ts +1 -0
- package/dist/src/utils/markdown.d.ts +5 -0
- package/dist/src/utils/normalizeLink.d.ts +1 -0
- package/dist/src/utils/normalizeOptions.d.ts +7 -0
- package/dist/src/utils/object.d.ts +15 -0
- package/dist/src/utils/offset.d.ts +14 -0
- package/dist/src/utils/offsetParent.d.ts +4 -0
- package/dist/src/utils/optionValueCompare.d.ts +3 -0
- package/dist/src/utils/position.d.ts +15 -0
- package/dist/src/utils/prettyBytes.d.ts +1 -0
- package/dist/src/utils/renderer-event.d.ts +44 -0
- package/dist/src/utils/replaceText.d.ts +6 -0
- package/dist/src/utils/resize-sensor.d.ts +6 -0
- package/dist/src/utils/resolveVariable.d.ts +1 -0
- package/dist/src/utils/resolveVariableAndFilter.d.ts +1 -0
- package/dist/src/utils/scrollPosition.d.ts +6 -0
- package/dist/src/utils/string2regExp.d.ts +1 -0
- package/dist/src/utils/stripNumber.d.ts +1 -0
- package/dist/src/utils/style.d.ts +10 -0
- package/dist/src/utils/tokenize.d.ts +1 -0
- package/dist/src/utils/tpl-builtin.d.ts +18 -0
- package/dist/src/utils/tpl-lodash.d.ts +4 -0
- package/dist/src/utils/tpl.d.ts +11 -0
- package/dist/src/utils/validations.d.ts +39 -0
- package/dist/store/app.js +190 -0
- package/dist/store/combo.js +154 -0
- package/dist/store/crud.js +413 -0
- package/dist/store/form.js +579 -0
- package/dist/store/formItem.js +846 -0
- package/dist/store/iRenderer.js +189 -0
- package/dist/store/index.js +103 -0
- package/dist/store/list.js +248 -0
- package/dist/store/manager.js +56 -0
- package/dist/store/modal.js +54 -0
- package/dist/store/node.js +93 -0
- package/dist/store/pagination.js +60 -0
- package/dist/store/root.js +45 -0
- package/dist/store/service.js +415 -0
- package/dist/store/table-v2.js +471 -0
- package/dist/store/table.js +1105 -0
- package/dist/theme.js +93 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/Animation.js +290 -0
- package/dist/utils/DataSchema.js +120 -0
- package/dist/utils/DataScope.js +151 -0
- package/dist/utils/SimpleMap.js +46 -0
- package/dist/utils/api.js +555 -0
- package/dist/utils/autobind.js +94 -0
- package/dist/utils/dataMapping.js +136 -0
- package/dist/utils/date.js +90 -0
- package/dist/utils/debug.js +343 -0
- package/dist/utils/errors.js +23 -0
- package/dist/utils/escapeHtml.js +24 -0
- package/dist/utils/filter-schema.js +75 -0
- package/dist/utils/filter.js +481 -0
- package/dist/utils/formatDuration.js +27 -0
- package/dist/utils/formula.js +165 -0
- package/dist/utils/getVariable.js +29 -0
- package/dist/utils/grammar.js +54 -0
- package/dist/utils/helper.js +1283 -0
- package/dist/utils/isPureVariable.js +16 -0
- package/dist/utils/keyToPath.js +34 -0
- package/dist/utils/makeSorter.js +30 -0
- package/dist/utils/normalizeLink.js +47 -0
- package/dist/utils/normalizeOptions.js +92 -0
- package/dist/utils/object.js +156 -0
- package/dist/utils/offset.js +36 -0
- package/dist/utils/offsetParent.js +27 -0
- package/dist/utils/optionValueCompare.js +25 -0
- package/dist/utils/position.js +50 -0
- package/dist/utils/prettyBytes.js +28 -0
- package/dist/utils/renderer-event.js +131 -0
- package/dist/utils/replaceText.js +35 -0
- package/dist/utils/resize-sensor.js +177 -0
- package/dist/utils/resolveVariable.js +39 -0
- package/dist/utils/resolveVariableAndFilter.js +37 -0
- package/dist/utils/string2regExp.js +18 -0
- package/dist/utils/stripNumber.js +20 -0
- package/dist/utils/tokenize.js +33 -0
- package/dist/utils/tpl-builtin.js +71 -0
- package/dist/utils/tpl-lodash.js +71 -0
- package/dist/utils/tpl.js +140 -0
- package/dist/utils/validations.js +377 -0
- package/package.json +121 -0
|
@@ -0,0 +1,737 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IRendererStore } from './store';
|
|
3
|
+
import hoistNonReactStatic from 'hoist-non-react-statics';
|
|
4
|
+
export declare const RootStoreContext: React.Context<{
|
|
5
|
+
storeType: string;
|
|
6
|
+
visibleState: any;
|
|
7
|
+
disableState: any;
|
|
8
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
9
|
+
readonly fetcher: any;
|
|
10
|
+
readonly notify: any;
|
|
11
|
+
readonly isCancel: (value: any) => boolean;
|
|
12
|
+
readonly __: import("./locale").TranslateFn<any>;
|
|
13
|
+
getStoreById(id: string): {
|
|
14
|
+
id: string;
|
|
15
|
+
path: string;
|
|
16
|
+
storeType: string;
|
|
17
|
+
disposed: boolean;
|
|
18
|
+
parentId: string;
|
|
19
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
20
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
21
|
+
readonly parentStore: any;
|
|
22
|
+
readonly __: any;
|
|
23
|
+
readonly hasChildren: boolean;
|
|
24
|
+
readonly children: any[];
|
|
25
|
+
} & {
|
|
26
|
+
onChildStoreDispose(child: any): void;
|
|
27
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
28
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
29
|
+
addChildId: (id: string) => void;
|
|
30
|
+
removeChildId: (id: string) => void;
|
|
31
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
32
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
34
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
35
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
37
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
38
|
+
}, {
|
|
39
|
+
readonly parentStore: any;
|
|
40
|
+
readonly __: any;
|
|
41
|
+
readonly hasChildren: boolean;
|
|
42
|
+
readonly children: any[];
|
|
43
|
+
} & {
|
|
44
|
+
onChildStoreDispose(child: any): void;
|
|
45
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
46
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
47
|
+
addChildId: (id: string) => void;
|
|
48
|
+
removeChildId: (id: string) => void;
|
|
49
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
50
|
+
readonly stores: {
|
|
51
|
+
[propName: string]: {
|
|
52
|
+
id: string;
|
|
53
|
+
path: string;
|
|
54
|
+
storeType: string;
|
|
55
|
+
disposed: boolean;
|
|
56
|
+
parentId: string;
|
|
57
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
58
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
59
|
+
readonly parentStore: any;
|
|
60
|
+
readonly __: any;
|
|
61
|
+
readonly hasChildren: boolean;
|
|
62
|
+
readonly children: any[];
|
|
63
|
+
} & {
|
|
64
|
+
onChildStoreDispose(child: any): void;
|
|
65
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
66
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
67
|
+
addChildId: (id: string) => void;
|
|
68
|
+
removeChildId: (id: string) => void;
|
|
69
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
70
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
71
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
72
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
73
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
74
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
75
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
76
|
+
}, {
|
|
77
|
+
readonly parentStore: any;
|
|
78
|
+
readonly __: any;
|
|
79
|
+
readonly hasChildren: boolean;
|
|
80
|
+
readonly children: any[];
|
|
81
|
+
} & {
|
|
82
|
+
onChildStoreDispose(child: any): void;
|
|
83
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
84
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
85
|
+
addChildId: (id: string) => void;
|
|
86
|
+
removeChildId: (id: string) => void;
|
|
87
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
88
|
+
};
|
|
89
|
+
} & {
|
|
90
|
+
addStore(store: {
|
|
91
|
+
[propName: string]: any;
|
|
92
|
+
storeType: string;
|
|
93
|
+
id: string;
|
|
94
|
+
path: string;
|
|
95
|
+
parentId?: string | undefined;
|
|
96
|
+
}): {
|
|
97
|
+
id: string;
|
|
98
|
+
path: string;
|
|
99
|
+
storeType: string;
|
|
100
|
+
disposed: boolean;
|
|
101
|
+
parentId: string;
|
|
102
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
103
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
104
|
+
readonly parentStore: any;
|
|
105
|
+
readonly __: any;
|
|
106
|
+
readonly hasChildren: boolean;
|
|
107
|
+
readonly children: any[];
|
|
108
|
+
} & {
|
|
109
|
+
onChildStoreDispose(child: any): void;
|
|
110
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
111
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
112
|
+
addChildId: (id: string) => void;
|
|
113
|
+
removeChildId: (id: string) => void;
|
|
114
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
115
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
116
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
117
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
118
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
119
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
120
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
121
|
+
}, {
|
|
122
|
+
readonly parentStore: any;
|
|
123
|
+
readonly __: any;
|
|
124
|
+
readonly hasChildren: boolean;
|
|
125
|
+
readonly children: any[];
|
|
126
|
+
} & {
|
|
127
|
+
onChildStoreDispose(child: any): void;
|
|
128
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
129
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
130
|
+
addChildId: (id: string) => void;
|
|
131
|
+
removeChildId: (id: string) => void;
|
|
132
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
133
|
+
removeStore(store: {
|
|
134
|
+
id: string;
|
|
135
|
+
path: string;
|
|
136
|
+
storeType: string;
|
|
137
|
+
disposed: boolean;
|
|
138
|
+
parentId: string;
|
|
139
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
140
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
141
|
+
readonly parentStore: any;
|
|
142
|
+
readonly __: any;
|
|
143
|
+
readonly hasChildren: boolean;
|
|
144
|
+
readonly children: any[];
|
|
145
|
+
} & {
|
|
146
|
+
onChildStoreDispose(child: any): void;
|
|
147
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
148
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
149
|
+
addChildId: (id: string) => void;
|
|
150
|
+
removeChildId: (id: string) => void;
|
|
151
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
152
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
153
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
154
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
155
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
156
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
157
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
158
|
+
}, {
|
|
159
|
+
readonly parentStore: any;
|
|
160
|
+
readonly __: any;
|
|
161
|
+
readonly hasChildren: boolean;
|
|
162
|
+
readonly children: any[];
|
|
163
|
+
} & {
|
|
164
|
+
onChildStoreDispose(child: any): void;
|
|
165
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
166
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
167
|
+
addChildId: (id: string) => void;
|
|
168
|
+
removeChildId: (id: string) => void;
|
|
169
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
170
|
+
setVisible(id: string, value: boolean): void;
|
|
171
|
+
setDisable(id: string, value: boolean): void;
|
|
172
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
173
|
+
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
174
|
+
} & {
|
|
175
|
+
visibleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
176
|
+
disableState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
177
|
+
}, {
|
|
178
|
+
readonly fetcher: any;
|
|
179
|
+
readonly notify: any;
|
|
180
|
+
readonly isCancel: (value: any) => boolean;
|
|
181
|
+
readonly __: import("./locale").TranslateFn<any>;
|
|
182
|
+
getStoreById(id: string): {
|
|
183
|
+
id: string;
|
|
184
|
+
path: string;
|
|
185
|
+
storeType: string;
|
|
186
|
+
disposed: boolean;
|
|
187
|
+
parentId: string;
|
|
188
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
189
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
190
|
+
readonly parentStore: any;
|
|
191
|
+
readonly __: any;
|
|
192
|
+
readonly hasChildren: boolean;
|
|
193
|
+
readonly children: any[];
|
|
194
|
+
} & {
|
|
195
|
+
onChildStoreDispose(child: any): void;
|
|
196
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
197
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
198
|
+
addChildId: (id: string) => void;
|
|
199
|
+
removeChildId: (id: string) => void;
|
|
200
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
201
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
202
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
203
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
204
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
205
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
206
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
207
|
+
}, {
|
|
208
|
+
readonly parentStore: any;
|
|
209
|
+
readonly __: any;
|
|
210
|
+
readonly hasChildren: boolean;
|
|
211
|
+
readonly children: any[];
|
|
212
|
+
} & {
|
|
213
|
+
onChildStoreDispose(child: any): void;
|
|
214
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
215
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
216
|
+
addChildId: (id: string) => void;
|
|
217
|
+
removeChildId: (id: string) => void;
|
|
218
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
219
|
+
readonly stores: {
|
|
220
|
+
[propName: string]: {
|
|
221
|
+
id: string;
|
|
222
|
+
path: string;
|
|
223
|
+
storeType: string;
|
|
224
|
+
disposed: boolean;
|
|
225
|
+
parentId: string;
|
|
226
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
227
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
228
|
+
readonly parentStore: any;
|
|
229
|
+
readonly __: any;
|
|
230
|
+
readonly hasChildren: boolean;
|
|
231
|
+
readonly children: any[];
|
|
232
|
+
} & {
|
|
233
|
+
onChildStoreDispose(child: any): void;
|
|
234
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
235
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
236
|
+
addChildId: (id: string) => void;
|
|
237
|
+
removeChildId: (id: string) => void;
|
|
238
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
239
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
240
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
241
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
242
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
243
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
244
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
245
|
+
}, {
|
|
246
|
+
readonly parentStore: any;
|
|
247
|
+
readonly __: any;
|
|
248
|
+
readonly hasChildren: boolean;
|
|
249
|
+
readonly children: any[];
|
|
250
|
+
} & {
|
|
251
|
+
onChildStoreDispose(child: any): void;
|
|
252
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
253
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
254
|
+
addChildId: (id: string) => void;
|
|
255
|
+
removeChildId: (id: string) => void;
|
|
256
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
257
|
+
};
|
|
258
|
+
} & {
|
|
259
|
+
addStore(store: {
|
|
260
|
+
[propName: string]: any;
|
|
261
|
+
storeType: string;
|
|
262
|
+
id: string;
|
|
263
|
+
path: string;
|
|
264
|
+
parentId?: string | undefined;
|
|
265
|
+
}): {
|
|
266
|
+
id: string;
|
|
267
|
+
path: string;
|
|
268
|
+
storeType: string;
|
|
269
|
+
disposed: boolean;
|
|
270
|
+
parentId: string;
|
|
271
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
272
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
273
|
+
readonly parentStore: any;
|
|
274
|
+
readonly __: any;
|
|
275
|
+
readonly hasChildren: boolean;
|
|
276
|
+
readonly children: any[];
|
|
277
|
+
} & {
|
|
278
|
+
onChildStoreDispose(child: any): void;
|
|
279
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
280
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
281
|
+
addChildId: (id: string) => void;
|
|
282
|
+
removeChildId: (id: string) => void;
|
|
283
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
284
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
285
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
286
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
287
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
288
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
289
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
290
|
+
}, {
|
|
291
|
+
readonly parentStore: any;
|
|
292
|
+
readonly __: any;
|
|
293
|
+
readonly hasChildren: boolean;
|
|
294
|
+
readonly children: any[];
|
|
295
|
+
} & {
|
|
296
|
+
onChildStoreDispose(child: any): void;
|
|
297
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
298
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
299
|
+
addChildId: (id: string) => void;
|
|
300
|
+
removeChildId: (id: string) => void;
|
|
301
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
302
|
+
removeStore(store: {
|
|
303
|
+
id: string;
|
|
304
|
+
path: string;
|
|
305
|
+
storeType: string;
|
|
306
|
+
disposed: boolean;
|
|
307
|
+
parentId: string;
|
|
308
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
309
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
310
|
+
readonly parentStore: any;
|
|
311
|
+
readonly __: any;
|
|
312
|
+
readonly hasChildren: boolean;
|
|
313
|
+
readonly children: any[];
|
|
314
|
+
} & {
|
|
315
|
+
onChildStoreDispose(child: any): void;
|
|
316
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
317
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
318
|
+
addChildId: (id: string) => void;
|
|
319
|
+
removeChildId: (id: string) => void;
|
|
320
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
321
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
322
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
323
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
324
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
325
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
326
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
327
|
+
}, {
|
|
328
|
+
readonly parentStore: any;
|
|
329
|
+
readonly __: any;
|
|
330
|
+
readonly hasChildren: boolean;
|
|
331
|
+
readonly children: any[];
|
|
332
|
+
} & {
|
|
333
|
+
onChildStoreDispose(child: any): void;
|
|
334
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
335
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
336
|
+
addChildId: (id: string) => void;
|
|
337
|
+
removeChildId: (id: string) => void;
|
|
338
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
339
|
+
setVisible(id: string, value: boolean): void;
|
|
340
|
+
setDisable(id: string, value: boolean): void;
|
|
341
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
342
|
+
export declare function withRootStore<T extends React.ComponentType<React.ComponentProps<T> & {
|
|
343
|
+
rootStore: IRendererStore;
|
|
344
|
+
}>>(ComposedComponent: T): {
|
|
345
|
+
new (props: JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">> | Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>): {
|
|
346
|
+
render(): JSX.Element;
|
|
347
|
+
context: any;
|
|
348
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
349
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
350
|
+
readonly props: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>> & Readonly<{
|
|
351
|
+
children?: React.ReactNode;
|
|
352
|
+
}>;
|
|
353
|
+
state: Readonly<{}>;
|
|
354
|
+
refs: {
|
|
355
|
+
[key: string]: React.ReactInstance;
|
|
356
|
+
};
|
|
357
|
+
componentDidMount?(): void;
|
|
358
|
+
shouldComponentUpdate?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
359
|
+
componentWillUnmount?(): void;
|
|
360
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
361
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, prevState: Readonly<{}>): any;
|
|
362
|
+
componentDidUpdate?(prevProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
363
|
+
componentWillMount?(): void;
|
|
364
|
+
UNSAFE_componentWillMount?(): void;
|
|
365
|
+
componentWillReceiveProps?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextContext: any): void;
|
|
366
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextContext: any): void;
|
|
367
|
+
componentWillUpdate?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
368
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
369
|
+
};
|
|
370
|
+
new (props: JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>, context: any): {
|
|
371
|
+
render(): JSX.Element;
|
|
372
|
+
context: any;
|
|
373
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
374
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
375
|
+
readonly props: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>> & Readonly<{
|
|
376
|
+
children?: React.ReactNode;
|
|
377
|
+
}>;
|
|
378
|
+
state: Readonly<{}>;
|
|
379
|
+
refs: {
|
|
380
|
+
[key: string]: React.ReactInstance;
|
|
381
|
+
};
|
|
382
|
+
componentDidMount?(): void;
|
|
383
|
+
shouldComponentUpdate?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
384
|
+
componentWillUnmount?(): void;
|
|
385
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
386
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, prevState: Readonly<{}>): any;
|
|
387
|
+
componentDidUpdate?(prevProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
388
|
+
componentWillMount?(): void;
|
|
389
|
+
UNSAFE_componentWillMount?(): void;
|
|
390
|
+
componentWillReceiveProps?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextContext: any): void;
|
|
391
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextContext: any): void;
|
|
392
|
+
componentWillUpdate?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
393
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
394
|
+
};
|
|
395
|
+
displayName: string;
|
|
396
|
+
contextType: React.Context<{
|
|
397
|
+
storeType: string;
|
|
398
|
+
visibleState: any;
|
|
399
|
+
disableState: any;
|
|
400
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
401
|
+
readonly fetcher: any;
|
|
402
|
+
readonly notify: any;
|
|
403
|
+
readonly isCancel: (value: any) => boolean;
|
|
404
|
+
readonly __: import("./locale").TranslateFn<any>;
|
|
405
|
+
getStoreById(id: string): {
|
|
406
|
+
id: string;
|
|
407
|
+
path: string;
|
|
408
|
+
storeType: string;
|
|
409
|
+
disposed: boolean;
|
|
410
|
+
parentId: string;
|
|
411
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
412
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
413
|
+
readonly parentStore: any;
|
|
414
|
+
readonly __: any;
|
|
415
|
+
readonly hasChildren: boolean;
|
|
416
|
+
readonly children: any[];
|
|
417
|
+
} & {
|
|
418
|
+
onChildStoreDispose(child: any): void;
|
|
419
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
420
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
421
|
+
addChildId: (id: string) => void;
|
|
422
|
+
removeChildId: (id: string) => void;
|
|
423
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
424
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
425
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
426
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
427
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
428
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
429
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
430
|
+
}, {
|
|
431
|
+
readonly parentStore: any;
|
|
432
|
+
readonly __: any;
|
|
433
|
+
readonly hasChildren: boolean;
|
|
434
|
+
readonly children: any[];
|
|
435
|
+
} & {
|
|
436
|
+
onChildStoreDispose(child: any): void;
|
|
437
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
438
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
439
|
+
addChildId: (id: string) => void;
|
|
440
|
+
removeChildId: (id: string) => void;
|
|
441
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
442
|
+
readonly stores: {
|
|
443
|
+
[propName: string]: {
|
|
444
|
+
id: string;
|
|
445
|
+
path: string;
|
|
446
|
+
storeType: string;
|
|
447
|
+
disposed: boolean;
|
|
448
|
+
parentId: string;
|
|
449
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
450
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
451
|
+
readonly parentStore: any;
|
|
452
|
+
readonly __: any;
|
|
453
|
+
readonly hasChildren: boolean;
|
|
454
|
+
readonly children: any[];
|
|
455
|
+
} & {
|
|
456
|
+
onChildStoreDispose(child: any): void;
|
|
457
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
458
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
459
|
+
addChildId: (id: string) => void;
|
|
460
|
+
removeChildId: (id: string) => void;
|
|
461
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
462
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
463
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
464
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
465
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
466
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
467
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
468
|
+
}, {
|
|
469
|
+
readonly parentStore: any;
|
|
470
|
+
readonly __: any;
|
|
471
|
+
readonly hasChildren: boolean;
|
|
472
|
+
readonly children: any[];
|
|
473
|
+
} & {
|
|
474
|
+
onChildStoreDispose(child: any): void;
|
|
475
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
476
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
477
|
+
addChildId: (id: string) => void;
|
|
478
|
+
removeChildId: (id: string) => void;
|
|
479
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
480
|
+
};
|
|
481
|
+
} & {
|
|
482
|
+
addStore(store: {
|
|
483
|
+
[propName: string]: any;
|
|
484
|
+
storeType: string;
|
|
485
|
+
id: string;
|
|
486
|
+
path: string;
|
|
487
|
+
parentId?: string | undefined;
|
|
488
|
+
}): {
|
|
489
|
+
id: string;
|
|
490
|
+
path: string;
|
|
491
|
+
storeType: string;
|
|
492
|
+
disposed: boolean;
|
|
493
|
+
parentId: string;
|
|
494
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
495
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
496
|
+
readonly parentStore: any;
|
|
497
|
+
readonly __: any;
|
|
498
|
+
readonly hasChildren: boolean;
|
|
499
|
+
readonly children: any[];
|
|
500
|
+
} & {
|
|
501
|
+
onChildStoreDispose(child: any): void;
|
|
502
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
503
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
504
|
+
addChildId: (id: string) => void;
|
|
505
|
+
removeChildId: (id: string) => void;
|
|
506
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
507
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
508
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
509
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
510
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
511
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
512
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
513
|
+
}, {
|
|
514
|
+
readonly parentStore: any;
|
|
515
|
+
readonly __: any;
|
|
516
|
+
readonly hasChildren: boolean;
|
|
517
|
+
readonly children: any[];
|
|
518
|
+
} & {
|
|
519
|
+
onChildStoreDispose(child: any): void;
|
|
520
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
521
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
522
|
+
addChildId: (id: string) => void;
|
|
523
|
+
removeChildId: (id: string) => void;
|
|
524
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
525
|
+
removeStore(store: {
|
|
526
|
+
id: string;
|
|
527
|
+
path: string;
|
|
528
|
+
storeType: string;
|
|
529
|
+
disposed: boolean;
|
|
530
|
+
parentId: string;
|
|
531
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
532
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
533
|
+
readonly parentStore: any;
|
|
534
|
+
readonly __: any;
|
|
535
|
+
readonly hasChildren: boolean;
|
|
536
|
+
readonly children: any[];
|
|
537
|
+
} & {
|
|
538
|
+
onChildStoreDispose(child: any): void;
|
|
539
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
540
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
541
|
+
addChildId: (id: string) => void;
|
|
542
|
+
removeChildId: (id: string) => void;
|
|
543
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
544
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
545
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
546
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
547
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
548
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
549
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
550
|
+
}, {
|
|
551
|
+
readonly parentStore: any;
|
|
552
|
+
readonly __: any;
|
|
553
|
+
readonly hasChildren: boolean;
|
|
554
|
+
readonly children: any[];
|
|
555
|
+
} & {
|
|
556
|
+
onChildStoreDispose(child: any): void;
|
|
557
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
558
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
559
|
+
addChildId: (id: string) => void;
|
|
560
|
+
removeChildId: (id: string) => void;
|
|
561
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
562
|
+
setVisible(id: string, value: boolean): void;
|
|
563
|
+
setDisable(id: string, value: boolean): void;
|
|
564
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
565
|
+
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
566
|
+
} & {
|
|
567
|
+
visibleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
568
|
+
disableState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
569
|
+
}, {
|
|
570
|
+
readonly fetcher: any;
|
|
571
|
+
readonly notify: any;
|
|
572
|
+
readonly isCancel: (value: any) => boolean;
|
|
573
|
+
readonly __: import("./locale").TranslateFn<any>;
|
|
574
|
+
getStoreById(id: string): {
|
|
575
|
+
id: string;
|
|
576
|
+
path: string;
|
|
577
|
+
storeType: string;
|
|
578
|
+
disposed: boolean;
|
|
579
|
+
parentId: string;
|
|
580
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
581
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
582
|
+
readonly parentStore: any;
|
|
583
|
+
readonly __: any;
|
|
584
|
+
readonly hasChildren: boolean;
|
|
585
|
+
readonly children: any[];
|
|
586
|
+
} & {
|
|
587
|
+
onChildStoreDispose(child: any): void;
|
|
588
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
589
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
590
|
+
addChildId: (id: string) => void;
|
|
591
|
+
removeChildId: (id: string) => void;
|
|
592
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
593
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
594
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
595
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
596
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
597
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
598
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
599
|
+
}, {
|
|
600
|
+
readonly parentStore: any;
|
|
601
|
+
readonly __: any;
|
|
602
|
+
readonly hasChildren: boolean;
|
|
603
|
+
readonly children: any[];
|
|
604
|
+
} & {
|
|
605
|
+
onChildStoreDispose(child: any): void;
|
|
606
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
607
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
608
|
+
addChildId: (id: string) => void;
|
|
609
|
+
removeChildId: (id: string) => void;
|
|
610
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
611
|
+
readonly stores: {
|
|
612
|
+
[propName: string]: {
|
|
613
|
+
id: string;
|
|
614
|
+
path: string;
|
|
615
|
+
storeType: string;
|
|
616
|
+
disposed: boolean;
|
|
617
|
+
parentId: string;
|
|
618
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
619
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
620
|
+
readonly parentStore: any;
|
|
621
|
+
readonly __: any;
|
|
622
|
+
readonly hasChildren: boolean;
|
|
623
|
+
readonly children: any[];
|
|
624
|
+
} & {
|
|
625
|
+
onChildStoreDispose(child: any): void;
|
|
626
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
627
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
628
|
+
addChildId: (id: string) => void;
|
|
629
|
+
removeChildId: (id: string) => void;
|
|
630
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
631
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
632
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
633
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
634
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
635
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
636
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
637
|
+
}, {
|
|
638
|
+
readonly parentStore: any;
|
|
639
|
+
readonly __: any;
|
|
640
|
+
readonly hasChildren: boolean;
|
|
641
|
+
readonly children: any[];
|
|
642
|
+
} & {
|
|
643
|
+
onChildStoreDispose(child: any): void;
|
|
644
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
645
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
646
|
+
addChildId: (id: string) => void;
|
|
647
|
+
removeChildId: (id: string) => void;
|
|
648
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
649
|
+
};
|
|
650
|
+
} & {
|
|
651
|
+
addStore(store: {
|
|
652
|
+
[propName: string]: any;
|
|
653
|
+
storeType: string;
|
|
654
|
+
id: string;
|
|
655
|
+
path: string;
|
|
656
|
+
parentId?: string | undefined;
|
|
657
|
+
}): {
|
|
658
|
+
id: string;
|
|
659
|
+
path: string;
|
|
660
|
+
storeType: string;
|
|
661
|
+
disposed: boolean;
|
|
662
|
+
parentId: string;
|
|
663
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
664
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
665
|
+
readonly parentStore: any;
|
|
666
|
+
readonly __: any;
|
|
667
|
+
readonly hasChildren: boolean;
|
|
668
|
+
readonly children: any[];
|
|
669
|
+
} & {
|
|
670
|
+
onChildStoreDispose(child: any): void;
|
|
671
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
672
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
673
|
+
addChildId: (id: string) => void;
|
|
674
|
+
removeChildId: (id: string) => void;
|
|
675
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
676
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
677
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
678
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
679
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
680
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
681
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
682
|
+
}, {
|
|
683
|
+
readonly parentStore: any;
|
|
684
|
+
readonly __: any;
|
|
685
|
+
readonly hasChildren: boolean;
|
|
686
|
+
readonly children: any[];
|
|
687
|
+
} & {
|
|
688
|
+
onChildStoreDispose(child: any): void;
|
|
689
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
690
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
691
|
+
addChildId: (id: string) => void;
|
|
692
|
+
removeChildId: (id: string) => void;
|
|
693
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
694
|
+
removeStore(store: {
|
|
695
|
+
id: string;
|
|
696
|
+
path: string;
|
|
697
|
+
storeType: string;
|
|
698
|
+
disposed: boolean;
|
|
699
|
+
parentId: string;
|
|
700
|
+
childrenIds: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>>;
|
|
701
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
702
|
+
readonly parentStore: any;
|
|
703
|
+
readonly __: any;
|
|
704
|
+
readonly hasChildren: boolean;
|
|
705
|
+
readonly children: any[];
|
|
706
|
+
} & {
|
|
707
|
+
onChildStoreDispose(child: any): void;
|
|
708
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
709
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
710
|
+
addChildId: (id: string) => void;
|
|
711
|
+
removeChildId: (id: string) => void;
|
|
712
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
713
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
714
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
715
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
716
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
717
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
718
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
719
|
+
}, {
|
|
720
|
+
readonly parentStore: any;
|
|
721
|
+
readonly __: any;
|
|
722
|
+
readonly hasChildren: boolean;
|
|
723
|
+
readonly children: any[];
|
|
724
|
+
} & {
|
|
725
|
+
onChildStoreDispose(child: any): void;
|
|
726
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
727
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
728
|
+
addChildId: (id: string) => void;
|
|
729
|
+
removeChildId: (id: string) => void;
|
|
730
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
731
|
+
setVisible(id: string, value: boolean): void;
|
|
732
|
+
setDisable(id: string, value: boolean): void;
|
|
733
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
734
|
+
ComposedComponent: React.ComponentType<T>;
|
|
735
|
+
} & hoistNonReactStatic.NonReactStatics<T, {}> & {
|
|
736
|
+
ComposedComponent: T;
|
|
737
|
+
};
|