amis-core 6.14.0-beta.8 → 7.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/Root.d.ts +3 -2
- package/esm/Root.js +3 -2
- package/esm/RootRenderer.d.ts +18 -0
- package/esm/RootRenderer.js +8 -5
- package/esm/SchemaRenderer.js +7 -3
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/TaggerWrapper.d.ts +14 -0
- package/esm/TaggerWrapper.js +57 -0
- 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 +2 -2
- 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 +3 -3
- package/esm/actions/DialogAction.d.ts +6 -6
- package/esm/actions/DialogAction.js +13 -13
- package/esm/actions/DrawerAction.d.ts +3 -3
- package/esm/actions/DrawerAction.js +11 -11
- package/esm/actions/EmailAction.js +2 -2
- package/esm/actions/EventAction.js +7 -7
- 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 +2 -2
- 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 +6 -13
- package/esm/components/PopOver.d.ts +0 -1
- package/esm/components/PopOver.js +6 -6
- package/esm/env.d.ts +24 -22
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.d.ts +3 -1
- package/esm/factory.js +10 -7
- 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 +15 -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 +35 -29
- package/esm/renderers/Item.d.ts +52 -206
- package/esm/renderers/Item.js +20 -16
- 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 +1317 -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 +9 -4
- 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 +3 -3
- 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 +6 -5
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.js +4 -5
- package/esm/utils/errors.js +1 -1
- package/esm/utils/escapeHtml.js +3 -4
- package/esm/utils/filter-schema.js +1 -1
- package/esm/utils/filter.js +1 -1
- package/esm/utils/findDomCompat.d.ts +16 -0
- package/esm/utils/findDomCompat.js +253 -0
- 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.d.ts +1 -0
- package/esm/utils/index.js +2 -2
- 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 +5 -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 +8 -5
- package/lib/SchemaRenderer.js +6 -2
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/TaggerWrapper.d.ts +14 -0
- package/lib/TaggerWrapper.js +66 -0
- 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 +6 -14
- package/lib/components/PopOver.d.ts +0 -1
- package/lib/components/PopOver.js +5 -5
- package/lib/env.d.ts +24 -22
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.d.ts +3 -1
- package/lib/factory.js +10 -7
- 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 +16 -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 +35 -29
- package/lib/renderers/Item.d.ts +52 -206
- package/lib/renderers/Item.js +19 -15
- 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 +1317 -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 +9 -4
- 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 +3 -3
- 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 +7 -6
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +4 -9
- package/lib/utils/errors.js +1 -1
- package/lib/utils/escapeHtml.js +3 -4
- package/lib/utils/filter-schema.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/findDomCompat.d.ts +16 -0
- package/lib/utils/findDomCompat.js +262 -0
- 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.d.ts +1 -0
- 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 +5 -1
- package/lib/utils/visitedCache.js +1 -1
- package/package.json +3 -3
package/lib/store/combo.js
CHANGED
package/lib/store/crud.d.ts
CHANGED
|
@@ -67,11 +67,11 @@ export declare const CRUDStore: 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
|
} & {
|
|
@@ -80,16 +80,16 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
80
80
|
readonly pristineDiff: any;
|
|
81
81
|
} & {
|
|
82
82
|
setTopStore(value: any): void;
|
|
83
|
-
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("../types").DataChangeReason
|
|
83
|
+
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("../types").DataChangeReason): void;
|
|
84
84
|
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
85
85
|
unDoTemporaryUpdateGlobalVars(): void;
|
|
86
86
|
reset(): void;
|
|
87
|
-
updateData(data?: object, tag?: object
|
|
88
|
-
changeValue(name: string, value: any, changePristine?: boolean
|
|
89
|
-
setCurrentAction(action: any, resolveDefinitions?: (
|
|
90
|
-
openDialog(ctx: any, additonal?: object
|
|
87
|
+
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: import("../types").DataChangeReason): void;
|
|
88
|
+
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: (data: Object) => void, changeReason?: import("../types").DataChangeReason): void;
|
|
89
|
+
setCurrentAction(action: any, resolveDefinitions?: (schema: any) => any): void;
|
|
90
|
+
openDialog(ctx: any, additonal?: object, callback?: (confirmed: boolean, values: any) => void, scoped?: import("..").IScopedContext): void;
|
|
91
91
|
closeDialog(confirmed?: any, data?: any): void;
|
|
92
|
-
openDrawer(ctx: any, additonal?: object
|
|
92
|
+
openDrawer(ctx: any, additonal?: object, callback?: (confirmed: boolean, ret: any) => void, scoped?: import("..").IScopedContext): void;
|
|
93
93
|
closeDrawer(confirmed?: any, data?: any): void;
|
|
94
94
|
getDialogScoped(): import("..").IScopedContext | null;
|
|
95
95
|
getDrawerScoped(): import("..").IScopedContext | null;
|
|
@@ -99,15 +99,15 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
99
99
|
markFetching: (fetching?: boolean) => void;
|
|
100
100
|
markSaving: (saving?: boolean) => void;
|
|
101
101
|
markBusying: (busying?: boolean) => void;
|
|
102
|
-
fetchInitData: (api: Api, data?: object
|
|
103
|
-
fetchData: (api: Api, data?: object
|
|
104
|
-
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[]
|
|
105
|
-
updateMessage: (msg?: string
|
|
102
|
+
fetchInitData: (api: Api, data?: object, options?: fetchOptions) => Promise<any>;
|
|
103
|
+
fetchData: (api: Api, data?: object, options?: fetchOptions) => Promise<any>;
|
|
104
|
+
reInitData: (data: object | undefined, replace?: boolean, concatFields?: string | string[]) => void;
|
|
105
|
+
updateMessage: (msg?: string, error?: boolean) => void;
|
|
106
106
|
clearMessage: () => void;
|
|
107
107
|
setHasRemoteData: () => void;
|
|
108
|
-
saveRemote: (api: Api, data?: object
|
|
109
|
-
fetchSchema: (api: Api, data?: object
|
|
110
|
-
checkRemote: (api: Api, data?: object
|
|
108
|
+
saveRemote: (api: Api, data?: object, options?: fetchOptions) => Promise<any>;
|
|
109
|
+
fetchSchema: (api: Api, data?: object, options?: fetchOptions) => Promise<any>;
|
|
110
|
+
checkRemote: (api: Api, data?: object, options?: fetchOptions) => Promise<any>;
|
|
111
111
|
} & {
|
|
112
112
|
readonly lastPage: number;
|
|
113
113
|
readonly filterData: object;
|
|
@@ -143,7 +143,7 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
143
143
|
filterOnAllColumns?: boolean;
|
|
144
144
|
isTable2?: Boolean;
|
|
145
145
|
minLoadingTime?: number;
|
|
146
|
-
dataAppendTo?:
|
|
146
|
+
dataAppendTo?: "top" | "bottom";
|
|
147
147
|
totalField?: string;
|
|
148
148
|
}) => Promise<any>;
|
|
149
149
|
changePage: (page: number | string, perPage?: number | string) => void;
|
|
@@ -161,12 +161,12 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
161
161
|
totalField?: string;
|
|
162
162
|
}) => void;
|
|
163
163
|
exportAsCSV: (options?: {
|
|
164
|
-
loadDataOnce?: boolean
|
|
165
|
-
api?: Api
|
|
164
|
+
loadDataOnce?: boolean;
|
|
165
|
+
api?: Api;
|
|
166
166
|
data?: any;
|
|
167
|
-
filename?: string
|
|
168
|
-
pageField?: string
|
|
169
|
-
perPageField?: string
|
|
167
|
+
filename?: string;
|
|
168
|
+
pageField?: string;
|
|
169
|
+
perPageField?: string;
|
|
170
170
|
}) => Promise<void>;
|
|
171
171
|
updateColumns: (columns: Array<any>) => void;
|
|
172
172
|
updateTotal: (total: number) => void;
|
package/lib/store/crud.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core
|
|
2
|
+
* amis-core v7.0.0-next.0
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -460,11 +460,15 @@ var CRUDStore = service.ServiceStore.named('CRUDStore')
|
|
|
460
460
|
self.items.replace(items);
|
|
461
461
|
self.reInitData(data);
|
|
462
462
|
};
|
|
463
|
-
var exportAsCSV = function (
|
|
464
|
-
|
|
465
|
-
|
|
463
|
+
var exportAsCSV = function () {
|
|
464
|
+
var args_1 = [];
|
|
465
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
466
|
+
args_1[_i] = arguments[_i];
|
|
467
|
+
}
|
|
468
|
+
return tslib.__awaiter(void 0, tslib.__spreadArray([], tslib.__read(args_1), false), void 0, function (options) {
|
|
466
469
|
var items, filename, pageField, perPageField, env, ctx, res;
|
|
467
470
|
var _a;
|
|
471
|
+
if (options === void 0) { options = {}; }
|
|
468
472
|
return tslib.__generator(this, function (_b) {
|
|
469
473
|
switch (_b.label) {
|
|
470
474
|
case 0:
|