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/globalVar.js
CHANGED
package/lib/index.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
|
|
|
@@ -145,10 +145,10 @@ var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
|
145
145
|
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
146
146
|
var classPrefix = theme.getClassPrefix();
|
|
147
147
|
// @ts-ignore
|
|
148
|
-
var version = '6.13.0-beta.
|
|
148
|
+
var version = '6.13.0-beta.5';
|
|
149
149
|
window.amisVersionInfo = {
|
|
150
|
-
version: '6.13.0-beta.
|
|
151
|
-
buildTime: '2025-04-
|
|
150
|
+
version: '6.13.0-beta.5',
|
|
151
|
+
buildTime: '2025-04-21T09:51:57.787Z'
|
|
152
152
|
};
|
|
153
153
|
function render(schema, _a, options, pathPrefix) {
|
|
154
154
|
if (_a === void 0) { _a = {}; }
|
package/lib/locale.js
CHANGED
package/lib/polyfills.js
CHANGED
package/lib/renderers/Form.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
|
|
|
@@ -1289,16 +1289,14 @@ var _J$F_ = (__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
|
1289
1289
|
}),
|
|
1290
1290
|
padDom,
|
|
1291
1291
|
restError && restError.length ? (_J$X_("ul", { className: cx('Form-restError', 'Form-feedback') }, restError.map(function (item, idx) { return (_J$X_("li", { key: idx }, item)); }))) : null,
|
|
1292
|
-
render('modal', tslib.__assign(tslib.__assign({},
|
|
1293
|
-
store.action.dialog)), { type: 'dialog' }), {
|
|
1292
|
+
render('modal', tslib.__assign(tslib.__assign({}, store.dialogSchema), { type: 'dialog' }), {
|
|
1294
1293
|
key: 'dialog',
|
|
1295
1294
|
data: store.dialogData,
|
|
1296
1295
|
onConfirm: this.handleDialogConfirm,
|
|
1297
1296
|
onClose: this.handleDialogClose,
|
|
1298
1297
|
show: store.dialogOpen
|
|
1299
1298
|
}),
|
|
1300
|
-
render('modal', tslib.__assign(tslib.__assign({},
|
|
1301
|
-
store.action.drawer)), { type: 'drawer' }), {
|
|
1299
|
+
render('modal', tslib.__assign(tslib.__assign({}, store.drawerSchema), { type: 'drawer' }), {
|
|
1302
1300
|
key: 'drawer',
|
|
1303
1301
|
data: store.drawerData,
|
|
1304
1302
|
onConfirm: this.handleDrawerConfirm,
|
package/lib/renderers/Item.js
CHANGED
package/lib/renderers/Options.js
CHANGED
package/lib/renderers/builtin.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,6 +74,7 @@ var _J$F_ = (__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
|
74
74
|
if (!name) {
|
|
75
75
|
return _this;
|
|
76
76
|
}
|
|
77
|
+
var valueIsExp = formula.isExpression(value);
|
|
77
78
|
var propValue = _this.props.value;
|
|
78
79
|
var model = rootStore.addStore({
|
|
79
80
|
id: helper.guid(),
|
|
@@ -90,8 +91,7 @@ var _J$F_ = (__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
|
90
91
|
? tslib.__assign(tslib.__assign({}, validations$1), validations.str2rules(config.validations)) : validations$1;
|
|
91
92
|
// @issue 打算干掉这个
|
|
92
93
|
formItem$1 === null || formItem$1 === void 0 ? void 0 : formItem$1.addSubFormItem(model);
|
|
93
|
-
model.config(tslib.__assign(tslib.__assign({}, pick__default["default"](tslib.__assign(tslib.__assign({}, ComposedComponent.defaultProps), _this.props.$schema), ['multiple'])), { id: id, type: type, required: props.required || required, unique: unique, value: value, isValueSchemaExp:
|
|
94
|
-
value.replace(/\s/g, '') !== "${".concat(name, "}"), rules: rules, messages: validationErrors, delimiter: delimiter, valueField: valueField, labelField: labelField, joinValues: joinValues, extractValue: extractValue, selectFirst: selectFirst, autoFill: autoFill, clearValueOnHidden: clearValueOnHidden, validateApi: validateApi, minLength: minLength, maxLength: maxLength, validateOnChange: validateOnChange, label: label, inputGroupControl: inputGroupControl, extraName: extraName, pagination: pagination }));
|
|
94
|
+
model.config(tslib.__assign(tslib.__assign({}, pick__default["default"](tslib.__assign(tslib.__assign({}, ComposedComponent.defaultProps), _this.props.$schema), ['multiple'])), { id: id, type: type, required: props.required || required, unique: unique, value: value, isValueSchemaExp: valueIsExp && value.replace(/\s/g, '') !== "${".concat(name, "}"), rules: rules, messages: validationErrors, delimiter: delimiter, valueField: valueField, labelField: labelField, joinValues: joinValues, extractValue: extractValue, selectFirst: selectFirst, autoFill: autoFill, clearValueOnHidden: clearValueOnHidden, validateApi: validateApi, minLength: minLength, maxLength: maxLength, validateOnChange: validateOnChange, label: label, inputGroupControl: inputGroupControl, extraName: extraName, pagination: pagination }));
|
|
95
95
|
// issue 这个逻辑应该在 combo 里面自己实现。
|
|
96
96
|
if (_this.model.unique &&
|
|
97
97
|
((_b = form === null || form === void 0 ? void 0 : form.parentStore) === null || _b === void 0 ? void 0 : _b.storeType) === combo.ComboStore.name) {
|
|
@@ -108,7 +108,13 @@ var _J$F_ = (__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
|
108
108
|
}
|
|
109
109
|
if (onChange &&
|
|
110
110
|
value !== undefined &&
|
|
111
|
-
model.tmpValue !== undefined
|
|
111
|
+
model.tmpValue !== undefined &&
|
|
112
|
+
// 要么是默认值起作用了
|
|
113
|
+
// 要么是表达式起作用了
|
|
114
|
+
// 只有这两种情况才会触发 onChange
|
|
115
|
+
// 比如以下 case 就不应该触发
|
|
116
|
+
// 关联到上下文数据了,同时设置了默认值,因为是上下文数据优先,这个时候就不应该触发 onChange,因为没变化
|
|
117
|
+
(value === model.tmpValue || valueIsExp)) {
|
|
112
118
|
// 组件默认值支持表达式需要: 避免初始化时上下文中丢失组件默认值
|
|
113
119
|
if (model.extraName) {
|
|
114
120
|
var values = model.splitExtraValue(model.tmpValue);
|
package/lib/store/app.d.ts
CHANGED
|
@@ -17,8 +17,10 @@ export declare const AppStore: 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/app.js
CHANGED
package/lib/store/combo.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { SnapshotIn, Instance } from 'mobx-state-tree';
|
|
3
2
|
import type { IFormStore, IFormItemStore } from './form';
|
|
4
3
|
export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
@@ -172,7 +171,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
172
171
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
173
172
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
174
173
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
175
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
174
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
176
175
|
changeEmitedValue: (value: any) => void;
|
|
177
176
|
addSubFormItem: (item: {
|
|
178
177
|
id: string;
|
|
@@ -707,7 +706,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
707
706
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
708
707
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
709
708
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
710
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
709
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
711
710
|
changeEmitedValue: (value: any) => void;
|
|
712
711
|
addSubFormItem: (item: {
|
|
713
712
|
id: string;
|
|
@@ -1100,8 +1099,10 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1100
1099
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1101
1100
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1102
1101
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1102
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
1103
1103
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1104
1104
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1105
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
1105
1106
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1106
1107
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1107
1108
|
} & {
|
|
@@ -1276,7 +1277,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1276
1277
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1277
1278
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1278
1279
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1279
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1280
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1280
1281
|
changeEmitedValue: (value: any) => void;
|
|
1281
1282
|
addSubFormItem: (item: {
|
|
1282
1283
|
id: string;
|
|
@@ -1811,7 +1812,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1811
1812
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1812
1813
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1813
1814
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1814
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1815
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1815
1816
|
changeEmitedValue: (value: any) => void;
|
|
1816
1817
|
addSubFormItem: (item: {
|
|
1817
1818
|
id: string;
|
|
@@ -2240,8 +2241,10 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2240
2241
|
pristineRaw: any;
|
|
2241
2242
|
upStreamData: any;
|
|
2242
2243
|
action: any;
|
|
2244
|
+
dialogSchema: any;
|
|
2243
2245
|
dialogOpen: boolean;
|
|
2244
2246
|
dialogData: any;
|
|
2247
|
+
drawerSchema: any;
|
|
2245
2248
|
drawerOpen: boolean;
|
|
2246
2249
|
drawerData: any;
|
|
2247
2250
|
msg: string;
|
|
@@ -2474,7 +2477,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2474
2477
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2475
2478
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2476
2479
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2477
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2480
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2478
2481
|
changeEmitedValue: (value: any) => void;
|
|
2479
2482
|
addSubFormItem: (item: {
|
|
2480
2483
|
id: string;
|
|
@@ -3009,7 +3012,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3009
3012
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3010
3013
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3011
3014
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3012
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3015
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3013
3016
|
changeEmitedValue: (value: any) => void;
|
|
3014
3017
|
addSubFormItem: (item: {
|
|
3015
3018
|
id: string;
|
|
@@ -3550,7 +3553,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3550
3553
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3551
3554
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3552
3555
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3553
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3556
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3554
3557
|
changeEmitedValue: (value: any) => void;
|
|
3555
3558
|
addSubFormItem: (item: {
|
|
3556
3559
|
id: string;
|
|
@@ -4085,7 +4088,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4085
4088
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4086
4089
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4087
4090
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4088
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4091
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4089
4092
|
changeEmitedValue: (value: any) => void;
|
|
4090
4093
|
addSubFormItem: (item: {
|
|
4091
4094
|
id: string;
|
|
@@ -4629,7 +4632,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4629
4632
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4630
4633
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4631
4634
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4632
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4635
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4633
4636
|
changeEmitedValue: (value: any) => void;
|
|
4634
4637
|
addSubFormItem: (item: {
|
|
4635
4638
|
id: string;
|
|
@@ -5164,7 +5167,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5164
5167
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5165
5168
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5166
5169
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5167
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5170
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5168
5171
|
changeEmitedValue: (value: any) => void;
|
|
5169
5172
|
addSubFormItem: (item: {
|
|
5170
5173
|
id: string;
|
|
@@ -5703,7 +5706,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5703
5706
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5704
5707
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5705
5708
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5706
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5709
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5707
5710
|
changeEmitedValue: (value: any) => void;
|
|
5708
5711
|
addSubFormItem: (item: {
|
|
5709
5712
|
id: string;
|
|
@@ -6238,7 +6241,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6238
6241
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6239
6242
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6240
6243
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
6241
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6244
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6242
6245
|
changeEmitedValue: (value: any) => void;
|
|
6243
6246
|
addSubFormItem: (item: {
|
|
6244
6247
|
id: string;
|
|
@@ -6777,7 +6780,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6777
6780
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6778
6781
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6779
6782
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
6780
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6783
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6781
6784
|
changeEmitedValue: (value: any) => void;
|
|
6782
6785
|
addSubFormItem: (item: {
|
|
6783
6786
|
id: string;
|
|
@@ -7312,7 +7315,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7312
7315
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7313
7316
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7314
7317
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
7315
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7318
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7316
7319
|
changeEmitedValue: (value: any) => void;
|
|
7317
7320
|
addSubFormItem: (item: {
|
|
7318
7321
|
id: string;
|
|
@@ -7739,8 +7742,10 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7739
7742
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7740
7743
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7741
7744
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7745
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
7742
7746
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
7743
7747
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7748
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
7744
7749
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
7745
7750
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7746
7751
|
} & {
|
|
@@ -7975,7 +7980,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7975
7980
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7976
7981
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7977
7982
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
7978
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7983
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7979
7984
|
changeEmitedValue: (value: any) => void;
|
|
7980
7985
|
addSubFormItem: (item: {
|
|
7981
7986
|
id: string;
|
|
@@ -8510,7 +8515,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
8510
8515
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
8511
8516
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
8512
8517
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
8513
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8518
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
8514
8519
|
changeEmitedValue: (value: any) => void;
|
|
8515
8520
|
addSubFormItem: (item: {
|
|
8516
8521
|
id: string;
|
|
@@ -9051,7 +9056,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9051
9056
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9052
9057
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9053
9058
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
9054
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9059
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9055
9060
|
changeEmitedValue: (value: any) => void;
|
|
9056
9061
|
addSubFormItem: (item: {
|
|
9057
9062
|
id: string;
|
|
@@ -9586,7 +9591,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9586
9591
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9587
9592
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9588
9593
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
9589
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9594
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9590
9595
|
changeEmitedValue: (value: any) => void;
|
|
9591
9596
|
addSubFormItem: (item: {
|
|
9592
9597
|
id: string;
|
|
@@ -10130,7 +10135,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10130
10135
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10131
10136
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10132
10137
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
10133
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10138
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
10134
10139
|
changeEmitedValue: (value: any) => void;
|
|
10135
10140
|
addSubFormItem: (item: {
|
|
10136
10141
|
id: string;
|
|
@@ -10665,7 +10670,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10665
10670
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10666
10671
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10667
10672
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
10668
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10673
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
10669
10674
|
changeEmitedValue: (value: any) => void;
|
|
10670
10675
|
addSubFormItem: (item: {
|
|
10671
10676
|
id: string;
|
|
@@ -11204,7 +11209,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11204
11209
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11205
11210
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11206
11211
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
11207
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11212
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
11208
11213
|
changeEmitedValue: (value: any) => void;
|
|
11209
11214
|
addSubFormItem: (item: {
|
|
11210
11215
|
id: string;
|
|
@@ -11739,7 +11744,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11739
11744
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11740
11745
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11741
11746
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
11742
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11747
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
11743
11748
|
changeEmitedValue: (value: any) => void;
|
|
11744
11749
|
addSubFormItem: (item: {
|
|
11745
11750
|
id: string;
|
|
@@ -12278,7 +12283,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
12278
12283
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
12279
12284
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
12280
12285
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
12281
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
12286
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
12282
12287
|
changeEmitedValue: (value: any) => void;
|
|
12283
12288
|
addSubFormItem: (item: {
|
|
12284
12289
|
id: string;
|
|
@@ -12813,7 +12818,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
12813
12818
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
12814
12819
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
12815
12820
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
12816
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
12821
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
12817
12822
|
changeEmitedValue: (value: any) => void;
|
|
12818
12823
|
addSubFormItem: (item: {
|
|
12819
12824
|
id: string;
|
package/lib/store/combo.js
CHANGED
package/lib/store/crud.d.ts
CHANGED
|
@@ -30,8 +30,10 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
30
30
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
31
31
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
32
32
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
33
|
+
dialogSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
33
34
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
34
35
|
dialogData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
36
|
+
drawerSchema: import("mobx-state-tree").IType<any, any, any>;
|
|
35
37
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
38
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
37
39
|
} & {
|
package/lib/store/crud.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
|
|
|
@@ -34,6 +34,7 @@ var ServerError = /** @class */ (function (_super) {
|
|
|
34
34
|
function ServerError(msg, response) {
|
|
35
35
|
var _this = _super.call(this, msg) || this;
|
|
36
36
|
_this.type = 'ServerError';
|
|
37
|
+
Object.setPrototypeOf(_this, ServerError.prototype);
|
|
37
38
|
_this.response = response;
|
|
38
39
|
return _this;
|
|
39
40
|
}
|
package/lib/store/form.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { Instance } from 'mobx-state-tree';
|
|
3
2
|
import type { IFormItemStore } from './formItem';
|
|
4
3
|
import { Api, DataChangeReason, fetchOptions, Payload } from '../types';
|
|
@@ -18,8 +17,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
18
17
|
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
18
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
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>;
|
|
21
21
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
22
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>;
|
|
23
24
|
drawerOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
24
25
|
drawerData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
25
26
|
} & {
|
|
@@ -254,7 +255,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
254
255
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
255
256
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
256
257
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
257
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
258
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
258
259
|
changeEmitedValue: (value: any) => void;
|
|
259
260
|
addSubFormItem: (item: {
|
|
260
261
|
id: string;
|
|
@@ -789,7 +790,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
789
790
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
790
791
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
791
792
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
792
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
793
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
793
794
|
changeEmitedValue: (value: any) => void;
|
|
794
795
|
addSubFormItem: (item: {
|
|
795
796
|
id: string;
|
|
@@ -1331,7 +1332,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1331
1332
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1332
1333
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1333
1334
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1334
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1335
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1335
1336
|
changeEmitedValue: (value: any) => void;
|
|
1336
1337
|
addSubFormItem: (item: {
|
|
1337
1338
|
id: string;
|
|
@@ -1866,7 +1867,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1866
1867
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1867
1868
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1868
1869
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
1869
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1870
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1870
1871
|
changeEmitedValue: (value: any) => void;
|
|
1871
1872
|
addSubFormItem: (item: {
|
|
1872
1873
|
id: string;
|
|
@@ -2410,7 +2411,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2410
2411
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2411
2412
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2412
2413
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2413
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2414
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2414
2415
|
changeEmitedValue: (value: any) => void;
|
|
2415
2416
|
addSubFormItem: (item: {
|
|
2416
2417
|
id: string;
|
|
@@ -2945,7 +2946,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2945
2946
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2946
2947
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2947
2948
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
2948
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2949
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2949
2950
|
changeEmitedValue: (value: any) => void;
|
|
2950
2951
|
addSubFormItem: (item: {
|
|
2951
2952
|
id: string;
|
|
@@ -3484,7 +3485,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3484
3485
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3485
3486
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3486
3487
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
3487
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3488
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3488
3489
|
changeEmitedValue: (value: any) => void;
|
|
3489
3490
|
addSubFormItem: (item: {
|
|
3490
3491
|
id: string;
|
|
@@ -4019,7 +4020,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4019
4020
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4020
4021
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4021
4022
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4022
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4023
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4023
4024
|
changeEmitedValue: (value: any) => void;
|
|
4024
4025
|
addSubFormItem: (item: {
|
|
4025
4026
|
id: string;
|
|
@@ -4558,7 +4559,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4558
4559
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4559
4560
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4560
4561
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
4561
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4562
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4562
4563
|
changeEmitedValue: (value: any) => void;
|
|
4563
4564
|
addSubFormItem: (item: {
|
|
4564
4565
|
id: string;
|
|
@@ -5093,7 +5094,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
5093
5094
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5094
5095
|
openPopOver: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5095
5096
|
closePopOver: (confirmed?: any, result?: any) => void;
|
|
5096
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5097
|
+
changeTmpValue: (value: any, changeReason?: "input" | "formInited" | "defaultValue" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5097
5098
|
changeEmitedValue: (value: any) => void;
|
|
5098
5099
|
addSubFormItem: (item: {
|
|
5099
5100
|
id: string;
|
package/lib/store/form.js
CHANGED
package/lib/store/formItem.js
CHANGED