amis-core 6.13.0-beta.5 → 6.13.0-beta.7

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 (289) hide show
  1. package/esm/Root.js +1 -1
  2. package/esm/RootRenderer.js +13 -3
  3. package/esm/SchemaRenderer.js +8 -3
  4. package/esm/Scoped.js +1 -1
  5. package/esm/StatusScoped.js +1 -1
  6. package/esm/StyleManager.js +1 -1
  7. package/esm/WithRootStore.js +1 -1
  8. package/esm/WithStore.js +1 -1
  9. package/esm/actions/Action.js +1 -1
  10. package/esm/actions/AjaxAction.js +1 -1
  11. package/esm/actions/BreakAction.js +1 -1
  12. package/esm/actions/BroadcastAction.js +1 -1
  13. package/esm/actions/CmptAction.js +1 -1
  14. package/esm/actions/ContinueAction.js +1 -1
  15. package/esm/actions/CopyAction.js +1 -1
  16. package/esm/actions/CustomAction.js +1 -1
  17. package/esm/actions/DialogAction.js +1 -1
  18. package/esm/actions/DrawerAction.js +1 -1
  19. package/esm/actions/EmailAction.js +1 -1
  20. package/esm/actions/EventAction.js +1 -1
  21. package/esm/actions/LinkAction.js +1 -1
  22. package/esm/actions/LoopAction.js +1 -1
  23. package/esm/actions/PageAction.js +1 -1
  24. package/esm/actions/ParallelAction.js +1 -1
  25. package/esm/actions/PrintAction.js +1 -1
  26. package/esm/actions/StatusAction.js +1 -1
  27. package/esm/actions/SwitchAction.js +1 -1
  28. package/esm/actions/ToastAction.js +1 -1
  29. package/esm/actions/WaitAction.js +1 -1
  30. package/esm/components/Animations.js +1 -1
  31. package/esm/components/CustomStyle.js +1 -1
  32. package/esm/components/ErrorBoundary.js +1 -1
  33. package/esm/components/LazyComponent.js +1 -1
  34. package/esm/components/Overlay.js +1 -1
  35. package/esm/components/PopOver.js +1 -1
  36. package/esm/env.js +1 -1
  37. package/esm/envOverwrite.js +1 -1
  38. package/esm/factory.js +1 -1
  39. package/esm/globalVar.js +1 -1
  40. package/esm/globalVarClientHandler.js +1 -1
  41. package/esm/globalVarDefaultValueHandler.js +1 -1
  42. package/esm/index.js +4 -4
  43. package/esm/locale.js +1 -1
  44. package/esm/polyfills.js +1 -1
  45. package/esm/renderers/Form.js +1 -1
  46. package/esm/renderers/Item.js +1 -1
  47. package/esm/renderers/Options.js +1 -1
  48. package/esm/renderers/Placeholder.js +1 -1
  49. package/esm/renderers/builtin.js +1 -1
  50. package/esm/renderers/register.js +1 -1
  51. package/esm/renderers/wrapControl.js +1 -1
  52. package/esm/store/app.js +1 -1
  53. package/esm/store/combo.js +1 -1
  54. package/esm/store/crud.js +1 -1
  55. package/esm/store/form.js +1 -1
  56. package/esm/store/formItem.js +1 -1
  57. package/esm/store/iRenderer.js +1 -3
  58. package/esm/store/index.js +1 -1
  59. package/esm/store/list.js +1 -1
  60. package/esm/store/manager.js +1 -1
  61. package/esm/store/modal.js +1 -1
  62. package/esm/store/node.js +1 -1
  63. package/esm/store/pagination.js +1 -1
  64. package/esm/store/root.d.ts +3 -2
  65. package/esm/store/root.js +73 -56
  66. package/esm/store/service.js +1 -1
  67. package/esm/store/status.js +1 -1
  68. package/esm/store/table.d.ts +38 -91
  69. package/esm/store/table.js +25 -15
  70. package/esm/store/table2.js +1 -1
  71. package/esm/theme.js +1 -1
  72. package/esm/utils/Animation.js +1 -1
  73. package/esm/utils/ColorScale.js +1 -1
  74. package/esm/utils/DataSchema.js +1 -1
  75. package/esm/utils/DataScope.js +1 -1
  76. package/esm/utils/RootClose.js +1 -1
  77. package/esm/utils/SimpleMap.js +1 -1
  78. package/esm/utils/animations.js +1 -1
  79. package/esm/utils/api.js +1 -1
  80. package/esm/utils/arraySlice.js +1 -1
  81. package/esm/utils/attachmentAdpator.js +1 -1
  82. package/esm/utils/autobind.js +1 -1
  83. package/esm/utils/browser.js +1 -1
  84. package/esm/utils/columnsSplit.js +1 -1
  85. package/esm/utils/concatData.js +1 -1
  86. package/esm/utils/dataMapping.js +1 -1
  87. package/esm/utils/date.js +1 -1
  88. package/esm/utils/debug.js +1 -1
  89. package/esm/utils/decodeEntity.js +1 -1
  90. package/esm/utils/dom.js +1 -1
  91. package/esm/utils/errors.js +1 -1
  92. package/esm/utils/escapeHtml.js +1 -1
  93. package/esm/utils/filter-schema.js +1 -1
  94. package/esm/utils/filter.js +1 -1
  95. package/esm/utils/formatDuration.js +1 -1
  96. package/esm/utils/formula.js +1 -1
  97. package/esm/utils/getPageId.js +1 -1
  98. package/esm/utils/getVariable.js +1 -1
  99. package/esm/utils/grammar.js +1 -1
  100. package/esm/utils/handleAction.js +1 -1
  101. package/esm/utils/helper.js +1 -1
  102. package/esm/utils/highlight.js +1 -1
  103. package/esm/utils/icon.js +1 -1
  104. package/esm/utils/image.js +1 -1
  105. package/esm/utils/index.js +1 -1
  106. package/esm/utils/isPureVariable.js +2 -2
  107. package/esm/utils/json-schema-2-amis-schema.js +1 -1
  108. package/esm/utils/keyToPath.js +1 -1
  109. package/esm/utils/labelToString.js +1 -1
  110. package/esm/utils/loopTooMuch.js +1 -1
  111. package/esm/utils/makeSorter.js +1 -1
  112. package/esm/utils/math.js +1 -1
  113. package/esm/utils/memoryParse.js +1 -1
  114. package/esm/utils/normalizeLink.js +1 -1
  115. package/esm/utils/normalizeOptions.js +6 -2
  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/printElement.js +1 -1
  123. package/esm/utils/renderer-event.js +1 -1
  124. package/esm/utils/replaceText.js +1 -1
  125. package/esm/utils/resize-sensor.js +1 -1
  126. package/esm/utils/resolveCondition.js +1 -1
  127. package/esm/utils/resolveVariable.js +1 -1
  128. package/esm/utils/resolveVariableAndFilter.js +1 -1
  129. package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
  130. package/esm/utils/scrollPosition.js +1 -1
  131. package/esm/utils/string2regExp.js +1 -1
  132. package/esm/utils/stripNumber.js +1 -1
  133. package/esm/utils/style-helper.js +1 -1
  134. package/esm/utils/style.js +1 -1
  135. package/esm/utils/toNumber.js +1 -1
  136. package/esm/utils/tokenize.js +1 -1
  137. package/esm/utils/tpl-builtin.js +1 -1
  138. package/esm/utils/tpl-lodash.js +1 -1
  139. package/esm/utils/tpl.js +6 -2
  140. package/esm/utils/uncontrollable.js +1 -1
  141. package/esm/utils/validateId.js +1 -1
  142. package/esm/utils/validations.js +1 -1
  143. package/esm/utils/visitedCache.js +1 -1
  144. package/lib/Root.js +1 -1
  145. package/lib/RootRenderer.js +13 -3
  146. package/lib/SchemaRenderer.js +8 -3
  147. package/lib/Scoped.js +1 -1
  148. package/lib/StatusScoped.js +1 -1
  149. package/lib/StyleManager.js +1 -1
  150. package/lib/WithRootStore.js +1 -1
  151. package/lib/WithStore.js +1 -1
  152. package/lib/actions/Action.js +1 -1
  153. package/lib/actions/AjaxAction.js +1 -1
  154. package/lib/actions/BreakAction.js +1 -1
  155. package/lib/actions/BroadcastAction.js +1 -1
  156. package/lib/actions/CmptAction.js +1 -1
  157. package/lib/actions/ContinueAction.js +1 -1
  158. package/lib/actions/CopyAction.js +1 -1
  159. package/lib/actions/CustomAction.js +1 -1
  160. package/lib/actions/DialogAction.js +1 -1
  161. package/lib/actions/DrawerAction.js +1 -1
  162. package/lib/actions/EmailAction.js +1 -1
  163. package/lib/actions/EventAction.js +1 -1
  164. package/lib/actions/LinkAction.js +1 -1
  165. package/lib/actions/LoopAction.js +1 -1
  166. package/lib/actions/PageAction.js +1 -1
  167. package/lib/actions/ParallelAction.js +1 -1
  168. package/lib/actions/PrintAction.js +1 -1
  169. package/lib/actions/StatusAction.js +1 -1
  170. package/lib/actions/SwitchAction.js +1 -1
  171. package/lib/actions/ToastAction.js +1 -1
  172. package/lib/actions/WaitAction.js +1 -1
  173. package/lib/components/Animations.js +1 -1
  174. package/lib/components/CustomStyle.js +1 -1
  175. package/lib/components/ErrorBoundary.js +1 -1
  176. package/lib/components/LazyComponent.js +1 -1
  177. package/lib/components/Overlay.js +1 -1
  178. package/lib/components/PopOver.js +1 -1
  179. package/lib/env.js +1 -1
  180. package/lib/envOverwrite.js +1 -1
  181. package/lib/factory.js +1 -1
  182. package/lib/globalVar.js +1 -1
  183. package/lib/globalVarClientHandler.js +1 -1
  184. package/lib/globalVarDefaultValueHandler.js +1 -1
  185. package/lib/index.js +4 -4
  186. package/lib/locale.js +1 -1
  187. package/lib/polyfills.js +1 -1
  188. package/lib/renderers/Form.js +1 -1
  189. package/lib/renderers/Item.js +1 -1
  190. package/lib/renderers/Options.js +1 -1
  191. package/lib/renderers/Placeholder.js +1 -1
  192. package/lib/renderers/builtin.js +1 -1
  193. package/lib/renderers/register.js +1 -1
  194. package/lib/renderers/wrapControl.js +1 -1
  195. package/lib/store/app.js +1 -1
  196. package/lib/store/combo.d.ts +25 -24
  197. package/lib/store/combo.js +1 -1
  198. package/lib/store/crud.js +1 -1
  199. package/lib/store/form.d.ts +11 -10
  200. package/lib/store/form.js +1 -1
  201. package/lib/store/formItem.js +1 -1
  202. package/lib/store/iRenderer.js +1 -3
  203. package/lib/store/index.js +1 -1
  204. package/lib/store/list.js +1 -1
  205. package/lib/store/manager.js +1 -1
  206. package/lib/store/modal.js +1 -1
  207. package/lib/store/node.js +1 -1
  208. package/lib/store/pagination.js +1 -1
  209. package/lib/store/root.d.ts +4 -2
  210. package/lib/store/root.js +71 -54
  211. package/lib/store/service.js +1 -1
  212. package/lib/store/status.js +1 -1
  213. package/lib/store/table.d.ts +58 -111
  214. package/lib/store/table.js +25 -15
  215. package/lib/store/table2.js +1 -1
  216. package/lib/theme.js +1 -1
  217. package/lib/utils/Animation.js +1 -1
  218. package/lib/utils/ColorScale.js +1 -1
  219. package/lib/utils/DataSchema.js +1 -1
  220. package/lib/utils/DataScope.js +1 -1
  221. package/lib/utils/RootClose.js +1 -1
  222. package/lib/utils/SimpleMap.js +1 -1
  223. package/lib/utils/animations.js +1 -1
  224. package/lib/utils/api.js +1 -1
  225. package/lib/utils/arraySlice.js +1 -1
  226. package/lib/utils/attachmentAdpator.js +1 -1
  227. package/lib/utils/autobind.js +1 -1
  228. package/lib/utils/browser.js +1 -1
  229. package/lib/utils/columnsSplit.js +1 -1
  230. package/lib/utils/concatData.js +1 -1
  231. package/lib/utils/dataMapping.js +1 -1
  232. package/lib/utils/date.js +1 -1
  233. package/lib/utils/debug.js +1 -1
  234. package/lib/utils/decodeEntity.js +1 -1
  235. package/lib/utils/dom.js +1 -1
  236. package/lib/utils/errors.js +1 -1
  237. package/lib/utils/escapeHtml.js +1 -1
  238. package/lib/utils/filter-schema.js +1 -1
  239. package/lib/utils/filter.js +1 -1
  240. package/lib/utils/formatDuration.js +1 -1
  241. package/lib/utils/formula.js +1 -1
  242. package/lib/utils/getPageId.js +1 -1
  243. package/lib/utils/getVariable.js +1 -1
  244. package/lib/utils/grammar.js +1 -1
  245. package/lib/utils/handleAction.js +1 -1
  246. package/lib/utils/helper.js +1 -1
  247. package/lib/utils/highlight.js +1 -1
  248. package/lib/utils/icon.js +1 -1
  249. package/lib/utils/image.js +1 -1
  250. package/lib/utils/index.js +1 -1
  251. package/lib/utils/isPureVariable.js +2 -2
  252. package/lib/utils/json-schema-2-amis-schema.js +1 -1
  253. package/lib/utils/keyToPath.js +1 -1
  254. package/lib/utils/labelToString.js +1 -1
  255. package/lib/utils/loopTooMuch.js +1 -1
  256. package/lib/utils/makeSorter.js +1 -1
  257. package/lib/utils/math.js +1 -1
  258. package/lib/utils/memoryParse.js +1 -1
  259. package/lib/utils/normalizeLink.js +1 -1
  260. package/lib/utils/normalizeOptions.js +6 -2
  261. package/lib/utils/object.js +1 -1
  262. package/lib/utils/offset.js +1 -1
  263. package/lib/utils/offsetParent.js +1 -1
  264. package/lib/utils/optionValueCompare.js +1 -1
  265. package/lib/utils/position.js +1 -1
  266. package/lib/utils/prettyBytes.js +1 -1
  267. package/lib/utils/printElement.js +1 -1
  268. package/lib/utils/renderer-event.js +1 -1
  269. package/lib/utils/replaceText.js +1 -1
  270. package/lib/utils/resize-sensor.js +1 -1
  271. package/lib/utils/resolveCondition.js +1 -1
  272. package/lib/utils/resolveVariable.js +1 -1
  273. package/lib/utils/resolveVariableAndFilter.js +1 -1
  274. package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
  275. package/lib/utils/scrollPosition.js +1 -1
  276. package/lib/utils/string2regExp.js +1 -1
  277. package/lib/utils/stripNumber.js +1 -1
  278. package/lib/utils/style-helper.js +1 -1
  279. package/lib/utils/style.js +1 -1
  280. package/lib/utils/toNumber.js +1 -1
  281. package/lib/utils/tokenize.js +1 -1
  282. package/lib/utils/tpl-builtin.js +1 -1
  283. package/lib/utils/tpl-lodash.js +1 -1
  284. package/lib/utils/tpl.js +6 -2
  285. package/lib/utils/uncontrollable.js +1 -1
  286. package/lib/utils/validateId.js +1 -1
  287. package/lib/utils/validations.js +1 -1
  288. package/lib/utils/visitedCache.js +1 -1
  289. package/package.json +2 -2
@@ -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<{
@@ -171,7 +172,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
171
172
  closeDialog: (confirmed?: any, result?: any) => void;
172
173
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
173
174
  closePopOver: (confirmed?: any, result?: any) => void;
174
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
175
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
175
176
  changeEmitedValue: (value: any) => void;
176
177
  addSubFormItem: (item: {
177
178
  id: string;
@@ -706,7 +707,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
706
707
  closeDialog: (confirmed?: any, result?: any) => void;
707
708
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
708
709
  closePopOver: (confirmed?: any, result?: any) => void;
709
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
710
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
710
711
  changeEmitedValue: (value: any) => void;
711
712
  addSubFormItem: (item: {
712
713
  id: string;
@@ -1277,7 +1278,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
1277
1278
  closeDialog: (confirmed?: any, result?: any) => void;
1278
1279
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
1279
1280
  closePopOver: (confirmed?: any, result?: any) => void;
1280
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1281
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
1281
1282
  changeEmitedValue: (value: any) => void;
1282
1283
  addSubFormItem: (item: {
1283
1284
  id: string;
@@ -1812,7 +1813,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
1812
1813
  closeDialog: (confirmed?: any, result?: any) => void;
1813
1814
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
1814
1815
  closePopOver: (confirmed?: any, result?: any) => void;
1815
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1816
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
1816
1817
  changeEmitedValue: (value: any) => void;
1817
1818
  addSubFormItem: (item: {
1818
1819
  id: string;
@@ -2477,7 +2478,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
2477
2478
  closeDialog: (confirmed?: any, result?: any) => void;
2478
2479
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
2479
2480
  closePopOver: (confirmed?: any, result?: any) => void;
2480
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
2481
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
2481
2482
  changeEmitedValue: (value: any) => void;
2482
2483
  addSubFormItem: (item: {
2483
2484
  id: string;
@@ -3012,7 +3013,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
3012
3013
  closeDialog: (confirmed?: any, result?: any) => void;
3013
3014
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
3014
3015
  closePopOver: (confirmed?: any, result?: any) => void;
3015
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
3016
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
3016
3017
  changeEmitedValue: (value: any) => void;
3017
3018
  addSubFormItem: (item: {
3018
3019
  id: string;
@@ -3553,7 +3554,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
3553
3554
  closeDialog: (confirmed?: any, result?: any) => void;
3554
3555
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
3555
3556
  closePopOver: (confirmed?: any, result?: any) => void;
3556
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
3557
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
3557
3558
  changeEmitedValue: (value: any) => void;
3558
3559
  addSubFormItem: (item: {
3559
3560
  id: string;
@@ -4088,7 +4089,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
4088
4089
  closeDialog: (confirmed?: any, result?: any) => void;
4089
4090
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
4090
4091
  closePopOver: (confirmed?: any, result?: any) => void;
4091
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4092
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
4092
4093
  changeEmitedValue: (value: any) => void;
4093
4094
  addSubFormItem: (item: {
4094
4095
  id: string;
@@ -4632,7 +4633,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
4632
4633
  closeDialog: (confirmed?: any, result?: any) => void;
4633
4634
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
4634
4635
  closePopOver: (confirmed?: any, result?: any) => void;
4635
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4636
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
4636
4637
  changeEmitedValue: (value: any) => void;
4637
4638
  addSubFormItem: (item: {
4638
4639
  id: string;
@@ -5167,7 +5168,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
5167
5168
  closeDialog: (confirmed?: any, result?: any) => void;
5168
5169
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
5169
5170
  closePopOver: (confirmed?: any, result?: any) => void;
5170
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
5171
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
5171
5172
  changeEmitedValue: (value: any) => void;
5172
5173
  addSubFormItem: (item: {
5173
5174
  id: string;
@@ -5706,7 +5707,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
5706
5707
  closeDialog: (confirmed?: any, result?: any) => void;
5707
5708
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
5708
5709
  closePopOver: (confirmed?: any, result?: any) => void;
5709
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
5710
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
5710
5711
  changeEmitedValue: (value: any) => void;
5711
5712
  addSubFormItem: (item: {
5712
5713
  id: string;
@@ -6241,7 +6242,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
6241
6242
  closeDialog: (confirmed?: any, result?: any) => void;
6242
6243
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
6243
6244
  closePopOver: (confirmed?: any, result?: any) => void;
6244
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
6245
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
6245
6246
  changeEmitedValue: (value: any) => void;
6246
6247
  addSubFormItem: (item: {
6247
6248
  id: string;
@@ -6780,7 +6781,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
6780
6781
  closeDialog: (confirmed?: any, result?: any) => void;
6781
6782
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
6782
6783
  closePopOver: (confirmed?: any, result?: any) => void;
6783
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
6784
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
6784
6785
  changeEmitedValue: (value: any) => void;
6785
6786
  addSubFormItem: (item: {
6786
6787
  id: string;
@@ -7315,7 +7316,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
7315
7316
  closeDialog: (confirmed?: any, result?: any) => void;
7316
7317
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
7317
7318
  closePopOver: (confirmed?: any, result?: any) => void;
7318
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
7319
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
7319
7320
  changeEmitedValue: (value: any) => void;
7320
7321
  addSubFormItem: (item: {
7321
7322
  id: string;
@@ -7980,7 +7981,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
7980
7981
  closeDialog: (confirmed?: any, result?: any) => void;
7981
7982
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
7982
7983
  closePopOver: (confirmed?: any, result?: any) => void;
7983
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
7984
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
7984
7985
  changeEmitedValue: (value: any) => void;
7985
7986
  addSubFormItem: (item: {
7986
7987
  id: string;
@@ -8515,7 +8516,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
8515
8516
  closeDialog: (confirmed?: any, result?: any) => void;
8516
8517
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
8517
8518
  closePopOver: (confirmed?: any, result?: any) => void;
8518
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
8519
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
8519
8520
  changeEmitedValue: (value: any) => void;
8520
8521
  addSubFormItem: (item: {
8521
8522
  id: string;
@@ -9056,7 +9057,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
9056
9057
  closeDialog: (confirmed?: any, result?: any) => void;
9057
9058
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
9058
9059
  closePopOver: (confirmed?: any, result?: any) => void;
9059
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
9060
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
9060
9061
  changeEmitedValue: (value: any) => void;
9061
9062
  addSubFormItem: (item: {
9062
9063
  id: string;
@@ -9591,7 +9592,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
9591
9592
  closeDialog: (confirmed?: any, result?: any) => void;
9592
9593
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
9593
9594
  closePopOver: (confirmed?: any, result?: any) => void;
9594
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
9595
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
9595
9596
  changeEmitedValue: (value: any) => void;
9596
9597
  addSubFormItem: (item: {
9597
9598
  id: string;
@@ -10135,7 +10136,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
10135
10136
  closeDialog: (confirmed?: any, result?: any) => void;
10136
10137
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
10137
10138
  closePopOver: (confirmed?: any, result?: any) => void;
10138
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
10139
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
10139
10140
  changeEmitedValue: (value: any) => void;
10140
10141
  addSubFormItem: (item: {
10141
10142
  id: string;
@@ -10670,7 +10671,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
10670
10671
  closeDialog: (confirmed?: any, result?: any) => void;
10671
10672
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
10672
10673
  closePopOver: (confirmed?: any, result?: any) => void;
10673
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
10674
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
10674
10675
  changeEmitedValue: (value: any) => void;
10675
10676
  addSubFormItem: (item: {
10676
10677
  id: string;
@@ -11209,7 +11210,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
11209
11210
  closeDialog: (confirmed?: any, result?: any) => void;
11210
11211
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
11211
11212
  closePopOver: (confirmed?: any, result?: any) => void;
11212
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
11213
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
11213
11214
  changeEmitedValue: (value: any) => void;
11214
11215
  addSubFormItem: (item: {
11215
11216
  id: string;
@@ -11744,7 +11745,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
11744
11745
  closeDialog: (confirmed?: any, result?: any) => void;
11745
11746
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
11746
11747
  closePopOver: (confirmed?: any, result?: any) => void;
11747
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
11748
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
11748
11749
  changeEmitedValue: (value: any) => void;
11749
11750
  addSubFormItem: (item: {
11750
11751
  id: string;
@@ -12283,7 +12284,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
12283
12284
  closeDialog: (confirmed?: any, result?: any) => void;
12284
12285
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
12285
12286
  closePopOver: (confirmed?: any, result?: any) => void;
12286
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
12287
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
12287
12288
  changeEmitedValue: (value: any) => void;
12288
12289
  addSubFormItem: (item: {
12289
12290
  id: string;
@@ -12818,7 +12819,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
12818
12819
  closeDialog: (confirmed?: any, result?: any) => void;
12819
12820
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
12820
12821
  closePopOver: (confirmed?: any, result?: any) => void;
12821
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
12822
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
12822
12823
  changeEmitedValue: (value: any) => void;
12823
12824
  addSubFormItem: (item: {
12824
12825
  id: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
package/lib/store/crud.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -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, DataChangeReason, fetchOptions, Payload } from '../types';
@@ -255,7 +256,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
255
256
  closeDialog: (confirmed?: any, result?: any) => void;
256
257
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
257
258
  closePopOver: (confirmed?: any, result?: any) => void;
258
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
259
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
259
260
  changeEmitedValue: (value: any) => void;
260
261
  addSubFormItem: (item: {
261
262
  id: string;
@@ -790,7 +791,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
790
791
  closeDialog: (confirmed?: any, result?: any) => void;
791
792
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
792
793
  closePopOver: (confirmed?: any, result?: any) => void;
793
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
794
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
794
795
  changeEmitedValue: (value: any) => void;
795
796
  addSubFormItem: (item: {
796
797
  id: string;
@@ -1332,7 +1333,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1332
1333
  closeDialog: (confirmed?: any, result?: any) => void;
1333
1334
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
1334
1335
  closePopOver: (confirmed?: any, result?: any) => void;
1335
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1336
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
1336
1337
  changeEmitedValue: (value: any) => void;
1337
1338
  addSubFormItem: (item: {
1338
1339
  id: string;
@@ -1867,7 +1868,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1867
1868
  closeDialog: (confirmed?: any, result?: any) => void;
1868
1869
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
1869
1870
  closePopOver: (confirmed?: any, result?: any) => void;
1870
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
1871
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
1871
1872
  changeEmitedValue: (value: any) => void;
1872
1873
  addSubFormItem: (item: {
1873
1874
  id: string;
@@ -2411,7 +2412,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2411
2412
  closeDialog: (confirmed?: any, result?: any) => void;
2412
2413
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
2413
2414
  closePopOver: (confirmed?: any, result?: any) => void;
2414
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
2415
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
2415
2416
  changeEmitedValue: (value: any) => void;
2416
2417
  addSubFormItem: (item: {
2417
2418
  id: string;
@@ -2946,7 +2947,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2946
2947
  closeDialog: (confirmed?: any, result?: any) => void;
2947
2948
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
2948
2949
  closePopOver: (confirmed?: any, result?: any) => void;
2949
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
2950
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
2950
2951
  changeEmitedValue: (value: any) => void;
2951
2952
  addSubFormItem: (item: {
2952
2953
  id: string;
@@ -3485,7 +3486,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3485
3486
  closeDialog: (confirmed?: any, result?: any) => void;
3486
3487
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
3487
3488
  closePopOver: (confirmed?: any, result?: any) => void;
3488
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
3489
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
3489
3490
  changeEmitedValue: (value: any) => void;
3490
3491
  addSubFormItem: (item: {
3491
3492
  id: string;
@@ -4020,7 +4021,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4020
4021
  closeDialog: (confirmed?: any, result?: any) => void;
4021
4022
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
4022
4023
  closePopOver: (confirmed?: any, result?: any) => void;
4023
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4024
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
4024
4025
  changeEmitedValue: (value: any) => void;
4025
4026
  addSubFormItem: (item: {
4026
4027
  id: string;
@@ -4559,7 +4560,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4559
4560
  closeDialog: (confirmed?: any, result?: any) => void;
4560
4561
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
4561
4562
  closePopOver: (confirmed?: any, result?: any) => void;
4562
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
4563
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
4563
4564
  changeEmitedValue: (value: any) => void;
4564
4565
  addSubFormItem: (item: {
4565
4566
  id: string;
@@ -5094,7 +5095,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
5094
5095
  closeDialog: (confirmed?: any, result?: any) => void;
5095
5096
  openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
5096
5097
  closePopOver: (confirmed?: any, result?: any) => void;
5097
- changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
5098
+ changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
5098
5099
  changeEmitedValue: (value: any) => void;
5099
5100
  addSubFormItem: (item: {
5100
5101
  id: string;
package/lib/store/form.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -253,8 +253,6 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
253
253
  }
254
254
  });
255
255
  self.action = action;
256
- self.dialogData = false;
257
- self.drawerOpen = false;
258
256
  },
259
257
  openDialog: function (ctx, additonal, callback, scoped) {
260
258
  var _a, _b;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
package/lib/store/list.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
package/lib/store/node.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -1,3 +1,4 @@
1
+ /// <reference types="lodash" />
1
2
  import { Instance } from 'mobx-state-tree';
2
3
  import { GlobalVariableItem, GlobalVariableState, GlobalVariableItemFull } from '../globalVar';
3
4
  export declare const RootStore: import("mobx-state-tree").IModelType<{
@@ -85,14 +86,15 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
85
86
  fetchSchema: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
86
87
  checkRemote: (api: import("..").Api, data?: object | undefined, options?: import("..").fetchOptions | undefined) => Promise<any>;
87
88
  } & {
88
- context: {};
89
+ context: any;
90
+ legacyGlobalTempContext: any;
89
91
  globalVars: GlobalVariableItemFull[];
90
92
  globalData: any;
91
93
  } & {
92
94
  readonly nextGlobalData: any;
93
95
  readonly downStream: any;
94
96
  } & {
95
- updateContext(context: any): void;
97
+ updateContext(context: any, isInit?: boolean): void;
96
98
  updateGlobalVarState(key: string, state: Partial<GlobalVariableState>): void;
97
99
  setGlobalVars: (vars?: Array<GlobalVariableItem>) => Promise<any>;
98
100
  updateGlobalVarValue: (key: string, value: any) => void;
package/lib/store/root.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5
 
@@ -78,6 +78,7 @@ var RootStore = service.ServiceStore.named('RootStore')
78
78
  .volatile(function (self) {
79
79
  return {
80
80
  context: {},
81
+ legacyGlobalTempContext: {},
81
82
  globalVars: [],
82
83
  globalData: {
83
84
  global: {},
@@ -89,13 +90,53 @@ var RootStore = service.ServiceStore.named('RootStore')
89
90
  get nextGlobalData() {
90
91
  var globalData = {};
91
92
  var globalState = {};
92
- if (self.globalVarTempStates.size) {
93
+ var chain = object.extractObjectChain(self.data);
94
+ var touched = false;
95
+ var saved = true;
96
+ var errors = {};
97
+ var initialized = true;
98
+ self.globalVarTempStates.forEach(function (state, key) {
99
+ globalData[key] = state.value;
100
+ touched = touched || state.touched;
101
+ if (!state.saved) {
102
+ saved = false;
103
+ }
104
+ if (state.errorMessages.length) {
105
+ errors[key] = state.errorMessages;
106
+ }
107
+ if (!state.initialized) {
108
+ initialized = false;
109
+ }
110
+ });
111
+ globalState = {
112
+ fields: self.globalVarTempStates.toJSON(),
113
+ initialized: initialized,
114
+ touched: touched,
115
+ saved: saved,
116
+ errors: errors,
117
+ valid: !Object.keys(errors).length
118
+ };
119
+ chain.unshift({
120
+ global: globalData,
121
+ globalState: globalState
122
+ });
123
+ chain.unshift(self.legacyGlobalTempContext);
124
+ chain.unshift(self.context);
125
+ return object.createObjectFromChain(chain);
126
+ },
127
+ get downStream() {
128
+ var result = self.data;
129
+ if (self.context || self.query) {
130
+ var chain = object.extractObjectChain(result);
131
+ // 数据链中添加 global 和 globalState
132
+ // 对应的是全局变量的值和全局变量的状态
133
+ var globalData_1 = {};
93
134
  var touched_1 = false;
94
135
  var saved_1 = true;
95
136
  var errors_1 = {};
96
137
  var initialized_1 = true;
97
- self.globalVarTempStates.forEach(function (state, key) {
98
- globalData[key] = state.value;
138
+ self.globalVarStates.forEach(function (state, key) {
139
+ globalData_1[key] = state.value;
99
140
  touched_1 = touched_1 || state.touched;
100
141
  if (!state.saved) {
101
142
  saved_1 = false;
@@ -107,59 +148,19 @@ var RootStore = service.ServiceStore.named('RootStore')
107
148
  initialized_1 = false;
108
149
  }
109
150
  });
110
- globalState = {
111
- fields: self.globalVarTempStates.toJSON(),
151
+ // 保存全局变量的值和状态
152
+ Object.assign(self.globalData.global, globalData_1);
153
+ Object.assign(self.globalData.globalState, {
154
+ fields: self.globalVarStates.toJSON(),
112
155
  initialized: initialized_1,
113
156
  touched: touched_1,
114
157
  saved: saved_1,
115
158
  errors: errors_1,
116
159
  valid: !Object.keys(errors_1).length
117
- };
118
- }
119
- return object.createObject(self.context, {
120
- global: globalData,
121
- globalState: globalState
122
- });
123
- },
124
- get downStream() {
125
- var result = self.data;
126
- if (self.context || self.query || self.globalVarStates.size) {
127
- var chain = object.extractObjectChain(result);
128
- // 数据链中添加 global 和 globalState
129
- // 对应的是全局变量的值和全局变量的状态
130
- if (self.globalVarStates.size) {
131
- var globalData_1 = {};
132
- var touched_2 = false;
133
- var saved_2 = true;
134
- var errors_2 = {};
135
- var initialized_2 = true;
136
- self.globalVarStates.forEach(function (state, key) {
137
- globalData_1[key] = state.value;
138
- touched_2 = touched_2 || state.touched;
139
- if (!state.saved) {
140
- saved_2 = false;
141
- }
142
- if (state.errorMessages.length) {
143
- errors_2[key] = state.errorMessages;
144
- }
145
- if (!state.initialized) {
146
- initialized_2 = false;
147
- }
148
- });
149
- // 保存全局变量的值和状态
150
- Object.assign(self.globalData.global, globalData_1);
151
- Object.assign(self.globalData.globalState, {
152
- fields: self.globalVarStates.toJSON(),
153
- initialized: initialized_2,
154
- touched: touched_2,
155
- saved: saved_2,
156
- errors: errors_2,
157
- valid: !Object.keys(errors_2).length
158
- });
159
- // self.globalData 一直都是那个对象,这样组件里面始终拿到的都是最新的
160
- chain.unshift(self.globalData);
161
- }
162
- self.context && chain.unshift(self.context);
160
+ });
161
+ // self.globalData 一直都是那个对象,这样组件里面始终拿到的都是最新的
162
+ chain.unshift(self.globalData);
163
+ chain.unshift(self.context);
163
164
  self.query &&
164
165
  chain.splice(chain.length - 1, 0, tslib.__assign(tslib.__assign({}, self.query), { __query: self.query }));
165
166
  result = object.createObjectFromChain(chain);
@@ -612,6 +613,11 @@ var RootStore = service.ServiceStore.named('RootStore')
612
613
  self.globalVarTempStates.forEach(function (state, key) {
613
614
  self.globalVarStates.set(key, tslib.__assign({}, state));
614
615
  });
616
+ if (self.legacyGlobalTempContext.__page !== self.context.__page ||
617
+ self.legacyGlobalTempContext.appVariables !== self.context.appVariables) {
618
+ Object.assign(self.context, self.legacyGlobalTempContext);
619
+ self.data = object.cloneObject(self.data);
620
+ }
615
621
  }
616
622
  var pendingCount = 0;
617
623
  var callbacks = [];
@@ -628,10 +634,21 @@ var RootStore = service.ServiceStore.named('RootStore')
628
634
  });
629
635
  }
630
636
  return {
631
- updateContext: function (context) {
637
+ updateContext: function (context, isInit) {
632
638
  // 因为 context 不是受控属性,直接共用引用好了
633
639
  // 否则还会触发孩子节点的重新渲染
634
- Object.assign(self.context, context);
640
+ if (isInit === void 0) { isInit = false; }
641
+ var _a = context || {}, __page = _a.__page, appVariables = _a.appVariables, rest = tslib.__rest(_a, ["__page", "appVariables"]);
642
+ // 对历史用法做兼容
643
+ if (__page || appVariables) {
644
+ if (isInit) {
645
+ self.context.__page = context.__page;
646
+ self.context.appVariables = context.appVariables;
647
+ }
648
+ self.legacyGlobalTempContext.__page = __page;
649
+ self.legacyGlobalTempContext.appVariables = appVariables;
650
+ }
651
+ Object.assign(self.context, rest);
635
652
  },
636
653
  updateGlobalVarState: function (key, state) {
637
654
  var origin = self.globalVarTempStates.get(key);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-core v6.13.0-beta.5
2
+ * amis-core v6.13.0-beta.7
3
3
  * Copyright 2018-2025 fex
4
4
  */
5
5