@formio/js 5.0.0-bb.dev.2 → 5.0.0-bb.dev.3
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/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/package.json +1 -2
- package/types/builders.d.ts +0 -7
- package/types/components/_classes/component/component.d.ts +0 -174
- package/types/components/_classes/componentmodal/componentmodal.d.ts +0 -31
- package/types/components/_classes/field/field.d.ts +0 -5
- package/types/components/_classes/input/input.d.ts +0 -30
- package/types/components/_classes/multivalue/multivalue.d.ts +0 -16
- package/types/components/_classes/nested/nestedComponent.d.ts +0 -61
- package/types/components/_classes/widgetcomponent/widgetComponent.d.ts +0 -6
- package/types/components/components.d.ts +0 -69
- package/types/components/schema.d.ts +0 -240
- package/types/displays.d.ts +0 -7
- package/types/element.d.ts +0 -45
- package/types/eventEmitter.d.ts +0 -3
- package/types/form.d.ts +0 -18
- package/types/formbuilder.d.ts +0 -6
- package/types/formio.d.ts +0 -121
- package/types/index.d.ts +0 -18
- package/types/licenses.d.ts +0 -7
- package/types/providers.d.ts +0 -8
- package/types/rulesEngine/conjunctions.d.ts +0 -7
- package/types/rulesEngine/operators.d.ts +0 -7
- package/types/rulesEngine/quckRules.d.ts +0 -7
- package/types/rulesEngine/rules.d.ts +0 -7
- package/types/rulesEngine/transformers.d.ts +0 -7
- package/types/rulesEngine/valueSources.d.ts +0 -7
- package/types/templates.d.ts +0 -8
- package/types/utils.d.ts +0 -157
- package/types/widgets.d.ts +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
|
|
2
2
|
|
|
3
|
-
/*! formiojs v5.0.0-bb.dev.
|
|
3
|
+
/*! formiojs v5.0.0-bb.dev.2 | https://unpkg.com/formiojs@5.0.0-bb.dev.2/LICENSE.txt */
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
|
|
14
14
|
|
|
15
|
-
/*! formiojs v5.0.0-bb.dev.
|
|
15
|
+
/*! formiojs v5.0.0-bb.dev.2 | https://unpkg.com/formiojs@5.0.0-bb.dev.2/LICENSE.txt */
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/js",
|
|
3
|
-
"version": "5.0.0-bb.dev.
|
|
3
|
+
"version": "5.0.0-bb.dev.3",
|
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"require": "./lib/cjs/formio.embed.js"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"types": "index.d.ts",
|
|
30
29
|
"files": [
|
|
31
30
|
"dist",
|
|
32
31
|
"lib",
|
package/types/builders.d.ts
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import { Element } from '../../../element';
|
|
2
|
-
import { ComponentSchema, ElementInfo, ExtendedComponentSchema, ValidateOptions } from './../../schema.d';
|
|
3
|
-
|
|
4
|
-
export class Component extends Element {
|
|
5
|
-
static schema(sources: ExtendedComponentSchema): ExtendedComponentSchema;
|
|
6
|
-
static tableView(value: any, options: any): void;
|
|
7
|
-
constructor(component: any, options: Object, data: Object);
|
|
8
|
-
public originalComponent: any | Component;
|
|
9
|
-
public refs: Object;
|
|
10
|
-
public attached: boolean;
|
|
11
|
-
public rendered: boolean;
|
|
12
|
-
public data: Object;
|
|
13
|
-
public component: any;
|
|
14
|
-
public error: string;
|
|
15
|
-
public tooltip: string;
|
|
16
|
-
public row: any;
|
|
17
|
-
public pristine: boolean;
|
|
18
|
-
public parent: any;
|
|
19
|
-
public root: any;
|
|
20
|
-
public lastChanged: any;
|
|
21
|
-
public triggerRedraw: Function;
|
|
22
|
-
public tooltips: any[];
|
|
23
|
-
public invalid: boolean;
|
|
24
|
-
public isBuilt: boolean;
|
|
25
|
-
readonly ready: any;
|
|
26
|
-
readonly labelInfo: any;
|
|
27
|
-
init(): void;
|
|
28
|
-
destroy(): void;
|
|
29
|
-
readonly shouldDisabled: any | boolean;
|
|
30
|
-
readonly isInputComponent: boolean;
|
|
31
|
-
readonly defaultSchema: ComponentSchema;
|
|
32
|
-
readonly hasInput: boolean;
|
|
33
|
-
readonly key: any;
|
|
34
|
-
public parentVisible: any | boolean;
|
|
35
|
-
public parentDisabled: any | boolean;
|
|
36
|
-
public visible: any | boolean;
|
|
37
|
-
public currentForm: any;
|
|
38
|
-
readonly fullMode: boolean;
|
|
39
|
-
readonly builderMode: boolean;
|
|
40
|
-
getModifiedSchema(
|
|
41
|
-
schema: ExtendedComponentSchema,
|
|
42
|
-
defaultSchema: ComponentSchema,
|
|
43
|
-
recursion: boolean,
|
|
44
|
-
): ExtendedComponentSchema;
|
|
45
|
-
readonly schema: ExtendedComponentSchema;
|
|
46
|
-
t(text: string, params?: Object): any;
|
|
47
|
-
labelIsHidden(): boolean;
|
|
48
|
-
readonly transform: any;
|
|
49
|
-
getTemplate(names: any, modes: any): any;
|
|
50
|
-
checkTemplate(templates: any, names: any, modes: any): any;
|
|
51
|
-
checkTemplateMode(templatesByName: any, modes: any): any;
|
|
52
|
-
renderTemplate(name: any, data: any, modeOption?: any[]): any;
|
|
53
|
-
sanitize(dirty: string): any;
|
|
54
|
-
renderString(template: any, data: any): HTMLElement;
|
|
55
|
-
performInputMapping(input: any): any;
|
|
56
|
-
getBrowserLanguage(): string | null;
|
|
57
|
-
beforeNext(): any;
|
|
58
|
-
beforePage(): any;
|
|
59
|
-
beforeSubmit(): any;
|
|
60
|
-
readonly submissionTimezone: string | any;
|
|
61
|
-
readonly canDisable: boolean;
|
|
62
|
-
loadRefs(element: any, refs: any): any;
|
|
63
|
-
build(element: any): any;
|
|
64
|
-
render(children: any, topLevel?: boolean): any;
|
|
65
|
-
attach(element: any): any;
|
|
66
|
-
addShortcut(element: any, shortcut: any): void;
|
|
67
|
-
removeShortcut(element: any, shortcut: any): void;
|
|
68
|
-
detach(): void;
|
|
69
|
-
attachRefreshEvent(refreshData: any): void;
|
|
70
|
-
attachRefreshOn(): void;
|
|
71
|
-
refresh(value: any): void;
|
|
72
|
-
inContext(component: any): boolean;
|
|
73
|
-
readonly viewOnly: boolean | any;
|
|
74
|
-
createViewOnlyElement(): HTMLElement;
|
|
75
|
-
readonly defaultViewOnlyValue: '-';
|
|
76
|
-
getValueAsString(value: any): string;
|
|
77
|
-
getView(value: any): string;
|
|
78
|
-
updateItems(...args: any[]): void;
|
|
79
|
-
createModal(): HTMLElement;
|
|
80
|
-
readonly className: string;
|
|
81
|
-
readonly customStyle: string;
|
|
82
|
-
getElement(): HTMLElement;
|
|
83
|
-
evalContext(additional: any): any;
|
|
84
|
-
setPristine(pristine: boolean): void;
|
|
85
|
-
removeValue(index: number): void;
|
|
86
|
-
iconClass(name: any, spinning: any): any;
|
|
87
|
-
readonly name: string;
|
|
88
|
-
readonly errorLabel: string;
|
|
89
|
-
errorMessage(type: any): any;
|
|
90
|
-
setContent(element: any, content: any): boolean;
|
|
91
|
-
redraw(): any;
|
|
92
|
-
rebuild(): any;
|
|
93
|
-
removeEventListeners(): void;
|
|
94
|
-
hasClass(element: any, className: string): any;
|
|
95
|
-
addClass(element: any, className: string): any;
|
|
96
|
-
removeClass(element: any, className: string): any;
|
|
97
|
-
hasCondition(): boolean;
|
|
98
|
-
conditionallyVisible(data: any): boolean;
|
|
99
|
-
checkCondition(row: any, data: Object): boolean;
|
|
100
|
-
checkConditions(data: any): any;
|
|
101
|
-
readonly logic: any[];
|
|
102
|
-
fieldLogic(data: any): any;
|
|
103
|
-
applyActions(actions: any[], result: any, data: any, newComponent: any): boolean;
|
|
104
|
-
addInputError(message: any, dirty: boolean): void;
|
|
105
|
-
clearOnHide(show: boolean): void;
|
|
106
|
-
onChange(flags: Object, fromRoot: boolean): void;
|
|
107
|
-
readonly wysiwygDefault: {
|
|
108
|
-
theme: string;
|
|
109
|
-
placeholder: any | string;
|
|
110
|
-
modules: {
|
|
111
|
-
clipboard: {
|
|
112
|
-
matchVisual: boolean;
|
|
113
|
-
};
|
|
114
|
-
toolbar: any[];
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
addCKE(element: HTMLElement | any, settings: Object, onChange: (input: any) => any): any;
|
|
118
|
-
addQuill(element: HTMLElement | any, settings: Object, onChange: (input: any) => any): any;
|
|
119
|
-
addAce(element: HTMLElement | any, settings: Object, onChange: (input: any) => any): any;
|
|
120
|
-
readonly emptyValue: null;
|
|
121
|
-
hasValue(data: Object): boolean;
|
|
122
|
-
readonly rootValue: any;
|
|
123
|
-
readonly rootPristine: any;
|
|
124
|
-
public dataValue: any;
|
|
125
|
-
splice(index: number | string): void;
|
|
126
|
-
deleteValue(): void;
|
|
127
|
-
readonly defaultValue: any;
|
|
128
|
-
getValue(): any;
|
|
129
|
-
getValueAt(index: number): any;
|
|
130
|
-
setValue(value: any, flags: any): boolean;
|
|
131
|
-
setValueAt(index: number, value: any, flags: any): void;
|
|
132
|
-
readonly hasSetValue: boolean;
|
|
133
|
-
restoreValue(): void;
|
|
134
|
-
normalizeValue(value: any): any;
|
|
135
|
-
getIcon(name: any | string, content: any, styles: any, ref?: string): any | HTMLElement;
|
|
136
|
-
resetValue(): void;
|
|
137
|
-
hasChanged(before: any, after: any): boolean;
|
|
138
|
-
updateOnChange(flags: any, changed: boolean | any): boolean;
|
|
139
|
-
calculateValue(data: Object, flags: any): boolean;
|
|
140
|
-
public label: any | string;
|
|
141
|
-
getRoot(): Component;
|
|
142
|
-
invalidMessage(data: any, dirty: boolean, ignoreCondition?: boolean): any;
|
|
143
|
-
isValid(data: any, dirty: boolean): boolean;
|
|
144
|
-
checkValidity(data: any, dirty: any | boolean, rowData: any): boolean;
|
|
145
|
-
readonly validationValue: any;
|
|
146
|
-
isEmpty(value: any): boolean;
|
|
147
|
-
validateMultiple(): boolean;
|
|
148
|
-
readonly errors: any[];
|
|
149
|
-
setCustomValidity(message: any, dirty: any): void;
|
|
150
|
-
shouldSkipValidation(data: any, dirty: any, rowData: any): boolean;
|
|
151
|
-
whenReady(): any | Promise<any>;
|
|
152
|
-
readonly dataReady: any | Promise<any>;
|
|
153
|
-
asString(value: any): string;
|
|
154
|
-
public disabled: boolean;
|
|
155
|
-
setDisabled(element: any, disabled: any | boolean): void;
|
|
156
|
-
setLoading(element: any, loading: any | boolean): void;
|
|
157
|
-
selectOptions(select: any, tag: any, options: any, defaultValue: any): void;
|
|
158
|
-
setSelectValue(select: any, value: any): void;
|
|
159
|
-
clear(): any;
|
|
160
|
-
append(element: HTMLElement): void;
|
|
161
|
-
prepend(element: HTMLElement): void;
|
|
162
|
-
removeChild(element: HTMLElement): void;
|
|
163
|
-
attachLogic(): void;
|
|
164
|
-
elementInfo(): ElementInfo;
|
|
165
|
-
autofocus(): void;
|
|
166
|
-
focus(): void;
|
|
167
|
-
readonly shouldDisable: boolean;
|
|
168
|
-
readonly info: ElementInfo;
|
|
169
|
-
public element: any;
|
|
170
|
-
public validators: (keyof ValidateOptions)[];
|
|
171
|
-
public calculatedValue: any;
|
|
172
|
-
public options: any;
|
|
173
|
-
public labelElement: any;
|
|
174
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component } from '../component/component';
|
|
2
|
-
|
|
3
|
-
export class ComponentModal {
|
|
4
|
-
constructor(component: Component | any, element: any, isOpened: boolean, currentValue: any);
|
|
5
|
-
public isOpened: boolean;
|
|
6
|
-
public component: Component | any;
|
|
7
|
-
public element: any;
|
|
8
|
-
public currentValue: any;
|
|
9
|
-
public dataLoaded: boolean;
|
|
10
|
-
static render(component: Component | any, data: any, topLevel: boolean): any;
|
|
11
|
-
readonly refs: any;
|
|
12
|
-
init(): void;
|
|
13
|
-
setValue(value: any): any;
|
|
14
|
-
setOpenModalElement(template: string): void;
|
|
15
|
-
readonly templateRefs: any;
|
|
16
|
-
loadRefs(): void;
|
|
17
|
-
removeEventListeners(): void;
|
|
18
|
-
setEventListeners(): void;
|
|
19
|
-
isValueChanged(): boolean;
|
|
20
|
-
setOpenEventListener(): void;
|
|
21
|
-
openModalHandler(event: Event): void;
|
|
22
|
-
positionOverElement(): void;
|
|
23
|
-
openModal(): void;
|
|
24
|
-
updateView(): void;
|
|
25
|
-
closeModal(): void;
|
|
26
|
-
closeModalHandler(event: Event): void;
|
|
27
|
-
showDialog(): void;
|
|
28
|
-
closeDialog(event: Event): void;
|
|
29
|
-
saveDialog(event: Event): void;
|
|
30
|
-
saveModalValueHandler(event: Event): void;
|
|
31
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Component } from '../component/component';
|
|
2
|
-
import { Multivalue } from '../multivalue/multivalue';
|
|
3
|
-
import { Element } from './../../../element.d';
|
|
4
|
-
|
|
5
|
-
export class Input extends Multivalue {
|
|
6
|
-
constructor(component: Component | any, options: Object, data: any);
|
|
7
|
-
readonly inputInfo: {
|
|
8
|
-
id: string | number;
|
|
9
|
-
type: string;
|
|
10
|
-
changeEvent: string;
|
|
11
|
-
content?: any;
|
|
12
|
-
attr: any;
|
|
13
|
-
};
|
|
14
|
-
readonly maskOptions: { label: any; value: any }[];
|
|
15
|
-
readonly isMultipleMasksField: boolean;
|
|
16
|
-
getMaskByName(maskName: string): any;
|
|
17
|
-
setInputMask(input: any, inputMask: any): any;
|
|
18
|
-
getMaskOptions(): { label: any; value: any }[];
|
|
19
|
-
readonly remainingWords: number;
|
|
20
|
-
renderElement(value: any, index: string | number): any;
|
|
21
|
-
setCounter(type: string, element: any | Element, count: number, max: number): void;
|
|
22
|
-
updateValueAt(value: any, flags: any, index: string | number): void;
|
|
23
|
-
getValueAt(index: string | number): any;
|
|
24
|
-
updateValue(value: any, flags: any, index: string | number): any;
|
|
25
|
-
attach(element: any): any;
|
|
26
|
-
attachElement(element: any | Element, index: string | number): void;
|
|
27
|
-
readonly widget: any;
|
|
28
|
-
createWidget(index: string | number): any;
|
|
29
|
-
addFocusBlurEvents(element: any | Element): void;
|
|
30
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Field } from '../field/field';
|
|
2
|
-
|
|
3
|
-
export class Multivalue extends Field {
|
|
4
|
-
public dataValue: any;
|
|
5
|
-
readonly defaultValue: any;
|
|
6
|
-
readonly addAnother: any;
|
|
7
|
-
useWrapper(): boolean;
|
|
8
|
-
renderRow(value: any, index: any): any;
|
|
9
|
-
attach(dom: any): any;
|
|
10
|
-
attachElement(element: any, index: number | string): any;
|
|
11
|
-
onSelectMaskHandler(event: any): void;
|
|
12
|
-
tryAttachMultipleMasksInput(): boolean;
|
|
13
|
-
updateMask(input: any, mask: any): void;
|
|
14
|
-
addNewValue(value: any): void;
|
|
15
|
-
addValue(): void;
|
|
16
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Field } from '../field/field';
|
|
2
|
-
import { Component } from './../component/component.d';
|
|
3
|
-
|
|
4
|
-
export class NestedComponent extends Field {
|
|
5
|
-
constructor(component: any | Component, options: Object, data: any);
|
|
6
|
-
readonly defaultSchema: any;
|
|
7
|
-
readonly schema: any;
|
|
8
|
-
public collapsed: any | boolean;
|
|
9
|
-
public visible: any | boolean;
|
|
10
|
-
public parentVisible: boolean;
|
|
11
|
-
public disabled: boolean;
|
|
12
|
-
public parentDisabled: any | boolean;
|
|
13
|
-
readonly ready: any;
|
|
14
|
-
public currentForm: any;
|
|
15
|
-
public data: any;
|
|
16
|
-
getComponents(): any[] | Component[];
|
|
17
|
-
getAllComponents(): any[] | Component[];
|
|
18
|
-
everyComponent(fn: Function): void;
|
|
19
|
-
flattenComponents(): Object;
|
|
20
|
-
eachComponent(fn: Function): void;
|
|
21
|
-
getComponent(path: string, fn: Function): Object;
|
|
22
|
-
getComponentById(id: string, fn: Function): Object;
|
|
23
|
-
createComponent(component: any | Component, options: Object, data: any, before: any): any | Object;
|
|
24
|
-
getContainer(): any;
|
|
25
|
-
readonly componentComponents: any[];
|
|
26
|
-
readonly nestedKey: string;
|
|
27
|
-
readonly templateName: string;
|
|
28
|
-
init(): void;
|
|
29
|
-
addComponents(data: any, options: Object): void;
|
|
30
|
-
addComponent(component: any, data: Object, before: HTMLElement, noAdd?: any): Component;
|
|
31
|
-
render(children: any): any;
|
|
32
|
-
renderComponents(components: any): any;
|
|
33
|
-
attach(element: any): any;
|
|
34
|
-
attachComponents(element: any, components: any | Component[], container: any): any;
|
|
35
|
-
removeComponent(component: Component, components: Component[]): any;
|
|
36
|
-
removeComponentByKey(key: string, fn: Function): null;
|
|
37
|
-
removeComponentById(id: string, fn: Function): null;
|
|
38
|
-
updateValue(value: any, flags: any, source: any): any;
|
|
39
|
-
hasChanged(): boolean;
|
|
40
|
-
checkData(data: any, flags: any, source: any): boolean;
|
|
41
|
-
checkModal(isValid: boolean, dirty: boolean): void;
|
|
42
|
-
checkConditions(data: any, norecurse?: any): any;
|
|
43
|
-
clearOnHide(show: boolean): void;
|
|
44
|
-
restoreComponentsContext(): void;
|
|
45
|
-
beforePage(next?: any): any;
|
|
46
|
-
beforeSubmit(): any;
|
|
47
|
-
calculateValue(data: any, flags: any): any;
|
|
48
|
-
isLastPage(): boolean;
|
|
49
|
-
isValid(data: any, dirty: any): boolean;
|
|
50
|
-
checkValidity(data: any, dirty: any): any | boolean;
|
|
51
|
-
setPristine(pristine: any): void;
|
|
52
|
-
detach(): void;
|
|
53
|
-
destroy(): void;
|
|
54
|
-
destroyComponents(): void;
|
|
55
|
-
readonly errors: any[];
|
|
56
|
-
getValue(): any;
|
|
57
|
-
resetValue(): void;
|
|
58
|
-
readonly dataReady: any;
|
|
59
|
-
setNestedValue(component: any | Component, value: any, flags: any | Object, changed: boolean): any;
|
|
60
|
-
setValue(value: any, flags: any | Object): boolean;
|
|
61
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ExtendedComponentSchema } from './schema';
|
|
2
|
-
import { Component } from './_classes/component/component';
|
|
3
|
-
import { ComponentModal } from './_classes/componentmodal/componentmodal';
|
|
4
|
-
import { Field } from './_classes/field/field';
|
|
5
|
-
import { Input } from './_classes/input/input';
|
|
6
|
-
import { Multivalue } from './_classes/multivalue/multivalue';
|
|
7
|
-
import { NestedComponent } from './_classes/nested/nestedComponent';
|
|
8
|
-
import { WidgetComponent } from './_classes/widgetcomponent/widgetComponent';
|
|
9
|
-
|
|
10
|
-
type ClassWithEditForm<C> = C & { editForm: () => { components: ExtendedComponentSchema[] } };
|
|
11
|
-
|
|
12
|
-
export namespace Components {
|
|
13
|
-
function setComponents(comps: Object): void;
|
|
14
|
-
function setComponent(name: string, comp: Object): void;
|
|
15
|
-
function addComponent(name: string, comp: Object): void;
|
|
16
|
-
function create(component: any, options: Object, data?: any, flag?: any): Object;
|
|
17
|
-
let baseEditForm: any;
|
|
18
|
-
let EditFormUtils: any;
|
|
19
|
-
namespace components {
|
|
20
|
-
class base extends Component {}
|
|
21
|
-
class componentmodal extends ComponentModal {}
|
|
22
|
-
class input extends Input {}
|
|
23
|
-
class nested extends NestedComponent {}
|
|
24
|
-
class multivalue extends Multivalue {}
|
|
25
|
-
class field extends Field {}
|
|
26
|
-
|
|
27
|
-
const address: ClassWithEditForm<typeof WidgetComponent>;
|
|
28
|
-
const button: ClassWithEditForm<typeof Field>;
|
|
29
|
-
const checkbox: ClassWithEditForm<typeof Field>;
|
|
30
|
-
const columns: ClassWithEditForm<typeof NestedComponent>;
|
|
31
|
-
const container: ClassWithEditForm<typeof NestedComponent>;
|
|
32
|
-
const content: ClassWithEditForm<typeof Component>;
|
|
33
|
-
const currency: ClassWithEditForm<typeof Input>;
|
|
34
|
-
const datagrid: ClassWithEditForm<typeof NestedComponent>;
|
|
35
|
-
const datamap: ClassWithEditForm<typeof NestedComponent>;
|
|
36
|
-
const datetime: ClassWithEditForm<typeof WidgetComponent>;
|
|
37
|
-
const day: ClassWithEditForm<typeof Field>;
|
|
38
|
-
const editgrid: ClassWithEditForm<typeof NestedComponent>;
|
|
39
|
-
const email: ClassWithEditForm<typeof WidgetComponent>;
|
|
40
|
-
const fieldset: ClassWithEditForm<typeof NestedComponent>;
|
|
41
|
-
const file: ClassWithEditForm<typeof Field>;
|
|
42
|
-
const form: ClassWithEditForm<typeof Component>;
|
|
43
|
-
const hidden: ClassWithEditForm<typeof Input>;
|
|
44
|
-
const htmlelement: ClassWithEditForm<typeof Component>;
|
|
45
|
-
const number: ClassWithEditForm<typeof Input>;
|
|
46
|
-
const panel: ClassWithEditForm<typeof NestedComponent>;
|
|
47
|
-
const password: ClassWithEditForm<typeof WidgetComponent>;
|
|
48
|
-
const phoneNumber: ClassWithEditForm<typeof WidgetComponent>;
|
|
49
|
-
const radio: ClassWithEditForm<typeof Field>;
|
|
50
|
-
const recaptcha: ClassWithEditForm<typeof Component>;
|
|
51
|
-
const resource: ClassWithEditForm<typeof Field>;
|
|
52
|
-
const select: ClassWithEditForm<typeof Field>;
|
|
53
|
-
const selectboxes: ClassWithEditForm<typeof Field>;
|
|
54
|
-
const signature: ClassWithEditForm<typeof Input>;
|
|
55
|
-
const sketchpad: ClassWithEditForm<typeof Field>;
|
|
56
|
-
const survey: ClassWithEditForm<typeof Field>;
|
|
57
|
-
const table: ClassWithEditForm<typeof NestedComponent>;
|
|
58
|
-
const tabs: ClassWithEditForm<typeof NestedComponent>;
|
|
59
|
-
const tagpad: ClassWithEditForm<typeof NestedComponent>;
|
|
60
|
-
const tags: ClassWithEditForm<typeof Input>;
|
|
61
|
-
const textarea: ClassWithEditForm<typeof WidgetComponent>;
|
|
62
|
-
const textfield: ClassWithEditForm<typeof WidgetComponent>;
|
|
63
|
-
const time: ClassWithEditForm<typeof WidgetComponent>;
|
|
64
|
-
const tree: ClassWithEditForm<typeof NestedComponent>;
|
|
65
|
-
const unknown: ClassWithEditForm<typeof Component>;
|
|
66
|
-
const url: ClassWithEditForm<typeof WidgetComponent>;
|
|
67
|
-
const well: ClassWithEditForm<typeof NestedComponent>;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
export interface ComponentSchema<T = any> {
|
|
2
|
-
/**
|
|
3
|
-
* The type of component
|
|
4
|
-
*/
|
|
5
|
-
type?: string;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The data key for this component (how the data is stored in the database, referenced as API key in docs).
|
|
9
|
-
*/
|
|
10
|
-
key?: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The HTML label to give this component.
|
|
14
|
-
*/
|
|
15
|
-
label?: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The input placeholder for this component.
|
|
19
|
-
*/
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Determines if this component provides an input.
|
|
24
|
-
*/
|
|
25
|
-
input?: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* If this component should be included as a column within a submission table.
|
|
29
|
-
* Determines if this field will show in the data tables output.
|
|
30
|
-
*/
|
|
31
|
-
tableView?: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* If this component should allow an array of values to be captured.
|
|
35
|
-
*/
|
|
36
|
-
multiple?: boolean;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* If the data of this component should be protected (no GET api requests can see the data)
|
|
40
|
-
*/
|
|
41
|
-
protected?: boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The prefix text to put in front of the input
|
|
45
|
-
*/
|
|
46
|
-
prefix?: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* The suffix text to put after the input
|
|
50
|
-
*/
|
|
51
|
-
suffix?: string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The default value of this compoennt.
|
|
55
|
-
*/
|
|
56
|
-
defaultValue?: T;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* If the value of this field should be cleared when it is conditionally hidden.
|
|
60
|
-
*/
|
|
61
|
-
clearOnHide?: boolean;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Validate if the value of this component should be unique within the form.
|
|
65
|
-
*/
|
|
66
|
-
unique?: boolean;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* If the value of this component should be persisted within the backend api database.
|
|
70
|
-
*/
|
|
71
|
-
persistent?: boolean;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Determines if the component should be within the form, but not visible.
|
|
75
|
-
* This can be overridden with the conditionals.
|
|
76
|
-
*/
|
|
77
|
-
hidden?: boolean;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* The validation criteria for this component.
|
|
81
|
-
*/
|
|
82
|
-
validate?: ValidateOptions;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Determines when this component should be added to the form for both processing and input.
|
|
86
|
-
*/
|
|
87
|
-
conditional?: ConditionalOptions;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Allows customizable errors to be displayed for each component when an error occurs. This is an object with the following keys:
|
|
91
|
-
required
|
|
92
|
-
min
|
|
93
|
-
max
|
|
94
|
-
minLength
|
|
95
|
-
maxLength
|
|
96
|
-
invalid_email
|
|
97
|
-
invalid_date
|
|
98
|
-
pattern
|
|
99
|
-
custom
|
|
100
|
-
|
|
101
|
-
An object (keys listed above), values are the strings you wish to display. Each string has the {{ field }} to use within the string. Example.
|
|
102
|
-
{"required": "{{ field }} is required. Try again."}
|
|
103
|
-
*/
|
|
104
|
-
errors?: Object;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Allows changing the component definition in reaction to data entered in a form. For example, changing a field to required, disabled or hidden when a value is entered.
|
|
108
|
-
An array of instances of the Field Logic Schema
|
|
109
|
-
Fyi: https://github.com/formio/formio.js/wiki/Field-Logic-Schema
|
|
110
|
-
*/
|
|
111
|
-
logic?: Object[];
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The custom CSS class to provide to this component.
|
|
115
|
-
*/
|
|
116
|
-
customClass?: string;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* If true, will show label when component is in a datagrid.
|
|
120
|
-
*/
|
|
121
|
-
dataGridLabel?: boolean;
|
|
122
|
-
|
|
123
|
-
labelPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
124
|
-
labelWidth?: number;
|
|
125
|
-
labelMargin?: number;
|
|
126
|
-
description?: string;
|
|
127
|
-
errorLabel?: string;
|
|
128
|
-
tooltip?: string;
|
|
129
|
-
hideLabel?: boolean;
|
|
130
|
-
tabindex?: string;
|
|
131
|
-
disabled?: boolean;
|
|
132
|
-
autofocus?: boolean;
|
|
133
|
-
dbIndex?: boolean;
|
|
134
|
-
customDefaultValue?: any;
|
|
135
|
-
calculateValue?: any;
|
|
136
|
-
allowCalculateOverride?: boolean;
|
|
137
|
-
widget?: any; // Input widgets i.e. calendar widget
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* This will refresh this component when this field changes.
|
|
141
|
-
*/
|
|
142
|
-
refreshOn?: string;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Determines if we should clear our value when a refresh occurs.
|
|
146
|
-
*/
|
|
147
|
-
clearOnRefresh?: boolean;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* This will perform the validation on either "change" or "blur" of the input element.
|
|
151
|
-
*/
|
|
152
|
-
validateOn?: 'change' | 'blur';
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export type ExtendedComponentSchema<T = any> = ComponentSchema<T> & { [key: string]: any };
|
|
156
|
-
|
|
157
|
-
export interface ConditionalOptions {
|
|
158
|
-
/** If the field should show if the condition is true */
|
|
159
|
-
show?: boolean;
|
|
160
|
-
/** The field API key that it should compare its value against to determine if the condition is triggered. */
|
|
161
|
-
when?: string;
|
|
162
|
-
/** The value that should be checked against the comparison component */
|
|
163
|
-
eq?: string;
|
|
164
|
-
/** The JSON Logic to determine if this component is conditionally available.
|
|
165
|
-
* Fyi: http://jsonlogic.com/
|
|
166
|
-
*/
|
|
167
|
-
json?: Object;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface ValidateOptions {
|
|
171
|
-
/**
|
|
172
|
-
* If this component is required.
|
|
173
|
-
*/
|
|
174
|
-
required?: boolean;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* For text input, this checks the minimum length of text for valid input
|
|
178
|
-
*/
|
|
179
|
-
minLength?: number;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* For text input, this checks the maximum length of text for valid input
|
|
183
|
-
*/
|
|
184
|
-
maxLength?: number;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* For text input, this checks the text agains a Regular expression pattern.
|
|
188
|
-
*/
|
|
189
|
-
pattern?: string;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* A custom javascript based validation or a JSON object for using JSON Logic
|
|
193
|
-
*/
|
|
194
|
-
custom?: any;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* If the custom validation should remain private (only the backend will see it and execute it).
|
|
198
|
-
*/
|
|
199
|
-
customPrivate?: boolean;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Minimum value for numbers
|
|
203
|
-
*/
|
|
204
|
-
min?: number;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Maximum value for numbers
|
|
208
|
-
*/
|
|
209
|
-
max?: number;
|
|
210
|
-
|
|
211
|
-
minSelectedCount?: number;
|
|
212
|
-
maxSelectedCount?: number;
|
|
213
|
-
minWords?: number;
|
|
214
|
-
maxWords?: number;
|
|
215
|
-
email?: boolean;
|
|
216
|
-
url?: boolean;
|
|
217
|
-
date?: boolean;
|
|
218
|
-
day?: boolean;
|
|
219
|
-
json?: string;
|
|
220
|
-
mask?: boolean;
|
|
221
|
-
minDate?: any;
|
|
222
|
-
maxDate?: any;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface ElementInfo {
|
|
226
|
-
type: string;
|
|
227
|
-
component: ExtendedComponentSchema;
|
|
228
|
-
changeEvent: string;
|
|
229
|
-
attr: any;
|
|
230
|
-
content: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface BuilderInfo {
|
|
234
|
-
title: string;
|
|
235
|
-
group: string;
|
|
236
|
-
icon: string;
|
|
237
|
-
documentation?: string;
|
|
238
|
-
weight?: number;
|
|
239
|
-
schema?: ExtendedComponentSchema;
|
|
240
|
-
}
|
package/types/displays.d.ts
DELETED