@formio/js 5.0.0-rc.59 → 5.0.0-rc.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/dist/formio.builder.css +8 -8
  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 +8 -8
  7. package/dist/formio.form.js +24 -24
  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 +1 -1
  11. package/dist/formio.full.css +8 -8
  12. package/dist/formio.full.js +64 -64
  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 +1 -1
  16. package/dist/formio.js +4 -4
  17. package/dist/formio.min.js +1 -1
  18. package/dist/formio.min.js.LICENSE.txt +1 -1
  19. package/dist/formio.utils.js +2 -2
  20. package/dist/formio.utils.min.js +1 -1
  21. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  22. package/lib/cjs/Element.d.ts +1 -1
  23. package/lib/cjs/Embed.d.ts +2 -2
  24. package/lib/cjs/Embed.js +10 -10
  25. package/lib/cjs/Form.d.ts +3 -3
  26. package/lib/cjs/FormBuilder.d.ts +42 -3
  27. package/lib/cjs/InlineEmbed.js +2 -2
  28. package/lib/cjs/PDF.d.ts +1 -1
  29. package/lib/cjs/Webform.d.ts +4 -3
  30. package/lib/cjs/Webform.js +2 -1
  31. package/lib/cjs/WebformBuilder.d.ts +1 -1
  32. package/lib/cjs/WebformBuilder.js +8 -2
  33. package/lib/cjs/components/_classes/component/Component.form.d.ts +1 -1
  34. package/lib/cjs/components/_classes/component/Component.form.js +1 -1
  35. package/lib/cjs/components/_classes/component/Component.js +2 -5
  36. package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
  37. package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
  38. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +2 -1
  39. package/lib/cjs/components/_classes/component/fixtures/index.js +3 -1
  40. package/lib/cjs/components/_classes/input/Input.js +6 -4
  41. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +1 -1
  42. package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
  43. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +7 -7
  44. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
  45. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +1 -1
  46. package/lib/cjs/components/address/Address.form.d.ts +1 -1
  47. package/lib/cjs/components/address/Address.form.js +1 -1
  48. package/lib/cjs/components/button/Button.form.d.ts +1 -1
  49. package/lib/cjs/components/button/Button.form.js +1 -1
  50. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +1 -1
  51. package/lib/cjs/components/checkbox/Checkbox.form.js +1 -1
  52. package/lib/cjs/components/columns/Columns.form.d.ts +1 -1
  53. package/lib/cjs/components/columns/Columns.form.js +1 -1
  54. package/lib/cjs/components/container/Container.form.d.ts +1 -1
  55. package/lib/cjs/components/container/Container.form.js +1 -1
  56. package/lib/cjs/components/content/Content.form.d.ts +1 -1
  57. package/lib/cjs/components/content/Content.form.js +1 -1
  58. package/lib/cjs/components/currency/Currency.form.d.ts +1 -1
  59. package/lib/cjs/components/currency/Currency.form.js +1 -1
  60. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +1 -1
  61. package/lib/cjs/components/datagrid/DataGrid.form.js +1 -1
  62. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
  63. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +36 -0
  64. package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
  65. package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
  66. package/lib/cjs/components/datamap/DataMap.form.d.ts +1 -1
  67. package/lib/cjs/components/datamap/DataMap.form.js +1 -1
  68. package/lib/cjs/components/datetime/DateTime.form.d.ts +1 -1
  69. package/lib/cjs/components/datetime/DateTime.form.js +1 -1
  70. package/lib/cjs/components/day/Day.d.ts +1 -1
  71. package/lib/cjs/components/day/Day.form.d.ts +1 -1
  72. package/lib/cjs/components/day/Day.form.js +1 -1
  73. package/lib/cjs/components/day/Day.js +1 -1
  74. package/lib/cjs/components/day/fixtures/comp7.d.ts +109 -0
  75. package/lib/cjs/components/day/fixtures/comp7.js +109 -0
  76. package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
  77. package/lib/cjs/components/day/fixtures/index.js +3 -1
  78. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +1 -1
  79. package/lib/cjs/components/editgrid/EditGrid.form.js +1 -1
  80. package/lib/cjs/components/email/Email.form.d.ts +1 -1
  81. package/lib/cjs/components/email/Email.form.js +1 -1
  82. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +1 -1
  83. package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
  84. package/lib/cjs/components/file/File.form.d.ts +1 -1
  85. package/lib/cjs/components/file/File.form.js +1 -1
  86. package/lib/cjs/components/file/File.js +1 -2
  87. package/lib/cjs/components/form/Form.form.d.ts +1 -1
  88. package/lib/cjs/components/form/Form.form.js +1 -1
  89. package/lib/cjs/components/form/Form.js +7 -6
  90. package/lib/cjs/components/hidden/Hidden.form.d.ts +1 -1
  91. package/lib/cjs/components/hidden/Hidden.form.js +1 -1
  92. package/lib/cjs/components/html/HTML.form.d.ts +1 -1
  93. package/lib/cjs/components/html/HTML.form.js +1 -1
  94. package/lib/cjs/components/number/Number.form.d.ts +1 -1
  95. package/lib/cjs/components/number/Number.form.js +1 -1
  96. package/lib/cjs/components/panel/Panel.form.d.ts +1 -1
  97. package/lib/cjs/components/panel/Panel.form.js +1 -1
  98. package/lib/cjs/components/password/Password.form.d.ts +1 -1
  99. package/lib/cjs/components/password/Password.form.js +1 -1
  100. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
  101. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -1
  102. package/lib/cjs/components/radio/Radio.form.d.ts +1 -1
  103. package/lib/cjs/components/radio/Radio.form.js +1 -1
  104. package/lib/cjs/components/radio/Radio.js +3 -2
  105. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
  106. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +1 -1
  107. package/lib/cjs/components/select/Select.form.d.ts +1 -1
  108. package/lib/cjs/components/select/Select.form.js +1 -1
  109. package/lib/cjs/components/select/Select.js +1 -1
  110. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
  111. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +1 -1
  112. package/lib/cjs/components/signature/Signature.form.d.ts +1 -1
  113. package/lib/cjs/components/signature/Signature.form.js +1 -1
  114. package/lib/cjs/components/survey/Survey.form.d.ts +1 -1
  115. package/lib/cjs/components/survey/Survey.form.js +1 -1
  116. package/lib/cjs/components/table/Table.form.d.ts +1 -1
  117. package/lib/cjs/components/table/Table.form.js +1 -1
  118. package/lib/cjs/components/tabs/Tabs.form.d.ts +1 -1
  119. package/lib/cjs/components/tabs/Tabs.form.js +1 -1
  120. package/lib/cjs/components/tags/Tags.form.d.ts +1 -1
  121. package/lib/cjs/components/tags/Tags.form.js +1 -1
  122. package/lib/cjs/components/textarea/TextArea.form.d.ts +1 -1
  123. package/lib/cjs/components/textarea/TextArea.form.js +1 -1
  124. package/lib/cjs/components/textfield/TextField.form.d.ts +1 -1
  125. package/lib/cjs/components/textfield/TextField.form.js +1 -1
  126. package/lib/cjs/components/textfield/TextField.js +3 -1
  127. package/lib/cjs/components/time/Time.form.d.ts +1 -1
  128. package/lib/cjs/components/time/Time.form.js +1 -1
  129. package/lib/cjs/components/unknown/Unknown.form.js +1 -1
  130. package/lib/cjs/components/url/Url.form.d.ts +1 -1
  131. package/lib/cjs/components/url/Url.form.js +1 -1
  132. package/lib/cjs/components/well/Well.form.d.ts +1 -1
  133. package/lib/cjs/components/well/Well.form.js +1 -1
  134. package/lib/cjs/formio.form.js +3 -3
  135. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -1
  136. package/lib/cjs/providers/address/GoogleAddressProvider.js +1 -1
  137. package/lib/cjs/providers/storage/util.js +3 -4
  138. package/lib/cjs/templates/index.d.ts +14 -14
  139. package/lib/cjs/translations/en.d.ts +2 -0
  140. package/lib/cjs/translations/en.js +3 -1
  141. package/lib/cjs/utils/ChoicesWrapper.d.ts +1 -1
  142. package/lib/cjs/utils/ChoicesWrapper.js +13 -2
  143. package/lib/cjs/utils/calendarUtils.js +3 -3
  144. package/lib/cjs/utils/formUtils.d.ts +3 -3
  145. package/lib/cjs/utils/formUtils.js +2 -2
  146. package/lib/cjs/utils/utils.d.ts +20 -14
  147. package/lib/cjs/utils/utils.js +82 -72
  148. package/lib/mjs/Element.d.ts +1 -1
  149. package/lib/mjs/Embed.d.ts +2 -2
  150. package/lib/mjs/Form.d.ts +3 -3
  151. package/lib/mjs/FormBuilder.d.ts +42 -3
  152. package/lib/mjs/PDF.d.ts +1 -1
  153. package/lib/mjs/Webform.d.ts +4 -3
  154. package/lib/mjs/Webform.js +2 -1
  155. package/lib/mjs/WebformBuilder.d.ts +1 -1
  156. package/lib/mjs/WebformBuilder.js +8 -2
  157. package/lib/mjs/components/_classes/component/Component.form.d.ts +1 -1
  158. package/lib/mjs/components/_classes/component/Component.js +2 -5
  159. package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
  160. package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
  161. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +2 -1
  162. package/lib/mjs/components/_classes/component/fixtures/index.js +2 -1
  163. package/lib/mjs/components/_classes/input/Input.js +6 -4
  164. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +1 -1
  165. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +7 -7
  166. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
  167. package/lib/mjs/components/address/Address.form.d.ts +1 -1
  168. package/lib/mjs/components/button/Button.form.d.ts +1 -1
  169. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +1 -1
  170. package/lib/mjs/components/columns/Columns.form.d.ts +1 -1
  171. package/lib/mjs/components/container/Container.form.d.ts +1 -1
  172. package/lib/mjs/components/content/Content.form.d.ts +1 -1
  173. package/lib/mjs/components/currency/Currency.form.d.ts +1 -1
  174. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +1 -1
  175. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
  176. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +34 -0
  177. package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
  178. package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
  179. package/lib/mjs/components/datamap/DataMap.form.d.ts +1 -1
  180. package/lib/mjs/components/datetime/DateTime.form.d.ts +1 -1
  181. package/lib/mjs/components/day/Day.d.ts +1 -1
  182. package/lib/mjs/components/day/Day.form.d.ts +1 -1
  183. package/lib/mjs/components/day/Day.js +1 -1
  184. package/lib/mjs/components/day/fixtures/comp7.d.ts +109 -0
  185. package/lib/mjs/components/day/fixtures/comp7.js +107 -0
  186. package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
  187. package/lib/mjs/components/day/fixtures/index.js +2 -1
  188. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +1 -1
  189. package/lib/mjs/components/email/Email.form.d.ts +1 -1
  190. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +1 -1
  191. package/lib/mjs/components/file/File.form.d.ts +1 -1
  192. package/lib/mjs/components/file/File.js +1 -2
  193. package/lib/mjs/components/form/Form.form.d.ts +1 -1
  194. package/lib/mjs/components/form/Form.js +5 -4
  195. package/lib/mjs/components/hidden/Hidden.form.d.ts +1 -1
  196. package/lib/mjs/components/html/HTML.form.d.ts +1 -1
  197. package/lib/mjs/components/number/Number.form.d.ts +1 -1
  198. package/lib/mjs/components/panel/Panel.form.d.ts +1 -1
  199. package/lib/mjs/components/password/Password.form.d.ts +1 -1
  200. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
  201. package/lib/mjs/components/radio/Radio.form.d.ts +1 -1
  202. package/lib/mjs/components/radio/Radio.js +3 -2
  203. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
  204. package/lib/mjs/components/select/Select.form.d.ts +1 -1
  205. package/lib/mjs/components/select/Select.js +2 -2
  206. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
  207. package/lib/mjs/components/signature/Signature.form.d.ts +1 -1
  208. package/lib/mjs/components/survey/Survey.form.d.ts +1 -1
  209. package/lib/mjs/components/table/Table.form.d.ts +1 -1
  210. package/lib/mjs/components/tabs/Tabs.form.d.ts +1 -1
  211. package/lib/mjs/components/tags/Tags.form.d.ts +1 -1
  212. package/lib/mjs/components/textarea/TextArea.form.d.ts +1 -1
  213. package/lib/mjs/components/textfield/TextField.form.d.ts +1 -1
  214. package/lib/mjs/components/textfield/TextField.js +3 -1
  215. package/lib/mjs/components/time/Time.form.d.ts +1 -1
  216. package/lib/mjs/components/url/Url.form.d.ts +1 -1
  217. package/lib/mjs/components/well/Well.form.d.ts +1 -1
  218. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -1
  219. package/lib/mjs/providers/address/GoogleAddressProvider.js +1 -1
  220. package/lib/mjs/templates/index.d.ts +14 -14
  221. package/lib/mjs/translations/en.d.ts +2 -0
  222. package/lib/mjs/translations/en.js +3 -1
  223. package/lib/mjs/utils/ChoicesWrapper.d.ts +1 -1
  224. package/lib/mjs/utils/ChoicesWrapper.js +13 -2
  225. package/lib/mjs/utils/formUtils.d.ts +3 -3
  226. package/lib/mjs/utils/utils.d.ts +20 -14
  227. package/lib/mjs/utils/utils.js +12 -2
  228. package/package.json +11 -11
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -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.component.fields[name].placeholder,
125
+ placeholder: this.t(this.component.fields[name].placeholder),
126
126
  step: 1,
127
127
  min,
128
128
  max,
@@ -0,0 +1,109 @@
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;
@@ -0,0 +1,107 @@
1
+ export default {
2
+ components: [
3
+ {
4
+ type: 'textfield',
5
+ key: 'firstName',
6
+ label: 'First Name',
7
+ placeholder: 'Enter your first name',
8
+ input: true
9
+ }, {
10
+ "label": "Day",
11
+ "placeholder": "Day",
12
+ "applyMaskOn": "change",
13
+ "tableView": true,
14
+ "key": "day2",
15
+ "type": "textfield",
16
+ "input": true
17
+ }, {
18
+ "label": "Month",
19
+ "placeholder": "Month",
20
+ "applyMaskOn": "change",
21
+ "tableView": true,
22
+ "key": "month2",
23
+ "type": "textfield",
24
+ "input": true
25
+ }, {
26
+ "label": "Year",
27
+ "placeholder": "Year",
28
+ "applyMaskOn": "change",
29
+ "tableView": true,
30
+ "key": "year2",
31
+ "type": "textfield",
32
+ "input": true
33
+ },
34
+ {
35
+ "label": "Day",
36
+ "hideInputLabels": false,
37
+ "inputsLabelPosition": "top",
38
+ "useLocaleSettings": false,
39
+ "tableView": false,
40
+ "fields": {
41
+ "day": {
42
+ "placeholder": "Day",
43
+ "hide": false
44
+ },
45
+ "month": {
46
+ "type": "number",
47
+ "placeholder": "Month",
48
+ "hide": false
49
+ },
50
+ "year": {
51
+ "placeholder": "Year",
52
+ "hide": false
53
+ }
54
+ },
55
+ "key": "day",
56
+ "type": "day",
57
+ "input": true,
58
+ "defaultValue": "00/00/0000"
59
+ },
60
+ {
61
+ type: 'textfield',
62
+ key: 'lastName',
63
+ label: 'Last Name',
64
+ placeholder: 'Enter your last name',
65
+ input: true
66
+ },
67
+ {
68
+ type: 'survey',
69
+ key: 'questions',
70
+ label: 'Survey',
71
+ values: [
72
+ {
73
+ label: 'Great',
74
+ value: 'great'
75
+ },
76
+ {
77
+ label: 'Good',
78
+ value: 'good'
79
+ },
80
+ {
81
+ label: 'Poor',
82
+ value: 'poor'
83
+ }
84
+ ],
85
+ questions: [
86
+ {
87
+ label: 'How would you rate the Form.io platform?',
88
+ value: 'howWouldYouRateTheFormIoPlatform'
89
+ },
90
+ {
91
+ label: 'How was Customer Support?',
92
+ value: 'howWasCustomerSupport'
93
+ },
94
+ {
95
+ label: 'Overall Experience?',
96
+ value: 'overallExperience'
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ type: 'button',
102
+ action: 'submit',
103
+ label: 'Submit',
104
+ theme: 'primary'
105
+ }
106
+ ]
107
+ };
@@ -4,4 +4,5 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- export { comp1, comp2, comp3, comp4, comp5, comp6 };
7
+ import comp7 from './comp7';
8
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
@@ -4,4 +4,5 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- export { comp1, comp2, comp3, comp4, comp5, comp6 };
7
+ import comp7 from './comp7';
8
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -649,8 +649,7 @@ export default class FileComponent extends Field {
649
649
  // Check if file with the same name is being uploaded
650
650
  const fileWithSameNameUploading = this.filesToSync.filesToUpload
651
651
  .some(fileToSync => fileToSync.file?.name === file.name);
652
- const fileWithSameNameUploaded = this.dataValue
653
- .some(fileStatus => fileStatus.originalName === file.name);
652
+ const fileWithSameNameUploaded = _.some(this.dataValue, fileStatus => fileStatus.originalName === file.name);
654
653
  return fileWithSameNameUploaded || fileWithSameNameUploading
655
654
  ? {
656
655
  status: 'error',
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -442,7 +442,7 @@ export default class FormComponent extends Component {
442
442
  }
443
443
  else if (this.formSrc) {
444
444
  this.subFormLoading = true;
445
- const options = this.root.formio?.base && this.root.formio?.projectUrl
445
+ const options = this.root?.formio?.base && this.root?.formio?.projectUrl
446
446
  ? {
447
447
  base: this.root.formio.base,
448
448
  project: this.root.formio.projectUrl,
@@ -623,10 +623,11 @@ export default class FormComponent extends Component {
623
623
  && submission._id
624
624
  && this.subForm.formio
625
625
  && _.isEmpty(submission.data);
626
- if (shouldLoadSubmissionById) {
626
+ const shouldLoadDraftById = this.options.saveDraft && _.isEmpty(submission.data) && _.get(this.subForm, 'submission._id');
627
+ if (shouldLoadSubmissionById || shouldLoadDraftById) {
627
628
  const formId = submission.form || this.formObj.form || this.component.form;
628
- const submissionUrl = `${this.subForm.formio.formsUrl}/${formId}/submission/${submission._id}`;
629
- const options = this.root.formio?.base && this.root.formio?.projectUrl
629
+ const submissionUrl = `${this.subForm.formio.formsUrl}/${formId}/submission/${submission._id || this.subForm.submission._id}`;
630
+ const options = this.root?.formio?.base && this.root?.formio?.projectUrl
630
631
  ? {
631
632
  base: this.root.formio.base,
632
633
  project: this.root.formio.projectUrl,
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -200,7 +200,8 @@ export default class RadioComponent extends ListComponent {
200
200
  if (this.viewOnly || !this.refs.input || !this.refs.input.length) {
201
201
  return this.dataValue;
202
202
  }
203
- let value = this.dataValue;
203
+ // If the input type of the component is checkbox the value should be determined by the checkboxes checked property
204
+ let value = this.component.inputType === 'checkbox' ? '' : this.dataValue;
204
205
  this.refs.input.forEach((input, index) => {
205
206
  if (input.checked) {
206
207
  value = (this.isSelectURL && _.isObject(this.loadedOptions[index].value)) ?
@@ -322,7 +323,7 @@ export default class RadioComponent extends ListComponent {
322
323
  const value = this.dataValue;
323
324
  this.refs.wrapper.forEach((wrapper, index) => {
324
325
  const input = this.refs.input[index];
325
- const checked = (input.type === 'checkbox') ? value[input.value] : (input.value.toString() === value.toString());
326
+ const checked = (input.type === 'checkbox') ? value[input.value] || input.checked : (input.value.toString() === value.toString());
326
327
  if (checked) {
327
328
  //add class to container when selected
328
329
  this.addClass(wrapper, this.optionSelectedClass);
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,7 +3,7 @@ import { Formio } from '../../Formio';
3
3
  import ListComponent from '../_classes/list/ListComponent';
4
4
  import Input from '../_classes/input/Input';
5
5
  import Form from '../../Form';
6
- import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, unescapeHTML, isSelectResourceWithObjectValue } from '../../utils/utils';
6
+ import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, isSelectResourceWithObjectValue, removeHTML } from '../../utils/utils';
7
7
  import Choices from '../../utils/ChoicesWrapper';
8
8
  export default class SelectComponent extends ListComponent {
9
9
  static schema(...extend) {
@@ -1548,7 +1548,7 @@ export default class SelectComponent extends ListComponent {
1548
1548
  const getTemplateValue = (v) => {
1549
1549
  const itemTemplate = this.itemTemplate(v);
1550
1550
  return options.csv && itemTemplate
1551
- ? unescapeHTML(itemTemplate)
1551
+ ? removeHTML(itemTemplate)
1552
1552
  : itemTemplate;
1553
1553
  };
1554
1554
  if (Array.isArray(value)) {
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -147,6 +147,9 @@ export default class TextFieldComponent extends Input {
147
147
  const maskInput = this.refs.select ? this.refs.select[index] : null;
148
148
  const mask = this.getMaskPattern(value.maskName);
149
149
  if (textInput && maskInput && mask) {
150
+ // We need to set the maskInput (select dropdown) value before calling inputmask.setValue because, this
151
+ // function will trigger a "change" event, which was calling updateValue setting the mask type to an incorrect value.
152
+ maskInput.value = value.maskName;
150
153
  if (textInput.inputmask) {
151
154
  this.setInputMask(textInput, mask);
152
155
  textInput.inputmask.setValue(textValue);
@@ -155,7 +158,6 @@ export default class TextFieldComponent extends Input {
155
158
  const placeholderChar = this.placeholderChar;
156
159
  textInput.value = conformToMask(textValue, FormioUtils.getInputMask(mask), { placeholderChar }).conformedValue;
157
160
  }
158
- maskInput.value = value.maskName;
159
161
  }
160
162
  else {
161
163
  return super.setValueAt(index, textValue, flags);
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import('@formio/core').Component[];
6
+ export default function _default(...extend: any[]): import("@formio/core").Component[];
@@ -17,7 +17,7 @@ export class AzureAddressProvider extends AddressProvider {
17
17
  */
18
18
  get defaultOptions(): {
19
19
  params: {
20
- 'api-version': string;
20
+ "api-version": string;
21
21
  typeahead: string;
22
22
  };
23
23
  };
@@ -48,7 +48,7 @@ export class GoogleAddressProvider extends AddressProvider {
48
48
  constructor(options = {}) {
49
49
  super(options);
50
50
  this.setAutocompleteOptions();
51
- let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback';
51
+ let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&loading=async&callback=googleMapsCallback';
52
52
  if (options.params?.key) {
53
53
  src += `&key=${options.params.key}`;
54
54
  }
@@ -39,20 +39,20 @@ declare namespace _default {
39
39
  defaultIconset: string;
40
40
  iconClass: (iconset: any, name: any, spinning: any) => string;
41
41
  cssClasses: {
42
- 'border-default': string;
43
- 'formio-tab-panel-active': string;
44
- 'formio-tab-link-active': string;
45
- 'formio-tab-link-container-active': string;
46
- 'formio-form-error': string;
47
- 'formio-form-alert': string;
48
- 'formio-label-error': string;
49
- 'formio-input-error': string;
50
- 'formio-alert-danger': string;
51
- 'formio-alert-success': string;
52
- 'formio-alert-warning': string;
53
- 'formio-modal-cancel-button': string;
54
- 'formio-modal-confirm-button': string;
55
- 'form-group': string;
42
+ "border-default": string;
43
+ "formio-tab-panel-active": string;
44
+ "formio-tab-link-active": string;
45
+ "formio-tab-link-container-active": string;
46
+ "formio-form-error": string;
47
+ "formio-form-alert": string;
48
+ "formio-label-error": string;
49
+ "formio-input-error": string;
50
+ "formio-alert-danger": string;
51
+ "formio-alert-success": string;
52
+ "formio-alert-warning": string;
53
+ "formio-modal-cancel-button": string;
54
+ "formio-modal-confirm-button": string;
55
+ "form-group": string;
56
56
  };
57
57
  address: {
58
58
  form: string;
@@ -72,5 +72,7 @@ declare namespace _default {
72
72
  let reCaptchaTokenValidationError: string;
73
73
  let reCaptchaTokenNotSpecifiedError: string;
74
74
  let apiKey: string;
75
+ let typeRemaining: string;
76
+ let typeCount: string;
75
77
  }
76
78
  export default _default;
@@ -71,5 +71,7 @@ export default {
71
71
  submitButtonAriaLabel: 'Submit Form button. Click to submit the form',
72
72
  reCaptchaTokenValidationError: 'ReCAPTCHA: Token validation error',
73
73
  reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token is not specified in submission',
74
- apiKey: 'API Key is not unique: {{key}}'
74
+ apiKey: 'API Key is not unique: {{key}}',
75
+ typeRemaining: '{{ remaining }} {{ type }} remaining.',
76
+ typeCount: '{{ count }} {{ type }}'
75
77
  };
@@ -24,7 +24,7 @@ declare class ChoicesWrapper extends Choices {
24
24
  _onEnterKey(args: any): void;
25
25
  _onDirectionKey(...args: any[]): void;
26
26
  timeout: NodeJS.Timeout | undefined;
27
- _selectHighlightedChoice(activeItems: any): void;
27
+ _selectHighlightedChoice(): void;
28
28
  _onKeyDown(event: any): void;
29
29
  onSelectValue({ event, activeItems, hasActiveDropdown }: {
30
30
  event: any;