amis-core 6.14.0-beta.7 → 6.14.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/Root.d.ts +3 -2
- package/esm/Root.js +3 -2
- package/esm/RootRenderer.d.ts +18 -0
- package/esm/RootRenderer.js +6 -3
- package/esm/SchemaRenderer.js +3 -3
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/WithRootStore.d.ts +70 -358
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +2 -3
- package/esm/actions/Action.d.ts +3 -17
- package/esm/actions/Action.js +1 -1
- package/esm/actions/AjaxAction.d.ts +1 -1
- package/esm/actions/AjaxAction.js +11 -11
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +2 -2
- package/esm/actions/CmptAction.d.ts +1 -1
- package/esm/actions/CmptAction.js +41 -41
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +2 -2
- package/esm/actions/CustomAction.d.ts +2 -1
- package/esm/actions/CustomAction.js +2 -2
- package/esm/actions/DialogAction.d.ts +6 -6
- package/esm/actions/DialogAction.js +12 -12
- package/esm/actions/DrawerAction.d.ts +3 -3
- package/esm/actions/DrawerAction.js +10 -10
- package/esm/actions/EmailAction.js +2 -2
- package/esm/actions/EventAction.js +6 -6
- package/esm/actions/LinkAction.js +2 -2
- package/esm/actions/LoopAction.js +12 -12
- package/esm/actions/PageAction.js +2 -2
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/PrintAction.js +2 -2
- package/esm/actions/StatusAction.js +2 -2
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +2 -2
- package/esm/actions/WaitAction.js +2 -2
- package/esm/actions/index.d.ts +66 -0
- package/esm/components/Animations.d.ts +2 -2
- package/esm/components/Animations.js +1 -1
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/ErrorBoundary.js +1 -1
- package/esm/components/LazyComponent.d.ts +0 -1
- package/esm/components/LazyComponent.js +2 -3
- package/esm/components/Overlay.js +2 -9
- package/esm/components/PopOver.d.ts +0 -1
- package/esm/components/PopOver.js +3 -3
- package/esm/env.d.ts +22 -22
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.d.ts +3 -1
- package/esm/factory.js +6 -6
- package/esm/globalVar.js +1 -1
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/hooks/useEnvContext.js +1 -1
- package/esm/hooks/useRenderOptionsContext.js +1 -1
- package/esm/index.d.ts +6 -6
- package/esm/index.js +10 -9
- package/esm/locale.d.ts +22 -22
- package/esm/locale.js +6 -6
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.d.ts +42 -18
- package/esm/renderers/Form.js +28 -28
- package/esm/renderers/Item.d.ts +52 -206
- package/esm/renderers/Item.js +18 -14
- package/esm/renderers/Options.d.ts +18 -17
- package/esm/renderers/Options.js +48 -49
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/register.js +1 -1
- package/esm/renderers/wrapControl.d.ts +36 -180
- package/esm/renderers/wrapControl.js +49 -50
- package/esm/schema.d.ts +1292 -0
- package/esm/store/app.d.ts +17 -17
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +1504 -10289
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.d.ts +22 -22
- package/esm/store/crud.js +9 -5
- package/esm/store/form.d.ts +571 -4232
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.d.ts +48 -48
- package/esm/store/formItem.js +3 -3
- package/esm/store/iRenderer.d.ts +7 -7
- package/esm/store/iRenderer.js +6 -6
- package/esm/store/index.d.ts +15 -15
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +10 -10
- package/esm/store/list.js +1 -1
- package/esm/store/manager.d.ts +18 -18
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.d.ts +16 -16
- package/esm/store/modal.js +1 -1
- package/esm/store/node.d.ts +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.d.ts +9 -9
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.d.ts +20 -19
- package/esm/store/root.js +9 -3
- package/esm/store/service.d.ts +9 -9
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +16 -11238
- package/esm/store/table.js +8 -8
- package/esm/store/table2.d.ts +20 -20
- package/esm/store/table2.js +4 -4
- package/esm/theme.d.ts +2 -2
- package/esm/theme.js +5 -5
- package/esm/types.d.ts +21 -352
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +1 -1
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/animations.d.ts +2 -27
- package/esm/utils/animations.js +1 -1
- package/esm/utils/api.d.ts +1 -1
- package/esm/utils/api.js +2 -2
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/browser.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/concatData.js +1 -1
- package/esm/utils/dataMapping.js +1 -1
- package/esm/utils/date.js +1 -1
- package/esm/utils/debug.js +3 -3
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.js +1 -1
- package/esm/utils/errors.js +1 -1
- package/esm/utils/escapeHtml.js +1 -1
- package/esm/utils/filter-schema.js +1 -1
- package/esm/utils/filter.js +1 -1
- package/esm/utils/formatDuration.js +1 -1
- package/esm/utils/formula.js +2 -2
- package/esm/utils/getPageId.js +1 -1
- package/esm/utils/getVariable.js +1 -1
- package/esm/utils/grammar.js +1 -1
- package/esm/utils/handleAction.d.ts +0 -1
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.d.ts +5 -4
- package/esm/utils/helper.js +2 -2
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.d.ts +0 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.js +1 -1
- package/esm/utils/isPureVariable.js +1 -1
- package/esm/utils/json-schema-2-amis-schema.js +1 -1
- package/esm/utils/keyToPath.js +1 -1
- package/esm/utils/labelToString.js +1 -1
- package/esm/utils/loopTooMuch.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/math.js +1 -1
- package/esm/utils/memoryParse.js +1 -1
- package/esm/utils/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +1 -1
- package/esm/utils/object.js +1 -1
- package/esm/utils/offset.js +1 -1
- package/esm/utils/offsetParent.js +1 -1
- package/esm/utils/optionValueCompare.js +1 -1
- package/esm/utils/position.js +1 -1
- package/esm/utils/prettyBytes.js +1 -1
- package/esm/utils/printElement.js +1 -1
- package/esm/utils/renderer-event.d.ts +4 -5
- package/esm/utils/renderer-event.js +10 -10
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.d.ts +1 -1
- package/esm/utils/resolveCondition.js +8 -8
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +12 -8
- package/esm/utils/scrollPosition.js +1 -1
- package/esm/utils/string2regExp.js +1 -1
- package/esm/utils/stripNumber.js +1 -1
- package/esm/utils/style-helper.js +1 -1
- package/esm/utils/style.js +1 -1
- package/esm/utils/toNumber.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.d.ts +1 -1
- package/esm/utils/tpl-builtin.js +9 -5
- package/esm/utils/tpl-lodash.js +1 -1
- package/esm/utils/tpl.d.ts +1 -1
- package/esm/utils/tpl.js +6 -2
- package/esm/utils/uncontrollable.d.ts +0 -1
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validateId.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/esm/utils/visitedCache.js +1 -1
- package/lib/Root.d.ts +3 -2
- package/lib/Root.js +3 -1
- package/lib/RootRenderer.d.ts +18 -0
- package/lib/RootRenderer.js +6 -3
- package/lib/SchemaRenderer.js +2 -2
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/WithRootStore.d.ts +70 -358
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +2 -3
- package/lib/actions/Action.d.ts +3 -17
- package/lib/actions/Action.js +1 -1
- package/lib/actions/AjaxAction.d.ts +1 -1
- package/lib/actions/AjaxAction.js +11 -11
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +2 -2
- package/lib/actions/CmptAction.d.ts +1 -1
- package/lib/actions/CmptAction.js +41 -41
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +2 -2
- package/lib/actions/CustomAction.d.ts +2 -1
- package/lib/actions/CustomAction.js +2 -2
- package/lib/actions/DialogAction.d.ts +6 -6
- package/lib/actions/DialogAction.js +12 -12
- package/lib/actions/DrawerAction.d.ts +3 -3
- package/lib/actions/DrawerAction.js +10 -10
- package/lib/actions/EmailAction.js +2 -2
- package/lib/actions/EventAction.js +6 -6
- package/lib/actions/LinkAction.js +2 -2
- package/lib/actions/LoopAction.js +12 -12
- package/lib/actions/PageAction.js +2 -2
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/PrintAction.js +2 -2
- package/lib/actions/StatusAction.js +2 -2
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +2 -2
- package/lib/actions/WaitAction.js +2 -2
- package/lib/actions/index.d.ts +66 -0
- package/lib/components/Animations.d.ts +2 -2
- package/lib/components/Animations.js +1 -1
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/ErrorBoundary.js +1 -1
- package/lib/components/LazyComponent.d.ts +0 -1
- package/lib/components/LazyComponent.js +2 -3
- package/lib/components/Overlay.js +2 -9
- package/lib/components/PopOver.d.ts +0 -1
- package/lib/components/PopOver.js +2 -2
- package/lib/env.d.ts +22 -22
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.d.ts +3 -1
- package/lib/factory.js +6 -6
- package/lib/globalVar.js +1 -1
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/hooks/useEnvContext.js +1 -1
- package/lib/hooks/useRenderOptionsContext.js +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.js +9 -7
- package/lib/locale.d.ts +22 -22
- package/lib/locale.js +6 -6
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.d.ts +42 -18
- package/lib/renderers/Form.js +28 -28
- package/lib/renderers/Item.d.ts +52 -206
- package/lib/renderers/Item.js +17 -13
- package/lib/renderers/Options.d.ts +18 -17
- package/lib/renderers/Options.js +48 -49
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/register.js +1 -1
- package/lib/renderers/wrapControl.d.ts +36 -180
- package/lib/renderers/wrapControl.js +49 -50
- package/lib/schema.d.ts +1292 -0
- package/lib/store/app.d.ts +17 -17
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +1504 -10288
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.d.ts +22 -22
- package/lib/store/crud.js +8 -4
- package/lib/store/form.d.ts +571 -4231
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.d.ts +48 -48
- package/lib/store/formItem.js +3 -3
- package/lib/store/iRenderer.d.ts +7 -7
- package/lib/store/iRenderer.js +6 -6
- package/lib/store/index.d.ts +15 -15
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +10 -10
- package/lib/store/list.js +1 -1
- package/lib/store/manager.d.ts +18 -18
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.d.ts +16 -16
- package/lib/store/modal.js +1 -1
- package/lib/store/node.d.ts +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.d.ts +9 -9
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.d.ts +20 -18
- package/lib/store/root.js +9 -3
- package/lib/store/service.d.ts +9 -9
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +16 -11237
- package/lib/store/table.js +8 -8
- package/lib/store/table2.d.ts +20 -20
- package/lib/store/table2.js +4 -4
- package/lib/theme.d.ts +2 -2
- package/lib/theme.js +5 -5
- package/lib/types.d.ts +21 -352
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +1 -1
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/animations.d.ts +2 -27
- package/lib/utils/animations.js +1 -1
- package/lib/utils/api.d.ts +1 -1
- package/lib/utils/api.js +2 -2
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/browser.js +1 -1
- package/lib/utils/columnsSplit.js +1 -1
- package/lib/utils/concatData.js +1 -1
- package/lib/utils/dataMapping.js +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/debug.js +2 -2
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +1 -1
- package/lib/utils/errors.js +1 -1
- package/lib/utils/escapeHtml.js +1 -1
- package/lib/utils/filter-schema.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatDuration.js +1 -1
- package/lib/utils/formula.js +2 -2
- package/lib/utils/getPageId.js +1 -1
- package/lib/utils/getVariable.js +1 -1
- package/lib/utils/grammar.js +1 -1
- package/lib/utils/handleAction.d.ts +0 -1
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.d.ts +5 -4
- package/lib/utils/helper.js +2 -2
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.d.ts +0 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/isPureVariable.js +1 -1
- package/lib/utils/json-schema-2-amis-schema.js +1 -1
- package/lib/utils/keyToPath.js +1 -1
- package/lib/utils/labelToString.js +1 -1
- package/lib/utils/loopTooMuch.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/math.js +1 -1
- package/lib/utils/memoryParse.js +1 -1
- package/lib/utils/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +1 -1
- package/lib/utils/object.js +1 -1
- package/lib/utils/offset.js +1 -1
- package/lib/utils/offsetParent.js +1 -1
- package/lib/utils/optionValueCompare.js +1 -1
- package/lib/utils/position.js +1 -1
- package/lib/utils/prettyBytes.js +1 -1
- package/lib/utils/printElement.js +1 -1
- package/lib/utils/renderer-event.d.ts +4 -5
- package/lib/utils/renderer-event.js +10 -10
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.d.ts +1 -1
- package/lib/utils/resolveCondition.js +8 -8
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +11 -7
- package/lib/utils/scrollPosition.js +1 -1
- package/lib/utils/string2regExp.js +1 -1
- package/lib/utils/stripNumber.js +1 -1
- package/lib/utils/style-helper.js +1 -1
- package/lib/utils/style.js +1 -1
- package/lib/utils/toNumber.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.d.ts +1 -1
- package/lib/utils/tpl-builtin.js +8 -4
- package/lib/utils/tpl-lodash.js +1 -1
- package/lib/utils/tpl.d.ts +1 -1
- package/lib/utils/tpl.js +6 -2
- package/lib/utils/uncontrollable.d.ts +0 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validateId.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/lib/utils/visitedCache.js +1 -1
- package/package.json +3 -3
package/esm/WithRootStore.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const RootStoreContext: React.Context<{
|
|
|
7
7
|
readonly fetcher: any;
|
|
8
8
|
readonly notify: any;
|
|
9
9
|
readonly isCancel: (value: any) => boolean;
|
|
10
|
-
readonly __: import("./locale").TranslateFn
|
|
10
|
+
readonly __: import("./locale").TranslateFn;
|
|
11
11
|
getStoreById(id: string): {
|
|
12
12
|
id: string;
|
|
13
13
|
path: string;
|
|
@@ -19,11 +19,11 @@ export declare const RootStoreContext: React.Context<{
|
|
|
19
19
|
readonly parentStore: any;
|
|
20
20
|
readonly __: any;
|
|
21
21
|
readonly hasChildren: boolean;
|
|
22
|
-
readonly children: any
|
|
22
|
+
readonly children: Array<any>;
|
|
23
23
|
} & {
|
|
24
24
|
onChildStoreDispose(child: any): void;
|
|
25
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
26
|
-
dispose: (callback?: (
|
|
25
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
26
|
+
dispose: (callback?: () => void) => void;
|
|
27
27
|
addChildId: (id: string) => void;
|
|
28
28
|
removeChildId: (id: string) => void;
|
|
29
29
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -37,11 +37,11 @@ export declare const RootStoreContext: React.Context<{
|
|
|
37
37
|
readonly parentStore: any;
|
|
38
38
|
readonly __: any;
|
|
39
39
|
readonly hasChildren: boolean;
|
|
40
|
-
readonly children: any
|
|
40
|
+
readonly children: Array<any>;
|
|
41
41
|
} & {
|
|
42
42
|
onChildStoreDispose(child: any): void;
|
|
43
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
44
|
-
dispose: (callback?: (
|
|
43
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
44
|
+
dispose: (callback?: () => void) => void;
|
|
45
45
|
addChildId: (id: string) => void;
|
|
46
46
|
removeChildId: (id: string) => void;
|
|
47
47
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -57,11 +57,11 @@ export declare const RootStoreContext: React.Context<{
|
|
|
57
57
|
readonly parentStore: any;
|
|
58
58
|
readonly __: any;
|
|
59
59
|
readonly hasChildren: boolean;
|
|
60
|
-
readonly children: any
|
|
60
|
+
readonly children: Array<any>;
|
|
61
61
|
} & {
|
|
62
62
|
onChildStoreDispose(child: any): void;
|
|
63
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
64
|
-
dispose: (callback?: (
|
|
63
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
64
|
+
dispose: (callback?: () => void) => void;
|
|
65
65
|
addChildId: (id: string) => void;
|
|
66
66
|
removeChildId: (id: string) => void;
|
|
67
67
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -75,103 +75,31 @@ export declare const RootStoreContext: React.Context<{
|
|
|
75
75
|
readonly parentStore: any;
|
|
76
76
|
readonly __: any;
|
|
77
77
|
readonly hasChildren: boolean;
|
|
78
|
-
readonly children: any
|
|
78
|
+
readonly children: Array<any>;
|
|
79
79
|
} & {
|
|
80
80
|
onChildStoreDispose(child: any): void;
|
|
81
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
82
|
-
dispose: (callback?: (
|
|
81
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
82
|
+
dispose: (callback?: () => void) => void;
|
|
83
83
|
addChildId: (id: string) => void;
|
|
84
84
|
removeChildId: (id: string) => void;
|
|
85
85
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
86
86
|
};
|
|
87
87
|
} & {
|
|
88
88
|
addStore(store: {
|
|
89
|
-
[propName: string]: any;
|
|
90
89
|
storeType: string;
|
|
91
90
|
id: string;
|
|
92
91
|
path: string;
|
|
93
|
-
parentId?: string
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
storeType: string;
|
|
98
|
-
disposed: boolean;
|
|
99
|
-
parentId: string;
|
|
100
|
-
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]>>;
|
|
101
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
102
|
-
readonly parentStore: any;
|
|
103
|
-
readonly __: any;
|
|
104
|
-
readonly hasChildren: boolean;
|
|
105
|
-
readonly children: any[];
|
|
106
|
-
} & {
|
|
107
|
-
onChildStoreDispose(child: any): void;
|
|
108
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
109
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
110
|
-
addChildId: (id: string) => void;
|
|
111
|
-
removeChildId: (id: string) => void;
|
|
112
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
113
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
114
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
115
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
116
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
117
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
118
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
119
|
-
}, {
|
|
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")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
131
|
-
removeStore(store: {
|
|
132
|
-
id: string;
|
|
133
|
-
path: string;
|
|
134
|
-
storeType: string;
|
|
135
|
-
disposed: boolean;
|
|
136
|
-
parentId: string;
|
|
137
|
-
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]>>;
|
|
138
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
139
|
-
readonly parentStore: any;
|
|
140
|
-
readonly __: any;
|
|
141
|
-
readonly hasChildren: boolean;
|
|
142
|
-
readonly children: any[];
|
|
143
|
-
} & {
|
|
144
|
-
onChildStoreDispose(child: any): void;
|
|
145
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
146
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
147
|
-
addChildId: (id: string) => void;
|
|
148
|
-
removeChildId: (id: string) => void;
|
|
149
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
150
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
151
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
152
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
153
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
154
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
155
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
156
|
-
}, {
|
|
157
|
-
readonly parentStore: any;
|
|
158
|
-
readonly __: any;
|
|
159
|
-
readonly hasChildren: boolean;
|
|
160
|
-
readonly children: any[];
|
|
161
|
-
} & {
|
|
162
|
-
onChildStoreDispose(child: any): void;
|
|
163
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
164
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
165
|
-
addChildId: (id: string) => void;
|
|
166
|
-
removeChildId: (id: string) => void;
|
|
167
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
92
|
+
parentId?: string;
|
|
93
|
+
[propName: string]: any;
|
|
94
|
+
}): import("./store").IStoreNode;
|
|
95
|
+
removeStore(store: import("./store").IStoreNode): void;
|
|
168
96
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
169
97
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
170
98
|
}, {
|
|
171
99
|
readonly fetcher: any;
|
|
172
100
|
readonly notify: any;
|
|
173
101
|
readonly isCancel: (value: any) => boolean;
|
|
174
|
-
readonly __: import("./locale").TranslateFn
|
|
102
|
+
readonly __: import("./locale").TranslateFn;
|
|
175
103
|
getStoreById(id: string): {
|
|
176
104
|
id: string;
|
|
177
105
|
path: string;
|
|
@@ -183,11 +111,11 @@ export declare const RootStoreContext: React.Context<{
|
|
|
183
111
|
readonly parentStore: any;
|
|
184
112
|
readonly __: any;
|
|
185
113
|
readonly hasChildren: boolean;
|
|
186
|
-
readonly children: any
|
|
114
|
+
readonly children: Array<any>;
|
|
187
115
|
} & {
|
|
188
116
|
onChildStoreDispose(child: any): void;
|
|
189
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
190
|
-
dispose: (callback?: (
|
|
117
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
118
|
+
dispose: (callback?: () => void) => void;
|
|
191
119
|
addChildId: (id: string) => void;
|
|
192
120
|
removeChildId: (id: string) => void;
|
|
193
121
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -201,11 +129,11 @@ export declare const RootStoreContext: React.Context<{
|
|
|
201
129
|
readonly parentStore: any;
|
|
202
130
|
readonly __: any;
|
|
203
131
|
readonly hasChildren: boolean;
|
|
204
|
-
readonly children: any
|
|
132
|
+
readonly children: Array<any>;
|
|
205
133
|
} & {
|
|
206
134
|
onChildStoreDispose(child: any): void;
|
|
207
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
208
|
-
dispose: (callback?: (
|
|
135
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
136
|
+
dispose: (callback?: () => void) => void;
|
|
209
137
|
addChildId: (id: string) => void;
|
|
210
138
|
removeChildId: (id: string) => void;
|
|
211
139
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -221,11 +149,11 @@ export declare const RootStoreContext: React.Context<{
|
|
|
221
149
|
readonly parentStore: any;
|
|
222
150
|
readonly __: any;
|
|
223
151
|
readonly hasChildren: boolean;
|
|
224
|
-
readonly children: any
|
|
152
|
+
readonly children: Array<any>;
|
|
225
153
|
} & {
|
|
226
154
|
onChildStoreDispose(child: any): void;
|
|
227
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
228
|
-
dispose: (callback?: (
|
|
155
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
156
|
+
dispose: (callback?: () => void) => void;
|
|
229
157
|
addChildId: (id: string) => void;
|
|
230
158
|
removeChildId: (id: string) => void;
|
|
231
159
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -239,100 +167,28 @@ export declare const RootStoreContext: React.Context<{
|
|
|
239
167
|
readonly parentStore: any;
|
|
240
168
|
readonly __: any;
|
|
241
169
|
readonly hasChildren: boolean;
|
|
242
|
-
readonly children: any
|
|
170
|
+
readonly children: Array<any>;
|
|
243
171
|
} & {
|
|
244
172
|
onChildStoreDispose(child: any): void;
|
|
245
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
246
|
-
dispose: (callback?: (
|
|
173
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
174
|
+
dispose: (callback?: () => void) => void;
|
|
247
175
|
addChildId: (id: string) => void;
|
|
248
176
|
removeChildId: (id: string) => void;
|
|
249
177
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
250
178
|
};
|
|
251
179
|
} & {
|
|
252
180
|
addStore(store: {
|
|
253
|
-
[propName: string]: any;
|
|
254
181
|
storeType: string;
|
|
255
182
|
id: string;
|
|
256
183
|
path: string;
|
|
257
|
-
parentId?: string
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
storeType: string;
|
|
262
|
-
disposed: boolean;
|
|
263
|
-
parentId: string;
|
|
264
|
-
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]>>;
|
|
265
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
266
|
-
readonly parentStore: any;
|
|
267
|
-
readonly __: any;
|
|
268
|
-
readonly hasChildren: boolean;
|
|
269
|
-
readonly children: any[];
|
|
270
|
-
} & {
|
|
271
|
-
onChildStoreDispose(child: any): void;
|
|
272
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
273
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
274
|
-
addChildId: (id: string) => void;
|
|
275
|
-
removeChildId: (id: string) => void;
|
|
276
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
277
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
278
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
279
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
280
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
281
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
282
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
283
|
-
}, {
|
|
284
|
-
readonly parentStore: any;
|
|
285
|
-
readonly __: any;
|
|
286
|
-
readonly hasChildren: boolean;
|
|
287
|
-
readonly children: any[];
|
|
288
|
-
} & {
|
|
289
|
-
onChildStoreDispose(child: any): void;
|
|
290
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
291
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
292
|
-
addChildId: (id: string) => void;
|
|
293
|
-
removeChildId: (id: string) => void;
|
|
294
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
295
|
-
removeStore(store: {
|
|
296
|
-
id: string;
|
|
297
|
-
path: string;
|
|
298
|
-
storeType: string;
|
|
299
|
-
disposed: boolean;
|
|
300
|
-
parentId: string;
|
|
301
|
-
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]>>;
|
|
302
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
303
|
-
readonly parentStore: any;
|
|
304
|
-
readonly __: any;
|
|
305
|
-
readonly hasChildren: boolean;
|
|
306
|
-
readonly children: any[];
|
|
307
|
-
} & {
|
|
308
|
-
onChildStoreDispose(child: any): void;
|
|
309
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
310
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
311
|
-
addChildId: (id: string) => void;
|
|
312
|
-
removeChildId: (id: string) => void;
|
|
313
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
314
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
315
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
316
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
317
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
318
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
319
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
320
|
-
}, {
|
|
321
|
-
readonly parentStore: any;
|
|
322
|
-
readonly __: any;
|
|
323
|
-
readonly hasChildren: boolean;
|
|
324
|
-
readonly children: any[];
|
|
325
|
-
} & {
|
|
326
|
-
onChildStoreDispose(child: any): void;
|
|
327
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
328
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
329
|
-
addChildId: (id: string) => void;
|
|
330
|
-
removeChildId: (id: string) => void;
|
|
331
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
184
|
+
parentId?: string;
|
|
185
|
+
[propName: string]: any;
|
|
186
|
+
}): import("./store").IStoreNode;
|
|
187
|
+
removeStore(store: import("./store").IStoreNode): void;
|
|
332
188
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
333
189
|
export declare function withRootStore<T extends React.ComponentType<React.ComponentProps<T> & {
|
|
334
190
|
rootStore: IRendererStore;
|
|
335
|
-
}>>(ComposedComponent: T): {
|
|
191
|
+
}>>(ComposedComponent: T): ({
|
|
336
192
|
new (props: JSX.LibraryManagedAttributes<T, Omit<React.ComponentProps<T>, "rootStore">>): {
|
|
337
193
|
ref: any;
|
|
338
194
|
getWrappedInstance(): any;
|
|
@@ -366,7 +222,7 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
366
222
|
readonly fetcher: any;
|
|
367
223
|
readonly notify: any;
|
|
368
224
|
readonly isCancel: (value: any) => boolean;
|
|
369
|
-
readonly __: import("./locale").TranslateFn
|
|
225
|
+
readonly __: import("./locale").TranslateFn;
|
|
370
226
|
getStoreById(id: string): {
|
|
371
227
|
id: string;
|
|
372
228
|
path: string;
|
|
@@ -378,11 +234,11 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
378
234
|
readonly parentStore: any;
|
|
379
235
|
readonly __: any;
|
|
380
236
|
readonly hasChildren: boolean;
|
|
381
|
-
readonly children: any
|
|
237
|
+
readonly children: Array<any>;
|
|
382
238
|
} & {
|
|
383
239
|
onChildStoreDispose(child: any): void;
|
|
384
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
385
|
-
dispose: (callback?: (
|
|
240
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
241
|
+
dispose: (callback?: () => void) => void;
|
|
386
242
|
addChildId: (id: string) => void;
|
|
387
243
|
removeChildId: (id: string) => void;
|
|
388
244
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -396,11 +252,11 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
396
252
|
readonly parentStore: any;
|
|
397
253
|
readonly __: any;
|
|
398
254
|
readonly hasChildren: boolean;
|
|
399
|
-
readonly children: any
|
|
255
|
+
readonly children: Array<any>;
|
|
400
256
|
} & {
|
|
401
257
|
onChildStoreDispose(child: any): void;
|
|
402
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
403
|
-
dispose: (callback?: (
|
|
258
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
259
|
+
dispose: (callback?: () => void) => void;
|
|
404
260
|
addChildId: (id: string) => void;
|
|
405
261
|
removeChildId: (id: string) => void;
|
|
406
262
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -416,11 +272,11 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
416
272
|
readonly parentStore: any;
|
|
417
273
|
readonly __: any;
|
|
418
274
|
readonly hasChildren: boolean;
|
|
419
|
-
readonly children: any
|
|
275
|
+
readonly children: Array<any>;
|
|
420
276
|
} & {
|
|
421
277
|
onChildStoreDispose(child: any): void;
|
|
422
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
423
|
-
dispose: (callback?: (
|
|
278
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
279
|
+
dispose: (callback?: () => void) => void;
|
|
424
280
|
addChildId: (id: string) => void;
|
|
425
281
|
removeChildId: (id: string) => void;
|
|
426
282
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -434,103 +290,31 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
434
290
|
readonly parentStore: any;
|
|
435
291
|
readonly __: any;
|
|
436
292
|
readonly hasChildren: boolean;
|
|
437
|
-
readonly children: any
|
|
293
|
+
readonly children: Array<any>;
|
|
438
294
|
} & {
|
|
439
295
|
onChildStoreDispose(child: any): void;
|
|
440
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
441
|
-
dispose: (callback?: (
|
|
296
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
297
|
+
dispose: (callback?: () => void) => void;
|
|
442
298
|
addChildId: (id: string) => void;
|
|
443
299
|
removeChildId: (id: string) => void;
|
|
444
300
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
445
301
|
};
|
|
446
302
|
} & {
|
|
447
303
|
addStore(store: {
|
|
448
|
-
[propName: string]: any;
|
|
449
304
|
storeType: string;
|
|
450
305
|
id: string;
|
|
451
306
|
path: string;
|
|
452
|
-
parentId?: string
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
storeType: string;
|
|
457
|
-
disposed: boolean;
|
|
458
|
-
parentId: string;
|
|
459
|
-
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]>>;
|
|
460
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
461
|
-
readonly parentStore: any;
|
|
462
|
-
readonly __: any;
|
|
463
|
-
readonly hasChildren: boolean;
|
|
464
|
-
readonly children: any[];
|
|
465
|
-
} & {
|
|
466
|
-
onChildStoreDispose(child: any): void;
|
|
467
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
468
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
469
|
-
addChildId: (id: string) => void;
|
|
470
|
-
removeChildId: (id: string) => void;
|
|
471
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
472
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
473
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
474
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
475
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
476
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
477
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
478
|
-
}, {
|
|
479
|
-
readonly parentStore: any;
|
|
480
|
-
readonly __: any;
|
|
481
|
-
readonly hasChildren: boolean;
|
|
482
|
-
readonly children: any[];
|
|
483
|
-
} & {
|
|
484
|
-
onChildStoreDispose(child: any): void;
|
|
485
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
486
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
487
|
-
addChildId: (id: string) => void;
|
|
488
|
-
removeChildId: (id: string) => void;
|
|
489
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
490
|
-
removeStore(store: {
|
|
491
|
-
id: string;
|
|
492
|
-
path: string;
|
|
493
|
-
storeType: string;
|
|
494
|
-
disposed: boolean;
|
|
495
|
-
parentId: string;
|
|
496
|
-
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]>>;
|
|
497
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
498
|
-
readonly parentStore: any;
|
|
499
|
-
readonly __: any;
|
|
500
|
-
readonly hasChildren: boolean;
|
|
501
|
-
readonly children: any[];
|
|
502
|
-
} & {
|
|
503
|
-
onChildStoreDispose(child: any): void;
|
|
504
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
505
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
506
|
-
addChildId: (id: string) => void;
|
|
507
|
-
removeChildId: (id: string) => void;
|
|
508
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
509
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
510
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
511
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
512
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
513
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
514
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
515
|
-
}, {
|
|
516
|
-
readonly parentStore: any;
|
|
517
|
-
readonly __: any;
|
|
518
|
-
readonly hasChildren: boolean;
|
|
519
|
-
readonly children: any[];
|
|
520
|
-
} & {
|
|
521
|
-
onChildStoreDispose(child: any): void;
|
|
522
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
523
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
524
|
-
addChildId: (id: string) => void;
|
|
525
|
-
removeChildId: (id: string) => void;
|
|
526
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
307
|
+
parentId?: string;
|
|
308
|
+
[propName: string]: any;
|
|
309
|
+
}): import("./store").IStoreNode;
|
|
310
|
+
removeStore(store: import("./store").IStoreNode): void;
|
|
527
311
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
528
312
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
529
313
|
}, {
|
|
530
314
|
readonly fetcher: any;
|
|
531
315
|
readonly notify: any;
|
|
532
316
|
readonly isCancel: (value: any) => boolean;
|
|
533
|
-
readonly __: import("./locale").TranslateFn
|
|
317
|
+
readonly __: import("./locale").TranslateFn;
|
|
534
318
|
getStoreById(id: string): {
|
|
535
319
|
id: string;
|
|
536
320
|
path: string;
|
|
@@ -542,11 +326,11 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
542
326
|
readonly parentStore: any;
|
|
543
327
|
readonly __: any;
|
|
544
328
|
readonly hasChildren: boolean;
|
|
545
|
-
readonly children: any
|
|
329
|
+
readonly children: Array<any>;
|
|
546
330
|
} & {
|
|
547
331
|
onChildStoreDispose(child: any): void;
|
|
548
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
549
|
-
dispose: (callback?: (
|
|
332
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
333
|
+
dispose: (callback?: () => void) => void;
|
|
550
334
|
addChildId: (id: string) => void;
|
|
551
335
|
removeChildId: (id: string) => void;
|
|
552
336
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -560,11 +344,11 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
560
344
|
readonly parentStore: any;
|
|
561
345
|
readonly __: any;
|
|
562
346
|
readonly hasChildren: boolean;
|
|
563
|
-
readonly children: any
|
|
347
|
+
readonly children: Array<any>;
|
|
564
348
|
} & {
|
|
565
349
|
onChildStoreDispose(child: any): void;
|
|
566
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
567
|
-
dispose: (callback?: (
|
|
350
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
351
|
+
dispose: (callback?: () => void) => void;
|
|
568
352
|
addChildId: (id: string) => void;
|
|
569
353
|
removeChildId: (id: string) => void;
|
|
570
354
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -580,11 +364,11 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
580
364
|
readonly parentStore: any;
|
|
581
365
|
readonly __: any;
|
|
582
366
|
readonly hasChildren: boolean;
|
|
583
|
-
readonly children: any
|
|
367
|
+
readonly children: Array<any>;
|
|
584
368
|
} & {
|
|
585
369
|
onChildStoreDispose(child: any): void;
|
|
586
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
587
|
-
dispose: (callback?: (
|
|
370
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
371
|
+
dispose: (callback?: () => void) => void;
|
|
588
372
|
addChildId: (id: string) => void;
|
|
589
373
|
removeChildId: (id: string) => void;
|
|
590
374
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -598,98 +382,26 @@ export declare function withRootStore<T extends React.ComponentType<React.Compon
|
|
|
598
382
|
readonly parentStore: any;
|
|
599
383
|
readonly __: any;
|
|
600
384
|
readonly hasChildren: boolean;
|
|
601
|
-
readonly children: any
|
|
385
|
+
readonly children: Array<any>;
|
|
602
386
|
} & {
|
|
603
387
|
onChildStoreDispose(child: any): void;
|
|
604
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
605
|
-
dispose: (callback?: (
|
|
388
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
389
|
+
dispose: (callback?: () => void) => void;
|
|
606
390
|
addChildId: (id: string) => void;
|
|
607
391
|
removeChildId: (id: string) => void;
|
|
608
392
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
609
393
|
};
|
|
610
394
|
} & {
|
|
611
395
|
addStore(store: {
|
|
612
|
-
[propName: string]: any;
|
|
613
396
|
storeType: string;
|
|
614
397
|
id: string;
|
|
615
398
|
path: string;
|
|
616
|
-
parentId?: string
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
storeType: string;
|
|
621
|
-
disposed: boolean;
|
|
622
|
-
parentId: string;
|
|
623
|
-
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]>>;
|
|
624
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
625
|
-
readonly parentStore: any;
|
|
626
|
-
readonly __: any;
|
|
627
|
-
readonly hasChildren: boolean;
|
|
628
|
-
readonly children: any[];
|
|
629
|
-
} & {
|
|
630
|
-
onChildStoreDispose(child: any): void;
|
|
631
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
632
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
633
|
-
addChildId: (id: string) => void;
|
|
634
|
-
removeChildId: (id: string) => void;
|
|
635
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
636
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
637
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
638
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
639
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
640
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
641
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
642
|
-
}, {
|
|
643
|
-
readonly parentStore: any;
|
|
644
|
-
readonly __: any;
|
|
645
|
-
readonly hasChildren: boolean;
|
|
646
|
-
readonly children: any[];
|
|
647
|
-
} & {
|
|
648
|
-
onChildStoreDispose(child: any): void;
|
|
649
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
650
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
651
|
-
addChildId: (id: string) => void;
|
|
652
|
-
removeChildId: (id: string) => void;
|
|
653
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
654
|
-
removeStore(store: {
|
|
655
|
-
id: string;
|
|
656
|
-
path: string;
|
|
657
|
-
storeType: string;
|
|
658
|
-
disposed: boolean;
|
|
659
|
-
parentId: string;
|
|
660
|
-
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]>>;
|
|
661
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
662
|
-
readonly parentStore: any;
|
|
663
|
-
readonly __: any;
|
|
664
|
-
readonly hasChildren: boolean;
|
|
665
|
-
readonly children: any[];
|
|
666
|
-
} & {
|
|
667
|
-
onChildStoreDispose(child: any): void;
|
|
668
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
669
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
670
|
-
addChildId: (id: string) => void;
|
|
671
|
-
removeChildId: (id: string) => void;
|
|
672
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
673
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
674
|
-
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
675
|
-
storeType: import("mobx-state-tree").ISimpleType<string>;
|
|
676
|
-
disposed: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
677
|
-
parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
678
|
-
childrenIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
|
|
679
|
-
}, {
|
|
680
|
-
readonly parentStore: any;
|
|
681
|
-
readonly __: any;
|
|
682
|
-
readonly hasChildren: boolean;
|
|
683
|
-
readonly children: any[];
|
|
684
|
-
} & {
|
|
685
|
-
onChildStoreDispose(child: any): void;
|
|
686
|
-
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
687
|
-
dispose: (callback?: (() => void) | undefined) => void;
|
|
688
|
-
addChildId: (id: string) => void;
|
|
689
|
-
removeChildId: (id: string) => void;
|
|
690
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
399
|
+
parentId?: string;
|
|
400
|
+
[propName: string]: any;
|
|
401
|
+
}): import("./store").IStoreNode;
|
|
402
|
+
removeStore(store: import("./store").IStoreNode): void;
|
|
691
403
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
692
404
|
ComposedComponent: React.ComponentType<T>;
|
|
693
|
-
} & hoistNonReactStatic.NonReactStatics<T, {}> & {
|
|
405
|
+
} & hoistNonReactStatic.NonReactStatics<T, {}>) & {
|
|
694
406
|
ComposedComponent: T;
|
|
695
407
|
};
|
package/esm/WithRootStore.js
CHANGED
package/esm/WithStore.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.14.0-beta.
|
|
2
|
+
* amis-core v6.14.0-beta.9
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -37,9 +37,8 @@ function HocStoreFactory(renderer) {
|
|
|
37
37
|
var StoreFactory = /** @class */ (function (_super) {
|
|
38
38
|
__extends(StoreFactory, _super);
|
|
39
39
|
function StoreFactory(props, context) {
|
|
40
|
-
var _this = this;
|
|
41
40
|
var _a;
|
|
42
|
-
_this = _super.call(this, props) || this;
|
|
41
|
+
var _this = _super.call(this, props) || this;
|
|
43
42
|
var rootStore = context;
|
|
44
43
|
_this.renderChild = _this.renderChild.bind(_this);
|
|
45
44
|
_this.refFn = _this.refFn.bind(_this);
|