amis-core 6.1.0 → 6.2.1
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 +1 -1
- package/esm/SchemaRenderer.js +1 -1
- package/esm/Scoped.js +4 -2
- package/esm/StatusScoped.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +2 -2
- 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/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.d.ts +19 -0
- package/esm/actions/PrintAction.js +49 -0
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/index.d.ts +1 -0
- 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/index.d.ts +2 -1
- package/esm/index.js +5 -3
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +4 -4
- package/esm/renderers/Item.js +1 -1
- 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 +5 -5
- package/esm/store/app.js +1 -1
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.js +1 -1
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.js +1 -1
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +11 -0
- package/esm/store/list.js +8 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.js +1 -1
- package/esm/store/service.js +5 -2
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +28 -27
- package/esm/store/table.js +8 -6
- package/esm/store/table2.js +1 -1
- 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/api.js +3 -2
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +3 -2
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/browser.d.ts +1 -0
- package/esm/utils/browser.js +7 -2
- 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 +7 -2
- 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 +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/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/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.d.ts +6 -0
- package/esm/utils/printElement.js +71 -0
- 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.js +1 -1
- 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 +1 -1
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validateId.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +1 -1
- package/lib/SchemaRenderer.js +1 -1
- package/lib/Scoped.js +4 -2
- package/lib/StatusScoped.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +2 -2
- 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/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.d.ts +19 -0
- package/lib/actions/PrintAction.js +53 -0
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/index.d.ts +1 -0
- 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/index.d.ts +2 -1
- package/lib/index.js +5 -2
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +3 -3
- package/lib/renderers/Item.js +1 -1
- 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 +5 -5
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +25 -24
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.js +1 -1
- package/lib/store/form.d.ts +11 -10
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.js +1 -1
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +11 -0
- package/lib/store/list.js +8 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.js +1 -1
- package/lib/store/service.js +5 -2
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +49 -47
- package/lib/store/table.js +8 -6
- package/lib/store/table2.js +1 -1
- 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/api.js +3 -2
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +3 -2
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/browser.d.ts +1 -0
- package/lib/utils/browser.js +7 -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 +7 -2
- 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 +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/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/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.d.ts +6 -0
- package/lib/utils/printElement.js +75 -0
- 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.js +1 -1
- 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 +1 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validateId.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/package.json +3 -8
package/lib/store/combo.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { SnapshotIn, Instance } from 'mobx-state-tree';
|
|
2
3
|
import type { IFormStore, IFormItemStore } from './form';
|
|
3
4
|
export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
@@ -165,7 +166,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
165
166
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
166
167
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
167
168
|
closeDialog: (result?: any) => void;
|
|
168
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
169
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
169
170
|
changeEmitedValue: (value: any) => void;
|
|
170
171
|
addSubFormItem: (item: {
|
|
171
172
|
id: string;
|
|
@@ -675,7 +676,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
675
676
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
676
677
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
677
678
|
closeDialog: (result?: any) => void;
|
|
678
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
679
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
679
680
|
changeEmitedValue: (value: any) => void;
|
|
680
681
|
addSubFormItem: (item: {
|
|
681
682
|
id: string;
|
|
@@ -1217,7 +1218,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1217
1218
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1218
1219
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1219
1220
|
closeDialog: (result?: any) => void;
|
|
1220
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1221
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1221
1222
|
changeEmitedValue: (value: any) => void;
|
|
1222
1223
|
addSubFormItem: (item: {
|
|
1223
1224
|
id: string;
|
|
@@ -1727,7 +1728,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1727
1728
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1728
1729
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1729
1730
|
closeDialog: (result?: any) => void;
|
|
1730
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1731
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1731
1732
|
changeEmitedValue: (value: any) => void;
|
|
1732
1733
|
addSubFormItem: (item: {
|
|
1733
1734
|
id: string;
|
|
@@ -2358,7 +2359,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2358
2359
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2359
2360
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2360
2361
|
closeDialog: (result?: any) => void;
|
|
2361
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2362
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2362
2363
|
changeEmitedValue: (value: any) => void;
|
|
2363
2364
|
addSubFormItem: (item: {
|
|
2364
2365
|
id: string;
|
|
@@ -2868,7 +2869,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2868
2869
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2869
2870
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2870
2871
|
closeDialog: (result?: any) => void;
|
|
2871
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2872
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2872
2873
|
changeEmitedValue: (value: any) => void;
|
|
2873
2874
|
addSubFormItem: (item: {
|
|
2874
2875
|
id: string;
|
|
@@ -3382,7 +3383,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3382
3383
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3383
3384
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3384
3385
|
closeDialog: (result?: any) => void;
|
|
3385
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3386
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3386
3387
|
changeEmitedValue: (value: any) => void;
|
|
3387
3388
|
addSubFormItem: (item: {
|
|
3388
3389
|
id: string;
|
|
@@ -3892,7 +3893,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3892
3893
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3893
3894
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3894
3895
|
closeDialog: (result?: any) => void;
|
|
3895
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3896
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3896
3897
|
changeEmitedValue: (value: any) => void;
|
|
3897
3898
|
addSubFormItem: (item: {
|
|
3898
3899
|
id: string;
|
|
@@ -4411,7 +4412,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4411
4412
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4412
4413
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4413
4414
|
closeDialog: (result?: any) => void;
|
|
4414
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4415
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4415
4416
|
changeEmitedValue: (value: any) => void;
|
|
4416
4417
|
addSubFormItem: (item: {
|
|
4417
4418
|
id: string;
|
|
@@ -4921,7 +4922,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4921
4922
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4922
4923
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4923
4924
|
closeDialog: (result?: any) => void;
|
|
4924
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4925
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4925
4926
|
changeEmitedValue: (value: any) => void;
|
|
4926
4927
|
addSubFormItem: (item: {
|
|
4927
4928
|
id: string;
|
|
@@ -5435,7 +5436,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5435
5436
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
5436
5437
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
5437
5438
|
closeDialog: (result?: any) => void;
|
|
5438
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5439
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
5439
5440
|
changeEmitedValue: (value: any) => void;
|
|
5440
5441
|
addSubFormItem: (item: {
|
|
5441
5442
|
id: string;
|
|
@@ -5945,7 +5946,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5945
5946
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
5946
5947
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
5947
5948
|
closeDialog: (result?: any) => void;
|
|
5948
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5949
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
5949
5950
|
changeEmitedValue: (value: any) => void;
|
|
5950
5951
|
addSubFormItem: (item: {
|
|
5951
5952
|
id: string;
|
|
@@ -6459,7 +6460,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6459
6460
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
6460
6461
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
6461
6462
|
closeDialog: (result?: any) => void;
|
|
6462
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6463
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
6463
6464
|
changeEmitedValue: (value: any) => void;
|
|
6464
6465
|
addSubFormItem: (item: {
|
|
6465
6466
|
id: string;
|
|
@@ -6969,7 +6970,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6969
6970
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
6970
6971
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
6971
6972
|
closeDialog: (result?: any) => void;
|
|
6972
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6973
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
6973
6974
|
changeEmitedValue: (value: any) => void;
|
|
6974
6975
|
addSubFormItem: (item: {
|
|
6975
6976
|
id: string;
|
|
@@ -7602,7 +7603,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7602
7603
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
7603
7604
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
7604
7605
|
closeDialog: (result?: any) => void;
|
|
7605
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7606
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
7606
7607
|
changeEmitedValue: (value: any) => void;
|
|
7607
7608
|
addSubFormItem: (item: {
|
|
7608
7609
|
id: string;
|
|
@@ -8112,7 +8113,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
8112
8113
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
8113
8114
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
8114
8115
|
closeDialog: (result?: any) => void;
|
|
8115
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8116
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
8116
8117
|
changeEmitedValue: (value: any) => void;
|
|
8117
8118
|
addSubFormItem: (item: {
|
|
8118
8119
|
id: string;
|
|
@@ -8626,7 +8627,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
8626
8627
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
8627
8628
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
8628
8629
|
closeDialog: (result?: any) => void;
|
|
8629
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8630
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
8630
8631
|
changeEmitedValue: (value: any) => void;
|
|
8631
8632
|
addSubFormItem: (item: {
|
|
8632
8633
|
id: string;
|
|
@@ -9136,7 +9137,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9136
9137
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
9137
9138
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
9138
9139
|
closeDialog: (result?: any) => void;
|
|
9139
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9140
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
9140
9141
|
changeEmitedValue: (value: any) => void;
|
|
9141
9142
|
addSubFormItem: (item: {
|
|
9142
9143
|
id: string;
|
|
@@ -9655,7 +9656,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9655
9656
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
9656
9657
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
9657
9658
|
closeDialog: (result?: any) => void;
|
|
9658
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9659
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
9659
9660
|
changeEmitedValue: (value: any) => void;
|
|
9660
9661
|
addSubFormItem: (item: {
|
|
9661
9662
|
id: string;
|
|
@@ -10165,7 +10166,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10165
10166
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
10166
10167
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
10167
10168
|
closeDialog: (result?: any) => void;
|
|
10168
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10169
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
10169
10170
|
changeEmitedValue: (value: any) => void;
|
|
10170
10171
|
addSubFormItem: (item: {
|
|
10171
10172
|
id: string;
|
|
@@ -10679,7 +10680,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10679
10680
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
10680
10681
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
10681
10682
|
closeDialog: (result?: any) => void;
|
|
10682
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10683
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
10683
10684
|
changeEmitedValue: (value: any) => void;
|
|
10684
10685
|
addSubFormItem: (item: {
|
|
10685
10686
|
id: string;
|
|
@@ -11189,7 +11190,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11189
11190
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
11190
11191
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
11191
11192
|
closeDialog: (result?: any) => void;
|
|
11192
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11193
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
11193
11194
|
changeEmitedValue: (value: any) => void;
|
|
11194
11195
|
addSubFormItem: (item: {
|
|
11195
11196
|
id: string;
|
|
@@ -11703,7 +11704,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11703
11704
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
11704
11705
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
11705
11706
|
closeDialog: (result?: any) => void;
|
|
11706
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11707
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
11707
11708
|
changeEmitedValue: (value: any) => void;
|
|
11708
11709
|
addSubFormItem: (item: {
|
|
11709
11710
|
id: string;
|
|
@@ -12213,7 +12214,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
12213
12214
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
12214
12215
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
12215
12216
|
closeDialog: (result?: any) => void;
|
|
12216
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
12217
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
12217
12218
|
changeEmitedValue: (value: any) => void;
|
|
12218
12219
|
addSubFormItem: (item: {
|
|
12219
12220
|
id: string;
|
package/lib/store/combo.js
CHANGED
package/lib/store/crud.js
CHANGED
package/lib/store/form.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { Instance } from 'mobx-state-tree';
|
|
2
3
|
import type { IFormItemStore } from './formItem';
|
|
3
4
|
import { Api, fetchOptions, Payload } from '../types';
|
|
@@ -243,7 +244,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
243
244
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
244
245
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
245
246
|
closeDialog: (result?: any) => void;
|
|
246
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
247
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
247
248
|
changeEmitedValue: (value: any) => void;
|
|
248
249
|
addSubFormItem: (item: {
|
|
249
250
|
id: string;
|
|
@@ -753,7 +754,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
753
754
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
754
755
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
755
756
|
closeDialog: (result?: any) => void;
|
|
756
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
757
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
757
758
|
changeEmitedValue: (value: any) => void;
|
|
758
759
|
addSubFormItem: (item: {
|
|
759
760
|
id: string;
|
|
@@ -1268,7 +1269,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1268
1269
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1269
1270
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1270
1271
|
closeDialog: (result?: any) => void;
|
|
1271
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1272
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1272
1273
|
changeEmitedValue: (value: any) => void;
|
|
1273
1274
|
addSubFormItem: (item: {
|
|
1274
1275
|
id: string;
|
|
@@ -1778,7 +1779,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1778
1779
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1779
1780
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1780
1781
|
closeDialog: (result?: any) => void;
|
|
1781
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1782
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1782
1783
|
changeEmitedValue: (value: any) => void;
|
|
1783
1784
|
addSubFormItem: (item: {
|
|
1784
1785
|
id: string;
|
|
@@ -2297,7 +2298,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2297
2298
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2298
2299
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2299
2300
|
closeDialog: (result?: any) => void;
|
|
2300
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2301
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2301
2302
|
changeEmitedValue: (value: any) => void;
|
|
2302
2303
|
addSubFormItem: (item: {
|
|
2303
2304
|
id: string;
|
|
@@ -2807,7 +2808,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2807
2808
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2808
2809
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2809
2810
|
closeDialog: (result?: any) => void;
|
|
2810
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2811
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2811
2812
|
changeEmitedValue: (value: any) => void;
|
|
2812
2813
|
addSubFormItem: (item: {
|
|
2813
2814
|
id: string;
|
|
@@ -3321,7 +3322,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3321
3322
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3322
3323
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3323
3324
|
closeDialog: (result?: any) => void;
|
|
3324
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3325
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3325
3326
|
changeEmitedValue: (value: any) => void;
|
|
3326
3327
|
addSubFormItem: (item: {
|
|
3327
3328
|
id: string;
|
|
@@ -3831,7 +3832,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3831
3832
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3832
3833
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3833
3834
|
closeDialog: (result?: any) => void;
|
|
3834
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3835
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3835
3836
|
changeEmitedValue: (value: any) => void;
|
|
3836
3837
|
addSubFormItem: (item: {
|
|
3837
3838
|
id: string;
|
|
@@ -4345,7 +4346,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4345
4346
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4346
4347
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4347
4348
|
closeDialog: (result?: any) => void;
|
|
4348
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4349
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4349
4350
|
changeEmitedValue: (value: any) => void;
|
|
4350
4351
|
addSubFormItem: (item: {
|
|
4351
4352
|
id: string;
|
|
@@ -4855,7 +4856,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4855
4856
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4856
4857
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4857
4858
|
closeDialog: (result?: any) => void;
|
|
4858
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4859
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4859
4860
|
changeEmitedValue: (value: any) => void;
|
|
4860
4861
|
addSubFormItem: (item: {
|
|
4861
4862
|
id: string;
|
package/lib/store/form.js
CHANGED
package/lib/store/formItem.js
CHANGED
package/lib/store/iRenderer.js
CHANGED
package/lib/store/index.js
CHANGED
package/lib/store/list.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const Item: import("mobx-state-tree").IModelType<{
|
|
|
16
16
|
toggle(): void;
|
|
17
17
|
change(values: object, savePristine?: boolean): void;
|
|
18
18
|
reset(): void;
|
|
19
|
+
updateData({ children, ...rest }: any): void;
|
|
19
20
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
20
21
|
export type IItem = Instance<typeof Item>;
|
|
21
22
|
export type SItem = SnapshotIn<typeof Item>;
|
|
@@ -55,6 +56,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
55
56
|
toggle(): void;
|
|
56
57
|
change(values: object, savePristine?: boolean): void;
|
|
57
58
|
reset(): void;
|
|
59
|
+
updateData({ children, ...rest }: any): void;
|
|
58
60
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
59
61
|
selectedItems: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IModelType<{
|
|
60
62
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -73,6 +75,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
73
75
|
toggle(): void;
|
|
74
76
|
change(values: object, savePristine?: boolean): void;
|
|
75
77
|
reset(): void;
|
|
78
|
+
updateData({ children, ...rest }: any): void;
|
|
76
79
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
77
80
|
primaryField: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
78
81
|
orderBy: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -131,6 +134,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
131
134
|
toggle(): void;
|
|
132
135
|
change(values: object, savePristine?: boolean): void;
|
|
133
136
|
reset(): void;
|
|
137
|
+
updateData({ children, ...rest }: any): void;
|
|
134
138
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
135
139
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
136
140
|
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -148,6 +152,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
148
152
|
toggle(): void;
|
|
149
153
|
change(values: object, savePristine?: boolean): void;
|
|
150
154
|
reset(): void;
|
|
155
|
+
updateData({ children, ...rest }: any): void;
|
|
151
156
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
152
157
|
readonly unSelectedItems: ({
|
|
153
158
|
id: string;
|
|
@@ -166,6 +171,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
166
171
|
toggle(): void;
|
|
167
172
|
change(values: object, savePristine?: boolean): void;
|
|
168
173
|
reset(): void;
|
|
174
|
+
updateData({ children, ...rest }: any): void;
|
|
169
175
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
170
176
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
171
177
|
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -183,6 +189,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
183
189
|
toggle(): void;
|
|
184
190
|
change(values: object, savePristine?: boolean): void;
|
|
185
191
|
reset(): void;
|
|
192
|
+
updateData({ children, ...rest }: any): void;
|
|
186
193
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
187
194
|
isSelected: (item: IItem) => boolean;
|
|
188
195
|
readonly modified: number;
|
|
@@ -203,6 +210,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
203
210
|
toggle(): void;
|
|
204
211
|
change(values: object, savePristine?: boolean): void;
|
|
205
212
|
reset(): void;
|
|
213
|
+
updateData({ children, ...rest }: any): void;
|
|
206
214
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
207
215
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
208
216
|
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -220,6 +228,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
220
228
|
toggle(): void;
|
|
221
229
|
change(values: object, savePristine?: boolean): void;
|
|
222
230
|
reset(): void;
|
|
231
|
+
updateData({ children, ...rest }: any): void;
|
|
223
232
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
224
233
|
readonly moved: number;
|
|
225
234
|
readonly movedItems: ({
|
|
@@ -239,6 +248,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
239
248
|
toggle(): void;
|
|
240
249
|
change(values: object, savePristine?: boolean): void;
|
|
241
250
|
reset(): void;
|
|
251
|
+
updateData({ children, ...rest }: any): void;
|
|
242
252
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
243
253
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
244
254
|
pristine: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -256,6 +266,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
256
266
|
toggle(): void;
|
|
257
267
|
change(values: object, savePristine?: boolean): void;
|
|
258
268
|
reset(): void;
|
|
269
|
+
updateData({ children, ...rest }: any): void;
|
|
259
270
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
260
271
|
} & {
|
|
261
272
|
update: (config: Partial<SListStore>) => void;
|
package/lib/store/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.1
|
|
2
|
+
* amis-core v6.2.1
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
+
var tslib = require('tslib');
|
|
10
11
|
var mobxStateTree = require('mobx-state-tree');
|
|
11
12
|
var iRenderer = require('./iRenderer.js');
|
|
12
13
|
var isEqual = require('lodash/isEqual');
|
|
@@ -72,6 +73,12 @@ var Item = mobxStateTree.types
|
|
|
72
73
|
reset: function () {
|
|
73
74
|
self.newIndex = self.index;
|
|
74
75
|
self.data = self.pristine;
|
|
76
|
+
},
|
|
77
|
+
updateData: function (_a) {
|
|
78
|
+
_a.children; var rest = tslib.__rest(_a, ["children"]);
|
|
79
|
+
self.data = tslib.__assign(tslib.__assign({}, self.data), rest);
|
|
80
|
+
// if (Array.isArray(children)) {
|
|
81
|
+
// }
|
|
75
82
|
}
|
|
76
83
|
}); });
|
|
77
84
|
var ListStore = iRenderer.iRendererStore
|
package/lib/store/manager.js
CHANGED
package/lib/store/modal.js
CHANGED
package/lib/store/node.js
CHANGED
package/lib/store/pagination.js
CHANGED
package/lib/store/root.js
CHANGED
package/lib/store/service.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.1
|
|
2
|
+
* amis-core v6.2.1
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -15,6 +15,8 @@ var errors = require('../utils/errors.js');
|
|
|
15
15
|
var api = require('../utils/api.js');
|
|
16
16
|
var replaceText = require('../utils/replaceText.js');
|
|
17
17
|
var concatData = require('../utils/concatData.js');
|
|
18
|
+
var envOverwrite = require('../envOverwrite.js');
|
|
19
|
+
var amisCore = require('amis-core');
|
|
18
20
|
var object = require('../utils/object.js');
|
|
19
21
|
|
|
20
22
|
var ServiceStore = iRenderer.iRendererStore
|
|
@@ -60,7 +62,7 @@ var ServiceStore = iRenderer.iRendererStore
|
|
|
60
62
|
}
|
|
61
63
|
function updateMessage(msg, error) {
|
|
62
64
|
if (error === void 0) { error = false; }
|
|
63
|
-
self.msg = (msg &&
|
|
65
|
+
self.msg = (msg && amisCore.filter(msg, self.data)) || '';
|
|
64
66
|
self.error = error;
|
|
65
67
|
}
|
|
66
68
|
function clearMessage() {
|
|
@@ -340,6 +342,7 @@ var ServiceStore = iRenderer.iRendererStore
|
|
|
340
342
|
else {
|
|
341
343
|
if (json.data) {
|
|
342
344
|
env = mobxStateTree.getEnv(self);
|
|
345
|
+
json.data = envOverwrite.envOverwrite(json.data, env.locale);
|
|
343
346
|
json.data = replaceText.replaceText(json.data, env.replaceText, env.replaceTextIgnoreKeys);
|
|
344
347
|
self.schema = Array.isArray(json.data)
|
|
345
348
|
? json.data
|
package/lib/store/status.js
CHANGED