@formio/js 5.0.0-dev.5659.a16afd8 → 5.0.0-dev.5661.22d0f16
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.form.js +2 -2
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +1 -1
- package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
- package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/_classes/component/fixtures/index.js +3 -1
- package/lib/cjs/components/day/Day.d.ts +1 -1
- package/lib/cjs/components/day/Day.js +1 -1
- package/lib/cjs/components/day/fixtures/index.d.ts +1 -2
- package/lib/cjs/components/day/fixtures/index.js +1 -3
- package/lib/mjs/components/_classes/component/Component.js +1 -1
- package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
- package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/_classes/component/fixtures/index.js +2 -1
- package/lib/mjs/components/day/Day.d.ts +1 -1
- package/lib/mjs/components/day/Day.js +1 -1
- package/lib/mjs/components/day/fixtures/index.d.ts +1 -2
- package/lib/mjs/components/day/fixtures/index.js +1 -2
- package/package.json +1 -1
- package/lib/cjs/components/day/fixtures/comp7.d.ts +0 -109
- package/lib/cjs/components/day/fixtures/comp7.js +0 -109
- package/lib/mjs/components/day/fixtures/comp7.d.ts +0 -109
- package/lib/mjs/components/day/fixtures/comp7.js +0 -107
|
@@ -2665,7 +2665,7 @@ class Component extends Element_1.default {
|
|
|
2665
2665
|
*/
|
|
2666
2666
|
resetValue() {
|
|
2667
2667
|
this.unset();
|
|
2668
|
-
this.setValue(this.emptyValue, {
|
|
2668
|
+
this.setValue(this.defaultValue || this.emptyValue, {
|
|
2669
2669
|
noUpdateEvent: true,
|
|
2670
2670
|
noValidate: true,
|
|
2671
2671
|
resetValue: true
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let components: ({
|
|
3
|
+
label: string;
|
|
4
|
+
applyMaskOn: string;
|
|
5
|
+
tableView: boolean;
|
|
6
|
+
key: string;
|
|
7
|
+
type: string;
|
|
8
|
+
input: boolean;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
mask?: undefined;
|
|
11
|
+
delimiter?: undefined;
|
|
12
|
+
requireDecimal?: undefined;
|
|
13
|
+
inputFormat?: undefined;
|
|
14
|
+
truncateMultipleSpaces?: undefined;
|
|
15
|
+
widget?: undefined;
|
|
16
|
+
data?: undefined;
|
|
17
|
+
action?: undefined;
|
|
18
|
+
showValidations?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
label: string;
|
|
21
|
+
applyMaskOn: string;
|
|
22
|
+
mask: boolean;
|
|
23
|
+
tableView: boolean;
|
|
24
|
+
delimiter: boolean;
|
|
25
|
+
requireDecimal: boolean;
|
|
26
|
+
inputFormat: string;
|
|
27
|
+
truncateMultipleSpaces: boolean;
|
|
28
|
+
key: string;
|
|
29
|
+
type: string;
|
|
30
|
+
input: boolean;
|
|
31
|
+
defaultValue: number;
|
|
32
|
+
widget?: undefined;
|
|
33
|
+
data?: undefined;
|
|
34
|
+
action?: undefined;
|
|
35
|
+
showValidations?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
label: string;
|
|
38
|
+
widget: string;
|
|
39
|
+
tableView: boolean;
|
|
40
|
+
data: {
|
|
41
|
+
values: {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
key: string;
|
|
47
|
+
type: string;
|
|
48
|
+
input: boolean;
|
|
49
|
+
defaultValue: string;
|
|
50
|
+
applyMaskOn?: undefined;
|
|
51
|
+
mask?: undefined;
|
|
52
|
+
delimiter?: undefined;
|
|
53
|
+
requireDecimal?: undefined;
|
|
54
|
+
inputFormat?: undefined;
|
|
55
|
+
truncateMultipleSpaces?: undefined;
|
|
56
|
+
action?: undefined;
|
|
57
|
+
showValidations?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
label: string;
|
|
60
|
+
action: string;
|
|
61
|
+
showValidations: boolean;
|
|
62
|
+
tableView: boolean;
|
|
63
|
+
key: string;
|
|
64
|
+
type: string;
|
|
65
|
+
input: boolean;
|
|
66
|
+
applyMaskOn?: undefined;
|
|
67
|
+
defaultValue?: undefined;
|
|
68
|
+
mask?: undefined;
|
|
69
|
+
delimiter?: undefined;
|
|
70
|
+
requireDecimal?: undefined;
|
|
71
|
+
inputFormat?: undefined;
|
|
72
|
+
truncateMultipleSpaces?: undefined;
|
|
73
|
+
widget?: undefined;
|
|
74
|
+
data?: undefined;
|
|
75
|
+
})[];
|
|
76
|
+
}
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
"components": [
|
|
5
|
+
{
|
|
6
|
+
"label": "Text Field",
|
|
7
|
+
"applyMaskOn": "change",
|
|
8
|
+
"tableView": true,
|
|
9
|
+
"key": "textField",
|
|
10
|
+
"type": "textfield",
|
|
11
|
+
"input": true,
|
|
12
|
+
"defaultValue": "test"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"label": "Number",
|
|
16
|
+
"applyMaskOn": "change",
|
|
17
|
+
"mask": false,
|
|
18
|
+
"tableView": false,
|
|
19
|
+
"delimiter": false,
|
|
20
|
+
"requireDecimal": false,
|
|
21
|
+
"inputFormat": "plain",
|
|
22
|
+
"truncateMultipleSpaces": false,
|
|
23
|
+
"key": "number",
|
|
24
|
+
"type": "number",
|
|
25
|
+
"input": true,
|
|
26
|
+
"defaultValue": 123
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"label": "Select",
|
|
30
|
+
"widget": "choicesjs",
|
|
31
|
+
"tableView": true,
|
|
32
|
+
"data": {
|
|
33
|
+
"values": [
|
|
34
|
+
{
|
|
35
|
+
"label": "a",
|
|
36
|
+
"value": "a"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"label": "b",
|
|
40
|
+
"value": "b"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"key": "select",
|
|
45
|
+
"type": "select",
|
|
46
|
+
"input": true,
|
|
47
|
+
"defaultValue": "a"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"label": "Reset",
|
|
51
|
+
"action": "reset",
|
|
52
|
+
"showValidations": false,
|
|
53
|
+
"tableView": false,
|
|
54
|
+
"key": "reset",
|
|
55
|
+
"type": "button",
|
|
56
|
+
"input": true
|
|
57
|
+
},
|
|
58
|
+
]
|
|
59
|
+
};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
|
6
|
+
exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
|
7
7
|
const comp1_1 = __importDefault(require("./comp1"));
|
|
8
8
|
exports.comp1 = comp1_1.default;
|
|
9
9
|
const comp2_1 = __importDefault(require("./comp2"));
|
|
@@ -14,3 +14,5 @@ const comp4_1 = __importDefault(require("./comp4"));
|
|
|
14
14
|
exports.comp4 = comp4_1.default;
|
|
15
15
|
const comp5_1 = __importDefault(require("./comp5"));
|
|
16
16
|
exports.comp5 = comp5_1.default;
|
|
17
|
+
const comp6_1 = __importDefault(require("./comp6"));
|
|
18
|
+
exports.comp6 = comp6_1.default;
|
|
@@ -124,7 +124,7 @@ class DayComponent extends Field_1.default {
|
|
|
124
124
|
id: `${this.component.key}-${name}`,
|
|
125
125
|
class: `form-control ${this.transform('class', `formio-day-component-${name}`)}`,
|
|
126
126
|
type: this.component.fields[name].type === 'select' ? 'select' : 'number',
|
|
127
|
-
placeholder: this.
|
|
127
|
+
placeholder: this.component.fields[name].placeholder,
|
|
128
128
|
step: 1,
|
|
129
129
|
min,
|
|
130
130
|
max,
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
|
|
7
7
|
const comp1_1 = __importDefault(require("./comp1"));
|
|
8
8
|
exports.comp1 = comp1_1.default;
|
|
9
9
|
const comp2_1 = __importDefault(require("./comp2"));
|
|
@@ -16,5 +16,3 @@ const comp5_1 = __importDefault(require("./comp5"));
|
|
|
16
16
|
exports.comp5 = comp5_1.default;
|
|
17
17
|
const comp6_1 = __importDefault(require("./comp6"));
|
|
18
18
|
exports.comp6 = comp6_1.default;
|
|
19
|
-
const comp7_1 = __importDefault(require("./comp7"));
|
|
20
|
-
exports.comp7 = comp7_1.default;
|
|
@@ -2634,7 +2634,7 @@ export default class Component extends Element {
|
|
|
2634
2634
|
*/
|
|
2635
2635
|
resetValue() {
|
|
2636
2636
|
this.unset();
|
|
2637
|
-
this.setValue(this.emptyValue, {
|
|
2637
|
+
this.setValue(this.defaultValue || this.emptyValue, {
|
|
2638
2638
|
noUpdateEvent: true,
|
|
2639
2639
|
noValidate: true,
|
|
2640
2640
|
resetValue: true
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let components: ({
|
|
3
|
+
label: string;
|
|
4
|
+
applyMaskOn: string;
|
|
5
|
+
tableView: boolean;
|
|
6
|
+
key: string;
|
|
7
|
+
type: string;
|
|
8
|
+
input: boolean;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
mask?: undefined;
|
|
11
|
+
delimiter?: undefined;
|
|
12
|
+
requireDecimal?: undefined;
|
|
13
|
+
inputFormat?: undefined;
|
|
14
|
+
truncateMultipleSpaces?: undefined;
|
|
15
|
+
widget?: undefined;
|
|
16
|
+
data?: undefined;
|
|
17
|
+
action?: undefined;
|
|
18
|
+
showValidations?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
label: string;
|
|
21
|
+
applyMaskOn: string;
|
|
22
|
+
mask: boolean;
|
|
23
|
+
tableView: boolean;
|
|
24
|
+
delimiter: boolean;
|
|
25
|
+
requireDecimal: boolean;
|
|
26
|
+
inputFormat: string;
|
|
27
|
+
truncateMultipleSpaces: boolean;
|
|
28
|
+
key: string;
|
|
29
|
+
type: string;
|
|
30
|
+
input: boolean;
|
|
31
|
+
defaultValue: number;
|
|
32
|
+
widget?: undefined;
|
|
33
|
+
data?: undefined;
|
|
34
|
+
action?: undefined;
|
|
35
|
+
showValidations?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
label: string;
|
|
38
|
+
widget: string;
|
|
39
|
+
tableView: boolean;
|
|
40
|
+
data: {
|
|
41
|
+
values: {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
key: string;
|
|
47
|
+
type: string;
|
|
48
|
+
input: boolean;
|
|
49
|
+
defaultValue: string;
|
|
50
|
+
applyMaskOn?: undefined;
|
|
51
|
+
mask?: undefined;
|
|
52
|
+
delimiter?: undefined;
|
|
53
|
+
requireDecimal?: undefined;
|
|
54
|
+
inputFormat?: undefined;
|
|
55
|
+
truncateMultipleSpaces?: undefined;
|
|
56
|
+
action?: undefined;
|
|
57
|
+
showValidations?: undefined;
|
|
58
|
+
} | {
|
|
59
|
+
label: string;
|
|
60
|
+
action: string;
|
|
61
|
+
showValidations: boolean;
|
|
62
|
+
tableView: boolean;
|
|
63
|
+
key: string;
|
|
64
|
+
type: string;
|
|
65
|
+
input: boolean;
|
|
66
|
+
applyMaskOn?: undefined;
|
|
67
|
+
defaultValue?: undefined;
|
|
68
|
+
mask?: undefined;
|
|
69
|
+
delimiter?: undefined;
|
|
70
|
+
requireDecimal?: undefined;
|
|
71
|
+
inputFormat?: undefined;
|
|
72
|
+
truncateMultipleSpaces?: undefined;
|
|
73
|
+
widget?: undefined;
|
|
74
|
+
data?: undefined;
|
|
75
|
+
})[];
|
|
76
|
+
}
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"components": [
|
|
3
|
+
{
|
|
4
|
+
"label": "Text Field",
|
|
5
|
+
"applyMaskOn": "change",
|
|
6
|
+
"tableView": true,
|
|
7
|
+
"key": "textField",
|
|
8
|
+
"type": "textfield",
|
|
9
|
+
"input": true,
|
|
10
|
+
"defaultValue": "test"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"label": "Number",
|
|
14
|
+
"applyMaskOn": "change",
|
|
15
|
+
"mask": false,
|
|
16
|
+
"tableView": false,
|
|
17
|
+
"delimiter": false,
|
|
18
|
+
"requireDecimal": false,
|
|
19
|
+
"inputFormat": "plain",
|
|
20
|
+
"truncateMultipleSpaces": false,
|
|
21
|
+
"key": "number",
|
|
22
|
+
"type": "number",
|
|
23
|
+
"input": true,
|
|
24
|
+
"defaultValue": 123
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "Select",
|
|
28
|
+
"widget": "choicesjs",
|
|
29
|
+
"tableView": true,
|
|
30
|
+
"data": {
|
|
31
|
+
"values": [
|
|
32
|
+
{
|
|
33
|
+
"label": "a",
|
|
34
|
+
"value": "a"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "b",
|
|
38
|
+
"value": "b"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"key": "select",
|
|
43
|
+
"type": "select",
|
|
44
|
+
"input": true,
|
|
45
|
+
"defaultValue": "a"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"label": "Reset",
|
|
49
|
+
"action": "reset",
|
|
50
|
+
"showValidations": false,
|
|
51
|
+
"tableView": false,
|
|
52
|
+
"key": "reset",
|
|
53
|
+
"type": "button",
|
|
54
|
+
"input": true
|
|
55
|
+
},
|
|
56
|
+
]
|
|
57
|
+
};
|
|
@@ -122,7 +122,7 @@ export default class DayComponent extends Field {
|
|
|
122
122
|
id: `${this.component.key}-${name}`,
|
|
123
123
|
class: `form-control ${this.transform('class', `formio-day-component-${name}`)}`,
|
|
124
124
|
type: this.component.fields[name].type === 'select' ? 'select' : 'number',
|
|
125
|
-
placeholder: this.
|
|
125
|
+
placeholder: this.component.fields[name].placeholder,
|
|
126
126
|
step: 1,
|
|
127
127
|
min,
|
|
128
128
|
max,
|
package/package.json
CHANGED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
let components: ({
|
|
3
|
-
type: string;
|
|
4
|
-
key: string;
|
|
5
|
-
label: string;
|
|
6
|
-
placeholder: string;
|
|
7
|
-
input: boolean;
|
|
8
|
-
applyMaskOn?: undefined;
|
|
9
|
-
tableView?: undefined;
|
|
10
|
-
hideInputLabels?: undefined;
|
|
11
|
-
inputsLabelPosition?: undefined;
|
|
12
|
-
useLocaleSettings?: undefined;
|
|
13
|
-
fields?: undefined;
|
|
14
|
-
defaultValue?: undefined;
|
|
15
|
-
values?: undefined;
|
|
16
|
-
questions?: undefined;
|
|
17
|
-
action?: undefined;
|
|
18
|
-
theme?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
label: string;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
applyMaskOn: string;
|
|
23
|
-
tableView: boolean;
|
|
24
|
-
key: string;
|
|
25
|
-
type: string;
|
|
26
|
-
input: boolean;
|
|
27
|
-
hideInputLabels?: undefined;
|
|
28
|
-
inputsLabelPosition?: undefined;
|
|
29
|
-
useLocaleSettings?: undefined;
|
|
30
|
-
fields?: undefined;
|
|
31
|
-
defaultValue?: undefined;
|
|
32
|
-
values?: undefined;
|
|
33
|
-
questions?: undefined;
|
|
34
|
-
action?: undefined;
|
|
35
|
-
theme?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
label: string;
|
|
38
|
-
hideInputLabels: boolean;
|
|
39
|
-
inputsLabelPosition: string;
|
|
40
|
-
useLocaleSettings: boolean;
|
|
41
|
-
tableView: boolean;
|
|
42
|
-
fields: {
|
|
43
|
-
day: {
|
|
44
|
-
placeholder: string;
|
|
45
|
-
hide: boolean;
|
|
46
|
-
};
|
|
47
|
-
month: {
|
|
48
|
-
type: string;
|
|
49
|
-
placeholder: string;
|
|
50
|
-
hide: boolean;
|
|
51
|
-
};
|
|
52
|
-
year: {
|
|
53
|
-
placeholder: string;
|
|
54
|
-
hide: boolean;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
key: string;
|
|
58
|
-
type: string;
|
|
59
|
-
input: boolean;
|
|
60
|
-
defaultValue: string;
|
|
61
|
-
placeholder?: undefined;
|
|
62
|
-
applyMaskOn?: undefined;
|
|
63
|
-
values?: undefined;
|
|
64
|
-
questions?: undefined;
|
|
65
|
-
action?: undefined;
|
|
66
|
-
theme?: undefined;
|
|
67
|
-
} | {
|
|
68
|
-
type: string;
|
|
69
|
-
key: string;
|
|
70
|
-
label: string;
|
|
71
|
-
values: {
|
|
72
|
-
label: string;
|
|
73
|
-
value: string;
|
|
74
|
-
}[];
|
|
75
|
-
questions: {
|
|
76
|
-
label: string;
|
|
77
|
-
value: string;
|
|
78
|
-
}[];
|
|
79
|
-
placeholder?: undefined;
|
|
80
|
-
input?: undefined;
|
|
81
|
-
applyMaskOn?: undefined;
|
|
82
|
-
tableView?: undefined;
|
|
83
|
-
hideInputLabels?: undefined;
|
|
84
|
-
inputsLabelPosition?: undefined;
|
|
85
|
-
useLocaleSettings?: undefined;
|
|
86
|
-
fields?: undefined;
|
|
87
|
-
defaultValue?: undefined;
|
|
88
|
-
action?: undefined;
|
|
89
|
-
theme?: undefined;
|
|
90
|
-
} | {
|
|
91
|
-
type: string;
|
|
92
|
-
action: string;
|
|
93
|
-
label: string;
|
|
94
|
-
theme: string;
|
|
95
|
-
key?: undefined;
|
|
96
|
-
placeholder?: undefined;
|
|
97
|
-
input?: undefined;
|
|
98
|
-
applyMaskOn?: undefined;
|
|
99
|
-
tableView?: undefined;
|
|
100
|
-
hideInputLabels?: undefined;
|
|
101
|
-
inputsLabelPosition?: undefined;
|
|
102
|
-
useLocaleSettings?: undefined;
|
|
103
|
-
fields?: undefined;
|
|
104
|
-
defaultValue?: undefined;
|
|
105
|
-
values?: undefined;
|
|
106
|
-
questions?: undefined;
|
|
107
|
-
})[];
|
|
108
|
-
}
|
|
109
|
-
export default _default;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = {
|
|
4
|
-
components: [
|
|
5
|
-
{
|
|
6
|
-
type: 'textfield',
|
|
7
|
-
key: 'firstName',
|
|
8
|
-
label: 'First Name',
|
|
9
|
-
placeholder: 'Enter your first name',
|
|
10
|
-
input: true
|
|
11
|
-
}, {
|
|
12
|
-
"label": "Day",
|
|
13
|
-
"placeholder": "Day",
|
|
14
|
-
"applyMaskOn": "change",
|
|
15
|
-
"tableView": true,
|
|
16
|
-
"key": "day2",
|
|
17
|
-
"type": "textfield",
|
|
18
|
-
"input": true
|
|
19
|
-
}, {
|
|
20
|
-
"label": "Month",
|
|
21
|
-
"placeholder": "Month",
|
|
22
|
-
"applyMaskOn": "change",
|
|
23
|
-
"tableView": true,
|
|
24
|
-
"key": "month2",
|
|
25
|
-
"type": "textfield",
|
|
26
|
-
"input": true
|
|
27
|
-
}, {
|
|
28
|
-
"label": "Year",
|
|
29
|
-
"placeholder": "Year",
|
|
30
|
-
"applyMaskOn": "change",
|
|
31
|
-
"tableView": true,
|
|
32
|
-
"key": "year2",
|
|
33
|
-
"type": "textfield",
|
|
34
|
-
"input": true
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"label": "Day",
|
|
38
|
-
"hideInputLabels": false,
|
|
39
|
-
"inputsLabelPosition": "top",
|
|
40
|
-
"useLocaleSettings": false,
|
|
41
|
-
"tableView": false,
|
|
42
|
-
"fields": {
|
|
43
|
-
"day": {
|
|
44
|
-
"placeholder": "Day",
|
|
45
|
-
"hide": false
|
|
46
|
-
},
|
|
47
|
-
"month": {
|
|
48
|
-
"type": "number",
|
|
49
|
-
"placeholder": "Month",
|
|
50
|
-
"hide": false
|
|
51
|
-
},
|
|
52
|
-
"year": {
|
|
53
|
-
"placeholder": "Year",
|
|
54
|
-
"hide": false
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"key": "day",
|
|
58
|
-
"type": "day",
|
|
59
|
-
"input": true,
|
|
60
|
-
"defaultValue": "00/00/0000"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: 'textfield',
|
|
64
|
-
key: 'lastName',
|
|
65
|
-
label: 'Last Name',
|
|
66
|
-
placeholder: 'Enter your last name',
|
|
67
|
-
input: true
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
type: 'survey',
|
|
71
|
-
key: 'questions',
|
|
72
|
-
label: 'Survey',
|
|
73
|
-
values: [
|
|
74
|
-
{
|
|
75
|
-
label: 'Great',
|
|
76
|
-
value: 'great'
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: 'Good',
|
|
80
|
-
value: 'good'
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: 'Poor',
|
|
84
|
-
value: 'poor'
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
questions: [
|
|
88
|
-
{
|
|
89
|
-
label: 'How would you rate the Form.io platform?',
|
|
90
|
-
value: 'howWouldYouRateTheFormIoPlatform'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: 'How was Customer Support?',
|
|
94
|
-
value: 'howWasCustomerSupport'
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
label: 'Overall Experience?',
|
|
98
|
-
value: 'overallExperience'
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
type: 'button',
|
|
104
|
-
action: 'submit',
|
|
105
|
-
label: 'Submit',
|
|
106
|
-
theme: 'primary'
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
};
|