amis-core 6.13.0-beta.1 → 6.13.0-beta.10
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.js +1 -1
- package/esm/RootRenderer.js +15 -7
- package/esm/SchemaRenderer.d.ts +3 -0
- package/esm/SchemaRenderer.js +63 -10
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +8 -4
- package/esm/actions/Action.js +1 -1
- package/esm/actions/AjaxAction.js +1 -1
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.js +1 -1
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/DialogAction.js +1 -1
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/EventAction.js +1 -1
- package/esm/actions/LinkAction.js +1 -1
- package/esm/actions/LoopAction.js +1 -1
- package/esm/actions/PageAction.js +1 -1
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/PrintAction.js +1 -1
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/WaitAction.js +1 -1
- 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.js +1 -1
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.js +1 -1
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +1 -1
- package/esm/globalVar.js +15 -2
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/index.js +5 -5
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +3 -5
- package/esm/renderers/Item.js +2 -17
- package/esm/renderers/Options.js +1 -1
- 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.js +10 -4
- package/esm/store/app.d.ts +4 -0
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +12 -0
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.d.ts +5 -0
- package/esm/store/crud.js +5 -1
- package/esm/store/form.d.ts +4 -1
- package/esm/store/form.js +3 -2
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.d.ts +4 -0
- package/esm/store/iRenderer.js +27 -4
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +4 -0
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.d.ts +4 -0
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.d.ts +4 -0
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.d.ts +14 -2
- package/esm/store/root.js +181 -49
- package/esm/store/service.d.ts +4 -0
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +53 -92
- package/esm/store/table.js +42 -20
- package/esm/store/table2.d.ts +5 -0
- package/esm/store/table2.js +17 -10
- package/esm/theme.js +1 -1
- 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.js +1 -1
- package/esm/utils/api.js +8 -3
- 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 +1 -1
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.js +6 -3
- package/esm/utils/errors.js +2 -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 +1 -1
- 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.js +1 -1
- package/esm/utils/helper.js +1 -1
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.js +1 -1
- package/esm/utils/isPureVariable.js +2 -2
- 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 +6 -2
- 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.js +1 -1
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
- 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.d.ts +13 -0
- package/esm/utils/style.js +43 -3
- package/esm/utils/toNumber.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.js +1 -1
- package/esm/utils/tpl-lodash.js +1 -1
- package/esm/utils/tpl.js +6 -2
- 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.js +1 -1
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +15 -7
- package/lib/SchemaRenderer.d.ts +3 -0
- package/lib/SchemaRenderer.js +65 -8
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +8 -4
- package/lib/actions/Action.js +1 -1
- package/lib/actions/AjaxAction.js +1 -1
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.js +1 -1
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/DialogAction.js +1 -1
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/EventAction.js +1 -1
- package/lib/actions/LinkAction.js +1 -1
- package/lib/actions/LoopAction.js +1 -1
- package/lib/actions/PageAction.js +1 -1
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/PrintAction.js +1 -1
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/WaitAction.js +1 -1
- 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.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.js +1 -1
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +1 -1
- package/lib/globalVar.js +19 -2
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/index.js +6 -4
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +3 -5
- package/lib/renderers/Item.d.ts +1 -1
- package/lib/renderers/Item.js +2 -17
- package/lib/renderers/Options.js +1 -1
- 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.js +10 -4
- package/lib/store/app.d.ts +4 -0
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +36 -24
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.d.ts +5 -0
- package/lib/store/crud.js +5 -1
- package/lib/store/form.d.ts +14 -11
- package/lib/store/form.js +3 -2
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.d.ts +4 -0
- package/lib/store/iRenderer.js +30 -3
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +4 -0
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.d.ts +4 -0
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.d.ts +4 -0
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.d.ts +14 -2
- package/lib/store/root.js +178 -46
- package/lib/store/service.d.ts +4 -0
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +73 -113
- package/lib/store/table.js +41 -19
- package/lib/store/table2.d.ts +5 -0
- package/lib/store/table2.js +17 -10
- package/lib/theme.js +1 -1
- 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.js +1 -1
- package/lib/utils/api.js +8 -3
- 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 +1 -1
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +6 -3
- package/lib/utils/errors.js +2 -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 +1 -1
- 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.js +1 -1
- package/lib/utils/helper.js +1 -1
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/isPureVariable.js +2 -2
- 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 +6 -2
- 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.js +1 -1
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
- 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.d.ts +13 -0
- package/lib/utils/style.js +44 -2
- package/lib/utils/toNumber.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.js +1 -1
- package/lib/utils/tpl-lodash.js +1 -1
- package/lib/utils/tpl.js +6 -2
- 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 +2 -2
package/lib/store/combo.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
172
172
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
173
173
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
174
174
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
175
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
175
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
176
176
|
changeEmitedValue: (value: any) => void;
|
|
177
177
|
addSubFormItem: (item: {
|
|
178
178
|
id: string;
|
|
@@ -707,7 +707,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
707
707
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
708
708
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
709
709
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
710
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
710
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
711
711
|
changeEmitedValue: (value: any) => void;
|
|
712
712
|
addSubFormItem: (item: {
|
|
713
713
|
id: string;
|
|
@@ -1100,8 +1100,10 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1100
1100
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1101
1101
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1102
1102
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1103
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
1103
1104
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1104
1105
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1106
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
1105
1107
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1106
1108
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1107
1109
|
} & {
|
|
@@ -1276,7 +1278,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1276
1278
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1277
1279
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1278
1280
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1279
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
1281
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1280
1282
|
changeEmitedValue: (value: any) => void;
|
|
1281
1283
|
addSubFormItem: (item: {
|
|
1282
1284
|
id: string;
|
|
@@ -1811,7 +1813,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1811
1813
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1812
1814
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1813
1815
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1814
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
1816
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1815
1817
|
changeEmitedValue: (value: any) => void;
|
|
1816
1818
|
addSubFormItem: (item: {
|
|
1817
1819
|
id: string;
|
|
@@ -2212,6 +2214,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2212
2214
|
} & {
|
|
2213
2215
|
setTopStore(value: any): void;
|
|
2214
2216
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
2217
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
2218
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
2215
2219
|
reset(): void;
|
|
2216
2220
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
2217
2221
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
@@ -2238,8 +2242,10 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2238
2242
|
pristineRaw: any;
|
|
2239
2243
|
upStreamData: any;
|
|
2240
2244
|
action: any;
|
|
2245
|
+
dialogSchema: any;
|
|
2241
2246
|
dialogOpen: boolean;
|
|
2242
2247
|
dialogData: any;
|
|
2248
|
+
drawerSchema: any;
|
|
2243
2249
|
drawerOpen: boolean;
|
|
2244
2250
|
drawerData: any;
|
|
2245
2251
|
msg: string;
|
|
@@ -2277,6 +2283,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2277
2283
|
} & {
|
|
2278
2284
|
setTopStore(value: any): void;
|
|
2279
2285
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
2286
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
2287
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
2280
2288
|
reset(): void;
|
|
2281
2289
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
2282
2290
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
@@ -2470,7 +2478,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2470
2478
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2471
2479
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2472
2480
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2473
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
2481
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2474
2482
|
changeEmitedValue: (value: any) => void;
|
|
2475
2483
|
addSubFormItem: (item: {
|
|
2476
2484
|
id: string;
|
|
@@ -3005,7 +3013,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3005
3013
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3006
3014
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3007
3015
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3008
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
3016
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3009
3017
|
changeEmitedValue: (value: any) => void;
|
|
3010
3018
|
addSubFormItem: (item: {
|
|
3011
3019
|
id: string;
|
|
@@ -3546,7 +3554,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3546
3554
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3547
3555
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3548
3556
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3549
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
3557
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3550
3558
|
changeEmitedValue: (value: any) => void;
|
|
3551
3559
|
addSubFormItem: (item: {
|
|
3552
3560
|
id: string;
|
|
@@ -4081,7 +4089,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4081
4089
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4082
4090
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4083
4091
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4084
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
4092
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4085
4093
|
changeEmitedValue: (value: any) => void;
|
|
4086
4094
|
addSubFormItem: (item: {
|
|
4087
4095
|
id: string;
|
|
@@ -4625,7 +4633,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4625
4633
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4626
4634
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4627
4635
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4628
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
4636
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4629
4637
|
changeEmitedValue: (value: any) => void;
|
|
4630
4638
|
addSubFormItem: (item: {
|
|
4631
4639
|
id: string;
|
|
@@ -5160,7 +5168,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5160
5168
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5161
5169
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5162
5170
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5163
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
5171
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5164
5172
|
changeEmitedValue: (value: any) => void;
|
|
5165
5173
|
addSubFormItem: (item: {
|
|
5166
5174
|
id: string;
|
|
@@ -5699,7 +5707,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5699
5707
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5700
5708
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5701
5709
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5702
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
5710
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5703
5711
|
changeEmitedValue: (value: any) => void;
|
|
5704
5712
|
addSubFormItem: (item: {
|
|
5705
5713
|
id: string;
|
|
@@ -6234,7 +6242,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6234
6242
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6235
6243
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6236
6244
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
6237
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
6245
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6238
6246
|
changeEmitedValue: (value: any) => void;
|
|
6239
6247
|
addSubFormItem: (item: {
|
|
6240
6248
|
id: string;
|
|
@@ -6773,7 +6781,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6773
6781
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6774
6782
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6775
6783
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
6776
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
6784
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6777
6785
|
changeEmitedValue: (value: any) => void;
|
|
6778
6786
|
addSubFormItem: (item: {
|
|
6779
6787
|
id: string;
|
|
@@ -7308,7 +7316,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7308
7316
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7309
7317
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7310
7318
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
7311
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
7319
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7312
7320
|
changeEmitedValue: (value: any) => void;
|
|
7313
7321
|
addSubFormItem: (item: {
|
|
7314
7322
|
id: string;
|
|
@@ -7735,8 +7743,10 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7735
7743
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7736
7744
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7737
7745
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7746
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
7738
7747
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
7739
7748
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7749
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
7740
7750
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
7741
7751
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7742
7752
|
} & {
|
|
@@ -7776,6 +7786,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7776
7786
|
} & {
|
|
7777
7787
|
setTopStore(value: any): void;
|
|
7778
7788
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
7789
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
7790
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
7779
7791
|
reset(): void;
|
|
7780
7792
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
7781
7793
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("..").DataChangeReason | undefined): void;
|
|
@@ -7969,7 +7981,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7969
7981
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7970
7982
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7971
7983
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
7972
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
7984
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7973
7985
|
changeEmitedValue: (value: any) => void;
|
|
7974
7986
|
addSubFormItem: (item: {
|
|
7975
7987
|
id: string;
|
|
@@ -8504,7 +8516,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
8504
8516
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
8505
8517
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
8506
8518
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
8507
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
8519
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
8508
8520
|
changeEmitedValue: (value: any) => void;
|
|
8509
8521
|
addSubFormItem: (item: {
|
|
8510
8522
|
id: string;
|
|
@@ -9045,7 +9057,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9045
9057
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9046
9058
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9047
9059
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
9048
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
9060
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9049
9061
|
changeEmitedValue: (value: any) => void;
|
|
9050
9062
|
addSubFormItem: (item: {
|
|
9051
9063
|
id: string;
|
|
@@ -9580,7 +9592,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9580
9592
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9581
9593
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9582
9594
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
9583
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
9595
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9584
9596
|
changeEmitedValue: (value: any) => void;
|
|
9585
9597
|
addSubFormItem: (item: {
|
|
9586
9598
|
id: string;
|
|
@@ -10124,7 +10136,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10124
10136
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10125
10137
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10126
10138
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
10127
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
10139
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
10128
10140
|
changeEmitedValue: (value: any) => void;
|
|
10129
10141
|
addSubFormItem: (item: {
|
|
10130
10142
|
id: string;
|
|
@@ -10659,7 +10671,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10659
10671
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10660
10672
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10661
10673
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
10662
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
10674
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
10663
10675
|
changeEmitedValue: (value: any) => void;
|
|
10664
10676
|
addSubFormItem: (item: {
|
|
10665
10677
|
id: string;
|
|
@@ -11198,7 +11210,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11198
11210
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11199
11211
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11200
11212
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
11201
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
11213
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
11202
11214
|
changeEmitedValue: (value: any) => void;
|
|
11203
11215
|
addSubFormItem: (item: {
|
|
11204
11216
|
id: string;
|
|
@@ -11733,7 +11745,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11733
11745
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11734
11746
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11735
11747
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
11736
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
11748
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
11737
11749
|
changeEmitedValue: (value: any) => void;
|
|
11738
11750
|
addSubFormItem: (item: {
|
|
11739
11751
|
id: string;
|
|
@@ -12272,7 +12284,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
12272
12284
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
12273
12285
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
12274
12286
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
12275
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
12287
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
12276
12288
|
changeEmitedValue: (value: any) => void;
|
|
12277
12289
|
addSubFormItem: (item: {
|
|
12278
12290
|
id: string;
|
|
@@ -12807,7 +12819,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
12807
12819
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
12808
12820
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
12809
12821
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
12810
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
12822
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
12811
12823
|
changeEmitedValue: (value: any) => void;
|
|
12812
12824
|
addSubFormItem: (item: {
|
|
12813
12825
|
id: string;
|
package/lib/store/combo.js
CHANGED
package/lib/store/crud.d.ts
CHANGED
|
@@ -30,8 +30,10 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
30
30
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
31
31
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
32
32
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
33
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
33
34
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
34
35
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
36
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
35
37
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
38
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
37
39
|
} & {
|
|
@@ -79,6 +81,8 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
79
81
|
} & {
|
|
80
82
|
setTopStore(value: any): void;
|
|
81
83
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: import("../types").DataChangeReason | undefined): void;
|
|
84
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
85
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
82
86
|
reset(): void;
|
|
83
87
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: import("../types").DataChangeReason | undefined): void;
|
|
84
88
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: import("../types").DataChangeReason | undefined): void;
|
|
@@ -122,6 +126,7 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
122
126
|
unSelectedItems: any[];
|
|
123
127
|
selectedIndexes: string[];
|
|
124
128
|
};
|
|
129
|
+
readonly offset: number;
|
|
125
130
|
} & {
|
|
126
131
|
getData: (superData: any) => any;
|
|
127
132
|
updateSelectData: (selected: Array<any>, unSelected: Array<any>) => void;
|
package/lib/store/crud.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -34,6 +34,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
34
34
|
function ServerError(msg, response) {
|
|
35
35
|
var _this = _super.call(this, msg) || this;
|
|
36
36
|
_this.type = 'ServerError';
|
|
37
|
+
Object.setPrototypeOf(_this, ServerError.prototype);
|
|
37
38
|
_this.response = response;
|
|
38
39
|
return _this;
|
|
39
40
|
}
|
|
@@ -98,6 +99,9 @@ var CRUDStore = service.ServiceStore.named('CRUDStore')
|
|
|
98
99
|
})
|
|
99
100
|
};
|
|
100
101
|
return context;
|
|
102
|
+
},
|
|
103
|
+
get offset() {
|
|
104
|
+
return (self.page - 1) * self.perPage;
|
|
101
105
|
}
|
|
102
106
|
}); })
|
|
103
107
|
.actions(function (self) {
|
package/lib/store/form.d.ts
CHANGED
|
@@ -18,8 +18,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
18
18
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
19
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
20
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
21
22
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
22
23
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
23
25
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
24
26
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
25
27
|
} & {
|
|
@@ -58,8 +60,9 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
58
60
|
readonly pristineDiff: any;
|
|
59
61
|
} & {
|
|
60
62
|
setTopStore(value: any): void;
|
|
61
|
-
/** 获取InputGroup的子元素 */
|
|
62
63
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: DataChangeReason | undefined): void;
|
|
64
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
65
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
63
66
|
reset(): void;
|
|
64
67
|
updateData(data?: object, tag?: object | undefined, replace?: boolean | undefined, concatFields?: string | string[] | undefined, changeReason?: DataChangeReason | undefined): void;
|
|
65
68
|
changeValue(name: string, value: any, changePristine?: boolean | undefined, force?: boolean | undefined, otherModifier?: ((data: Object) => void) | undefined, changeReason?: DataChangeReason | undefined): void;
|
|
@@ -253,7 +256,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
253
256
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
254
257
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
255
258
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
256
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
259
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
257
260
|
changeEmitedValue: (value: any) => void;
|
|
258
261
|
addSubFormItem: (item: {
|
|
259
262
|
id: string;
|
|
@@ -788,7 +791,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
788
791
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
789
792
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
790
793
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
791
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
794
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
792
795
|
changeEmitedValue: (value: any) => void;
|
|
793
796
|
addSubFormItem: (item: {
|
|
794
797
|
id: string;
|
|
@@ -1330,7 +1333,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1330
1333
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1331
1334
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1332
1335
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1333
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
1336
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1334
1337
|
changeEmitedValue: (value: any) => void;
|
|
1335
1338
|
addSubFormItem: (item: {
|
|
1336
1339
|
id: string;
|
|
@@ -1865,7 +1868,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1865
1868
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1866
1869
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1867
1870
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1868
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
1871
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1869
1872
|
changeEmitedValue: (value: any) => void;
|
|
1870
1873
|
addSubFormItem: (item: {
|
|
1871
1874
|
id: string;
|
|
@@ -2409,7 +2412,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2409
2412
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2410
2413
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2411
2414
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2412
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
2415
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2413
2416
|
changeEmitedValue: (value: any) => void;
|
|
2414
2417
|
addSubFormItem: (item: {
|
|
2415
2418
|
id: string;
|
|
@@ -2944,7 +2947,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2944
2947
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2945
2948
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2946
2949
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2947
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
2950
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2948
2951
|
changeEmitedValue: (value: any) => void;
|
|
2949
2952
|
addSubFormItem: (item: {
|
|
2950
2953
|
id: string;
|
|
@@ -3483,7 +3486,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3483
3486
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3484
3487
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3485
3488
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3486
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
3489
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3487
3490
|
changeEmitedValue: (value: any) => void;
|
|
3488
3491
|
addSubFormItem: (item: {
|
|
3489
3492
|
id: string;
|
|
@@ -4018,7 +4021,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4018
4021
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4019
4022
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4020
4023
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4021
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
4024
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4022
4025
|
changeEmitedValue: (value: any) => void;
|
|
4023
4026
|
addSubFormItem: (item: {
|
|
4024
4027
|
id: string;
|
|
@@ -4557,7 +4560,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4557
4560
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4558
4561
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4559
4562
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4560
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
4563
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4561
4564
|
changeEmitedValue: (value: any) => void;
|
|
4562
4565
|
addSubFormItem: (item: {
|
|
4563
4566
|
id: string;
|
|
@@ -5092,7 +5095,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
5092
5095
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5093
5096
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5094
5097
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5095
|
-
changeTmpValue: (value: any, changeReason?: "
|
|
5098
|
+
changeTmpValue: (value: any, changeReason?: "defaultValue" | "formInited" | "input" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5096
5099
|
changeEmitedValue: (value: any) => void;
|
|
5097
5100
|
addSubFormItem: (item: {
|
|
5098
5101
|
id: string;
|
package/lib/store/form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -660,7 +660,8 @@ var FormStore = service.ServiceStore.named('FormStore')
|
|
|
660
660
|
function reset(cb, resetData) {
|
|
661
661
|
if (resetData === void 0) { resetData = true; }
|
|
662
662
|
if (resetData) {
|
|
663
|
-
|
|
663
|
+
// 父级的数据可能已经被修改,__super不应该被修改
|
|
664
|
+
self.data = object.createObject(self.data.__super, self.pristine);
|
|
664
665
|
}
|
|
665
666
|
// 值可能变了,重新验证一次。
|
|
666
667
|
self.validated = false;
|
package/lib/store/formItem.js
CHANGED
package/lib/store/iRenderer.d.ts
CHANGED
|
@@ -17,8 +17,10 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
17
17
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
18
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
19
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
21
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
22
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
23
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
22
24
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
23
25
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
26
|
}, {
|
|
@@ -39,6 +41,8 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
39
41
|
} & {
|
|
40
42
|
setTopStore(value: any): void;
|
|
41
43
|
initData(data?: object, skipSetPristine?: boolean, changeReason?: DataChangeReason): void;
|
|
44
|
+
temporaryUpdateGlobalVars(globalVar: any): void;
|
|
45
|
+
unDoTemporaryUpdateGlobalVars(): void;
|
|
42
46
|
reset(): void;
|
|
43
47
|
updateData(data?: object, tag?: object, replace?: boolean, concatFields?: string | string[], changeReason?: DataChangeReason): void;
|
|
44
48
|
changeValue(name: string, value: any, changePristine?: boolean, force?: boolean, otherModifier?: ((data: Object) => void) | undefined, changeReason?: DataChangeReason): void;
|
package/lib/store/iRenderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -58,6 +58,11 @@ require('../utils/validations.js');
|
|
|
58
58
|
require('../utils/resolveCondition.js');
|
|
59
59
|
require('mobx');
|
|
60
60
|
require('../utils/Animation.js');
|
|
61
|
+
var findLastIndex = require('lodash/findLastIndex');
|
|
62
|
+
|
|
63
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
64
|
+
|
|
65
|
+
var findLastIndex__default = /*#__PURE__*/_interopDefaultLegacy(findLastIndex);
|
|
61
66
|
|
|
62
67
|
var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
63
68
|
.props({
|
|
@@ -69,8 +74,10 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
69
74
|
pristineRaw: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
70
75
|
upStreamData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
71
76
|
action: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
77
|
+
dialogSchema: mobxStateTree.types.frozen(),
|
|
72
78
|
dialogOpen: false,
|
|
73
79
|
dialogData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
80
|
+
drawerSchema: mobxStateTree.types.frozen(),
|
|
74
81
|
drawerOpen: false,
|
|
75
82
|
drawerData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined)
|
|
76
83
|
})
|
|
@@ -124,6 +131,22 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
124
131
|
self.data = data;
|
|
125
132
|
self.upStreamData = data;
|
|
126
133
|
},
|
|
134
|
+
// 临时更新全局变量
|
|
135
|
+
temporaryUpdateGlobalVars: function (globalVar) {
|
|
136
|
+
var chain = object.extractObjectChain(self.data).filter(function (item) { return !item.hasOwnProperty('__isTempGlobalLayer'); });
|
|
137
|
+
var idx = findLastIndex__default["default"](chain, function (item) {
|
|
138
|
+
return item.hasOwnProperty('global') || item.hasOwnProperty('globalState');
|
|
139
|
+
});
|
|
140
|
+
if (idx !== -1) {
|
|
141
|
+
chain.splice(idx + 1, 0, tslib.__assign(tslib.__assign({}, globalVar), { __isTempGlobalLayer: true }));
|
|
142
|
+
}
|
|
143
|
+
self.data = object.createObjectFromChain(chain);
|
|
144
|
+
},
|
|
145
|
+
// 撤销临时更新全局变量
|
|
146
|
+
unDoTemporaryUpdateGlobalVars: function () {
|
|
147
|
+
var chain = object.extractObjectChain(self.data).filter(function (item) { return !item.hasOwnProperty('__isTempGlobalLayer'); });
|
|
148
|
+
self.data = object.createObjectFromChain(chain);
|
|
149
|
+
},
|
|
127
150
|
reset: function () {
|
|
128
151
|
self.data = self.pristine;
|
|
129
152
|
},
|
|
@@ -230,8 +253,6 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
230
253
|
}
|
|
231
254
|
});
|
|
232
255
|
self.action = action;
|
|
233
|
-
self.dialogData = false;
|
|
234
|
-
self.drawerOpen = false;
|
|
235
256
|
},
|
|
236
257
|
openDialog: function (ctx, additonal, callback, scoped) {
|
|
237
258
|
var _a, _b;
|
|
@@ -254,12 +275,15 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
254
275
|
else {
|
|
255
276
|
self.dialogData = data;
|
|
256
277
|
}
|
|
278
|
+
self.dialogSchema = self.action.dialog;
|
|
257
279
|
self.dialogOpen = true;
|
|
258
280
|
callback && dialogCallbacks.set(self.dialogData, callback);
|
|
259
281
|
dialogScoped = scoped || null;
|
|
260
282
|
},
|
|
261
283
|
closeDialog: function (confirmed, data) {
|
|
262
284
|
var callback = dialogCallbacks.get(self.dialogData);
|
|
285
|
+
// 不要过早的清空,否则内部组件提前销毁,会出现 store 异常读取问题
|
|
286
|
+
// self.dialogSchema = null;
|
|
263
287
|
self.dialogOpen = false;
|
|
264
288
|
dialogScoped = null;
|
|
265
289
|
if (callback) {
|
|
@@ -288,6 +312,7 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
288
312
|
else {
|
|
289
313
|
self.drawerData = data;
|
|
290
314
|
}
|
|
315
|
+
self.drawerSchema = self.action.drawer;
|
|
291
316
|
self.drawerOpen = true;
|
|
292
317
|
if (callback) {
|
|
293
318
|
dialogCallbacks.set(self.drawerData, callback);
|
|
@@ -296,6 +321,8 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
296
321
|
},
|
|
297
322
|
closeDrawer: function (confirmed, data) {
|
|
298
323
|
var callback = dialogCallbacks.get(self.drawerData);
|
|
324
|
+
// 不要过早的清空,否则内部组件提前销毁,会出现 store 异常读取问题
|
|
325
|
+
// self.drawerSchema = null;
|
|
299
326
|
self.drawerOpen = false;
|
|
300
327
|
drawerScoped = null;
|
|
301
328
|
if (callback) {
|
package/lib/store/index.js
CHANGED