@formio/js 5.0.0-rc.39 → 5.0.0-rc.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. package/dist/formio.builder.css +2 -2
  2. package/dist/formio.builder.min.css +1 -1
  3. package/dist/formio.embed.js +1 -1
  4. package/dist/formio.embed.min.js +1 -1
  5. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  6. package/dist/formio.form.css +2 -2
  7. package/dist/formio.form.js +5335 -2376
  8. package/dist/formio.form.min.css +1 -1
  9. package/dist/formio.form.min.js +1 -1
  10. package/dist/formio.form.min.js.LICENSE.txt +23 -5
  11. package/dist/formio.full.css +2 -2
  12. package/dist/formio.full.js +5663 -2696
  13. package/dist/formio.full.min.css +1 -1
  14. package/dist/formio.full.min.js +1 -1
  15. package/dist/formio.full.min.js.LICENSE.txt +23 -5
  16. package/dist/formio.js +72 -62
  17. package/dist/formio.min.js +1 -1
  18. package/dist/formio.min.js.LICENSE.txt +1 -1
  19. package/dist/formio.utils.js +105 -96
  20. package/dist/formio.utils.min.js +1 -1
  21. package/dist/formio.utils.min.js.LICENSE.txt +4 -4
  22. package/lib/cjs/Element.js +1 -0
  23. package/lib/cjs/Embed.js +131 -131
  24. package/lib/cjs/Webform.js +36 -13
  25. package/lib/cjs/WebformBuilder.js +4 -2
  26. package/lib/cjs/Wizard.js +6 -1
  27. package/lib/cjs/components/_classes/component/Component.js +33 -22
  28. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +1 -1
  29. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +8 -0
  30. package/lib/cjs/components/_classes/component/fixtures/comp5.js +2 -2
  31. package/lib/cjs/components/_classes/multivalue/Multivalue.js +2 -2
  32. package/lib/cjs/components/_classes/nested/NestedComponent.js +2 -2
  33. package/lib/cjs/components/address/fixtures/comp3.js +1 -1
  34. package/lib/cjs/components/builder.js +0 -2
  35. package/lib/cjs/components/button/Button.js +7 -1
  36. package/lib/cjs/components/datagrid/DataGrid.js +16 -3
  37. package/lib/cjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +68 -0
  38. package/lib/cjs/components/datagrid/fixtures/comp6.js +1 -1
  39. package/lib/cjs/components/datagrid/fixtures/index.js +5 -1
  40. package/lib/cjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +104 -0
  41. package/lib/cjs/components/editgrid/EditGrid.js +11 -4
  42. package/lib/cjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +923 -0
  43. package/lib/cjs/components/file/File.js +2 -2
  44. package/lib/cjs/components/file/editForm/File.edit.file.js +1 -1
  45. package/lib/cjs/components/form/Form.js +1 -1
  46. package/lib/cjs/components/html/HTML.js +11 -2
  47. package/lib/cjs/components/html/fixtures/index.js +1 -3
  48. package/lib/cjs/components/index.js +0 -2
  49. package/lib/cjs/components/recaptcha/ReCaptcha.js +46 -46
  50. package/lib/cjs/components/select/Select.js +3 -1
  51. package/lib/cjs/components/select/fixtures/comp20.js +46 -0
  52. package/lib/cjs/components/select/fixtures/comp21.js +106 -0
  53. package/lib/cjs/components/select/fixtures/index.js +5 -1
  54. package/lib/cjs/components/selectboxes/SelectBoxes.js +1 -1
  55. package/lib/cjs/components/textfield/TextField.js +63 -3
  56. package/lib/cjs/providers/storage/s3.js +5 -3
  57. package/lib/cjs/providers/storage/uploadAdapter.js +1 -1
  58. package/lib/cjs/providers/storage/url.js +19 -13
  59. package/lib/cjs/providers/storage/util.js +2 -2
  60. package/lib/cjs/templates/Templates.js +4 -4
  61. package/lib/cjs/translations/en.js +10 -6
  62. package/lib/cjs/utils/Evaluator.js +1 -1
  63. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +1 -1
  64. package/lib/cjs/utils/formUtils.js +3 -3
  65. package/lib/cjs/utils/utils.js +4 -19
  66. package/lib/cjs/widgets/CalendarWidget.js +1 -1
  67. package/lib/mjs/Element.js +1 -0
  68. package/lib/mjs/Embed.js +1 -2
  69. package/lib/mjs/FormBuilder.js +1 -2
  70. package/lib/mjs/Webform.js +36 -13
  71. package/lib/mjs/WebformBuilder.js +4 -2
  72. package/lib/mjs/Wizard.js +6 -1
  73. package/lib/mjs/builders/Builders.js +1 -2
  74. package/lib/mjs/components/Components.js +1 -2
  75. package/lib/mjs/components/_classes/component/Component.js +33 -24
  76. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +1 -1
  77. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +8 -0
  78. package/lib/mjs/components/_classes/component/fixtures/comp5.js +2 -2
  79. package/lib/mjs/components/_classes/multivalue/Multivalue.js +2 -2
  80. package/lib/mjs/components/_classes/nested/NestedComponent.js +2 -2
  81. package/lib/mjs/components/address/fixtures/comp3.js +1 -1
  82. package/lib/mjs/components/builder.js +0 -2
  83. package/lib/mjs/components/button/Button.js +7 -1
  84. package/lib/mjs/components/datagrid/DataGrid.js +15 -3
  85. package/lib/mjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +66 -0
  86. package/lib/mjs/components/datagrid/fixtures/comp6.js +1 -1
  87. package/lib/mjs/components/datagrid/fixtures/index.js +3 -1
  88. package/lib/mjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +102 -0
  89. package/lib/mjs/components/editgrid/EditGrid.js +11 -4
  90. package/lib/mjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +921 -0
  91. package/lib/mjs/components/file/File.js +2 -2
  92. package/lib/mjs/components/file/editForm/File.edit.file.js +1 -1
  93. package/lib/mjs/components/form/Form.js +1 -1
  94. package/lib/mjs/components/html/HTML.js +10 -2
  95. package/lib/mjs/components/html/fixtures/index.js +1 -2
  96. package/lib/mjs/components/index.js +0 -2
  97. package/lib/mjs/components/recaptcha/ReCaptcha.js +32 -43
  98. package/lib/mjs/components/select/Select.js +3 -1
  99. package/lib/mjs/components/select/fixtures/comp20.js +44 -0
  100. package/lib/mjs/components/select/fixtures/comp21.js +104 -0
  101. package/lib/mjs/components/select/fixtures/index.js +3 -1
  102. package/lib/mjs/components/selectboxes/SelectBoxes.js +1 -1
  103. package/lib/mjs/components/textfield/TextField.js +62 -3
  104. package/lib/mjs/displays/Displays.js +1 -2
  105. package/lib/mjs/licenses/Licenses.js +1 -2
  106. package/lib/mjs/providers/Providers.js +1 -2
  107. package/lib/mjs/providers/storage/s3.js +5 -3
  108. package/lib/mjs/providers/storage/uploadAdapter.js +1 -1
  109. package/lib/mjs/providers/storage/url.js +19 -13
  110. package/lib/mjs/templates/Templates.js +1 -1
  111. package/lib/mjs/translations/en.js +10 -6
  112. package/lib/mjs/utils/Evaluator.js +1 -1
  113. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +1 -1
  114. package/lib/mjs/utils/formUtils.js +3 -3
  115. package/lib/mjs/utils/utils.js +2 -16
  116. package/lib/mjs/widgets/CalendarWidget.js +1 -1
  117. package/package.json +21 -20
  118. package/lib/cjs/components/html/fixtures/comp3.js +0 -31
  119. package/lib/cjs/components/resource/Resource.form.js +0 -16
  120. package/lib/cjs/components/resource/Resource.js +0 -39
  121. package/lib/cjs/components/resource/editForm/Resource.edit.display.js +0 -102
  122. package/lib/cjs/components/resource/fixtures/comp1.js +0 -30
  123. package/lib/cjs/components/resource/fixtures/comp2.js +0 -31
  124. package/lib/cjs/components/resource/fixtures/index.js +0 -10
  125. package/lib/mjs/components/html/fixtures/comp3.js +0 -29
  126. package/lib/mjs/components/resource/Resource.form.js +0 -10
  127. package/lib/mjs/components/resource/Resource.js +0 -33
  128. package/lib/mjs/components/resource/editForm/Resource.edit.display.js +0 -100
  129. package/lib/mjs/components/resource/fixtures/comp1.js +0 -28
  130. package/lib/mjs/components/resource/fixtures/comp2.js +0 -29
  131. 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
- };
@@ -1,3 +0,0 @@
1
- import comp1 from './comp1';
2
- import comp2 from './comp2';
3
- export { comp1, comp2 };