@formio/js 5.0.0-dev.5647.4cf82e8 → 5.0.0-dev.5651.1f930f8

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.
Files changed (461) hide show
  1. package/Changelog.md +38 -0
  2. package/dist/formio.builder.css +8 -8
  3. package/dist/formio.builder.min.css +1 -1
  4. package/dist/formio.embed.js +1 -1
  5. package/dist/formio.embed.min.js +1 -1
  6. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.form.css +8 -8
  8. package/dist/formio.form.js +613 -1194
  9. package/dist/formio.form.min.css +1 -1
  10. package/dist/formio.form.min.js +1 -1
  11. package/dist/formio.form.min.js.LICENSE.txt +3 -5
  12. package/dist/formio.full.css +8 -8
  13. package/dist/formio.full.js +657 -918
  14. package/dist/formio.full.min.css +1 -1
  15. package/dist/formio.full.min.js +1 -1
  16. package/dist/formio.full.min.js.LICENSE.txt +3 -5
  17. package/dist/formio.js +18 -18
  18. package/dist/formio.min.js +1 -1
  19. package/dist/formio.min.js.LICENSE.txt +1 -1
  20. package/dist/formio.utils.js +1829 -492
  21. package/dist/formio.utils.min.js +1 -1
  22. package/dist/formio.utils.min.js.LICENSE.txt +10 -4
  23. package/embed.d.ts +1 -0
  24. package/form.d.ts +1 -0
  25. package/lib/cjs/CDN.d.ts +1 -0
  26. package/lib/cjs/CDN.js +6 -3
  27. package/lib/cjs/Element.d.ts +86 -96
  28. package/lib/cjs/Element.js +68 -78
  29. package/lib/cjs/Embed.d.ts +1 -1
  30. package/lib/cjs/Embed.js +52 -12
  31. package/lib/cjs/Form.d.ts +365 -36
  32. package/lib/cjs/Form.js +50 -64
  33. package/lib/cjs/FormBuilder.d.ts +187 -2
  34. package/lib/cjs/FormBuilder.js +30 -8
  35. package/lib/cjs/InlineEmbed.d.ts +7 -0
  36. package/lib/cjs/InlineEmbed.js +116 -0
  37. package/lib/cjs/PDF.d.ts +11 -13
  38. package/lib/cjs/PDF.js +6 -8
  39. package/lib/cjs/Webform.d.ts +180 -139
  40. package/lib/cjs/Webform.js +309 -296
  41. package/lib/cjs/WebformBuilder.d.ts +16 -14
  42. package/lib/cjs/WebformBuilder.js +11 -10
  43. package/lib/cjs/Wizard.d.ts +31 -21
  44. package/lib/cjs/Wizard.js +43 -20
  45. package/lib/cjs/WizardBuilder.d.ts +1 -1
  46. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
  47. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
  48. package/lib/cjs/components/Components.d.ts +4 -4
  49. package/lib/cjs/components/Components.js +3 -3
  50. package/lib/cjs/components/_classes/component/Component.d.ts +502 -269
  51. package/lib/cjs/components/_classes/component/Component.form.d.ts +6 -3
  52. package/lib/cjs/components/_classes/component/Component.form.js +5 -0
  53. package/lib/cjs/components/_classes/component/Component.js +433 -189
  54. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
  55. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  56. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  57. package/lib/cjs/components/_classes/field/Field.d.ts +11 -2
  58. package/lib/cjs/components/_classes/field/Field.js +13 -1
  59. package/lib/cjs/components/_classes/input/Input.d.ts +4 -3
  60. package/lib/cjs/components/_classes/input/Input.js +2 -2
  61. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  62. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +6 -3
  63. package/lib/cjs/components/_classes/list/ListComponent.form.js +5 -0
  64. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
  65. package/lib/cjs/components/_classes/multivalue/Multivalue.js +37 -3
  66. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +163 -67
  67. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
  68. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +5 -0
  69. package/lib/cjs/components/_classes/nested/NestedComponent.js +175 -54
  70. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
  71. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  72. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
  73. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
  74. package/lib/cjs/components/address/Address.d.ts +4 -2
  75. package/lib/cjs/components/address/Address.form.d.ts +6 -3
  76. package/lib/cjs/components/address/Address.form.js +5 -0
  77. package/lib/cjs/components/button/Button.d.ts +3 -12
  78. package/lib/cjs/components/button/Button.form.d.ts +6 -3
  79. package/lib/cjs/components/button/Button.form.js +5 -0
  80. package/lib/cjs/components/button/Button.js +5 -0
  81. package/lib/cjs/components/checkbox/Checkbox.d.ts +4 -27
  82. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +6 -3
  83. package/lib/cjs/components/checkbox/Checkbox.form.js +5 -0
  84. package/lib/cjs/components/columns/Columns.d.ts +3 -2
  85. package/lib/cjs/components/columns/Columns.form.d.ts +6 -3
  86. package/lib/cjs/components/columns/Columns.form.js +5 -0
  87. package/lib/cjs/components/columns/Columns.js +1 -1
  88. package/lib/cjs/components/container/Container.form.d.ts +6 -3
  89. package/lib/cjs/components/container/Container.form.js +5 -0
  90. package/lib/cjs/components/content/Content.d.ts +2 -1
  91. package/lib/cjs/components/content/Content.form.d.ts +6 -3
  92. package/lib/cjs/components/content/Content.form.js +5 -0
  93. package/lib/cjs/components/currency/Currency.form.d.ts +6 -3
  94. package/lib/cjs/components/currency/Currency.form.js +5 -0
  95. package/lib/cjs/components/currency/Currency.js +1 -2
  96. package/lib/cjs/components/datagrid/DataGrid.d.ts +8 -7
  97. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +6 -3
  98. package/lib/cjs/components/datagrid/DataGrid.form.js +5 -0
  99. package/lib/cjs/components/datagrid/DataGrid.js +5 -5
  100. package/lib/cjs/components/datamap/DataMap.d.ts +1 -0
  101. package/lib/cjs/components/datamap/DataMap.form.d.ts +6 -3
  102. package/lib/cjs/components/datamap/DataMap.form.js +5 -0
  103. package/lib/cjs/components/datetime/DateTime.d.ts +0 -14
  104. package/lib/cjs/components/datetime/DateTime.form.d.ts +6 -3
  105. package/lib/cjs/components/datetime/DateTime.form.js +5 -0
  106. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  107. package/lib/cjs/components/day/Day.d.ts +22 -48
  108. package/lib/cjs/components/day/Day.form.d.ts +6 -3
  109. package/lib/cjs/components/day/Day.form.js +5 -0
  110. package/lib/cjs/components/day/Day.js +15 -20
  111. package/lib/cjs/components/editgrid/EditGrid.d.ts +7 -3
  112. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +6 -3
  113. package/lib/cjs/components/editgrid/EditGrid.form.js +5 -0
  114. package/lib/cjs/components/editgrid/EditGrid.js +3 -3
  115. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
  116. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
  117. package/lib/cjs/components/email/Email.form.d.ts +6 -3
  118. package/lib/cjs/components/email/Email.form.js +5 -0
  119. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +6 -3
  120. package/lib/cjs/components/fieldset/Fieldset.form.js +5 -0
  121. package/lib/cjs/components/file/File.d.ts +9 -22
  122. package/lib/cjs/components/file/File.form.d.ts +6 -3
  123. package/lib/cjs/components/file/File.form.js +5 -0
  124. package/lib/cjs/components/file/File.js +1 -2
  125. package/lib/cjs/components/form/Form.d.ts +31 -20
  126. package/lib/cjs/components/form/Form.form.d.ts +6 -3
  127. package/lib/cjs/components/form/Form.form.js +5 -0
  128. package/lib/cjs/components/form/Form.js +13 -10
  129. package/lib/cjs/components/hidden/Hidden.d.ts +1 -11
  130. package/lib/cjs/components/hidden/Hidden.form.d.ts +6 -3
  131. package/lib/cjs/components/hidden/Hidden.form.js +5 -0
  132. package/lib/cjs/components/hidden/Hidden.js +1 -2
  133. package/lib/cjs/components/html/HTML.d.ts +2 -1
  134. package/lib/cjs/components/html/HTML.form.d.ts +6 -3
  135. package/lib/cjs/components/html/HTML.form.js +5 -0
  136. package/lib/cjs/components/number/Number.d.ts +3 -17
  137. package/lib/cjs/components/number/Number.form.d.ts +6 -3
  138. package/lib/cjs/components/number/Number.form.js +5 -0
  139. package/lib/cjs/components/number/Number.js +1 -2
  140. package/lib/cjs/components/panel/Panel.form.d.ts +6 -3
  141. package/lib/cjs/components/panel/Panel.form.js +5 -0
  142. package/lib/cjs/components/panel/Panel.js +0 -1
  143. package/lib/cjs/components/password/Password.form.d.ts +6 -3
  144. package/lib/cjs/components/password/Password.form.js +5 -0
  145. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
  146. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +5 -0
  147. package/lib/cjs/components/radio/Radio.d.ts +3 -26
  148. package/lib/cjs/components/radio/Radio.form.d.ts +6 -3
  149. package/lib/cjs/components/radio/Radio.form.js +5 -0
  150. package/lib/cjs/components/radio/Radio.js +3 -4
  151. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  152. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
  153. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -0
  154. package/lib/cjs/components/select/Select.d.ts +16 -39
  155. package/lib/cjs/components/select/Select.form.d.ts +6 -3
  156. package/lib/cjs/components/select/Select.form.js +5 -0
  157. package/lib/cjs/components/select/Select.js +13 -16
  158. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -17
  159. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
  160. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +5 -0
  161. package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -9
  162. package/lib/cjs/components/signature/Signature.d.ts +1 -14
  163. package/lib/cjs/components/signature/Signature.form.d.ts +6 -3
  164. package/lib/cjs/components/signature/Signature.form.js +5 -0
  165. package/lib/cjs/components/survey/Survey.d.ts +3 -15
  166. package/lib/cjs/components/survey/Survey.form.d.ts +6 -3
  167. package/lib/cjs/components/survey/Survey.form.js +5 -0
  168. package/lib/cjs/components/table/Table.d.ts +2 -1
  169. package/lib/cjs/components/table/Table.form.d.ts +6 -3
  170. package/lib/cjs/components/table/Table.form.js +5 -0
  171. package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
  172. package/lib/cjs/components/tabs/Tabs.form.d.ts +6 -3
  173. package/lib/cjs/components/tabs/Tabs.form.js +5 -0
  174. package/lib/cjs/components/tabs/Tabs.js +1 -2
  175. package/lib/cjs/components/tags/Tags.d.ts +0 -14
  176. package/lib/cjs/components/tags/Tags.form.d.ts +6 -3
  177. package/lib/cjs/components/tags/Tags.form.js +5 -0
  178. package/lib/cjs/components/textarea/TextArea.d.ts +4 -9
  179. package/lib/cjs/components/textarea/TextArea.form.d.ts +6 -3
  180. package/lib/cjs/components/textarea/TextArea.form.js +5 -0
  181. package/lib/cjs/components/textarea/TextArea.js +2 -2
  182. package/lib/cjs/components/textfield/TextField.d.ts +14 -30
  183. package/lib/cjs/components/textfield/TextField.form.d.ts +6 -3
  184. package/lib/cjs/components/textfield/TextField.form.js +5 -0
  185. package/lib/cjs/components/textfield/TextField.js +16 -17
  186. package/lib/cjs/components/time/Time.form.d.ts +6 -3
  187. package/lib/cjs/components/time/Time.form.js +5 -0
  188. package/lib/cjs/components/unknown/Unknown.form.d.ts +5 -34
  189. package/lib/cjs/components/unknown/Unknown.form.js +4 -0
  190. package/lib/cjs/components/url/Url.form.d.ts +6 -3
  191. package/lib/cjs/components/url/Url.form.js +5 -0
  192. package/lib/cjs/components/well/Well.form.d.ts +6 -3
  193. package/lib/cjs/components/well/Well.form.js +5 -0
  194. package/lib/cjs/formio.embed.d.ts +1 -2
  195. package/lib/cjs/formio.embed.js +2 -100
  196. package/lib/cjs/formio.form.d.ts +11 -4
  197. package/lib/cjs/formio.form.js +13 -5
  198. package/lib/cjs/providers/Providers.d.ts +36 -5
  199. package/lib/cjs/providers/Providers.js +29 -0
  200. package/lib/cjs/providers/address/AddressProvider.d.ts +131 -12
  201. package/lib/cjs/providers/address/AddressProvider.js +88 -2
  202. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +48 -1
  203. package/lib/cjs/providers/address/AzureAddressProvider.js +37 -0
  204. package/lib/cjs/providers/address/CustomAddressProvider.d.ts +27 -4
  205. package/lib/cjs/providers/address/CustomAddressProvider.js +34 -0
  206. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +130 -6
  207. package/lib/cjs/providers/address/GoogleAddressProvider.js +73 -1
  208. package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +32 -7
  209. package/lib/cjs/providers/address/NominatimAddressProvider.js +33 -0
  210. package/lib/cjs/providers/address/index.d.ts +3 -1
  211. package/lib/cjs/providers/processor/fileProcessor.d.ts +7 -1
  212. package/lib/cjs/providers/processor/fileProcessor.js +6 -0
  213. package/lib/cjs/providers/storage/azure.d.ts +6 -13
  214. package/lib/cjs/providers/storage/azure.js +5 -0
  215. package/lib/cjs/providers/storage/base64.d.ts +5 -6
  216. package/lib/cjs/providers/storage/base64.js +4 -0
  217. package/lib/cjs/providers/storage/dropbox.d.ts +6 -4
  218. package/lib/cjs/providers/storage/dropbox.js +5 -0
  219. package/lib/cjs/providers/storage/googleDrive.d.ts +7 -5
  220. package/lib/cjs/providers/storage/googleDrive.js +6 -0
  221. package/lib/cjs/providers/storage/indexeddb.d.ts +5 -7
  222. package/lib/cjs/providers/storage/indexeddb.js +4 -0
  223. package/lib/cjs/providers/storage/s3.d.ts +6 -20
  224. package/lib/cjs/providers/storage/s3.js +5 -0
  225. package/lib/cjs/providers/storage/url.d.ts +6 -7
  226. package/lib/cjs/providers/storage/url.js +10 -0
  227. package/lib/cjs/providers/storage/util.d.ts +24 -1
  228. package/lib/cjs/providers/storage/util.js +18 -0
  229. package/lib/cjs/templates/Templates.d.ts +1 -0
  230. package/lib/cjs/utils/Evaluator.d.ts +6 -3
  231. package/lib/cjs/utils/Evaluator.js +11 -20
  232. package/lib/cjs/utils/builder.d.ts +9 -7
  233. package/lib/cjs/utils/builder.js +10 -5
  234. package/lib/cjs/utils/calendarUtils.d.ts +7 -13
  235. package/lib/cjs/utils/calendarUtils.js +10 -17
  236. package/lib/cjs/utils/formUtils.d.ts +43 -171
  237. package/lib/cjs/utils/formUtils.js +38 -569
  238. package/lib/cjs/utils/utils.d.ts +367 -221
  239. package/lib/cjs/utils/utils.js +335 -228
  240. package/lib/cjs/widgets/CalendarWidget.d.ts +9 -10
  241. package/lib/cjs/widgets/CalendarWidget.js +9 -11
  242. package/lib/mjs/CDN.d.ts +1 -0
  243. package/lib/mjs/CDN.js +6 -3
  244. package/lib/mjs/Element.d.ts +86 -96
  245. package/lib/mjs/Element.js +68 -78
  246. package/lib/mjs/Embed.d.ts +1 -1
  247. package/lib/mjs/Embed.js +52 -12
  248. package/lib/mjs/Form.d.ts +365 -36
  249. package/lib/mjs/Form.js +140 -57
  250. package/lib/mjs/FormBuilder.d.ts +187 -2
  251. package/lib/mjs/FormBuilder.js +32 -8
  252. package/lib/mjs/InlineEmbed.d.ts +7 -0
  253. package/lib/mjs/InlineEmbed.js +112 -0
  254. package/lib/mjs/PDF.d.ts +11 -13
  255. package/lib/mjs/PDF.js +6 -8
  256. package/lib/mjs/Webform.d.ts +180 -139
  257. package/lib/mjs/Webform.js +321 -308
  258. package/lib/mjs/WebformBuilder.d.ts +16 -14
  259. package/lib/mjs/WebformBuilder.js +11 -10
  260. package/lib/mjs/Wizard.d.ts +31 -21
  261. package/lib/mjs/Wizard.js +42 -19
  262. package/lib/mjs/WizardBuilder.d.ts +1 -1
  263. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
  264. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
  265. package/lib/mjs/components/Components.d.ts +4 -4
  266. package/lib/mjs/components/Components.js +3 -3
  267. package/lib/mjs/components/_classes/component/Component.d.ts +502 -269
  268. package/lib/mjs/components/_classes/component/Component.form.d.ts +6 -3
  269. package/lib/mjs/components/_classes/component/Component.form.js +5 -0
  270. package/lib/mjs/components/_classes/component/Component.js +433 -189
  271. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -8
  272. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  273. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  274. package/lib/mjs/components/_classes/field/Field.d.ts +11 -2
  275. package/lib/mjs/components/_classes/field/Field.js +13 -1
  276. package/lib/mjs/components/_classes/input/Input.d.ts +4 -3
  277. package/lib/mjs/components/_classes/input/Input.js +2 -2
  278. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  279. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +6 -3
  280. package/lib/mjs/components/_classes/list/ListComponent.form.js +5 -0
  281. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
  282. package/lib/mjs/components/_classes/multivalue/Multivalue.js +37 -3
  283. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +163 -67
  284. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
  285. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +5 -0
  286. package/lib/mjs/components/_classes/nested/NestedComponent.js +175 -54
  287. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
  288. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  289. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
  290. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
  291. package/lib/mjs/components/address/Address.d.ts +4 -2
  292. package/lib/mjs/components/address/Address.form.d.ts +6 -3
  293. package/lib/mjs/components/address/Address.form.js +5 -0
  294. package/lib/mjs/components/button/Button.d.ts +3 -12
  295. package/lib/mjs/components/button/Button.form.d.ts +6 -3
  296. package/lib/mjs/components/button/Button.form.js +5 -0
  297. package/lib/mjs/components/button/Button.js +5 -0
  298. package/lib/mjs/components/checkbox/Checkbox.d.ts +4 -27
  299. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +6 -3
  300. package/lib/mjs/components/checkbox/Checkbox.form.js +5 -0
  301. package/lib/mjs/components/columns/Columns.d.ts +3 -2
  302. package/lib/mjs/components/columns/Columns.form.d.ts +6 -3
  303. package/lib/mjs/components/columns/Columns.form.js +5 -0
  304. package/lib/mjs/components/columns/Columns.js +1 -1
  305. package/lib/mjs/components/container/Container.form.d.ts +6 -3
  306. package/lib/mjs/components/container/Container.form.js +5 -0
  307. package/lib/mjs/components/content/Content.d.ts +2 -1
  308. package/lib/mjs/components/content/Content.form.d.ts +6 -3
  309. package/lib/mjs/components/content/Content.form.js +5 -0
  310. package/lib/mjs/components/currency/Currency.form.d.ts +6 -3
  311. package/lib/mjs/components/currency/Currency.form.js +5 -0
  312. package/lib/mjs/components/currency/Currency.js +1 -2
  313. package/lib/mjs/components/datagrid/DataGrid.d.ts +8 -7
  314. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +6 -3
  315. package/lib/mjs/components/datagrid/DataGrid.form.js +5 -0
  316. package/lib/mjs/components/datagrid/DataGrid.js +5 -5
  317. package/lib/mjs/components/datamap/DataMap.d.ts +1 -0
  318. package/lib/mjs/components/datamap/DataMap.form.d.ts +6 -3
  319. package/lib/mjs/components/datamap/DataMap.form.js +5 -0
  320. package/lib/mjs/components/datetime/DateTime.d.ts +0 -14
  321. package/lib/mjs/components/datetime/DateTime.form.d.ts +6 -3
  322. package/lib/mjs/components/datetime/DateTime.form.js +5 -0
  323. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  324. package/lib/mjs/components/day/Day.d.ts +22 -48
  325. package/lib/mjs/components/day/Day.form.d.ts +6 -3
  326. package/lib/mjs/components/day/Day.form.js +5 -0
  327. package/lib/mjs/components/day/Day.js +15 -20
  328. package/lib/mjs/components/editgrid/EditGrid.d.ts +7 -3
  329. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +6 -3
  330. package/lib/mjs/components/editgrid/EditGrid.form.js +5 -0
  331. package/lib/mjs/components/editgrid/EditGrid.js +3 -3
  332. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  333. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  334. package/lib/mjs/components/email/Email.form.d.ts +6 -3
  335. package/lib/mjs/components/email/Email.form.js +5 -0
  336. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +6 -3
  337. package/lib/mjs/components/fieldset/Fieldset.form.js +5 -0
  338. package/lib/mjs/components/file/File.d.ts +9 -22
  339. package/lib/mjs/components/file/File.form.d.ts +6 -3
  340. package/lib/mjs/components/file/File.form.js +5 -0
  341. package/lib/mjs/components/file/File.js +1 -2
  342. package/lib/mjs/components/form/Form.d.ts +31 -20
  343. package/lib/mjs/components/form/Form.form.d.ts +6 -3
  344. package/lib/mjs/components/form/Form.form.js +5 -0
  345. package/lib/mjs/components/form/Form.js +13 -10
  346. package/lib/mjs/components/hidden/Hidden.d.ts +1 -11
  347. package/lib/mjs/components/hidden/Hidden.form.d.ts +6 -3
  348. package/lib/mjs/components/hidden/Hidden.form.js +5 -0
  349. package/lib/mjs/components/hidden/Hidden.js +1 -2
  350. package/lib/mjs/components/html/HTML.d.ts +2 -1
  351. package/lib/mjs/components/html/HTML.form.d.ts +6 -3
  352. package/lib/mjs/components/html/HTML.form.js +5 -0
  353. package/lib/mjs/components/number/Number.d.ts +3 -17
  354. package/lib/mjs/components/number/Number.form.d.ts +6 -3
  355. package/lib/mjs/components/number/Number.form.js +5 -0
  356. package/lib/mjs/components/number/Number.js +1 -2
  357. package/lib/mjs/components/panel/Panel.form.d.ts +6 -3
  358. package/lib/mjs/components/panel/Panel.form.js +5 -0
  359. package/lib/mjs/components/panel/Panel.js +0 -1
  360. package/lib/mjs/components/password/Password.form.d.ts +6 -3
  361. package/lib/mjs/components/password/Password.form.js +5 -0
  362. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
  363. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +5 -0
  364. package/lib/mjs/components/radio/Radio.d.ts +3 -26
  365. package/lib/mjs/components/radio/Radio.form.d.ts +6 -3
  366. package/lib/mjs/components/radio/Radio.form.js +5 -0
  367. package/lib/mjs/components/radio/Radio.js +3 -4
  368. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  369. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
  370. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +5 -0
  371. package/lib/mjs/components/select/Select.d.ts +16 -39
  372. package/lib/mjs/components/select/Select.form.d.ts +6 -3
  373. package/lib/mjs/components/select/Select.form.js +5 -0
  374. package/lib/mjs/components/select/Select.js +14 -17
  375. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -17
  376. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
  377. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +5 -0
  378. package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -9
  379. package/lib/mjs/components/signature/Signature.d.ts +1 -14
  380. package/lib/mjs/components/signature/Signature.form.d.ts +6 -3
  381. package/lib/mjs/components/signature/Signature.form.js +5 -0
  382. package/lib/mjs/components/survey/Survey.d.ts +3 -15
  383. package/lib/mjs/components/survey/Survey.form.d.ts +6 -3
  384. package/lib/mjs/components/survey/Survey.form.js +5 -0
  385. package/lib/mjs/components/table/Table.d.ts +2 -1
  386. package/lib/mjs/components/table/Table.form.d.ts +6 -3
  387. package/lib/mjs/components/table/Table.form.js +5 -0
  388. package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
  389. package/lib/mjs/components/tabs/Tabs.form.d.ts +6 -3
  390. package/lib/mjs/components/tabs/Tabs.form.js +5 -0
  391. package/lib/mjs/components/tabs/Tabs.js +1 -2
  392. package/lib/mjs/components/tags/Tags.d.ts +0 -14
  393. package/lib/mjs/components/tags/Tags.form.d.ts +6 -3
  394. package/lib/mjs/components/tags/Tags.form.js +5 -0
  395. package/lib/mjs/components/textarea/TextArea.d.ts +4 -9
  396. package/lib/mjs/components/textarea/TextArea.form.d.ts +6 -3
  397. package/lib/mjs/components/textarea/TextArea.form.js +5 -0
  398. package/lib/mjs/components/textarea/TextArea.js +2 -2
  399. package/lib/mjs/components/textfield/TextField.d.ts +14 -30
  400. package/lib/mjs/components/textfield/TextField.form.d.ts +6 -3
  401. package/lib/mjs/components/textfield/TextField.form.js +5 -0
  402. package/lib/mjs/components/textfield/TextField.js +16 -17
  403. package/lib/mjs/components/time/Time.form.d.ts +6 -3
  404. package/lib/mjs/components/time/Time.form.js +5 -0
  405. package/lib/mjs/components/unknown/Unknown.form.d.ts +5 -34
  406. package/lib/mjs/components/unknown/Unknown.form.js +4 -0
  407. package/lib/mjs/components/url/Url.form.d.ts +6 -3
  408. package/lib/mjs/components/url/Url.form.js +5 -0
  409. package/lib/mjs/components/well/Well.form.d.ts +6 -3
  410. package/lib/mjs/components/well/Well.form.js +5 -0
  411. package/lib/mjs/formio.embed.d.ts +1 -2
  412. package/lib/mjs/formio.embed.js +2 -99
  413. package/lib/mjs/formio.form.d.ts +11 -4
  414. package/lib/mjs/formio.form.js +10 -3
  415. package/lib/mjs/providers/Providers.d.ts +36 -5
  416. package/lib/mjs/providers/Providers.js +29 -0
  417. package/lib/mjs/providers/address/AddressProvider.d.ts +131 -12
  418. package/lib/mjs/providers/address/AddressProvider.js +88 -2
  419. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +48 -1
  420. package/lib/mjs/providers/address/AzureAddressProvider.js +37 -0
  421. package/lib/mjs/providers/address/CustomAddressProvider.d.ts +27 -4
  422. package/lib/mjs/providers/address/CustomAddressProvider.js +34 -0
  423. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +130 -6
  424. package/lib/mjs/providers/address/GoogleAddressProvider.js +73 -1
  425. package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +32 -7
  426. package/lib/mjs/providers/address/NominatimAddressProvider.js +33 -0
  427. package/lib/mjs/providers/address/index.d.ts +3 -1
  428. package/lib/mjs/providers/processor/fileProcessor.d.ts +7 -1
  429. package/lib/mjs/providers/processor/fileProcessor.js +6 -0
  430. package/lib/mjs/providers/storage/azure.d.ts +6 -13
  431. package/lib/mjs/providers/storage/azure.js +5 -0
  432. package/lib/mjs/providers/storage/base64.d.ts +5 -6
  433. package/lib/mjs/providers/storage/base64.js +4 -0
  434. package/lib/mjs/providers/storage/dropbox.d.ts +6 -4
  435. package/lib/mjs/providers/storage/dropbox.js +5 -0
  436. package/lib/mjs/providers/storage/googleDrive.d.ts +7 -5
  437. package/lib/mjs/providers/storage/googleDrive.js +6 -0
  438. package/lib/mjs/providers/storage/indexeddb.d.ts +5 -7
  439. package/lib/mjs/providers/storage/indexeddb.js +4 -0
  440. package/lib/mjs/providers/storage/s3.d.ts +6 -20
  441. package/lib/mjs/providers/storage/s3.js +5 -0
  442. package/lib/mjs/providers/storage/url.d.ts +6 -7
  443. package/lib/mjs/providers/storage/url.js +10 -0
  444. package/lib/mjs/providers/storage/util.d.ts +24 -1
  445. package/lib/mjs/providers/storage/util.js +18 -0
  446. package/lib/mjs/templates/Templates.d.ts +1 -0
  447. package/lib/mjs/utils/Evaluator.d.ts +6 -3
  448. package/lib/mjs/utils/Evaluator.js +9 -20
  449. package/lib/mjs/utils/builder.d.ts +9 -7
  450. package/lib/mjs/utils/builder.js +10 -5
  451. package/lib/mjs/utils/calendarUtils.d.ts +7 -13
  452. package/lib/mjs/utils/calendarUtils.js +10 -17
  453. package/lib/mjs/utils/formUtils.d.ts +43 -171
  454. package/lib/mjs/utils/formUtils.js +6 -554
  455. package/lib/mjs/utils/utils.d.ts +367 -221
  456. package/lib/mjs/utils/utils.js +329 -222
  457. package/lib/mjs/widgets/CalendarWidget.d.ts +9 -10
  458. package/lib/mjs/widgets/CalendarWidget.js +9 -11
  459. package/package.json +22 -22
  460. package/sdk.d.ts +1 -0
  461. package/utils.d.ts +1 -0
@@ -64,8 +64,7 @@ class DayComponent extends Field_1.default {
64
64
  }
65
65
  /**
66
66
  * The empty value for day component.
67
- *
68
- * @return {'00/00/0000'}
67
+ * @returns {'00/00/0000'} - The empty value of the day component.
69
68
  */
70
69
  get emptyValue() {
71
70
  return '00/00/0000';
@@ -356,10 +355,10 @@ class DayComponent extends Field_1.default {
356
355
  return dateParts.join('/');
357
356
  }
358
357
  /**
359
- * Set the value at a specific index.
360
- *
361
- * @param index
362
- * @param value
358
+ * Set the value at a specific index and updates the component's refs.
359
+ * @param {number} index - The index to set.
360
+ * @param {any} value - The value to set.
361
+ * @returns {null|void} - Returns null if the value is invalid, otherwise void.
363
362
  */
364
363
  setValueAt(index, value) {
365
364
  // temporary solution to avoid input reset
@@ -413,7 +412,7 @@ class DayComponent extends Field_1.default {
413
412
  }
414
413
  /**
415
414
  * Get the format for the value string.
416
- * @returns {string}
415
+ * @returns {string} - the format for the value string.
417
416
  */
418
417
  get format() {
419
418
  let format = '';
@@ -437,9 +436,8 @@ class DayComponent extends Field_1.default {
437
436
  }
438
437
  /**
439
438
  * Return the date for this component.
440
- *
441
- * @param value
442
- * @return {*}
439
+ * @param {any} value - The value to convert to a date.
440
+ * @returns {null|string} - The date string.
443
441
  */
444
442
  getDate(value) {
445
443
  let defaults = [], day, month, year;
@@ -485,16 +483,15 @@ class DayComponent extends Field_1.default {
485
483
  return result;
486
484
  }
487
485
  /**
488
- * Return the date object for this component.
489
- * @returns {Date}
486
+ * Return the date string for this component.
487
+ * @returns {string|null} - The date string for this component.
490
488
  */
491
489
  get date() {
492
490
  return this.getDate();
493
491
  }
494
492
  /**
495
493
  * Return the raw value.
496
- *
497
- * @returns {Date}
494
+ * @returns {string} - The raw value of the component.
498
495
  */
499
496
  get validationValue() {
500
497
  return this.dataValue;
@@ -505,9 +502,8 @@ class DayComponent extends Field_1.default {
505
502
  }
506
503
  /**
507
504
  * Get the value at a specific index.
508
- *
509
- * @param index
510
- * @returns {*}
505
+ * @param {number} index - The index to get the value from.
506
+ * @returns {*} - The value at index.
511
507
  */
512
508
  getValueAt(index) {
513
509
  const date = this.date || this.emptyValue;
@@ -522,9 +518,8 @@ class DayComponent extends Field_1.default {
522
518
  }
523
519
  /**
524
520
  * Get the input value of the date.
525
- *
526
- * @param value
527
- * @return {null}
521
+ * @param {any} value - The value to convert to a string.
522
+ * @returns {string|null} - The string value of the date.
528
523
  */
529
524
  getValueAsString(value) {
530
525
  return this.getDate(value) || '';
@@ -19,8 +19,9 @@ export default class EditGridComponent extends NestedArrayComponent {
19
19
  get rowTemplate(): any;
20
20
  get headerTemplate(): any;
21
21
  /**
22
- * Returns true if the component has nested components which don't trigger changes on the root level
23
- */ get hasScopedChildren(): boolean;
22
+ * @returns {boolean} - Returns true if the component has nested components which don't trigger changes on the root level
23
+ */
24
+ get hasScopedChildren(): boolean;
24
25
  get emptyValue(): never[];
25
26
  get editgridKey(): string;
26
27
  get rowRef(): string;
@@ -35,6 +36,8 @@ export default class EditGridComponent extends NestedArrayComponent {
35
36
  get inlineEditMode(): any;
36
37
  get saveEditMode(): boolean;
37
38
  get minLength(): any;
39
+ set data(value: any);
40
+ get data(): any;
38
41
  get displayAsTable(): any;
39
42
  get iteratableRows(): any;
40
43
  get defaultValue(): any[];
@@ -90,9 +93,10 @@ export default class EditGridComponent extends NestedArrayComponent {
90
93
  validateRow(editRow: any, dirty: any, forceSilentCheck: any): any;
91
94
  showRowErrorAlerts(editRow: any, errors: any): void;
92
95
  /**
93
- * Return that this component processes its own validation.
96
+ * @returns {boolean} - Return that this component processes its own validation.
94
97
  */
95
98
  get processOwnValidation(): boolean;
99
+ checkComponentValidity(data: any, dirty: any, row: any, options?: {}, errors?: any[]): boolean;
96
100
  setRowInvalid(ref: any, index: any): void;
97
101
  changeState(changed: any, flags: any): void;
98
102
  openWhenEmpty(): void;
@@ -1,3 +1,6 @@
1
- export default function _default(...extend: any[]): {
2
- components: any;
3
- };
1
+ /**
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
5
+ */
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -8,6 +8,11 @@ const EditGrid_edit_data_1 = __importDefault(require("./editForm/EditGrid.edit.d
8
8
  const EditGrid_edit_display_1 = __importDefault(require("./editForm/EditGrid.edit.display"));
9
9
  const EditGrid_edit_templates_1 = __importDefault(require("./editForm/EditGrid.edit.templates"));
10
10
  const EditGrid_edit_validation_1 = __importDefault(require("./editForm/EditGrid.edit.validation"));
11
+ /**
12
+ * The Edit Form function.
13
+ * @param {...any} extend - The components that extend the edit form.
14
+ * @returns {import('@formio/core').Component[]} - The edit form components.
15
+ */
11
16
  function default_1(...extend) {
12
17
  return Components_1.default.baseEditForm([
13
18
  {
@@ -166,8 +166,8 @@ class EditGridComponent extends NestedArrayComponent_1.default {
166
166
  return headerTemplate;
167
167
  }
168
168
  /**
169
- * Returns true if the component has nested components which don't trigger changes on the root level
170
- */ //
169
+ * @returns {boolean} - Returns true if the component has nested components which don't trigger changes on the root level
170
+ */
171
171
  get hasScopedChildren() {
172
172
  return !this.inlineEditMode;
173
173
  }
@@ -1046,7 +1046,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
1046
1046
  }
1047
1047
  }
1048
1048
  /**
1049
- * Return that this component processes its own validation.
1049
+ * @returns {boolean} - Return that this component processes its own validation.
1050
1050
  */
1051
1051
  get processOwnValidation() {
1052
1052
  return true;
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const Evaluator_1 = __importDefault(require("../../../utils/Evaluator"));
3
+ const Evaluator_1 = require("../../../utils/Evaluator");
7
4
  exports.default = [
8
5
  {
9
6
  key: 'placeholder',
@@ -38,7 +35,7 @@ exports.default = [
38
35
  weight: 1002,
39
36
  input: false,
40
37
  customConditional() {
41
- return !Evaluator_1.default.noeval;
38
+ return !Evaluator_1.Evaluator.noeval;
42
39
  },
43
40
  },
44
41
  {
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const Evaluator_1 = __importDefault(require("../../../utils/Evaluator"));
3
+ const Evaluator_1 = require("../../../utils/Evaluator");
7
4
  exports.default = [
8
5
  {
9
6
  type: 'textarea',
@@ -18,7 +15,7 @@ exports.default = [
18
15
  description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
19
16
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the header of the Edit grid.',
20
17
  customConditional({ data }) {
21
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && !data.displayAsTable;
18
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && !data.displayAsTable;
22
19
  }
23
20
  },
24
21
  {
@@ -34,7 +31,7 @@ exports.default = [
34
31
  description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
35
32
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the header of the Edit grid.',
36
33
  customConditional({ data }) {
37
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && data.displayAsTable;
34
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && data.displayAsTable;
38
35
  }
39
36
  },
40
37
  {
@@ -52,7 +49,7 @@ exports.default = [
52
49
  ' To add click events, add the classes "editRow" and "removeRow" to elements.',
53
50
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render each row of the Edit grid.',
54
51
  customConditional({ data }) {
55
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && !data.displayAsTable;
52
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && !data.displayAsTable;
56
53
  }
57
54
  },
58
55
  {
@@ -70,7 +67,7 @@ exports.default = [
70
67
  ' To add click events, add the classes "editRow" and "removeRow" to elements.',
71
68
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render each row of the Edit grid.',
72
69
  customConditional({ data }) {
73
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && data.displayAsTable;
70
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && data.displayAsTable;
74
71
  }
75
72
  },
76
73
  {
@@ -85,7 +82,7 @@ exports.default = [
85
82
  description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
86
83
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the footer of the Edit grid.',
87
84
  customConditional() {
88
- return !Evaluator_1.default.noeval || Evaluator_1.default.protectedEval;
85
+ return !Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval;
89
86
  }
90
87
  },
91
88
  {
@@ -1,3 +1,6 @@
1
- export default function _default(...extend: any[]): {
2
- components: any;
3
- };
1
+ /**
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
5
+ */
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
7
7
  const Email_edit_display_1 = __importDefault(require("./editForm/Email.edit.display"));
8
8
  const Email_edit_validation_1 = __importDefault(require("./editForm/Email.edit.validation"));
9
+ /**
10
+ * The Edit Form function.
11
+ * @param {...any} extend - The components that extend the edit form.
12
+ * @returns {import('@formio/core').Component[]} - The edit form components.
13
+ */
9
14
  function default_1(...extend) {
10
15
  return (0, TextField_form_1.default)([
11
16
  {
@@ -1,3 +1,6 @@
1
- export default function _default(...extend: any[]): {
2
- components: any;
3
- };
1
+ /**
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
5
+ */
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -5,6 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
7
  const Fieldset_edit_display_1 = __importDefault(require("./editForm/Fieldset.edit.display"));
8
+ /**
9
+ * The Edit Form function.
10
+ * @param {...any} extend - The components that extend the edit form.
11
+ * @returns {import('@formio/core').Component[]} - The edit form components.
12
+ */
8
13
  function default_1(...extend) {
9
14
  return (0, NestedComponent_form_1.default)([
10
15
  {
@@ -9,23 +9,9 @@ export default class FileComponent extends Field {
9
9
  };
10
10
  static get serverConditionSettings(): {
11
11
  operators: string[];
12
- constructor: Function;
13
- toString(): string;
14
- toLocaleString(): string;
15
- valueOf(): Object;
16
- hasOwnProperty(v: PropertyKey): boolean;
17
- isPrototypeOf(v: Object): boolean;
18
- propertyIsEnumerable(v: PropertyKey): boolean;
19
12
  };
20
13
  static get conditionOperatorsSettings(): {
21
14
  operators: string[];
22
- constructor: Function;
23
- toString(): string;
24
- toLocaleString(): string;
25
- valueOf(): Object;
26
- hasOwnProperty(v: PropertyKey): boolean;
27
- isPrototypeOf(v: Object): boolean;
28
- propertyIsEnumerable(v: PropertyKey): boolean;
29
15
  };
30
16
  static savedValueTypes(schema: any): string[];
31
17
  support: {
@@ -59,7 +45,7 @@ export default class FileComponent extends Field {
59
45
  type: number;
60
46
  actions: number;
61
47
  };
62
- render(): any;
48
+ render(): Field;
63
49
  getVideoStream(constraints: any): any;
64
50
  stopVideoStream(videoStream: any): void;
65
51
  getFrame(videoPlayer: any): Promise<any>;
@@ -79,6 +65,7 @@ export default class FileComponent extends Field {
79
65
  get actions(): {
80
66
  abort: (id: any) => void;
81
67
  };
68
+ attach(element: any): Promise<void>;
82
69
  filesReady: Promise<any> | undefined;
83
70
  filesReadyResolve: ((value: any) => void) | undefined;
84
71
  filesReadyReject: ((reason?: any) => void) | undefined;
@@ -102,34 +89,34 @@ export default class FileComponent extends Field {
102
89
  file: any;
103
90
  size: any;
104
91
  status: string;
105
- message: any;
92
+ message: string;
106
93
  hash: string;
107
94
  };
108
95
  handleSubmissionRevisions(file: any): Promise<any>;
109
96
  validateFileName(file: any): {
110
97
  status: string;
111
- message: any;
98
+ message: string;
112
99
  } | {
113
100
  status?: undefined;
114
101
  message?: undefined;
115
102
  };
116
103
  validateFileSettings(file: any): {
117
104
  status: string;
118
- message: any;
105
+ message: string;
119
106
  } | {
120
107
  status?: undefined;
121
108
  message?: undefined;
122
109
  };
123
110
  validateFileService(): {
124
111
  status: string;
125
- message: any;
112
+ message: string;
126
113
  } | {
127
114
  status?: undefined;
128
115
  message?: undefined;
129
116
  };
130
117
  validateFile(file: any): {
131
118
  status: string;
132
- message: any;
119
+ message: string;
133
120
  } | {
134
121
  status?: undefined;
135
122
  message?: undefined;
@@ -140,10 +127,10 @@ export default class FileComponent extends Field {
140
127
  };
141
128
  triggerFileProcessor(file: any): Promise<{
142
129
  status: string;
143
- message: any;
130
+ message: string;
144
131
  file?: undefined;
145
132
  } | {
146
- file: any;
133
+ file: FormData | null;
147
134
  status?: undefined;
148
135
  message?: undefined;
149
136
  }>;
@@ -1,3 +1,6 @@
1
- export default function _default(...extend: any[]): {
2
- components: any;
3
- };
1
+ /**
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
5
+ */
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -8,6 +8,11 @@ const File_edit_data_1 = __importDefault(require("./editForm/File.edit.data"));
8
8
  const File_edit_display_1 = __importDefault(require("./editForm/File.edit.display"));
9
9
  const File_edit_file_1 = __importDefault(require("./editForm/File.edit.file"));
10
10
  const File_edit_validation_1 = __importDefault(require("./editForm/File.edit.validation"));
11
+ /**
12
+ * The Edit Form function.
13
+ * @param {...any} extend - The components that extend the edit form.
14
+ * @returns {import('@formio/core').Component[]} - The edit form components.
15
+ */
11
16
  function default_1(...extend) {
12
17
  return Components_1.default.baseEditForm([
13
18
  {
@@ -652,8 +652,7 @@ class FileComponent extends Field_1.default {
652
652
  // Check if file with the same name is being uploaded
653
653
  const fileWithSameNameUploading = this.filesToSync.filesToUpload
654
654
  .some(fileToSync => { var _a; return ((_a = fileToSync.file) === null || _a === void 0 ? void 0 : _a.name) === file.name; });
655
- const fileWithSameNameUploaded = this.dataValue
656
- .some(fileStatus => fileStatus.originalName === file.name);
655
+ const fileWithSameNameUploaded = lodash_1.default.some(this.dataValue, fileStatus => fileStatus.originalName === file.name);
657
656
  return fileWithSameNameUploaded || fileWithSameNameUploading
658
657
  ? {
659
658
  status: 'error',
@@ -13,41 +13,47 @@ export default class FormComponent extends Component {
13
13
  valueChanged: boolean | undefined;
14
14
  subForm: any;
15
15
  formSrc: any;
16
- get dataReady(): any;
16
+ get dataReady(): Promise<any>;
17
17
  get emptyValue(): {
18
18
  data: {};
19
19
  };
20
- get ready(): any;
20
+ get ready(): Promise<any>;
21
21
  get useOriginalRevision(): any;
22
22
  setFormRevision(rev: any): void;
23
23
  subFormRevision: any;
24
24
  getComponent(path: any, fn: any): any;
25
25
  getSubOptions(options?: {}): {};
26
- render(): any;
26
+ render(): string;
27
27
  asString(value: any): any;
28
- attach(element: any): Promise<any>;
28
+ /**
29
+ * Prints out the value of form components as a datagrid value.
30
+ */
31
+ getValueAsString(value: any, options: any): any;
32
+ attach(element: any): Promise<void>;
29
33
  get hasLoadedForm(): any;
30
34
  get isRevisionChanged(): any;
31
- subFormReady: any;
35
+ subFormReady: Promise<any> | null | undefined;
32
36
  /**
33
37
  * Pass everyComponent to subform.
34
- * @param args
35
- * @returns {*|void}
38
+ * @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
39
+ * @returns {*} - The result of the subform's everyComponent method.
36
40
  */
37
- everyComponent(...args: any[]): any | void;
41
+ everyComponent(...args: any[]): any;
38
42
  setSubFormDisabled(subForm: any): void;
39
43
  updateSubWizards(subForm: any): void;
40
44
  /**
41
45
  * Create a subform instance.
42
- *
43
- * @return {*}
46
+ * @param {boolean} [fromAttach] - This function is being called from an `attach` method.
47
+ * @returns {*} - The subform instance.
44
48
  */
45
- createSubForm(fromAttach: any): any;
49
+ createSubForm(fromAttach?: boolean | undefined): any;
46
50
  hideSubmitButton(component: any): void;
47
51
  /**
48
52
  * Load the subform.
53
+ * @param {boolean} fromAttach - This function is being called from an `attach` method.
54
+ * @returns {Promise} - The promise that resolves when the subform is loaded.
49
55
  */
50
- loadSubForm(fromAttach: any): any;
56
+ loadSubForm(fromAttach: boolean): Promise<any>;
51
57
  subFormLoading: boolean | undefined;
52
58
  get subFormData(): any;
53
59
  checkComponentValidity(data: any, dirty: any, row: any, options: any, errors?: any[]): any;
@@ -56,25 +62,30 @@ export default class FormComponent extends Component {
56
62
  setPristine(pristine: any): void;
57
63
  /**
58
64
  * Determine if the subform should be submitted.
59
- * @return {*|boolean}
65
+ * @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
60
66
  */
61
67
  get shouldSubmit(): any;
62
68
  /**
63
69
  * Returns the data for the subform.
64
- *
65
- * @return {*}
70
+ * @returns {*} - the data for the subform.
66
71
  */
67
72
  getSubFormData(): any;
68
73
  /**
69
74
  * Submit the subform if configured to do so.
70
- *
71
- * @return {*}
75
+ * @returns {Promise} - The promise that resolves when the subform is submitted.
72
76
  */
73
- submitSubForm(): any;
77
+ submitSubForm(): Promise<any>;
74
78
  /**
75
79
  * Submit the form before the next page is triggered.
80
+ * @param {Function} next - The function to trigger the next page.
81
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
82
+ */
83
+ beforePage(next: Function): Promise<any>;
84
+ /**
85
+ * Submit the form before the whole form is triggered.
86
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
76
87
  */
77
- beforePage(next: any): any;
88
+ beforeSubmit(): Promise<any>;
78
89
  isSubFormLazyLoad(): any;
79
90
  isHidden(): boolean;
80
91
  setValue(submission: any, flags?: {}): boolean;
@@ -84,7 +95,7 @@ export default class FormComponent extends Component {
84
95
  /**
85
96
  * Determines if this form is a Nested Wizard
86
97
  * which means it should be a Wizard itself and should be a direct child of a Wizard's page
87
- * @returns {boolean}
98
+ * @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
88
99
  */
89
100
  get isNestedWizard(): boolean;
90
101
  isInternalEvent(event: any): boolean;
@@ -1,3 +1,6 @@
1
- export default function _default(...extend: any[]): {
2
- components: any;
3
- };
1
+ /**
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
5
+ */
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -7,6 +7,11 @@ const NestedComponent_form_1 = __importDefault(require("../_classes/nested/Neste
7
7
  const Form_edit_display_1 = __importDefault(require("./editForm/Form.edit.display"));
8
8
  const Form_edit_form_1 = __importDefault(require("./editForm/Form.edit.form"));
9
9
  const Form_edit_data_1 = __importDefault(require("./editForm/Form.edit.data"));
10
+ /**
11
+ * The Edit Form function.
12
+ * @param {...any} extend - The components that extend the edit form.
13
+ * @returns {import('@formio/core').Component[]} - The edit form components.
14
+ */
10
15
  function default_1(...extend) {
11
16
  return (0, NestedComponent_form_1.default)([
12
17
  {
@@ -349,8 +349,8 @@ class FormComponent extends Component_1.default {
349
349
  }
350
350
  /**
351
351
  * Pass everyComponent to subform.
352
- * @param args
353
- * @returns {*|void}
352
+ * @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
353
+ * @returns {*} - The result of the subform's everyComponent method.
354
354
  */
355
355
  everyComponent(...args) {
356
356
  if (this.subForm) {
@@ -375,8 +375,8 @@ class FormComponent extends Component_1.default {
375
375
  }
376
376
  /**
377
377
  * Create a subform instance.
378
- *
379
- * @return {*}
378
+ * @param {boolean} [fromAttach] - This function is being called from an `attach` method.
379
+ * @returns {*} - The subform instance.
380
380
  */
381
381
  createSubForm(fromAttach) {
382
382
  this.subFormReady = this.loadSubForm(fromAttach).then((form) => {
@@ -429,6 +429,8 @@ class FormComponent extends Component_1.default {
429
429
  }
430
430
  /**
431
431
  * Load the subform.
432
+ * @param {boolean} fromAttach - This function is being called from an `attach` method.
433
+ * @returns {Promise} - The promise that resolves when the subform is loaded.
432
434
  */
433
435
  loadSubForm(fromAttach) {
434
436
  var _a, _b, _c, _d, _e;
@@ -513,15 +515,14 @@ class FormComponent extends Component_1.default {
513
515
  }
514
516
  /**
515
517
  * Determine if the subform should be submitted.
516
- * @return {*|boolean}
518
+ * @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
517
519
  */
518
520
  get shouldSubmit() {
519
521
  return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.isHidden();
520
522
  }
521
523
  /**
522
524
  * Returns the data for the subform.
523
- *
524
- * @return {*}
525
+ * @returns {*} - the data for the subform.
525
526
  */
526
527
  getSubFormData() {
527
528
  if (lodash_1.default.get(this.subForm, 'form.display') === 'pdf') {
@@ -533,8 +534,7 @@ class FormComponent extends Component_1.default {
533
534
  }
534
535
  /**
535
536
  * Submit the subform if configured to do so.
536
- *
537
- * @return {*}
537
+ * @returns {Promise} - The promise that resolves when the subform is submitted.
538
538
  */
539
539
  submitSubForm() {
540
540
  // If we wish to submit the form on next page, then do that here.
@@ -561,6 +561,8 @@ class FormComponent extends Component_1.default {
561
561
  }
562
562
  /**
563
563
  * Submit the form before the next page is triggered.
564
+ * @param {Function} next - The function to trigger the next page.
565
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
564
566
  */
565
567
  beforePage(next) {
566
568
  // Should not submit child forms if we are going to the previous page
@@ -571,6 +573,7 @@ class FormComponent extends Component_1.default {
571
573
  }
572
574
  /**
573
575
  * Submit the form before the whole form is triggered.
576
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
574
577
  */
575
578
  beforeSubmit() {
576
579
  var _a, _b, _c;
@@ -686,7 +689,7 @@ class FormComponent extends Component_1.default {
686
689
  /**
687
690
  * Determines if this form is a Nested Wizard
688
691
  * which means it should be a Wizard itself and should be a direct child of a Wizard's page
689
- * @returns {boolean}
692
+ * @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
690
693
  */
691
694
  get isNestedWizard() {
692
695
  var _a, _b, _c, _d, _e;
@@ -8,17 +8,7 @@ export default class HiddenComponent extends Input {
8
8
  showPreview: boolean;
9
9
  schema: any;
10
10
  };
11
- get inputInfo(): {
12
- type: string;
13
- component: any;
14
- changeEvent: string;
15
- attr: {
16
- name: any;
17
- type: any;
18
- class: string;
19
- lang: any;
20
- };
21
- };
11
+ get inputInfo(): any;
22
12
  labelIsHidden(): boolean;
23
13
  get emptyValue(): string;
24
14
  setValue(value: any, flags?: {}): boolean;