amis-core 3.5.2 → 3.6.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 +1 -1
- package/esm/RootRenderer.d.ts +1 -1
- package/esm/RootRenderer.js +2 -2
- package/esm/SchemaRenderer.js +1 -1
- package/esm/Scoped.d.ts +2 -0
- package/esm/Scoped.js +49 -7
- package/esm/StatusScoped.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +27 -12
- package/esm/actions/Action.js +30 -22
- package/esm/actions/AjaxAction.js +2 -2
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.js +31 -32
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +3 -3
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/DialogAction.js +1 -1
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/LinkAction.js +5 -5
- package/esm/actions/LoopAction.js +1 -1
- package/esm/actions/PageAction.js +1 -1
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +3 -3
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/ErrorBoundary.d.ts +20 -0
- package/esm/components/ErrorBoundary.js +41 -0
- package/esm/components/LazyComponent.js +1 -1
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.d.ts +4 -0
- package/esm/components/PopOver.js +66 -3
- package/esm/env.d.ts +9 -0
- package/esm/env.js +1 -1
- package/esm/envOverwrite.d.ts +1 -1
- package/esm/envOverwrite.js +15 -35
- package/esm/factory.js +1 -1
- package/esm/index.d.ts +2 -1
- package/esm/index.js +5 -4
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.d.ts +10 -4
- package/esm/renderers/Form.js +64 -32
- package/esm/renderers/Item.d.ts +54 -0
- package/esm/renderers/Item.js +1 -1
- package/esm/renderers/Options.d.ts +5 -1
- package/esm/renderers/Options.js +11 -9
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/register.js +1 -1
- package/esm/renderers/wrapControl.js +10 -17
- package/esm/store/app.js +1 -1
- package/esm/store/combo.d.ts +1154 -48
- package/esm/store/combo.js +10 -3
- package/esm/store/crud.d.ts +9 -1
- package/esm/store/crud.js +50 -15
- package/esm/store/form.d.ts +480 -20
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.d.ts +23 -1
- package/esm/store/formItem.js +103 -15
- package/esm/store/iRenderer.js +1 -1
- package/esm/store/index.js +1 -1
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.js +1 -1
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +1078 -42
- package/esm/store/table.js +64 -6
- package/esm/store/table2.js +1 -4
- package/esm/theme.js +1 -1
- package/esm/types.d.ts +8 -2
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +1 -1
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/api.js +1 -1
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +3 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/columnsSplit.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.d.ts +2 -1
- package/esm/utils/filter-schema.js +14 -5
- 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 +2 -2
- package/esm/utils/helper.js +37 -29
- 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/makeSorter.js +1 -1
- package/esm/utils/math.js +8 -5
- 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 +15 -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/renderer-event.d.ts +7 -0
- package/esm/utils/renderer-event.js +30 -18
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/esm/utils/scrollPosition.js +1 -1
- package/esm/utils/string2regExp.js +1 -1
- package/esm/utils/stripNumber.js +1 -1
- package/esm/utils/style-helper.js +12 -15
- package/esm/utils/style.js +3 -2
- 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/validations.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +2 -2
- package/lib/SchemaRenderer.js +1 -1
- package/lib/Scoped.d.ts +2 -0
- package/lib/Scoped.js +48 -6
- package/lib/StatusScoped.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +26 -11
- package/lib/actions/Action.js +29 -21
- package/lib/actions/AjaxAction.js +2 -2
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.js +31 -32
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +3 -3
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/DialogAction.js +1 -1
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/LinkAction.js +5 -5
- package/lib/actions/LoopAction.js +1 -1
- package/lib/actions/PageAction.js +1 -1
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +3 -3
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/ErrorBoundary.d.ts +20 -0
- package/lib/components/ErrorBoundary.js +52 -0
- package/lib/components/LazyComponent.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.d.ts +4 -0
- package/lib/components/PopOver.js +64 -1
- package/lib/env.d.ts +9 -0
- package/lib/env.js +1 -1
- package/lib/envOverwrite.d.ts +1 -1
- package/lib/envOverwrite.js +18 -34
- package/lib/factory.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.d.ts +10 -4
- package/lib/renderers/Form.js +64 -32
- package/lib/renderers/Item.d.ts +54 -0
- package/lib/renderers/Item.js +1 -1
- package/lib/renderers/Options.d.ts +5 -1
- package/lib/renderers/Options.js +11 -9
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/register.js +1 -1
- package/lib/renderers/wrapControl.js +10 -17
- package/lib/store/app.js +1 -1
- package/lib/store/combo.d.ts +1154 -49
- package/lib/store/combo.js +10 -3
- package/lib/store/crud.d.ts +9 -1
- package/lib/store/crud.js +50 -15
- package/lib/store/form.d.ts +480 -21
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.d.ts +23 -1
- package/lib/store/formItem.js +104 -15
- package/lib/store/iRenderer.js +1 -1
- package/lib/store/index.js +1 -1
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.js +1 -1
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +1078 -43
- package/lib/store/table.js +63 -5
- package/lib/store/table2.js +1 -4
- package/lib/theme.js +1 -1
- package/lib/types.d.ts +8 -2
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +1 -1
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +3 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/columnsSplit.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.d.ts +2 -1
- package/lib/utils/filter-schema.js +14 -4
- 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 +2 -2
- package/lib/utils/helper.js +36 -28
- 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/makeSorter.js +1 -1
- package/lib/utils/math.js +8 -5
- 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 +15 -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/renderer-event.d.ts +7 -0
- package/lib/utils/renderer-event.js +30 -18
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/lib/utils/scrollPosition.js +1 -1
- package/lib/utils/string2regExp.js +1 -1
- package/lib/utils/stripNumber.js +1 -1
- package/lib/utils/style-helper.js +12 -15
- package/lib/utils/style.js +3 -2
- 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/validations.js +1 -1
- package/package.json +3 -3
package/lib/store/form.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { Instance } from 'mobx-state-tree';
|
|
3
2
|
import type { IFormItemStore } from './formItem';
|
|
4
3
|
import { Api, fetchOptions, Payload } from '../types';
|
|
@@ -126,6 +125,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
126
125
|
joinValues: boolean;
|
|
127
126
|
extractValue: boolean;
|
|
128
127
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
128
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
129
129
|
expressionsInOptions: boolean;
|
|
130
130
|
selectFirst: boolean;
|
|
131
131
|
autoFill: any;
|
|
@@ -141,6 +141,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
141
141
|
inputGroupControl: any;
|
|
142
142
|
colIndex: any;
|
|
143
143
|
rowIndex: any;
|
|
144
|
+
pagination: any;
|
|
145
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
144
146
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
145
147
|
readonly parentStore: any;
|
|
146
148
|
readonly __: any;
|
|
@@ -161,13 +163,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
161
163
|
readonly valid: boolean;
|
|
162
164
|
readonly errClassNames: string;
|
|
163
165
|
readonly lastSelectValue: string;
|
|
166
|
+
readonly enableSourcePagination: boolean;
|
|
167
|
+
readonly sourcePageNum: number;
|
|
168
|
+
readonly sourcePerPageNum: number;
|
|
169
|
+
readonly sourceTotalNum: number;
|
|
164
170
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
165
171
|
splitExtraValue(value: any): any[];
|
|
166
172
|
getMergedData(data: any): any;
|
|
167
173
|
} & {
|
|
168
174
|
focus: () => void;
|
|
169
175
|
blur: () => void;
|
|
170
|
-
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 }: {
|
|
176
|
+
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 }: {
|
|
171
177
|
extraName?: string | undefined;
|
|
172
178
|
required?: boolean | undefined;
|
|
173
179
|
unique?: boolean | undefined;
|
|
@@ -200,6 +206,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
200
206
|
name: string;
|
|
201
207
|
path: string;
|
|
202
208
|
} | undefined;
|
|
209
|
+
pagination?: {
|
|
210
|
+
enable?: boolean | undefined;
|
|
211
|
+
page?: number | undefined;
|
|
212
|
+
perPage?: number | undefined;
|
|
213
|
+
} | undefined;
|
|
203
214
|
}) => void;
|
|
204
215
|
validate: (data: Object, hook?: any, customRules?: {
|
|
205
216
|
[propName: string]: any;
|
|
@@ -210,10 +221,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
210
221
|
rule: string;
|
|
211
222
|
})[], tag?: string) => void;
|
|
212
223
|
clearError: (tag?: string | undefined) => void;
|
|
224
|
+
setPagination: (params: {
|
|
225
|
+
page?: number | undefined;
|
|
226
|
+
perPage?: number | undefined;
|
|
227
|
+
total?: number | undefined;
|
|
228
|
+
}) => void;
|
|
213
229
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
214
230
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
215
231
|
extendsOptions?: boolean | undefined;
|
|
216
232
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
233
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
217
234
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
218
235
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
219
236
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -225,7 +242,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
225
242
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
226
243
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
227
244
|
closeDialog: (result?: any) => void;
|
|
228
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
245
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
229
246
|
changeEmitedValue: (value: any) => void;
|
|
230
247
|
addSubFormItem: (item: {
|
|
231
248
|
id: string;
|
|
@@ -270,6 +287,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
270
287
|
joinValues: boolean;
|
|
271
288
|
extractValue: boolean;
|
|
272
289
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
290
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
273
291
|
expressionsInOptions: boolean;
|
|
274
292
|
selectFirst: boolean;
|
|
275
293
|
autoFill: any;
|
|
@@ -285,6 +303,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
285
303
|
inputGroupControl: any;
|
|
286
304
|
colIndex: any;
|
|
287
305
|
rowIndex: any;
|
|
306
|
+
pagination: any;
|
|
307
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
288
308
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
289
309
|
readonly parentStore: any;
|
|
290
310
|
readonly __: any;
|
|
@@ -305,6 +325,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
305
325
|
readonly valid: boolean;
|
|
306
326
|
readonly errClassNames: string;
|
|
307
327
|
readonly lastSelectValue: string;
|
|
328
|
+
readonly enableSourcePagination: boolean;
|
|
329
|
+
readonly sourcePageNum: number;
|
|
330
|
+
readonly sourcePerPageNum: number;
|
|
331
|
+
readonly sourceTotalNum: number;
|
|
308
332
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
309
333
|
splitExtraValue(value: any): any[];
|
|
310
334
|
getMergedData(data: any): any;
|
|
@@ -348,6 +372,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
348
372
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
349
373
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
350
374
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
375
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
351
376
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
352
377
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
353
378
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -363,6 +388,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
363
388
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
364
389
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
365
390
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
391
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
392
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
366
393
|
}, {
|
|
367
394
|
readonly parentStore: any;
|
|
368
395
|
readonly __: any;
|
|
@@ -383,6 +410,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
383
410
|
readonly valid: boolean;
|
|
384
411
|
readonly errClassNames: string;
|
|
385
412
|
readonly lastSelectValue: string;
|
|
413
|
+
readonly enableSourcePagination: boolean;
|
|
414
|
+
readonly sourcePageNum: number;
|
|
415
|
+
readonly sourcePerPageNum: number;
|
|
416
|
+
readonly sourceTotalNum: number;
|
|
386
417
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
387
418
|
splitExtraValue(value: any): any[];
|
|
388
419
|
getMergedData(data: any): any;
|
|
@@ -430,6 +461,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
430
461
|
joinValues: boolean;
|
|
431
462
|
extractValue: boolean;
|
|
432
463
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
464
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
433
465
|
expressionsInOptions: boolean;
|
|
434
466
|
selectFirst: boolean;
|
|
435
467
|
autoFill: any;
|
|
@@ -445,6 +477,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
445
477
|
inputGroupControl: any;
|
|
446
478
|
colIndex: any;
|
|
447
479
|
rowIndex: any;
|
|
480
|
+
pagination: any;
|
|
481
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
448
482
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
449
483
|
readonly parentStore: any;
|
|
450
484
|
readonly __: any;
|
|
@@ -465,6 +499,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
465
499
|
readonly valid: boolean;
|
|
466
500
|
readonly errClassNames: string;
|
|
467
501
|
readonly lastSelectValue: string;
|
|
502
|
+
readonly enableSourcePagination: boolean;
|
|
503
|
+
readonly sourcePageNum: number;
|
|
504
|
+
readonly sourcePerPageNum: number;
|
|
505
|
+
readonly sourceTotalNum: number;
|
|
468
506
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
469
507
|
splitExtraValue(value: any): any[];
|
|
470
508
|
getMergedData(data: any): any;
|
|
@@ -508,6 +546,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
508
546
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
509
547
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
510
548
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
549
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
511
550
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
512
551
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
513
552
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -523,6 +562,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
523
562
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
524
563
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
525
564
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
565
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
566
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
526
567
|
}, {
|
|
527
568
|
readonly parentStore: any;
|
|
528
569
|
readonly __: any;
|
|
@@ -543,6 +584,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
543
584
|
readonly valid: boolean;
|
|
544
585
|
readonly errClassNames: string;
|
|
545
586
|
readonly lastSelectValue: string;
|
|
587
|
+
readonly enableSourcePagination: boolean;
|
|
588
|
+
readonly sourcePageNum: number;
|
|
589
|
+
readonly sourcePerPageNum: number;
|
|
590
|
+
readonly sourceTotalNum: number;
|
|
546
591
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
547
592
|
splitExtraValue(value: any): any[];
|
|
548
593
|
getMergedData(data: any): any;
|
|
@@ -589,6 +634,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
589
634
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
590
635
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
591
636
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
637
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
592
638
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
593
639
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
594
640
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -604,6 +650,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
604
650
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
605
651
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
606
652
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
653
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
654
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
607
655
|
}, {
|
|
608
656
|
readonly parentStore: any;
|
|
609
657
|
readonly __: any;
|
|
@@ -624,13 +672,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
624
672
|
readonly valid: boolean;
|
|
625
673
|
readonly errClassNames: string;
|
|
626
674
|
readonly lastSelectValue: string;
|
|
675
|
+
readonly enableSourcePagination: boolean;
|
|
676
|
+
readonly sourcePageNum: number;
|
|
677
|
+
readonly sourcePerPageNum: number;
|
|
678
|
+
readonly sourceTotalNum: number;
|
|
627
679
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
628
680
|
splitExtraValue(value: any): any[];
|
|
629
681
|
getMergedData(data: any): any;
|
|
630
682
|
} & {
|
|
631
683
|
focus: () => void;
|
|
632
684
|
blur: () => void;
|
|
633
|
-
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 }: {
|
|
685
|
+
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 }: {
|
|
634
686
|
extraName?: string | undefined;
|
|
635
687
|
required?: boolean | undefined;
|
|
636
688
|
unique?: boolean | undefined;
|
|
@@ -663,6 +715,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
663
715
|
name: string;
|
|
664
716
|
path: string;
|
|
665
717
|
} | undefined;
|
|
718
|
+
pagination?: {
|
|
719
|
+
enable?: boolean | undefined;
|
|
720
|
+
page?: number | undefined;
|
|
721
|
+
perPage?: number | undefined;
|
|
722
|
+
} | undefined;
|
|
666
723
|
}) => void;
|
|
667
724
|
validate: (data: Object, hook?: any, customRules?: {
|
|
668
725
|
[propName: string]: any;
|
|
@@ -673,10 +730,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
673
730
|
rule: string;
|
|
674
731
|
})[], tag?: string) => void;
|
|
675
732
|
clearError: (tag?: string | undefined) => void;
|
|
733
|
+
setPagination: (params: {
|
|
734
|
+
page?: number | undefined;
|
|
735
|
+
perPage?: number | undefined;
|
|
736
|
+
total?: number | undefined;
|
|
737
|
+
}) => void;
|
|
676
738
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
677
739
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
678
740
|
extendsOptions?: boolean | undefined;
|
|
679
741
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
742
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
680
743
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
681
744
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
682
745
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -688,7 +751,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
688
751
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
689
752
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
690
753
|
closeDialog: (result?: any) => void;
|
|
691
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
754
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
692
755
|
changeEmitedValue: (value: any) => void;
|
|
693
756
|
addSubFormItem: (item: {
|
|
694
757
|
id: string;
|
|
@@ -733,6 +796,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
733
796
|
joinValues: boolean;
|
|
734
797
|
extractValue: boolean;
|
|
735
798
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
799
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
736
800
|
expressionsInOptions: boolean;
|
|
737
801
|
selectFirst: boolean;
|
|
738
802
|
autoFill: any;
|
|
@@ -748,6 +812,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
748
812
|
inputGroupControl: any;
|
|
749
813
|
colIndex: any;
|
|
750
814
|
rowIndex: any;
|
|
815
|
+
pagination: any;
|
|
816
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
751
817
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
752
818
|
readonly parentStore: any;
|
|
753
819
|
readonly __: any;
|
|
@@ -768,6 +834,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
768
834
|
readonly valid: boolean;
|
|
769
835
|
readonly errClassNames: string;
|
|
770
836
|
readonly lastSelectValue: string;
|
|
837
|
+
readonly enableSourcePagination: boolean;
|
|
838
|
+
readonly sourcePageNum: number;
|
|
839
|
+
readonly sourcePerPageNum: number;
|
|
840
|
+
readonly sourceTotalNum: number;
|
|
771
841
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
772
842
|
splitExtraValue(value: any): any[];
|
|
773
843
|
getMergedData(data: any): any;
|
|
@@ -811,6 +881,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
811
881
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
812
882
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
813
883
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
884
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
814
885
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
815
886
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
816
887
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -826,6 +897,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
826
897
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
827
898
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
828
899
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
900
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
901
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
829
902
|
}, {
|
|
830
903
|
readonly parentStore: any;
|
|
831
904
|
readonly __: any;
|
|
@@ -846,6 +919,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
846
919
|
readonly valid: boolean;
|
|
847
920
|
readonly errClassNames: string;
|
|
848
921
|
readonly lastSelectValue: string;
|
|
922
|
+
readonly enableSourcePagination: boolean;
|
|
923
|
+
readonly sourcePageNum: number;
|
|
924
|
+
readonly sourcePerPageNum: number;
|
|
925
|
+
readonly sourceTotalNum: number;
|
|
849
926
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
850
927
|
splitExtraValue(value: any): any[];
|
|
851
928
|
getMergedData(data: any): any;
|
|
@@ -893,6 +970,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
893
970
|
joinValues: boolean;
|
|
894
971
|
extractValue: boolean;
|
|
895
972
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
973
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
896
974
|
expressionsInOptions: boolean;
|
|
897
975
|
selectFirst: boolean;
|
|
898
976
|
autoFill: any;
|
|
@@ -908,6 +986,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
908
986
|
inputGroupControl: any;
|
|
909
987
|
colIndex: any;
|
|
910
988
|
rowIndex: any;
|
|
989
|
+
pagination: any;
|
|
990
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
911
991
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
912
992
|
readonly parentStore: any;
|
|
913
993
|
readonly __: any;
|
|
@@ -928,6 +1008,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
928
1008
|
readonly valid: boolean;
|
|
929
1009
|
readonly errClassNames: string;
|
|
930
1010
|
readonly lastSelectValue: string;
|
|
1011
|
+
readonly enableSourcePagination: boolean;
|
|
1012
|
+
readonly sourcePageNum: number;
|
|
1013
|
+
readonly sourcePerPageNum: number;
|
|
1014
|
+
readonly sourceTotalNum: number;
|
|
931
1015
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
932
1016
|
splitExtraValue(value: any): any[];
|
|
933
1017
|
getMergedData(data: any): any;
|
|
@@ -971,6 +1055,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
971
1055
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
972
1056
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
973
1057
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1058
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
974
1059
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
975
1060
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
976
1061
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -986,6 +1071,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
986
1071
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
987
1072
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
988
1073
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1074
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1075
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
989
1076
|
}, {
|
|
990
1077
|
readonly parentStore: any;
|
|
991
1078
|
readonly __: any;
|
|
@@ -1006,6 +1093,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1006
1093
|
readonly valid: boolean;
|
|
1007
1094
|
readonly errClassNames: string;
|
|
1008
1095
|
readonly lastSelectValue: string;
|
|
1096
|
+
readonly enableSourcePagination: boolean;
|
|
1097
|
+
readonly sourcePageNum: number;
|
|
1098
|
+
readonly sourcePerPageNum: number;
|
|
1099
|
+
readonly sourceTotalNum: number;
|
|
1009
1100
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1010
1101
|
splitExtraValue(value: any): any[];
|
|
1011
1102
|
getMergedData(data: any): any;
|
|
@@ -1057,6 +1148,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1057
1148
|
joinValues: boolean;
|
|
1058
1149
|
extractValue: boolean;
|
|
1059
1150
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1151
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1060
1152
|
expressionsInOptions: boolean;
|
|
1061
1153
|
selectFirst: boolean;
|
|
1062
1154
|
autoFill: any;
|
|
@@ -1072,6 +1164,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1072
1164
|
inputGroupControl: any;
|
|
1073
1165
|
colIndex: any;
|
|
1074
1166
|
rowIndex: any;
|
|
1167
|
+
pagination: any;
|
|
1168
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1075
1169
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1076
1170
|
readonly parentStore: any;
|
|
1077
1171
|
readonly __: any;
|
|
@@ -1092,13 +1186,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1092
1186
|
readonly valid: boolean;
|
|
1093
1187
|
readonly errClassNames: string;
|
|
1094
1188
|
readonly lastSelectValue: string;
|
|
1189
|
+
readonly enableSourcePagination: boolean;
|
|
1190
|
+
readonly sourcePageNum: number;
|
|
1191
|
+
readonly sourcePerPageNum: number;
|
|
1192
|
+
readonly sourceTotalNum: number;
|
|
1095
1193
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1096
1194
|
splitExtraValue(value: any): any[];
|
|
1097
1195
|
getMergedData(data: any): any;
|
|
1098
1196
|
} & {
|
|
1099
1197
|
focus: () => void;
|
|
1100
1198
|
blur: () => void;
|
|
1101
|
-
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 }: {
|
|
1199
|
+
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 }: {
|
|
1102
1200
|
extraName?: string | undefined;
|
|
1103
1201
|
required?: boolean | undefined;
|
|
1104
1202
|
unique?: boolean | undefined;
|
|
@@ -1131,6 +1229,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1131
1229
|
name: string;
|
|
1132
1230
|
path: string;
|
|
1133
1231
|
} | undefined;
|
|
1232
|
+
pagination?: {
|
|
1233
|
+
enable?: boolean | undefined;
|
|
1234
|
+
page?: number | undefined;
|
|
1235
|
+
perPage?: number | undefined;
|
|
1236
|
+
} | undefined;
|
|
1134
1237
|
}) => void;
|
|
1135
1238
|
validate: (data: Object, hook?: any, customRules?: {
|
|
1136
1239
|
[propName: string]: any;
|
|
@@ -1141,10 +1244,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1141
1244
|
rule: string;
|
|
1142
1245
|
})[], tag?: string) => void;
|
|
1143
1246
|
clearError: (tag?: string | undefined) => void;
|
|
1247
|
+
setPagination: (params: {
|
|
1248
|
+
page?: number | undefined;
|
|
1249
|
+
perPage?: number | undefined;
|
|
1250
|
+
total?: number | undefined;
|
|
1251
|
+
}) => void;
|
|
1144
1252
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
1145
1253
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
1146
1254
|
extendsOptions?: boolean | undefined;
|
|
1147
1255
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
1256
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
1148
1257
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
1149
1258
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
1150
1259
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -1156,7 +1265,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1156
1265
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1157
1266
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1158
1267
|
closeDialog: (result?: any) => void;
|
|
1159
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
1268
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1160
1269
|
changeEmitedValue: (value: any) => void;
|
|
1161
1270
|
addSubFormItem: (item: {
|
|
1162
1271
|
id: string;
|
|
@@ -1201,6 +1310,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1201
1310
|
joinValues: boolean;
|
|
1202
1311
|
extractValue: boolean;
|
|
1203
1312
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1313
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1204
1314
|
expressionsInOptions: boolean;
|
|
1205
1315
|
selectFirst: boolean;
|
|
1206
1316
|
autoFill: any;
|
|
@@ -1216,6 +1326,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1216
1326
|
inputGroupControl: any;
|
|
1217
1327
|
colIndex: any;
|
|
1218
1328
|
rowIndex: any;
|
|
1329
|
+
pagination: any;
|
|
1330
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1219
1331
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1220
1332
|
readonly parentStore: any;
|
|
1221
1333
|
readonly __: any;
|
|
@@ -1236,6 +1348,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1236
1348
|
readonly valid: boolean;
|
|
1237
1349
|
readonly errClassNames: string;
|
|
1238
1350
|
readonly lastSelectValue: string;
|
|
1351
|
+
readonly enableSourcePagination: boolean;
|
|
1352
|
+
readonly sourcePageNum: number;
|
|
1353
|
+
readonly sourcePerPageNum: number;
|
|
1354
|
+
readonly sourceTotalNum: number;
|
|
1239
1355
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1240
1356
|
splitExtraValue(value: any): any[];
|
|
1241
1357
|
getMergedData(data: any): any;
|
|
@@ -1279,6 +1395,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1279
1395
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1280
1396
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1281
1397
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1398
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1282
1399
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1283
1400
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1284
1401
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -1294,6 +1411,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1294
1411
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1295
1412
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1296
1413
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1414
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1415
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1297
1416
|
}, {
|
|
1298
1417
|
readonly parentStore: any;
|
|
1299
1418
|
readonly __: any;
|
|
@@ -1314,6 +1433,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1314
1433
|
readonly valid: boolean;
|
|
1315
1434
|
readonly errClassNames: string;
|
|
1316
1435
|
readonly lastSelectValue: string;
|
|
1436
|
+
readonly enableSourcePagination: boolean;
|
|
1437
|
+
readonly sourcePageNum: number;
|
|
1438
|
+
readonly sourcePerPageNum: number;
|
|
1439
|
+
readonly sourceTotalNum: number;
|
|
1317
1440
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1318
1441
|
splitExtraValue(value: any): any[];
|
|
1319
1442
|
getMergedData(data: any): any;
|
|
@@ -1361,6 +1484,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1361
1484
|
joinValues: boolean;
|
|
1362
1485
|
extractValue: boolean;
|
|
1363
1486
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1487
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1364
1488
|
expressionsInOptions: boolean;
|
|
1365
1489
|
selectFirst: boolean;
|
|
1366
1490
|
autoFill: any;
|
|
@@ -1376,6 +1500,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1376
1500
|
inputGroupControl: any;
|
|
1377
1501
|
colIndex: any;
|
|
1378
1502
|
rowIndex: any;
|
|
1503
|
+
pagination: any;
|
|
1504
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1379
1505
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1380
1506
|
readonly parentStore: any;
|
|
1381
1507
|
readonly __: any;
|
|
@@ -1396,6 +1522,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1396
1522
|
readonly valid: boolean;
|
|
1397
1523
|
readonly errClassNames: string;
|
|
1398
1524
|
readonly lastSelectValue: string;
|
|
1525
|
+
readonly enableSourcePagination: boolean;
|
|
1526
|
+
readonly sourcePageNum: number;
|
|
1527
|
+
readonly sourcePerPageNum: number;
|
|
1528
|
+
readonly sourceTotalNum: number;
|
|
1399
1529
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1400
1530
|
splitExtraValue(value: any): any[];
|
|
1401
1531
|
getMergedData(data: any): any;
|
|
@@ -1439,6 +1569,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1439
1569
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1440
1570
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1441
1571
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1572
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1442
1573
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1443
1574
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1444
1575
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -1454,6 +1585,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1454
1585
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1455
1586
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1456
1587
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1588
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1589
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1457
1590
|
}, {
|
|
1458
1591
|
readonly parentStore: any;
|
|
1459
1592
|
readonly __: any;
|
|
@@ -1474,6 +1607,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1474
1607
|
readonly valid: boolean;
|
|
1475
1608
|
readonly errClassNames: string;
|
|
1476
1609
|
readonly lastSelectValue: string;
|
|
1610
|
+
readonly enableSourcePagination: boolean;
|
|
1611
|
+
readonly sourcePageNum: number;
|
|
1612
|
+
readonly sourcePerPageNum: number;
|
|
1613
|
+
readonly sourceTotalNum: number;
|
|
1477
1614
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1478
1615
|
splitExtraValue(value: any): any[];
|
|
1479
1616
|
getMergedData(data: any): any;
|
|
@@ -1520,6 +1657,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1520
1657
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1521
1658
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1522
1659
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1660
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1523
1661
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1524
1662
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1525
1663
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -1535,6 +1673,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1535
1673
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1536
1674
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1537
1675
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1676
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1677
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1538
1678
|
}, {
|
|
1539
1679
|
readonly parentStore: any;
|
|
1540
1680
|
readonly __: any;
|
|
@@ -1555,13 +1695,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1555
1695
|
readonly valid: boolean;
|
|
1556
1696
|
readonly errClassNames: string;
|
|
1557
1697
|
readonly lastSelectValue: string;
|
|
1698
|
+
readonly enableSourcePagination: boolean;
|
|
1699
|
+
readonly sourcePageNum: number;
|
|
1700
|
+
readonly sourcePerPageNum: number;
|
|
1701
|
+
readonly sourceTotalNum: number;
|
|
1558
1702
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1559
1703
|
splitExtraValue(value: any): any[];
|
|
1560
1704
|
getMergedData(data: any): any;
|
|
1561
1705
|
} & {
|
|
1562
1706
|
focus: () => void;
|
|
1563
1707
|
blur: () => void;
|
|
1564
|
-
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 }: {
|
|
1708
|
+
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 }: {
|
|
1565
1709
|
extraName?: string | undefined;
|
|
1566
1710
|
required?: boolean | undefined;
|
|
1567
1711
|
unique?: boolean | undefined;
|
|
@@ -1594,6 +1738,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1594
1738
|
name: string;
|
|
1595
1739
|
path: string;
|
|
1596
1740
|
} | undefined;
|
|
1741
|
+
pagination?: {
|
|
1742
|
+
enable?: boolean | undefined;
|
|
1743
|
+
page?: number | undefined;
|
|
1744
|
+
perPage?: number | undefined;
|
|
1745
|
+
} | undefined;
|
|
1597
1746
|
}) => void;
|
|
1598
1747
|
validate: (data: Object, hook?: any, customRules?: {
|
|
1599
1748
|
[propName: string]: any;
|
|
@@ -1604,10 +1753,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1604
1753
|
rule: string;
|
|
1605
1754
|
})[], tag?: string) => void;
|
|
1606
1755
|
clearError: (tag?: string | undefined) => void;
|
|
1756
|
+
setPagination: (params: {
|
|
1757
|
+
page?: number | undefined;
|
|
1758
|
+
perPage?: number | undefined;
|
|
1759
|
+
total?: number | undefined;
|
|
1760
|
+
}) => void;
|
|
1607
1761
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
1608
1762
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
1609
1763
|
extendsOptions?: boolean | undefined;
|
|
1610
1764
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
1765
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
1611
1766
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
1612
1767
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
1613
1768
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -1619,7 +1774,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1619
1774
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
1620
1775
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
1621
1776
|
closeDialog: (result?: any) => void;
|
|
1622
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
1777
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
1623
1778
|
changeEmitedValue: (value: any) => void;
|
|
1624
1779
|
addSubFormItem: (item: {
|
|
1625
1780
|
id: string;
|
|
@@ -1664,6 +1819,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1664
1819
|
joinValues: boolean;
|
|
1665
1820
|
extractValue: boolean;
|
|
1666
1821
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1822
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1667
1823
|
expressionsInOptions: boolean;
|
|
1668
1824
|
selectFirst: boolean;
|
|
1669
1825
|
autoFill: any;
|
|
@@ -1679,6 +1835,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1679
1835
|
inputGroupControl: any;
|
|
1680
1836
|
colIndex: any;
|
|
1681
1837
|
rowIndex: any;
|
|
1838
|
+
pagination: any;
|
|
1839
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1682
1840
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1683
1841
|
readonly parentStore: any;
|
|
1684
1842
|
readonly __: any;
|
|
@@ -1699,6 +1857,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1699
1857
|
readonly valid: boolean;
|
|
1700
1858
|
readonly errClassNames: string;
|
|
1701
1859
|
readonly lastSelectValue: string;
|
|
1860
|
+
readonly enableSourcePagination: boolean;
|
|
1861
|
+
readonly sourcePageNum: number;
|
|
1862
|
+
readonly sourcePerPageNum: number;
|
|
1863
|
+
readonly sourceTotalNum: number;
|
|
1702
1864
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1703
1865
|
splitExtraValue(value: any): any[];
|
|
1704
1866
|
getMergedData(data: any): any;
|
|
@@ -1742,6 +1904,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1742
1904
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1743
1905
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1744
1906
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1907
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1745
1908
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1746
1909
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1747
1910
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -1757,6 +1920,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1757
1920
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1758
1921
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1759
1922
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1923
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1924
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1760
1925
|
}, {
|
|
1761
1926
|
readonly parentStore: any;
|
|
1762
1927
|
readonly __: any;
|
|
@@ -1777,6 +1942,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1777
1942
|
readonly valid: boolean;
|
|
1778
1943
|
readonly errClassNames: string;
|
|
1779
1944
|
readonly lastSelectValue: string;
|
|
1945
|
+
readonly enableSourcePagination: boolean;
|
|
1946
|
+
readonly sourcePageNum: number;
|
|
1947
|
+
readonly sourcePerPageNum: number;
|
|
1948
|
+
readonly sourceTotalNum: number;
|
|
1780
1949
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1781
1950
|
splitExtraValue(value: any): any[];
|
|
1782
1951
|
getMergedData(data: any): any;
|
|
@@ -1824,6 +1993,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1824
1993
|
joinValues: boolean;
|
|
1825
1994
|
extractValue: boolean;
|
|
1826
1995
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1996
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1827
1997
|
expressionsInOptions: boolean;
|
|
1828
1998
|
selectFirst: boolean;
|
|
1829
1999
|
autoFill: any;
|
|
@@ -1839,6 +2009,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1839
2009
|
inputGroupControl: any;
|
|
1840
2010
|
colIndex: any;
|
|
1841
2011
|
rowIndex: any;
|
|
2012
|
+
pagination: any;
|
|
2013
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1842
2014
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
1843
2015
|
readonly parentStore: any;
|
|
1844
2016
|
readonly __: any;
|
|
@@ -1859,6 +2031,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1859
2031
|
readonly valid: boolean;
|
|
1860
2032
|
readonly errClassNames: string;
|
|
1861
2033
|
readonly lastSelectValue: string;
|
|
2034
|
+
readonly enableSourcePagination: boolean;
|
|
2035
|
+
readonly sourcePageNum: number;
|
|
2036
|
+
readonly sourcePerPageNum: number;
|
|
2037
|
+
readonly sourceTotalNum: number;
|
|
1862
2038
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1863
2039
|
splitExtraValue(value: any): any[];
|
|
1864
2040
|
getMergedData(data: any): any;
|
|
@@ -1902,6 +2078,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1902
2078
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1903
2079
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1904
2080
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2081
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1905
2082
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1906
2083
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
1907
2084
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -1917,6 +2094,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1917
2094
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
1918
2095
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
1919
2096
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2097
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2098
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
1920
2099
|
}, {
|
|
1921
2100
|
readonly parentStore: any;
|
|
1922
2101
|
readonly __: any;
|
|
@@ -1937,6 +2116,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1937
2116
|
readonly valid: boolean;
|
|
1938
2117
|
readonly errClassNames: string;
|
|
1939
2118
|
readonly lastSelectValue: string;
|
|
2119
|
+
readonly enableSourcePagination: boolean;
|
|
2120
|
+
readonly sourcePageNum: number;
|
|
2121
|
+
readonly sourcePerPageNum: number;
|
|
2122
|
+
readonly sourceTotalNum: number;
|
|
1940
2123
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
1941
2124
|
splitExtraValue(value: any): any[];
|
|
1942
2125
|
getMergedData(data: any): any;
|
|
@@ -1992,6 +2175,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
1992
2175
|
joinValues: boolean;
|
|
1993
2176
|
extractValue: boolean;
|
|
1994
2177
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2178
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
1995
2179
|
expressionsInOptions: boolean;
|
|
1996
2180
|
selectFirst: boolean;
|
|
1997
2181
|
autoFill: any;
|
|
@@ -2007,6 +2191,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2007
2191
|
inputGroupControl: any;
|
|
2008
2192
|
colIndex: any;
|
|
2009
2193
|
rowIndex: any;
|
|
2194
|
+
pagination: any;
|
|
2195
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2010
2196
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2011
2197
|
readonly parentStore: any;
|
|
2012
2198
|
readonly __: any;
|
|
@@ -2027,13 +2213,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2027
2213
|
readonly valid: boolean;
|
|
2028
2214
|
readonly errClassNames: string;
|
|
2029
2215
|
readonly lastSelectValue: string;
|
|
2216
|
+
readonly enableSourcePagination: boolean;
|
|
2217
|
+
readonly sourcePageNum: number;
|
|
2218
|
+
readonly sourcePerPageNum: number;
|
|
2219
|
+
readonly sourceTotalNum: number;
|
|
2030
2220
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2031
2221
|
splitExtraValue(value: any): any[];
|
|
2032
2222
|
getMergedData(data: any): any;
|
|
2033
2223
|
} & {
|
|
2034
2224
|
focus: () => void;
|
|
2035
2225
|
blur: () => void;
|
|
2036
|
-
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 }: {
|
|
2226
|
+
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 }: {
|
|
2037
2227
|
extraName?: string | undefined;
|
|
2038
2228
|
required?: boolean | undefined;
|
|
2039
2229
|
unique?: boolean | undefined;
|
|
@@ -2066,6 +2256,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2066
2256
|
name: string;
|
|
2067
2257
|
path: string;
|
|
2068
2258
|
} | undefined;
|
|
2259
|
+
pagination?: {
|
|
2260
|
+
enable?: boolean | undefined;
|
|
2261
|
+
page?: number | undefined;
|
|
2262
|
+
perPage?: number | undefined;
|
|
2263
|
+
} | undefined;
|
|
2069
2264
|
}) => void;
|
|
2070
2265
|
validate: (data: Object, hook?: any, customRules?: {
|
|
2071
2266
|
[propName: string]: any;
|
|
@@ -2076,10 +2271,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2076
2271
|
rule: string;
|
|
2077
2272
|
})[], tag?: string) => void;
|
|
2078
2273
|
clearError: (tag?: string | undefined) => void;
|
|
2274
|
+
setPagination: (params: {
|
|
2275
|
+
page?: number | undefined;
|
|
2276
|
+
perPage?: number | undefined;
|
|
2277
|
+
total?: number | undefined;
|
|
2278
|
+
}) => void;
|
|
2079
2279
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
2080
2280
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
2081
2281
|
extendsOptions?: boolean | undefined;
|
|
2082
2282
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
2283
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
2083
2284
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
2084
2285
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
2085
2286
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -2091,7 +2292,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2091
2292
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2092
2293
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2093
2294
|
closeDialog: (result?: any) => void;
|
|
2094
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
2295
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2095
2296
|
changeEmitedValue: (value: any) => void;
|
|
2096
2297
|
addSubFormItem: (item: {
|
|
2097
2298
|
id: string;
|
|
@@ -2136,6 +2337,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2136
2337
|
joinValues: boolean;
|
|
2137
2338
|
extractValue: boolean;
|
|
2138
2339
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2340
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2139
2341
|
expressionsInOptions: boolean;
|
|
2140
2342
|
selectFirst: boolean;
|
|
2141
2343
|
autoFill: any;
|
|
@@ -2151,6 +2353,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2151
2353
|
inputGroupControl: any;
|
|
2152
2354
|
colIndex: any;
|
|
2153
2355
|
rowIndex: any;
|
|
2356
|
+
pagination: any;
|
|
2357
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2154
2358
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2155
2359
|
readonly parentStore: any;
|
|
2156
2360
|
readonly __: any;
|
|
@@ -2171,6 +2375,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2171
2375
|
readonly valid: boolean;
|
|
2172
2376
|
readonly errClassNames: string;
|
|
2173
2377
|
readonly lastSelectValue: string;
|
|
2378
|
+
readonly enableSourcePagination: boolean;
|
|
2379
|
+
readonly sourcePageNum: number;
|
|
2380
|
+
readonly sourcePerPageNum: number;
|
|
2381
|
+
readonly sourceTotalNum: number;
|
|
2174
2382
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2175
2383
|
splitExtraValue(value: any): any[];
|
|
2176
2384
|
getMergedData(data: any): any;
|
|
@@ -2214,6 +2422,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2214
2422
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2215
2423
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2216
2424
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2425
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2217
2426
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2218
2427
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2219
2428
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -2229,6 +2438,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2229
2438
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2230
2439
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2231
2440
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2441
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2442
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2232
2443
|
}, {
|
|
2233
2444
|
readonly parentStore: any;
|
|
2234
2445
|
readonly __: any;
|
|
@@ -2249,6 +2460,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2249
2460
|
readonly valid: boolean;
|
|
2250
2461
|
readonly errClassNames: string;
|
|
2251
2462
|
readonly lastSelectValue: string;
|
|
2463
|
+
readonly enableSourcePagination: boolean;
|
|
2464
|
+
readonly sourcePageNum: number;
|
|
2465
|
+
readonly sourcePerPageNum: number;
|
|
2466
|
+
readonly sourceTotalNum: number;
|
|
2252
2467
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2253
2468
|
splitExtraValue(value: any): any[];
|
|
2254
2469
|
getMergedData(data: any): any;
|
|
@@ -2296,6 +2511,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2296
2511
|
joinValues: boolean;
|
|
2297
2512
|
extractValue: boolean;
|
|
2298
2513
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2514
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2299
2515
|
expressionsInOptions: boolean;
|
|
2300
2516
|
selectFirst: boolean;
|
|
2301
2517
|
autoFill: any;
|
|
@@ -2311,6 +2527,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2311
2527
|
inputGroupControl: any;
|
|
2312
2528
|
colIndex: any;
|
|
2313
2529
|
rowIndex: any;
|
|
2530
|
+
pagination: any;
|
|
2531
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2314
2532
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2315
2533
|
readonly parentStore: any;
|
|
2316
2534
|
readonly __: any;
|
|
@@ -2331,6 +2549,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2331
2549
|
readonly valid: boolean;
|
|
2332
2550
|
readonly errClassNames: string;
|
|
2333
2551
|
readonly lastSelectValue: string;
|
|
2552
|
+
readonly enableSourcePagination: boolean;
|
|
2553
|
+
readonly sourcePageNum: number;
|
|
2554
|
+
readonly sourcePerPageNum: number;
|
|
2555
|
+
readonly sourceTotalNum: number;
|
|
2334
2556
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2335
2557
|
splitExtraValue(value: any): any[];
|
|
2336
2558
|
getMergedData(data: any): any;
|
|
@@ -2374,6 +2596,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2374
2596
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2375
2597
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2376
2598
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2599
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2377
2600
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2378
2601
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2379
2602
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -2389,6 +2612,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2389
2612
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2390
2613
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2391
2614
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2615
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2616
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2392
2617
|
}, {
|
|
2393
2618
|
readonly parentStore: any;
|
|
2394
2619
|
readonly __: any;
|
|
@@ -2409,6 +2634,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2409
2634
|
readonly valid: boolean;
|
|
2410
2635
|
readonly errClassNames: string;
|
|
2411
2636
|
readonly lastSelectValue: string;
|
|
2637
|
+
readonly enableSourcePagination: boolean;
|
|
2638
|
+
readonly sourcePageNum: number;
|
|
2639
|
+
readonly sourcePerPageNum: number;
|
|
2640
|
+
readonly sourceTotalNum: number;
|
|
2412
2641
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2413
2642
|
splitExtraValue(value: any): any[];
|
|
2414
2643
|
getMergedData(data: any): any;
|
|
@@ -2455,6 +2684,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2455
2684
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2456
2685
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2457
2686
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2687
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2458
2688
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2459
2689
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2460
2690
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -2470,6 +2700,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2470
2700
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2471
2701
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2472
2702
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2703
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2704
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2473
2705
|
}, {
|
|
2474
2706
|
readonly parentStore: any;
|
|
2475
2707
|
readonly __: any;
|
|
@@ -2490,13 +2722,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2490
2722
|
readonly valid: boolean;
|
|
2491
2723
|
readonly errClassNames: string;
|
|
2492
2724
|
readonly lastSelectValue: string;
|
|
2725
|
+
readonly enableSourcePagination: boolean;
|
|
2726
|
+
readonly sourcePageNum: number;
|
|
2727
|
+
readonly sourcePerPageNum: number;
|
|
2728
|
+
readonly sourceTotalNum: number;
|
|
2493
2729
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2494
2730
|
splitExtraValue(value: any): any[];
|
|
2495
2731
|
getMergedData(data: any): any;
|
|
2496
2732
|
} & {
|
|
2497
2733
|
focus: () => void;
|
|
2498
2734
|
blur: () => void;
|
|
2499
|
-
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 }: {
|
|
2735
|
+
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 }: {
|
|
2500
2736
|
extraName?: string | undefined;
|
|
2501
2737
|
required?: boolean | undefined;
|
|
2502
2738
|
unique?: boolean | undefined;
|
|
@@ -2529,6 +2765,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2529
2765
|
name: string;
|
|
2530
2766
|
path: string;
|
|
2531
2767
|
} | undefined;
|
|
2768
|
+
pagination?: {
|
|
2769
|
+
enable?: boolean | undefined;
|
|
2770
|
+
page?: number | undefined;
|
|
2771
|
+
perPage?: number | undefined;
|
|
2772
|
+
} | undefined;
|
|
2532
2773
|
}) => void;
|
|
2533
2774
|
validate: (data: Object, hook?: any, customRules?: {
|
|
2534
2775
|
[propName: string]: any;
|
|
@@ -2539,10 +2780,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2539
2780
|
rule: string;
|
|
2540
2781
|
})[], tag?: string) => void;
|
|
2541
2782
|
clearError: (tag?: string | undefined) => void;
|
|
2783
|
+
setPagination: (params: {
|
|
2784
|
+
page?: number | undefined;
|
|
2785
|
+
perPage?: number | undefined;
|
|
2786
|
+
total?: number | undefined;
|
|
2787
|
+
}) => void;
|
|
2542
2788
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
2543
2789
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
2544
2790
|
extendsOptions?: boolean | undefined;
|
|
2545
2791
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
2792
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
2546
2793
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
2547
2794
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
2548
2795
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -2554,7 +2801,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2554
2801
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
2555
2802
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
2556
2803
|
closeDialog: (result?: any) => void;
|
|
2557
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
2804
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
2558
2805
|
changeEmitedValue: (value: any) => void;
|
|
2559
2806
|
addSubFormItem: (item: {
|
|
2560
2807
|
id: string;
|
|
@@ -2599,6 +2846,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2599
2846
|
joinValues: boolean;
|
|
2600
2847
|
extractValue: boolean;
|
|
2601
2848
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2849
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2602
2850
|
expressionsInOptions: boolean;
|
|
2603
2851
|
selectFirst: boolean;
|
|
2604
2852
|
autoFill: any;
|
|
@@ -2614,6 +2862,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2614
2862
|
inputGroupControl: any;
|
|
2615
2863
|
colIndex: any;
|
|
2616
2864
|
rowIndex: any;
|
|
2865
|
+
pagination: any;
|
|
2866
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2617
2867
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2618
2868
|
readonly parentStore: any;
|
|
2619
2869
|
readonly __: any;
|
|
@@ -2634,6 +2884,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2634
2884
|
readonly valid: boolean;
|
|
2635
2885
|
readonly errClassNames: string;
|
|
2636
2886
|
readonly lastSelectValue: string;
|
|
2887
|
+
readonly enableSourcePagination: boolean;
|
|
2888
|
+
readonly sourcePageNum: number;
|
|
2889
|
+
readonly sourcePerPageNum: number;
|
|
2890
|
+
readonly sourceTotalNum: number;
|
|
2637
2891
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2638
2892
|
splitExtraValue(value: any): any[];
|
|
2639
2893
|
getMergedData(data: any): any;
|
|
@@ -2677,6 +2931,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2677
2931
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2678
2932
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2679
2933
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2934
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2680
2935
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2681
2936
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2682
2937
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -2692,6 +2947,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2692
2947
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2693
2948
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2694
2949
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2950
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2951
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2695
2952
|
}, {
|
|
2696
2953
|
readonly parentStore: any;
|
|
2697
2954
|
readonly __: any;
|
|
@@ -2712,6 +2969,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2712
2969
|
readonly valid: boolean;
|
|
2713
2970
|
readonly errClassNames: string;
|
|
2714
2971
|
readonly lastSelectValue: string;
|
|
2972
|
+
readonly enableSourcePagination: boolean;
|
|
2973
|
+
readonly sourcePageNum: number;
|
|
2974
|
+
readonly sourcePerPageNum: number;
|
|
2975
|
+
readonly sourceTotalNum: number;
|
|
2715
2976
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2716
2977
|
splitExtraValue(value: any): any[];
|
|
2717
2978
|
getMergedData(data: any): any;
|
|
@@ -2759,6 +3020,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2759
3020
|
joinValues: boolean;
|
|
2760
3021
|
extractValue: boolean;
|
|
2761
3022
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3023
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2762
3024
|
expressionsInOptions: boolean;
|
|
2763
3025
|
selectFirst: boolean;
|
|
2764
3026
|
autoFill: any;
|
|
@@ -2774,6 +3036,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2774
3036
|
inputGroupControl: any;
|
|
2775
3037
|
colIndex: any;
|
|
2776
3038
|
rowIndex: any;
|
|
3039
|
+
pagination: any;
|
|
3040
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2777
3041
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2778
3042
|
readonly parentStore: any;
|
|
2779
3043
|
readonly __: any;
|
|
@@ -2794,6 +3058,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2794
3058
|
readonly valid: boolean;
|
|
2795
3059
|
readonly errClassNames: string;
|
|
2796
3060
|
readonly lastSelectValue: string;
|
|
3061
|
+
readonly enableSourcePagination: boolean;
|
|
3062
|
+
readonly sourcePageNum: number;
|
|
3063
|
+
readonly sourcePerPageNum: number;
|
|
3064
|
+
readonly sourceTotalNum: number;
|
|
2797
3065
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2798
3066
|
splitExtraValue(value: any): any[];
|
|
2799
3067
|
getMergedData(data: any): any;
|
|
@@ -2837,6 +3105,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2837
3105
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2838
3106
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2839
3107
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3108
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2840
3109
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2841
3110
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
2842
3111
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -2852,6 +3121,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2852
3121
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
2853
3122
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
2854
3123
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3124
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3125
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
2855
3126
|
}, {
|
|
2856
3127
|
readonly parentStore: any;
|
|
2857
3128
|
readonly __: any;
|
|
@@ -2872,6 +3143,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2872
3143
|
readonly valid: boolean;
|
|
2873
3144
|
readonly errClassNames: string;
|
|
2874
3145
|
readonly lastSelectValue: string;
|
|
3146
|
+
readonly enableSourcePagination: boolean;
|
|
3147
|
+
readonly sourcePageNum: number;
|
|
3148
|
+
readonly sourcePerPageNum: number;
|
|
3149
|
+
readonly sourceTotalNum: number;
|
|
2875
3150
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2876
3151
|
splitExtraValue(value: any): any[];
|
|
2877
3152
|
getMergedData(data: any): any;
|
|
@@ -2922,6 +3197,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2922
3197
|
joinValues: boolean;
|
|
2923
3198
|
extractValue: boolean;
|
|
2924
3199
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3200
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2925
3201
|
expressionsInOptions: boolean;
|
|
2926
3202
|
selectFirst: boolean;
|
|
2927
3203
|
autoFill: any;
|
|
@@ -2937,6 +3213,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2937
3213
|
inputGroupControl: any;
|
|
2938
3214
|
colIndex: any;
|
|
2939
3215
|
rowIndex: any;
|
|
3216
|
+
pagination: any;
|
|
3217
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
2940
3218
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
2941
3219
|
readonly parentStore: any;
|
|
2942
3220
|
readonly __: any;
|
|
@@ -2957,13 +3235,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2957
3235
|
readonly valid: boolean;
|
|
2958
3236
|
readonly errClassNames: string;
|
|
2959
3237
|
readonly lastSelectValue: string;
|
|
3238
|
+
readonly enableSourcePagination: boolean;
|
|
3239
|
+
readonly sourcePageNum: number;
|
|
3240
|
+
readonly sourcePerPageNum: number;
|
|
3241
|
+
readonly sourceTotalNum: number;
|
|
2960
3242
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
2961
3243
|
splitExtraValue(value: any): any[];
|
|
2962
3244
|
getMergedData(data: any): any;
|
|
2963
3245
|
} & {
|
|
2964
3246
|
focus: () => void;
|
|
2965
3247
|
blur: () => void;
|
|
2966
|
-
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 }: {
|
|
3248
|
+
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 }: {
|
|
2967
3249
|
extraName?: string | undefined;
|
|
2968
3250
|
required?: boolean | undefined;
|
|
2969
3251
|
unique?: boolean | undefined;
|
|
@@ -2996,6 +3278,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
2996
3278
|
name: string;
|
|
2997
3279
|
path: string;
|
|
2998
3280
|
} | undefined;
|
|
3281
|
+
pagination?: {
|
|
3282
|
+
enable?: boolean | undefined;
|
|
3283
|
+
page?: number | undefined;
|
|
3284
|
+
perPage?: number | undefined;
|
|
3285
|
+
} | undefined;
|
|
2999
3286
|
}) => void;
|
|
3000
3287
|
validate: (data: Object, hook?: any, customRules?: {
|
|
3001
3288
|
[propName: string]: any;
|
|
@@ -3006,10 +3293,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3006
3293
|
rule: string;
|
|
3007
3294
|
})[], tag?: string) => void;
|
|
3008
3295
|
clearError: (tag?: string | undefined) => void;
|
|
3296
|
+
setPagination: (params: {
|
|
3297
|
+
page?: number | undefined;
|
|
3298
|
+
perPage?: number | undefined;
|
|
3299
|
+
total?: number | undefined;
|
|
3300
|
+
}) => void;
|
|
3009
3301
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
3010
3302
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
3011
3303
|
extendsOptions?: boolean | undefined;
|
|
3012
3304
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
3305
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
3013
3306
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
3014
3307
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
3015
3308
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -3021,7 +3314,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3021
3314
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3022
3315
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3023
3316
|
closeDialog: (result?: any) => void;
|
|
3024
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
3317
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3025
3318
|
changeEmitedValue: (value: any) => void;
|
|
3026
3319
|
addSubFormItem: (item: {
|
|
3027
3320
|
id: string;
|
|
@@ -3066,6 +3359,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3066
3359
|
joinValues: boolean;
|
|
3067
3360
|
extractValue: boolean;
|
|
3068
3361
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3362
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3069
3363
|
expressionsInOptions: boolean;
|
|
3070
3364
|
selectFirst: boolean;
|
|
3071
3365
|
autoFill: any;
|
|
@@ -3081,6 +3375,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3081
3375
|
inputGroupControl: any;
|
|
3082
3376
|
colIndex: any;
|
|
3083
3377
|
rowIndex: any;
|
|
3378
|
+
pagination: any;
|
|
3379
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3084
3380
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
3085
3381
|
readonly parentStore: any;
|
|
3086
3382
|
readonly __: any;
|
|
@@ -3101,6 +3397,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3101
3397
|
readonly valid: boolean;
|
|
3102
3398
|
readonly errClassNames: string;
|
|
3103
3399
|
readonly lastSelectValue: string;
|
|
3400
|
+
readonly enableSourcePagination: boolean;
|
|
3401
|
+
readonly sourcePageNum: number;
|
|
3402
|
+
readonly sourcePerPageNum: number;
|
|
3403
|
+
readonly sourceTotalNum: number;
|
|
3104
3404
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3105
3405
|
splitExtraValue(value: any): any[];
|
|
3106
3406
|
getMergedData(data: any): any;
|
|
@@ -3144,6 +3444,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3144
3444
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3145
3445
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3146
3446
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3447
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3147
3448
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3148
3449
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3149
3450
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -3159,6 +3460,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3159
3460
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3160
3461
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3161
3462
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3463
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3464
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3162
3465
|
}, {
|
|
3163
3466
|
readonly parentStore: any;
|
|
3164
3467
|
readonly __: any;
|
|
@@ -3179,6 +3482,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3179
3482
|
readonly valid: boolean;
|
|
3180
3483
|
readonly errClassNames: string;
|
|
3181
3484
|
readonly lastSelectValue: string;
|
|
3485
|
+
readonly enableSourcePagination: boolean;
|
|
3486
|
+
readonly sourcePageNum: number;
|
|
3487
|
+
readonly sourcePerPageNum: number;
|
|
3488
|
+
readonly sourceTotalNum: number;
|
|
3182
3489
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3183
3490
|
splitExtraValue(value: any): any[];
|
|
3184
3491
|
getMergedData(data: any): any;
|
|
@@ -3226,6 +3533,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3226
3533
|
joinValues: boolean;
|
|
3227
3534
|
extractValue: boolean;
|
|
3228
3535
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3536
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3229
3537
|
expressionsInOptions: boolean;
|
|
3230
3538
|
selectFirst: boolean;
|
|
3231
3539
|
autoFill: any;
|
|
@@ -3241,6 +3549,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3241
3549
|
inputGroupControl: any;
|
|
3242
3550
|
colIndex: any;
|
|
3243
3551
|
rowIndex: any;
|
|
3552
|
+
pagination: any;
|
|
3553
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3244
3554
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
3245
3555
|
readonly parentStore: any;
|
|
3246
3556
|
readonly __: any;
|
|
@@ -3261,6 +3571,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3261
3571
|
readonly valid: boolean;
|
|
3262
3572
|
readonly errClassNames: string;
|
|
3263
3573
|
readonly lastSelectValue: string;
|
|
3574
|
+
readonly enableSourcePagination: boolean;
|
|
3575
|
+
readonly sourcePageNum: number;
|
|
3576
|
+
readonly sourcePerPageNum: number;
|
|
3577
|
+
readonly sourceTotalNum: number;
|
|
3264
3578
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3265
3579
|
splitExtraValue(value: any): any[];
|
|
3266
3580
|
getMergedData(data: any): any;
|
|
@@ -3304,6 +3618,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3304
3618
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3305
3619
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3306
3620
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3621
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3307
3622
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3308
3623
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3309
3624
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -3319,6 +3634,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3319
3634
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3320
3635
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3321
3636
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3637
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3638
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3322
3639
|
}, {
|
|
3323
3640
|
readonly parentStore: any;
|
|
3324
3641
|
readonly __: any;
|
|
@@ -3339,6 +3656,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3339
3656
|
readonly valid: boolean;
|
|
3340
3657
|
readonly errClassNames: string;
|
|
3341
3658
|
readonly lastSelectValue: string;
|
|
3659
|
+
readonly enableSourcePagination: boolean;
|
|
3660
|
+
readonly sourcePageNum: number;
|
|
3661
|
+
readonly sourcePerPageNum: number;
|
|
3662
|
+
readonly sourceTotalNum: number;
|
|
3342
3663
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3343
3664
|
splitExtraValue(value: any): any[];
|
|
3344
3665
|
getMergedData(data: any): any;
|
|
@@ -3385,6 +3706,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3385
3706
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3386
3707
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3387
3708
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3709
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3388
3710
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3389
3711
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3390
3712
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -3400,6 +3722,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3400
3722
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3401
3723
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3402
3724
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3725
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3726
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3403
3727
|
}, {
|
|
3404
3728
|
readonly parentStore: any;
|
|
3405
3729
|
readonly __: any;
|
|
@@ -3420,13 +3744,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3420
3744
|
readonly valid: boolean;
|
|
3421
3745
|
readonly errClassNames: string;
|
|
3422
3746
|
readonly lastSelectValue: string;
|
|
3747
|
+
readonly enableSourcePagination: boolean;
|
|
3748
|
+
readonly sourcePageNum: number;
|
|
3749
|
+
readonly sourcePerPageNum: number;
|
|
3750
|
+
readonly sourceTotalNum: number;
|
|
3423
3751
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3424
3752
|
splitExtraValue(value: any): any[];
|
|
3425
3753
|
getMergedData(data: any): any;
|
|
3426
3754
|
} & {
|
|
3427
3755
|
focus: () => void;
|
|
3428
3756
|
blur: () => void;
|
|
3429
|
-
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 }: {
|
|
3757
|
+
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 }: {
|
|
3430
3758
|
extraName?: string | undefined;
|
|
3431
3759
|
required?: boolean | undefined;
|
|
3432
3760
|
unique?: boolean | undefined;
|
|
@@ -3459,6 +3787,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3459
3787
|
name: string;
|
|
3460
3788
|
path: string;
|
|
3461
3789
|
} | undefined;
|
|
3790
|
+
pagination?: {
|
|
3791
|
+
enable?: boolean | undefined;
|
|
3792
|
+
page?: number | undefined;
|
|
3793
|
+
perPage?: number | undefined;
|
|
3794
|
+
} | undefined;
|
|
3462
3795
|
}) => void;
|
|
3463
3796
|
validate: (data: Object, hook?: any, customRules?: {
|
|
3464
3797
|
[propName: string]: any;
|
|
@@ -3469,10 +3802,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3469
3802
|
rule: string;
|
|
3470
3803
|
})[], tag?: string) => void;
|
|
3471
3804
|
clearError: (tag?: string | undefined) => void;
|
|
3805
|
+
setPagination: (params: {
|
|
3806
|
+
page?: number | undefined;
|
|
3807
|
+
perPage?: number | undefined;
|
|
3808
|
+
total?: number | undefined;
|
|
3809
|
+
}) => void;
|
|
3472
3810
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
3473
3811
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
3474
3812
|
extendsOptions?: boolean | undefined;
|
|
3475
3813
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
3814
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
3476
3815
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
3477
3816
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
3478
3817
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -3484,7 +3823,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3484
3823
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3485
3824
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3486
3825
|
closeDialog: (result?: any) => void;
|
|
3487
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
3826
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3488
3827
|
changeEmitedValue: (value: any) => void;
|
|
3489
3828
|
addSubFormItem: (item: {
|
|
3490
3829
|
id: string;
|
|
@@ -3529,6 +3868,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3529
3868
|
joinValues: boolean;
|
|
3530
3869
|
extractValue: boolean;
|
|
3531
3870
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3871
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3532
3872
|
expressionsInOptions: boolean;
|
|
3533
3873
|
selectFirst: boolean;
|
|
3534
3874
|
autoFill: any;
|
|
@@ -3544,6 +3884,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3544
3884
|
inputGroupControl: any;
|
|
3545
3885
|
colIndex: any;
|
|
3546
3886
|
rowIndex: any;
|
|
3887
|
+
pagination: any;
|
|
3888
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3547
3889
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
3548
3890
|
readonly parentStore: any;
|
|
3549
3891
|
readonly __: any;
|
|
@@ -3564,6 +3906,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3564
3906
|
readonly valid: boolean;
|
|
3565
3907
|
readonly errClassNames: string;
|
|
3566
3908
|
readonly lastSelectValue: string;
|
|
3909
|
+
readonly enableSourcePagination: boolean;
|
|
3910
|
+
readonly sourcePageNum: number;
|
|
3911
|
+
readonly sourcePerPageNum: number;
|
|
3912
|
+
readonly sourceTotalNum: number;
|
|
3567
3913
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3568
3914
|
splitExtraValue(value: any): any[];
|
|
3569
3915
|
getMergedData(data: any): any;
|
|
@@ -3607,6 +3953,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3607
3953
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3608
3954
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3609
3955
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3956
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3610
3957
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3611
3958
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3612
3959
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -3622,6 +3969,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3622
3969
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3623
3970
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3624
3971
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3972
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3973
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3625
3974
|
}, {
|
|
3626
3975
|
readonly parentStore: any;
|
|
3627
3976
|
readonly __: any;
|
|
@@ -3642,6 +3991,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3642
3991
|
readonly valid: boolean;
|
|
3643
3992
|
readonly errClassNames: string;
|
|
3644
3993
|
readonly lastSelectValue: string;
|
|
3994
|
+
readonly enableSourcePagination: boolean;
|
|
3995
|
+
readonly sourcePageNum: number;
|
|
3996
|
+
readonly sourcePerPageNum: number;
|
|
3997
|
+
readonly sourceTotalNum: number;
|
|
3645
3998
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3646
3999
|
splitExtraValue(value: any): any[];
|
|
3647
4000
|
getMergedData(data: any): any;
|
|
@@ -3689,6 +4042,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3689
4042
|
joinValues: boolean;
|
|
3690
4043
|
extractValue: boolean;
|
|
3691
4044
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4045
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3692
4046
|
expressionsInOptions: boolean;
|
|
3693
4047
|
selectFirst: boolean;
|
|
3694
4048
|
autoFill: any;
|
|
@@ -3704,6 +4058,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3704
4058
|
inputGroupControl: any;
|
|
3705
4059
|
colIndex: any;
|
|
3706
4060
|
rowIndex: any;
|
|
4061
|
+
pagination: any;
|
|
4062
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3707
4063
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
3708
4064
|
readonly parentStore: any;
|
|
3709
4065
|
readonly __: any;
|
|
@@ -3724,6 +4080,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3724
4080
|
readonly valid: boolean;
|
|
3725
4081
|
readonly errClassNames: string;
|
|
3726
4082
|
readonly lastSelectValue: string;
|
|
4083
|
+
readonly enableSourcePagination: boolean;
|
|
4084
|
+
readonly sourcePageNum: number;
|
|
4085
|
+
readonly sourcePerPageNum: number;
|
|
4086
|
+
readonly sourceTotalNum: number;
|
|
3727
4087
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3728
4088
|
splitExtraValue(value: any): any[];
|
|
3729
4089
|
getMergedData(data: any): any;
|
|
@@ -3767,6 +4127,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3767
4127
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3768
4128
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3769
4129
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4130
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3770
4131
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3771
4132
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
3772
4133
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -3782,6 +4143,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3782
4143
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3783
4144
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
3784
4145
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4146
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4147
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
3785
4148
|
}, {
|
|
3786
4149
|
readonly parentStore: any;
|
|
3787
4150
|
readonly __: any;
|
|
@@ -3802,6 +4165,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3802
4165
|
readonly valid: boolean;
|
|
3803
4166
|
readonly errClassNames: string;
|
|
3804
4167
|
readonly lastSelectValue: string;
|
|
4168
|
+
readonly enableSourcePagination: boolean;
|
|
4169
|
+
readonly sourcePageNum: number;
|
|
4170
|
+
readonly sourcePerPageNum: number;
|
|
4171
|
+
readonly sourceTotalNum: number;
|
|
3805
4172
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3806
4173
|
splitExtraValue(value: any): any[];
|
|
3807
4174
|
getMergedData(data: any): any;
|
|
@@ -3852,6 +4219,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3852
4219
|
joinValues: boolean;
|
|
3853
4220
|
extractValue: boolean;
|
|
3854
4221
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4222
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3855
4223
|
expressionsInOptions: boolean;
|
|
3856
4224
|
selectFirst: boolean;
|
|
3857
4225
|
autoFill: any;
|
|
@@ -3867,6 +4235,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3867
4235
|
inputGroupControl: any;
|
|
3868
4236
|
colIndex: any;
|
|
3869
4237
|
rowIndex: any;
|
|
4238
|
+
pagination: any;
|
|
4239
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3870
4240
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
3871
4241
|
readonly parentStore: any;
|
|
3872
4242
|
readonly __: any;
|
|
@@ -3887,13 +4257,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3887
4257
|
readonly valid: boolean;
|
|
3888
4258
|
readonly errClassNames: string;
|
|
3889
4259
|
readonly lastSelectValue: string;
|
|
4260
|
+
readonly enableSourcePagination: boolean;
|
|
4261
|
+
readonly sourcePageNum: number;
|
|
4262
|
+
readonly sourcePerPageNum: number;
|
|
4263
|
+
readonly sourceTotalNum: number;
|
|
3890
4264
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
3891
4265
|
splitExtraValue(value: any): any[];
|
|
3892
4266
|
getMergedData(data: any): any;
|
|
3893
4267
|
} & {
|
|
3894
4268
|
focus: () => void;
|
|
3895
4269
|
blur: () => void;
|
|
3896
|
-
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 }: {
|
|
4270
|
+
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 }: {
|
|
3897
4271
|
extraName?: string | undefined;
|
|
3898
4272
|
required?: boolean | undefined;
|
|
3899
4273
|
unique?: boolean | undefined;
|
|
@@ -3926,6 +4300,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3926
4300
|
name: string;
|
|
3927
4301
|
path: string;
|
|
3928
4302
|
} | undefined;
|
|
4303
|
+
pagination?: {
|
|
4304
|
+
enable?: boolean | undefined;
|
|
4305
|
+
page?: number | undefined;
|
|
4306
|
+
perPage?: number | undefined;
|
|
4307
|
+
} | undefined;
|
|
3929
4308
|
}) => void;
|
|
3930
4309
|
validate: (data: Object, hook?: any, customRules?: {
|
|
3931
4310
|
[propName: string]: any;
|
|
@@ -3936,10 +4315,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3936
4315
|
rule: string;
|
|
3937
4316
|
})[], tag?: string) => void;
|
|
3938
4317
|
clearError: (tag?: string | undefined) => void;
|
|
4318
|
+
setPagination: (params: {
|
|
4319
|
+
page?: number | undefined;
|
|
4320
|
+
perPage?: number | undefined;
|
|
4321
|
+
total?: number | undefined;
|
|
4322
|
+
}) => void;
|
|
3939
4323
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
3940
4324
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
3941
4325
|
extendsOptions?: boolean | undefined;
|
|
3942
4326
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
4327
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
3943
4328
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
3944
4329
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
3945
4330
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -3951,7 +4336,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3951
4336
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
3952
4337
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
3953
4338
|
closeDialog: (result?: any) => void;
|
|
3954
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
4339
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
3955
4340
|
changeEmitedValue: (value: any) => void;
|
|
3956
4341
|
addSubFormItem: (item: {
|
|
3957
4342
|
id: string;
|
|
@@ -3996,6 +4381,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
3996
4381
|
joinValues: boolean;
|
|
3997
4382
|
extractValue: boolean;
|
|
3998
4383
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4384
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
3999
4385
|
expressionsInOptions: boolean;
|
|
4000
4386
|
selectFirst: boolean;
|
|
4001
4387
|
autoFill: any;
|
|
@@ -4011,6 +4397,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4011
4397
|
inputGroupControl: any;
|
|
4012
4398
|
colIndex: any;
|
|
4013
4399
|
rowIndex: any;
|
|
4400
|
+
pagination: any;
|
|
4401
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4014
4402
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
4015
4403
|
readonly parentStore: any;
|
|
4016
4404
|
readonly __: any;
|
|
@@ -4031,6 +4419,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4031
4419
|
readonly valid: boolean;
|
|
4032
4420
|
readonly errClassNames: string;
|
|
4033
4421
|
readonly lastSelectValue: string;
|
|
4422
|
+
readonly enableSourcePagination: boolean;
|
|
4423
|
+
readonly sourcePageNum: number;
|
|
4424
|
+
readonly sourcePerPageNum: number;
|
|
4425
|
+
readonly sourceTotalNum: number;
|
|
4034
4426
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4035
4427
|
splitExtraValue(value: any): any[];
|
|
4036
4428
|
getMergedData(data: any): any;
|
|
@@ -4074,6 +4466,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4074
4466
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4075
4467
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4076
4468
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4469
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4077
4470
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4078
4471
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4079
4472
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -4089,6 +4482,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4089
4482
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4090
4483
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4091
4484
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4485
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4486
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4092
4487
|
}, {
|
|
4093
4488
|
readonly parentStore: any;
|
|
4094
4489
|
readonly __: any;
|
|
@@ -4109,6 +4504,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4109
4504
|
readonly valid: boolean;
|
|
4110
4505
|
readonly errClassNames: string;
|
|
4111
4506
|
readonly lastSelectValue: string;
|
|
4507
|
+
readonly enableSourcePagination: boolean;
|
|
4508
|
+
readonly sourcePageNum: number;
|
|
4509
|
+
readonly sourcePerPageNum: number;
|
|
4510
|
+
readonly sourceTotalNum: number;
|
|
4112
4511
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4113
4512
|
splitExtraValue(value: any): any[];
|
|
4114
4513
|
getMergedData(data: any): any;
|
|
@@ -4156,6 +4555,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4156
4555
|
joinValues: boolean;
|
|
4157
4556
|
extractValue: boolean;
|
|
4158
4557
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4558
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4159
4559
|
expressionsInOptions: boolean;
|
|
4160
4560
|
selectFirst: boolean;
|
|
4161
4561
|
autoFill: any;
|
|
@@ -4171,6 +4571,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4171
4571
|
inputGroupControl: any;
|
|
4172
4572
|
colIndex: any;
|
|
4173
4573
|
rowIndex: any;
|
|
4574
|
+
pagination: any;
|
|
4575
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4174
4576
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
4175
4577
|
readonly parentStore: any;
|
|
4176
4578
|
readonly __: any;
|
|
@@ -4191,6 +4593,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4191
4593
|
readonly valid: boolean;
|
|
4192
4594
|
readonly errClassNames: string;
|
|
4193
4595
|
readonly lastSelectValue: string;
|
|
4596
|
+
readonly enableSourcePagination: boolean;
|
|
4597
|
+
readonly sourcePageNum: number;
|
|
4598
|
+
readonly sourcePerPageNum: number;
|
|
4599
|
+
readonly sourceTotalNum: number;
|
|
4194
4600
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4195
4601
|
splitExtraValue(value: any): any[];
|
|
4196
4602
|
getMergedData(data: any): any;
|
|
@@ -4234,6 +4640,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4234
4640
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4235
4641
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4236
4642
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4643
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4237
4644
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4238
4645
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4239
4646
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -4249,6 +4656,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4249
4656
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4250
4657
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4251
4658
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4659
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4660
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4252
4661
|
}, {
|
|
4253
4662
|
readonly parentStore: any;
|
|
4254
4663
|
readonly __: any;
|
|
@@ -4269,6 +4678,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4269
4678
|
readonly valid: boolean;
|
|
4270
4679
|
readonly errClassNames: string;
|
|
4271
4680
|
readonly lastSelectValue: string;
|
|
4681
|
+
readonly enableSourcePagination: boolean;
|
|
4682
|
+
readonly sourcePageNum: number;
|
|
4683
|
+
readonly sourcePerPageNum: number;
|
|
4684
|
+
readonly sourceTotalNum: number;
|
|
4272
4685
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4273
4686
|
splitExtraValue(value: any): any[];
|
|
4274
4687
|
getMergedData(data: any): any;
|
|
@@ -4315,6 +4728,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4315
4728
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4316
4729
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4317
4730
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4731
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4318
4732
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4319
4733
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4320
4734
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -4330,6 +4744,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4330
4744
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4331
4745
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4332
4746
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4747
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4748
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4333
4749
|
}, {
|
|
4334
4750
|
readonly parentStore: any;
|
|
4335
4751
|
readonly __: any;
|
|
@@ -4350,13 +4766,17 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4350
4766
|
readonly valid: boolean;
|
|
4351
4767
|
readonly errClassNames: string;
|
|
4352
4768
|
readonly lastSelectValue: string;
|
|
4769
|
+
readonly enableSourcePagination: boolean;
|
|
4770
|
+
readonly sourcePageNum: number;
|
|
4771
|
+
readonly sourcePerPageNum: number;
|
|
4772
|
+
readonly sourceTotalNum: number;
|
|
4353
4773
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4354
4774
|
splitExtraValue(value: any): any[];
|
|
4355
4775
|
getMergedData(data: any): any;
|
|
4356
4776
|
} & {
|
|
4357
4777
|
focus: () => void;
|
|
4358
4778
|
blur: () => void;
|
|
4359
|
-
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 }: {
|
|
4779
|
+
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 }: {
|
|
4360
4780
|
extraName?: string | undefined;
|
|
4361
4781
|
required?: boolean | undefined;
|
|
4362
4782
|
unique?: boolean | undefined;
|
|
@@ -4389,6 +4809,11 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4389
4809
|
name: string;
|
|
4390
4810
|
path: string;
|
|
4391
4811
|
} | undefined;
|
|
4812
|
+
pagination?: {
|
|
4813
|
+
enable?: boolean | undefined;
|
|
4814
|
+
page?: number | undefined;
|
|
4815
|
+
perPage?: number | undefined;
|
|
4816
|
+
} | undefined;
|
|
4392
4817
|
}) => void;
|
|
4393
4818
|
validate: (data: Object, hook?: any, customRules?: {
|
|
4394
4819
|
[propName: string]: any;
|
|
@@ -4399,10 +4824,16 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4399
4824
|
rule: string;
|
|
4400
4825
|
})[], tag?: string) => void;
|
|
4401
4826
|
clearError: (tag?: string | undefined) => void;
|
|
4827
|
+
setPagination: (params: {
|
|
4828
|
+
page?: number | undefined;
|
|
4829
|
+
perPage?: number | undefined;
|
|
4830
|
+
total?: number | undefined;
|
|
4831
|
+
}) => void;
|
|
4402
4832
|
setOptions: (options: object[], onChange?: ((value: any) => void) | undefined, data?: Object | undefined) => void;
|
|
4403
4833
|
loadOptions: (api: Api, data?: object | undefined, config?: (fetchOptions & {
|
|
4404
4834
|
extendsOptions?: boolean | undefined;
|
|
4405
4835
|
}) | undefined, clearValue?: boolean | undefined, onChange?: ((value: any) => void) | undefined, setErrorFlag?: boolean | undefined) => Promise<Payload | null>;
|
|
4836
|
+
loadOptionsFromDataScope: (source: string, ctx: Record<string, any>, onChange?: ((value: any) => void) | undefined) => any[];
|
|
4406
4837
|
deferLoadOptions: (option: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
4407
4838
|
deferLoadLeftOptions: (option: any, leftOptions: any, api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<Payload | null>;
|
|
4408
4839
|
expandTreeOptions: (nodePathArr: any[], api: Api, data?: object | undefined, config?: fetchOptions | undefined) => Promise<void | Payload | null>;
|
|
@@ -4414,7 +4845,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4414
4845
|
resetValidationStatus: (tag?: string | undefined) => void;
|
|
4415
4846
|
openDialog: (schema: any, ctx: any, callback?: ((ret?: any) => void) | undefined) => void;
|
|
4416
4847
|
closeDialog: (result?: any) => void;
|
|
4417
|
-
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "
|
|
4848
|
+
changeTmpValue: (value: any, changeReason?: "input" | "defaultValue" | "formInited" | "initialValue" | "dataChanged" | "formulaChanged" | "controlled" | undefined) => void;
|
|
4418
4849
|
changeEmitedValue: (value: any) => void;
|
|
4419
4850
|
addSubFormItem: (item: {
|
|
4420
4851
|
id: string;
|
|
@@ -4459,6 +4890,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4459
4890
|
joinValues: boolean;
|
|
4460
4891
|
extractValue: boolean;
|
|
4461
4892
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4893
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4462
4894
|
expressionsInOptions: boolean;
|
|
4463
4895
|
selectFirst: boolean;
|
|
4464
4896
|
autoFill: any;
|
|
@@ -4474,6 +4906,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4474
4906
|
inputGroupControl: any;
|
|
4475
4907
|
colIndex: any;
|
|
4476
4908
|
rowIndex: any;
|
|
4909
|
+
pagination: any;
|
|
4910
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4477
4911
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
4478
4912
|
readonly parentStore: any;
|
|
4479
4913
|
readonly __: any;
|
|
@@ -4494,6 +4928,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4494
4928
|
readonly valid: boolean;
|
|
4495
4929
|
readonly errClassNames: string;
|
|
4496
4930
|
readonly lastSelectValue: string;
|
|
4931
|
+
readonly enableSourcePagination: boolean;
|
|
4932
|
+
readonly sourcePageNum: number;
|
|
4933
|
+
readonly sourcePerPageNum: number;
|
|
4934
|
+
readonly sourceTotalNum: number;
|
|
4497
4935
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4498
4936
|
splitExtraValue(value: any): any[];
|
|
4499
4937
|
getMergedData(data: any): any;
|
|
@@ -4537,6 +4975,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4537
4975
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4538
4976
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4539
4977
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4978
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4540
4979
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4541
4980
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4542
4981
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -4552,6 +4991,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4552
4991
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4553
4992
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4554
4993
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4994
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4995
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4555
4996
|
}, {
|
|
4556
4997
|
readonly parentStore: any;
|
|
4557
4998
|
readonly __: any;
|
|
@@ -4572,6 +5013,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4572
5013
|
readonly valid: boolean;
|
|
4573
5014
|
readonly errClassNames: string;
|
|
4574
5015
|
readonly lastSelectValue: string;
|
|
5016
|
+
readonly enableSourcePagination: boolean;
|
|
5017
|
+
readonly sourcePageNum: number;
|
|
5018
|
+
readonly sourcePerPageNum: number;
|
|
5019
|
+
readonly sourceTotalNum: number;
|
|
4575
5020
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4576
5021
|
splitExtraValue(value: any): any[];
|
|
4577
5022
|
getMergedData(data: any): any;
|
|
@@ -4619,6 +5064,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4619
5064
|
joinValues: boolean;
|
|
4620
5065
|
extractValue: boolean;
|
|
4621
5066
|
options: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
5067
|
+
optionsRaw: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4622
5068
|
expressionsInOptions: boolean;
|
|
4623
5069
|
selectFirst: boolean;
|
|
4624
5070
|
autoFill: any;
|
|
@@ -4634,6 +5080,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4634
5080
|
inputGroupControl: any;
|
|
4635
5081
|
colIndex: any;
|
|
4636
5082
|
rowIndex: any;
|
|
5083
|
+
pagination: any;
|
|
5084
|
+
accumulatedOptions: any[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>>;
|
|
4637
5085
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
4638
5086
|
readonly parentStore: any;
|
|
4639
5087
|
readonly __: any;
|
|
@@ -4654,6 +5102,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4654
5102
|
readonly valid: boolean;
|
|
4655
5103
|
readonly errClassNames: string;
|
|
4656
5104
|
readonly lastSelectValue: string;
|
|
5105
|
+
readonly enableSourcePagination: boolean;
|
|
5106
|
+
readonly sourcePageNum: number;
|
|
5107
|
+
readonly sourcePerPageNum: number;
|
|
5108
|
+
readonly sourceTotalNum: number;
|
|
4657
5109
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4658
5110
|
splitExtraValue(value: any): any[];
|
|
4659
5111
|
getMergedData(data: any): any;
|
|
@@ -4697,6 +5149,7 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4697
5149
|
joinValues: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4698
5150
|
extractValue: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4699
5151
|
options: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
5152
|
+
optionsRaw: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4700
5153
|
expressionsInOptions: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4701
5154
|
selectFirst: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
4702
5155
|
autoFill: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -4712,6 +5165,8 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4712
5165
|
inputGroupControl: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4713
5166
|
colIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
4714
5167
|
rowIndex: import("mobx-state-tree").IType<any, any, any>;
|
|
5168
|
+
pagination: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
5169
|
+
accumulatedOptions: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any[], any[], any[]>, [undefined]>;
|
|
4715
5170
|
}, {
|
|
4716
5171
|
readonly parentStore: any;
|
|
4717
5172
|
readonly __: any;
|
|
@@ -4732,6 +5187,10 @@ export declare const FormStore: import("mobx-state-tree").IModelType<{
|
|
|
4732
5187
|
readonly valid: boolean;
|
|
4733
5188
|
readonly errClassNames: string;
|
|
4734
5189
|
readonly lastSelectValue: string;
|
|
5190
|
+
readonly enableSourcePagination: boolean;
|
|
5191
|
+
readonly sourcePageNum: number;
|
|
5192
|
+
readonly sourcePerPageNum: number;
|
|
5193
|
+
readonly sourceTotalNum: number;
|
|
4735
5194
|
getSelectedOptions: (value?: any, nodeValueArray?: any[] | undefined) => any;
|
|
4736
5195
|
splitExtraValue(value: any): any[];
|
|
4737
5196
|
getMergedData(data: any): any;
|