amis-core 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/esm/Root.js +1 -1
  2. package/esm/RootRenderer.d.ts +1 -1
  3. package/esm/RootRenderer.js +2 -2
  4. package/esm/SchemaRenderer.js +3 -2
  5. package/esm/Scoped.js +2 -1
  6. package/esm/StatusScoped.js +1 -1
  7. package/esm/WithRootStore.d.ts +4 -24
  8. package/esm/WithRootStore.js +12 -4
  9. package/esm/WithStore.js +23 -16
  10. package/esm/actions/Action.js +14 -14
  11. package/esm/actions/AjaxAction.js +1 -1
  12. package/esm/actions/BreakAction.js +1 -1
  13. package/esm/actions/BroadcastAction.js +1 -1
  14. package/esm/actions/CmptAction.js +2 -2
  15. package/esm/actions/ContinueAction.js +1 -1
  16. package/esm/actions/CopyAction.js +1 -1
  17. package/esm/actions/CustomAction.js +2 -1
  18. package/esm/actions/DialogAction.d.ts +2 -0
  19. package/esm/actions/DialogAction.js +40 -23
  20. package/esm/actions/DrawerAction.js +4 -4
  21. package/esm/actions/EmailAction.js +1 -1
  22. package/esm/actions/LinkAction.js +1 -1
  23. package/esm/actions/LoopAction.js +1 -1
  24. package/esm/actions/PageAction.js +1 -1
  25. package/esm/actions/ParallelAction.js +1 -1
  26. package/esm/actions/SwitchAction.js +1 -1
  27. package/esm/actions/ToastAction.js +1 -1
  28. package/esm/components/CustomStyle.js +1 -1
  29. package/esm/components/LazyComponent.js +1 -1
  30. package/esm/components/Overlay.js +2 -1
  31. package/esm/components/PopOver.js +2 -1
  32. package/esm/env.js +1 -1
  33. package/esm/envOverwrite.js +1 -1
  34. package/esm/factory.js +1 -1
  35. package/esm/index.d.ts +1 -0
  36. package/esm/index.js +6 -4
  37. package/esm/locale.js +1 -1
  38. package/esm/polyfills.d.ts +3 -0
  39. package/esm/polyfills.js +18 -0
  40. package/esm/renderers/Form.d.ts +1 -1
  41. package/esm/renderers/Form.js +17 -7
  42. package/esm/renderers/Item.d.ts +88 -59
  43. package/esm/renderers/Item.js +86 -40
  44. package/esm/renderers/Options.js +1 -1
  45. package/esm/renderers/Placeholder.js +1 -1
  46. package/esm/renderers/builtin.js +1 -1
  47. package/esm/renderers/register.js +1 -1
  48. package/esm/renderers/wrapControl.d.ts +4 -24
  49. package/esm/renderers/wrapControl.js +51 -53
  50. package/esm/store/app.js +37 -3
  51. package/esm/store/combo.d.ts +168 -28
  52. package/esm/store/combo.js +1 -1
  53. package/esm/store/crud.d.ts +3 -2
  54. package/esm/store/crud.js +12 -5
  55. package/esm/store/form.d.ts +72 -12
  56. package/esm/store/form.js +4 -4
  57. package/esm/store/formItem.d.ts +2 -1
  58. package/esm/store/formItem.js +7 -2
  59. package/esm/store/iRenderer.js +2 -1
  60. package/esm/store/index.js +1 -1
  61. package/esm/store/list.d.ts +1 -0
  62. package/esm/store/list.js +8 -2
  63. package/esm/store/manager.js +1 -1
  64. package/esm/store/modal.js +1 -1
  65. package/esm/store/node.js +1 -1
  66. package/esm/store/pagination.js +1 -1
  67. package/esm/store/root.js +2 -1
  68. package/esm/store/service.js +14 -9
  69. package/esm/store/status.js +1 -1
  70. package/esm/store/table.d.ts +145 -24
  71. package/esm/store/table.js +8 -2
  72. package/esm/store/table2.js +1 -1
  73. package/esm/theme.js +1 -1
  74. package/esm/types.d.ts +5 -2
  75. package/esm/utils/Animation.js +1 -1
  76. package/esm/utils/ColorScale.js +1 -1
  77. package/esm/utils/DataSchema.d.ts +3 -2
  78. package/esm/utils/DataSchema.js +27 -7
  79. package/esm/utils/DataScope.d.ts +10 -3
  80. package/esm/utils/DataScope.js +50 -12
  81. package/esm/utils/RootClose.js +1 -1
  82. package/esm/utils/SimpleMap.js +1 -1
  83. package/esm/utils/api.js +40 -32
  84. package/esm/utils/arraySlice.d.ts +1 -0
  85. package/esm/utils/arraySlice.js +76 -0
  86. package/esm/utils/attachmentAdpator.js +1 -1
  87. package/esm/utils/autobind.js +1 -1
  88. package/esm/utils/columnsSplit.js +1 -1
  89. package/esm/utils/dataMapping.js +26 -18
  90. package/esm/utils/date.js +1 -1
  91. package/esm/utils/debug.js +1 -1
  92. package/esm/utils/decodeEntity.js +1 -1
  93. package/esm/utils/dom.js +4 -1
  94. package/esm/utils/errors.js +1 -1
  95. package/esm/utils/escapeHtml.js +1 -1
  96. package/esm/utils/filter-schema.js +1 -1
  97. package/esm/utils/filter.js +1 -1
  98. package/esm/utils/formatDuration.js +1 -1
  99. package/esm/utils/formula.js +1 -1
  100. package/esm/utils/getVariable.js +1 -1
  101. package/esm/utils/grammar.js +1 -1
  102. package/esm/utils/handleAction.js +1 -1
  103. package/esm/utils/helper.d.ts +8 -1
  104. package/esm/utils/helper.js +57 -10
  105. package/esm/utils/highlight.js +1 -1
  106. package/esm/utils/icon.js +1 -1
  107. package/esm/utils/image.js +1 -1
  108. package/esm/utils/index.d.ts +1 -0
  109. package/esm/utils/isPureVariable.js +1 -1
  110. package/esm/utils/json-schema-2-amis-schema.js +1 -1
  111. package/esm/utils/keyToPath.js +1 -1
  112. package/esm/utils/makeSorter.js +1 -1
  113. package/esm/utils/memoryParse.js +1 -1
  114. package/esm/utils/normalizeLink.js +18 -9
  115. package/esm/utils/normalizeOptions.js +1 -1
  116. package/esm/utils/object.js +1 -1
  117. package/esm/utils/offset.js +1 -1
  118. package/esm/utils/offsetParent.js +1 -1
  119. package/esm/utils/optionValueCompare.js +1 -1
  120. package/esm/utils/position.js +1 -1
  121. package/esm/utils/prettyBytes.js +1 -1
  122. package/esm/utils/renderer-event.js +1 -1
  123. package/esm/utils/replaceText.js +1 -1
  124. package/esm/utils/resize-sensor.js +1 -1
  125. package/esm/utils/resolveCondition.js +1 -1
  126. package/esm/utils/resolveVariable.js +1 -1
  127. package/esm/utils/resolveVariableAndFilter.js +1 -1
  128. package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
  129. package/esm/utils/scrollPosition.js +1 -1
  130. package/esm/utils/string2regExp.js +1 -1
  131. package/esm/utils/stripNumber.js +1 -1
  132. package/esm/utils/style-helper.js +1 -1
  133. package/esm/utils/style.js +1 -1
  134. package/esm/utils/toNumber.js +1 -1
  135. package/esm/utils/tokenize.js +1 -1
  136. package/esm/utils/tpl-builtin.js +1 -1
  137. package/esm/utils/tpl-lodash.js +1 -1
  138. package/esm/utils/tpl.js +1 -1
  139. package/esm/utils/uncontrollable.js +1 -1
  140. package/esm/utils/validations.js +1 -1
  141. package/lib/Root.js +1 -1
  142. package/lib/RootRenderer.d.ts +1 -1
  143. package/lib/RootRenderer.js +2 -2
  144. package/lib/SchemaRenderer.js +3 -2
  145. package/lib/Scoped.js +2 -1
  146. package/lib/StatusScoped.js +1 -1
  147. package/lib/WithRootStore.d.ts +4 -24
  148. package/lib/WithRootStore.js +12 -4
  149. package/lib/WithStore.js +23 -16
  150. package/lib/actions/Action.js +14 -14
  151. package/lib/actions/AjaxAction.js +1 -1
  152. package/lib/actions/BreakAction.js +1 -1
  153. package/lib/actions/BroadcastAction.js +1 -1
  154. package/lib/actions/CmptAction.js +2 -2
  155. package/lib/actions/ContinueAction.js +1 -1
  156. package/lib/actions/CopyAction.js +1 -1
  157. package/lib/actions/CustomAction.js +2 -1
  158. package/lib/actions/DialogAction.d.ts +2 -0
  159. package/lib/actions/DialogAction.js +40 -23
  160. package/lib/actions/DrawerAction.js +4 -4
  161. package/lib/actions/EmailAction.js +1 -1
  162. package/lib/actions/LinkAction.js +1 -1
  163. package/lib/actions/LoopAction.js +1 -1
  164. package/lib/actions/PageAction.js +1 -1
  165. package/lib/actions/ParallelAction.js +1 -1
  166. package/lib/actions/SwitchAction.js +1 -1
  167. package/lib/actions/ToastAction.js +1 -1
  168. package/lib/components/CustomStyle.js +1 -1
  169. package/lib/components/LazyComponent.js +1 -1
  170. package/lib/components/Overlay.js +2 -1
  171. package/lib/components/PopOver.js +2 -1
  172. package/lib/env.js +1 -1
  173. package/lib/envOverwrite.js +1 -1
  174. package/lib/factory.js +1 -1
  175. package/lib/index.d.ts +1 -0
  176. package/lib/index.js +7 -2
  177. package/lib/locale.js +1 -1
  178. package/lib/polyfills.d.ts +3 -0
  179. package/lib/polyfills.js +20 -0
  180. package/lib/renderers/Form.d.ts +1 -1
  181. package/lib/renderers/Form.js +17 -7
  182. package/lib/renderers/Item.d.ts +88 -59
  183. package/lib/renderers/Item.js +86 -40
  184. package/lib/renderers/Options.js +1 -1
  185. package/lib/renderers/Placeholder.js +1 -1
  186. package/lib/renderers/builtin.js +1 -1
  187. package/lib/renderers/register.js +1 -1
  188. package/lib/renderers/wrapControl.d.ts +4 -24
  189. package/lib/renderers/wrapControl.js +51 -53
  190. package/lib/store/app.js +36 -2
  191. package/lib/store/combo.d.ts +168 -28
  192. package/lib/store/combo.js +1 -1
  193. package/lib/store/crud.d.ts +3 -2
  194. package/lib/store/crud.js +12 -5
  195. package/lib/store/form.d.ts +72 -12
  196. package/lib/store/form.js +4 -4
  197. package/lib/store/formItem.d.ts +2 -1
  198. package/lib/store/formItem.js +7 -2
  199. package/lib/store/iRenderer.js +2 -1
  200. package/lib/store/index.js +1 -1
  201. package/lib/store/list.d.ts +1 -0
  202. package/lib/store/list.js +8 -2
  203. package/lib/store/manager.js +1 -1
  204. package/lib/store/modal.js +1 -1
  205. package/lib/store/node.js +1 -1
  206. package/lib/store/pagination.js +1 -1
  207. package/lib/store/root.js +2 -1
  208. package/lib/store/service.js +14 -9
  209. package/lib/store/status.js +1 -1
  210. package/lib/store/table.d.ts +145 -24
  211. package/lib/store/table.js +7 -1
  212. package/lib/store/table2.js +1 -1
  213. package/lib/theme.js +1 -1
  214. package/lib/types.d.ts +5 -2
  215. package/lib/utils/Animation.js +1 -1
  216. package/lib/utils/ColorScale.js +1 -1
  217. package/lib/utils/DataSchema.d.ts +3 -2
  218. package/lib/utils/DataSchema.js +27 -7
  219. package/lib/utils/DataScope.d.ts +10 -3
  220. package/lib/utils/DataScope.js +50 -11
  221. package/lib/utils/RootClose.js +1 -1
  222. package/lib/utils/SimpleMap.js +1 -1
  223. package/lib/utils/api.js +39 -31
  224. package/lib/utils/arraySlice.d.ts +1 -0
  225. package/lib/utils/arraySlice.js +80 -0
  226. package/lib/utils/attachmentAdpator.js +1 -1
  227. package/lib/utils/autobind.js +1 -1
  228. package/lib/utils/columnsSplit.js +1 -1
  229. package/lib/utils/dataMapping.js +26 -18
  230. package/lib/utils/date.js +1 -1
  231. package/lib/utils/debug.js +1 -1
  232. package/lib/utils/decodeEntity.js +1 -1
  233. package/lib/utils/dom.js +4 -1
  234. package/lib/utils/errors.js +1 -1
  235. package/lib/utils/escapeHtml.js +1 -1
  236. package/lib/utils/filter-schema.js +1 -1
  237. package/lib/utils/filter.js +1 -1
  238. package/lib/utils/formatDuration.js +1 -1
  239. package/lib/utils/formula.js +1 -1
  240. package/lib/utils/getVariable.js +1 -1
  241. package/lib/utils/grammar.js +1 -1
  242. package/lib/utils/handleAction.js +1 -1
  243. package/lib/utils/helper.d.ts +8 -1
  244. package/lib/utils/helper.js +57 -9
  245. package/lib/utils/highlight.js +1 -1
  246. package/lib/utils/icon.js +1 -1
  247. package/lib/utils/image.js +1 -1
  248. package/lib/utils/index.d.ts +1 -0
  249. package/lib/utils/isPureVariable.js +1 -1
  250. package/lib/utils/json-schema-2-amis-schema.js +1 -1
  251. package/lib/utils/keyToPath.js +1 -1
  252. package/lib/utils/makeSorter.js +1 -1
  253. package/lib/utils/memoryParse.js +1 -1
  254. package/lib/utils/normalizeLink.js +18 -9
  255. package/lib/utils/normalizeOptions.js +1 -1
  256. package/lib/utils/object.js +1 -1
  257. package/lib/utils/offset.js +1 -1
  258. package/lib/utils/offsetParent.js +1 -1
  259. package/lib/utils/optionValueCompare.js +1 -1
  260. package/lib/utils/position.js +1 -1
  261. package/lib/utils/prettyBytes.js +1 -1
  262. package/lib/utils/renderer-event.js +1 -1
  263. package/lib/utils/replaceText.js +1 -1
  264. package/lib/utils/resize-sensor.js +1 -1
  265. package/lib/utils/resolveCondition.js +1 -1
  266. package/lib/utils/resolveVariable.js +1 -1
  267. package/lib/utils/resolveVariableAndFilter.js +1 -1
  268. package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
  269. package/lib/utils/scrollPosition.js +1 -1
  270. package/lib/utils/string2regExp.js +1 -1
  271. package/lib/utils/stripNumber.js +1 -1
  272. package/lib/utils/style-helper.js +1 -1
  273. package/lib/utils/style.js +1 -1
  274. package/lib/utils/toNumber.js +1 -1
  275. package/lib/utils/tokenize.js +1 -1
  276. package/lib/utils/tpl-builtin.js +1 -1
  277. package/lib/utils/tpl-lodash.js +1 -1
  278. package/lib/utils/tpl.js +1 -1
  279. package/lib/utils/uncontrollable.js +1 -1
  280. package/lib/utils/validations.js +1 -1
  281. package/package.json +8 -3
@@ -99,6 +99,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
99
99
  isValueSchemaExp: boolean;
100
100
  tmpValue: any;
101
101
  emitedValue: any;
102
+ changeMotivation: string;
102
103
  rules: any;
103
104
  messages: any;
104
105
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -217,7 +218,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
217
218
  resetValidationStatus: (tag?: string | undefined) => void;
218
219
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
219
220
  closeDialog: (result?: any) => void;
220
- changeTmpValue: (value: any) => void;
221
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
221
222
  changeEmitedValue: (value: any) => void;
222
223
  addSubFormItem: (item: {
223
224
  id: string;
@@ -235,6 +236,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
235
236
  isValueSchemaExp: boolean;
236
237
  tmpValue: any;
237
238
  emitedValue: any;
239
+ changeMotivation: string;
238
240
  rules: any;
239
241
  messages: any;
240
242
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -310,6 +312,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
310
312
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
311
313
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
312
314
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
315
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
313
316
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
314
317
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
315
318
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -381,6 +384,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
381
384
  isValueSchemaExp: boolean;
382
385
  tmpValue: any;
383
386
  emitedValue: any;
387
+ changeMotivation: string;
384
388
  rules: any;
385
389
  messages: any;
386
390
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -456,6 +460,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
456
460
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
457
461
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
458
462
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
463
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
459
464
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
460
465
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
461
466
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -529,6 +534,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
529
534
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
530
535
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
531
536
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
537
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
532
538
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
533
539
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
534
540
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -643,7 +649,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
643
649
  resetValidationStatus: (tag?: string | undefined) => void;
644
650
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
645
651
  closeDialog: (result?: any) => void;
646
- changeTmpValue: (value: any) => void;
652
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
647
653
  changeEmitedValue: (value: any) => void;
648
654
  addSubFormItem: (item: {
649
655
  id: string;
@@ -661,6 +667,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
661
667
  isValueSchemaExp: boolean;
662
668
  tmpValue: any;
663
669
  emitedValue: any;
670
+ changeMotivation: string;
664
671
  rules: any;
665
672
  messages: any;
666
673
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -736,6 +743,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
736
743
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
737
744
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
738
745
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
746
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
739
747
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
740
748
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
741
749
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -807,6 +815,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
807
815
  isValueSchemaExp: boolean;
808
816
  tmpValue: any;
809
817
  emitedValue: any;
818
+ changeMotivation: string;
810
819
  rules: any;
811
820
  messages: any;
812
821
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -882,6 +891,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
882
891
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
883
892
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
884
893
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
894
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
885
895
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
886
896
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
887
897
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -959,6 +969,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
959
969
  isValueSchemaExp: boolean;
960
970
  tmpValue: any;
961
971
  emitedValue: any;
972
+ changeMotivation: string;
962
973
  rules: any;
963
974
  messages: any;
964
975
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -1077,7 +1088,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1077
1088
  resetValidationStatus: (tag?: string | undefined) => void;
1078
1089
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
1079
1090
  closeDialog: (result?: any) => void;
1080
- changeTmpValue: (value: any) => void;
1091
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1081
1092
  changeEmitedValue: (value: any) => void;
1082
1093
  addSubFormItem: (item: {
1083
1094
  id: string;
@@ -1095,6 +1106,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1095
1106
  isValueSchemaExp: boolean;
1096
1107
  tmpValue: any;
1097
1108
  emitedValue: any;
1109
+ changeMotivation: string;
1098
1110
  rules: any;
1099
1111
  messages: any;
1100
1112
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -1170,6 +1182,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1170
1182
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
1171
1183
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
1172
1184
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
1185
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
1173
1186
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1174
1187
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1175
1188
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -1241,6 +1254,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1241
1254
  isValueSchemaExp: boolean;
1242
1255
  tmpValue: any;
1243
1256
  emitedValue: any;
1257
+ changeMotivation: string;
1244
1258
  rules: any;
1245
1259
  messages: any;
1246
1260
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -1316,6 +1330,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1316
1330
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
1317
1331
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
1318
1332
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
1333
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
1319
1334
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1320
1335
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1321
1336
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -1389,6 +1404,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1389
1404
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
1390
1405
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
1391
1406
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
1407
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
1392
1408
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1393
1409
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1394
1410
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -1503,7 +1519,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1503
1519
  resetValidationStatus: (tag?: string | undefined) => void;
1504
1520
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
1505
1521
  closeDialog: (result?: any) => void;
1506
- changeTmpValue: (value: any) => void;
1522
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1507
1523
  changeEmitedValue: (value: any) => void;
1508
1524
  addSubFormItem: (item: {
1509
1525
  id: string;
@@ -1521,6 +1537,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1521
1537
  isValueSchemaExp: boolean;
1522
1538
  tmpValue: any;
1523
1539
  emitedValue: any;
1540
+ changeMotivation: string;
1524
1541
  rules: any;
1525
1542
  messages: any;
1526
1543
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -1596,6 +1613,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1596
1613
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
1597
1614
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
1598
1615
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
1616
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
1599
1617
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1600
1618
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1601
1619
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -1667,6 +1685,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1667
1685
  isValueSchemaExp: boolean;
1668
1686
  tmpValue: any;
1669
1687
  emitedValue: any;
1688
+ changeMotivation: string;
1670
1689
  rules: any;
1671
1690
  messages: any;
1672
1691
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -1742,6 +1761,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1742
1761
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
1743
1762
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
1744
1763
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
1764
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
1745
1765
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1746
1766
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
1747
1767
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -1816,6 +1836,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1816
1836
  isValueSchemaExp: boolean;
1817
1837
  tmpValue: any;
1818
1838
  emitedValue: any;
1839
+ changeMotivation: string;
1819
1840
  rules: any;
1820
1841
  messages: any;
1821
1842
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -1934,7 +1955,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1934
1955
  resetValidationStatus: (tag?: string | undefined) => void;
1935
1956
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
1936
1957
  closeDialog: (result?: any) => void;
1937
- changeTmpValue: (value: any) => void;
1958
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1938
1959
  changeEmitedValue: (value: any) => void;
1939
1960
  addSubFormItem: (item: {
1940
1961
  id: string;
@@ -1952,6 +1973,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1952
1973
  isValueSchemaExp: boolean;
1953
1974
  tmpValue: any;
1954
1975
  emitedValue: any;
1976
+ changeMotivation: string;
1955
1977
  rules: any;
1956
1978
  messages: any;
1957
1979
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -2027,6 +2049,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2027
2049
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
2028
2050
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
2029
2051
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
2052
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
2030
2053
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2031
2054
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2032
2055
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2098,6 +2121,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2098
2121
  isValueSchemaExp: boolean;
2099
2122
  tmpValue: any;
2100
2123
  emitedValue: any;
2124
+ changeMotivation: string;
2101
2125
  rules: any;
2102
2126
  messages: any;
2103
2127
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -2173,6 +2197,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2173
2197
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
2174
2198
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
2175
2199
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
2200
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
2176
2201
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2177
2202
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2178
2203
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2246,6 +2271,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2246
2271
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
2247
2272
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
2248
2273
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
2274
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
2249
2275
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2250
2276
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2251
2277
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2360,7 +2386,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2360
2386
  resetValidationStatus: (tag?: string | undefined) => void;
2361
2387
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
2362
2388
  closeDialog: (result?: any) => void;
2363
- changeTmpValue: (value: any) => void;
2389
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
2364
2390
  changeEmitedValue: (value: any) => void;
2365
2391
  addSubFormItem: (item: {
2366
2392
  id: string;
@@ -2378,6 +2404,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2378
2404
  isValueSchemaExp: boolean;
2379
2405
  tmpValue: any;
2380
2406
  emitedValue: any;
2407
+ changeMotivation: string;
2381
2408
  rules: any;
2382
2409
  messages: any;
2383
2410
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -2453,6 +2480,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2453
2480
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
2454
2481
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
2455
2482
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
2483
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
2456
2484
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2457
2485
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2458
2486
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2524,6 +2552,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2524
2552
  isValueSchemaExp: boolean;
2525
2553
  tmpValue: any;
2526
2554
  emitedValue: any;
2555
+ changeMotivation: string;
2527
2556
  rules: any;
2528
2557
  messages: any;
2529
2558
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -2599,6 +2628,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2599
2628
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
2600
2629
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
2601
2630
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
2631
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
2602
2632
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2603
2633
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2604
2634
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2677,6 +2707,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2677
2707
  isValueSchemaExp: boolean;
2678
2708
  tmpValue: any;
2679
2709
  emitedValue: any;
2710
+ changeMotivation: string;
2680
2711
  rules: any;
2681
2712
  messages: any;
2682
2713
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -2795,7 +2826,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2795
2826
  resetValidationStatus: (tag?: string | undefined) => void;
2796
2827
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
2797
2828
  closeDialog: (result?: any) => void;
2798
- changeTmpValue: (value: any) => void;
2829
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
2799
2830
  changeEmitedValue: (value: any) => void;
2800
2831
  addSubFormItem: (item: {
2801
2832
  id: string;
@@ -2813,6 +2844,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2813
2844
  isValueSchemaExp: boolean;
2814
2845
  tmpValue: any;
2815
2846
  emitedValue: any;
2847
+ changeMotivation: string;
2816
2848
  rules: any;
2817
2849
  messages: any;
2818
2850
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -2888,6 +2920,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2888
2920
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
2889
2921
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
2890
2922
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
2923
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
2891
2924
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2892
2925
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
2893
2926
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2959,6 +2992,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2959
2992
  isValueSchemaExp: boolean;
2960
2993
  tmpValue: any;
2961
2994
  emitedValue: any;
2995
+ changeMotivation: string;
2962
2996
  rules: any;
2963
2997
  messages: any;
2964
2998
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -3034,6 +3068,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3034
3068
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3035
3069
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3036
3070
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
3071
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3037
3072
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3038
3073
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3039
3074
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -3107,6 +3142,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3107
3142
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3108
3143
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3109
3144
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
3145
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3110
3146
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3111
3147
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3112
3148
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -3221,7 +3257,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3221
3257
  resetValidationStatus: (tag?: string | undefined) => void;
3222
3258
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
3223
3259
  closeDialog: (result?: any) => void;
3224
- changeTmpValue: (value: any) => void;
3260
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
3225
3261
  changeEmitedValue: (value: any) => void;
3226
3262
  addSubFormItem: (item: {
3227
3263
  id: string;
@@ -3239,6 +3275,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3239
3275
  isValueSchemaExp: boolean;
3240
3276
  tmpValue: any;
3241
3277
  emitedValue: any;
3278
+ changeMotivation: string;
3242
3279
  rules: any;
3243
3280
  messages: any;
3244
3281
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -3314,6 +3351,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3314
3351
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3315
3352
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3316
3353
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
3354
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3317
3355
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3318
3356
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3319
3357
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -3385,6 +3423,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3385
3423
  isValueSchemaExp: boolean;
3386
3424
  tmpValue: any;
3387
3425
  emitedValue: any;
3426
+ changeMotivation: string;
3388
3427
  rules: any;
3389
3428
  messages: any;
3390
3429
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -3460,6 +3499,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3460
3499
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3461
3500
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3462
3501
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
3502
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3463
3503
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3464
3504
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3465
3505
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -3533,6 +3573,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3533
3573
  isValueSchemaExp: boolean;
3534
3574
  tmpValue: any;
3535
3575
  emitedValue: any;
3576
+ changeMotivation: string;
3536
3577
  rules: any;
3537
3578
  messages: any;
3538
3579
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -3651,7 +3692,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3651
3692
  resetValidationStatus: (tag?: string | undefined) => void;
3652
3693
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
3653
3694
  closeDialog: (result?: any) => void;
3654
- changeTmpValue: (value: any) => void;
3695
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
3655
3696
  changeEmitedValue: (value: any) => void;
3656
3697
  addSubFormItem: (item: {
3657
3698
  id: string;
@@ -3669,6 +3710,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3669
3710
  isValueSchemaExp: boolean;
3670
3711
  tmpValue: any;
3671
3712
  emitedValue: any;
3713
+ changeMotivation: string;
3672
3714
  rules: any;
3673
3715
  messages: any;
3674
3716
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -3744,6 +3786,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3744
3786
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3745
3787
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3746
3788
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
3789
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3747
3790
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3748
3791
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3749
3792
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -3815,6 +3858,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3815
3858
  isValueSchemaExp: boolean;
3816
3859
  tmpValue: any;
3817
3860
  emitedValue: any;
3861
+ changeMotivation: string;
3818
3862
  rules: any;
3819
3863
  messages: any;
3820
3864
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -3890,6 +3934,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3890
3934
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3891
3935
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3892
3936
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
3937
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3893
3938
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3894
3939
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3895
3940
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -3963,6 +4008,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3963
4008
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
3964
4009
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
3965
4010
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
4011
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
3966
4012
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3967
4013
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
3968
4014
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -4077,7 +4123,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4077
4123
  resetValidationStatus: (tag?: string | undefined) => void;
4078
4124
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
4079
4125
  closeDialog: (result?: any) => void;
4080
- changeTmpValue: (value: any) => void;
4126
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4081
4127
  changeEmitedValue: (value: any) => void;
4082
4128
  addSubFormItem: (item: {
4083
4129
  id: string;
@@ -4095,6 +4141,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4095
4141
  isValueSchemaExp: boolean;
4096
4142
  tmpValue: any;
4097
4143
  emitedValue: any;
4144
+ changeMotivation: string;
4098
4145
  rules: any;
4099
4146
  messages: any;
4100
4147
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -4170,6 +4217,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4170
4217
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
4171
4218
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
4172
4219
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
4220
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
4173
4221
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4174
4222
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4175
4223
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -4241,6 +4289,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4241
4289
  isValueSchemaExp: boolean;
4242
4290
  tmpValue: any;
4243
4291
  emitedValue: any;
4292
+ changeMotivation: string;
4244
4293
  rules: any;
4245
4294
  messages: any;
4246
4295
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -4316,6 +4365,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4316
4365
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
4317
4366
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
4318
4367
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
4368
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
4319
4369
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4320
4370
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4321
4371
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -4389,6 +4439,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4389
4439
  isValueSchemaExp: boolean;
4390
4440
  tmpValue: any;
4391
4441
  emitedValue: any;
4442
+ changeMotivation: string;
4392
4443
  rules: any;
4393
4444
  messages: any;
4394
4445
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -4507,7 +4558,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4507
4558
  resetValidationStatus: (tag?: string | undefined) => void;
4508
4559
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
4509
4560
  closeDialog: (result?: any) => void;
4510
- changeTmpValue: (value: any) => void;
4561
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4511
4562
  changeEmitedValue: (value: any) => void;
4512
4563
  addSubFormItem: (item: {
4513
4564
  id: string;
@@ -4525,6 +4576,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4525
4576
  isValueSchemaExp: boolean;
4526
4577
  tmpValue: any;
4527
4578
  emitedValue: any;
4579
+ changeMotivation: string;
4528
4580
  rules: any;
4529
4581
  messages: any;
4530
4582
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -4600,6 +4652,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4600
4652
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
4601
4653
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
4602
4654
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
4655
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
4603
4656
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4604
4657
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4605
4658
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -4671,6 +4724,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4671
4724
  isValueSchemaExp: boolean;
4672
4725
  tmpValue: any;
4673
4726
  emitedValue: any;
4727
+ changeMotivation: string;
4674
4728
  rules: any;
4675
4729
  messages: any;
4676
4730
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -4746,6 +4800,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4746
4800
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
4747
4801
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
4748
4802
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
4803
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
4749
4804
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4750
4805
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4751
4806
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -4819,6 +4874,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4819
4874
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
4820
4875
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
4821
4876
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
4877
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
4822
4878
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4823
4879
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
4824
4880
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -4933,7 +4989,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4933
4989
  resetValidationStatus: (tag?: string | undefined) => void;
4934
4990
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
4935
4991
  closeDialog: (result?: any) => void;
4936
- changeTmpValue: (value: any) => void;
4992
+ changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4937
4993
  changeEmitedValue: (value: any) => void;
4938
4994
  addSubFormItem: (item: {
4939
4995
  id: string;
@@ -4951,6 +5007,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4951
5007
  isValueSchemaExp: boolean;
4952
5008
  tmpValue: any;
4953
5009
  emitedValue: any;
5010
+ changeMotivation: string;
4954
5011
  rules: any;
4955
5012
  messages: any;
4956
5013
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -5026,6 +5083,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
5026
5083
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
5027
5084
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
5028
5085
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
5086
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
5029
5087
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
5030
5088
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
5031
5089
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -5097,6 +5155,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
5097
5155
  isValueSchemaExp: boolean;
5098
5156
  tmpValue: any;
5099
5157
  emitedValue: any;
5158
+ changeMotivation: string;
5100
5159
  rules: any;
5101
5160
  messages: any;
5102
5161
  errorData: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
@@ -5172,6 +5231,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
5172
5231
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
5173
5232
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
5174
5233
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
5234
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
5175
5235
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
5176
5236
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
5177
5237
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
package/esm/store/form.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v3.1.1
2
+ * amis-core v3.2.0
3
3
  * Copyright 2018-2023 fex
4
4
  */
5
5
 
@@ -84,7 +84,7 @@ var FormStore = ServiceStore.named('FormStore')
84
84
  get inputGroupItems() {
85
85
  var _a, _b;
86
86
  var formItems = {};
87
- var children = self.children.concat();
87
+ var children = this.directItems.concat();
88
88
  while (children.length) {
89
89
  var current = children.shift();
90
90
  if (current.inputGroupControl && ((_a = current.inputGroupControl) === null || _a === void 0 ? void 0 : _a.name)) {
@@ -154,8 +154,8 @@ var FormStore = ServiceStore.named('FormStore')
154
154
  self.updateData(values, tag, replace);
155
155
  // 如果数据域中有数据变化,就都reset一下,去掉之前残留的验证消息
156
156
  self.items.forEach(function (item) {
157
- var value = item.value;
158
- if (typeof value !== 'undefined' && value !== item.tmpValue) {
157
+ var value = getVariable(values, item.name);
158
+ if (value !== undefined && value !== item.tmpValue) {
159
159
  item.changeTmpValue(value);
160
160
  }
161
161
  item.reset();
@@ -17,6 +17,7 @@ export declare const FormItemStore: import("mobx-state-tree").IModelType<{
17
17
  isValueSchemaExp: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
18
18
  tmpValue: import("mobx-state-tree").IType<any, any, any>;
19
19
  emitedValue: import("mobx-state-tree").IType<any, any, any>;
20
+ changeMotivation: import("mobx-state-tree").IType<string | undefined, string, string>;
20
21
  rules: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
21
22
  messages: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
22
23
  errorData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -131,7 +132,7 @@ export declare const FormItemStore: import("mobx-state-tree").IModelType<{
131
132
  resetValidationStatus: (tag?: string) => void;
132
133
  openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
133
134
  closeDialog: (result?: any) => void;
134
- changeTmpValue: (value: any) => void;
135
+ changeTmpValue: (value: any, changeReason?: 'formInited' | 'dataChanged' | 'formulaChanged' | 'controlled' | 'input' | 'defaultValue') => void;
135
136
  changeEmitedValue: (value: any) => void;
136
137
  addSubFormItem: (item: IFormItemStore) => void;
137
138
  removeSubFormItem: (item: IFormItemStore) => void;