amis-core 6.0.0 → 6.1.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 +2 -2
- package/esm/RootRenderer.js +4 -3
- package/esm/SchemaRenderer.js +5 -2
- package/esm/Scoped.d.ts +6 -0
- package/esm/Scoped.js +45 -8
- package/esm/StatusScoped.js +2 -2
- package/esm/WithRootStore.js +2 -2
- package/esm/WithStore.js +4 -6
- package/esm/actions/Action.js +2 -2
- package/esm/actions/AjaxAction.js +2 -2
- package/esm/actions/BreakAction.js +2 -2
- package/esm/actions/BroadcastAction.js +2 -2
- package/esm/actions/CmptAction.js +2 -2
- package/esm/actions/ContinueAction.js +2 -2
- package/esm/actions/CopyAction.js +2 -2
- package/esm/actions/CustomAction.js +3 -3
- package/esm/actions/DialogAction.js +2 -2
- package/esm/actions/DrawerAction.js +2 -2
- package/esm/actions/EmailAction.js +2 -2
- package/esm/actions/LinkAction.js +10 -5
- package/esm/actions/LoopAction.js +2 -2
- package/esm/actions/PageAction.js +2 -2
- package/esm/actions/ParallelAction.js +2 -2
- package/esm/actions/StatusAction.js +2 -2
- package/esm/actions/SwitchAction.js +2 -2
- package/esm/actions/ToastAction.js +2 -2
- package/esm/components/CustomStyle.d.ts +1 -2
- package/esm/components/CustomStyle.js +20 -7
- package/esm/components/ErrorBoundary.js +2 -2
- package/esm/components/LazyComponent.js +2 -2
- package/esm/components/Overlay.js +11 -9
- package/esm/components/PopOver.js +7 -5
- package/esm/env.d.ts +4 -0
- package/esm/env.js +2 -2
- package/esm/envOverwrite.js +2 -2
- package/esm/factory.js +15 -2
- package/esm/index.d.ts +2 -2
- package/esm/index.js +13 -8
- package/esm/locale.js +2 -2
- package/esm/polyfills.js +2 -2
- package/esm/renderers/Form.d.ts +4 -3
- package/esm/renderers/Form.js +94 -42
- package/esm/renderers/Item.d.ts +1 -0
- package/esm/renderers/Item.js +15 -16
- package/esm/renderers/Options.d.ts +5 -0
- package/esm/renderers/Options.js +27 -10
- package/esm/renderers/Placeholder.js +2 -2
- package/esm/renderers/builtin.js +2 -2
- package/esm/renderers/register.js +2 -2
- package/esm/renderers/wrapControl.js +37 -29
- package/esm/store/app.js +3 -3
- package/esm/store/combo.d.ts +48 -24
- package/esm/store/combo.js +2 -2
- package/esm/store/crud.js +2 -2
- package/esm/store/form.d.ts +20 -10
- package/esm/store/form.js +2 -2
- package/esm/store/formItem.d.ts +2 -1
- package/esm/store/formItem.js +4 -3
- package/esm/store/iRenderer.js +5 -3
- package/esm/store/index.js +2 -2
- package/esm/store/list.js +2 -2
- package/esm/store/manager.js +2 -2
- package/esm/store/modal.js +2 -2
- package/esm/store/node.js +2 -2
- package/esm/store/pagination.js +2 -2
- package/esm/store/root.js +3 -3
- package/esm/store/service.js +2 -2
- package/esm/store/status.js +2 -2
- package/esm/store/table.d.ts +42 -20
- package/esm/store/table.js +33 -19
- package/esm/store/table2.js +2 -2
- package/esm/theme.js +2 -2
- package/esm/utils/Animation.js +2 -2
- package/esm/utils/ColorScale.js +2 -2
- package/esm/utils/DataSchema.js +2 -2
- package/esm/utils/DataScope.js +2 -2
- package/esm/utils/RootClose.js +2 -2
- package/esm/utils/SimpleMap.js +2 -2
- package/esm/utils/api.js +2 -2
- package/esm/utils/arraySlice.js +2 -2
- package/esm/utils/attachmentAdpator.js +2 -2
- package/esm/utils/autobind.js +2 -2
- package/esm/utils/browser.js +2 -2
- package/esm/utils/columnsSplit.js +2 -2
- package/esm/utils/concatData.js +2 -2
- package/esm/utils/dataMapping.js +2 -2
- package/esm/utils/date.js +2 -2
- package/esm/utils/debug.js +2 -2
- package/esm/utils/decodeEntity.js +2 -2
- package/esm/utils/dom.js +2 -2
- package/esm/utils/errors.js +2 -2
- package/esm/utils/escapeHtml.js +2 -2
- package/esm/utils/filter-schema.js +2 -2
- package/esm/utils/filter.js +2 -2
- package/esm/utils/formatDuration.js +2 -2
- package/esm/utils/formula.js +2 -2
- package/esm/utils/getVariable.js +2 -2
- package/esm/utils/grammar.js +2 -2
- package/esm/utils/handleAction.js +2 -2
- package/esm/utils/helper.d.ts +8 -1
- package/esm/utils/helper.js +28 -10
- package/esm/utils/highlight.js +4 -3
- package/esm/utils/icon.js +2 -2
- package/esm/utils/image.js +2 -2
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/isPureVariable.js +2 -2
- package/esm/utils/json-schema-2-amis-schema.js +2 -2
- package/esm/utils/keyToPath.js +2 -2
- package/esm/utils/labelToString.d.ts +1 -0
- package/esm/utils/labelToString.js +38 -0
- package/esm/utils/makeSorter.js +2 -2
- package/esm/utils/math.js +2 -2
- package/esm/utils/memoryParse.js +2 -2
- package/esm/utils/normalizeLink.js +2 -2
- package/esm/utils/normalizeOptions.js +2 -2
- package/esm/utils/object.js +2 -2
- package/esm/utils/offset.js +2 -2
- package/esm/utils/offsetParent.js +2 -2
- package/esm/utils/optionValueCompare.js +2 -2
- package/esm/utils/position.js +2 -2
- package/esm/utils/prettyBytes.js +2 -2
- package/esm/utils/renderer-event.js +2 -2
- package/esm/utils/replaceText.js +10 -12
- package/esm/utils/resize-sensor.js +2 -2
- package/esm/utils/resolveCondition.js +2 -2
- package/esm/utils/resolveVariable.js +2 -2
- package/esm/utils/resolveVariableAndFilter.js +2 -2
- package/esm/utils/resolveVariableAndFilterForAsync.js +2 -2
- package/esm/utils/scrollPosition.js +2 -2
- package/esm/utils/string2regExp.d.ts +1 -1
- package/esm/utils/string2regExp.js +5 -4
- package/esm/utils/stripNumber.js +2 -2
- package/esm/utils/style-helper.d.ts +24 -5
- package/esm/utils/style-helper.js +47 -17
- package/esm/utils/style.js +2 -2
- package/esm/utils/toNumber.js +2 -2
- package/esm/utils/tokenize.d.ts +1 -0
- package/esm/utils/tokenize.js +11 -4
- package/esm/utils/tpl-builtin.js +2 -2
- package/esm/utils/tpl-lodash.js +2 -2
- package/esm/utils/tpl.js +7 -9
- package/esm/utils/uncontrollable.js +2 -2
- package/esm/utils/validateId.d.ts +16 -0
- package/esm/utils/validateId.js +154 -0
- package/esm/utils/validations.js +17 -9
- package/lib/Root.js +2 -2
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +4 -3
- package/lib/SchemaRenderer.js +5 -2
- package/lib/Scoped.d.ts +6 -0
- package/lib/Scoped.js +45 -7
- package/lib/StatusScoped.js +2 -2
- package/lib/WithRootStore.js +2 -2
- package/lib/WithStore.js +4 -6
- package/lib/actions/Action.js +2 -2
- package/lib/actions/AjaxAction.js +2 -2
- package/lib/actions/BreakAction.js +2 -2
- package/lib/actions/BroadcastAction.js +2 -2
- package/lib/actions/CmptAction.js +2 -2
- package/lib/actions/ContinueAction.js +2 -2
- package/lib/actions/CopyAction.js +2 -2
- package/lib/actions/CustomAction.js +3 -3
- package/lib/actions/DialogAction.js +2 -2
- package/lib/actions/DrawerAction.js +2 -2
- package/lib/actions/EmailAction.js +2 -2
- package/lib/actions/LinkAction.js +10 -5
- package/lib/actions/LoopAction.js +2 -2
- package/lib/actions/PageAction.js +2 -2
- package/lib/actions/ParallelAction.js +2 -2
- package/lib/actions/StatusAction.js +2 -2
- package/lib/actions/SwitchAction.js +2 -2
- package/lib/actions/ToastAction.js +2 -2
- package/lib/components/CustomStyle.d.ts +1 -2
- package/lib/components/CustomStyle.js +20 -7
- package/lib/components/ErrorBoundary.js +2 -2
- package/lib/components/LazyComponent.js +2 -2
- package/lib/components/Overlay.js +10 -8
- package/lib/components/PopOver.js +7 -5
- package/lib/env.d.ts +4 -0
- package/lib/env.js +2 -2
- package/lib/envOverwrite.js +2 -2
- package/lib/factory.js +15 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +16 -5
- package/lib/locale.js +2 -2
- package/lib/polyfills.js +2 -2
- package/lib/renderers/Form.d.ts +4 -3
- package/lib/renderers/Form.js +94 -42
- package/lib/renderers/Item.d.ts +1 -0
- package/lib/renderers/Item.js +15 -16
- package/lib/renderers/Options.d.ts +5 -0
- package/lib/renderers/Options.js +27 -10
- package/lib/renderers/Placeholder.js +2 -2
- package/lib/renderers/builtin.js +2 -2
- package/lib/renderers/register.js +2 -2
- package/lib/renderers/wrapControl.js +36 -28
- package/lib/store/app.js +3 -3
- package/lib/store/combo.d.ts +72 -49
- package/lib/store/combo.js +2 -2
- package/lib/store/crud.js +2 -2
- package/lib/store/form.d.ts +30 -21
- package/lib/store/form.js +2 -2
- package/lib/store/formItem.d.ts +2 -1
- package/lib/store/formItem.js +4 -3
- package/lib/store/iRenderer.js +5 -3
- package/lib/store/index.js +2 -2
- package/lib/store/list.js +2 -2
- package/lib/store/manager.js +2 -2
- package/lib/store/modal.js +2 -2
- package/lib/store/node.js +2 -2
- package/lib/store/pagination.js +2 -2
- package/lib/store/root.js +3 -3
- package/lib/store/service.js +2 -2
- package/lib/store/status.js +2 -2
- package/lib/store/table.d.ts +62 -41
- package/lib/store/table.js +33 -19
- package/lib/store/table2.js +2 -2
- package/lib/theme.js +2 -2
- package/lib/utils/Animation.js +2 -2
- package/lib/utils/ColorScale.js +2 -2
- package/lib/utils/DataSchema.js +2 -2
- package/lib/utils/DataScope.js +2 -2
- package/lib/utils/RootClose.js +2 -2
- package/lib/utils/SimpleMap.js +2 -2
- package/lib/utils/api.js +2 -2
- package/lib/utils/arraySlice.js +2 -2
- package/lib/utils/attachmentAdpator.js +2 -2
- package/lib/utils/autobind.js +2 -2
- package/lib/utils/browser.js +2 -2
- package/lib/utils/columnsSplit.js +2 -2
- package/lib/utils/concatData.js +2 -2
- package/lib/utils/dataMapping.js +2 -2
- package/lib/utils/date.js +2 -2
- package/lib/utils/debug.js +2 -2
- package/lib/utils/decodeEntity.js +2 -2
- package/lib/utils/dom.js +2 -2
- package/lib/utils/errors.js +2 -2
- package/lib/utils/escapeHtml.js +2 -2
- package/lib/utils/filter-schema.js +2 -2
- package/lib/utils/filter.js +2 -2
- package/lib/utils/formatDuration.js +2 -2
- package/lib/utils/formula.js +2 -2
- package/lib/utils/getVariable.js +2 -2
- package/lib/utils/grammar.js +2 -2
- package/lib/utils/handleAction.js +2 -2
- package/lib/utils/helper.d.ts +8 -1
- package/lib/utils/helper.js +29 -8
- package/lib/utils/highlight.js +4 -3
- package/lib/utils/icon.js +2 -2
- package/lib/utils/image.js +2 -2
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/isPureVariable.js +2 -2
- package/lib/utils/json-schema-2-amis-schema.js +2 -2
- package/lib/utils/keyToPath.js +2 -2
- package/lib/utils/labelToString.d.ts +1 -0
- package/lib/utils/labelToString.js +46 -0
- package/lib/utils/makeSorter.js +2 -2
- package/lib/utils/math.js +2 -2
- package/lib/utils/memoryParse.js +2 -2
- package/lib/utils/normalizeLink.js +2 -2
- package/lib/utils/normalizeOptions.js +2 -2
- package/lib/utils/object.js +2 -2
- package/lib/utils/offset.js +2 -2
- package/lib/utils/offsetParent.js +2 -2
- package/lib/utils/optionValueCompare.js +2 -2
- package/lib/utils/position.js +2 -2
- package/lib/utils/prettyBytes.js +2 -2
- package/lib/utils/renderer-event.js +2 -2
- package/lib/utils/replaceText.js +9 -15
- package/lib/utils/resize-sensor.js +2 -2
- package/lib/utils/resolveCondition.js +2 -2
- package/lib/utils/resolveVariable.js +2 -2
- package/lib/utils/resolveVariableAndFilter.js +2 -2
- package/lib/utils/resolveVariableAndFilterForAsync.js +2 -2
- package/lib/utils/scrollPosition.js +2 -2
- package/lib/utils/string2regExp.d.ts +1 -1
- package/lib/utils/string2regExp.js +5 -4
- package/lib/utils/stripNumber.js +2 -2
- package/lib/utils/style-helper.d.ts +24 -5
- package/lib/utils/style-helper.js +47 -17
- package/lib/utils/style.js +2 -2
- package/lib/utils/toNumber.js +2 -2
- package/lib/utils/tokenize.d.ts +1 -0
- package/lib/utils/tokenize.js +11 -3
- package/lib/utils/tpl-builtin.js +2 -2
- package/lib/utils/tpl-lodash.js +2 -2
- package/lib/utils/tpl.js +6 -8
- package/lib/utils/uncontrollable.js +2 -2
- package/lib/utils/validateId.d.ts +16 -0
- package/lib/utils/validateId.js +160 -0
- package/lib/utils/validations.js +17 -9
- package/package.json +3 -3
- package/LICENSE +0 -201
package/lib/store/table.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { SnapshotIn, IAnyModelType, Instance } from 'mobx-state-tree';
|
|
3
2
|
import { IFormStore } from './form';
|
|
4
3
|
export declare enum SELECTED_STATUS {
|
|
@@ -301,6 +300,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
301
300
|
formsRef: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<any, any, any>>, [undefined]>;
|
|
302
301
|
maxKeepItemSelectionLength: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
303
302
|
keepItemSelectionOnPageChange: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
303
|
+
maxItemSelectionLength: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
304
304
|
exportExcelLoading: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
305
305
|
searchFormExpanded: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
306
306
|
lazyRenderAfter: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
@@ -334,6 +334,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
334
334
|
getDialogScoped(): import("..").IScopedContext | null;
|
|
335
335
|
getDrawerScoped(): import("..").IScopedContext | null;
|
|
336
336
|
} & {
|
|
337
|
+
getSelectionUpperLimit: () => number;
|
|
337
338
|
readonly columnsData: ({
|
|
338
339
|
label: any;
|
|
339
340
|
type: string;
|
|
@@ -573,7 +574,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
573
574
|
} & {
|
|
574
575
|
focus: () => void;
|
|
575
576
|
blur: () => void;
|
|
576
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
577
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
578
|
+
name?: string | undefined;
|
|
577
579
|
extraName?: string | undefined;
|
|
578
580
|
required?: boolean | undefined;
|
|
579
581
|
unique?: boolean | undefined;
|
|
@@ -642,7 +644,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
642
644
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
643
645
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
644
646
|
closeDialog: (result?: any) => void;
|
|
645
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
647
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
646
648
|
changeEmitedValue: (value: any) => void;
|
|
647
649
|
addSubFormItem: (item: {
|
|
648
650
|
id: string;
|
|
@@ -1082,7 +1084,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
1082
1084
|
} & {
|
|
1083
1085
|
focus: () => void;
|
|
1084
1086
|
blur: () => void;
|
|
1085
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
1087
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
1088
|
+
name?: string | undefined;
|
|
1086
1089
|
extraName?: string | undefined;
|
|
1087
1090
|
required?: boolean | undefined;
|
|
1088
1091
|
unique?: boolean | undefined;
|
|
@@ -1151,7 +1154,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
1151
1154
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1152
1155
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1153
1156
|
closeDialog: (result?: any) => void;
|
|
1154
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1157
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1155
1158
|
changeEmitedValue: (value: any) => void;
|
|
1156
1159
|
addSubFormItem: (item: {
|
|
1157
1160
|
id: string;
|
|
@@ -1595,7 +1598,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
1595
1598
|
} & {
|
|
1596
1599
|
focus: () => void;
|
|
1597
1600
|
blur: () => void;
|
|
1598
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
1601
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
1602
|
+
name?: string | undefined;
|
|
1599
1603
|
extraName?: string | undefined;
|
|
1600
1604
|
required?: boolean | undefined;
|
|
1601
1605
|
unique?: boolean | undefined;
|
|
@@ -1664,7 +1668,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
1664
1668
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1665
1669
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1666
1670
|
closeDialog: (result?: any) => void;
|
|
1667
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
1671
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1668
1672
|
changeEmitedValue: (value: any) => void;
|
|
1669
1673
|
addSubFormItem: (item: {
|
|
1670
1674
|
id: string;
|
|
@@ -2104,7 +2108,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
2104
2108
|
} & {
|
|
2105
2109
|
focus: () => void;
|
|
2106
2110
|
blur: () => void;
|
|
2107
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
2111
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
2112
|
+
name?: string | undefined;
|
|
2108
2113
|
extraName?: string | undefined;
|
|
2109
2114
|
required?: boolean | undefined;
|
|
2110
2115
|
unique?: boolean | undefined;
|
|
@@ -2173,7 +2178,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
2173
2178
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2174
2179
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2175
2180
|
closeDialog: (result?: any) => void;
|
|
2176
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2181
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2177
2182
|
changeEmitedValue: (value: any) => void;
|
|
2178
2183
|
addSubFormItem: (item: {
|
|
2179
2184
|
id: string;
|
|
@@ -2622,7 +2627,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
2622
2627
|
} & {
|
|
2623
2628
|
focus: () => void;
|
|
2624
2629
|
blur: () => void;
|
|
2625
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
2630
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
2631
|
+
name?: string | undefined;
|
|
2626
2632
|
extraName?: string | undefined;
|
|
2627
2633
|
required?: boolean | undefined;
|
|
2628
2634
|
unique?: boolean | undefined;
|
|
@@ -2691,7 +2697,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
2691
2697
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2692
2698
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2693
2699
|
closeDialog: (result?: any) => void;
|
|
2694
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
2700
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2695
2701
|
changeEmitedValue: (value: any) => void;
|
|
2696
2702
|
addSubFormItem: (item: {
|
|
2697
2703
|
id: string;
|
|
@@ -3131,7 +3137,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
3131
3137
|
} & {
|
|
3132
3138
|
focus: () => void;
|
|
3133
3139
|
blur: () => void;
|
|
3134
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
3140
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
3141
|
+
name?: string | undefined;
|
|
3135
3142
|
extraName?: string | undefined;
|
|
3136
3143
|
required?: boolean | undefined;
|
|
3137
3144
|
unique?: boolean | undefined;
|
|
@@ -3200,7 +3207,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
3200
3207
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3201
3208
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3202
3209
|
closeDialog: (result?: any) => void;
|
|
3203
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3210
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3204
3211
|
changeEmitedValue: (value: any) => void;
|
|
3205
3212
|
addSubFormItem: (item: {
|
|
3206
3213
|
id: string;
|
|
@@ -3644,7 +3651,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
3644
3651
|
} & {
|
|
3645
3652
|
focus: () => void;
|
|
3646
3653
|
blur: () => void;
|
|
3647
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
3654
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
3655
|
+
name?: string | undefined;
|
|
3648
3656
|
extraName?: string | undefined;
|
|
3649
3657
|
required?: boolean | undefined;
|
|
3650
3658
|
unique?: boolean | undefined;
|
|
@@ -3713,7 +3721,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
3713
3721
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3714
3722
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3715
3723
|
closeDialog: (result?: any) => void;
|
|
3716
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
3724
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3717
3725
|
changeEmitedValue: (value: any) => void;
|
|
3718
3726
|
addSubFormItem: (item: {
|
|
3719
3727
|
id: string;
|
|
@@ -4153,7 +4161,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
4153
4161
|
} & {
|
|
4154
4162
|
focus: () => void;
|
|
4155
4163
|
blur: () => void;
|
|
4156
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
4164
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
4165
|
+
name?: string | undefined;
|
|
4157
4166
|
extraName?: string | undefined;
|
|
4158
4167
|
required?: boolean | undefined;
|
|
4159
4168
|
unique?: boolean | undefined;
|
|
@@ -4222,7 +4231,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
4222
4231
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4223
4232
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4224
4233
|
closeDialog: (result?: any) => void;
|
|
4225
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4234
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4226
4235
|
changeEmitedValue: (value: any) => void;
|
|
4227
4236
|
addSubFormItem: (item: {
|
|
4228
4237
|
id: string;
|
|
@@ -4666,7 +4675,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
4666
4675
|
} & {
|
|
4667
4676
|
focus: () => void;
|
|
4668
4677
|
blur: () => void;
|
|
4669
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
4678
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
4679
|
+
name?: string | undefined;
|
|
4670
4680
|
extraName?: string | undefined;
|
|
4671
4681
|
required?: boolean | undefined;
|
|
4672
4682
|
unique?: boolean | undefined;
|
|
@@ -4735,7 +4745,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
4735
4745
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4736
4746
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4737
4747
|
closeDialog: (result?: any) => void;
|
|
4738
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
4748
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4739
4749
|
changeEmitedValue: (value: any) => void;
|
|
4740
4750
|
addSubFormItem: (item: {
|
|
4741
4751
|
id: string;
|
|
@@ -5175,7 +5185,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5175
5185
|
} & {
|
|
5176
5186
|
focus: () => void;
|
|
5177
5187
|
blur: () => void;
|
|
5178
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
5188
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
5189
|
+
name?: string | undefined;
|
|
5179
5190
|
extraName?: string | undefined;
|
|
5180
5191
|
required?: boolean | undefined;
|
|
5181
5192
|
unique?: boolean | undefined;
|
|
@@ -5244,7 +5255,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5244
5255
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
5245
5256
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
5246
5257
|
closeDialog: (result?: any) => void;
|
|
5247
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5258
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5248
5259
|
changeEmitedValue: (value: any) => void;
|
|
5249
5260
|
addSubFormItem: (item: {
|
|
5250
5261
|
id: string;
|
|
@@ -5807,7 +5818,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5807
5818
|
} & {
|
|
5808
5819
|
focus: () => void;
|
|
5809
5820
|
blur: () => void;
|
|
5810
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
5821
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
5822
|
+
name?: string | undefined;
|
|
5811
5823
|
extraName?: string | undefined;
|
|
5812
5824
|
required?: boolean | undefined;
|
|
5813
5825
|
unique?: boolean | undefined;
|
|
@@ -5876,7 +5888,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
5876
5888
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
5877
5889
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
5878
5890
|
closeDialog: (result?: any) => void;
|
|
5879
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
5891
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
5880
5892
|
changeEmitedValue: (value: any) => void;
|
|
5881
5893
|
addSubFormItem: (item: {
|
|
5882
5894
|
id: string;
|
|
@@ -6316,7 +6328,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
6316
6328
|
} & {
|
|
6317
6329
|
focus: () => void;
|
|
6318
6330
|
blur: () => void;
|
|
6319
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
6331
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
6332
|
+
name?: string | undefined;
|
|
6320
6333
|
extraName?: string | undefined;
|
|
6321
6334
|
required?: boolean | undefined;
|
|
6322
6335
|
unique?: boolean | undefined;
|
|
@@ -6385,7 +6398,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
6385
6398
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
6386
6399
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
6387
6400
|
closeDialog: (result?: any) => void;
|
|
6388
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6401
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6389
6402
|
changeEmitedValue: (value: any) => void;
|
|
6390
6403
|
addSubFormItem: (item: {
|
|
6391
6404
|
id: string;
|
|
@@ -6829,7 +6842,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
6829
6842
|
} & {
|
|
6830
6843
|
focus: () => void;
|
|
6831
6844
|
blur: () => void;
|
|
6832
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
6845
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
6846
|
+
name?: string | undefined;
|
|
6833
6847
|
extraName?: string | undefined;
|
|
6834
6848
|
required?: boolean | undefined;
|
|
6835
6849
|
unique?: boolean | undefined;
|
|
@@ -6898,7 +6912,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
6898
6912
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
6899
6913
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
6900
6914
|
closeDialog: (result?: any) => void;
|
|
6901
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
6915
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
6902
6916
|
changeEmitedValue: (value: any) => void;
|
|
6903
6917
|
addSubFormItem: (item: {
|
|
6904
6918
|
id: string;
|
|
@@ -7338,7 +7352,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
7338
7352
|
} & {
|
|
7339
7353
|
focus: () => void;
|
|
7340
7354
|
blur: () => void;
|
|
7341
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
7355
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
7356
|
+
name?: string | undefined;
|
|
7342
7357
|
extraName?: string | undefined;
|
|
7343
7358
|
required?: boolean | undefined;
|
|
7344
7359
|
unique?: boolean | undefined;
|
|
@@ -7407,7 +7422,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
7407
7422
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
7408
7423
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
7409
7424
|
closeDialog: (result?: any) => void;
|
|
7410
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7425
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7411
7426
|
changeEmitedValue: (value: any) => void;
|
|
7412
7427
|
addSubFormItem: (item: {
|
|
7413
7428
|
id: string;
|
|
@@ -7856,7 +7871,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
7856
7871
|
} & {
|
|
7857
7872
|
focus: () => void;
|
|
7858
7873
|
blur: () => void;
|
|
7859
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
7874
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
7875
|
+
name?: string | undefined;
|
|
7860
7876
|
extraName?: string | undefined;
|
|
7861
7877
|
required?: boolean | undefined;
|
|
7862
7878
|
unique?: boolean | undefined;
|
|
@@ -7925,7 +7941,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
7925
7941
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
7926
7942
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
7927
7943
|
closeDialog: (result?: any) => void;
|
|
7928
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
7944
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
7929
7945
|
changeEmitedValue: (value: any) => void;
|
|
7930
7946
|
addSubFormItem: (item: {
|
|
7931
7947
|
id: string;
|
|
@@ -8365,7 +8381,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
8365
8381
|
} & {
|
|
8366
8382
|
focus: () => void;
|
|
8367
8383
|
blur: () => void;
|
|
8368
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
8384
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
8385
|
+
name?: string | undefined;
|
|
8369
8386
|
extraName?: string | undefined;
|
|
8370
8387
|
required?: boolean | undefined;
|
|
8371
8388
|
unique?: boolean | undefined;
|
|
@@ -8434,7 +8451,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
8434
8451
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
8435
8452
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
8436
8453
|
closeDialog: (result?: any) => void;
|
|
8437
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8454
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
8438
8455
|
changeEmitedValue: (value: any) => void;
|
|
8439
8456
|
addSubFormItem: (item: {
|
|
8440
8457
|
id: string;
|
|
@@ -8878,7 +8895,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
8878
8895
|
} & {
|
|
8879
8896
|
focus: () => void;
|
|
8880
8897
|
blur: () => void;
|
|
8881
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
8898
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
8899
|
+
name?: string | undefined;
|
|
8882
8900
|
extraName?: string | undefined;
|
|
8883
8901
|
required?: boolean | undefined;
|
|
8884
8902
|
unique?: boolean | undefined;
|
|
@@ -8947,7 +8965,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
8947
8965
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
8948
8966
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
8949
8967
|
closeDialog: (result?: any) => void;
|
|
8950
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
8968
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
8951
8969
|
changeEmitedValue: (value: any) => void;
|
|
8952
8970
|
addSubFormItem: (item: {
|
|
8953
8971
|
id: string;
|
|
@@ -9387,7 +9405,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
9387
9405
|
} & {
|
|
9388
9406
|
focus: () => void;
|
|
9389
9407
|
blur: () => void;
|
|
9390
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
9408
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
9409
|
+
name?: string | undefined;
|
|
9391
9410
|
extraName?: string | undefined;
|
|
9392
9411
|
required?: boolean | undefined;
|
|
9393
9412
|
unique?: boolean | undefined;
|
|
@@ -9456,7 +9475,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
9456
9475
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
9457
9476
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
9458
9477
|
closeDialog: (result?: any) => void;
|
|
9459
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9478
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9460
9479
|
changeEmitedValue: (value: any) => void;
|
|
9461
9480
|
addSubFormItem: (item: {
|
|
9462
9481
|
id: string;
|
|
@@ -9900,7 +9919,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
9900
9919
|
} & {
|
|
9901
9920
|
focus: () => void;
|
|
9902
9921
|
blur: () => void;
|
|
9903
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
9922
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
9923
|
+
name?: string | undefined;
|
|
9904
9924
|
extraName?: string | undefined;
|
|
9905
9925
|
required?: boolean | undefined;
|
|
9906
9926
|
unique?: boolean | undefined;
|
|
@@ -9969,7 +9989,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
9969
9989
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
9970
9990
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
9971
9991
|
closeDialog: (result?: any) => void;
|
|
9972
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
9992
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
9973
9993
|
changeEmitedValue: (value: any) => void;
|
|
9974
9994
|
addSubFormItem: (item: {
|
|
9975
9995
|
id: string;
|
|
@@ -10409,7 +10429,8 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
10409
10429
|
} & {
|
|
10410
10430
|
focus: () => void;
|
|
10411
10431
|
blur: () => void;
|
|
10412
|
-
config: ({ extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
10432
|
+
config: ({ name, extraName, required, unique, value, isValueSchemaExp, rules, messages, delimiter, multiple, valueField, labelField, joinValues, extractValue, type, id, selectFirst, autoFill, clearValueOnHidden, validateApi, maxLength, minLength, validateOnChange, label, inputGroupControl, pagination }: {
|
|
10433
|
+
name?: string | undefined;
|
|
10413
10434
|
extraName?: string | undefined;
|
|
10414
10435
|
required?: boolean | undefined;
|
|
10415
10436
|
unique?: boolean | undefined;
|
|
@@ -10478,7 +10499,7 @@ export declare const TableStore: import("mobx-state-tree").IModelType<{
|
|
|
10478
10499
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
10479
10500
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
10480
10501
|
closeDialog: (result?: any) => void;
|
|
10481
|
-
changeTmpValue: (value: any, changeReason?: "input" | "
|
|
10502
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
10482
10503
|
changeEmitedValue: (value: any) => void;
|
|
10483
10504
|
addSubFormItem: (item: {
|
|
10484
10505
|
id: string;
|
package/lib/store/table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.
|
|
3
|
-
* Copyright 2018-
|
|
2
|
+
* amis-core v6.1.0
|
|
3
|
+
* Copyright 2018-2024 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
'use strict';
|
|
@@ -262,11 +262,9 @@ var Row = mobxStateTree.types
|
|
|
262
262
|
get isCheckAvaiableOnClick() {
|
|
263
263
|
var _a;
|
|
264
264
|
var table = mobxStateTree.getParent(self, self.depth * 2);
|
|
265
|
-
var
|
|
266
|
-
var selectionUpperLimit = table === null || table === void 0 ? void 0 : table.maxKeepItemSelectionLength;
|
|
265
|
+
var selectionUpperLimit = table.getSelectionUpperLimit();
|
|
267
266
|
// 如果未做配置,或者配置不合法直接通过检查
|
|
268
|
-
if (!
|
|
269
|
-
!Number.isInteger(selectionUpperLimit) ||
|
|
267
|
+
if (!Number.isInteger(selectionUpperLimit) ||
|
|
270
268
|
selectionUpperLimit === Infinity) {
|
|
271
269
|
return true;
|
|
272
270
|
}
|
|
@@ -396,6 +394,7 @@ var TableStore = iRenderer.iRendererStore
|
|
|
396
394
|
formsRef: mobxStateTree.types.optional(mobxStateTree.types.array(mobxStateTree.types.frozen()), []),
|
|
397
395
|
maxKeepItemSelectionLength: Infinity,
|
|
398
396
|
keepItemSelectionOnPageChange: false,
|
|
397
|
+
maxItemSelectionLength: Infinity,
|
|
399
398
|
// 导出 Excel 按钮的 loading 状态
|
|
400
399
|
exportExcelLoading: false,
|
|
401
400
|
searchFormExpanded: false,
|
|
@@ -581,7 +580,17 @@ var TableStore = iRenderer.iRendererStore
|
|
|
581
580
|
function getSearchableColumns() {
|
|
582
581
|
return self.columns.filter(function (column) { return column.searchable; });
|
|
583
582
|
}
|
|
583
|
+
function getSelectionUpperLimit() {
|
|
584
|
+
var keep = self.keepItemSelectionOnPageChange;
|
|
585
|
+
var selectionUpperLimit = keep
|
|
586
|
+
? self.maxKeepItemSelectionLength !== Infinity
|
|
587
|
+
? self.maxKeepItemSelectionLength
|
|
588
|
+
: self.maxItemSelectionLength
|
|
589
|
+
: self.maxItemSelectionLength;
|
|
590
|
+
return selectionUpperLimit;
|
|
591
|
+
}
|
|
584
592
|
return {
|
|
593
|
+
getSelectionUpperLimit: getSelectionUpperLimit,
|
|
585
594
|
get columnsData() {
|
|
586
595
|
return getColumnsExceptBuiltinTypes();
|
|
587
596
|
},
|
|
@@ -614,6 +623,10 @@ var TableStore = iRenderer.iRendererStore
|
|
|
614
623
|
return !!self.selectedRows.length;
|
|
615
624
|
},
|
|
616
625
|
get allChecked() {
|
|
626
|
+
var selectionUpperLimit = getSelectionUpperLimit();
|
|
627
|
+
if (selectionUpperLimit !== Infinity) {
|
|
628
|
+
return self.isSelectionThresholdReached;
|
|
629
|
+
}
|
|
617
630
|
// 只要selectedRows中包含checkableRows中的全部数据,就认为是全选
|
|
618
631
|
return self.checkableRows.every(function (item) {
|
|
619
632
|
return self.selectedRows.includes(item);
|
|
@@ -659,8 +672,8 @@ var TableStore = iRenderer.iRendererStore
|
|
|
659
672
|
get isSelectionThresholdReached() {
|
|
660
673
|
var _a, _b;
|
|
661
674
|
var selectedLength = (_b = (_a = self.data) === null || _a === void 0 ? void 0 : _a.selectedItems) === null || _b === void 0 ? void 0 : _b.length;
|
|
662
|
-
var maxLength =
|
|
663
|
-
if (!self.data ||
|
|
675
|
+
var maxLength = getSelectionUpperLimit();
|
|
676
|
+
if (!self.data || maxLength === Infinity) {
|
|
664
677
|
return false;
|
|
665
678
|
}
|
|
666
679
|
return maxLength <= selectedLength;
|
|
@@ -807,6 +820,8 @@ var TableStore = iRenderer.iRendererStore
|
|
|
807
820
|
config.keepItemSelectionOnPageChange !== undefined &&
|
|
808
821
|
(self.keepItemSelectionOnPageChange =
|
|
809
822
|
config.keepItemSelectionOnPageChange);
|
|
823
|
+
config.maxItemSelectionLength !== undefined &&
|
|
824
|
+
(self.maxItemSelectionLength = config.maxItemSelectionLength);
|
|
810
825
|
config.exportExcelLoading !== undefined &&
|
|
811
826
|
(self.exportExcelLoading = config.exportExcelLoading);
|
|
812
827
|
config.loading !== undefined && (self.loading = config.loading);
|
|
@@ -1127,10 +1142,10 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1127
1142
|
function updateSelected(selected, valueField) {
|
|
1128
1143
|
self.selectedRows.clear();
|
|
1129
1144
|
selected.forEach(function (item) {
|
|
1130
|
-
var resolved = self.rows
|
|
1145
|
+
var resolved = helper.findTree(self.rows, function (a) { return a.pristine === item; });
|
|
1131
1146
|
// 先严格比较,
|
|
1132
1147
|
if (!resolved) {
|
|
1133
|
-
resolved = self.rows
|
|
1148
|
+
resolved = helper.findTree(self.rows, function (a) {
|
|
1134
1149
|
var selectValue = item[valueField || 'value'];
|
|
1135
1150
|
var itemValue = a.pristine[valueField || 'value'];
|
|
1136
1151
|
return selectValue === itemValue;
|
|
@@ -1138,7 +1153,7 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1138
1153
|
}
|
|
1139
1154
|
// 再宽松比较
|
|
1140
1155
|
if (!resolved) {
|
|
1141
|
-
resolved = self.rows
|
|
1156
|
+
resolved = helper.findTree(self.rows, function (a) {
|
|
1142
1157
|
var selectValue = item[valueField || 'value'];
|
|
1143
1158
|
var itemValue = a.pristine[valueField || 'value'];
|
|
1144
1159
|
return selectValue == itemValue;
|
|
@@ -1150,11 +1165,9 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1150
1165
|
}
|
|
1151
1166
|
function getSelectedRows() {
|
|
1152
1167
|
var _a;
|
|
1153
|
-
var maxLength = self.
|
|
1154
|
-
var keep = self.keepItemSelectionOnPageChange;
|
|
1168
|
+
var maxLength = self.getSelectionUpperLimit();
|
|
1155
1169
|
var selectedItems = (_a = self.data) === null || _a === void 0 ? void 0 : _a.selectedItems;
|
|
1156
|
-
if (
|
|
1157
|
-
maxLength &&
|
|
1170
|
+
if (maxLength !== Infinity &&
|
|
1158
1171
|
selectedItems &&
|
|
1159
1172
|
maxLength >= selectedItems.length) {
|
|
1160
1173
|
var restCheckableRows = self.checkableRows.filter(function (item) { return !item.checked; });
|
|
@@ -1269,10 +1282,10 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1269
1282
|
if (!self.data) {
|
|
1270
1283
|
return;
|
|
1271
1284
|
}
|
|
1272
|
-
var maxLength = self.
|
|
1285
|
+
var maxLength = self.getSelectionUpperLimit();
|
|
1273
1286
|
var selectedItems = self.data.selectedItems;
|
|
1274
1287
|
self.selectedRows.map(function (item) { return item.setCheckdisable(false); });
|
|
1275
|
-
if (maxLength && maxLength <= selectedItems.length) {
|
|
1288
|
+
if (maxLength !== Infinity && maxLength <= selectedItems.length) {
|
|
1276
1289
|
self.unSelectedRows.map(function (item) { return !item.checked && item.setCheckdisable(true); });
|
|
1277
1290
|
}
|
|
1278
1291
|
else {
|
|
@@ -1411,10 +1424,11 @@ var TableStore = iRenderer.iRendererStore
|
|
|
1411
1424
|
}
|
|
1412
1425
|
function getPersistDataKey(columns) {
|
|
1413
1426
|
// 这里的columns使用除了__开头的所有列
|
|
1414
|
-
// sort保证存储和读取的key值保持一致
|
|
1415
1427
|
return (location.pathname +
|
|
1416
1428
|
self.path +
|
|
1417
|
-
|
|
1429
|
+
// 不能 sort 因为原始列的顺序设计器是可能改变的,此时如果缓存了打开会失效
|
|
1430
|
+
// 还是缓存的顺序,不符合用户调整列顺序的预期
|
|
1431
|
+
columns.map(function (item, index) { return item.name || item.label || index; }).join('-'));
|
|
1418
1432
|
}
|
|
1419
1433
|
function setSearchFormExpanded(value) {
|
|
1420
1434
|
self.searchFormExpanded = !!value;
|
package/lib/store/table2.js
CHANGED
package/lib/theme.js
CHANGED
package/lib/utils/Animation.js
CHANGED
package/lib/utils/ColorScale.js
CHANGED
package/lib/utils/DataSchema.js
CHANGED
package/lib/utils/DataScope.js
CHANGED
package/lib/utils/RootClose.js
CHANGED
package/lib/utils/SimpleMap.js
CHANGED