amis-core 6.14.0-beta.8 → 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 -10289
- 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 -4232
- 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 -19
- 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 -11238
- 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/lib/store/form.js
CHANGED
package/lib/store/formItem.d.ts
CHANGED
|
@@ -67,11 +67,11 @@ export declare const FormItemStore: import("mobx-state-tree").IModelType<{
|
|
|
67
67
|
readonly parentStore: any;
|
|
68
68
|
readonly __: any;
|
|
69
69
|
readonly hasChildren: boolean;
|
|
70
|
-
readonly children: any
|
|
70
|
+
readonly children: Array<any>;
|
|
71
71
|
} & {
|
|
72
72
|
onChildStoreDispose(child: any): void;
|
|
73
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
74
|
-
dispose: (callback?: (
|
|
73
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
74
|
+
dispose: (callback?: () => void) => void;
|
|
75
75
|
addChildId: (id: string) => void;
|
|
76
76
|
removeChildId: (id: string) => void;
|
|
77
77
|
} & {
|
|
@@ -98,78 +98,78 @@ export declare const FormItemStore: import("mobx-state-tree").IModelType<{
|
|
|
98
98
|
focus: () => void;
|
|
99
99
|
blur: () => void;
|
|
100
100
|
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
101
|
-
name?: string
|
|
102
|
-
extraName?: string
|
|
103
|
-
required?: boolean
|
|
104
|
-
unique?: boolean
|
|
101
|
+
name?: string;
|
|
102
|
+
extraName?: string;
|
|
103
|
+
required?: boolean;
|
|
104
|
+
unique?: boolean;
|
|
105
105
|
value?: any;
|
|
106
|
-
isValueSchemaExp?: boolean
|
|
106
|
+
isValueSchemaExp?: boolean;
|
|
107
107
|
rules?: string | {
|
|
108
108
|
[propName: string]: any;
|
|
109
|
-
}
|
|
109
|
+
};
|
|
110
110
|
messages?: {
|
|
111
111
|
[propName: string]: string;
|
|
112
|
-
}
|
|
113
|
-
multiple?: boolean
|
|
114
|
-
delimiter?: string
|
|
115
|
-
valueField?: string
|
|
116
|
-
labelField?: string
|
|
117
|
-
joinValues?: boolean
|
|
118
|
-
extractValue?: boolean
|
|
119
|
-
type?: string
|
|
120
|
-
id?: string
|
|
121
|
-
selectFirst?: boolean
|
|
112
|
+
};
|
|
113
|
+
multiple?: boolean;
|
|
114
|
+
delimiter?: string;
|
|
115
|
+
valueField?: string;
|
|
116
|
+
labelField?: string;
|
|
117
|
+
joinValues?: boolean;
|
|
118
|
+
extractValue?: boolean;
|
|
119
|
+
type?: string;
|
|
120
|
+
id?: string;
|
|
121
|
+
selectFirst?: boolean;
|
|
122
122
|
autoFill?: any;
|
|
123
|
-
clearValueOnHidden?: boolean
|
|
124
|
-
validateApi?: boolean
|
|
125
|
-
minLength?: number
|
|
126
|
-
maxLength?: number
|
|
127
|
-
validateOnChange?: boolean
|
|
128
|
-
label?: string
|
|
123
|
+
clearValueOnHidden?: boolean;
|
|
124
|
+
validateApi?: boolean;
|
|
125
|
+
minLength?: number;
|
|
126
|
+
maxLength?: number;
|
|
127
|
+
validateOnChange?: boolean;
|
|
128
|
+
label?: string;
|
|
129
129
|
inputGroupControl?: {
|
|
130
|
-
[propsName: string]: any;
|
|
131
130
|
name: string;
|
|
132
131
|
path: string;
|
|
133
|
-
|
|
132
|
+
[propsName: string]: any;
|
|
133
|
+
};
|
|
134
134
|
pagination?: {
|
|
135
|
-
enable?: boolean
|
|
136
|
-
page?: number
|
|
137
|
-
perPage?: number
|
|
138
|
-
}
|
|
135
|
+
enable?: boolean;
|
|
136
|
+
page?: number;
|
|
137
|
+
perPage?: number;
|
|
138
|
+
};
|
|
139
139
|
}) => void;
|
|
140
140
|
validate: (data: Object, hook?: any, customRules?: {
|
|
141
141
|
[propName: string]: any;
|
|
142
|
-
}
|
|
142
|
+
}) => Promise<boolean>;
|
|
143
143
|
setError: (msg: string | Array<string>, tag?: string) => void;
|
|
144
|
-
addError: (msg: string |
|
|
144
|
+
addError: (msg: string | Array<string | {
|
|
145
145
|
msg: string;
|
|
146
146
|
rule: string;
|
|
147
|
-
}
|
|
147
|
+
}>, tag?: string) => void;
|
|
148
148
|
clearError: (tag?: string) => void;
|
|
149
149
|
setPagination: (params: {
|
|
150
|
-
page?: number
|
|
151
|
-
perPage?: number
|
|
152
|
-
total?: number
|
|
150
|
+
page?: number;
|
|
151
|
+
perPage?: number;
|
|
152
|
+
total?: number;
|
|
153
153
|
}) => void;
|
|
154
|
-
setOptions: (options: Array<object>, onChange?: (
|
|
155
|
-
loadOptions: (api: Api, data?: object, config?:
|
|
156
|
-
extendsOptions?: boolean
|
|
157
|
-
}
|
|
158
|
-
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: (
|
|
159
|
-
deferLoadOptions: (option: any, api: Api, data?: object, config?: fetchOptions
|
|
160
|
-
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object, config?: fetchOptions
|
|
161
|
-
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object, config?: fetchOptions
|
|
154
|
+
setOptions: (options: Array<object>, onChange?: (value: any) => void, data?: Object) => void;
|
|
155
|
+
loadOptions: (api: Api, data?: object, config?: fetchOptions & {
|
|
156
|
+
extendsOptions?: boolean;
|
|
157
|
+
}, clearValue?: boolean, onChange?: (value: any) => void, setErrorFlag?: boolean) => Promise<Payload | null>;
|
|
158
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: (value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void, clearValue?: boolean) => any[];
|
|
159
|
+
deferLoadOptions: (option: any, api: Api, data?: object, config?: fetchOptions) => Promise<Payload | null>;
|
|
160
|
+
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object, config?: fetchOptions) => Promise<Payload | null>;
|
|
161
|
+
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object, config?: fetchOptions) => Promise<Payload | null | void>;
|
|
162
162
|
syncOptions: (originOptions?: Array<any>, data?: Object) => void;
|
|
163
163
|
setLoading: (value: boolean) => void;
|
|
164
164
|
setSubStore: (store: any) => void;
|
|
165
165
|
getSubStore: () => any;
|
|
166
166
|
reset: (keepErrors?: boolean) => void;
|
|
167
167
|
resetValidationStatus: (tag?: string) => void;
|
|
168
|
-
openDialog: (schema: any, ctx: any, callback?: (
|
|
168
|
+
openDialog: (schema: any, ctx: any, callback?: (confirmed?: any, value?: any) => void) => void;
|
|
169
169
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
170
|
-
openPopOver: (schema: any, ctx: any, callback?: (
|
|
170
|
+
openPopOver: (schema: any, ctx: any, callback?: (confirmed?: any, value?: any) => void) => void;
|
|
171
171
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
172
|
-
changeTmpValue: (value: any, changeReason?:
|
|
172
|
+
changeTmpValue: (value: any, changeReason?: "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "input" | "defaultValue") => void;
|
|
173
173
|
changeEmitedValue: (value: any) => void;
|
|
174
174
|
addSubFormItem: (item: IFormItemStore) => void;
|
|
175
175
|
removeSubFormItem: (item: IFormItemStore) => void;
|
package/lib/store/formItem.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
|
|
|
@@ -60,7 +60,7 @@ var getSelectedOptionsCache = {
|
|
|
60
60
|
var FormItemStore = node.StoreNode.named('FormItemStore')
|
|
61
61
|
.props({
|
|
62
62
|
isFocused: false,
|
|
63
|
-
isControlled: false,
|
|
63
|
+
isControlled: false, // 是否是受控表单项,通常是用在别的组件里面
|
|
64
64
|
type: '',
|
|
65
65
|
label: '',
|
|
66
66
|
unique: false,
|
|
@@ -76,7 +76,7 @@ var FormItemStore = node.StoreNode.named('FormItemStore')
|
|
|
76
76
|
errorData: mobxStateTree.types.optional(mobxStateTree.types.array(ErrorDetail), []),
|
|
77
77
|
name: mobxStateTree.types.string,
|
|
78
78
|
extraName: '',
|
|
79
|
-
itemId: '',
|
|
79
|
+
itemId: '', // 因为 name 可能会重名,所以加个 id 进来,如果有需要用来定位具体某一个
|
|
80
80
|
unsetValueOnInvisible: false,
|
|
81
81
|
itemsRef: mobxStateTree.types.optional(mobxStateTree.types.array(mobxStateTree.types.string), []),
|
|
82
82
|
inited: false,
|
package/lib/store/iRenderer.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
27
27
|
readonly parentStore: any;
|
|
28
28
|
readonly __: any;
|
|
29
29
|
readonly hasChildren: boolean;
|
|
30
|
-
readonly children: any
|
|
30
|
+
readonly children: Array<any>;
|
|
31
31
|
} & {
|
|
32
32
|
onChildStoreDispose(child: any): void;
|
|
33
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
34
|
-
dispose: (callback?: (
|
|
33
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
34
|
+
dispose: (callback?: () => void) => void;
|
|
35
35
|
addChildId: (id: string) => void;
|
|
36
36
|
removeChildId: (id: string) => void;
|
|
37
37
|
} & {
|
|
@@ -45,11 +45,11 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
45
45
|
unDoTemporaryUpdateGlobalVars(): void;
|
|
46
46
|
reset(): void;
|
|
47
47
|
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: DataChangeReason): void;
|
|
48
|
-
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (
|
|
49
|
-
setCurrentAction(action: any, resolveDefinitions?: (
|
|
50
|
-
openDialog(ctx: any, additonal?: object, callback?: (
|
|
48
|
+
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (data: Object) => void, changeReason?: DataChangeReason): void;
|
|
49
|
+
setCurrentAction(action: any, resolveDefinitions?: (schema: any) => any): void;
|
|
50
|
+
openDialog(ctx: any, additonal?: object, callback?: (confirmed: boolean, values: any) => void, scoped?: IScopedContext): void;
|
|
51
51
|
closeDialog(confirmed?: any, data?: any): void;
|
|
52
|
-
openDrawer(ctx: any, additonal?: object, callback?: (
|
|
52
|
+
openDrawer(ctx: any, additonal?: object, callback?: (confirmed: boolean, ret: any) => void, scoped?: IScopedContext): void;
|
|
53
53
|
closeDrawer(confirmed?: any, data?: any): void;
|
|
54
54
|
getDialogScoped(): IScopedContext | null;
|
|
55
55
|
getDrawerScoped(): IScopedContext | null;
|
package/lib/store/iRenderer.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
|
|
|
@@ -70,11 +70,11 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
70
70
|
.props({
|
|
71
71
|
hasRemoteData: mobxStateTree.types.optional(mobxStateTree.types.boolean, false),
|
|
72
72
|
data: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
73
|
-
initedAt: 0,
|
|
74
|
-
updatedAt: 0,
|
|
75
|
-
pristine: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
76
|
-
pristineRaw: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
77
|
-
upStreamData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
73
|
+
initedAt: 0, // 初始 init 的时刻
|
|
74
|
+
updatedAt: 0, // 从服务端更新时刻
|
|
75
|
+
pristine: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}), // pristine 的数据可能会被表单项的默认值,form 的 initApi 等修改
|
|
76
|
+
pristineRaw: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}), // pristine的原始值
|
|
77
|
+
upStreamData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}), // 最原始的数据,只有由上游同步下来时才更新。用来判断是否变化过
|
|
78
78
|
action: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
79
79
|
dialogSchema: mobxStateTree.types.frozen(),
|
|
80
80
|
dialogOpen: false,
|
package/lib/store/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
|
32
32
|
readonly fetcher: any;
|
|
33
33
|
readonly notify: any;
|
|
34
34
|
readonly isCancel: (value: any) => boolean;
|
|
35
|
-
readonly __: TranslateFn
|
|
35
|
+
readonly __: TranslateFn;
|
|
36
36
|
getStoreById(id: string): {
|
|
37
37
|
id: string;
|
|
38
38
|
path: string;
|
|
@@ -44,11 +44,11 @@ export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
|
44
44
|
readonly parentStore: any;
|
|
45
45
|
readonly __: any;
|
|
46
46
|
readonly hasChildren: boolean;
|
|
47
|
-
readonly children: any
|
|
47
|
+
readonly children: Array<any>;
|
|
48
48
|
} & {
|
|
49
49
|
onChildStoreDispose(child: any): void;
|
|
50
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
51
|
-
dispose: (callback?: (
|
|
50
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
51
|
+
dispose: (callback?: () => void) => void;
|
|
52
52
|
addChildId: (id: string) => void;
|
|
53
53
|
removeChildId: (id: string) => void;
|
|
54
54
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -62,11 +62,11 @@ export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
|
62
62
|
readonly parentStore: any;
|
|
63
63
|
readonly __: any;
|
|
64
64
|
readonly hasChildren: boolean;
|
|
65
|
-
readonly children: any
|
|
65
|
+
readonly children: Array<any>;
|
|
66
66
|
} & {
|
|
67
67
|
onChildStoreDispose(child: any): void;
|
|
68
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
69
|
-
dispose: (callback?: (
|
|
68
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
69
|
+
dispose: (callback?: () => void) => void;
|
|
70
70
|
addChildId: (id: string) => void;
|
|
71
71
|
removeChildId: (id: string) => void;
|
|
72
72
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -82,11 +82,11 @@ export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
|
82
82
|
readonly parentStore: any;
|
|
83
83
|
readonly __: any;
|
|
84
84
|
readonly hasChildren: boolean;
|
|
85
|
-
readonly children: any
|
|
85
|
+
readonly children: Array<any>;
|
|
86
86
|
} & {
|
|
87
87
|
onChildStoreDispose(child: any): void;
|
|
88
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
89
|
-
dispose: (callback?: (
|
|
88
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
89
|
+
dispose: (callback?: () => void) => void;
|
|
90
90
|
addChildId: (id: string) => void;
|
|
91
91
|
removeChildId: (id: string) => void;
|
|
92
92
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -100,22 +100,22 @@ export declare const RendererStore: import("mobx-state-tree").IModelType<{
|
|
|
100
100
|
readonly parentStore: any;
|
|
101
101
|
readonly __: any;
|
|
102
102
|
readonly hasChildren: boolean;
|
|
103
|
-
readonly children: any
|
|
103
|
+
readonly children: Array<any>;
|
|
104
104
|
} & {
|
|
105
105
|
onChildStoreDispose(child: any): void;
|
|
106
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
107
|
-
dispose: (callback?: (
|
|
106
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
107
|
+
dispose: (callback?: () => void) => void;
|
|
108
108
|
addChildId: (id: string) => void;
|
|
109
109
|
removeChildId: (id: string) => void;
|
|
110
110
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
111
111
|
};
|
|
112
112
|
} & {
|
|
113
113
|
addStore(store: {
|
|
114
|
-
[propName: string]: any;
|
|
115
114
|
storeType: string;
|
|
116
115
|
id: string;
|
|
117
116
|
path: string;
|
|
118
|
-
parentId?: string
|
|
117
|
+
parentId?: string;
|
|
118
|
+
[propName: string]: any;
|
|
119
119
|
}): IStoreNode;
|
|
120
120
|
removeStore(store: IStoreNode): void;
|
|
121
121
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
package/lib/store/index.js
CHANGED
package/lib/store/list.d.ts
CHANGED
|
@@ -101,11 +101,11 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
101
101
|
readonly parentStore: any;
|
|
102
102
|
readonly __: any;
|
|
103
103
|
readonly hasChildren: boolean;
|
|
104
|
-
readonly children: any
|
|
104
|
+
readonly children: Array<any>;
|
|
105
105
|
} & {
|
|
106
106
|
onChildStoreDispose(child: any): void;
|
|
107
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
108
|
-
dispose: (callback?: (
|
|
107
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
108
|
+
dispose: (callback?: () => void) => void;
|
|
109
109
|
addChildId: (id: string) => void;
|
|
110
110
|
removeChildId: (id: string) => void;
|
|
111
111
|
} & {
|
|
@@ -114,16 +114,16 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
114
114
|
readonly pristineDiff: any;
|
|
115
115
|
} & {
|
|
116
116
|
setTopStore(value: any): void;
|
|
117
|
-
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason
|
|
117
|
+
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason): void;
|
|
118
118
|
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
119
119
|
unDoTemporaryUpdateGlobalVars(): void;
|
|
120
120
|
reset(): void;
|
|
121
|
-
updateData(data?: object, tag?: object
|
|
122
|
-
changeValue(name: string, value: any, changePristine?: boolean
|
|
123
|
-
setCurrentAction(action: any, resolveDefinitions?: (
|
|
124
|
-
openDialog(ctx: any, additonal?: object
|
|
121
|
+
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: import("..").DataChangeReason): void;
|
|
122
|
+
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (data: Object) => void, changeReason?: import("..").DataChangeReason): void;
|
|
123
|
+
setCurrentAction(action: any, resolveDefinitions?: (schema: any) => any): void;
|
|
124
|
+
openDialog(ctx: any, additonal?: object, callback?: (confirmed: boolean, values: any) => void, scoped?: import("..").IScopedContext): void;
|
|
125
125
|
closeDialog(confirmed?: any, data?: any): void;
|
|
126
|
-
openDrawer(ctx: any, additonal?: object
|
|
126
|
+
openDrawer(ctx: any, additonal?: object, callback?: (confirmed: boolean, ret: any) => void, scoped?: import("..").IScopedContext): void;
|
|
127
127
|
closeDrawer(confirmed?: any, data?: any): void;
|
|
128
128
|
getDialogScoped(): import("..").IScopedContext | null;
|
|
129
129
|
getDrawerScoped(): import("..").IScopedContext | null;
|
|
@@ -309,7 +309,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
309
309
|
selectAll: () => void;
|
|
310
310
|
toggle: (item: IItem) => void;
|
|
311
311
|
clear: () => void;
|
|
312
|
-
setOrderByInfo: (key: string, direction:
|
|
312
|
+
setOrderByInfo: (key: string, direction: "asc" | "desc") => void;
|
|
313
313
|
reset: () => void;
|
|
314
314
|
toggleDragging: () => void;
|
|
315
315
|
startDragging: () => void;
|
package/lib/store/list.js
CHANGED
package/lib/store/manager.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export declare function addStore(store: IStoreNode): {
|
|
|
10
10
|
readonly parentStore: any;
|
|
11
11
|
readonly __: any;
|
|
12
12
|
readonly hasChildren: boolean;
|
|
13
|
-
readonly children: any
|
|
13
|
+
readonly children: Array<any>;
|
|
14
14
|
} & {
|
|
15
15
|
onChildStoreDispose(child: any): void;
|
|
16
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
17
|
-
dispose: (callback?: (
|
|
16
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
17
|
+
dispose: (callback?: () => void) => void;
|
|
18
18
|
addChildId: (id: string) => void;
|
|
19
19
|
removeChildId: (id: string) => void;
|
|
20
20
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -28,11 +28,11 @@ export declare function addStore(store: IStoreNode): {
|
|
|
28
28
|
readonly parentStore: any;
|
|
29
29
|
readonly __: any;
|
|
30
30
|
readonly hasChildren: boolean;
|
|
31
|
-
readonly children: any
|
|
31
|
+
readonly children: Array<any>;
|
|
32
32
|
} & {
|
|
33
33
|
onChildStoreDispose(child: any): void;
|
|
34
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
35
|
-
dispose: (callback?: (
|
|
34
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
35
|
+
dispose: (callback?: () => void) => void;
|
|
36
36
|
addChildId: (id: string) => void;
|
|
37
37
|
removeChildId: (id: string) => void;
|
|
38
38
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -48,11 +48,11 @@ export declare function getStoreById(id: string): {
|
|
|
48
48
|
readonly parentStore: any;
|
|
49
49
|
readonly __: any;
|
|
50
50
|
readonly hasChildren: boolean;
|
|
51
|
-
readonly children: any
|
|
51
|
+
readonly children: Array<any>;
|
|
52
52
|
} & {
|
|
53
53
|
onChildStoreDispose(child: any): void;
|
|
54
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
55
|
-
dispose: (callback?: (
|
|
54
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
55
|
+
dispose: (callback?: () => void) => void;
|
|
56
56
|
addChildId: (id: string) => void;
|
|
57
57
|
removeChildId: (id: string) => void;
|
|
58
58
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -66,11 +66,11 @@ export declare function getStoreById(id: string): {
|
|
|
66
66
|
readonly parentStore: any;
|
|
67
67
|
readonly __: any;
|
|
68
68
|
readonly hasChildren: boolean;
|
|
69
|
-
readonly children: any
|
|
69
|
+
readonly children: Array<any>;
|
|
70
70
|
} & {
|
|
71
71
|
onChildStoreDispose(child: any): void;
|
|
72
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
73
|
-
dispose: (callback?: (
|
|
72
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
73
|
+
dispose: (callback?: () => void) => void;
|
|
74
74
|
addChildId: (id: string) => void;
|
|
75
75
|
removeChildId: (id: string) => void;
|
|
76
76
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -86,11 +86,11 @@ export declare function getStores(): {
|
|
|
86
86
|
readonly parentStore: any;
|
|
87
87
|
readonly __: any;
|
|
88
88
|
readonly hasChildren: boolean;
|
|
89
|
-
readonly children: any
|
|
89
|
+
readonly children: Array<any>;
|
|
90
90
|
} & {
|
|
91
91
|
onChildStoreDispose(child: any): void;
|
|
92
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
93
|
-
dispose: (callback?: (
|
|
92
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
93
|
+
dispose: (callback?: () => void) => void;
|
|
94
94
|
addChildId: (id: string) => void;
|
|
95
95
|
removeChildId: (id: string) => void;
|
|
96
96
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -104,11 +104,11 @@ export declare function getStores(): {
|
|
|
104
104
|
readonly parentStore: any;
|
|
105
105
|
readonly __: any;
|
|
106
106
|
readonly hasChildren: boolean;
|
|
107
|
-
readonly children: any
|
|
107
|
+
readonly children: Array<any>;
|
|
108
108
|
} & {
|
|
109
109
|
onChildStoreDispose(child: any): void;
|
|
110
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
111
|
-
dispose: (callback?: (
|
|
110
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
111
|
+
dispose: (callback?: () => void) => void;
|
|
112
112
|
addChildId: (id: string) => void;
|
|
113
113
|
removeChildId: (id: string) => void;
|
|
114
114
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
package/lib/store/manager.js
CHANGED
package/lib/store/modal.d.ts
CHANGED
|
@@ -42,11 +42,11 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
42
42
|
readonly parentStore: any;
|
|
43
43
|
readonly __: any;
|
|
44
44
|
readonly hasChildren: boolean;
|
|
45
|
-
readonly children: any
|
|
45
|
+
readonly children: Array<any>;
|
|
46
46
|
} & {
|
|
47
47
|
onChildStoreDispose(child: any): void;
|
|
48
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
49
|
-
dispose: (callback?: (
|
|
48
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
49
|
+
dispose: (callback?: () => void) => void;
|
|
50
50
|
addChildId: (id: string) => void;
|
|
51
51
|
removeChildId: (id: string) => void;
|
|
52
52
|
} & {
|
|
@@ -55,16 +55,16 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
55
55
|
readonly pristineDiff: any;
|
|
56
56
|
} & {
|
|
57
57
|
setTopStore(value: any): void;
|
|
58
|
-
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason
|
|
58
|
+
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason): void;
|
|
59
59
|
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
60
60
|
unDoTemporaryUpdateGlobalVars(): void;
|
|
61
61
|
reset(): void;
|
|
62
|
-
updateData(data?: object, tag?: object
|
|
63
|
-
changeValue(name: string, value: any, changePristine?: boolean
|
|
64
|
-
setCurrentAction(action: any, resolveDefinitions?: (
|
|
65
|
-
openDialog(ctx: any, additonal?: object
|
|
62
|
+
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: import("..").DataChangeReason): void;
|
|
63
|
+
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (data: Object) => void, changeReason?: import("..").DataChangeReason): void;
|
|
64
|
+
setCurrentAction(action: any, resolveDefinitions?: (schema: any) => any): void;
|
|
65
|
+
openDialog(ctx: any, additonal?: object, callback?: (confirmed: boolean, values: any) => void, scoped?: import("..").IScopedContext): void;
|
|
66
66
|
closeDialog(confirmed?: any, data?: any): void;
|
|
67
|
-
openDrawer(ctx: any, additonal?: object
|
|
67
|
+
openDrawer(ctx: any, additonal?: object, callback?: (confirmed: boolean, ret: any) => void, scoped?: import("..").IScopedContext): void;
|
|
68
68
|
closeDrawer(confirmed?: any, data?: any): void;
|
|
69
69
|
getDialogScoped(): import("..").IScopedContext | null;
|
|
70
70
|
getDrawerScoped(): import("..").IScopedContext | null;
|
|
@@ -74,15 +74,15 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
74
74
|
markFetching: (fetching?: boolean) => void;
|
|
75
75
|
markSaving: (saving?: boolean) => void;
|
|
76
76
|
markBusying: (busying?: boolean) => void;
|
|
77
|
-
fetchInitData: (api: import("..").Api, data?: object
|
|
78
|
-
fetchData: (api: import("..").Api, data?: object
|
|
79
|
-
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[]
|
|
80
|
-
updateMessage: (msg?: string
|
|
77
|
+
fetchInitData: (api: import("..").Api, data?: object, options?: import("..").fetchOptions) => Promise<any>;
|
|
78
|
+
fetchData: (api: import("..").Api, data?: object, options?: import("..").fetchOptions) => Promise<any>;
|
|
79
|
+
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[]) => void;
|
|
80
|
+
updateMessage: (msg?: string, error?: boolean) => void;
|
|
81
81
|
clearMessage: () => void;
|
|
82
82
|
setHasRemoteData: () => void;
|
|
83
|
-
saveRemote: (api: import("..").Api, data?: object
|
|
84
|
-
fetchSchema: (api: import("..").Api, data?: object
|
|
85
|
-
checkRemote: (api: import("..").Api, data?: object
|
|
83
|
+
saveRemote: (api: import("..").Api, data?: object, options?: import("..").fetchOptions) => Promise<any>;
|
|
84
|
+
fetchSchema: (api: import("..").Api, data?: object, options?: import("..").fetchOptions) => Promise<any>;
|
|
85
|
+
checkRemote: (api: import("..").Api, data?: object, options?: import("..").fetchOptions) => Promise<any>;
|
|
86
86
|
} & {
|
|
87
87
|
readonly formData: object;
|
|
88
88
|
readonly inDragging: boolean;
|
package/lib/store/modal.js
CHANGED
package/lib/store/node.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const StoreNode: import("mobx-state-tree").IModelType<{
|
|
|
10
10
|
readonly parentStore: any;
|
|
11
11
|
readonly __: any;
|
|
12
12
|
readonly hasChildren: boolean;
|
|
13
|
-
readonly children: any
|
|
13
|
+
readonly children: Array<any>;
|
|
14
14
|
} & {
|
|
15
15
|
onChildStoreDispose(child: any): void;
|
|
16
16
|
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
package/lib/store/node.js
CHANGED
|
@@ -32,11 +32,11 @@ export declare const PaginationStore: import("mobx-state-tree").IModelType<{
|
|
|
32
32
|
readonly parentStore: any;
|
|
33
33
|
readonly __: any;
|
|
34
34
|
readonly hasChildren: boolean;
|
|
35
|
-
readonly children: any
|
|
35
|
+
readonly children: Array<any>;
|
|
36
36
|
} & {
|
|
37
37
|
onChildStoreDispose(child: any): void;
|
|
38
|
-
syncProps(props: any, prevProps: any, list?: string
|
|
39
|
-
dispose: (callback?: (
|
|
38
|
+
syncProps(props: any, prevProps: any, list?: Array<string>): void;
|
|
39
|
+
dispose: (callback?: () => void) => void;
|
|
40
40
|
addChildId: (id: string) => void;
|
|
41
41
|
removeChildId: (id: string) => void;
|
|
42
42
|
} & {
|
|
@@ -45,16 +45,16 @@ export declare const PaginationStore: import("mobx-state-tree").IModelType<{
|
|
|
45
45
|
readonly pristineDiff: any;
|
|
46
46
|
} & {
|
|
47
47
|
setTopStore(value: any): void;
|
|
48
|
-
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason
|
|
48
|
+
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason): void;
|
|
49
49
|
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
50
50
|
unDoTemporaryUpdateGlobalVars(): void;
|
|
51
51
|
reset(): void;
|
|
52
|
-
updateData(data?: object, tag?: object
|
|
53
|
-
changeValue(name: string, value: any, changePristine?: boolean
|
|
54
|
-
setCurrentAction(action: any, resolveDefinitions?: (
|
|
55
|
-
openDialog(ctx: any, additonal?: object
|
|
52
|
+
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: import("..").DataChangeReason): void;
|
|
53
|
+
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (data: Object) => void, changeReason?: import("..").DataChangeReason): void;
|
|
54
|
+
setCurrentAction(action: any, resolveDefinitions?: (schema: any) => any): void;
|
|
55
|
+
openDialog(ctx: any, additonal?: object, callback?: (confirmed: boolean, values: any) => void, scoped?: import("..").IScopedContext): void;
|
|
56
56
|
closeDialog(confirmed?: any, data?: any): void;
|
|
57
|
-
openDrawer(ctx: any, additonal?: object
|
|
57
|
+
openDrawer(ctx: any, additonal?: object, callback?: (confirmed: boolean, ret: any) => void, scoped?: import("..").IScopedContext): void;
|
|
58
58
|
closeDrawer(confirmed?: any, data?: any): void;
|
|
59
59
|
getDialogScoped(): import("..").IScopedContext | null;
|
|
60
60
|
getDrawerScoped(): import("..").IScopedContext | null;
|
package/lib/store/pagination.js
CHANGED