-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.d.mts
484 lines (475 loc) · 11.8 KB
/
index.d.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
import { App, defineComponent, DefineComponent, VNode } from 'vue';
interface BreakpointConfig {
breakpoint?: string;
size?: number;
}
interface PanelConfig {
sections?: any;
separators?: any;
props?: object;
}
interface ElementPanelConfig {
types?: any;
props?: object;
}
interface BuilderConfig {
search?: boolean;
views?: ('editor' | 'preview' | 'code')[];
devices?: ('tablet' | 'desktop')[];
breakpoints?: {
tablet?: BreakpointConfig;
desktop?: BreakpointConfig;
};
darkMode?: ('light' | 'dark')[];
toggleLeft?: boolean;
toggleRight?: boolean;
clear?: boolean;
save?: boolean;
undo?: boolean;
modelPreview?: boolean;
leftPanel?: ('elements' | 'tree' | 'form' | 'theme' | 'export' | 'settings' | 'model')[];
rightPanel?: ('elements' | 'tree' | 'form' | 'theme' | 'export' | 'settings' | 'model')[];
leftLayout?: 'tabs' | 'icons';
rightLayout?: 'tabs' | 'icons';
defaultWidth?: number;
defaultLocale?: string;
fallbackLocale?: string;
locales?: object;
emojiFlags?: boolean;
delay?: number;
storagePrefix?: string | null;
defaultName?: string;
autosave?: number;
history?: boolean;
maxHistory?: number;
longFieldNames?: boolean;
infos?: boolean;
columns?: {
container?: number;
label?: number;
wrapper?: number;
};
themes?: object;
categories?: object;
export?: PanelConfig;
form?: PanelConfig;
theme?: PanelConfig;
tab?: PanelConfig;
step?: PanelConfig;
element?: ElementPanelConfig;
elements?: string[];
excludeElements?: string[];
preset?: BuilderConfig;
names?: boolean;
transformElement?: boolean | function;
formDefaults?: object;
[key: string]: any;
}
declare module '@vueform/builder' {
const elementTypes: any;
const sections: any;
const separators: any;
const themes: any;
const defineConfig: any;
const AcceptField: any;
const AcceptImagesField: any;
const AddonsField: any;
const AddTextField: any;
const AfterField: any;
const AlignField: any;
const AlignField_toggle: any;
const AlignField_checkbox: any;
const AlignField_radio: any;
const AttrsField: any;
const AttrsField_static: any;
const AutocompleteField: any;
const AutogrowField: any;
const AutoloadField: any;
const AutoUploadField: any;
const BaseElementField: any;
const BaseExportField: any;
const BaseField: any;
const BaseFormField: any;
const BaseMultilingualElementField: any;
const BaseMultilingualFormField: any;
const BaseSelectOptionField: any;
const BaseThemeField: any;
const BeforeField: any;
const BetweenField: any;
const BoolValueField: any;
const ButtonLabelField: any;
const ButtonTypeField: any;
const CanAddField: any;
const CanClearField: any;
const CanDropField: any;
const CanRemoveField: any;
const CanUndoField: any;
const ClickableField: any;
const ColorsField: any;
const ColumnsField: any;
const ColWrapField: any;
const ConditionsField: any;
const ContentField: any;
const ControlsField: any;
const CreateField: any;
const DateRestrictionsField: any;
const DateFormatField: any;
const DateModeField: any;
const DefaultField: any;
const DefaultField_location: any;
const DefaultField_select: any;
const DefaultField_multiselect: any;
const DefaultField_tags: any;
const DefaultField_radiogroup: any;
const DefaultField_checkboxgroup: any;
const DefaultField_date: any;
const DefaultField_time: any;
const DefaultField_datetime: any;
const DefaultField_dates: any;
const DefaultField_slider: any;
const DefaultField_toggle: any;
const DefaultField_checkbox: any;
const DefaultField_radio: any;
const DefaultField_editor: any;
const DefaultField_textarea: any;
const DefaultField_list: any;
const DefaultField_multilingual: any;
const DescriptionField: any;
const DirectionField: any;
const DisabledField: any;
const DragAndDropField: any;
const EndpointField: any;
const ExcludeCountriesField: any;
const ExportApiField: any;
const ExportDownloadField: any;
const ExportOutputField: any;
const ExportThemeField: any;
const FieldNameField: any;
const FileAcceptField: any;
const FileEndpointsField: any;
const FileRulesField: any;
const FileUrlsField: any;
const FontsField: any;
const FormColumnsField: any;
const FormDisplayErrorsField: any;
const FormDisplayMessagesField: any;
const FormEndpointField: any;
const FormFloatPlaceholderField: any;
const FormForceLabelsField: any;
const FormFormKeyField: any;
const FormNameField: any;
const FormNestingField: any;
const FormSizeField: any;
const FormValidationField: any;
const FormWidthField: any;
const FullField: any;
const HeightField: any;
const HideColsField: any;
const HideRowsField: any;
const Hour24Field: any;
const HrefField: any;
const IdField: any;
const ImgField: any;
const IncludeCountriesField: any;
const InfoField: any;
const InitialField: any;
const InputTypeField: any;
const InvertColorsField: any;
const ItemsField: any;
const LabelField: any;
const LabelsField: any;
const LineField: any;
const LinkField: any;
const MatrixColsField: any;
const MatrixGapField: any;
const MatrixInputTypeField: any;
const MatrixItemsField: any;
const MatrixMaxField: any;
const MatrixMaxWidthField: any;
const MatrixMinField: any;
const MatrixMinWidthField: any;
const MatrixRowsField: any;
const MaxField: any;
const MaxFontSizeField: any;
const MaxOptionsField: any;
const MaxSizeField: any;
const MaxWidthField: any;
const MetaField: any;
const MinField: any;
const MinFontSizeField: any;
const ModesField: any;
const MultipleLabelField: any;
const NameField: any;
const NativeField: any;
const NestedField: any;
const NoOptionsField: any;
const NoResultsField: any;
const ObjectField: any;
const OrientationField: any;
const PaddingField: any;
const PageButtonsField: any;
const PageConditionsField: any;
const PageLabelField: any;
const PageLabelsField: any;
const ParamsField: any;
const PlaceholderField: any;
const PlaceholderField_signature: any;
const RadioField: any;
const ReadonlyField: any;
const ResetsField: any;
const RowsField: any;
const RowWrapField: any;
const ScrollableField: any;
const SearchField: any;
const SearchField_tags: any;
const SecondsField: any;
const SelectBehaviorField: any;
const SelectBehaviorField_tags: any;
const SelectBehaviorField_multiselect: any;
const SelectItemsField: any;
const SelectUiField: any;
const SizeField: any;
const SoftRemoveField: any;
const SpaceField: any;
const StepField: any;
const StickyColsField: any;
const StickyRowsField: any;
const StoreField: any;
const StoreOrderField: any;
const SubmitField: any;
const SubmitsField: any;
const SubtitleField: any;
const TagField: any;
const TargetField: any;
const TextField: any;
const ThemeBorderField: any;
const ThemeColorField: any;
const ThemeColorSelectorField: any;
const ThemeRadiusField: any;
const ThemeSelectField: any;
const ThemeShadowField: any;
const ThemeSingleSizeField: any;
const ThemeSizeField: any;
const ThemeThemeField: any;
const ThemeToolsField: any;
const ThemeToolsHiddenField: any;
const TitleSignatureDrawField: any;
const TitleSignatureTypeField: any;
const TitleSignatureUploadField: any;
const ToolsField: any;
const TooltipFormatField: any;
const TooltipsField: any;
const TypeField: any;
const UnmaskField: any;
const UploadHeightField: any;
const UploadWidthField: any;
const ValidationField: any;
const ViewField: any;
const ViewField_file: any;
const ViewField_matrix: any;
function defineConfig(options: BuilderConfig): BuilderConfig;
export {
elementTypes,
sections,
separators,
themes,
defineConfig,
AcceptField,
AcceptImagesField,
AddonsField,
AddTextField,
AfterField,
AlignField,
AlignField_toggle,
AlignField_checkbox,
AlignField_radio,
AttrsField,
AttrsField_static,
AutocompleteField,
AutogrowField,
AutoloadField,
AutoUploadField,
BaseElementField,
BaseExportField,
BaseField,
BaseFormField,
BaseMultilingualElementField,
BaseMultilingualFormField,
BaseSelectOptionField,
BaseThemeField,
BeforeField,
BetweenField,
BoolValueField,
ButtonLabelField,
ButtonTypeField,
CanAddField,
CanClearField,
CanDropField,
CanRemoveField,
CanUndoField,
ClickableField,
ColorsField,
ColumnsField,
ColWrapField,
ConditionsField,
ContentField,
ControlsField,
CreateField,
DateRestrictionsField,
DateFormatField,
DateModeField,
DefaultField,
DefaultField_location,
DefaultField_select,
DefaultField_multiselect,
DefaultField_tags,
DefaultField_radiogroup,
DefaultField_checkboxgroup,
DefaultField_date,
DefaultField_time,
DefaultField_datetime,
DefaultField_dates,
DefaultField_slider,
DefaultField_toggle,
DefaultField_checkbox,
DefaultField_radio,
DefaultField_editor,
DefaultField_textarea,
DefaultField_list,
DefaultField_multilingual,
DescriptionField,
DirectionField,
DisabledField,
DragAndDropField,
EndpointField,
ExcludeCountriesField,
ExportApiField,
ExportDownloadField,
ExportOutputField,
ExportThemeField,
FieldNameField,
FileAcceptField,
FileEndpointsField,
FileRulesField,
FileUrlsField,
FontsField,
FormColumnsField,
FormDisplayErrorsField,
FormDisplayMessagesField,
FormEndpointField,
FormFloatPlaceholderField,
FormForceLabelsField,
FormFormKeyField,
FormNameField,
FormNestingField,
FormSizeField,
FormValidationField,
FormWidthField,
FullField,
HeightField,
HideColsField,
HideRowsField,
Hour24Field,
HrefField,
IdField,
ImgField,
IncludeCountriesField,
InfoField,
InitialField,
InputTypeField,
InvertColorsField,
ItemsField,
LabelField,
LabelsField,
LineField,
LinkField,
MatrixColsField,
MatrixGapField,
MatrixInputTypeField,
MatrixItemsField,
MatrixMaxField,
MatrixMaxWidthField,
MatrixMinField,
MatrixMinWidthField,
MatrixRowsField,
MaxField,
MaxFontSizeField,
MaxOptionsField,
MaxSizeField,
MaxWidthField,
MetaField,
MinField,
MinFontSizeField,
ModesField,
MultipleLabelField,
NameField,
NativeField,
NestedField,
NoOptionsField,
NoResultsField,
ObjectField,
OrientationField,
PaddingField,
PageButtonsField,
PageConditionsField,
PageLabelField,
PageLabelsField,
ParamsField,
PlaceholderField,
PlaceholderField_signature,
RadioField,
ReadonlyField,
ResetsField,
RowsField,
RowWrapField,
ScrollableField,
SearchField,
SearchField_tags,
SecondsField,
SelectBehaviorField,
SelectBehaviorField_tags,
SelectBehaviorField_multiselect,
SelectItemsField,
SelectUiField,
SizeField,
SoftRemoveField,
SpaceField,
StepField,
StickyColsField,
StickyRowsField,
StoreField,
StoreOrderField,
SubmitField,
SubmitsField,
SubtitleField,
TagField,
TargetField,
TextField,
ThemeBorderField,
ThemeColorField,
ThemeColorSelectorField,
ThemeRadiusField,
ThemeSelectField,
ThemeShadowField,
ThemeSingleSizeField,
ThemeSizeField,
ThemeThemeField,
ThemeToolsField,
ThemeToolsHiddenField,
TitleSignatureDrawField,
TitleSignatureTypeField,
TitleSignatureUploadField,
ToolsField,
TooltipFormatField,
TooltipsField,
TypeField,
UnmaskField,
UploadHeightField,
UploadWidthField,
ValidationField,
ViewField,
ViewField_file,
ViewField_matrix,
}
export default function install(app?: any, options: BuilderConfig): any;
}