amis-core 6.0.0 → 6.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 (307) hide show
  1. package/esm/Root.js +2 -2
  2. package/esm/RootRenderer.js +4 -3
  3. package/esm/SchemaRenderer.js +5 -2
  4. package/esm/Scoped.d.ts +6 -0
  5. package/esm/Scoped.js +47 -8
  6. package/esm/StatusScoped.js +2 -2
  7. package/esm/WithRootStore.js +2 -2
  8. package/esm/WithStore.js +4 -6
  9. package/esm/actions/Action.js +2 -2
  10. package/esm/actions/AjaxAction.js +2 -2
  11. package/esm/actions/BreakAction.js +2 -2
  12. package/esm/actions/BroadcastAction.js +2 -2
  13. package/esm/actions/CmptAction.js +2 -2
  14. package/esm/actions/ContinueAction.js +2 -2
  15. package/esm/actions/CopyAction.js +2 -2
  16. package/esm/actions/CustomAction.js +3 -3
  17. package/esm/actions/DialogAction.js +2 -2
  18. package/esm/actions/DrawerAction.js +2 -2
  19. package/esm/actions/EmailAction.js +2 -2
  20. package/esm/actions/LinkAction.js +10 -5
  21. package/esm/actions/LoopAction.js +2 -2
  22. package/esm/actions/PageAction.js +2 -2
  23. package/esm/actions/ParallelAction.js +2 -2
  24. package/esm/actions/PrintAction.d.ts +19 -0
  25. package/esm/actions/PrintAction.js +49 -0
  26. package/esm/actions/StatusAction.js +2 -2
  27. package/esm/actions/SwitchAction.js +2 -2
  28. package/esm/actions/ToastAction.js +2 -2
  29. package/esm/actions/index.d.ts +1 -0
  30. package/esm/components/CustomStyle.d.ts +1 -2
  31. package/esm/components/CustomStyle.js +20 -7
  32. package/esm/components/ErrorBoundary.js +2 -2
  33. package/esm/components/LazyComponent.js +2 -2
  34. package/esm/components/Overlay.js +11 -9
  35. package/esm/components/PopOver.js +7 -5
  36. package/esm/env.d.ts +4 -0
  37. package/esm/env.js +2 -2
  38. package/esm/envOverwrite.js +2 -2
  39. package/esm/factory.js +15 -2
  40. package/esm/index.d.ts +3 -2
  41. package/esm/index.js +16 -9
  42. package/esm/locale.js +2 -2
  43. package/esm/polyfills.js +2 -2
  44. package/esm/renderers/Form.d.ts +4 -3
  45. package/esm/renderers/Form.js +97 -45
  46. package/esm/renderers/Item.d.ts +1 -0
  47. package/esm/renderers/Item.js +15 -16
  48. package/esm/renderers/Options.d.ts +5 -0
  49. package/esm/renderers/Options.js +27 -10
  50. package/esm/renderers/Placeholder.js +2 -2
  51. package/esm/renderers/builtin.js +2 -2
  52. package/esm/renderers/register.js +2 -2
  53. package/esm/renderers/wrapControl.js +37 -29
  54. package/esm/store/app.js +3 -3
  55. package/esm/store/combo.d.ts +48 -24
  56. package/esm/store/combo.js +2 -2
  57. package/esm/store/crud.js +2 -2
  58. package/esm/store/form.d.ts +20 -10
  59. package/esm/store/form.js +2 -2
  60. package/esm/store/formItem.d.ts +2 -1
  61. package/esm/store/formItem.js +4 -3
  62. package/esm/store/iRenderer.js +5 -3
  63. package/esm/store/index.js +2 -2
  64. package/esm/store/list.d.ts +11 -0
  65. package/esm/store/list.js +9 -2
  66. package/esm/store/manager.js +2 -2
  67. package/esm/store/modal.js +2 -2
  68. package/esm/store/node.js +2 -2
  69. package/esm/store/pagination.js +2 -2
  70. package/esm/store/root.js +3 -3
  71. package/esm/store/service.js +6 -3
  72. package/esm/store/status.js +2 -2
  73. package/esm/store/table.d.ts +70 -47
  74. package/esm/store/table.js +40 -24
  75. package/esm/store/table2.js +2 -2
  76. package/esm/theme.js +2 -2
  77. package/esm/utils/Animation.js +2 -2
  78. package/esm/utils/ColorScale.js +2 -2
  79. package/esm/utils/DataSchema.js +2 -2
  80. package/esm/utils/DataScope.js +2 -2
  81. package/esm/utils/RootClose.js +2 -2
  82. package/esm/utils/SimpleMap.js +2 -2
  83. package/esm/utils/api.js +4 -3
  84. package/esm/utils/arraySlice.js +2 -2
  85. package/esm/utils/attachmentAdpator.js +4 -3
  86. package/esm/utils/autobind.js +2 -2
  87. package/esm/utils/browser.d.ts +1 -0
  88. package/esm/utils/browser.js +8 -3
  89. package/esm/utils/columnsSplit.js +2 -2
  90. package/esm/utils/concatData.js +2 -2
  91. package/esm/utils/dataMapping.js +2 -2
  92. package/esm/utils/date.js +2 -2
  93. package/esm/utils/debug.js +2 -2
  94. package/esm/utils/decodeEntity.js +2 -2
  95. package/esm/utils/dom.js +8 -3
  96. package/esm/utils/errors.js +2 -2
  97. package/esm/utils/escapeHtml.js +2 -2
  98. package/esm/utils/filter-schema.js +2 -2
  99. package/esm/utils/filter.js +2 -2
  100. package/esm/utils/formatDuration.js +2 -2
  101. package/esm/utils/formula.js +2 -2
  102. package/esm/utils/getVariable.js +2 -2
  103. package/esm/utils/grammar.js +2 -2
  104. package/esm/utils/handleAction.js +2 -2
  105. package/esm/utils/helper.d.ts +8 -1
  106. package/esm/utils/helper.js +28 -10
  107. package/esm/utils/highlight.js +4 -3
  108. package/esm/utils/icon.js +2 -2
  109. package/esm/utils/image.js +2 -2
  110. package/esm/utils/index.d.ts +1 -0
  111. package/esm/utils/isPureVariable.js +2 -2
  112. package/esm/utils/json-schema-2-amis-schema.js +2 -2
  113. package/esm/utils/keyToPath.js +2 -2
  114. package/esm/utils/labelToString.d.ts +1 -0
  115. package/esm/utils/labelToString.js +38 -0
  116. package/esm/utils/makeSorter.js +2 -2
  117. package/esm/utils/math.js +2 -2
  118. package/esm/utils/memoryParse.js +2 -2
  119. package/esm/utils/normalizeLink.js +2 -2
  120. package/esm/utils/normalizeOptions.js +2 -2
  121. package/esm/utils/object.js +2 -2
  122. package/esm/utils/offset.js +2 -2
  123. package/esm/utils/offsetParent.js +2 -2
  124. package/esm/utils/optionValueCompare.js +2 -2
  125. package/esm/utils/position.js +2 -2
  126. package/esm/utils/prettyBytes.js +2 -2
  127. package/esm/utils/printElement.d.ts +6 -0
  128. package/esm/utils/printElement.js +71 -0
  129. package/esm/utils/renderer-event.js +2 -2
  130. package/esm/utils/replaceText.js +10 -12
  131. package/esm/utils/resize-sensor.js +2 -2
  132. package/esm/utils/resolveCondition.js +2 -2
  133. package/esm/utils/resolveVariable.js +2 -2
  134. package/esm/utils/resolveVariableAndFilter.js +2 -2
  135. package/esm/utils/resolveVariableAndFilterForAsync.js +2 -2
  136. package/esm/utils/scrollPosition.js +2 -2
  137. package/esm/utils/string2regExp.d.ts +1 -1
  138. package/esm/utils/string2regExp.js +5 -4
  139. package/esm/utils/stripNumber.js +2 -2
  140. package/esm/utils/style-helper.d.ts +24 -5
  141. package/esm/utils/style-helper.js +47 -17
  142. package/esm/utils/style.js +2 -2
  143. package/esm/utils/toNumber.js +2 -2
  144. package/esm/utils/tokenize.d.ts +1 -0
  145. package/esm/utils/tokenize.js +11 -4
  146. package/esm/utils/tpl-builtin.js +2 -2
  147. package/esm/utils/tpl-lodash.js +2 -2
  148. package/esm/utils/tpl.js +7 -9
  149. package/esm/utils/uncontrollable.js +2 -2
  150. package/esm/utils/validateId.d.ts +16 -0
  151. package/esm/utils/validateId.js +154 -0
  152. package/esm/utils/validations.js +17 -9
  153. package/lib/Root.js +2 -2
  154. package/lib/RootRenderer.d.ts +1 -1
  155. package/lib/RootRenderer.js +4 -3
  156. package/lib/SchemaRenderer.js +5 -2
  157. package/lib/Scoped.d.ts +6 -0
  158. package/lib/Scoped.js +47 -7
  159. package/lib/StatusScoped.js +2 -2
  160. package/lib/WithRootStore.js +2 -2
  161. package/lib/WithStore.js +4 -6
  162. package/lib/actions/Action.js +2 -2
  163. package/lib/actions/AjaxAction.js +2 -2
  164. package/lib/actions/BreakAction.js +2 -2
  165. package/lib/actions/BroadcastAction.js +2 -2
  166. package/lib/actions/CmptAction.js +2 -2
  167. package/lib/actions/ContinueAction.js +2 -2
  168. package/lib/actions/CopyAction.js +2 -2
  169. package/lib/actions/CustomAction.js +3 -3
  170. package/lib/actions/DialogAction.js +2 -2
  171. package/lib/actions/DrawerAction.js +2 -2
  172. package/lib/actions/EmailAction.js +2 -2
  173. package/lib/actions/LinkAction.js +10 -5
  174. package/lib/actions/LoopAction.js +2 -2
  175. package/lib/actions/PageAction.js +2 -2
  176. package/lib/actions/ParallelAction.js +2 -2
  177. package/lib/actions/PrintAction.d.ts +19 -0
  178. package/lib/actions/PrintAction.js +53 -0
  179. package/lib/actions/StatusAction.js +2 -2
  180. package/lib/actions/SwitchAction.js +2 -2
  181. package/lib/actions/ToastAction.js +2 -2
  182. package/lib/actions/index.d.ts +1 -0
  183. package/lib/components/CustomStyle.d.ts +1 -2
  184. package/lib/components/CustomStyle.js +20 -7
  185. package/lib/components/ErrorBoundary.js +2 -2
  186. package/lib/components/LazyComponent.js +2 -2
  187. package/lib/components/Overlay.js +10 -8
  188. package/lib/components/PopOver.js +7 -5
  189. package/lib/env.d.ts +4 -0
  190. package/lib/env.js +2 -2
  191. package/lib/envOverwrite.js +2 -2
  192. package/lib/factory.js +15 -2
  193. package/lib/index.d.ts +3 -2
  194. package/lib/index.js +19 -5
  195. package/lib/locale.js +2 -2
  196. package/lib/polyfills.js +2 -2
  197. package/lib/renderers/Form.d.ts +4 -3
  198. package/lib/renderers/Form.js +96 -44
  199. package/lib/renderers/Item.d.ts +1 -0
  200. package/lib/renderers/Item.js +15 -16
  201. package/lib/renderers/Options.d.ts +5 -0
  202. package/lib/renderers/Options.js +27 -10
  203. package/lib/renderers/Placeholder.js +2 -2
  204. package/lib/renderers/builtin.js +2 -2
  205. package/lib/renderers/register.js +2 -2
  206. package/lib/renderers/wrapControl.js +36 -28
  207. package/lib/store/app.js +3 -3
  208. package/lib/store/combo.d.ts +72 -48
  209. package/lib/store/combo.js +2 -2
  210. package/lib/store/crud.js +2 -2
  211. package/lib/store/form.d.ts +30 -20
  212. package/lib/store/form.js +2 -2
  213. package/lib/store/formItem.d.ts +2 -1
  214. package/lib/store/formItem.js +4 -3
  215. package/lib/store/iRenderer.js +5 -3
  216. package/lib/store/index.js +2 -2
  217. package/lib/store/list.d.ts +11 -0
  218. package/lib/store/list.js +9 -2
  219. package/lib/store/manager.js +2 -2
  220. package/lib/store/modal.js +2 -2
  221. package/lib/store/node.js +2 -2
  222. package/lib/store/pagination.js +2 -2
  223. package/lib/store/root.js +3 -3
  224. package/lib/store/service.js +6 -3
  225. package/lib/store/status.js +2 -2
  226. package/lib/store/table.d.ts +90 -68
  227. package/lib/store/table.js +40 -24
  228. package/lib/store/table2.js +2 -2
  229. package/lib/theme.js +2 -2
  230. package/lib/utils/Animation.js +2 -2
  231. package/lib/utils/ColorScale.js +2 -2
  232. package/lib/utils/DataSchema.js +2 -2
  233. package/lib/utils/DataScope.js +2 -2
  234. package/lib/utils/RootClose.js +2 -2
  235. package/lib/utils/SimpleMap.js +2 -2
  236. package/lib/utils/api.js +4 -3
  237. package/lib/utils/arraySlice.js +2 -2
  238. package/lib/utils/attachmentAdpator.js +4 -3
  239. package/lib/utils/autobind.js +2 -2
  240. package/lib/utils/browser.d.ts +1 -0
  241. package/lib/utils/browser.js +8 -2
  242. package/lib/utils/columnsSplit.js +2 -2
  243. package/lib/utils/concatData.js +2 -2
  244. package/lib/utils/dataMapping.js +2 -2
  245. package/lib/utils/date.js +2 -2
  246. package/lib/utils/debug.js +2 -2
  247. package/lib/utils/decodeEntity.js +2 -2
  248. package/lib/utils/dom.js +8 -3
  249. package/lib/utils/errors.js +2 -2
  250. package/lib/utils/escapeHtml.js +2 -2
  251. package/lib/utils/filter-schema.js +2 -2
  252. package/lib/utils/filter.js +2 -2
  253. package/lib/utils/formatDuration.js +2 -2
  254. package/lib/utils/formula.js +2 -2
  255. package/lib/utils/getVariable.js +2 -2
  256. package/lib/utils/grammar.js +2 -2
  257. package/lib/utils/handleAction.js +2 -2
  258. package/lib/utils/helper.d.ts +8 -1
  259. package/lib/utils/helper.js +29 -8
  260. package/lib/utils/highlight.js +4 -3
  261. package/lib/utils/icon.js +2 -2
  262. package/lib/utils/image.js +2 -2
  263. package/lib/utils/index.d.ts +1 -0
  264. package/lib/utils/isPureVariable.js +2 -2
  265. package/lib/utils/json-schema-2-amis-schema.js +2 -2
  266. package/lib/utils/keyToPath.js +2 -2
  267. package/lib/utils/labelToString.d.ts +1 -0
  268. package/lib/utils/labelToString.js +46 -0
  269. package/lib/utils/makeSorter.js +2 -2
  270. package/lib/utils/math.js +2 -2
  271. package/lib/utils/memoryParse.js +2 -2
  272. package/lib/utils/normalizeLink.js +2 -2
  273. package/lib/utils/normalizeOptions.js +2 -2
  274. package/lib/utils/object.js +2 -2
  275. package/lib/utils/offset.js +2 -2
  276. package/lib/utils/offsetParent.js +2 -2
  277. package/lib/utils/optionValueCompare.js +2 -2
  278. package/lib/utils/position.js +2 -2
  279. package/lib/utils/prettyBytes.js +2 -2
  280. package/lib/utils/printElement.d.ts +6 -0
  281. package/lib/utils/printElement.js +75 -0
  282. package/lib/utils/renderer-event.js +2 -2
  283. package/lib/utils/replaceText.js +9 -15
  284. package/lib/utils/resize-sensor.js +2 -2
  285. package/lib/utils/resolveCondition.js +2 -2
  286. package/lib/utils/resolveVariable.js +2 -2
  287. package/lib/utils/resolveVariableAndFilter.js +2 -2
  288. package/lib/utils/resolveVariableAndFilterForAsync.js +2 -2
  289. package/lib/utils/scrollPosition.js +2 -2
  290. package/lib/utils/string2regExp.d.ts +1 -1
  291. package/lib/utils/string2regExp.js +5 -4
  292. package/lib/utils/stripNumber.js +2 -2
  293. package/lib/utils/style-helper.d.ts +24 -5
  294. package/lib/utils/style-helper.js +47 -17
  295. package/lib/utils/style.js +2 -2
  296. package/lib/utils/toNumber.js +2 -2
  297. package/lib/utils/tokenize.d.ts +1 -0
  298. package/lib/utils/tokenize.js +11 -3
  299. package/lib/utils/tpl-builtin.js +2 -2
  300. package/lib/utils/tpl-lodash.js +2 -2
  301. package/lib/utils/tpl.js +6 -8
  302. package/lib/utils/uncontrollable.js +2 -2
  303. package/lib/utils/validateId.d.ts +16 -0
  304. package/lib/utils/validateId.js +160 -0
  305. package/lib/utils/validations.js +17 -9
  306. package/package.json +4 -9
  307. package/LICENSE +0 -201
@@ -96,7 +96,8 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
96
96
  } & {
97
97
  focus: () => void;
98
98
  blur: () => void;
99
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
99
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
100
+ name?: string | undefined;
100
101
  extraName?: string | undefined;
101
102
  required?: boolean | undefined;
102
103
  unique?: boolean | undefined;
@@ -605,7 +606,8 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
605
606
  } & {
606
607
  focus: () => void;
607
608
  blur: () => void;
608
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
609
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
610
+ name?: string | undefined;
609
611
  extraName?: string | undefined;
610
612
  required?: boolean | undefined;
611
613
  unique?: boolean | undefined;
@@ -1146,7 +1148,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
1146
1148
  } & {
1147
1149
  focus: () => void;
1148
1150
  blur: () => void;
1149
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1151
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1152
+ name?: string | undefined;
1150
1153
  extraName?: string | undefined;
1151
1154
  required?: boolean | undefined;
1152
1155
  unique?: boolean | undefined;
@@ -1655,7 +1658,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
1655
1658
  } & {
1656
1659
  focus: () => void;
1657
1660
  blur: () => void;
1658
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1661
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1662
+ name?: string | undefined;
1659
1663
  extraName?: string | undefined;
1660
1664
  required?: boolean | undefined;
1661
1665
  unique?: boolean | undefined;
@@ -2285,7 +2289,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
2285
2289
  } & {
2286
2290
  focus: () => void;
2287
2291
  blur: () => void;
2288
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2292
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2293
+ name?: string | undefined;
2289
2294
  extraName?: string | undefined;
2290
2295
  required?: boolean | undefined;
2291
2296
  unique?: boolean | undefined;
@@ -2794,7 +2799,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
2794
2799
  } & {
2795
2800
  focus: () => void;
2796
2801
  blur: () => void;
2797
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2802
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2803
+ name?: string | undefined;
2798
2804
  extraName?: string | undefined;
2799
2805
  required?: boolean | undefined;
2800
2806
  unique?: boolean | undefined;
@@ -3307,7 +3313,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
3307
3313
  } & {
3308
3314
  focus: () => void;
3309
3315
  blur: () => void;
3310
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3316
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3317
+ name?: string | undefined;
3311
3318
  extraName?: string | undefined;
3312
3319
  required?: boolean | undefined;
3313
3320
  unique?: boolean | undefined;
@@ -3816,7 +3823,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
3816
3823
  } & {
3817
3824
  focus: () => void;
3818
3825
  blur: () => void;
3819
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3826
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3827
+ name?: string | undefined;
3820
3828
  extraName?: string | undefined;
3821
3829
  required?: boolean | undefined;
3822
3830
  unique?: boolean | undefined;
@@ -4334,7 +4342,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
4334
4342
  } & {
4335
4343
  focus: () => void;
4336
4344
  blur: () => void;
4337
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4345
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4346
+ name?: string | undefined;
4338
4347
  extraName?: string | undefined;
4339
4348
  required?: boolean | undefined;
4340
4349
  unique?: boolean | undefined;
@@ -4843,7 +4852,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
4843
4852
  } & {
4844
4853
  focus: () => void;
4845
4854
  blur: () => void;
4846
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4855
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4856
+ name?: string | undefined;
4847
4857
  extraName?: string | undefined;
4848
4858
  required?: boolean | undefined;
4849
4859
  unique?: boolean | undefined;
@@ -5356,7 +5366,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
5356
5366
  } & {
5357
5367
  focus: () => void;
5358
5368
  blur: () => void;
5359
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
5369
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
5370
+ name?: string | undefined;
5360
5371
  extraName?: string | undefined;
5361
5372
  required?: boolean | undefined;
5362
5373
  unique?: boolean | undefined;
@@ -5865,7 +5876,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
5865
5876
  } & {
5866
5877
  focus: () => void;
5867
5878
  blur: () => void;
5868
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
5879
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
5880
+ name?: string | undefined;
5869
5881
  extraName?: string | undefined;
5870
5882
  required?: boolean | undefined;
5871
5883
  unique?: boolean | undefined;
@@ -6378,7 +6390,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
6378
6390
  } & {
6379
6391
  focus: () => void;
6380
6392
  blur: () => void;
6381
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
6393
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
6394
+ name?: string | undefined;
6382
6395
  extraName?: string | undefined;
6383
6396
  required?: boolean | undefined;
6384
6397
  unique?: boolean | undefined;
@@ -6887,7 +6900,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
6887
6900
  } & {
6888
6901
  focus: () => void;
6889
6902
  blur: () => void;
6890
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
6903
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
6904
+ name?: string | undefined;
6891
6905
  extraName?: string | undefined;
6892
6906
  required?: boolean | undefined;
6893
6907
  unique?: boolean | undefined;
@@ -7519,7 +7533,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
7519
7533
  } & {
7520
7534
  focus: () => void;
7521
7535
  blur: () => void;
7522
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
7536
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
7537
+ name?: string | undefined;
7523
7538
  extraName?: string | undefined;
7524
7539
  required?: boolean | undefined;
7525
7540
  unique?: boolean | undefined;
@@ -8028,7 +8043,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
8028
8043
  } & {
8029
8044
  focus: () => void;
8030
8045
  blur: () => void;
8031
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
8046
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
8047
+ name?: string | undefined;
8032
8048
  extraName?: string | undefined;
8033
8049
  required?: boolean | undefined;
8034
8050
  unique?: boolean | undefined;
@@ -8541,7 +8557,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
8541
8557
  } & {
8542
8558
  focus: () => void;
8543
8559
  blur: () => void;
8544
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
8560
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
8561
+ name?: string | undefined;
8545
8562
  extraName?: string | undefined;
8546
8563
  required?: boolean | undefined;
8547
8564
  unique?: boolean | undefined;
@@ -9050,7 +9067,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
9050
9067
  } & {
9051
9068
  focus: () => void;
9052
9069
  blur: () => void;
9053
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
9070
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
9071
+ name?: string | undefined;
9054
9072
  extraName?: string | undefined;
9055
9073
  required?: boolean | undefined;
9056
9074
  unique?: boolean | undefined;
@@ -9568,7 +9586,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
9568
9586
  } & {
9569
9587
  focus: () => void;
9570
9588
  blur: () => void;
9571
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
9589
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
9590
+ name?: string | undefined;
9572
9591
  extraName?: string | undefined;
9573
9592
  required?: boolean | undefined;
9574
9593
  unique?: boolean | undefined;
@@ -10077,7 +10096,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
10077
10096
  } & {
10078
10097
  focus: () => void;
10079
10098
  blur: () => void;
10080
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
10099
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
10100
+ name?: string | undefined;
10081
10101
  extraName?: string | undefined;
10082
10102
  required?: boolean | undefined;
10083
10103
  unique?: boolean | undefined;
@@ -10590,7 +10610,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
10590
10610
  } & {
10591
10611
  focus: () => void;
10592
10612
  blur: () => void;
10593
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
10613
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
10614
+ name?: string | undefined;
10594
10615
  extraName?: string | undefined;
10595
10616
  required?: boolean | undefined;
10596
10617
  unique?: boolean | undefined;
@@ -11099,7 +11120,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
11099
11120
  } & {
11100
11121
  focus: () => void;
11101
11122
  blur: () => void;
11102
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
11123
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
11124
+ name?: string | undefined;
11103
11125
  extraName?: string | undefined;
11104
11126
  required?: boolean | undefined;
11105
11127
  unique?: boolean | undefined;
@@ -11612,7 +11634,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
11612
11634
  } & {
11613
11635
  focus: () => void;
11614
11636
  blur: () => void;
11615
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
11637
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
11638
+ name?: string | undefined;
11616
11639
  extraName?: string | undefined;
11617
11640
  required?: boolean | undefined;
11618
11641
  unique?: boolean | undefined;
@@ -12121,7 +12144,8 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
12121
12144
  } & {
12122
12145
  focus: () => void;
12123
12146
  blur: () => void;
12124
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
12147
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
12148
+ name?: string | undefined;
12125
12149
  extraName?: string | undefined;
12126
12150
  required?: boolean | undefined;
12127
12151
  unique?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { __assign } from 'tslib';
package/esm/store/crud.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { __extends, __assign, __generator, __rest, __values, __spreadArray, __read, __awaiter } from 'tslib';
@@ -174,7 +174,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
174
174
  } & {
175
175
  focus: () => void;
176
176
  blur: () => void;
177
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
177
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
178
+ name?: string | undefined;
178
179
  extraName?: string | undefined;
179
180
  required?: boolean | undefined;
180
181
  unique?: boolean | undefined;
@@ -683,7 +684,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
683
684
  } & {
684
685
  focus: () => void;
685
686
  blur: () => void;
686
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
687
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
688
+ name?: string | undefined;
687
689
  extraName?: string | undefined;
688
690
  required?: boolean | undefined;
689
691
  unique?: boolean | undefined;
@@ -1197,7 +1199,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1197
1199
  } & {
1198
1200
  focus: () => void;
1199
1201
  blur: () => void;
1200
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1202
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1203
+ name?: string | undefined;
1201
1204
  extraName?: string | undefined;
1202
1205
  required?: boolean | undefined;
1203
1206
  unique?: boolean | undefined;
@@ -1706,7 +1709,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
1706
1709
  } & {
1707
1710
  focus: () => void;
1708
1711
  blur: () => void;
1709
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1712
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
1713
+ name?: string | undefined;
1710
1714
  extraName?: string | undefined;
1711
1715
  required?: boolean | undefined;
1712
1716
  unique?: boolean | undefined;
@@ -2224,7 +2228,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2224
2228
  } & {
2225
2229
  focus: () => void;
2226
2230
  blur: () => void;
2227
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2231
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2232
+ name?: string | undefined;
2228
2233
  extraName?: string | undefined;
2229
2234
  required?: boolean | undefined;
2230
2235
  unique?: boolean | undefined;
@@ -2733,7 +2738,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
2733
2738
  } & {
2734
2739
  focus: () => void;
2735
2740
  blur: () => void;
2736
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2741
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
2742
+ name?: string | undefined;
2737
2743
  extraName?: string | undefined;
2738
2744
  required?: boolean | undefined;
2739
2745
  unique?: boolean | undefined;
@@ -3246,7 +3252,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3246
3252
  } & {
3247
3253
  focus: () => void;
3248
3254
  blur: () => void;
3249
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3255
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3256
+ name?: string | undefined;
3250
3257
  extraName?: string | undefined;
3251
3258
  required?: boolean | undefined;
3252
3259
  unique?: boolean | undefined;
@@ -3755,7 +3762,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
3755
3762
  } & {
3756
3763
  focus: () => void;
3757
3764
  blur: () => void;
3758
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3765
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
3766
+ name?: string | undefined;
3759
3767
  extraName?: string | undefined;
3760
3768
  required?: boolean | undefined;
3761
3769
  unique?: boolean | undefined;
@@ -4268,7 +4276,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4268
4276
  } & {
4269
4277
  focus: () => void;
4270
4278
  blur: () => void;
4271
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4279
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4280
+ name?: string | undefined;
4272
4281
  extraName?: string | undefined;
4273
4282
  required?: boolean | undefined;
4274
4283
  unique?: boolean | undefined;
@@ -4777,7 +4786,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
4777
4786
  } & {
4778
4787
  focus: () => void;
4779
4788
  blur: () => void;
4780
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4789
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
4790
+ name?: string | undefined;
4781
4791
  extraName?: string | undefined;
4782
4792
  required?: boolean | undefined;
4783
4793
  unique?: boolean | undefined;
package/esm/store/form.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { __generator, __assign, __read, __spreadArray } from 'tslib';
@@ -92,7 +92,8 @@ export declare const FormItemStore: import("mobx-state-tree").IModelType<{
92
92
  } & {
93
93
  focus: () => void;
94
94
  blur: () => void;
95
- config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
95
+ config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
96
+ name?: string | undefined;
96
97
  extraName?: string | undefined;
97
98
  required?: boolean | undefined;
98
99
  unique?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { __generator, __assign, __values, __spreadArray, __read } from 'tslib';
@@ -257,10 +257,11 @@ var FormItemStore = StoreNode.named('FormItemStore')
257
257
  var dialogCallbacks = new SimpleMap();
258
258
  var loadAutoUpdateCancel = null;
259
259
  function config(_a) {
260
- var extraName = _a.extraName, required = _a.required, unique = _a.unique; _a.value; var isValueSchemaExp = _a.isValueSchemaExp, rules = _a.rules, messages = _a.messages, delimiter = _a.delimiter, multiple = _a.multiple, valueField = _a.valueField, labelField = _a.labelField, joinValues = _a.joinValues, extractValue = _a.extractValue, type = _a.type, id = _a.id, selectFirst = _a.selectFirst, autoFill = _a.autoFill, clearValueOnHidden = _a.clearValueOnHidden, validateApi = _a.validateApi, maxLength = _a.maxLength, minLength = _a.minLength, validateOnChange = _a.validateOnChange, label = _a.label, inputGroupControl = _a.inputGroupControl, pagination = _a.pagination;
260
+ var name = _a.name, extraName = _a.extraName, required = _a.required, unique = _a.unique; _a.value; var isValueSchemaExp = _a.isValueSchemaExp, rules = _a.rules, messages = _a.messages, delimiter = _a.delimiter, multiple = _a.multiple, valueField = _a.valueField, labelField = _a.labelField, joinValues = _a.joinValues, extractValue = _a.extractValue, type = _a.type, id = _a.id, selectFirst = _a.selectFirst, autoFill = _a.autoFill, clearValueOnHidden = _a.clearValueOnHidden, validateApi = _a.validateApi, maxLength = _a.maxLength, minLength = _a.minLength, validateOnChange = _a.validateOnChange, label = _a.label, inputGroupControl = _a.inputGroupControl, pagination = _a.pagination;
261
261
  if (typeof rules === 'string') {
262
262
  rules = str2rules(rules);
263
263
  }
264
+ typeof name !== 'undefined' && (self.name = name);
264
265
  typeof extraName !== 'undefined' && (self.extraName = extraName);
265
266
  typeof type !== 'undefined' && (self.type = type);
266
267
  typeof id !== 'undefined' && (self.itemId = id);
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { __assign } from 'tslib';
@@ -34,11 +34,11 @@ import '../utils/image.js';
34
34
  import 'lodash/isEqual';
35
35
  import '../actions/Action.js';
36
36
  import 'lodash/debounce';
37
- import 'lodash/cloneDeep';
38
37
  import '../utils/resize-sensor.js';
39
38
  import 'react-overlays/useRootClose';
40
39
  import 'lodash/mapValues';
41
40
  import 'lodash/camelCase';
41
+ import 'lodash/cloneDeep';
42
42
  import 'lodash/map';
43
43
  import 'lodash/isEmpty';
44
44
  import 'lodash/kebabCase';
@@ -166,6 +166,8 @@ var iRendererStore = StoreNode.named('iRendererStore')
166
166
  },
167
167
  setCurrentAction: function (action) {
168
168
  self.action = action;
169
+ self.dialogData = false;
170
+ self.drawerOpen = false;
169
171
  },
170
172
  openDialog: function (ctx, additonal, callback, scoped) {
171
173
  var chain = extractObjectChain(ctx);
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { setLivelinessChecking, types, getEnv } from 'mobx-state-tree';
@@ -16,6 +16,7 @@ export declare const Item: import("mobx-state-tree").IModelType<{
16
16
  toggle(): void;
17
17
  change(values: object, savePristine?: boolean): void;
18
18
  reset(): void;
19
+ updateData({ children, ...rest }: any): void;
19
20
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
20
21
  export type IItem = Instance<typeof Item>;
21
22
  export type SItem = SnapshotIn<typeof Item>;
@@ -55,6 +56,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
55
56
  toggle(): void;
56
57
  change(values: object, savePristine?: boolean): void;
57
58
  reset(): void;
59
+ updateData({ children, ...rest }: any): void;
58
60
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
59
61
  selectedItems: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IModelType<{
60
62
  id: import("mobx-state-tree").ISimpleType<string>;
@@ -73,6 +75,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
73
75
  toggle(): void;
74
76
  change(values: object, savePristine?: boolean): void;
75
77
  reset(): void;
78
+ updateData({ children, ...rest }: any): void;
76
79
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
77
80
  primaryField: import("mobx-state-tree").IType<string | undefined, string, string>;
78
81
  orderBy: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -131,6 +134,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
131
134
  toggle(): void;
132
135
  change(values: object, savePristine?: boolean): void;
133
136
  reset(): void;
137
+ updateData({ children, ...rest }: any): void;
134
138
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
135
139
  id: import("mobx-state-tree").ISimpleType<string>;
136
140
  pristine: import("mobx-state-tree").IType<any, any, any>;
@@ -148,6 +152,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
148
152
  toggle(): void;
149
153
  change(values: object, savePristine?: boolean): void;
150
154
  reset(): void;
155
+ updateData({ children, ...rest }: any): void;
151
156
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
152
157
  readonly unSelectedItems: ({
153
158
  id: string;
@@ -166,6 +171,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
166
171
  toggle(): void;
167
172
  change(values: object, savePristine?: boolean): void;
168
173
  reset(): void;
174
+ updateData({ children, ...rest }: any): void;
169
175
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
170
176
  id: import("mobx-state-tree").ISimpleType<string>;
171
177
  pristine: import("mobx-state-tree").IType<any, any, any>;
@@ -183,6 +189,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
183
189
  toggle(): void;
184
190
  change(values: object, savePristine?: boolean): void;
185
191
  reset(): void;
192
+ updateData({ children, ...rest }: any): void;
186
193
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
187
194
  isSelected: (item: IItem) => boolean;
188
195
  readonly modified: number;
@@ -203,6 +210,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
203
210
  toggle(): void;
204
211
  change(values: object, savePristine?: boolean): void;
205
212
  reset(): void;
213
+ updateData({ children, ...rest }: any): void;
206
214
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
207
215
  id: import("mobx-state-tree").ISimpleType<string>;
208
216
  pristine: import("mobx-state-tree").IType<any, any, any>;
@@ -220,6 +228,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
220
228
  toggle(): void;
221
229
  change(values: object, savePristine?: boolean): void;
222
230
  reset(): void;
231
+ updateData({ children, ...rest }: any): void;
223
232
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
224
233
  readonly moved: number;
225
234
  readonly movedItems: ({
@@ -239,6 +248,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
239
248
  toggle(): void;
240
249
  change(values: object, savePristine?: boolean): void;
241
250
  reset(): void;
251
+ updateData({ children, ...rest }: any): void;
242
252
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
243
253
  id: import("mobx-state-tree").ISimpleType<string>;
244
254
  pristine: import("mobx-state-tree").IType<any, any, any>;
@@ -256,6 +266,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
256
266
  toggle(): void;
257
267
  change(values: object, savePristine?: boolean): void;
258
268
  reset(): void;
269
+ updateData({ children, ...rest }: any): void;
259
270
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
260
271
  } & {
261
272
  update: (config: Partial<SListStore>) => void;
package/esm/store/list.js CHANGED
@@ -1,8 +1,9 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
+ import { __rest, __assign } from 'tslib';
6
7
  import { types, getParent } from 'mobx-state-tree';
7
8
  import { iRendererStore } from './iRenderer.js';
8
9
  import isEqual from 'lodash/isEqual';
@@ -64,6 +65,12 @@ var Item = types
64
65
  reset: function () {
65
66
  self.newIndex = self.index;
66
67
  self.data = self.pristine;
68
+ },
69
+ updateData: function (_a) {
70
+ _a.children; var rest = __rest(_a, ["children"]);
71
+ self.data = __assign(__assign({}, self.data), rest);
72
+ // if (Array.isArray(children)) {
73
+ // }
67
74
  }
68
75
  }); });
69
76
  var ListStore = iRendererStore
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { isAlive } from 'mobx-state-tree';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { ServiceStore } from './service.js';
package/esm/store/node.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { types, isAlive, getEnv, destroy } from 'mobx-state-tree';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import '../utils/helper.js';
package/esm/store/root.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * amis-core v6.0.0
3
- * Copyright 2018-2023 fex
2
+ * amis-core v6.2.0
3
+ * Copyright 2018-2024 fex
4
4
  */
5
5
 
6
6
  import { __assign } from 'tslib';
@@ -30,12 +30,12 @@ import '../utils/image.js';
30
30
  import 'lodash/isEqual';
31
31
  import '../actions/Action.js';
32
32
  import 'lodash/debounce';
33
- import 'lodash/cloneDeep';
34
33
  import '../utils/resize-sensor.js';
35
34
  import 'react-overlays/useRootClose';
36
35
  import '../utils/SimpleMap.js';
37
36
  import 'lodash/mapValues';
38
37
  import 'lodash/camelCase';
38
+ import 'lodash/cloneDeep';
39
39
  import 'lodash/map';
40
40
  import 'lodash/isEmpty';
41
41
  import 'lodash/kebabCase';