@formio/js 5.0.0-rc.39 → 5.0.0-rc.41
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/formio.builder.css +2 -2
- package/dist/formio.builder.min.css +1 -1
- 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.css +2 -2
- package/dist/formio.form.js +5373 -2370
- package/dist/formio.form.min.css +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +25 -7
- package/dist/formio.full.css +2 -2
- package/dist/formio.full.js +5715 -2704
- package/dist/formio.full.min.css +1 -1
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +25 -7
- package/dist/formio.js +143 -61
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +13 -1
- package/dist/formio.utils.js +149 -96
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +4 -4
- package/lib/cjs/Element.js +1 -0
- package/lib/cjs/Embed.js +121 -121
- package/lib/cjs/Webform.js +36 -13
- package/lib/cjs/WebformBuilder.js +4 -2
- package/lib/cjs/Wizard.js +6 -1
- package/lib/cjs/components/_classes/component/Component.js +33 -22
- package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +1 -1
- package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +8 -0
- package/lib/cjs/components/_classes/component/fixtures/comp5.js +2 -2
- package/lib/cjs/components/_classes/multivalue/Multivalue.js +2 -2
- package/lib/cjs/components/_classes/nested/NestedComponent.js +2 -2
- package/lib/cjs/components/address/fixtures/comp3.js +1 -1
- package/lib/cjs/components/builder.js +0 -2
- package/lib/cjs/components/button/Button.js +7 -1
- package/lib/cjs/components/datagrid/DataGrid.js +16 -3
- package/lib/cjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +68 -0
- package/lib/cjs/components/datagrid/fixtures/comp6.js +1 -1
- package/lib/cjs/components/datagrid/fixtures/index.js +5 -1
- package/lib/cjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +104 -0
- package/lib/cjs/components/editgrid/EditGrid.js +11 -4
- package/lib/cjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +923 -0
- package/lib/cjs/components/file/File.js +2 -2
- package/lib/cjs/components/file/editForm/File.edit.file.js +1 -1
- package/lib/cjs/components/form/Form.js +1 -1
- package/lib/cjs/components/html/HTML.js +11 -2
- package/lib/cjs/components/html/fixtures/index.js +1 -3
- package/lib/cjs/components/index.js +0 -2
- package/lib/cjs/components/recaptcha/ReCaptcha.js +46 -46
- package/lib/cjs/components/select/Select.js +3 -1
- package/lib/cjs/components/select/fixtures/comp20.js +46 -0
- package/lib/cjs/components/select/fixtures/comp21.js +106 -0
- package/lib/cjs/components/select/fixtures/index.js +5 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.js +1 -1
- package/lib/cjs/components/textfield/TextField.js +63 -3
- package/lib/cjs/providers/storage/s3.js +5 -3
- package/lib/cjs/providers/storage/uploadAdapter.js +1 -1
- package/lib/cjs/providers/storage/url.js +19 -13
- package/lib/cjs/templates/Templates.js +4 -4
- package/lib/cjs/translations/en.js +10 -6
- package/lib/cjs/utils/Evaluator.js +1 -1
- package/lib/cjs/utils/conditionOperators/IsEqualTo.js +2 -2
- package/lib/cjs/utils/formUtils.js +3 -3
- package/lib/cjs/utils/utils.js +4 -19
- package/lib/cjs/widgets/CalendarWidget.js +1 -1
- package/lib/mjs/Element.js +1 -0
- package/lib/mjs/Embed.js +1 -2
- package/lib/mjs/FormBuilder.js +1 -2
- package/lib/mjs/Webform.js +36 -13
- package/lib/mjs/WebformBuilder.js +4 -2
- package/lib/mjs/Wizard.js +6 -1
- package/lib/mjs/builders/Builders.js +1 -2
- package/lib/mjs/components/Components.js +1 -2
- package/lib/mjs/components/_classes/component/Component.js +33 -24
- package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +1 -1
- package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +8 -0
- package/lib/mjs/components/_classes/component/fixtures/comp5.js +2 -2
- package/lib/mjs/components/_classes/multivalue/Multivalue.js +2 -2
- package/lib/mjs/components/_classes/nested/NestedComponent.js +2 -2
- package/lib/mjs/components/address/fixtures/comp3.js +1 -1
- package/lib/mjs/components/builder.js +0 -2
- package/lib/mjs/components/button/Button.js +7 -1
- package/lib/mjs/components/datagrid/DataGrid.js +15 -3
- package/lib/mjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +66 -0
- package/lib/mjs/components/datagrid/fixtures/comp6.js +1 -1
- package/lib/mjs/components/datagrid/fixtures/index.js +3 -1
- package/lib/mjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +102 -0
- package/lib/mjs/components/editgrid/EditGrid.js +11 -4
- package/lib/mjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +921 -0
- package/lib/mjs/components/file/File.js +2 -2
- package/lib/mjs/components/file/editForm/File.edit.file.js +1 -1
- package/lib/mjs/components/form/Form.js +1 -1
- package/lib/mjs/components/html/HTML.js +10 -2
- package/lib/mjs/components/html/fixtures/index.js +1 -2
- package/lib/mjs/components/index.js +0 -2
- package/lib/mjs/components/recaptcha/ReCaptcha.js +32 -43
- package/lib/mjs/components/select/Select.js +3 -1
- package/lib/mjs/components/select/fixtures/comp20.js +44 -0
- package/lib/mjs/components/select/fixtures/comp21.js +104 -0
- package/lib/mjs/components/select/fixtures/index.js +3 -1
- package/lib/mjs/components/selectboxes/SelectBoxes.js +1 -1
- package/lib/mjs/components/textfield/TextField.js +62 -3
- package/lib/mjs/displays/Displays.js +1 -2
- package/lib/mjs/licenses/Licenses.js +1 -2
- package/lib/mjs/providers/Providers.js +1 -2
- package/lib/mjs/providers/storage/s3.js +5 -3
- package/lib/mjs/providers/storage/uploadAdapter.js +1 -1
- package/lib/mjs/providers/storage/url.js +19 -13
- package/lib/mjs/templates/Templates.js +1 -1
- package/lib/mjs/translations/en.js +10 -6
- package/lib/mjs/utils/Evaluator.js +1 -1
- package/lib/mjs/utils/conditionOperators/IsEqualTo.js +2 -2
- package/lib/mjs/utils/formUtils.js +3 -3
- package/lib/mjs/utils/utils.js +2 -16
- package/lib/mjs/widgets/CalendarWidget.js +1 -1
- package/package.json +23 -22
- package/lib/cjs/components/html/fixtures/comp3.js +0 -31
- package/lib/cjs/components/resource/Resource.form.js +0 -16
- package/lib/cjs/components/resource/Resource.js +0 -39
- package/lib/cjs/components/resource/editForm/Resource.edit.display.js +0 -102
- package/lib/cjs/components/resource/fixtures/comp1.js +0 -30
- package/lib/cjs/components/resource/fixtures/comp2.js +0 -31
- package/lib/cjs/components/resource/fixtures/index.js +0 -10
- package/lib/mjs/components/html/fixtures/comp3.js +0 -29
- package/lib/mjs/components/resource/Resource.form.js +0 -10
- package/lib/mjs/components/resource/Resource.js +0 -33
- package/lib/mjs/components/resource/editForm/Resource.edit.display.js +0 -100
- package/lib/mjs/components/resource/fixtures/comp1.js +0 -28
- package/lib/mjs/components/resource/fixtures/comp2.js +0 -29
- package/lib/mjs/components/resource/fixtures/index.js +0 -3
@@ -1,100 +0,0 @@
|
|
1
|
-
export default [
|
2
|
-
{
|
3
|
-
key: 'resourceInfo',
|
4
|
-
weight: -10,
|
5
|
-
type: 'htmlelement',
|
6
|
-
tag: 'div',
|
7
|
-
className: 'alert alert-danger',
|
8
|
-
content: 'This component has been deprecated and will be removed in a future version of Formio.js.',
|
9
|
-
},
|
10
|
-
{
|
11
|
-
type: 'select',
|
12
|
-
input: true,
|
13
|
-
dataSrc: 'url',
|
14
|
-
data: {
|
15
|
-
url: '/form?type=resource&limit=1000000&select=_id,title',
|
16
|
-
},
|
17
|
-
authenticate: true,
|
18
|
-
template: '<span>{{ item.title }}</span>',
|
19
|
-
valueProperty: '_id',
|
20
|
-
label: 'Resource',
|
21
|
-
key: 'resource',
|
22
|
-
weight: 50,
|
23
|
-
tooltip: 'The resource to be used with this field.',
|
24
|
-
},
|
25
|
-
{
|
26
|
-
type: 'tags',
|
27
|
-
input: true,
|
28
|
-
key: 'selectFields',
|
29
|
-
label: 'Select Fields',
|
30
|
-
tooltip: 'The properties on the resource to return as part of the options. If left blank, all properties will be returned.',
|
31
|
-
placeholder: 'Enter the fields to select.',
|
32
|
-
weight: 51,
|
33
|
-
},
|
34
|
-
{
|
35
|
-
type: 'tags',
|
36
|
-
input: true,
|
37
|
-
key: 'searchFields',
|
38
|
-
label: 'Search Fields',
|
39
|
-
tooltip: 'A list of search filters based on the fields of the resource. See the <a target=\'_blank\' href=\'https://github.com/travist/resourcejs#filtering-the-results\'>Resource.js documentation</a> for the format of these filters.',
|
40
|
-
placeholder: 'The fields to query on the server',
|
41
|
-
weight: 52,
|
42
|
-
},
|
43
|
-
{
|
44
|
-
type: 'textfield',
|
45
|
-
input: true,
|
46
|
-
key: 'filter',
|
47
|
-
label: 'Filter Query',
|
48
|
-
weight: 53,
|
49
|
-
description: 'The filter query for results.',
|
50
|
-
tooltip: 'Use this to provide additional filtering using query parameters.',
|
51
|
-
},
|
52
|
-
{
|
53
|
-
type: 'textfield',
|
54
|
-
input: true,
|
55
|
-
key: 'sort',
|
56
|
-
label: 'Sort Query',
|
57
|
-
weight: 53,
|
58
|
-
description: 'The sort query for results',
|
59
|
-
tooltip: 'Use this to provide additional sorting using query parameters',
|
60
|
-
},
|
61
|
-
{
|
62
|
-
type: 'textarea',
|
63
|
-
input: true,
|
64
|
-
key: 'template',
|
65
|
-
label: 'Item Template',
|
66
|
-
editor: 'ace',
|
67
|
-
as: 'html',
|
68
|
-
rows: 3,
|
69
|
-
weight: 53,
|
70
|
-
tooltip: 'The HTML template for the result data items.',
|
71
|
-
},
|
72
|
-
{
|
73
|
-
type: 'checkbox',
|
74
|
-
input: true,
|
75
|
-
weight: 54,
|
76
|
-
key: 'addResource',
|
77
|
-
label: 'Add Resource',
|
78
|
-
tooltip: 'Allows to create a new resource while entering a submission.',
|
79
|
-
conditional: {
|
80
|
-
json: { '===': [{ var: 'data.dataSrc' }, 'resource'] },
|
81
|
-
},
|
82
|
-
},
|
83
|
-
{
|
84
|
-
type: 'textfield',
|
85
|
-
label: 'Add Resource Label',
|
86
|
-
key: 'addResourceLabel',
|
87
|
-
tooltip: 'Set the text of the Add Resource button.',
|
88
|
-
placeholder: 'Add Resource',
|
89
|
-
weight: 55,
|
90
|
-
input: true,
|
91
|
-
conditional: {
|
92
|
-
json: {
|
93
|
-
and: [
|
94
|
-
{ '===': [{ var: 'data.dataSrc' }, 'resource'] },
|
95
|
-
{ '!!': { var: 'data.addResource' } },
|
96
|
-
],
|
97
|
-
},
|
98
|
-
},
|
99
|
-
},
|
100
|
-
];
|
@@ -1,28 +0,0 @@
|
|
1
|
-
export default {
|
2
|
-
'conditional': {
|
3
|
-
'eq': '',
|
4
|
-
'when': null,
|
5
|
-
'show': ''
|
6
|
-
},
|
7
|
-
'tags': [],
|
8
|
-
'type': 'resource',
|
9
|
-
'defaultPermission': '',
|
10
|
-
'validate': {
|
11
|
-
'required': false
|
12
|
-
},
|
13
|
-
'clearOnHide': true,
|
14
|
-
'persistent': true,
|
15
|
-
'protected': false,
|
16
|
-
'multiple': false,
|
17
|
-
'searchFields': '',
|
18
|
-
'selectFields': '',
|
19
|
-
'template': '<span>{{ item.data }}</span>',
|
20
|
-
'defaultValue': '',
|
21
|
-
'project': '58c21742e4d02b009660a6ee',
|
22
|
-
'resource': '58c21742e4d02b009660a6f2',
|
23
|
-
'placeholder': 'Select the user',
|
24
|
-
'key': 'user',
|
25
|
-
'label': 'User',
|
26
|
-
'tableView': true,
|
27
|
-
'input': true
|
28
|
-
};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
export default {
|
2
|
-
title: 'FIO-3744',
|
3
|
-
name: 'fio3744',
|
4
|
-
path: 'fio3744',
|
5
|
-
type: 'form',
|
6
|
-
display: 'form',
|
7
|
-
components: [
|
8
|
-
{
|
9
|
-
label: 'Resource',
|
10
|
-
resource: '61377a53c202989e4ed9ff21',
|
11
|
-
template: '<span>{{ item.data.textField }}</span>',
|
12
|
-
tableView: true,
|
13
|
-
unique: true,
|
14
|
-
key: 'resource',
|
15
|
-
type: 'resource',
|
16
|
-
input: true,
|
17
|
-
data: { resource: '61377a53c202989e4ed9ff21' },
|
18
|
-
addResource: false,
|
19
|
-
},
|
20
|
-
{
|
21
|
-
type: 'button',
|
22
|
-
label: 'Submit',
|
23
|
-
key: 'submit',
|
24
|
-
disableOnInvalid: true,
|
25
|
-
input: true,
|
26
|
-
tableView: false,
|
27
|
-
},
|
28
|
-
],
|
29
|
-
};
|