@formio/js 5.0.0-rc.43 → 5.0.0-rc.44
Sign up to get free protection for your applications and to get access to all the features.
- 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 +602 -580
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -11
- package/dist/formio.full.js +605 -583
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -11
- package/dist/formio.js +10 -11
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1 -1
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Element.js +2 -0
- package/lib/cjs/Form.js +3 -1
- package/lib/cjs/Webform.js +93 -15
- package/lib/cjs/WebformBuilder.js +8 -8
- package/lib/cjs/components/_classes/component/Component.js +25 -8
- package/lib/cjs/components/_classes/componentModal/ComponentModal.js +5 -4
- package/lib/cjs/components/_classes/input/Input.js +1 -1
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.js +4 -2
- package/lib/cjs/components/datagrid/DataGrid.js +1 -1
- package/lib/cjs/components/editgrid/EditGrid.js +3 -3
- package/lib/cjs/components/form/Form.js +1 -1
- package/lib/cjs/components/html/HTML.js +2 -2
- package/lib/cjs/components/html/fixtures/comp3.js +40 -0
- package/lib/cjs/components/html/fixtures/index.js +3 -1
- package/lib/cjs/components/radio/Radio.js +29 -10
- package/lib/cjs/components/radio/editForm/Radio.edit.data.js +20 -0
- package/lib/cjs/components/radio/fixtures/comp11.js +85 -0
- package/lib/cjs/components/radio/fixtures/index.js +3 -1
- package/lib/cjs/components/select/Select.js +3 -0
- package/lib/cjs/components/select/editForm/Select.edit.data.js +63 -1
- package/lib/cjs/components/signature/Signature.js +1 -1
- package/lib/cjs/components/textarea/TextArea.js +1 -1
- package/lib/cjs/formio.form.js +5 -1
- package/lib/cjs/providers/storage/s3.js +29 -1
- package/lib/mjs/Element.js +2 -0
- package/lib/mjs/Form.js +3 -1
- package/lib/mjs/Webform.js +98 -16
- package/lib/mjs/WebformBuilder.js +8 -8
- package/lib/mjs/components/_classes/component/Component.js +25 -8
- package/lib/mjs/components/_classes/componentModal/ComponentModal.js +5 -4
- package/lib/mjs/components/_classes/input/Input.js +1 -1
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.js +4 -2
- package/lib/mjs/components/datagrid/DataGrid.js +1 -1
- package/lib/mjs/components/editgrid/EditGrid.js +3 -3
- package/lib/mjs/components/form/Form.js +1 -1
- package/lib/mjs/components/html/HTML.js +2 -2
- package/lib/mjs/components/html/fixtures/comp3.js +38 -0
- package/lib/mjs/components/html/fixtures/index.js +2 -1
- package/lib/mjs/components/radio/Radio.js +29 -10
- package/lib/mjs/components/radio/editForm/Radio.edit.data.js +20 -0
- package/lib/mjs/components/radio/fixtures/comp11.js +83 -0
- package/lib/mjs/components/radio/fixtures/index.js +2 -1
- package/lib/mjs/components/select/Select.js +3 -0
- package/lib/mjs/components/select/editForm/Select.edit.data.js +59 -1
- package/lib/mjs/components/signature/Signature.js +1 -1
- package/lib/mjs/components/textarea/TextArea.js +1 -1
- package/lib/mjs/formio.form.js +3 -1
- package/lib/mjs/providers/storage/s3.js +6 -1
- package/package.json +7 -8
- package/types/builders.d.ts +0 -7
- package/types/components/_classes/component/component.d.ts +0 -175
- 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 -174
- 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 -1236
- 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,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,174 +0,0 @@
|
|
1
|
-
import { ConditionalOptions, ValidateOptions } from '../formio';
|
2
|
-
|
3
|
-
export interface ComponentSchema<T = any> {
|
4
|
-
/**
|
5
|
-
* The type of component
|
6
|
-
*/
|
7
|
-
type?: string;
|
8
|
-
|
9
|
-
/**
|
10
|
-
* The data key for this component (how the data is stored in the database, referenced as API key in docs).
|
11
|
-
*/
|
12
|
-
key?: string;
|
13
|
-
|
14
|
-
/**
|
15
|
-
* The HTML label to give this component.
|
16
|
-
*/
|
17
|
-
label?: string;
|
18
|
-
|
19
|
-
/**
|
20
|
-
* The input placeholder for this component.
|
21
|
-
*/
|
22
|
-
placeholder?: string;
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Determines if this component provides an input.
|
26
|
-
*/
|
27
|
-
input?: boolean;
|
28
|
-
|
29
|
-
/**
|
30
|
-
* If this component should be included as a column within a submission table.
|
31
|
-
* Determines if this field will show in the data tables output.
|
32
|
-
*/
|
33
|
-
tableView?: boolean;
|
34
|
-
|
35
|
-
/**
|
36
|
-
* If this component should allow an array of values to be captured.
|
37
|
-
*/
|
38
|
-
multiple?: boolean;
|
39
|
-
|
40
|
-
/**
|
41
|
-
* If the data of this component should be protected (no GET api requests can see the data)
|
42
|
-
*/
|
43
|
-
protected?: boolean;
|
44
|
-
|
45
|
-
/**
|
46
|
-
* The prefix text to put in front of the input
|
47
|
-
*/
|
48
|
-
prefix?: string;
|
49
|
-
|
50
|
-
/**
|
51
|
-
* The suffix text to put after the input
|
52
|
-
*/
|
53
|
-
suffix?: string;
|
54
|
-
|
55
|
-
/**
|
56
|
-
* The default value of this compoennt.
|
57
|
-
*/
|
58
|
-
defaultValue?: T;
|
59
|
-
|
60
|
-
/**
|
61
|
-
* If the value of this field should be cleared when it is conditionally hidden.
|
62
|
-
*/
|
63
|
-
clearOnHide?: boolean;
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Validate if the value of this component should be unique within the form.
|
67
|
-
*/
|
68
|
-
unique?: boolean;
|
69
|
-
|
70
|
-
/**
|
71
|
-
* If the value of this component should be persisted within the backend api database.
|
72
|
-
*/
|
73
|
-
persistent?: boolean;
|
74
|
-
|
75
|
-
/**
|
76
|
-
* Determines if the component should be within the form, but not visible.
|
77
|
-
* This can be overridden with the conditionals.
|
78
|
-
*/
|
79
|
-
hidden?: boolean;
|
80
|
-
|
81
|
-
/**
|
82
|
-
* The validation criteria for this component.
|
83
|
-
*/
|
84
|
-
validate?: ValidateOptions;
|
85
|
-
|
86
|
-
/**
|
87
|
-
* Determines when this component should be added to the form for both processing and input.
|
88
|
-
*/
|
89
|
-
conditional?: ConditionalOptions;
|
90
|
-
|
91
|
-
/**
|
92
|
-
* Allows customizable errors to be displayed for each component when an error occurs. This is an object with the following keys:
|
93
|
-
required
|
94
|
-
min
|
95
|
-
max
|
96
|
-
minLength
|
97
|
-
maxLength
|
98
|
-
invalid_email
|
99
|
-
invalid_date
|
100
|
-
pattern
|
101
|
-
custom
|
102
|
-
|
103
|
-
An object (keys listed above), values are the strings you wish to display. Each string has the {{ field }} to use within the string. Example.
|
104
|
-
{"required": "{{ field }} is required. Try again."}
|
105
|
-
*/
|
106
|
-
errors?: Object;
|
107
|
-
|
108
|
-
/**
|
109
|
-
* 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.
|
110
|
-
An array of instances of the Field Logic Schema
|
111
|
-
Fyi: https://github.com/formio/formio.js/wiki/Field-Logic-Schema
|
112
|
-
*/
|
113
|
-
logic?: Object[];
|
114
|
-
|
115
|
-
/**
|
116
|
-
* The custom CSS class to provide to this component.
|
117
|
-
*/
|
118
|
-
customClass?: string;
|
119
|
-
|
120
|
-
/**
|
121
|
-
* If true, will show label when component is in a datagrid.
|
122
|
-
*/
|
123
|
-
dataGridLabel?: boolean;
|
124
|
-
|
125
|
-
labelPosition?: 'top' | 'bottom' | 'left' | 'right';
|
126
|
-
labelWidth?: number;
|
127
|
-
labelMargin?: number;
|
128
|
-
description?: string;
|
129
|
-
errorLabel?: string;
|
130
|
-
tooltip?: string;
|
131
|
-
hideLabel?: boolean;
|
132
|
-
tabindex?: string;
|
133
|
-
disabled?: boolean;
|
134
|
-
autofocus?: boolean;
|
135
|
-
dbIndex?: boolean;
|
136
|
-
customDefaultValue?: any;
|
137
|
-
calculateValue?: any;
|
138
|
-
allowCalculateOverride?: boolean;
|
139
|
-
widget?: any; // Input widgets i.e. calendar widget
|
140
|
-
|
141
|
-
/**
|
142
|
-
* This will refresh this component when this field changes.
|
143
|
-
*/
|
144
|
-
refreshOn?: string;
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Determines if we should clear our value when a refresh occurs.
|
148
|
-
*/
|
149
|
-
clearOnRefresh?: boolean;
|
150
|
-
|
151
|
-
/**
|
152
|
-
* This will perform the validation on either "change" or "blur" of the input element.
|
153
|
-
*/
|
154
|
-
validateOn?: 'change' | 'blur';
|
155
|
-
}
|
156
|
-
|
157
|
-
export type ExtendedComponentSchema<T = any> = ComponentSchema<T> & { [key: string]: any };
|
158
|
-
|
159
|
-
export interface ElementInfo {
|
160
|
-
type: string;
|
161
|
-
component: ExtendedComponentSchema;
|
162
|
-
changeEvent: string;
|
163
|
-
attr: any;
|
164
|
-
content: string;
|
165
|
-
}
|
166
|
-
|
167
|
-
export interface BuilderInfo {
|
168
|
-
title: string;
|
169
|
-
group: string;
|
170
|
-
icon: string;
|
171
|
-
documentation?: string;
|
172
|
-
weight?: number;
|
173
|
-
schema?: ExtendedComponentSchema;
|
174
|
-
}
|
package/types/displays.d.ts
DELETED
package/types/element.d.ts
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
import { EventEmitter } from './eventEmitter.d';
|
2
|
-
|
3
|
-
export class Element {
|
4
|
-
options: Object;
|
5
|
-
id: string;
|
6
|
-
eventHandlers: any[];
|
7
|
-
i18next: any;
|
8
|
-
events: EventEmitter;
|
9
|
-
defaultMask: any;
|
10
|
-
inputMasks: any[];
|
11
|
-
constructor(options: any);
|
12
|
-
on(event: string, cb: Function, internal: boolean, once?: boolean): any;
|
13
|
-
once(event: string, cb: Function, internal: boolean): any;
|
14
|
-
onAny(cb: Function): any;
|
15
|
-
off(event: string): void;
|
16
|
-
emit(event: string, data: Object): void;
|
17
|
-
addEventListener(obj: HTMLElement, type: string, func: Function, persistent?: boolean): any;
|
18
|
-
removeEventListener(obj: Object, type: any): any;
|
19
|
-
removeEventListeners(): void;
|
20
|
-
removeAllEvents(includeExternal: boolean): void;
|
21
|
-
destroy(): void;
|
22
|
-
appendTo(element: HTMLElement, container: HTMLElement): any;
|
23
|
-
prependTo(element: HTMLElement, container: HTMLElement): any;
|
24
|
-
removeChildFrom(element: HTMLElement, container: HTMLElement): any;
|
25
|
-
ce(type: string, attr?: Object, children?: HTMLElement | string | Array<HTMLElement | string>): HTMLElement;
|
26
|
-
appendChild(element: any, child: any): any;
|
27
|
-
maskPlaceholder(mask: HTMLElement): string;
|
28
|
-
setInputMask(input: HTMLElement, inputMask: string, placeholder: boolean): void;
|
29
|
-
t(text: string, params?: Object): string;
|
30
|
-
text(text: string): Text;
|
31
|
-
attr(element: HTMLElement, attr: Object): void;
|
32
|
-
hasClass(element: HTMLElement | any, className: string): boolean;
|
33
|
-
addClass(element: HTMLElement, className: string): any;
|
34
|
-
removeClass(element: HTMLElement, className: string): any;
|
35
|
-
empty(element: HTMLElement): void;
|
36
|
-
evalContext(additional: any): any;
|
37
|
-
interpolate(string: any, data: any): any;
|
38
|
-
evaluate(
|
39
|
-
func: any,
|
40
|
-
args: { component: any; form: any; instance: any; row: any; data: any } | any,
|
41
|
-
ret: any,
|
42
|
-
tokenize?: any,
|
43
|
-
): any;
|
44
|
-
hook(...args: any[]): any;
|
45
|
-
}
|
package/types/eventEmitter.d.ts
DELETED
package/types/form.d.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Element } from './element';
|
2
|
-
|
3
|
-
export class Form extends Element {
|
4
|
-
form: any;
|
5
|
-
instance: any;
|
6
|
-
ready: Promise<any>;
|
7
|
-
constructor(...args: any[]);
|
8
|
-
create(display: 'wizard' | 'form' | 'pdf'): any;
|
9
|
-
setForm(formParam: any): any;
|
10
|
-
setDisplay(display: any): any;
|
11
|
-
empty(): void;
|
12
|
-
render(): any | Promise<any>;
|
13
|
-
static embed(element: any): any;
|
14
|
-
sanitize(dirty: string): any;
|
15
|
-
setContent(element: any, content: any): boolean;
|
16
|
-
build(): Promise<any>;
|
17
|
-
attach(element: any): any | Promise<any>;
|
18
|
-
}
|