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,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 所有列表选择类控件的父级,比如 Select、Radios、Checkboxes、
|
|
3
|
+
* List、ButtonGroup 等等
|
|
4
|
+
*/
|
|
5
|
+
import { Api, PlainObject, OptionProps } from '../types';
|
|
6
|
+
import { FormControlProps, FormItemBasicConfig, FormBaseControl } from './Item';
|
|
7
|
+
export declare type OptionsControlComponent = React.ComponentType<FormControlProps>;
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { Option, SchemaApi, SchemaExpression, SchemaObject, SchemaTokenizeableString } from '../schema';
|
|
10
|
+
export { Option };
|
|
11
|
+
export interface FormOptionsControl extends FormBaseControl {
|
|
12
|
+
/**
|
|
13
|
+
* 选项集合
|
|
14
|
+
*/
|
|
15
|
+
options?: Array<Option> | string[] | PlainObject;
|
|
16
|
+
/**
|
|
17
|
+
* 可用来通过 API 拉取 options。
|
|
18
|
+
*/
|
|
19
|
+
source?: SchemaApi | SchemaTokenizeableString;
|
|
20
|
+
/**
|
|
21
|
+
* 默认选择选项第一个值。
|
|
22
|
+
*/
|
|
23
|
+
selectFirst?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 用表达式来配置 source 接口初始要不要拉取
|
|
26
|
+
*
|
|
27
|
+
* @deprecated 建议用 source 接口的 sendOn
|
|
28
|
+
*/
|
|
29
|
+
initFetchOn?: SchemaExpression;
|
|
30
|
+
/**
|
|
31
|
+
* 配置 source 接口初始拉不拉取。
|
|
32
|
+
*
|
|
33
|
+
* @deprecated 建议用 source 接口的 sendOn
|
|
34
|
+
*/
|
|
35
|
+
initFetch?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 是否为多选模式
|
|
38
|
+
*/
|
|
39
|
+
multiple?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。
|
|
42
|
+
* 多选模式:选中的多个选项的 `value` 会通过 `delimiter` 连接起来,否则直接将以数组的形式提交值。
|
|
43
|
+
*/
|
|
44
|
+
joinValues?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 分割符
|
|
47
|
+
*/
|
|
48
|
+
delimiter?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。
|
|
51
|
+
*/
|
|
52
|
+
extractValue?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 是否可清除。
|
|
55
|
+
*/
|
|
56
|
+
clearable?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 点清除按钮时,将表单项设置成当前配置的值。
|
|
59
|
+
*
|
|
60
|
+
* @default ''
|
|
61
|
+
*/
|
|
62
|
+
resetValue?: string;
|
|
63
|
+
/**
|
|
64
|
+
* 延时加载的 API,当选项中有 defer: true 的选项时,点开会通过此接口扩充。
|
|
65
|
+
*/
|
|
66
|
+
deferApi?: SchemaApi;
|
|
67
|
+
/**
|
|
68
|
+
* 添加时调用的接口
|
|
69
|
+
*/
|
|
70
|
+
addApi?: SchemaApi;
|
|
71
|
+
/**
|
|
72
|
+
* 新增时的表单项。
|
|
73
|
+
*/
|
|
74
|
+
addControls?: Array<SchemaObject>;
|
|
75
|
+
/**
|
|
76
|
+
* 是否可以新增
|
|
77
|
+
*/
|
|
78
|
+
creatable?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* 新增文字
|
|
81
|
+
*/
|
|
82
|
+
createBtnLabel?: string;
|
|
83
|
+
/**
|
|
84
|
+
* 是否可以编辑
|
|
85
|
+
*/
|
|
86
|
+
editable?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* 编辑时调用的 API
|
|
89
|
+
*/
|
|
90
|
+
editApi?: SchemaApi;
|
|
91
|
+
/**
|
|
92
|
+
* 选项修改的表单项
|
|
93
|
+
*/
|
|
94
|
+
editControls?: Array<SchemaObject>;
|
|
95
|
+
/**
|
|
96
|
+
* 是否可删除
|
|
97
|
+
*/
|
|
98
|
+
removable?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* 选项删除 API
|
|
101
|
+
*/
|
|
102
|
+
deleteApi?: SchemaApi;
|
|
103
|
+
/**
|
|
104
|
+
* 选项删除提示文字。
|
|
105
|
+
*/
|
|
106
|
+
deleteConfirmText?: string;
|
|
107
|
+
/**
|
|
108
|
+
* 自动填充,当选项被选择的时候,将选项中的其他值同步设置到表单内。
|
|
109
|
+
*/
|
|
110
|
+
autoFill?: {
|
|
111
|
+
[propName: string]: SchemaTokenizeableString;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export interface OptionsBasicConfig extends FormItemBasicConfig {
|
|
115
|
+
autoLoadOptionsFromSource?: boolean;
|
|
116
|
+
}
|
|
117
|
+
export interface OptionsConfig extends OptionsBasicConfig {
|
|
118
|
+
component: React.ComponentType<OptionsControlProps>;
|
|
119
|
+
}
|
|
120
|
+
export interface OptionsControlProps extends FormControlProps, Omit<FormOptionsControl, 'type' | 'className' | 'descriptionClassName' | 'inputClassName'> {
|
|
121
|
+
options: Array<Option>;
|
|
122
|
+
onToggle: (option: Option, submitOnChange?: boolean, changeImmediately?: boolean) => void;
|
|
123
|
+
onToggleAll: () => void;
|
|
124
|
+
selectedOptions: Array<Option>;
|
|
125
|
+
setOptions: (value: Array<any>, skipNormalize?: boolean) => void;
|
|
126
|
+
setLoading: (value: boolean) => void;
|
|
127
|
+
reloadOptions: (setError?: boolean) => void;
|
|
128
|
+
deferLoad: (option: Option) => void;
|
|
129
|
+
leftDeferLoad: (option: Option, leftOptions: Option) => void;
|
|
130
|
+
expandTreeOptions: (nodePathArr: any[]) => void;
|
|
131
|
+
onAdd?: (idx?: number | Array<number>, value?: any, skipForm?: boolean) => void;
|
|
132
|
+
onEdit?: (value: Option, origin?: Option, skipForm?: boolean) => void;
|
|
133
|
+
onDelete?: (value: Option) => void;
|
|
134
|
+
}
|
|
135
|
+
export interface OptionsProps extends FormControlProps, Omit<OptionProps, 'className'> {
|
|
136
|
+
source?: Api;
|
|
137
|
+
deferApi?: Api;
|
|
138
|
+
creatable?: boolean;
|
|
139
|
+
addApi?: Api;
|
|
140
|
+
addControls?: Array<any>;
|
|
141
|
+
editApi?: Api;
|
|
142
|
+
editControls?: Array<any>;
|
|
143
|
+
deleteApi?: Api;
|
|
144
|
+
deleteConfirmText?: string;
|
|
145
|
+
optionLabel?: string;
|
|
146
|
+
}
|
|
147
|
+
export declare const detectProps: string[];
|
|
148
|
+
export declare function registerOptionsControl(config: OptionsConfig): import("../factory").RendererConfig;
|
|
149
|
+
export declare function OptionsControl(config: OptionsBasicConfig): <T extends React.ComponentType<OptionsControlProps>>(component: T) => T;
|
|
150
|
+
export declare function highlight(text: string, input?: string, hlClassName?: string): string | any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './Form.tsx';
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IFormStore, IFormItemStore } from '../store/form';
|
|
3
|
+
import { RendererProps } from '../factory';
|
|
4
|
+
import { IIRendererStore } from '../store';
|
|
5
|
+
import hoistNonReactStatic from 'hoist-non-react-statics';
|
|
6
|
+
import { Api } from '../types';
|
|
7
|
+
export interface ControlOutterProps extends RendererProps {
|
|
8
|
+
formStore?: IFormStore;
|
|
9
|
+
name?: string;
|
|
10
|
+
value?: any;
|
|
11
|
+
id?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
validations: string | {
|
|
15
|
+
[propsName: string]: any;
|
|
16
|
+
};
|
|
17
|
+
validationErrors: {
|
|
18
|
+
[propsName: string]: any;
|
|
19
|
+
};
|
|
20
|
+
validateOnChange: boolean;
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
delimiter?: string;
|
|
23
|
+
joinValues?: boolean;
|
|
24
|
+
extractValue?: boolean;
|
|
25
|
+
valueField?: string;
|
|
26
|
+
labelField?: string;
|
|
27
|
+
unique?: boolean;
|
|
28
|
+
selectFirst?: boolean;
|
|
29
|
+
autoFill?: any;
|
|
30
|
+
clearValueOnHidden?: boolean;
|
|
31
|
+
validateApi?: Api;
|
|
32
|
+
submitOnChange?: boolean;
|
|
33
|
+
validate?: (value: any, values: any, name: string) => any;
|
|
34
|
+
formItem?: IFormItemStore;
|
|
35
|
+
addHook?: (fn: () => any, type?: 'validate' | 'init' | 'flush') => void;
|
|
36
|
+
removeHook?: (fn: () => any, type?: 'validate' | 'init' | 'flush') => void;
|
|
37
|
+
$schema: {
|
|
38
|
+
pipeIn?: (value: any, data: any) => any;
|
|
39
|
+
pipeOut?: (value: any, originValue: any, data: any) => any;
|
|
40
|
+
[propName: string]: any;
|
|
41
|
+
};
|
|
42
|
+
store?: IIRendererStore;
|
|
43
|
+
onChange?: (value: any, name: string, submit?: boolean, changePristine?: boolean) => void;
|
|
44
|
+
formItemDispatchEvent: (type: string, data: any) => void;
|
|
45
|
+
}
|
|
46
|
+
export interface ControlProps {
|
|
47
|
+
onBulkChange?: (values: Object) => void;
|
|
48
|
+
onChange?: (value: any, name: string, submit: boolean) => void;
|
|
49
|
+
store: IIRendererStore;
|
|
50
|
+
}
|
|
51
|
+
export declare function wrapControl<T extends React.ComponentType<React.ComponentProps<T> & ControlProps>>(ComposedComponent: T): {
|
|
52
|
+
new (props: Omit<any, "rootStore"> | Readonly<Omit<any, "rootStore">>): {
|
|
53
|
+
render(): JSX.Element;
|
|
54
|
+
context: any;
|
|
55
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<any, "rootStore">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
56
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
57
|
+
readonly props: Readonly<Omit<any, "rootStore">> & Readonly<{
|
|
58
|
+
children?: React.ReactNode;
|
|
59
|
+
}>;
|
|
60
|
+
state: Readonly<{}>;
|
|
61
|
+
refs: {
|
|
62
|
+
[key: string]: React.ReactInstance;
|
|
63
|
+
};
|
|
64
|
+
componentDidMount?(): void;
|
|
65
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<any, "rootStore">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
66
|
+
componentWillUnmount?(): void;
|
|
67
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
68
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<any, "rootStore">>, prevState: Readonly<{}>): any;
|
|
69
|
+
componentDidUpdate?(prevProps: Readonly<Omit<any, "rootStore">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
70
|
+
componentWillMount?(): void;
|
|
71
|
+
UNSAFE_componentWillMount?(): void;
|
|
72
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<any, "rootStore">>, nextContext: any): void;
|
|
73
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<any, "rootStore">>, nextContext: any): void;
|
|
74
|
+
componentWillUpdate?(nextProps: Readonly<Omit<any, "rootStore">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
75
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<any, "rootStore">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
76
|
+
};
|
|
77
|
+
new (props: Omit<any, "rootStore">, context: any): {
|
|
78
|
+
render(): JSX.Element;
|
|
79
|
+
context: any;
|
|
80
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<any, "rootStore">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
81
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
82
|
+
readonly props: Readonly<Omit<any, "rootStore">> & Readonly<{
|
|
83
|
+
children?: React.ReactNode;
|
|
84
|
+
}>;
|
|
85
|
+
state: Readonly<{}>;
|
|
86
|
+
refs: {
|
|
87
|
+
[key: string]: React.ReactInstance;
|
|
88
|
+
};
|
|
89
|
+
componentDidMount?(): void;
|
|
90
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<any, "rootStore">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
91
|
+
componentWillUnmount?(): void;
|
|
92
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
93
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<any, "rootStore">>, prevState: Readonly<{}>): any;
|
|
94
|
+
componentDidUpdate?(prevProps: Readonly<Omit<any, "rootStore">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
95
|
+
componentWillMount?(): void;
|
|
96
|
+
UNSAFE_componentWillMount?(): void;
|
|
97
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<any, "rootStore">>, nextContext: any): void;
|
|
98
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<any, "rootStore">>, nextContext: any): void;
|
|
99
|
+
componentWillUpdate?(nextProps: Readonly<Omit<any, "rootStore">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
100
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<any, "rootStore">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
101
|
+
};
|
|
102
|
+
displayName: string;
|
|
103
|
+
contextType: React.Context<{
|
|
104
|
+
storeType: string;
|
|
105
|
+
visibleState: any;
|
|
106
|
+
disableState: any;
|
|
107
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
108
|
+
readonly fetcher: any;
|
|
109
|
+
readonly notify: any;
|
|
110
|
+
readonly isCancel: (value: any) => boolean;
|
|
111
|
+
readonly __: import("..").TranslateFn<any>;
|
|
112
|
+
getStoreById(id: string): {
|
|
113
|
+
id: string;
|
|
114
|
+
path: string;
|
|
115
|
+
storeType: string;
|
|
116
|
+
disposed: boolean;
|
|
117
|
+
parentId: string;
|
|
118
|
+
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]>>;
|
|
119
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
120
|
+
readonly parentStore: any;
|
|
121
|
+
readonly __: any;
|
|
122
|
+
readonly hasChildren: boolean;
|
|
123
|
+
readonly children: any[];
|
|
124
|
+
} & {
|
|
125
|
+
onChildStoreDispose(child: any): void;
|
|
126
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
127
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
128
|
+
addChildId: (id: string) => void;
|
|
129
|
+
removeChildId: (id: string) => void;
|
|
130
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
131
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
132
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
133
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
134
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
135
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
136
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
137
|
+
}, {
|
|
138
|
+
readonly parentStore: any;
|
|
139
|
+
readonly __: any;
|
|
140
|
+
readonly hasChildren: boolean;
|
|
141
|
+
readonly children: any[];
|
|
142
|
+
} & {
|
|
143
|
+
onChildStoreDispose(child: any): void;
|
|
144
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
145
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
146
|
+
addChildId: (id: string) => void;
|
|
147
|
+
removeChildId: (id: string) => void;
|
|
148
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
149
|
+
readonly stores: {
|
|
150
|
+
[propName: string]: {
|
|
151
|
+
id: string;
|
|
152
|
+
path: string;
|
|
153
|
+
storeType: string;
|
|
154
|
+
disposed: boolean;
|
|
155
|
+
parentId: string;
|
|
156
|
+
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]>>;
|
|
157
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
158
|
+
readonly parentStore: any;
|
|
159
|
+
readonly __: any;
|
|
160
|
+
readonly hasChildren: boolean;
|
|
161
|
+
readonly children: any[];
|
|
162
|
+
} & {
|
|
163
|
+
onChildStoreDispose(child: any): void;
|
|
164
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
165
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
166
|
+
addChildId: (id: string) => void;
|
|
167
|
+
removeChildId: (id: string) => void;
|
|
168
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
169
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
170
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
171
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
172
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
173
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
174
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
175
|
+
}, {
|
|
176
|
+
readonly parentStore: any;
|
|
177
|
+
readonly __: any;
|
|
178
|
+
readonly hasChildren: boolean;
|
|
179
|
+
readonly children: any[];
|
|
180
|
+
} & {
|
|
181
|
+
onChildStoreDispose(child: any): void;
|
|
182
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
183
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
184
|
+
addChildId: (id: string) => void;
|
|
185
|
+
removeChildId: (id: string) => void;
|
|
186
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
187
|
+
};
|
|
188
|
+
} & {
|
|
189
|
+
addStore(store: {
|
|
190
|
+
[propName: string]: any;
|
|
191
|
+
storeType: string;
|
|
192
|
+
id: string;
|
|
193
|
+
path: string;
|
|
194
|
+
parentId?: string | undefined;
|
|
195
|
+
}): {
|
|
196
|
+
id: string;
|
|
197
|
+
path: string;
|
|
198
|
+
storeType: string;
|
|
199
|
+
disposed: boolean;
|
|
200
|
+
parentId: string;
|
|
201
|
+
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]>>;
|
|
202
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
203
|
+
readonly parentStore: any;
|
|
204
|
+
readonly __: any;
|
|
205
|
+
readonly hasChildren: boolean;
|
|
206
|
+
readonly children: any[];
|
|
207
|
+
} & {
|
|
208
|
+
onChildStoreDispose(child: any): void;
|
|
209
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
210
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
211
|
+
addChildId: (id: string) => void;
|
|
212
|
+
removeChildId: (id: string) => void;
|
|
213
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
214
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
215
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
216
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
217
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
218
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
219
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
220
|
+
}, {
|
|
221
|
+
readonly parentStore: any;
|
|
222
|
+
readonly __: any;
|
|
223
|
+
readonly hasChildren: boolean;
|
|
224
|
+
readonly children: any[];
|
|
225
|
+
} & {
|
|
226
|
+
onChildStoreDispose(child: any): void;
|
|
227
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
228
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
229
|
+
addChildId: (id: string) => void;
|
|
230
|
+
removeChildId: (id: string) => void;
|
|
231
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
232
|
+
removeStore(store: {
|
|
233
|
+
id: string;
|
|
234
|
+
path: string;
|
|
235
|
+
storeType: string;
|
|
236
|
+
disposed: boolean;
|
|
237
|
+
parentId: string;
|
|
238
|
+
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]>>;
|
|
239
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
240
|
+
readonly parentStore: any;
|
|
241
|
+
readonly __: any;
|
|
242
|
+
readonly hasChildren: boolean;
|
|
243
|
+
readonly children: any[];
|
|
244
|
+
} & {
|
|
245
|
+
onChildStoreDispose(child: any): void;
|
|
246
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
247
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
248
|
+
addChildId: (id: string) => void;
|
|
249
|
+
removeChildId: (id: string) => void;
|
|
250
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
251
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
252
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
253
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
254
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
255
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
256
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
257
|
+
}, {
|
|
258
|
+
readonly parentStore: any;
|
|
259
|
+
readonly __: any;
|
|
260
|
+
readonly hasChildren: boolean;
|
|
261
|
+
readonly children: any[];
|
|
262
|
+
} & {
|
|
263
|
+
onChildStoreDispose(child: any): void;
|
|
264
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
265
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
266
|
+
addChildId: (id: string) => void;
|
|
267
|
+
removeChildId: (id: string) => void;
|
|
268
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
269
|
+
setVisible(id: string, value: boolean): void;
|
|
270
|
+
setDisable(id: string, value: boolean): void;
|
|
271
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
272
|
+
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
273
|
+
} & {
|
|
274
|
+
visibleState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
275
|
+
disableState: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
276
|
+
}, {
|
|
277
|
+
readonly fetcher: any;
|
|
278
|
+
readonly notify: any;
|
|
279
|
+
readonly isCancel: (value: any) => boolean;
|
|
280
|
+
readonly __: import("..").TranslateFn<any>;
|
|
281
|
+
getStoreById(id: string): {
|
|
282
|
+
id: string;
|
|
283
|
+
path: string;
|
|
284
|
+
storeType: string;
|
|
285
|
+
disposed: boolean;
|
|
286
|
+
parentId: string;
|
|
287
|
+
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]>>;
|
|
288
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
289
|
+
readonly parentStore: any;
|
|
290
|
+
readonly __: any;
|
|
291
|
+
readonly hasChildren: boolean;
|
|
292
|
+
readonly children: any[];
|
|
293
|
+
} & {
|
|
294
|
+
onChildStoreDispose(child: any): void;
|
|
295
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
296
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
297
|
+
addChildId: (id: string) => void;
|
|
298
|
+
removeChildId: (id: string) => void;
|
|
299
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
300
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
301
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
302
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
303
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
304
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
305
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
306
|
+
}, {
|
|
307
|
+
readonly parentStore: any;
|
|
308
|
+
readonly __: any;
|
|
309
|
+
readonly hasChildren: boolean;
|
|
310
|
+
readonly children: any[];
|
|
311
|
+
} & {
|
|
312
|
+
onChildStoreDispose(child: any): void;
|
|
313
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
314
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
315
|
+
addChildId: (id: string) => void;
|
|
316
|
+
removeChildId: (id: string) => void;
|
|
317
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
318
|
+
readonly stores: {
|
|
319
|
+
[propName: string]: {
|
|
320
|
+
id: string;
|
|
321
|
+
path: string;
|
|
322
|
+
storeType: string;
|
|
323
|
+
disposed: boolean;
|
|
324
|
+
parentId: string;
|
|
325
|
+
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]>>;
|
|
326
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
327
|
+
readonly parentStore: any;
|
|
328
|
+
readonly __: any;
|
|
329
|
+
readonly hasChildren: boolean;
|
|
330
|
+
readonly children: any[];
|
|
331
|
+
} & {
|
|
332
|
+
onChildStoreDispose(child: any): void;
|
|
333
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
334
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
335
|
+
addChildId: (id: string) => void;
|
|
336
|
+
removeChildId: (id: string) => void;
|
|
337
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
338
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
339
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
340
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
341
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
342
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
343
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
344
|
+
}, {
|
|
345
|
+
readonly parentStore: any;
|
|
346
|
+
readonly __: any;
|
|
347
|
+
readonly hasChildren: boolean;
|
|
348
|
+
readonly children: any[];
|
|
349
|
+
} & {
|
|
350
|
+
onChildStoreDispose(child: any): void;
|
|
351
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
352
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
353
|
+
addChildId: (id: string) => void;
|
|
354
|
+
removeChildId: (id: string) => void;
|
|
355
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
356
|
+
};
|
|
357
|
+
} & {
|
|
358
|
+
addStore(store: {
|
|
359
|
+
[propName: string]: any;
|
|
360
|
+
storeType: string;
|
|
361
|
+
id: string;
|
|
362
|
+
path: string;
|
|
363
|
+
parentId?: string | undefined;
|
|
364
|
+
}): {
|
|
365
|
+
id: string;
|
|
366
|
+
path: string;
|
|
367
|
+
storeType: string;
|
|
368
|
+
disposed: boolean;
|
|
369
|
+
parentId: string;
|
|
370
|
+
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]>>;
|
|
371
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
372
|
+
readonly parentStore: any;
|
|
373
|
+
readonly __: any;
|
|
374
|
+
readonly hasChildren: boolean;
|
|
375
|
+
readonly children: any[];
|
|
376
|
+
} & {
|
|
377
|
+
onChildStoreDispose(child: any): void;
|
|
378
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
379
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
380
|
+
addChildId: (id: string) => void;
|
|
381
|
+
removeChildId: (id: string) => void;
|
|
382
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
383
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
384
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
385
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
386
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
387
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
388
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
389
|
+
}, {
|
|
390
|
+
readonly parentStore: any;
|
|
391
|
+
readonly __: any;
|
|
392
|
+
readonly hasChildren: boolean;
|
|
393
|
+
readonly children: any[];
|
|
394
|
+
} & {
|
|
395
|
+
onChildStoreDispose(child: any): void;
|
|
396
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
397
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
398
|
+
addChildId: (id: string) => void;
|
|
399
|
+
removeChildId: (id: string) => void;
|
|
400
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
401
|
+
removeStore(store: {
|
|
402
|
+
id: string;
|
|
403
|
+
path: string;
|
|
404
|
+
storeType: string;
|
|
405
|
+
disposed: boolean;
|
|
406
|
+
parentId: string;
|
|
407
|
+
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]>>;
|
|
408
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
409
|
+
readonly parentStore: any;
|
|
410
|
+
readonly __: any;
|
|
411
|
+
readonly hasChildren: boolean;
|
|
412
|
+
readonly children: any[];
|
|
413
|
+
} & {
|
|
414
|
+
onChildStoreDispose(child: any): void;
|
|
415
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
416
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
417
|
+
addChildId: (id: string) => void;
|
|
418
|
+
removeChildId: (id: string) => void;
|
|
419
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
420
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
421
|
+
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
422
|
+
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
423
|
+
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
424
|
+
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
425
|
+
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
426
|
+
}, {
|
|
427
|
+
readonly parentStore: any;
|
|
428
|
+
readonly __: any;
|
|
429
|
+
readonly hasChildren: boolean;
|
|
430
|
+
readonly children: any[];
|
|
431
|
+
} & {
|
|
432
|
+
onChildStoreDispose(child: any): void;
|
|
433
|
+
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
434
|
+
dispose: (callback?: (() => void) | undefined) => void;
|
|
435
|
+
addChildId: (id: string) => void;
|
|
436
|
+
removeChildId: (id: string) => void;
|
|
437
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
438
|
+
setVisible(id: string, value: boolean): void;
|
|
439
|
+
setDisable(id: string, value: boolean): void;
|
|
440
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
441
|
+
ComposedComponent: React.ComponentType<any>;
|
|
442
|
+
} & hoistNonReactStatic.NonReactStatics<any, {}> & {
|
|
443
|
+
ComposedComponent: any;
|
|
444
|
+
} & hoistNonReactStatic.NonReactStatics<T, {}> & {
|
|
445
|
+
ComposedComponent: T;
|
|
446
|
+
};
|