amis-core 6.13.0-beta.3 → 6.13.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/Root.js +1 -1
- package/esm/RootRenderer.js +3 -5
- package/esm/SchemaRenderer.js +1 -1
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +1 -1
- package/esm/actions/Action.js +1 -1
- package/esm/actions/AjaxAction.js +1 -1
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.js +1 -1
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/DialogAction.js +1 -1
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/EventAction.js +1 -1
- package/esm/actions/LinkAction.js +1 -1
- package/esm/actions/LoopAction.js +1 -1
- package/esm/actions/PageAction.js +1 -1
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/PrintAction.js +1 -1
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/WaitAction.js +1 -1
- package/esm/components/Animations.js +1 -1
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/ErrorBoundary.js +1 -1
- package/esm/components/LazyComponent.js +1 -1
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.js +1 -1
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +1 -1
- package/esm/globalVar.js +1 -1
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/index.js +4 -4
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +3 -5
- package/esm/renderers/Item.js +1 -1
- package/esm/renderers/Options.js +1 -1
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/register.js +1 -1
- package/esm/renderers/wrapControl.js +10 -4
- package/esm/store/app.d.ts +2 -0
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +6 -0
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.d.ts +2 -0
- package/esm/store/crud.js +2 -1
- package/esm/store/form.d.ts +2 -0
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.d.ts +2 -0
- package/esm/store/iRenderer.js +9 -1
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +2 -0
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.d.ts +2 -0
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.d.ts +2 -0
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.d.ts +2 -0
- package/esm/store/root.js +1 -1
- package/esm/store/service.d.ts +2 -0
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +6 -0
- package/esm/store/table.js +4 -3
- package/esm/store/table2.d.ts +2 -0
- package/esm/store/table2.js +4 -3
- package/esm/theme.js +1 -1
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +1 -1
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/animations.js +1 -1
- package/esm/utils/api.js +8 -3
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/browser.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/concatData.js +1 -1
- package/esm/utils/dataMapping.js +1 -1
- package/esm/utils/date.js +1 -1
- package/esm/utils/debug.js +1 -1
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.js +6 -3
- package/esm/utils/errors.js +2 -1
- package/esm/utils/escapeHtml.js +1 -1
- package/esm/utils/filter-schema.js +1 -1
- package/esm/utils/filter.js +1 -1
- package/esm/utils/formatDuration.js +1 -1
- package/esm/utils/formula.js +1 -1
- package/esm/utils/getPageId.js +1 -1
- package/esm/utils/getVariable.js +1 -1
- package/esm/utils/grammar.js +1 -1
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.js +1 -1
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.js +1 -1
- package/esm/utils/isPureVariable.js +1 -1
- package/esm/utils/json-schema-2-amis-schema.js +1 -1
- package/esm/utils/keyToPath.js +1 -1
- package/esm/utils/labelToString.js +1 -1
- package/esm/utils/loopTooMuch.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/math.js +1 -1
- package/esm/utils/memoryParse.js +1 -1
- package/esm/utils/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +1 -1
- package/esm/utils/object.js +1 -1
- package/esm/utils/offset.js +1 -1
- package/esm/utils/offsetParent.js +1 -1
- package/esm/utils/optionValueCompare.js +1 -1
- package/esm/utils/position.js +1 -1
- package/esm/utils/prettyBytes.js +1 -1
- package/esm/utils/printElement.js +1 -1
- package/esm/utils/renderer-event.js +1 -1
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/esm/utils/scrollPosition.js +1 -1
- package/esm/utils/string2regExp.js +1 -1
- package/esm/utils/stripNumber.js +1 -1
- package/esm/utils/style-helper.js +1 -1
- package/esm/utils/style.js +1 -1
- package/esm/utils/toNumber.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.js +1 -1
- package/esm/utils/tpl-lodash.js +1 -1
- package/esm/utils/tpl.js +1 -1
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validateId.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/esm/utils/visitedCache.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +3 -5
- package/lib/SchemaRenderer.js +1 -1
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +1 -1
- package/lib/actions/Action.js +1 -1
- package/lib/actions/AjaxAction.js +1 -1
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.js +1 -1
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/DialogAction.js +1 -1
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/EventAction.js +1 -1
- package/lib/actions/LinkAction.js +1 -1
- package/lib/actions/LoopAction.js +1 -1
- package/lib/actions/PageAction.js +1 -1
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/PrintAction.js +1 -1
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/WaitAction.js +1 -1
- package/lib/components/Animations.js +1 -1
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/ErrorBoundary.js +1 -1
- package/lib/components/LazyComponent.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.js +1 -1
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +1 -1
- package/lib/globalVar.js +1 -1
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/index.js +4 -4
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +3 -5
- package/lib/renderers/Item.js +1 -1
- package/lib/renderers/Options.js +1 -1
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/register.js +1 -1
- package/lib/renderers/wrapControl.js +10 -4
- package/lib/store/app.d.ts +2 -0
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +30 -25
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.d.ts +2 -0
- package/lib/store/crud.js +2 -1
- package/lib/store/form.d.ts +12 -11
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.d.ts +2 -0
- package/lib/store/iRenderer.js +9 -1
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +2 -0
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.d.ts +2 -0
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.d.ts +2 -0
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.d.ts +2 -1
- package/lib/store/root.js +1 -1
- package/lib/store/service.d.ts +2 -0
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +26 -21
- package/lib/store/table.js +4 -3
- package/lib/store/table2.d.ts +2 -0
- package/lib/store/table2.js +4 -3
- package/lib/theme.js +1 -1
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +1 -1
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/animations.js +1 -1
- package/lib/utils/api.js +8 -3
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/browser.js +1 -1
- package/lib/utils/columnsSplit.js +1 -1
- package/lib/utils/concatData.js +1 -1
- package/lib/utils/dataMapping.js +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/debug.js +1 -1
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +6 -3
- package/lib/utils/errors.js +2 -1
- package/lib/utils/escapeHtml.js +1 -1
- package/lib/utils/filter-schema.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatDuration.js +1 -1
- package/lib/utils/formula.js +1 -1
- package/lib/utils/getPageId.js +1 -1
- package/lib/utils/getVariable.js +1 -1
- package/lib/utils/grammar.js +1 -1
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.js +1 -1
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/isPureVariable.js +1 -1
- package/lib/utils/json-schema-2-amis-schema.js +1 -1
- package/lib/utils/keyToPath.js +1 -1
- package/lib/utils/labelToString.js +1 -1
- package/lib/utils/loopTooMuch.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/math.js +1 -1
- package/lib/utils/memoryParse.js +1 -1
- package/lib/utils/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +1 -1
- package/lib/utils/object.js +1 -1
- package/lib/utils/offset.js +1 -1
- package/lib/utils/offsetParent.js +1 -1
- package/lib/utils/optionValueCompare.js +1 -1
- package/lib/utils/position.js +1 -1
- package/lib/utils/prettyBytes.js +1 -1
- package/lib/utils/printElement.js +1 -1
- package/lib/utils/renderer-event.js +1 -1
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/lib/utils/scrollPosition.js +1 -1
- package/lib/utils/string2regExp.js +1 -1
- package/lib/utils/stripNumber.js +1 -1
- package/lib/utils/style-helper.js +1 -1
- package/lib/utils/style.js +1 -1
- package/lib/utils/toNumber.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.js +1 -1
- package/lib/utils/tpl-lodash.js +1 -1
- package/lib/utils/tpl.js +1 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validateId.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/lib/utils/visitedCache.js +1 -1
- package/package.json +2 -2
package/lib/store/iRenderer.d.ts
CHANGED
|
@@ -17,8 +17,10 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
17
17
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
18
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
19
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
21
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
22
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
23
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
22
24
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
23
25
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
26
|
}, {
|
package/lib/store/iRenderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.5
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -74,8 +74,10 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
74
74
|
pristineRaw: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
75
75
|
upStreamData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
76
76
|
action: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
77
|
+
dialogSchema: mobxStateTree.types.frozen(),
|
|
77
78
|
dialogOpen: false,
|
|
78
79
|
dialogData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
80
|
+
drawerSchema: mobxStateTree.types.frozen(),
|
|
79
81
|
drawerOpen: false,
|
|
80
82
|
drawerData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined)
|
|
81
83
|
})
|
|
@@ -275,12 +277,15 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
275
277
|
else {
|
|
276
278
|
self.dialogData = data;
|
|
277
279
|
}
|
|
280
|
+
self.dialogSchema = self.action.dialog;
|
|
278
281
|
self.dialogOpen = true;
|
|
279
282
|
callback && dialogCallbacks.set(self.dialogData, callback);
|
|
280
283
|
dialogScoped = scoped || null;
|
|
281
284
|
},
|
|
282
285
|
closeDialog: function (confirmed, data) {
|
|
283
286
|
var callback = dialogCallbacks.get(self.dialogData);
|
|
287
|
+
// 不要过早的清空,否则内部组件提前销毁,会出现 store 异常读取问题
|
|
288
|
+
// self.dialogSchema = null;
|
|
284
289
|
self.dialogOpen = false;
|
|
285
290
|
dialogScoped = null;
|
|
286
291
|
if (callback) {
|
|
@@ -309,6 +314,7 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
309
314
|
else {
|
|
310
315
|
self.drawerData = data;
|
|
311
316
|
}
|
|
317
|
+
self.drawerSchema = self.action.drawer;
|
|
312
318
|
self.drawerOpen = true;
|
|
313
319
|
if (callback) {
|
|
314
320
|
dialogCallbacks.set(self.drawerData, callback);
|
|
@@ -317,6 +323,8 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
317
323
|
},
|
|
318
324
|
closeDrawer: function (confirmed, data) {
|
|
319
325
|
var callback = dialogCallbacks.get(self.drawerData);
|
|
326
|
+
// 不要过早的清空,否则内部组件提前销毁,会出现 store 异常读取问题
|
|
327
|
+
// self.drawerSchema = null;
|
|
320
328
|
self.drawerOpen = false;
|
|
321
329
|
drawerScoped = null;
|
|
322
330
|
if (callback) {
|
package/lib/store/index.js
CHANGED
package/lib/store/list.d.ts
CHANGED
|
@@ -37,8 +37,10 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
37
37
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
38
38
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
39
39
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
40
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
40
41
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
41
42
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
43
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
42
44
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
43
45
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
44
46
|
} & {
|
package/lib/store/list.js
CHANGED
package/lib/store/manager.js
CHANGED
package/lib/store/modal.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
15
15
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
16
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
17
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
18
19
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
20
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
22
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
23
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
24
|
} & {
|
package/lib/store/modal.js
CHANGED
package/lib/store/node.js
CHANGED
|
@@ -15,8 +15,10 @@ export declare const PaginationStore: import("mobx-state-tree").IModelType<{
|
|
|
15
15
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
16
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
17
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
18
19
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
19
20
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
21
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
22
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
23
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
24
|
} & {
|
package/lib/store/pagination.js
CHANGED
package/lib/store/root.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { Instance } from 'mobx-state-tree';
|
|
3
2
|
import { GlobalVariableItem, GlobalVariableState, GlobalVariableItemFull } from '../globalVar';
|
|
4
3
|
export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
@@ -17,8 +16,10 @@ export declare const RootStore: import("mobx-state-tree").IModelType<{
|
|
|
17
16
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
17
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
18
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
20
20
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
21
21
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
22
23
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
23
24
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
24
25
|
} & {
|
package/lib/store/root.js
CHANGED
package/lib/store/service.d.ts
CHANGED
|
@@ -16,8 +16,10 @@ export declare const ServiceStore: import("mobx-state-tree").IModelType<{
|
|
|
16
16
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
17
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
18
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
19
20
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
20
21
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
21
23
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
22
24
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
23
25
|
} & {
|
package/lib/store/service.js
CHANGED
package/lib/store/status.js
CHANGED
package/lib/store/table.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { SnapshotIn, IAnyModelType, Instance } from 'mobx-state-tree';
|
|
3
2
|
import { IFormStore } from './form';
|
|
4
3
|
export declare enum SELECTED_STATUS {
|
|
@@ -123,8 +122,10 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
123
122
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
124
123
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
125
124
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
125
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
126
126
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
127
127
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
128
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
128
129
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
129
130
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
130
131
|
} & {
|
|
@@ -439,8 +440,10 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
439
440
|
pristineRaw: any;
|
|
440
441
|
upStreamData: any;
|
|
441
442
|
action: any;
|
|
443
|
+
dialogSchema: any;
|
|
442
444
|
dialogOpen: boolean;
|
|
443
445
|
dialogData: any;
|
|
446
|
+
drawerSchema: any;
|
|
444
447
|
drawerOpen: boolean;
|
|
445
448
|
drawerData: any;
|
|
446
449
|
msg: string;
|
|
@@ -673,7 +676,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
673
676
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
674
677
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
675
678
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
676
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
679
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
677
680
|
changeEmitedValue: (value: any) => void;
|
|
678
681
|
addSubFormItem: (item: {
|
|
679
682
|
id: string;
|
|
@@ -1208,7 +1211,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
1208
1211
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1209
1212
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1210
1213
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1211
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1214
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1212
1215
|
changeEmitedValue: (value: any) => void;
|
|
1213
1216
|
addSubFormItem: (item: {
|
|
1214
1217
|
id: string;
|
|
@@ -1749,7 +1752,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
1749
1752
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1750
1753
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1751
1754
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1752
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1755
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1753
1756
|
changeEmitedValue: (value: any) => void;
|
|
1754
1757
|
addSubFormItem: (item: {
|
|
1755
1758
|
id: string;
|
|
@@ -2284,7 +2287,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
2284
2287
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2285
2288
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2286
2289
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2287
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2290
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2288
2291
|
changeEmitedValue: (value: any) => void;
|
|
2289
2292
|
addSubFormItem: (item: {
|
|
2290
2293
|
id: string;
|
|
@@ -2828,7 +2831,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
2828
2831
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2829
2832
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2830
2833
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2831
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2834
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2832
2835
|
changeEmitedValue: (value: any) => void;
|
|
2833
2836
|
addSubFormItem: (item: {
|
|
2834
2837
|
id: string;
|
|
@@ -3363,7 +3366,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
3363
3366
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3364
3367
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3365
3368
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3366
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3369
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3367
3370
|
changeEmitedValue: (value: any) => void;
|
|
3368
3371
|
addSubFormItem: (item: {
|
|
3369
3372
|
id: string;
|
|
@@ -3902,7 +3905,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
3902
3905
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3903
3906
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3904
3907
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3905
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3908
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3906
3909
|
changeEmitedValue: (value: any) => void;
|
|
3907
3910
|
addSubFormItem: (item: {
|
|
3908
3911
|
id: string;
|
|
@@ -4437,7 +4440,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
4437
4440
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4438
4441
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4439
4442
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4440
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4443
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4441
4444
|
changeEmitedValue: (value: any) => void;
|
|
4442
4445
|
addSubFormItem: (item: {
|
|
4443
4446
|
id: string;
|
|
@@ -4976,7 +4979,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
4976
4979
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4977
4980
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4978
4981
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4979
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4982
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4980
4983
|
changeEmitedValue: (value: any) => void;
|
|
4981
4984
|
addSubFormItem: (item: {
|
|
4982
4985
|
id: string;
|
|
@@ -5511,7 +5514,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5511
5514
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5512
5515
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5513
5516
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5514
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5517
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5515
5518
|
changeEmitedValue: (value: any) => void;
|
|
5516
5519
|
addSubFormItem: (item: {
|
|
5517
5520
|
id: string;
|
|
@@ -5938,8 +5941,10 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5938
5941
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
5939
5942
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
5940
5943
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
5944
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
5941
5945
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
5942
5946
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
5947
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
5943
5948
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
5944
5949
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
5945
5950
|
} & {
|
|
@@ -6174,7 +6179,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
6174
6179
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6175
6180
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6176
6181
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
6177
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6182
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6178
6183
|
changeEmitedValue: (value: any) => void;
|
|
6179
6184
|
addSubFormItem: (item: {
|
|
6180
6185
|
id: string;
|
|
@@ -6709,7 +6714,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
6709
6714
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6710
6715
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6711
6716
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
6712
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6717
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6713
6718
|
changeEmitedValue: (value: any) => void;
|
|
6714
6719
|
addSubFormItem: (item: {
|
|
6715
6720
|
id: string;
|
|
@@ -7250,7 +7255,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
7250
7255
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7251
7256
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7252
7257
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
7253
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7258
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7254
7259
|
changeEmitedValue: (value: any) => void;
|
|
7255
7260
|
addSubFormItem: (item: {
|
|
7256
7261
|
id: string;
|
|
@@ -7785,7 +7790,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
7785
7790
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7786
7791
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7787
7792
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
7788
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7793
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7789
7794
|
changeEmitedValue: (value: any) => void;
|
|
7790
7795
|
addSubFormItem: (item: {
|
|
7791
7796
|
id: string;
|
|
@@ -8329,7 +8334,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
8329
8334
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
8330
8335
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
8331
8336
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
8332
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8337
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
8333
8338
|
changeEmitedValue: (value: any) => void;
|
|
8334
8339
|
addSubFormItem: (item: {
|
|
8335
8340
|
id: string;
|
|
@@ -8864,7 +8869,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
8864
8869
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
8865
8870
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
8866
8871
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
8867
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8872
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
8868
8873
|
changeEmitedValue: (value: any) => void;
|
|
8869
8874
|
addSubFormItem: (item: {
|
|
8870
8875
|
id: string;
|
|
@@ -9403,7 +9408,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
9403
9408
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9404
9409
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9405
9410
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
9406
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9411
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9407
9412
|
changeEmitedValue: (value: any) => void;
|
|
9408
9413
|
addSubFormItem: (item: {
|
|
9409
9414
|
id: string;
|
|
@@ -9938,7 +9943,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
9938
9943
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9939
9944
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9940
9945
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
9941
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9946
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9942
9947
|
changeEmitedValue: (value: any) => void;
|
|
9943
9948
|
addSubFormItem: (item: {
|
|
9944
9949
|
id: string;
|
|
@@ -10477,7 +10482,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
10477
10482
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10478
10483
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10479
10484
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
10480
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10485
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
10481
10486
|
changeEmitedValue: (value: any) => void;
|
|
10482
10487
|
addSubFormItem: (item: {
|
|
10483
10488
|
id: string;
|
|
@@ -11012,7 +11017,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
11012
11017
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11013
11018
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11014
11019
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
11015
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11020
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
11016
11021
|
changeEmitedValue: (value: any) => void;
|
|
11017
11022
|
addSubFormItem: (item: {
|
|
11018
11023
|
id: string;
|
package/lib/store/table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.5
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -1065,7 +1065,8 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1065
1065
|
cols.forEach(function (col) {
|
|
1066
1066
|
var index = parseInt(col.getAttribute('data-index'), 10);
|
|
1067
1067
|
var column = self.columns[index];
|
|
1068
|
-
|
|
1068
|
+
var realWidth = col.getBoundingClientRect().width;
|
|
1069
|
+
column.setRealWidth(realWidth);
|
|
1069
1070
|
});
|
|
1070
1071
|
}
|
|
1071
1072
|
function combineCell(arr, keys) {
|
|
@@ -1247,7 +1248,7 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1247
1248
|
function updateSelected(selected, valueField) {
|
|
1248
1249
|
self.selectedRows.clear();
|
|
1249
1250
|
selected.forEach(function (item) {
|
|
1250
|
-
var resolved = helper.findTree(self.rows, function (a) { return a.pristine === item; });
|
|
1251
|
+
var resolved = helper.findTree(self.rows, function (a) { return a.pristine === item || a.data === item; });
|
|
1251
1252
|
// 先严格比较,
|
|
1252
1253
|
if (!resolved) {
|
|
1253
1254
|
resolved = helper.findTree(self.rows, function (a) {
|
package/lib/store/table2.d.ts
CHANGED
|
@@ -59,8 +59,10 @@ export declare const TableStore2: import("mobx-state-tree").IModelType<{
|
|
|
59
59
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
60
60
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
61
61
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
62
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
62
63
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
63
64
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
65
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
64
66
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
65
67
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
66
68
|
} & {
|
package/lib/store/table2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.5
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -25,9 +25,10 @@ var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
|
25
25
|
|
|
26
26
|
var ServerError = /** @class */ (function (_super) {
|
|
27
27
|
tslib.__extends(ServerError, _super);
|
|
28
|
-
function ServerError() {
|
|
29
|
-
var _this = _super
|
|
28
|
+
function ServerError(msg) {
|
|
29
|
+
var _this = _super.call(this, msg) || this;
|
|
30
30
|
_this.type = 'ServerError';
|
|
31
|
+
Object.setPrototypeOf(_this, ServerError.prototype);
|
|
31
32
|
return _this;
|
|
32
33
|
}
|
|
33
34
|
return ServerError;
|
package/lib/theme.js
CHANGED
package/lib/utils/Animation.js
CHANGED
package/lib/utils/ColorScale.js
CHANGED
package/lib/utils/DataSchema.js
CHANGED
package/lib/utils/DataScope.js
CHANGED
package/lib/utils/RootClose.js
CHANGED
package/lib/utils/SimpleMap.js
CHANGED
package/lib/utils/animations.js
CHANGED
package/lib/utils/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.5
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -501,14 +501,19 @@ function wrapFetcher(fn, tracker) {
|
|
|
501
501
|
api.dataType === 'form') {
|
|
502
502
|
api.data = helper.qsstringify(api.data, api.qsOptions);
|
|
503
503
|
api.headers = api.headers || (api.headers = {});
|
|
504
|
-
api.headers['Content-Type']
|
|
504
|
+
if (!api.headers['Content-Type']) {
|
|
505
|
+
api.headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
506
|
+
}
|
|
505
507
|
}
|
|
506
508
|
else if (api.data &&
|
|
507
509
|
typeof api.data !== 'string' &&
|
|
508
510
|
api.dataType === 'json') {
|
|
509
511
|
api.data = JSON.stringify(api.data);
|
|
510
512
|
api.headers = api.headers || (api.headers = {});
|
|
511
|
-
|
|
513
|
+
// 避免覆盖用户自定义的Content-Type,如同为json请求,还有扩展的application/vnd.api+json
|
|
514
|
+
if (!api.headers['Content-Type']) {
|
|
515
|
+
api.headers['Content-Type'] = 'application/json';
|
|
516
|
+
}
|
|
512
517
|
}
|
|
513
518
|
// 如果发送适配器中设置了 mockResponse
|
|
514
519
|
// 则直接跳过请求发送
|
package/lib/utils/arraySlice.js
CHANGED
package/lib/utils/autobind.js
CHANGED
package/lib/utils/browser.js
CHANGED