amis-core 6.6.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/Root.js +4 -3
- package/esm/RootRenderer.d.ts +1 -1
- package/esm/RootRenderer.js +1 -1
- package/esm/SchemaRenderer.js +5 -5
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +1 -1
- package/esm/actions/Action.js +32 -31
- 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 +55 -48
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +11 -3
- 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/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.d.ts +2 -0
- package/esm/components/PopOver.js +4 -4
- package/esm/env.d.ts +4 -0
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +1 -1
- package/esm/index.js +3 -3
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.js +82 -10
- package/esm/renderers/Item.js +23 -8
- 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 +1 -1
- package/esm/store/app.d.ts +1 -0
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +3 -0
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.d.ts +1 -0
- package/esm/store/crud.js +1 -1
- package/esm/store/form.d.ts +1 -0
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.d.ts +1 -0
- package/esm/store/iRenderer.js +7 -3
- package/esm/store/index.js +1 -1
- package/esm/store/list.d.ts +1 -0
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.d.ts +1 -0
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.d.ts +1 -0
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.d.ts +1 -0
- package/esm/store/root.js +1 -1
- package/esm/store/service.d.ts +1 -0
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +3 -0
- package/esm/store/table.js +1 -1
- package/esm/store/table2.d.ts +1 -0
- package/esm/store/table2.js +1 -1
- package/esm/theme.js +1 -1
- package/esm/types.d.ts +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 +2 -2
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/api.js +2 -2
- 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 +1 -1
- package/esm/utils/errors.js +1 -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/getVariable.js +1 -1
- package/esm/utils/grammar.js +1 -1
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.d.ts +1 -0
- package/esm/utils/helper.js +19 -6
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.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/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 +5 -3
- 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.d.ts +4 -2
- package/esm/utils/style-helper.js +27 -13
- 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 +3 -3
- package/esm/utils/validations.js +1 -1
- package/lib/Root.js +4 -3
- package/lib/RootRenderer.js +1 -1
- package/lib/SchemaRenderer.js +5 -5
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +1 -1
- package/lib/actions/Action.js +32 -31
- 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 +55 -48
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +11 -3
- 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/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.d.ts +2 -0
- package/lib/components/PopOver.js +4 -4
- package/lib/env.d.ts +4 -0
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +1 -1
- package/lib/index.js +3 -2
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.js +82 -10
- package/lib/renderers/Item.d.ts +1 -1
- package/lib/renderers/Item.js +23 -8
- 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 +1 -1
- package/lib/store/app.d.ts +1 -0
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +27 -24
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.d.ts +1 -0
- package/lib/store/crud.js +1 -1
- package/lib/store/form.d.ts +11 -10
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.d.ts +1 -0
- package/lib/store/iRenderer.js +7 -3
- package/lib/store/index.js +1 -1
- package/lib/store/list.d.ts +1 -0
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.d.ts +1 -0
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.d.ts +1 -0
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.d.ts +1 -0
- package/lib/store/root.js +1 -1
- package/lib/store/service.d.ts +1 -0
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +23 -20
- package/lib/store/table.js +1 -1
- package/lib/store/table2.d.ts +1 -0
- package/lib/store/table2.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.d.ts +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 +2 -2
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/api.js +2 -2
- 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 +1 -1
- package/lib/utils/errors.js +1 -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/getVariable.js +1 -1
- package/lib/utils/grammar.js +1 -1
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/helper.js +19 -5
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.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/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 +5 -3
- 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.d.ts +4 -2
- package/lib/utils/style-helper.js +27 -13
- 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 +3 -3
- package/lib/utils/validations.js +1 -1
- package/package.json +2 -2
package/lib/renderers/Item.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.
|
|
2
|
+
* amis-core v6.7.0
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -470,7 +470,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
470
470
|
return null;
|
|
471
471
|
};
|
|
472
472
|
FormItemWrap.prototype.render = function () {
|
|
473
|
-
var _a = this.props, formMode = _a.formMode, inputOnly = _a.inputOnly, wrap = _a.wrap, render = _a.render, model = _a.formItem, css = _a.css, themeCss = _a.themeCss, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, env = _a.env;
|
|
473
|
+
var _a = this.props, formMode = _a.formMode, inputOnly = _a.inputOnly, wrap = _a.wrap, render = _a.render, model = _a.formItem, css = _a.css, themeCss = _a.themeCss, id = _a.id, wrapperCustomStyle = _a.wrapperCustomStyle, env = _a.env, cx = _a.classnames;
|
|
474
474
|
var mode = this.props.mode || formMode;
|
|
475
475
|
if (wrap === false || inputOnly) {
|
|
476
476
|
return this.renderControl();
|
|
@@ -492,7 +492,13 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
492
492
|
themeCss: themeCss || css,
|
|
493
493
|
classNames: [
|
|
494
494
|
{
|
|
495
|
-
key: 'labelClassName'
|
|
495
|
+
key: 'labelClassName',
|
|
496
|
+
weights: {
|
|
497
|
+
default: {
|
|
498
|
+
suf: ".".concat(cx('Form-label')),
|
|
499
|
+
parent: ".".concat(cx('Form-item'))
|
|
500
|
+
}
|
|
501
|
+
}
|
|
496
502
|
},
|
|
497
503
|
{
|
|
498
504
|
key: 'descriptionClassName'
|
|
@@ -517,7 +523,8 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
517
523
|
var horizontal = props.horizontal || props.formHorizontal || {};
|
|
518
524
|
var left = helper.getWidthRate(horizontal.left);
|
|
519
525
|
var right = helper.getWidthRate(horizontal.right);
|
|
520
|
-
var labelAlign = props.labelAlign
|
|
526
|
+
var labelAlign = (props.labelAlign !== 'inherit' && props.labelAlign) ||
|
|
527
|
+
props.formLabelAlign;
|
|
521
528
|
var labelWidth = props.labelWidth || props.formLabelWidth;
|
|
522
529
|
return (_J$X_("div", { "data-role": "form-item", className: cx("Form-item Form-item--horizontal", isStatic && staticClassName ? staticClassName : className, (_a = {
|
|
523
530
|
'Form-item--horizontal-justify': horizontal.justify
|
|
@@ -995,6 +1002,7 @@ function asFormItem(config) {
|
|
|
995
1002
|
function class_1(props) {
|
|
996
1003
|
var _this = _super.call(this, props) || this;
|
|
997
1004
|
_this.refFn = _this.refFn.bind(_this);
|
|
1005
|
+
_this.getData = _this.getData.bind(_this);
|
|
998
1006
|
var validations = props.validations, model = props.formItem;
|
|
999
1007
|
// 组件注册的时候可能默认指定验证器类型
|
|
1000
1008
|
if (model && !validations && config.validations) {
|
|
@@ -1023,18 +1031,25 @@ function asFormItem(config) {
|
|
|
1023
1031
|
class_1.prototype.refFn = function (ref) {
|
|
1024
1032
|
this.ref = ref;
|
|
1025
1033
|
};
|
|
1034
|
+
class_1.prototype.getData = function () {
|
|
1035
|
+
return this.props.data;
|
|
1036
|
+
};
|
|
1026
1037
|
class_1.prototype.renderControl = function () {
|
|
1027
1038
|
var _a;
|
|
1028
1039
|
var _b = this.props;
|
|
1029
1040
|
// 这里解构,不可轻易删除,避免被rest传到子组件
|
|
1030
1041
|
_b.inputClassName; var model = _b.formItem, cx = _b.classnames; _b.children; var type = _b.type, size = _b.size, defaultSize = _b.defaultSize, mobileUI = _b.mobileUI, rest = tslib.__rest(_b, ["inputClassName", "formItem", "classnames", "children", "type", "size", "defaultSize", "mobileUI"]);
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
-
: defaultSize;
|
|
1042
|
+
var isRuleSize = size && ['xs', 'sm', 'md', 'lg', 'full'].includes(size);
|
|
1043
|
+
var controlSize = isRuleSize ? size : defaultSize;
|
|
1034
1044
|
//@ts-ignore
|
|
1035
1045
|
var isOpened = this.state.isOpened;
|
|
1036
1046
|
return (_J$X_(React__default["default"].Fragment, null,
|
|
1037
|
-
_J$X_(Control, tslib.__assign({}, rest, {
|
|
1047
|
+
_J$X_(Control, tslib.__assign({}, rest, {
|
|
1048
|
+
// 因为 formItem 内部可能不会更新到最新的 data,所以暴露个方法可以获取到最新的
|
|
1049
|
+
// 获取不到最新的因为做了限制,只有表单项目 name 关联的数值变化才更新
|
|
1050
|
+
getData: this.getData, mobileUI: mobileUI, onOpenDialog: this.handleOpenDialog, size: config.sizeMutable !== false ? undefined : size, onFocus: this.handleFocus, onBlur: this.handleBlur, type: type, classnames: cx, ref: supportRef ? this.refFn : undefined, forwardedRef: supportRef ? undefined : this.refFn, formItem: model, style: {
|
|
1051
|
+
width: !isRuleSize && size ? size : undefined
|
|
1052
|
+
}, className: cx("Form-control", (_a = {
|
|
1038
1053
|
'is-inline': !!rest.inline && !mobileUI,
|
|
1039
1054
|
'is-error': model && !model.valid,
|
|
1040
1055
|
'is-full': size === 'full'
|
package/lib/renderers/Options.js
CHANGED
package/lib/renderers/builtin.js
CHANGED
package/lib/store/app.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const AppStore: import("mobx-state-tree").IModelType<{
|
|
|
14
14
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
15
15
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
16
16
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
18
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
19
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
20
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
package/lib/store/app.js
CHANGED
package/lib/store/combo.d.ts
CHANGED
|
@@ -167,7 +167,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
167
167
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
168
168
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
169
169
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
170
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
170
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
171
171
|
changeEmitedValue: (value: any) => void;
|
|
172
172
|
addSubFormItem: (item: {
|
|
173
173
|
id: string;
|
|
@@ -685,7 +685,7 @@ export declare const UniqueGroup: import("mobx-state-tree").IModelType<{
|
|
|
685
685
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
686
686
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
687
687
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
688
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
688
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
689
689
|
changeEmitedValue: (value: any) => void;
|
|
690
690
|
addSubFormItem: (item: {
|
|
691
691
|
id: string;
|
|
@@ -1063,6 +1063,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1063
1063
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
1064
1064
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
1065
1065
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1066
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1066
1067
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1067
1068
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1068
1069
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
@@ -1236,7 +1237,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1236
1237
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1237
1238
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1238
1239
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1239
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1240
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1240
1241
|
changeEmitedValue: (value: any) => void;
|
|
1241
1242
|
addSubFormItem: (item: {
|
|
1242
1243
|
id: string;
|
|
@@ -1754,7 +1755,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
1754
1755
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1755
1756
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1756
1757
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1757
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1758
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1758
1759
|
changeEmitedValue: (value: any) => void;
|
|
1759
1760
|
addSubFormItem: (item: {
|
|
1760
1761
|
id: string;
|
|
@@ -2166,6 +2167,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2166
2167
|
initedAt: number;
|
|
2167
2168
|
updatedAt: number;
|
|
2168
2169
|
pristine: any;
|
|
2170
|
+
pristineRaw: any;
|
|
2169
2171
|
upStreamData: any;
|
|
2170
2172
|
action: any;
|
|
2171
2173
|
dialogOpen: boolean;
|
|
@@ -2396,7 +2398,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2396
2398
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2397
2399
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2398
2400
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2399
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2401
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2400
2402
|
changeEmitedValue: (value: any) => void;
|
|
2401
2403
|
addSubFormItem: (item: {
|
|
2402
2404
|
id: string;
|
|
@@ -2914,7 +2916,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
2914
2916
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2915
2917
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2916
2918
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2917
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2919
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2918
2920
|
changeEmitedValue: (value: any) => void;
|
|
2919
2921
|
addSubFormItem: (item: {
|
|
2920
2922
|
id: string;
|
|
@@ -3436,7 +3438,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3436
3438
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3437
3439
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3438
3440
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3439
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3441
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3440
3442
|
changeEmitedValue: (value: any) => void;
|
|
3441
3443
|
addSubFormItem: (item: {
|
|
3442
3444
|
id: string;
|
|
@@ -3954,7 +3956,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
3954
3956
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3955
3957
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3956
3958
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3957
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3959
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3958
3960
|
changeEmitedValue: (value: any) => void;
|
|
3959
3961
|
addSubFormItem: (item: {
|
|
3960
3962
|
id: string;
|
|
@@ -4481,7 +4483,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4481
4483
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4482
4484
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4483
4485
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4484
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4486
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4485
4487
|
changeEmitedValue: (value: any) => void;
|
|
4486
4488
|
addSubFormItem: (item: {
|
|
4487
4489
|
id: string;
|
|
@@ -4999,7 +5001,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
4999
5001
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
5000
5002
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5001
5003
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5002
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5004
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
5003
5005
|
changeEmitedValue: (value: any) => void;
|
|
5004
5006
|
addSubFormItem: (item: {
|
|
5005
5007
|
id: string;
|
|
@@ -5521,7 +5523,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
5521
5523
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
5522
5524
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
5523
5525
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
5524
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5526
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
5525
5527
|
changeEmitedValue: (value: any) => void;
|
|
5526
5528
|
addSubFormItem: (item: {
|
|
5527
5529
|
id: string;
|
|
@@ -6039,7 +6041,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6039
6041
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
6040
6042
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6041
6043
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6042
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6044
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
6043
6045
|
changeEmitedValue: (value: any) => void;
|
|
6044
6046
|
addSubFormItem: (item: {
|
|
6045
6047
|
id: string;
|
|
@@ -6561,7 +6563,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
6561
6563
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
6562
6564
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
6563
6565
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
6564
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6566
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
6565
6567
|
changeEmitedValue: (value: any) => void;
|
|
6566
6568
|
addSubFormItem: (item: {
|
|
6567
6569
|
id: string;
|
|
@@ -7079,7 +7081,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7079
7081
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
7080
7082
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7081
7083
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7082
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7084
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
7083
7085
|
changeEmitedValue: (value: any) => void;
|
|
7084
7086
|
addSubFormItem: (item: {
|
|
7085
7087
|
id: string;
|
|
@@ -7490,6 +7492,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7490
7492
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
7491
7493
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
7492
7494
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7495
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7493
7496
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7494
7497
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
7495
7498
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
@@ -7722,7 +7725,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
7722
7725
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
7723
7726
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
7724
7727
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
7725
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7728
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
7726
7729
|
changeEmitedValue: (value: any) => void;
|
|
7727
7730
|
addSubFormItem: (item: {
|
|
7728
7731
|
id: string;
|
|
@@ -8240,7 +8243,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
8240
8243
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
8241
8244
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
8242
8245
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
8243
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8246
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
8244
8247
|
changeEmitedValue: (value: any) => void;
|
|
8245
8248
|
addSubFormItem: (item: {
|
|
8246
8249
|
id: string;
|
|
@@ -8762,7 +8765,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
8762
8765
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
8763
8766
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
8764
8767
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
8765
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8768
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
8766
8769
|
changeEmitedValue: (value: any) => void;
|
|
8767
8770
|
addSubFormItem: (item: {
|
|
8768
8771
|
id: string;
|
|
@@ -9280,7 +9283,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9280
9283
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
9281
9284
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9282
9285
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9283
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9286
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
9284
9287
|
changeEmitedValue: (value: any) => void;
|
|
9285
9288
|
addSubFormItem: (item: {
|
|
9286
9289
|
id: string;
|
|
@@ -9807,7 +9810,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
9807
9810
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
9808
9811
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
9809
9812
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
9810
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9813
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
9811
9814
|
changeEmitedValue: (value: any) => void;
|
|
9812
9815
|
addSubFormItem: (item: {
|
|
9813
9816
|
id: string;
|
|
@@ -10325,7 +10328,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10325
10328
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
10326
10329
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10327
10330
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10328
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10331
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
10329
10332
|
changeEmitedValue: (value: any) => void;
|
|
10330
10333
|
addSubFormItem: (item: {
|
|
10331
10334
|
id: string;
|
|
@@ -10847,7 +10850,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
10847
10850
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
10848
10851
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
10849
10852
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
10850
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10853
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
10851
10854
|
changeEmitedValue: (value: any) => void;
|
|
10852
10855
|
addSubFormItem: (item: {
|
|
10853
10856
|
id: string;
|
|
@@ -11365,7 +11368,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11365
11368
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
11366
11369
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11367
11370
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11368
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11371
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
11369
11372
|
changeEmitedValue: (value: any) => void;
|
|
11370
11373
|
addSubFormItem: (item: {
|
|
11371
11374
|
id: string;
|
|
@@ -11887,7 +11890,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
11887
11890
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
11888
11891
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
11889
11892
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
11890
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
11893
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
11891
11894
|
changeEmitedValue: (value: any) => void;
|
|
11892
11895
|
addSubFormItem: (item: {
|
|
11893
11896
|
id: string;
|
|
@@ -12405,7 +12408,7 @@ export declare const ComboStore: import("mobx-state-tree").IModelType<{
|
|
|
12405
12408
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
12406
12409
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
12407
12410
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
12408
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
12411
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
12409
12412
|
changeEmitedValue: (value: any) => void;
|
|
12410
12413
|
addSubFormItem: (item: {
|
|
12411
12414
|
id: string;
|
package/lib/store/combo.js
CHANGED
package/lib/store/crud.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const CRUDStore: import("mobx-state-tree").IModelType<{
|
|
|
27
27
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
28
28
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
29
29
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
30
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
30
31
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
31
32
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
32
33
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
package/lib/store/crud.js
CHANGED
package/lib/store/form.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
15
15
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
16
16
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
17
17
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
19
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
19
20
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
20
21
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
@@ -247,7 +248,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
247
248
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
248
249
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
249
250
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
250
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
251
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
251
252
|
changeEmitedValue: (value: any) => void;
|
|
252
253
|
addSubFormItem: (item: {
|
|
253
254
|
id: string;
|
|
@@ -765,7 +766,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
765
766
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
766
767
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
767
768
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
768
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
769
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
769
770
|
changeEmitedValue: (value: any) => void;
|
|
770
771
|
addSubFormItem: (item: {
|
|
771
772
|
id: string;
|
|
@@ -1288,7 +1289,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1288
1289
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1289
1290
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1290
1291
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1291
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1292
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1292
1293
|
changeEmitedValue: (value: any) => void;
|
|
1293
1294
|
addSubFormItem: (item: {
|
|
1294
1295
|
id: string;
|
|
@@ -1806,7 +1807,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1806
1807
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1807
1808
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
1808
1809
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
1809
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1810
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
1810
1811
|
changeEmitedValue: (value: any) => void;
|
|
1811
1812
|
addSubFormItem: (item: {
|
|
1812
1813
|
id: string;
|
|
@@ -2333,7 +2334,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2333
2334
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2334
2335
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2335
2336
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2336
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2337
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2337
2338
|
changeEmitedValue: (value: any) => void;
|
|
2338
2339
|
addSubFormItem: (item: {
|
|
2339
2340
|
id: string;
|
|
@@ -2851,7 +2852,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2851
2852
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2852
2853
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
2853
2854
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
2854
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2855
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
2855
2856
|
changeEmitedValue: (value: any) => void;
|
|
2856
2857
|
addSubFormItem: (item: {
|
|
2857
2858
|
id: string;
|
|
@@ -3373,7 +3374,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3373
3374
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3374
3375
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3375
3376
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3376
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3377
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3377
3378
|
changeEmitedValue: (value: any) => void;
|
|
3378
3379
|
addSubFormItem: (item: {
|
|
3379
3380
|
id: string;
|
|
@@ -3891,7 +3892,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3891
3892
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3892
3893
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
3893
3894
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
3894
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3895
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
3895
3896
|
changeEmitedValue: (value: any) => void;
|
|
3896
3897
|
addSubFormItem: (item: {
|
|
3897
3898
|
id: string;
|
|
@@ -4413,7 +4414,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4413
4414
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4414
4415
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4415
4416
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4416
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4417
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4417
4418
|
changeEmitedValue: (value: any) => void;
|
|
4418
4419
|
addSubFormItem: (item: {
|
|
4419
4420
|
id: string;
|
|
@@ -4931,7 +4932,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4931
4932
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4932
4933
|
openDialog: (schema: any, ctx: any, callback?: ((confirmed?: any, value?: any) => void) | undefined) => void;
|
|
4933
4934
|
closeDialog: (confirmed?: any, result?: any) => void;
|
|
4934
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4935
|
+
changeTmpValue: (value: any, changeReason?: "input" | "initialValue" | "formInited" | "dataChanged" | "formulaChanged" | "controlled" | "defaultValue" | undefined) => void;
|
|
4935
4936
|
changeEmitedValue: (value: any) => void;
|
|
4936
4937
|
addSubFormItem: (item: {
|
|
4937
4938
|
id: string;
|
package/lib/store/form.js
CHANGED
package/lib/store/formItem.js
CHANGED
package/lib/store/iRenderer.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const iRendererStore: import("mobx-state-tree").IModelType<{
|
|
|
13
13
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
14
14
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
15
15
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
17
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
18
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
18
19
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
package/lib/store/iRenderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.
|
|
2
|
+
* amis-core v6.7.0
|
|
3
3
|
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -64,6 +64,7 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
64
64
|
initedAt: 0,
|
|
65
65
|
updatedAt: 0,
|
|
66
66
|
pristine: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
67
|
+
pristineRaw: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
67
68
|
upStreamData: mobxStateTree.types.optional(mobxStateTree.types.frozen(), {}),
|
|
68
69
|
action: mobxStateTree.types.optional(mobxStateTree.types.frozen(), undefined),
|
|
69
70
|
dialogOpen: false,
|
|
@@ -82,7 +83,7 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
82
83
|
get pristineDiff() {
|
|
83
84
|
var data = {};
|
|
84
85
|
Object.keys(self.pristine).forEach(function (key) {
|
|
85
|
-
if (self.pristine[key] !== self.
|
|
86
|
+
if (self.pristine[key] !== self.pristineRaw[key]) {
|
|
86
87
|
data[key] = self.pristine[key];
|
|
87
88
|
}
|
|
88
89
|
});
|
|
@@ -105,7 +106,10 @@ var iRendererStore = node.StoreNode.named('iRendererStore')
|
|
|
105
106
|
if (self.data.__tag) {
|
|
106
107
|
data = object.injectObjectChain(data, self.data.__tag);
|
|
107
108
|
}
|
|
108
|
-
!skipSetPristine
|
|
109
|
+
if (!skipSetPristine) {
|
|
110
|
+
self.pristine = data;
|
|
111
|
+
self.pristineRaw = data;
|
|
112
|
+
}
|
|
109
113
|
self.data = data;
|
|
110
114
|
self.upStreamData = data;
|
|
111
115
|
},
|
package/lib/store/index.js
CHANGED
package/lib/store/list.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export declare const ListStore: import("mobx-state-tree").IModelType<{
|
|
|
34
34
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
35
35
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
36
36
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
37
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
37
38
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
38
39
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
39
40
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
package/lib/store/list.js
CHANGED
package/lib/store/manager.js
CHANGED
package/lib/store/modal.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ModalStore: import("mobx-state-tree").IModelType<{
|
|
|
12
12
|
initedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
13
13
|
updatedAt: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
14
14
|
pristine: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
15
|
+
pristineRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
15
16
|
upStreamData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
16
17
|
action: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
17
18
|
dialogOpen: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|