@formio/js 5.0.0-dev.5794.12ca15f → 5.0.0-dev.5796.ee2613b
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 +5 -5
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +6 -6
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Webform.js +2 -2
- package/lib/cjs/components/_classes/component/Component.d.ts +1 -1
- package/lib/cjs/components/_classes/component/Component.js +7 -6
- package/lib/cjs/components/day/Day.d.ts +0 -1
- package/lib/cjs/components/editgrid/fixtures/index.d.ts +7 -7
- package/lib/cjs/components/editgrid/fixtures/index.js +1 -1
- package/lib/cjs/components/radio/Radio.js +1 -1
- package/lib/cjs/components/select/Select.js +4 -1
- package/lib/cjs/components/select/editForm/Select.edit.validation.js +2 -1
- package/lib/cjs/components/select/fixtures/comp25.d.ts +43 -28
- package/lib/cjs/components/select/fixtures/comp25.js +56 -49
- package/lib/cjs/components/select/fixtures/comp26.d.ts +44 -0
- package/lib/cjs/components/select/fixtures/comp26.js +59 -0
- package/lib/cjs/components/select/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/select/fixtures/index.js +3 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.js +1 -1
- package/lib/mjs/Webform.js +6 -2
- package/lib/mjs/components/_classes/component/Component.d.ts +1 -1
- package/lib/mjs/components/_classes/component/Component.js +4 -3
- package/lib/mjs/components/day/Day.d.ts +0 -1
- package/lib/mjs/components/editgrid/fixtures/index.d.ts +7 -7
- package/lib/mjs/components/editgrid/fixtures/index.js +1 -1
- package/lib/mjs/components/radio/Radio.js +1 -1
- package/lib/mjs/components/select/Select.js +4 -1
- package/lib/mjs/components/select/editForm/Select.edit.validation.js +2 -1
- package/lib/mjs/components/select/fixtures/comp25.d.ts +43 -28
- package/lib/mjs/components/select/fixtures/comp25.js +56 -49
- package/lib/mjs/components/select/fixtures/comp26.d.ts +44 -0
- package/lib/mjs/components/select/fixtures/comp26.js +57 -0
- package/lib/mjs/components/select/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/select/fixtures/index.js +2 -1
- package/lib/mjs/components/selectboxes/SelectBoxes.js +1 -1
- package/package.json +1 -1
|
@@ -1,44 +1,59 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
let title: string;
|
|
3
|
-
let name: string;
|
|
4
|
-
let path: string;
|
|
5
|
-
let type: string;
|
|
6
|
-
let display: string;
|
|
7
2
|
let components: ({
|
|
8
3
|
label: string;
|
|
9
|
-
widget: string;
|
|
10
4
|
tableView: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}[];
|
|
16
|
-
};
|
|
17
|
-
dataType: string;
|
|
5
|
+
modal: boolean;
|
|
6
|
+
rowDrafts: boolean;
|
|
18
7
|
key: string;
|
|
19
8
|
type: string;
|
|
9
|
+
displayAsTable: boolean;
|
|
20
10
|
input: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
components: ({
|
|
12
|
+
label: string;
|
|
13
|
+
widget: string;
|
|
14
|
+
tableView: boolean;
|
|
15
|
+
data: {
|
|
16
|
+
values: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
validate: {
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
key: string;
|
|
25
|
+
type: string;
|
|
26
|
+
input: boolean;
|
|
27
|
+
applyMaskOn?: undefined;
|
|
28
|
+
validateWhenHidden?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
label: string;
|
|
31
|
+
applyMaskOn: string;
|
|
32
|
+
tableView: boolean;
|
|
33
|
+
validate: {
|
|
34
|
+
required: boolean;
|
|
35
|
+
};
|
|
36
|
+
validateWhenHidden: boolean;
|
|
37
|
+
key: string;
|
|
38
|
+
type: string;
|
|
39
|
+
input: boolean;
|
|
40
|
+
widget?: undefined;
|
|
41
|
+
data?: undefined;
|
|
42
|
+
})[];
|
|
43
|
+
showValidations?: undefined;
|
|
44
|
+
saveOnEnter?: undefined;
|
|
23
45
|
} | {
|
|
24
46
|
label: string;
|
|
25
|
-
|
|
47
|
+
showValidations: boolean;
|
|
26
48
|
tableView: boolean;
|
|
27
49
|
key: string;
|
|
28
50
|
type: string;
|
|
29
51
|
input: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
operator: string;
|
|
36
|
-
value: number;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
widget?: undefined;
|
|
40
|
-
data?: undefined;
|
|
41
|
-
dataType?: undefined;
|
|
52
|
+
saveOnEnter: boolean;
|
|
53
|
+
modal?: undefined;
|
|
54
|
+
rowDrafts?: undefined;
|
|
55
|
+
displayAsTable?: undefined;
|
|
56
|
+
components?: undefined;
|
|
42
57
|
})[];
|
|
43
58
|
}
|
|
44
59
|
export default _default;
|
|
@@ -1,57 +1,64 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
name: 'fio8072',
|
|
4
|
-
path: 'fio8072',
|
|
5
|
-
type: 'form',
|
|
6
|
-
display: 'form',
|
|
7
|
-
components: [
|
|
2
|
+
"components": [
|
|
8
3
|
{
|
|
9
|
-
label:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
"label": "Edit Grid",
|
|
5
|
+
"tableView": false,
|
|
6
|
+
"modal": true,
|
|
7
|
+
"rowDrafts": true,
|
|
8
|
+
"key": "editGrid",
|
|
9
|
+
"type": "editgrid",
|
|
10
|
+
"displayAsTable": false,
|
|
11
|
+
"input": true,
|
|
12
|
+
"components": [
|
|
13
|
+
{
|
|
14
|
+
"label": "Select",
|
|
15
|
+
"widget": "choicesjs",
|
|
16
|
+
"tableView": true,
|
|
17
|
+
"data": {
|
|
18
|
+
"values": [
|
|
19
|
+
{
|
|
20
|
+
"label": "a",
|
|
21
|
+
"value": "a"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"label": "b",
|
|
25
|
+
"value": "b"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "c",
|
|
29
|
+
"value": "c"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
17
32
|
},
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
value: '2',
|
|
33
|
+
"validate": {
|
|
34
|
+
"required": true
|
|
21
35
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
"key": "select",
|
|
37
|
+
"type": "select",
|
|
38
|
+
"input": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"label": "Text Field",
|
|
42
|
+
"applyMaskOn": "change",
|
|
43
|
+
"tableView": true,
|
|
44
|
+
"validate": {
|
|
45
|
+
"required": true
|
|
25
46
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
dataType: 'number',
|
|
33
|
-
key: 'select',
|
|
34
|
-
type: 'select',
|
|
35
|
-
input: true,
|
|
47
|
+
"validateWhenHidden": false,
|
|
48
|
+
"key": "textField",
|
|
49
|
+
"type": "textfield",
|
|
50
|
+
"input": true
|
|
51
|
+
}
|
|
52
|
+
]
|
|
36
53
|
},
|
|
37
54
|
{
|
|
38
|
-
label:
|
|
39
|
-
|
|
40
|
-
tableView:
|
|
41
|
-
key:
|
|
42
|
-
type:
|
|
43
|
-
input: true,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
conditions: [
|
|
48
|
-
{
|
|
49
|
-
component: 'select',
|
|
50
|
-
operator: 'lessThan',
|
|
51
|
-
value: 5,
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
],
|
|
55
|
+
"label": "Submit",
|
|
56
|
+
"showValidations": false,
|
|
57
|
+
"tableView": false,
|
|
58
|
+
"key": "submit",
|
|
59
|
+
"type": "button",
|
|
60
|
+
"input": true,
|
|
61
|
+
"saveOnEnter": false
|
|
62
|
+
}
|
|
63
|
+
]
|
|
57
64
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
let name: string;
|
|
4
|
+
let path: string;
|
|
5
|
+
let type: string;
|
|
6
|
+
let display: string;
|
|
7
|
+
let components: ({
|
|
8
|
+
label: string;
|
|
9
|
+
widget: string;
|
|
10
|
+
tableView: boolean;
|
|
11
|
+
data: {
|
|
12
|
+
values: {
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
dataType: string;
|
|
18
|
+
key: string;
|
|
19
|
+
type: string;
|
|
20
|
+
input: boolean;
|
|
21
|
+
applyMaskOn?: undefined;
|
|
22
|
+
conditional?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
label: string;
|
|
25
|
+
applyMaskOn: string;
|
|
26
|
+
tableView: boolean;
|
|
27
|
+
key: string;
|
|
28
|
+
type: string;
|
|
29
|
+
input: boolean;
|
|
30
|
+
conditional: {
|
|
31
|
+
show: boolean;
|
|
32
|
+
conjunction: string;
|
|
33
|
+
conditions: {
|
|
34
|
+
component: string;
|
|
35
|
+
operator: string;
|
|
36
|
+
value: number;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
widget?: undefined;
|
|
40
|
+
data?: undefined;
|
|
41
|
+
dataType?: undefined;
|
|
42
|
+
})[];
|
|
43
|
+
}
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'FIO-8072',
|
|
3
|
+
name: 'fio8072',
|
|
4
|
+
path: 'fio8072',
|
|
5
|
+
type: 'form',
|
|
6
|
+
display: 'form',
|
|
7
|
+
components: [
|
|
8
|
+
{
|
|
9
|
+
label: 'Select',
|
|
10
|
+
widget: 'choicesjs',
|
|
11
|
+
tableView: true,
|
|
12
|
+
data: {
|
|
13
|
+
values: [
|
|
14
|
+
{
|
|
15
|
+
label: 'A',
|
|
16
|
+
value: '1',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: 'B',
|
|
20
|
+
value: '2',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: 'C',
|
|
24
|
+
value: '10',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'D',
|
|
28
|
+
value: '1d',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
dataType: 'number',
|
|
33
|
+
key: 'select',
|
|
34
|
+
type: 'select',
|
|
35
|
+
input: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Text Field',
|
|
39
|
+
applyMaskOn: 'change',
|
|
40
|
+
tableView: true,
|
|
41
|
+
key: 'textField',
|
|
42
|
+
type: 'textfield',
|
|
43
|
+
input: true,
|
|
44
|
+
conditional: {
|
|
45
|
+
show: true,
|
|
46
|
+
conjunction: 'all',
|
|
47
|
+
conditions: [
|
|
48
|
+
{
|
|
49
|
+
component: 'select',
|
|
50
|
+
operator: 'lessThan',
|
|
51
|
+
value: 5,
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
};
|
|
@@ -22,5 +22,6 @@ import comp22 from './comp22';
|
|
|
22
22
|
import comp23 from './comp23';
|
|
23
23
|
import comp24 from './comp24';
|
|
24
24
|
import comp25 from './comp25';
|
|
25
|
-
|
|
25
|
+
import comp26 from './comp26';
|
|
26
|
+
export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22, comp23, comp24, comp25, comp26 };
|
|
26
27
|
export { multiSelect, multiSelectOptions } from "./comp3";
|
|
@@ -23,4 +23,5 @@ import comp22 from './comp22';
|
|
|
23
23
|
import comp23 from './comp23';
|
|
24
24
|
import comp24 from './comp24';
|
|
25
25
|
import comp25 from './comp25';
|
|
26
|
-
|
|
26
|
+
import comp26 from './comp26';
|
|
27
|
+
export { comp1, comp2, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, comp20, comp21, comp22, comp23, comp24, comp25, comp26 };
|
|
@@ -256,7 +256,7 @@ export default class SelectBoxesComponent extends RadioComponent {
|
|
|
256
256
|
if (!boolValue(setting) || !value) {
|
|
257
257
|
return true;
|
|
258
258
|
}
|
|
259
|
-
const values = this.component.values;
|
|
259
|
+
const values = this.component.dataSrc === 'values' ? this.component.values : this.loadedOptions;
|
|
260
260
|
const availableValueKeys = (values || []).map(({ value: optionValue }) => optionValue);
|
|
261
261
|
const valueKeys = Object.keys(value);
|
|
262
262
|
return valueKeys.every((key) => availableValueKeys.includes(key));
|