@planeasyinc/fe-core 0.1.4
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/dist/index.d.ts +489 -0
- package/dist/index.js +843 -0
- package/dist/index.js.map +1 -0
- package/package.json +27 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ControlType - type that is used to define which control item or screen group
|
|
3
|
+
* to render, is defined in "type" property
|
|
4
|
+
*
|
|
5
|
+
* Mirrors console ControlType with kebab-case normalization:
|
|
6
|
+
* - Console snake_case (object_group, group_toggle) → kebab-case (object-group, group-toggle)
|
|
7
|
+
* - Console camelCase (dateTriplet) → kebab-case (date-triplet)
|
|
8
|
+
* - All console types are represented here
|
|
9
|
+
*/
|
|
10
|
+
type FeControlType = 'text' | 'email' | 'phone' | 'password' | 'select' | 'multiselect' | 'radio' | 'checkbox' | 'toggle' | 'textarea' | 'number' | 'number-plus' | 'number-minus' | 'number-equals' | 'number-initial' | 'number-operations' | 'slider' | 'number-slider' | 'date' | 'datetime' | 'time' | 'date-triplet' | 'array' | 'object' | 'object-latest' | 'object-group' | 'group' | 'group-toggle' | 'dict' | 'file' | 'dropzone' | 'attachment' | 'bytes' | 'mask' | 'infoscreen' | 'info-group' | 'chat' | 'button' | 'sections' | 'section';
|
|
11
|
+
/**
|
|
12
|
+
* ControlValueType - type of value that will be returned
|
|
13
|
+
*
|
|
14
|
+
* Mirrors console ControlValueType with framework-agnostic adaptations:
|
|
15
|
+
* - Console uses { ref: IObjectReference } for object references
|
|
16
|
+
* - Console uses ChatMessage[] for chat controls
|
|
17
|
+
* - File[] represents uploaded files (console uses base64 strings or File objects)
|
|
18
|
+
* - Date triplet uses { day, month, year } or Date object (console uses Date)
|
|
19
|
+
*/
|
|
20
|
+
type FeControlValueType = string | number | boolean | null | undefined | string[] | number[] | unknown[] | Record<string, string[] | number[] | string | number | boolean | null | undefined> | File[] | {
|
|
21
|
+
day?: number;
|
|
22
|
+
month?: number;
|
|
23
|
+
year?: number;
|
|
24
|
+
} | {
|
|
25
|
+
message: string;
|
|
26
|
+
ts: number;
|
|
27
|
+
} | {
|
|
28
|
+
ref: {
|
|
29
|
+
address: string | null;
|
|
30
|
+
version_id: string | null;
|
|
31
|
+
display_name?: string;
|
|
32
|
+
};
|
|
33
|
+
} | Array<{
|
|
34
|
+
role: 'user' | 'assistant' | 'system';
|
|
35
|
+
content: string;
|
|
36
|
+
timestamp?: string;
|
|
37
|
+
attachments?: any[];
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Condition - type used in group validators
|
|
41
|
+
*/
|
|
42
|
+
type FeCondition = 'lt' | 'gt' | 'eq' | 'lte' | 'gte' | 'neq' | 'exist' | 'exists';
|
|
43
|
+
/**
|
|
44
|
+
* Simple condition for single field check
|
|
45
|
+
*/
|
|
46
|
+
interface FeSimpleCondition {
|
|
47
|
+
field: string;
|
|
48
|
+
condition: FeCondition;
|
|
49
|
+
value?: any;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Group condition for complex logical expressions
|
|
53
|
+
*/
|
|
54
|
+
interface FeGroupCondition {
|
|
55
|
+
operator: 'and' | 'or' | 'nand' | 'nor' | 'xor';
|
|
56
|
+
conditions: Array<FeSimpleCondition | FeGroupCondition>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Control validator configuration
|
|
60
|
+
*/
|
|
61
|
+
interface FeControlValidatorConfig {
|
|
62
|
+
function: string;
|
|
63
|
+
value?: number | string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Group validator configuration
|
|
67
|
+
*/
|
|
68
|
+
interface FeGroupValidatorConfig {
|
|
69
|
+
function: string;
|
|
70
|
+
mainControl: string;
|
|
71
|
+
dependentControls: string[];
|
|
72
|
+
value?: any;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Activator configuration
|
|
76
|
+
*/
|
|
77
|
+
interface FeActivatorConfig {
|
|
78
|
+
condition: FeCondition;
|
|
79
|
+
mainControl: string;
|
|
80
|
+
dependentControls: string[];
|
|
81
|
+
value?: any;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Backend condition configuration (JSON format)
|
|
85
|
+
*/
|
|
86
|
+
interface FeBackendCondition {
|
|
87
|
+
operation: 'and' | 'or';
|
|
88
|
+
conditions: Array<{
|
|
89
|
+
path: string;
|
|
90
|
+
condition: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'exists';
|
|
91
|
+
value?: any;
|
|
92
|
+
}>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Backend simple validation condition
|
|
96
|
+
*/
|
|
97
|
+
interface FeBackendSimpleCondition {
|
|
98
|
+
path?: string;
|
|
99
|
+
field?: string;
|
|
100
|
+
condition: string;
|
|
101
|
+
value?: any;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Backend validation condition group
|
|
105
|
+
*/
|
|
106
|
+
interface FeBackendConditionGroup {
|
|
107
|
+
operation?: 'and' | 'or';
|
|
108
|
+
operator?: 'and' | 'or';
|
|
109
|
+
conditions: Array<FeBackendSimpleCondition | FeBackendConditionGroup>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Backend validation - can be either a simple condition or a condition group
|
|
113
|
+
*/
|
|
114
|
+
type FeBackendValidation = FeBackendConditionGroup | FeBackendSimpleCondition;
|
|
115
|
+
/**
|
|
116
|
+
* Base form item configuration (shared by all control types)
|
|
117
|
+
*
|
|
118
|
+
* Mirrors console BaseFormItemConfig with framework-agnostic adaptations.
|
|
119
|
+
* All console-specific metadata is carried in the meta property.
|
|
120
|
+
*/
|
|
121
|
+
interface FeBaseFormItemConfig {
|
|
122
|
+
type: FeControlType;
|
|
123
|
+
name: string;
|
|
124
|
+
label?: string;
|
|
125
|
+
required?: boolean;
|
|
126
|
+
hideLabel?: boolean;
|
|
127
|
+
validators?: FeControlValidatorConfig[] | FeGroupValidatorConfig[];
|
|
128
|
+
activators?: FeActivatorConfig[];
|
|
129
|
+
additionalText?: string;
|
|
130
|
+
uiSection?: {
|
|
131
|
+
id: string;
|
|
132
|
+
label?: string;
|
|
133
|
+
order?: number;
|
|
134
|
+
};
|
|
135
|
+
condition?: FeBackendCondition;
|
|
136
|
+
validation?: FeBackendValidation;
|
|
137
|
+
meta?: {
|
|
138
|
+
options?: Array<{
|
|
139
|
+
label: string;
|
|
140
|
+
value: string;
|
|
141
|
+
}>;
|
|
142
|
+
control?: FeControlConfig;
|
|
143
|
+
controls?: FeControlConfig[];
|
|
144
|
+
mask?: string | {
|
|
145
|
+
mask_string?: string;
|
|
146
|
+
pattern?: string;
|
|
147
|
+
placeholder?: string;
|
|
148
|
+
prefix?: string;
|
|
149
|
+
suffix?: string;
|
|
150
|
+
thousands_separator?: string;
|
|
151
|
+
[k: string]: any;
|
|
152
|
+
};
|
|
153
|
+
numberKind?: 'plus' | 'minus' | 'equals' | 'initial';
|
|
154
|
+
slider?: {
|
|
155
|
+
min: number;
|
|
156
|
+
max: number;
|
|
157
|
+
step?: number;
|
|
158
|
+
discrete?: boolean;
|
|
159
|
+
prefix?: string;
|
|
160
|
+
number_format?: string;
|
|
161
|
+
auto_compute_monthly?: string;
|
|
162
|
+
};
|
|
163
|
+
dateTripletMeta?: {
|
|
164
|
+
dayKey: string;
|
|
165
|
+
monthKey: string;
|
|
166
|
+
yearKey: string;
|
|
167
|
+
};
|
|
168
|
+
dictMeta?: {
|
|
169
|
+
source: string;
|
|
170
|
+
valueKey?: string;
|
|
171
|
+
labelKey?: string;
|
|
172
|
+
options?: Array<{
|
|
173
|
+
label: string;
|
|
174
|
+
value: string;
|
|
175
|
+
}>;
|
|
176
|
+
};
|
|
177
|
+
attachmentMeta?: {
|
|
178
|
+
multiple?: boolean;
|
|
179
|
+
accept?: string[];
|
|
180
|
+
maxSizeMb?: number;
|
|
181
|
+
};
|
|
182
|
+
infoscreenMeta?: {
|
|
183
|
+
title?: string;
|
|
184
|
+
html?: string;
|
|
185
|
+
};
|
|
186
|
+
buttonMeta?: {
|
|
187
|
+
label: string;
|
|
188
|
+
action?: 'submit' | 'next' | 'custom';
|
|
189
|
+
payload?: any;
|
|
190
|
+
actions?: Array<{
|
|
191
|
+
type: 'invoke';
|
|
192
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
193
|
+
url: string;
|
|
194
|
+
body?: {
|
|
195
|
+
[key: string]: any;
|
|
196
|
+
};
|
|
197
|
+
onSuccess?: Array<{
|
|
198
|
+
type: 'update_value';
|
|
199
|
+
field_id: string;
|
|
200
|
+
value: string;
|
|
201
|
+
}>;
|
|
202
|
+
}>;
|
|
203
|
+
};
|
|
204
|
+
chatMeta?: {
|
|
205
|
+
endpoint: string;
|
|
206
|
+
contextKey?: string;
|
|
207
|
+
};
|
|
208
|
+
toggle?: boolean;
|
|
209
|
+
entityType?: string;
|
|
210
|
+
showSearch?: boolean;
|
|
211
|
+
customLabel?: string[];
|
|
212
|
+
operations?: Array<{
|
|
213
|
+
operator: 'sum' | 'min' | 'div' | 'multi' | 'eq';
|
|
214
|
+
additionalText?: string;
|
|
215
|
+
[key: string]: any;
|
|
216
|
+
}>;
|
|
217
|
+
[key: string]: any;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Base control configuration (extends base with value and placeholder)
|
|
222
|
+
*/
|
|
223
|
+
interface FeBaseControlConfig extends FeBaseFormItemConfig {
|
|
224
|
+
value?: FeControlValueType;
|
|
225
|
+
placeholder?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Text mask configuration
|
|
229
|
+
*
|
|
230
|
+
* Mirrors console ITextMask interface:
|
|
231
|
+
* - mask_string: string pattern (e.g., '(00)-000-000' for phone)
|
|
232
|
+
* - prefix: optional prefix (e.g., '$' for currency)
|
|
233
|
+
* - suffix: optional suffix
|
|
234
|
+
* - thousands_separator: optional separator (e.g., ',' for 100,000)
|
|
235
|
+
*/
|
|
236
|
+
interface FeTextMask {
|
|
237
|
+
mask?: string | {
|
|
238
|
+
mask_string?: string;
|
|
239
|
+
pattern?: string;
|
|
240
|
+
placeholder?: string;
|
|
241
|
+
prefix?: string;
|
|
242
|
+
suffix?: string;
|
|
243
|
+
thousands_separator?: string;
|
|
244
|
+
[k: string]: any;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Selectable control configuration
|
|
249
|
+
*/
|
|
250
|
+
interface FeSingleSelectControlConfig extends FeBaseControlConfig, FeTextMask {
|
|
251
|
+
type: 'select' | 'radio';
|
|
252
|
+
options: Array<{
|
|
253
|
+
label: string;
|
|
254
|
+
value: string;
|
|
255
|
+
}>;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Multi-select control configuration
|
|
259
|
+
*/
|
|
260
|
+
interface FeMultiSelectControlConfig extends FeBaseControlConfig {
|
|
261
|
+
type: 'multiselect' | 'checkbox';
|
|
262
|
+
options: Array<{
|
|
263
|
+
label: string;
|
|
264
|
+
value: string;
|
|
265
|
+
}>;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Text control configuration
|
|
269
|
+
*/
|
|
270
|
+
interface FeTextControlConfig extends FeBaseControlConfig, FeTextMask {
|
|
271
|
+
type: 'text' | 'email' | 'phone' | 'password';
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Number slider control configuration
|
|
275
|
+
*/
|
|
276
|
+
interface FeNumberSliderControlConfig extends FeBaseControlConfig {
|
|
277
|
+
type: 'number-slider' | 'slider';
|
|
278
|
+
meta?: {
|
|
279
|
+
slider: {
|
|
280
|
+
min: number;
|
|
281
|
+
max: number;
|
|
282
|
+
step?: number;
|
|
283
|
+
discrete?: boolean;
|
|
284
|
+
};
|
|
285
|
+
[key: string]: any;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Number operations control configuration
|
|
290
|
+
*/
|
|
291
|
+
interface FeNumberOperationsControlConfig extends FeBaseControlConfig {
|
|
292
|
+
type: 'number-operations';
|
|
293
|
+
operations?: any[];
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Array control configuration
|
|
297
|
+
*/
|
|
298
|
+
interface FeArrayControlConfig extends FeBaseControlConfig {
|
|
299
|
+
type: 'array';
|
|
300
|
+
control: FeControlConfig;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Object control configuration
|
|
304
|
+
*/
|
|
305
|
+
interface FeObjectControlConfig extends FeBaseControlConfig {
|
|
306
|
+
type: 'object' | 'object-latest';
|
|
307
|
+
controls?: FeControlConfig[];
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Group control configuration
|
|
311
|
+
*/
|
|
312
|
+
interface FeGroupControlConfig extends FeBaseControlConfig {
|
|
313
|
+
type: 'group' | 'object-group' | 'group-toggle' | 'sections';
|
|
314
|
+
controls: FeControlConfig[];
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Dictionary control configuration
|
|
318
|
+
*/
|
|
319
|
+
interface FeDictControlConfig extends FeBaseControlConfig {
|
|
320
|
+
type: 'dict';
|
|
321
|
+
meta?: {
|
|
322
|
+
dictMeta: {
|
|
323
|
+
source: string;
|
|
324
|
+
valueKey?: string;
|
|
325
|
+
labelKey?: string;
|
|
326
|
+
options?: Array<{
|
|
327
|
+
label: string;
|
|
328
|
+
value: string;
|
|
329
|
+
}>;
|
|
330
|
+
};
|
|
331
|
+
[key: string]: any;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Union of all control configurations
|
|
336
|
+
*/
|
|
337
|
+
type FeControlConfig = FeBaseControlConfig | FeSingleSelectControlConfig | FeMultiSelectControlConfig | FeTextControlConfig | FeNumberSliderControlConfig | FeNumberOperationsControlConfig | FeArrayControlConfig | FeObjectControlConfig | FeGroupControlConfig | FeDictControlConfig;
|
|
338
|
+
/**
|
|
339
|
+
* Section configuration
|
|
340
|
+
*/
|
|
341
|
+
interface FeSection {
|
|
342
|
+
id: string;
|
|
343
|
+
label?: string;
|
|
344
|
+
order?: number;
|
|
345
|
+
controls: FeControlConfig[];
|
|
346
|
+
condition?: FeBackendCondition;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Form configuration
|
|
350
|
+
*/
|
|
351
|
+
interface FeForm {
|
|
352
|
+
sections: FeSection[];
|
|
353
|
+
controls?: FeControlConfig[];
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Runtime state management for form fields
|
|
358
|
+
*/
|
|
359
|
+
type Status = 'VALID' | 'INVALID' | 'PENDING';
|
|
360
|
+
interface FieldState {
|
|
361
|
+
visible: boolean;
|
|
362
|
+
enabled: boolean;
|
|
363
|
+
required: boolean;
|
|
364
|
+
touched: boolean;
|
|
365
|
+
dirty: boolean;
|
|
366
|
+
status: Status;
|
|
367
|
+
errors: Array<{
|
|
368
|
+
code: string;
|
|
369
|
+
message?: string;
|
|
370
|
+
args?: any;
|
|
371
|
+
}>;
|
|
372
|
+
}
|
|
373
|
+
interface RuntimeState {
|
|
374
|
+
fields: Map<string, FieldState>;
|
|
375
|
+
deps: Map<string, Set<string>>;
|
|
376
|
+
}
|
|
377
|
+
interface RuntimeAPI {
|
|
378
|
+
state: RuntimeState;
|
|
379
|
+
ensureFieldState(path: string): FieldState;
|
|
380
|
+
getFieldState(path: string): FieldState | undefined;
|
|
381
|
+
setVisible(path: string, visible: boolean): void;
|
|
382
|
+
setEnabled(path: string, enabled: boolean): void;
|
|
383
|
+
setRequired(path: string, required: boolean): void;
|
|
384
|
+
setTouched(path: string, touched: boolean): void;
|
|
385
|
+
setDirty(path: string, dirty: boolean): void;
|
|
386
|
+
setStatus(path: string, status: Status): void;
|
|
387
|
+
setErrors(path: string, errors: FieldState['errors']): void;
|
|
388
|
+
addDependency(sourcePath: string, targetPath: string): void;
|
|
389
|
+
getDependents(path: string): Set<string>;
|
|
390
|
+
}
|
|
391
|
+
declare function createRuntime(): {
|
|
392
|
+
state: RuntimeState;
|
|
393
|
+
api: RuntimeAPI;
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Validator registry for sync and async validators
|
|
398
|
+
*/
|
|
399
|
+
interface ValidatorContext {
|
|
400
|
+
get: (path: string) => any;
|
|
401
|
+
signal?: AbortSignal;
|
|
402
|
+
}
|
|
403
|
+
interface ValidationResult {
|
|
404
|
+
valid: boolean;
|
|
405
|
+
error?: {
|
|
406
|
+
code: string;
|
|
407
|
+
message?: string;
|
|
408
|
+
args?: any;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
type SyncValidator = (value: any, args?: any, ctx?: ValidatorContext) => ValidationResult;
|
|
412
|
+
type AsyncValidator = (value: any, args?: any, ctx?: ValidatorContext) => Promise<ValidationResult>;
|
|
413
|
+
declare function registerValidator(name: string, fn: SyncValidator): void;
|
|
414
|
+
declare function registerAsyncValidator(name: string, fn: AsyncValidator): void;
|
|
415
|
+
declare function getValidator(name: string): SyncValidator | undefined;
|
|
416
|
+
declare function getAsyncValidator(name: string): AsyncValidator | undefined;
|
|
417
|
+
|
|
418
|
+
declare function assertFeForm(x: any): asserts x is FeForm;
|
|
419
|
+
|
|
420
|
+
interface FeFormEngineEvents {
|
|
421
|
+
valueChanges: (values: Record<string, any>) => void;
|
|
422
|
+
statusChanges: (status: {
|
|
423
|
+
valid: boolean;
|
|
424
|
+
errors: Record<string, any>;
|
|
425
|
+
}) => void;
|
|
426
|
+
submit: (values: Record<string, any>) => void;
|
|
427
|
+
fieldStateChanges: (path: string, state: FieldState) => void;
|
|
428
|
+
errorsChanges: (path: string, errors: FieldState['errors']) => void;
|
|
429
|
+
}
|
|
430
|
+
interface FeFormEngineState {
|
|
431
|
+
values: Record<string, any>;
|
|
432
|
+
errors: Record<string, any>;
|
|
433
|
+
touched: Record<string, boolean>;
|
|
434
|
+
dirty: Record<string, boolean>;
|
|
435
|
+
valid: boolean;
|
|
436
|
+
}
|
|
437
|
+
interface FeFormEngineOptions {
|
|
438
|
+
initialValues?: Record<string, any>;
|
|
439
|
+
validateOnChange?: boolean;
|
|
440
|
+
}
|
|
441
|
+
declare class FeFormEngine {
|
|
442
|
+
private schema;
|
|
443
|
+
private state;
|
|
444
|
+
private runtime;
|
|
445
|
+
private listeners;
|
|
446
|
+
private batchMode;
|
|
447
|
+
private pendingEmits;
|
|
448
|
+
private pendingValueChanges;
|
|
449
|
+
private pendingFieldStateChanges;
|
|
450
|
+
private pendingErrorsChanges;
|
|
451
|
+
private asyncValidators;
|
|
452
|
+
constructor(schema: FeForm, options?: FeFormEngineOptions);
|
|
453
|
+
private initializeFieldStates;
|
|
454
|
+
private buildDependencyGraph;
|
|
455
|
+
private extractConditionPaths;
|
|
456
|
+
private reevaluateDependents;
|
|
457
|
+
private evaluateFieldConditions;
|
|
458
|
+
private evaluateBackendCondition;
|
|
459
|
+
private findControlByPath;
|
|
460
|
+
private emitFieldStateChange;
|
|
461
|
+
private emitErrorsChange;
|
|
462
|
+
private extractInitialValues;
|
|
463
|
+
get values(): {
|
|
464
|
+
get: (path: string) => any;
|
|
465
|
+
set: (path: string, value: any) => void;
|
|
466
|
+
getAll: () => Record<string, any>;
|
|
467
|
+
};
|
|
468
|
+
get status(): {
|
|
469
|
+
valid: boolean;
|
|
470
|
+
errors: Record<string, any>;
|
|
471
|
+
touched: Record<string, boolean>;
|
|
472
|
+
dirty: Record<string, boolean>;
|
|
473
|
+
};
|
|
474
|
+
getFieldState(path: string): FieldState;
|
|
475
|
+
registerValidator(name: string, fn: SyncValidator): void;
|
|
476
|
+
registerAsyncValidator(name: string, fn: AsyncValidator): void;
|
|
477
|
+
batch(fn: () => void): void;
|
|
478
|
+
on<K extends keyof FeFormEngineEvents>(event: K, listener: FeFormEngineEvents[K]): () => void;
|
|
479
|
+
private emit;
|
|
480
|
+
validate(): boolean;
|
|
481
|
+
private validateControlValidator;
|
|
482
|
+
private validateBackend;
|
|
483
|
+
markTouched(path: string): void;
|
|
484
|
+
submit(): Record<string, any> | null;
|
|
485
|
+
reset(values?: Record<string, any>): void;
|
|
486
|
+
}
|
|
487
|
+
declare function createEngine(schema: FeForm, options?: FeFormEngineOptions): FeFormEngine;
|
|
488
|
+
|
|
489
|
+
export { type AsyncValidator, type FeActivatorConfig, type FeArrayControlConfig, type FeBackendCondition, type FeBackendConditionGroup, type FeBackendSimpleCondition, type FeBackendValidation, type FeBaseControlConfig, type FeBaseFormItemConfig, type FeCondition, type FeControlConfig, type FeControlType, type FeControlValidatorConfig, type FeControlValueType, type FeDictControlConfig, type FeForm, FeFormEngine, type FeFormEngineEvents, type FeFormEngineOptions, type FeFormEngineState, type FeGroupCondition, type FeGroupControlConfig, type FeGroupValidatorConfig, type FeMultiSelectControlConfig, type FeNumberOperationsControlConfig, type FeNumberSliderControlConfig, type FeObjectControlConfig, type FeSection, type FeSimpleCondition, type FeSingleSelectControlConfig, type FeTextControlConfig, type FeTextMask, type FieldState, type RuntimeAPI, type RuntimeState, type Status, type SyncValidator, type ValidationResult, type ValidatorContext, assertFeForm, createEngine, createRuntime, getAsyncValidator, getValidator, registerAsyncValidator, registerValidator };
|