@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
@@ -13,11 +13,12 @@ export default class TableComponent extends NestedComponent {
13
13
  };
14
14
  static savedValueTypes(): never[];
15
15
  constructor(...args: any[]);
16
+ get schema(): any;
16
17
  get cellClassName(): string;
17
18
  get tableKey(): string;
18
19
  get colWidth(): string;
19
20
  noField: boolean;
20
21
  table: any[] | undefined;
21
- render(): any;
22
+ render(): import("../_classes/field/Field").default;
22
23
  }
23
24
  import NestedComponent from '../_classes/nested/NestedComponent';
@@ -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[];
@@ -1,5 +1,10 @@
1
1
  import nestedComponentForm from '../_classes/nested/NestedComponent.form';
2
2
  import TableEditDisplay from './editForm/Table.edit.display';
3
+ /**
4
+ * The Edit Form function.
5
+ * @param {...any} extend - The components that extend the edit form.
6
+ * @returns {import('@formio/core').Component[]} - The edit form components.
7
+ */
3
8
  export default function (...extend) {
4
9
  return nestedComponentForm([
5
10
  {
@@ -16,15 +16,15 @@ export default class TabsComponent extends NestedComponent {
16
16
  currentTab: number;
17
17
  noField: boolean;
18
18
  tabs: any[] | undefined;
19
- render(): any;
19
+ render(): import("../_classes/field/Field").default;
20
20
  detach(all: any): void;
21
21
  /**
22
22
  * Set the current tab.
23
- *
24
- * @param index
23
+ * @param {number} index - The index of the tab to set.
25
24
  */
26
- setTab(index: any): void;
25
+ setTab(index: number): void;
27
26
  beforeFocus(component: any): void;
27
+ setErrorClasses(elements: any, dirty: any, hasErrors: any, hasMessages: any, element?: any): void;
28
28
  handleTabsValidation(): void;
29
29
  }
30
30
  import NestedComponent from '../_classes/nested/NestedComponent';
@@ -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[];
@@ -1,5 +1,10 @@
1
1
  import nestedComponentForm from '../_classes/nested/NestedComponent.form';
2
2
  import TabsEditDisplay from './editForm/Tabs.edit.display';
3
+ /**
4
+ * The Edit Form function.
5
+ * @param {...any} extend - The components that extend the edit form.
6
+ * @returns {import('@formio/core').Component[]} - The edit form components.
7
+ */
3
8
  export default function (...extend) {
4
9
  return nestedComponentForm([
5
10
  {
@@ -107,8 +107,7 @@ export default class TabsComponent extends NestedComponent {
107
107
  }
108
108
  /**
109
109
  * Set the current tab.
110
- *
111
- * @param index
110
+ * @param {number} index - The index of the tab to set.
112
111
  */
113
112
  setTab(index) {
114
113
  if (!this.tabs || !this.tabs[index] || !this.refs[this.tabKey] || !this.refs[this.tabKey][index]) {
@@ -9,23 +9,9 @@ export default class TagsComponent extends Input {
9
9
  };
10
10
  static get serverConditionSettings(): {
11
11
  operators: any[];
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: any[];
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): any[];
31
17
  get emptyValue(): "" | never[];
@@ -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[];
@@ -1,5 +1,10 @@
1
1
  import Components from '../Components';
2
2
  import TagsEditData from './editForm/Tags.edit.data';
3
+ /**
4
+ * The Edit Form function.
5
+ * @param {...any} extend - The components that extend the edit form.
6
+ * @returns {import('@formio/core').Component[]} - The edit form components.
7
+ */
3
8
  export default function (...extend) {
4
9
  return Components.baseEditForm([
5
10
  {
@@ -5,10 +5,10 @@ export default class TextAreaComponent extends TextFieldComponent {
5
5
  get autoExpand(): any;
6
6
  /**
7
7
  * Updates the editor value.
8
- *
9
- * @param newValue
8
+ * @param {number} index - The index of the editor.
9
+ * @param {any} newValue - The new editor value.
10
10
  */
11
- updateEditorValue(index: any, newValue: any): void;
11
+ updateEditorValue(index: number, newValue: any): void;
12
12
  autoModified: boolean | undefined;
13
13
  attachElement(element: any, index: any): any;
14
14
  imageHandler(moduleInstance: any, range: any, files: any): void;
@@ -24,12 +24,7 @@ export default class TextAreaComponent extends TextFieldComponent {
24
24
  setImagesUrl(images: any): Promise<any>;
25
25
  addAutoExpanding(textarea: any, index: any): void;
26
26
  trimBlanks(value: any): any;
27
- onChange(flags: any, fromRoot: any): {
28
- instance: this;
29
- component: any;
30
- value: any;
31
- flags: any;
32
- };
27
+ onChange(flags: any, fromRoot: any): boolean;
33
28
  hasChanged(newValue: any, oldValue: any): boolean;
34
29
  getConvertedValue(value: any): any;
35
30
  focus(): 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[];
@@ -1,6 +1,11 @@
1
1
  import textEditForm from '../textfield/TextField.form';
2
2
  import TextAreaEditDisplay from './editForm/TextArea.edit.display';
3
3
  import TextAreaEditValidation from './editForm/TextArea.edit.validation';
4
+ /**
5
+ * The Edit Form function.
6
+ * @param {...any} extend - The components that extend the edit form.
7
+ * @returns {import('@formio/core').Component[]} - The edit form components.
8
+ */
4
9
  export default function (...extend) {
5
10
  return textEditForm([
6
11
  {
@@ -77,8 +77,8 @@ export default class TextAreaComponent extends TextFieldComponent {
77
77
  }
78
78
  /**
79
79
  * Updates the editor value.
80
- *
81
- * @param newValue
80
+ * @param {number} index - The index of the editor.
81
+ * @param {any} newValue - The new editor value.
82
82
  */
83
83
  updateEditorValue(index, newValue) {
84
84
  newValue = this.getConvertedValue(this.trimBlanks(newValue));
@@ -10,55 +10,39 @@ export default class TextFieldComponent extends Input {
10
10
  static get serverConditionSettings(): {
11
11
  operators: any[];
12
12
  valueComponent(classComp: any): any;
13
- constructor: Function;
14
- toString(): string;
15
- toLocaleString(): string;
16
- valueOf(): Object;
17
- hasOwnProperty(v: PropertyKey): boolean;
18
- isPrototypeOf(v: Object): boolean;
19
- propertyIsEnumerable(v: PropertyKey): boolean;
20
13
  };
21
14
  static get conditionOperatorsSettings(): {
22
15
  operators: any[];
23
16
  valueComponent(classComp: any): any;
24
- constructor: Function;
25
- toString(): string;
26
- toLocaleString(): string;
27
- valueOf(): Object;
28
- hasOwnProperty(v: PropertyKey): boolean;
29
- isPrototypeOf(v: Object): boolean;
30
- propertyIsEnumerable(v: PropertyKey): boolean;
31
17
  };
32
18
  static savedValueTypes(schema: any): string[];
33
19
  get emptyValue(): string;
34
20
  /**
35
- * Returns the mask value object.
36
- *
37
- * @param value
38
- * @param flags
39
- * @return {*}
21
+ * Returns the mask value object (mutates value!).
22
+ * @param {any} [value] - The value to convert to a mask value.
23
+ * @param {any} [flags] - The flags to use when converting to a mask value.
24
+ * @returns {*} - The value as a mask value.
40
25
  */
41
- maskValue(value: any, flags?: {}): any;
26
+ maskValue(value?: any, flags?: any): any;
42
27
  /**
43
28
  * Normalize the value set in the data object.
44
- *
45
- * @param value
46
- * @param flags
47
- * @return {*}
29
+ * @param {any} value - The value to normalize.
30
+ * @param {any} flags - The flags to use when normalizing the value.
31
+ * @returns {*} - Returns the normalized value.
48
32
  */
49
- normalizeValue(value: any, flags?: {}): any;
50
- unmaskValue(value: any, format?: any): any;
33
+ normalizeValue(value: any, flags?: any): any;
34
+ unmaskValue(value: any, format?: any): string;
51
35
  /**
52
36
  * Returns the value at this index.
53
- *
54
- * @param index
55
- * @return {*}
37
+ * @param {number} index - The index to get the value from.
38
+ * @returns {*} - The value at the index.
56
39
  */
57
- getValueAt(index: any): any;
40
+ getValueAt(index: number): any;
58
41
  checkInputMaskValue(inputMask: any): boolean;
59
42
  setInputMask(input: any, inputMask: any, usePlaceholder: any): void;
60
43
  isHtmlRenderMode(): any;
61
44
  truncateMultipleSpaces(value: any): any;
62
45
  beforeSubmit(): Promise<any>;
46
+ getValueAsString(value: any, options: any): string;
63
47
  }
64
48
  import Input from '../_classes/input/Input';
@@ -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[];
@@ -2,6 +2,11 @@ import Components from '../Components';
2
2
  import TextFieldEditData from './editForm/TextField.edit.data';
3
3
  import TextFieldEditDisplay from './editForm/TextField.edit.display';
4
4
  import TextFieldEditValidation from './editForm/TextField.edit.validation';
5
+ /**
6
+ * The Edit Form function.
7
+ * @param {...any} extend - The components that extend the edit form.
8
+ * @returns {import('@formio/core').Component[]} - The edit form components.
9
+ */
5
10
  export default function (...extend) {
6
11
  return Components.baseEditForm([
7
12
  {
@@ -95,11 +95,10 @@ export default class TextFieldComponent extends Input {
95
95
  return super.attach(element);
96
96
  }
97
97
  /**
98
- * Returns the mask value object.
99
- *
100
- * @param value
101
- * @param flags
102
- * @return {*}
98
+ * Returns the mask value object (mutates value!).
99
+ * @param {any} [value] - The value to convert to a mask value.
100
+ * @param {any} [flags] - The flags to use when converting to a mask value.
101
+ * @returns {*} - The value as a mask value.
103
102
  */
104
103
  maskValue(value, flags = {}) {
105
104
  // Convert it into the correct format.
@@ -118,10 +117,9 @@ export default class TextFieldComponent extends Input {
118
117
  }
119
118
  /**
120
119
  * Normalize the value set in the data object.
121
- *
122
- * @param value
123
- * @param flags
124
- * @return {*}
120
+ * @param {any} value - The value to normalize.
121
+ * @param {any} flags - The flags to use when normalizing the value.
122
+ * @returns {*} - Returns the normalized value.
125
123
  */
126
124
  normalizeValue(value, flags = {}) {
127
125
  if (!this.isMultipleMasksField) {
@@ -134,10 +132,10 @@ export default class TextFieldComponent extends Input {
134
132
  }
135
133
  /**
136
134
  * Sets the value at this index.
137
- *
138
- * @param index
139
- * @param value
140
- * @param flags
135
+ * @param {number} index - The index to set the value at.
136
+ * @param {any} value - The value to set.
137
+ * @param {any} [flags] - The flags to use when setting the value.
138
+ * @returns {void}
141
139
  */
142
140
  setValueAt(index, value, flags = {}) {
143
141
  if (!this.isMultipleMasksField) {
@@ -149,6 +147,9 @@ export default class TextFieldComponent extends Input {
149
147
  const maskInput = this.refs.select ? this.refs.select[index] : null;
150
148
  const mask = this.getMaskPattern(value.maskName);
151
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;
152
153
  if (textInput.inputmask) {
153
154
  this.setInputMask(textInput, mask);
154
155
  textInput.inputmask.setValue(textValue);
@@ -157,7 +158,6 @@ export default class TextFieldComponent extends Input {
157
158
  const placeholderChar = this.placeholderChar;
158
159
  textInput.value = conformToMask(textValue, FormioUtils.getInputMask(mask), { placeholderChar }).conformedValue;
159
160
  }
160
- maskInput.value = value.maskName;
161
161
  }
162
162
  else {
163
163
  return super.setValueAt(index, textValue, flags);
@@ -169,9 +169,8 @@ export default class TextFieldComponent extends Input {
169
169
  }
170
170
  /**
171
171
  * Returns the value at this index.
172
- *
173
- * @param index
174
- * @return {*}
172
+ * @param {number} index - The index to get the value from.
173
+ * @returns {*} - The value at the index.
175
174
  */
176
175
  getValueAt(index) {
177
176
  if (!this.isMultipleMasksField) {
@@ -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[];
@@ -1,6 +1,11 @@
1
1
  import baseEditForm from '../_classes/component/Component.form';
2
2
  import TimeEditData from './editForm/Time.edit.data';
3
3
  import TimeEditDisplay from './editForm/Time.edit.display';
4
+ /**
5
+ * The Edit Form function.
6
+ * @param {...any} extend - The components that extend the edit form.
7
+ * @returns {import('@formio/core').Component[]} - The edit form components.
8
+ */
4
9
  export default function (...extend) {
5
10
  return baseEditForm([
6
11
  {
@@ -1,34 +1,5 @@
1
- export default function _default(): {
2
- components: {
3
- type: string;
4
- key: string;
5
- components: {
6
- label: string;
7
- key: string;
8
- weight: number;
9
- components: ({
10
- key: string;
11
- label: string;
12
- input: boolean;
13
- tag: string;
14
- content: string;
15
- type: string;
16
- weight: number;
17
- as?: undefined;
18
- editor?: undefined;
19
- tooltip?: undefined;
20
- } | {
21
- type: string;
22
- as: string;
23
- editor: string;
24
- weight: number;
25
- input: boolean;
26
- key: string;
27
- label: string;
28
- tooltip: string;
29
- tag?: undefined;
30
- content?: undefined;
31
- })[];
32
- }[];
33
- }[];
34
- };
1
+ /**
2
+ * Unknown Component schema.
3
+ * @returns {object} - The Unknown Component edit form.
4
+ */
5
+ export default function _default(): object;
@@ -1,4 +1,8 @@
1
1
  import UnknownEditDisplay from './editForm/Unknown.edit.display';
2
+ /**
3
+ * Unknown Component schema.
4
+ * @returns {object} - The Unknown Component edit form.
5
+ */
2
6
  export default function () {
3
7
  return {
4
8
  components: [
@@ -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[];
@@ -2,6 +2,11 @@ import textEditForm from '../textfield/TextField.form';
2
2
  import UrlEditDisplay from './editForm/Url.edit.display';
3
3
  import UrlEditData from './editForm/Url.edit.data';
4
4
  import UrlEditValidation from './editForm/Url.edit.validation';
5
+ /**
6
+ * The Edit Form function.
7
+ * @param {...any} extend - The components that extend the edit form.
8
+ * @returns {import('@formio/core').Component[]} - The edit form components.
9
+ */
5
10
  export default function (...extend) {
6
11
  return textEditForm([
7
12
  {
@@ -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[];
@@ -1,5 +1,10 @@
1
1
  import nestedComponentForm from '../_classes/nested/NestedComponent.form';
2
2
  import WellEditDisplay from './editForm/Well.edit.display';
3
+ /**
4
+ * The Edit Form function.
5
+ * @param {...any} extend - The components that extend the edit form.
6
+ * @returns {import('@formio/core').Component[]} - The edit form components.
7
+ */
3
8
  export default function (...extend) {
4
9
  return nestedComponentForm([
5
10
  {
@@ -1,2 +1 @@
1
- export { Formio };
2
- import { Formio } from './Embed';
1
+ export {};
@@ -1,99 +1,2 @@
1
- import { Formio } from './Embed';
2
- const scripts = document.getElementsByTagName('script');
3
- const config = window.FormioConfig || {};
4
- let thisScript = null;
5
- let i = scripts.length;
6
- const scriptName = config.scriptName || 'formio.embed.';
7
- while (i--) {
8
- if (scripts[i].src && (scripts[i].src.indexOf(scriptName) !== -1)) {
9
- thisScript = scripts[i];
10
- break;
11
- }
12
- }
13
- if (thisScript) {
14
- const query = {};
15
- const queryString = thisScript.src.replace(/^[^?]+\??/, '');
16
- queryString.replace(/\?/g, '&').split('&').forEach((item) => {
17
- query[item.split('=')[0]] = item.split('=')[1] && decodeURIComponent(item.split('=')[1]);
18
- });
19
- let scriptSrc = thisScript.src.replace(/^([^?]+).*/, '$1').split('/');
20
- scriptSrc.pop();
21
- if (config.formioPath) {
22
- config.formioPath(scriptSrc);
23
- }
24
- scriptSrc = scriptSrc.join('/');
25
- const debug = (query.debug === 'true' || query.debug === '1');
26
- const renderer = debug ? 'formio.form' : 'formio.form.min';
27
- Formio.config = Object.assign({
28
- script: query.script || (`${config.updatePath ? config.updatePath() : scriptSrc}/${renderer}.js`),
29
- style: query.styles || (`${config.updatePath ? config.updatePath() : scriptSrc}/${renderer}.css`),
30
- cdn: query.cdn,
31
- class: (query.class || 'formio-form-wrapper'),
32
- src: query.src,
33
- form: null,
34
- submission: null,
35
- project: query.project,
36
- base: query.base || 'https://api.form.io',
37
- submit: query.submit,
38
- includeLibs: (query.libs === 'true' || query.libs === '1'),
39
- template: query.template,
40
- debug: debug,
41
- config: {},
42
- redirect: (query.return || query.redirect),
43
- embedCSS: (`${config.updatePath ? config.updatePath() : scriptSrc}/formio.embed.css`),
44
- success: query.success || 'Thank you for your submission!',
45
- before: null,
46
- after: null
47
- }, config);
48
- const form = (Formio.config.form || Formio.config.src);
49
- if (form) {
50
- Formio.debug('Embedding Configuration', config);
51
- if (Formio.config.addPremiumLib) {
52
- Formio.config.addPremiumLib(Formio.config, scriptSrc);
53
- }
54
- // The id for this embedded form.
55
- Formio.config.id = `formio-${Math.random().toString(36).substring(7)}`;
56
- Formio.debug('Creating form element');
57
- const element = Formio.createElement('div', {
58
- 'id': Formio.config.id,
59
- class: Formio.config.class
60
- });
61
- // insertAfter doesn't exist, but effect is identical.
62
- thisScript.parentNode.insertBefore(element, thisScript.parentNode.firstElementChild.nextSibling);
63
- Formio.createForm(element, form, Formio.config.config).then((instance) => {
64
- if (Formio.config.submit) {
65
- instance.nosubmit = true;
66
- }
67
- // Configure a redirect.
68
- instance.on('submit', (submission) => {
69
- Formio.debug("on('submit')", submission);
70
- if (Formio.config.submit) {
71
- Formio.debug(`Sending submission to ${Formio.config.submit}`);
72
- const headers = {
73
- 'content-type': 'application/json'
74
- };
75
- const token = Formio.FormioClass.getToken();
76
- if (token) {
77
- headers['x-jwt-token'] = token;
78
- }
79
- Formio.FormioClass.fetch(Formio.config.submit, {
80
- body: JSON.stringify(submission),
81
- headers: headers,
82
- method: 'POST',
83
- mode: 'cors',
84
- })
85
- .then(resp => resp.json())
86
- .then(submission => Formio.submitDone(instance, submission));
87
- }
88
- else {
89
- Formio.submitDone(instance, submission);
90
- }
91
- });
92
- });
93
- }
94
- }
95
- else {
96
- // Show an error if the script cannot be found.
97
- document.write('<span>Could not locate the Embedded form.</span>');
98
- }
99
- export { Formio };
1
+ import { embed } from './InlineEmbed';
2
+ embed();
@@ -1,10 +1,17 @@
1
1
  /**
2
2
  * Register a module
3
- * @param {*} plugin
4
- * @returns
3
+ * @param {any} mod - The module object to register. This can also be a function which accepts Formio as an argument.
4
+ * @param {Function|null} [defaultFn] - The default function to call if the module does not have a known key.
5
+ * @param {any} options - Options for the module.
6
+ * @returns {void}
5
7
  */
6
- export function registerModule(mod: any, defaultFn?: null, options?: {}): void;
7
- export function useModule(defaultFn?: null): (plugins: any, options?: {}) => void;
8
+ export function registerModule(mod: any, defaultFn?: Function | null | undefined, options?: any): void;
9
+ /**
10
+ * @param {Function|null} defaultFn - The default function to call if the module does not have a known key.
11
+ * @returns {void}
12
+ */
13
+ export function useModule(defaultFn?: Function | null): void;
14
+ export { Formio as FormioCore } from "./Formio";
8
15
  import Components from './components/Components';
9
16
  import Displays from './displays/Displays';
10
17
  import Providers from './providers';