@formio/js 5.0.0-dev.5613.3476921 → 5.0.0-dev.5614.b5c93f3

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 (581) hide show
  1. package/Changelog.md +73 -4
  2. package/dist/formio.builder.css +8 -13
  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 -13
  8. package/dist/formio.form.js +803 -1226
  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 -3
  12. package/dist/formio.full.css +8 -13
  13. package/dist/formio.full.js +722 -941
  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 -3
  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 +1853 -466
  21. package/dist/formio.utils.min.js +1 -1
  22. package/dist/formio.utils.min.js.LICENSE.txt +10 -2
  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 +87 -98
  28. package/lib/cjs/Element.js +76 -95
  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 -75
  33. package/lib/cjs/FormBuilder.d.ts +187 -2
  34. package/lib/cjs/FormBuilder.js +30 -8
  35. package/lib/cjs/Formio.js +12 -0
  36. package/lib/cjs/InlineEmbed.d.ts +7 -0
  37. package/lib/cjs/InlineEmbed.js +116 -0
  38. package/lib/cjs/PDF.d.ts +11 -13
  39. package/lib/cjs/PDF.js +7 -16
  40. package/lib/cjs/PDFBuilder.js +3 -3
  41. package/lib/cjs/Webform.d.ts +193 -140
  42. package/lib/cjs/Webform.js +341 -306
  43. package/lib/cjs/WebformBuilder.d.ts +18 -15
  44. package/lib/cjs/WebformBuilder.js +34 -27
  45. package/lib/cjs/Wizard.d.ts +31 -21
  46. package/lib/cjs/Wizard.js +44 -21
  47. package/lib/cjs/WizardBuilder.d.ts +1 -1
  48. package/lib/cjs/addons/FormioAddon.d.ts +0 -1
  49. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
  50. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
  51. package/lib/cjs/components/Components.d.ts +4 -4
  52. package/lib/cjs/components/Components.js +3 -3
  53. package/lib/cjs/components/_classes/component/Component.d.ts +516 -270
  54. package/lib/cjs/components/_classes/component/Component.form.d.ts +6 -3
  55. package/lib/cjs/components/_classes/component/Component.form.js +5 -0
  56. package/lib/cjs/components/_classes/component/Component.js +470 -246
  57. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +1 -1
  58. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  59. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  60. package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
  61. package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
  62. package/lib/cjs/components/_classes/component/fixtures/comp7.d.ts +84 -0
  63. package/lib/cjs/components/_classes/component/fixtures/comp7.js +86 -0
  64. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +3 -1
  65. package/lib/cjs/components/_classes/component/fixtures/index.js +5 -1
  66. package/lib/cjs/components/_classes/field/Field.d.ts +11 -2
  67. package/lib/cjs/components/_classes/field/Field.js +13 -1
  68. package/lib/cjs/components/_classes/input/Input.d.ts +4 -3
  69. package/lib/cjs/components/_classes/input/Input.js +32 -23
  70. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  71. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +6 -3
  72. package/lib/cjs/components/_classes/list/ListComponent.form.js +5 -0
  73. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
  74. package/lib/cjs/components/_classes/multivalue/Multivalue.js +44 -3
  75. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +164 -68
  76. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
  77. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +5 -0
  78. package/lib/cjs/components/_classes/nested/NestedComponent.js +182 -62
  79. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
  80. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  81. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
  82. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
  83. package/lib/cjs/components/address/Address.d.ts +4 -2
  84. package/lib/cjs/components/address/Address.form.d.ts +6 -3
  85. package/lib/cjs/components/address/Address.form.js +5 -0
  86. package/lib/cjs/components/address/Address.js +4 -0
  87. package/lib/cjs/components/address/editForm/Address.edit.provider.js +1 -1
  88. package/lib/cjs/components/button/Button.d.ts +4 -13
  89. package/lib/cjs/components/button/Button.form.d.ts +6 -3
  90. package/lib/cjs/components/button/Button.form.js +5 -0
  91. package/lib/cjs/components/button/Button.js +12 -7
  92. package/lib/cjs/components/checkbox/Checkbox.d.ts +5 -28
  93. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +6 -3
  94. package/lib/cjs/components/checkbox/Checkbox.form.js +5 -0
  95. package/lib/cjs/components/checkbox/Checkbox.js +1 -1
  96. package/lib/cjs/components/checkbox/fixtures/comp6.d.ts +32 -0
  97. package/lib/cjs/components/checkbox/fixtures/comp6.js +30 -0
  98. package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
  99. package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
  100. package/lib/cjs/components/columns/Columns.d.ts +3 -2
  101. package/lib/cjs/components/columns/Columns.form.d.ts +6 -3
  102. package/lib/cjs/components/columns/Columns.form.js +5 -0
  103. package/lib/cjs/components/columns/Columns.js +3 -3
  104. package/lib/cjs/components/container/Container.form.d.ts +6 -3
  105. package/lib/cjs/components/container/Container.form.js +5 -0
  106. package/lib/cjs/components/content/Content.d.ts +2 -1
  107. package/lib/cjs/components/content/Content.form.d.ts +6 -3
  108. package/lib/cjs/components/content/Content.form.js +5 -0
  109. package/lib/cjs/components/currency/Currency.form.d.ts +6 -3
  110. package/lib/cjs/components/currency/Currency.form.js +5 -0
  111. package/lib/cjs/components/currency/Currency.js +1 -2
  112. package/lib/cjs/components/datagrid/DataGrid.d.ts +17 -7
  113. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +6 -3
  114. package/lib/cjs/components/datagrid/DataGrid.form.js +5 -0
  115. package/lib/cjs/components/datagrid/DataGrid.js +55 -37
  116. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
  117. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +36 -0
  118. package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.d.ts +100 -0
  119. package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.js +139 -0
  120. package/lib/cjs/components/datagrid/fixtures/comp10.d.ts +81 -0
  121. package/lib/cjs/components/datagrid/fixtures/comp10.js +87 -0
  122. package/lib/cjs/components/datagrid/fixtures/comp9.d.ts +41 -0
  123. package/lib/cjs/components/datagrid/fixtures/comp9.js +44 -0
  124. package/lib/cjs/components/datagrid/fixtures/index.d.ts +5 -1
  125. package/lib/cjs/components/datagrid/fixtures/index.js +9 -1
  126. package/lib/cjs/components/datamap/DataMap.d.ts +1 -0
  127. package/lib/cjs/components/datamap/DataMap.form.d.ts +6 -3
  128. package/lib/cjs/components/datamap/DataMap.form.js +5 -0
  129. package/lib/cjs/components/datetime/DateTime.d.ts +0 -14
  130. package/lib/cjs/components/datetime/DateTime.form.d.ts +6 -3
  131. package/lib/cjs/components/datetime/DateTime.form.js +5 -0
  132. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  133. package/lib/cjs/components/day/Day.d.ts +23 -49
  134. package/lib/cjs/components/day/Day.form.d.ts +6 -3
  135. package/lib/cjs/components/day/Day.form.js +5 -0
  136. package/lib/cjs/components/day/Day.js +16 -21
  137. package/lib/cjs/components/day/fixtures/comp7.d.ts +109 -0
  138. package/lib/cjs/components/day/fixtures/comp7.js +109 -0
  139. package/lib/cjs/components/day/fixtures/comp8.d.ts +41 -0
  140. package/lib/cjs/components/day/fixtures/comp8.js +40 -0
  141. package/lib/cjs/components/day/fixtures/index.d.ts +3 -1
  142. package/lib/cjs/components/day/fixtures/index.js +5 -1
  143. package/lib/cjs/components/editgrid/EditGrid.d.ts +8 -4
  144. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +6 -3
  145. package/lib/cjs/components/editgrid/EditGrid.form.js +5 -0
  146. package/lib/cjs/components/editgrid/EditGrid.js +12 -26
  147. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
  148. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
  149. package/lib/cjs/components/email/Email.form.d.ts +6 -3
  150. package/lib/cjs/components/email/Email.form.js +5 -0
  151. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +6 -3
  152. package/lib/cjs/components/fieldset/Fieldset.form.js +5 -0
  153. package/lib/cjs/components/file/File.d.ts +9 -23
  154. package/lib/cjs/components/file/File.form.d.ts +6 -3
  155. package/lib/cjs/components/file/File.form.js +5 -0
  156. package/lib/cjs/components/file/File.js +3 -4
  157. package/lib/cjs/components/form/Form.d.ts +38 -20
  158. package/lib/cjs/components/form/Form.form.d.ts +6 -3
  159. package/lib/cjs/components/form/Form.form.js +5 -0
  160. package/lib/cjs/components/form/Form.js +33 -20
  161. package/lib/cjs/components/hidden/Hidden.d.ts +1 -11
  162. package/lib/cjs/components/hidden/Hidden.form.d.ts +6 -3
  163. package/lib/cjs/components/hidden/Hidden.form.js +5 -0
  164. package/lib/cjs/components/hidden/Hidden.js +1 -2
  165. package/lib/cjs/components/html/HTML.d.ts +2 -1
  166. package/lib/cjs/components/html/HTML.form.d.ts +6 -3
  167. package/lib/cjs/components/html/HTML.form.js +5 -0
  168. package/lib/cjs/components/number/Number.d.ts +3 -17
  169. package/lib/cjs/components/number/Number.form.d.ts +6 -3
  170. package/lib/cjs/components/number/Number.form.js +5 -0
  171. package/lib/cjs/components/number/Number.js +2 -3
  172. package/lib/cjs/components/number/fixtures/comp8.d.ts +32 -0
  173. package/lib/cjs/components/number/fixtures/comp8.js +28 -0
  174. package/lib/cjs/components/number/fixtures/index.d.ts +2 -1
  175. package/lib/cjs/components/number/fixtures/index.js +3 -1
  176. package/lib/cjs/components/panel/Panel.form.d.ts +6 -3
  177. package/lib/cjs/components/panel/Panel.form.js +5 -0
  178. package/lib/cjs/components/panel/Panel.js +0 -1
  179. package/lib/cjs/components/password/Password.form.d.ts +6 -3
  180. package/lib/cjs/components/password/Password.form.js +5 -0
  181. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
  182. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +5 -0
  183. package/lib/cjs/components/phonenumber/fixtures/comp2.d.ts +16 -0
  184. package/lib/cjs/components/phonenumber/fixtures/comp2.js +25 -0
  185. package/lib/cjs/components/phonenumber/fixtures/index.d.ts +2 -1
  186. package/lib/cjs/components/phonenumber/fixtures/index.js +3 -1
  187. package/lib/cjs/components/radio/Radio.d.ts +4 -27
  188. package/lib/cjs/components/radio/Radio.form.d.ts +6 -3
  189. package/lib/cjs/components/radio/Radio.form.js +5 -0
  190. package/lib/cjs/components/radio/Radio.js +11 -9
  191. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +2 -9
  192. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
  193. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +7 -2
  194. package/lib/cjs/components/recaptcha/ReCaptcha.js +1 -8
  195. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +33 -2
  196. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +13 -2
  197. package/lib/cjs/components/select/Select.d.ts +16 -39
  198. package/lib/cjs/components/select/Select.form.d.ts +6 -3
  199. package/lib/cjs/components/select/Select.form.js +5 -0
  200. package/lib/cjs/components/select/Select.js +23 -24
  201. package/lib/cjs/components/select/editForm/Select.edit.data.js +16 -2
  202. package/lib/cjs/components/select/fixtures/comp22.js +1 -1
  203. package/lib/cjs/components/select/fixtures/comp23.d.ts +58 -0
  204. package/lib/cjs/components/select/fixtures/comp23.js +49 -0
  205. package/lib/cjs/components/select/fixtures/comp24.d.ts +47 -0
  206. package/lib/cjs/components/select/fixtures/comp24.js +40 -0
  207. package/lib/cjs/components/select/fixtures/index.d.ts +3 -1
  208. package/lib/cjs/components/select/fixtures/index.js +5 -1
  209. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -17
  210. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
  211. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +5 -0
  212. package/lib/cjs/components/selectboxes/SelectBoxes.js +11 -10
  213. package/lib/cjs/components/signature/Signature.d.ts +0 -14
  214. package/lib/cjs/components/signature/Signature.form.d.ts +6 -3
  215. package/lib/cjs/components/signature/Signature.form.js +5 -0
  216. package/lib/cjs/components/signature/Signature.js +1 -1
  217. package/lib/cjs/components/survey/Survey.d.ts +3 -15
  218. package/lib/cjs/components/survey/Survey.form.d.ts +6 -3
  219. package/lib/cjs/components/survey/Survey.form.js +5 -0
  220. package/lib/cjs/components/table/Table.d.ts +3 -1
  221. package/lib/cjs/components/table/Table.form.d.ts +6 -3
  222. package/lib/cjs/components/table/Table.form.js +5 -0
  223. package/lib/cjs/components/table/Table.js +1 -1
  224. package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
  225. package/lib/cjs/components/tabs/Tabs.form.d.ts +6 -3
  226. package/lib/cjs/components/tabs/Tabs.form.js +5 -0
  227. package/lib/cjs/components/tabs/Tabs.js +1 -2
  228. package/lib/cjs/components/tags/Tags.d.ts +0 -14
  229. package/lib/cjs/components/tags/Tags.form.d.ts +6 -3
  230. package/lib/cjs/components/tags/Tags.form.js +5 -0
  231. package/lib/cjs/components/tags/Tags.js +2 -4
  232. package/lib/cjs/components/textarea/TextArea.d.ts +4 -9
  233. package/lib/cjs/components/textarea/TextArea.form.d.ts +6 -3
  234. package/lib/cjs/components/textarea/TextArea.form.js +5 -0
  235. package/lib/cjs/components/textarea/TextArea.js +2 -2
  236. package/lib/cjs/components/textfield/TextField.d.ts +14 -30
  237. package/lib/cjs/components/textfield/TextField.form.d.ts +6 -3
  238. package/lib/cjs/components/textfield/TextField.form.js +5 -0
  239. package/lib/cjs/components/textfield/TextField.js +16 -17
  240. package/lib/cjs/components/time/Time.form.d.ts +6 -3
  241. package/lib/cjs/components/time/Time.form.js +5 -0
  242. package/lib/cjs/components/unknown/Unknown.form.d.ts +5 -34
  243. package/lib/cjs/components/unknown/Unknown.form.js +4 -0
  244. package/lib/cjs/components/url/Url.form.d.ts +6 -3
  245. package/lib/cjs/components/url/Url.form.js +5 -0
  246. package/lib/cjs/components/well/Well.form.d.ts +6 -3
  247. package/lib/cjs/components/well/Well.form.js +5 -0
  248. package/lib/cjs/formio.embed.d.ts +1 -2
  249. package/lib/cjs/formio.embed.js +2 -100
  250. package/lib/cjs/formio.form.d.ts +11 -4
  251. package/lib/cjs/formio.form.js +13 -5
  252. package/lib/cjs/providers/Providers.d.ts +36 -5
  253. package/lib/cjs/providers/Providers.js +29 -0
  254. package/lib/cjs/providers/address/AddressProvider.d.ts +131 -12
  255. package/lib/cjs/providers/address/AddressProvider.js +88 -2
  256. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +48 -1
  257. package/lib/cjs/providers/address/AzureAddressProvider.js +37 -0
  258. package/lib/cjs/providers/address/CustomAddressProvider.d.ts +27 -4
  259. package/lib/cjs/providers/address/CustomAddressProvider.js +34 -0
  260. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +135 -6
  261. package/lib/cjs/providers/address/GoogleAddressProvider.js +95 -1
  262. package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +32 -7
  263. package/lib/cjs/providers/address/NominatimAddressProvider.js +33 -0
  264. package/lib/cjs/providers/address/index.d.ts +3 -1
  265. package/lib/cjs/providers/processor/fileProcessor.d.ts +7 -1
  266. package/lib/cjs/providers/processor/fileProcessor.js +6 -0
  267. package/lib/cjs/providers/storage/azure.d.ts +6 -13
  268. package/lib/cjs/providers/storage/azure.js +5 -0
  269. package/lib/cjs/providers/storage/base64.d.ts +5 -6
  270. package/lib/cjs/providers/storage/base64.js +4 -0
  271. package/lib/cjs/providers/storage/dropbox.d.ts +6 -4
  272. package/lib/cjs/providers/storage/dropbox.js +5 -0
  273. package/lib/cjs/providers/storage/googleDrive.d.ts +7 -5
  274. package/lib/cjs/providers/storage/googleDrive.js +6 -0
  275. package/lib/cjs/providers/storage/indexeddb.d.ts +5 -7
  276. package/lib/cjs/providers/storage/indexeddb.js +4 -0
  277. package/lib/cjs/providers/storage/s3.d.ts +6 -20
  278. package/lib/cjs/providers/storage/s3.js +5 -0
  279. package/lib/cjs/providers/storage/url.d.ts +6 -7
  280. package/lib/cjs/providers/storage/url.js +10 -0
  281. package/lib/cjs/providers/storage/util.d.ts +24 -1
  282. package/lib/cjs/providers/storage/util.js +18 -0
  283. package/lib/cjs/templates/Templates.d.ts +1 -0
  284. package/lib/cjs/translations/en.d.ts +5 -0
  285. package/lib/cjs/translations/en.js +6 -1
  286. package/lib/cjs/utils/ChoicesWrapper.d.ts +1 -1
  287. package/lib/cjs/utils/ChoicesWrapper.js +13 -2
  288. package/lib/cjs/utils/Evaluator.d.ts +6 -3
  289. package/lib/cjs/utils/Evaluator.js +11 -20
  290. package/lib/cjs/utils/builder.d.ts +9 -7
  291. package/lib/cjs/utils/builder.js +10 -5
  292. package/lib/cjs/utils/calendarUtils.d.ts +7 -13
  293. package/lib/cjs/utils/calendarUtils.js +10 -17
  294. package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +4 -3
  295. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +3 -3
  296. package/lib/cjs/utils/formUtils.d.ts +43 -171
  297. package/lib/cjs/utils/formUtils.js +38 -569
  298. package/lib/cjs/utils/utils.d.ts +367 -218
  299. package/lib/cjs/utils/utils.js +420 -252
  300. package/lib/cjs/widgets/CalendarWidget.d.ts +9 -10
  301. package/lib/cjs/widgets/CalendarWidget.js +11 -13
  302. package/lib/mjs/CDN.d.ts +1 -0
  303. package/lib/mjs/CDN.js +6 -3
  304. package/lib/mjs/Element.d.ts +87 -98
  305. package/lib/mjs/Element.js +76 -95
  306. package/lib/mjs/Embed.d.ts +1 -1
  307. package/lib/mjs/Embed.js +52 -12
  308. package/lib/mjs/Form.d.ts +365 -36
  309. package/lib/mjs/Form.js +140 -68
  310. package/lib/mjs/FormBuilder.d.ts +187 -2
  311. package/lib/mjs/FormBuilder.js +32 -8
  312. package/lib/mjs/Formio.js +12 -0
  313. package/lib/mjs/InlineEmbed.d.ts +7 -0
  314. package/lib/mjs/InlineEmbed.js +112 -0
  315. package/lib/mjs/PDF.d.ts +11 -13
  316. package/lib/mjs/PDF.js +7 -16
  317. package/lib/mjs/PDFBuilder.js +3 -3
  318. package/lib/mjs/Webform.d.ts +193 -140
  319. package/lib/mjs/Webform.js +353 -318
  320. package/lib/mjs/WebformBuilder.d.ts +18 -15
  321. package/lib/mjs/WebformBuilder.js +34 -27
  322. package/lib/mjs/Wizard.d.ts +31 -21
  323. package/lib/mjs/Wizard.js +43 -20
  324. package/lib/mjs/WizardBuilder.d.ts +1 -1
  325. package/lib/mjs/addons/FormioAddon.d.ts +0 -1
  326. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +8 -5
  327. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +6 -3
  328. package/lib/mjs/components/Components.d.ts +4 -4
  329. package/lib/mjs/components/Components.js +3 -3
  330. package/lib/mjs/components/_classes/component/Component.d.ts +516 -270
  331. package/lib/mjs/components/_classes/component/Component.form.d.ts +6 -3
  332. package/lib/mjs/components/_classes/component/Component.form.js +5 -0
  333. package/lib/mjs/components/_classes/component/Component.js +479 -247
  334. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +1 -1
  335. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  336. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  337. package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
  338. package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
  339. package/lib/mjs/components/_classes/component/fixtures/comp7.d.ts +84 -0
  340. package/lib/mjs/components/_classes/component/fixtures/comp7.js +84 -0
  341. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +3 -1
  342. package/lib/mjs/components/_classes/component/fixtures/index.js +3 -1
  343. package/lib/mjs/components/_classes/field/Field.d.ts +11 -2
  344. package/lib/mjs/components/_classes/field/Field.js +13 -1
  345. package/lib/mjs/components/_classes/input/Input.d.ts +4 -3
  346. package/lib/mjs/components/_classes/input/Input.js +31 -23
  347. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  348. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +6 -3
  349. package/lib/mjs/components/_classes/list/ListComponent.form.js +5 -0
  350. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +43 -12
  351. package/lib/mjs/components/_classes/multivalue/Multivalue.js +44 -3
  352. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +164 -68
  353. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +6 -3
  354. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +5 -0
  355. package/lib/mjs/components/_classes/nested/NestedComponent.js +182 -62
  356. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
  357. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  358. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +7 -1
  359. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +2 -3
  360. package/lib/mjs/components/address/Address.d.ts +4 -2
  361. package/lib/mjs/components/address/Address.form.d.ts +6 -3
  362. package/lib/mjs/components/address/Address.form.js +5 -0
  363. package/lib/mjs/components/address/Address.js +4 -0
  364. package/lib/mjs/components/address/editForm/Address.edit.provider.js +1 -1
  365. package/lib/mjs/components/button/Button.d.ts +4 -13
  366. package/lib/mjs/components/button/Button.form.d.ts +6 -3
  367. package/lib/mjs/components/button/Button.form.js +5 -0
  368. package/lib/mjs/components/button/Button.js +12 -7
  369. package/lib/mjs/components/checkbox/Checkbox.d.ts +5 -28
  370. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +6 -3
  371. package/lib/mjs/components/checkbox/Checkbox.form.js +5 -0
  372. package/lib/mjs/components/checkbox/Checkbox.js +1 -1
  373. package/lib/mjs/components/checkbox/fixtures/comp6.d.ts +32 -0
  374. package/lib/mjs/components/checkbox/fixtures/comp6.js +28 -0
  375. package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
  376. package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
  377. package/lib/mjs/components/columns/Columns.d.ts +3 -2
  378. package/lib/mjs/components/columns/Columns.form.d.ts +6 -3
  379. package/lib/mjs/components/columns/Columns.form.js +5 -0
  380. package/lib/mjs/components/columns/Columns.js +3 -3
  381. package/lib/mjs/components/container/Container.form.d.ts +6 -3
  382. package/lib/mjs/components/container/Container.form.js +5 -0
  383. package/lib/mjs/components/content/Content.d.ts +2 -1
  384. package/lib/mjs/components/content/Content.form.d.ts +6 -3
  385. package/lib/mjs/components/content/Content.form.js +5 -0
  386. package/lib/mjs/components/currency/Currency.form.d.ts +6 -3
  387. package/lib/mjs/components/currency/Currency.form.js +5 -0
  388. package/lib/mjs/components/currency/Currency.js +1 -2
  389. package/lib/mjs/components/datagrid/DataGrid.d.ts +17 -7
  390. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +6 -3
  391. package/lib/mjs/components/datagrid/DataGrid.form.js +5 -0
  392. package/lib/mjs/components/datagrid/DataGrid.js +55 -37
  393. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
  394. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +34 -0
  395. package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.d.ts +100 -0
  396. package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.js +137 -0
  397. package/lib/mjs/components/datagrid/fixtures/comp10.d.ts +81 -0
  398. package/lib/mjs/components/datagrid/fixtures/comp10.js +85 -0
  399. package/lib/mjs/components/datagrid/fixtures/comp9.d.ts +41 -0
  400. package/lib/mjs/components/datagrid/fixtures/comp9.js +42 -0
  401. package/lib/mjs/components/datagrid/fixtures/index.d.ts +5 -1
  402. package/lib/mjs/components/datagrid/fixtures/index.js +5 -1
  403. package/lib/mjs/components/datamap/DataMap.d.ts +1 -0
  404. package/lib/mjs/components/datamap/DataMap.form.d.ts +6 -3
  405. package/lib/mjs/components/datamap/DataMap.form.js +5 -0
  406. package/lib/mjs/components/datetime/DateTime.d.ts +0 -14
  407. package/lib/mjs/components/datetime/DateTime.form.d.ts +6 -3
  408. package/lib/mjs/components/datetime/DateTime.form.js +5 -0
  409. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  410. package/lib/mjs/components/day/Day.d.ts +23 -49
  411. package/lib/mjs/components/day/Day.form.d.ts +6 -3
  412. package/lib/mjs/components/day/Day.form.js +5 -0
  413. package/lib/mjs/components/day/Day.js +16 -21
  414. package/lib/mjs/components/day/fixtures/comp7.d.ts +109 -0
  415. package/lib/mjs/components/day/fixtures/comp7.js +107 -0
  416. package/lib/mjs/components/day/fixtures/comp8.d.ts +41 -0
  417. package/lib/mjs/components/day/fixtures/comp8.js +38 -0
  418. package/lib/mjs/components/day/fixtures/index.d.ts +3 -1
  419. package/lib/mjs/components/day/fixtures/index.js +3 -1
  420. package/lib/mjs/components/editgrid/EditGrid.d.ts +8 -4
  421. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +6 -3
  422. package/lib/mjs/components/editgrid/EditGrid.form.js +5 -0
  423. package/lib/mjs/components/editgrid/EditGrid.js +12 -25
  424. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  425. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  426. package/lib/mjs/components/email/Email.form.d.ts +6 -3
  427. package/lib/mjs/components/email/Email.form.js +5 -0
  428. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +6 -3
  429. package/lib/mjs/components/fieldset/Fieldset.form.js +5 -0
  430. package/lib/mjs/components/file/File.d.ts +9 -23
  431. package/lib/mjs/components/file/File.form.d.ts +6 -3
  432. package/lib/mjs/components/file/File.form.js +5 -0
  433. package/lib/mjs/components/file/File.js +3 -4
  434. package/lib/mjs/components/form/Form.d.ts +38 -20
  435. package/lib/mjs/components/form/Form.form.d.ts +6 -3
  436. package/lib/mjs/components/form/Form.form.js +5 -0
  437. package/lib/mjs/components/form/Form.js +31 -18
  438. package/lib/mjs/components/hidden/Hidden.d.ts +1 -11
  439. package/lib/mjs/components/hidden/Hidden.form.d.ts +6 -3
  440. package/lib/mjs/components/hidden/Hidden.form.js +5 -0
  441. package/lib/mjs/components/hidden/Hidden.js +1 -2
  442. package/lib/mjs/components/html/HTML.d.ts +2 -1
  443. package/lib/mjs/components/html/HTML.form.d.ts +6 -3
  444. package/lib/mjs/components/html/HTML.form.js +5 -0
  445. package/lib/mjs/components/number/Number.d.ts +3 -17
  446. package/lib/mjs/components/number/Number.form.d.ts +6 -3
  447. package/lib/mjs/components/number/Number.form.js +5 -0
  448. package/lib/mjs/components/number/Number.js +2 -3
  449. package/lib/mjs/components/number/fixtures/comp8.d.ts +32 -0
  450. package/lib/mjs/components/number/fixtures/comp8.js +26 -0
  451. package/lib/mjs/components/number/fixtures/index.d.ts +2 -1
  452. package/lib/mjs/components/number/fixtures/index.js +2 -1
  453. package/lib/mjs/components/panel/Panel.form.d.ts +6 -3
  454. package/lib/mjs/components/panel/Panel.form.js +5 -0
  455. package/lib/mjs/components/panel/Panel.js +0 -1
  456. package/lib/mjs/components/password/Password.form.d.ts +6 -3
  457. package/lib/mjs/components/password/Password.form.js +5 -0
  458. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +6 -3
  459. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +5 -0
  460. package/lib/mjs/components/phonenumber/fixtures/comp2.d.ts +16 -0
  461. package/lib/mjs/components/phonenumber/fixtures/comp2.js +23 -0
  462. package/lib/mjs/components/phonenumber/fixtures/index.d.ts +2 -1
  463. package/lib/mjs/components/phonenumber/fixtures/index.js +2 -1
  464. package/lib/mjs/components/radio/Radio.d.ts +4 -27
  465. package/lib/mjs/components/radio/Radio.form.d.ts +6 -3
  466. package/lib/mjs/components/radio/Radio.form.js +5 -0
  467. package/lib/mjs/components/radio/Radio.js +11 -9
  468. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +2 -9
  469. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +6 -3
  470. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +7 -2
  471. package/lib/mjs/components/recaptcha/ReCaptcha.js +1 -8
  472. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +33 -2
  473. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +13 -2
  474. package/lib/mjs/components/select/Select.d.ts +16 -39
  475. package/lib/mjs/components/select/Select.form.d.ts +6 -3
  476. package/lib/mjs/components/select/Select.form.js +5 -0
  477. package/lib/mjs/components/select/Select.js +24 -25
  478. package/lib/mjs/components/select/editForm/Select.edit.data.js +16 -2
  479. package/lib/mjs/components/select/fixtures/comp22.js +1 -1
  480. package/lib/mjs/components/select/fixtures/comp23.d.ts +58 -0
  481. package/lib/mjs/components/select/fixtures/comp23.js +47 -0
  482. package/lib/mjs/components/select/fixtures/comp24.d.ts +47 -0
  483. package/lib/mjs/components/select/fixtures/comp24.js +38 -0
  484. package/lib/mjs/components/select/fixtures/index.d.ts +3 -1
  485. package/lib/mjs/components/select/fixtures/index.js +3 -1
  486. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -17
  487. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +6 -3
  488. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +5 -0
  489. package/lib/mjs/components/selectboxes/SelectBoxes.js +11 -10
  490. package/lib/mjs/components/signature/Signature.d.ts +0 -14
  491. package/lib/mjs/components/signature/Signature.form.d.ts +6 -3
  492. package/lib/mjs/components/signature/Signature.form.js +5 -0
  493. package/lib/mjs/components/signature/Signature.js +1 -1
  494. package/lib/mjs/components/survey/Survey.d.ts +3 -15
  495. package/lib/mjs/components/survey/Survey.form.d.ts +6 -3
  496. package/lib/mjs/components/survey/Survey.form.js +5 -0
  497. package/lib/mjs/components/table/Table.d.ts +3 -1
  498. package/lib/mjs/components/table/Table.form.d.ts +6 -3
  499. package/lib/mjs/components/table/Table.form.js +5 -0
  500. package/lib/mjs/components/table/Table.js +1 -1
  501. package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
  502. package/lib/mjs/components/tabs/Tabs.form.d.ts +6 -3
  503. package/lib/mjs/components/tabs/Tabs.form.js +5 -0
  504. package/lib/mjs/components/tabs/Tabs.js +1 -2
  505. package/lib/mjs/components/tags/Tags.d.ts +0 -14
  506. package/lib/mjs/components/tags/Tags.form.d.ts +6 -3
  507. package/lib/mjs/components/tags/Tags.form.js +5 -0
  508. package/lib/mjs/components/tags/Tags.js +2 -4
  509. package/lib/mjs/components/textarea/TextArea.d.ts +4 -9
  510. package/lib/mjs/components/textarea/TextArea.form.d.ts +6 -3
  511. package/lib/mjs/components/textarea/TextArea.form.js +5 -0
  512. package/lib/mjs/components/textarea/TextArea.js +2 -2
  513. package/lib/mjs/components/textfield/TextField.d.ts +14 -30
  514. package/lib/mjs/components/textfield/TextField.form.d.ts +6 -3
  515. package/lib/mjs/components/textfield/TextField.form.js +5 -0
  516. package/lib/mjs/components/textfield/TextField.js +16 -17
  517. package/lib/mjs/components/time/Time.form.d.ts +6 -3
  518. package/lib/mjs/components/time/Time.form.js +5 -0
  519. package/lib/mjs/components/unknown/Unknown.form.d.ts +5 -34
  520. package/lib/mjs/components/unknown/Unknown.form.js +4 -0
  521. package/lib/mjs/components/url/Url.form.d.ts +6 -3
  522. package/lib/mjs/components/url/Url.form.js +5 -0
  523. package/lib/mjs/components/well/Well.form.d.ts +6 -3
  524. package/lib/mjs/components/well/Well.form.js +5 -0
  525. package/lib/mjs/formio.embed.d.ts +1 -2
  526. package/lib/mjs/formio.embed.js +2 -99
  527. package/lib/mjs/formio.form.d.ts +11 -4
  528. package/lib/mjs/formio.form.js +10 -3
  529. package/lib/mjs/providers/Providers.d.ts +36 -5
  530. package/lib/mjs/providers/Providers.js +29 -0
  531. package/lib/mjs/providers/address/AddressProvider.d.ts +131 -12
  532. package/lib/mjs/providers/address/AddressProvider.js +88 -2
  533. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +48 -1
  534. package/lib/mjs/providers/address/AzureAddressProvider.js +37 -0
  535. package/lib/mjs/providers/address/CustomAddressProvider.d.ts +27 -4
  536. package/lib/mjs/providers/address/CustomAddressProvider.js +34 -0
  537. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +135 -6
  538. package/lib/mjs/providers/address/GoogleAddressProvider.js +94 -1
  539. package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +32 -7
  540. package/lib/mjs/providers/address/NominatimAddressProvider.js +33 -0
  541. package/lib/mjs/providers/address/index.d.ts +3 -1
  542. package/lib/mjs/providers/processor/fileProcessor.d.ts +7 -1
  543. package/lib/mjs/providers/processor/fileProcessor.js +6 -0
  544. package/lib/mjs/providers/storage/azure.d.ts +6 -13
  545. package/lib/mjs/providers/storage/azure.js +5 -0
  546. package/lib/mjs/providers/storage/base64.d.ts +5 -6
  547. package/lib/mjs/providers/storage/base64.js +4 -0
  548. package/lib/mjs/providers/storage/dropbox.d.ts +6 -4
  549. package/lib/mjs/providers/storage/dropbox.js +5 -0
  550. package/lib/mjs/providers/storage/googleDrive.d.ts +7 -5
  551. package/lib/mjs/providers/storage/googleDrive.js +6 -0
  552. package/lib/mjs/providers/storage/indexeddb.d.ts +5 -7
  553. package/lib/mjs/providers/storage/indexeddb.js +4 -0
  554. package/lib/mjs/providers/storage/s3.d.ts +6 -20
  555. package/lib/mjs/providers/storage/s3.js +5 -0
  556. package/lib/mjs/providers/storage/url.d.ts +6 -7
  557. package/lib/mjs/providers/storage/url.js +10 -0
  558. package/lib/mjs/providers/storage/util.d.ts +24 -1
  559. package/lib/mjs/providers/storage/util.js +18 -0
  560. package/lib/mjs/templates/Templates.d.ts +1 -0
  561. package/lib/mjs/translations/en.d.ts +5 -0
  562. package/lib/mjs/translations/en.js +6 -1
  563. package/lib/mjs/utils/ChoicesWrapper.d.ts +1 -1
  564. package/lib/mjs/utils/ChoicesWrapper.js +13 -2
  565. package/lib/mjs/utils/Evaluator.d.ts +6 -3
  566. package/lib/mjs/utils/Evaluator.js +9 -20
  567. package/lib/mjs/utils/builder.d.ts +9 -7
  568. package/lib/mjs/utils/builder.js +10 -5
  569. package/lib/mjs/utils/calendarUtils.d.ts +7 -13
  570. package/lib/mjs/utils/calendarUtils.js +10 -17
  571. package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +3 -3
  572. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +1 -1
  573. package/lib/mjs/utils/formUtils.d.ts +43 -171
  574. package/lib/mjs/utils/formUtils.js +6 -554
  575. package/lib/mjs/utils/utils.d.ts +367 -218
  576. package/lib/mjs/utils/utils.js +409 -233
  577. package/lib/mjs/widgets/CalendarWidget.d.ts +9 -10
  578. package/lib/mjs/widgets/CalendarWidget.js +11 -13
  579. package/package.json +22 -23
  580. package/sdk.d.ts +1 -0
  581. package/utils.d.ts +1 -0
@@ -1,213 +1,252 @@
1
1
  /**
2
2
  * Evaluate a method.
3
- *
4
- * @param func
5
- * @param args
6
- * @return {*}
3
+ * @param {Function|string|object} func - The function to evaluate.
4
+ * @param {*} args - A map of arguments to pass to the function.
5
+ * @param {string} ret - The name of the "return" variable in the script.
6
+ * @param {boolean} interpolate - True if the script should be interpolated before being executed.
7
+ * @param {import('@formio/core').EvaluatorOptions} options - The evaluator options.
8
+ * @returns {*} - The result of the evaluation.
9
+ */
10
+ export function evaluate(func: Function | string | object, args: any, ret: string, interpolate: boolean, options?: import('@formio/core').EvaluatorOptions): any;
11
+ /**
12
+ * Returns a random compoennt ID.
13
+ * @returns {string} - A random component ID.
7
14
  */
8
- export function evaluate(func: any, args: any, ret: any, tokenize: any): any;
9
15
  export function getRandomComponentId(): string;
10
16
  /**
11
17
  * Get a property value of an element.
12
- *
13
- * @param style
14
- * @param prop
15
- * @return {number}
18
+ * @param {CSSStyleDeclaration} style - The style element to get the property value from.
19
+ * @param {string} prop - The property to get the value for.
20
+ * @returns {number} - The value of the property.
16
21
  */
17
- export function getPropertyValue(style: any, prop: any): number;
22
+ export function getPropertyValue(style: CSSStyleDeclaration, prop: string): number;
18
23
  /**
19
24
  * Get an elements bounding rectagle.
20
- *
21
- * @param element
22
- * @return {{x: string, y: string, width: string, height: string}}
23
- */
24
- export function getElementRect(element: any): {
25
- x: string;
26
- y: string;
27
- width: string;
28
- height: string;
25
+ * @param {HTMLElement} element - A DOM element to get the bounding rectangle for.
26
+ * @returns {{x: number, y: number, width: number, height: number}} - The bounding rectangle.
27
+ */
28
+ export function getElementRect(element: HTMLElement): {
29
+ x: number;
30
+ y: number;
31
+ width: number;
32
+ height: number;
29
33
  };
34
+ /**
35
+ * Get non HTMLElement property in the window object
36
+ * @param {string} property - The window property to fetch the script plugin from.
37
+ * @returns {any | undefined} - The HTML Element property on the window object.
38
+ */
39
+ export function getScriptPlugin(property: string): any | undefined;
30
40
  /**
31
41
  * Determines the boolean value of a setting.
32
- *
33
- * @param value
34
- * @return {boolean}
42
+ * @param {string|boolean} value - A string or boolean value to convert to boolean.
43
+ * @returns {boolean} - The boolean value of the setting.
35
44
  */
36
- export function boolValue(value: any): boolean;
45
+ export function boolValue(value: string | boolean): boolean;
37
46
  /**
38
47
  * Check to see if an ID is a mongoID.
39
- * @param text
40
- * @return {Array|{index: number, input: string}|Boolean|*}
48
+ * @param {string} text - The text to check if it is a mongoID.
49
+ * @returns {boolean} - TRUE if the text is a mongoID; FALSE otherwise.
41
50
  */
42
- export function isMongoId(text: any): any[] | {
43
- index: number;
44
- input: string;
45
- } | boolean | any;
51
+ export function isMongoId(text: string): boolean;
46
52
  /**
47
53
  * Checks the calculated value for a provided component and data.
48
- *
49
- * @param {Object} component
50
- * The component to check for the calculated value.
51
- * @param {Object} submission
52
- * A submission object.
53
- * @param data
54
- * The full submission data.
55
- */
56
- export function checkCalculated(component: Object, submission: Object, rowData: any): void;
57
- /**
58
- * Check if a simple conditional evaluates to true.
59
- *
60
- * @param condition
61
- * @param condition
62
- * @param row
63
- * @param data
64
- * @param instance
65
- * @returns {boolean}
54
+ * @param {import('@formio/core').Component} component - The component to check for the calculated value.
55
+ * @param {import('@formio/core').Submission} submission - A submission object.
56
+ * @param {*} rowData - The contextual row data for the component.
66
57
  */
58
+ export function checkCalculated(component: import('@formio/core').Component, submission: import('@formio/core').Submission, rowData: any): void;
67
59
  export function checkSimpleConditional(component: any, condition: any, row: any, data: any, instance: any): boolean;
68
- export function getComponentActualValue(compPath: any, data: any, row: any): any;
69
60
  /**
70
- * Check custom javascript conditional.
71
- *
72
- * @param component
73
- * @param custom
74
- * @param row
75
- * @param data
76
- * @returns {*}
61
+ * Returns a components normalized value.
62
+ * @param {string} compPath - The full path to the component.
63
+ * @param {*} data - The data object to get the value from.
64
+ * @param {*} row - The contextual row data for the component.
65
+ * @returns {*} - The normalized value of the component.
77
66
  */
78
- export function checkCustomConditional(component: any, custom: any, row: any, data: any, form: any, variable: any, onError: any, instance: any): any;
79
- export function checkJsonConditional(component: any, json: any, row: any, data: any, form: any, onError: any): any;
67
+ export function getComponentActualValue(compPath: string, data: any, row: any): any;
68
+ /**
69
+ * Check custom javascript conditional.
70
+ * @param {import('@formio/core').Component} component - The component to check for the conditional.
71
+ * @param {string} custom - The custom conditional string to evaluate.
72
+ * @param {*} row - The row data for the component.
73
+ * @param {*} data - The full submission data.
74
+ * @param {import('@formio/core').Form} form - The form object.
75
+ * @param {string} variable - The variable name for the result of the custom conditional.
76
+ * @param {*} onError - A custom return if there is an error or the value is null from the evaluation.
77
+ * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.
78
+ * @returns {*} - The result of the evaulation.
79
+ */
80
+ export function checkCustomConditional(component: import('@formio/core').Component, custom: string, row: any, data: any, form: import('@formio/core').Form, variable: string, onError: any, instance: any): any;
81
+ /**
82
+ * Check a component for JSON conditionals.
83
+ * @param {import('@formio/core').Component} component - The component
84
+ * @param {import('@formio/core').JSONConditional} json - The json conditional to check.
85
+ * @param {*} row - The contextual row data for the component.
86
+ * @param {*} data - The full submission data.
87
+ * @param {import('@formio/core').Form} form - The Form JSON of the form.
88
+ * @param {*} onError - Custom return value if there is an error.
89
+ * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
90
+ */
91
+ export function checkJsonConditional(component: import('@formio/core').Component, json: import('@formio/core').JSONConditional, row: any, data: any, form: import('@formio/core').Form, onError: any): boolean;
80
92
  /**
81
93
  * Checks the conditions for a provided component and data.
82
- *
83
- * @param component
84
- * The component to check for the condition.
85
- * @param row
86
- * The data within a row
87
- * @param data
88
- * The full submission data.
89
- *
90
- * @returns {boolean}
91
- */
92
- export function checkCondition(component: any, row: any, data: any, form: any, instance: any): boolean;
94
+ * @param {import('@formio/core').Component} component - The component to check for the condition.
95
+ * @param {*} row - The data within a row
96
+ * @param {*} data - The full submission data.
97
+ * @param {import('@formio/core').Form} form - The form object.
98
+ * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.
99
+ * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.
100
+ */
101
+ export function checkCondition(component: import('@formio/core').Component, row: any, data: any, form: import('@formio/core').Form, instance: any): boolean;
93
102
  /**
94
103
  * Test a trigger on a component.
95
- *
96
- * @param component
97
- * @param action
98
- * @param data
99
- * @param row
100
- * @returns {mixed}
104
+ * @param {import('@formio/core').Component} component - The component to test the trigger against.
105
+ * @param {import('@formio/core').LogicTrigger} trigger - The trigger configuration.
106
+ * @param {import('@formio/core').DataObject} row - The contextual row data.
107
+ * @param {import('@formio/core').DataObject} data - The root data object.
108
+ * @param {import('@formio/core').Form} form - The form object.
109
+ * @param {any} instance - The component that is performing the trigger.
110
+ * @returns {boolean} - TRUE if the trigger should fire; FALSE otherwise.
101
111
  */
102
- export function checkTrigger(component: any, trigger: any, row: any, data: any, form: any, instance: any): mixed;
103
- export function setActionProperty(component: any, action: any, result: any, row: any, data: any, instance: any): any;
112
+ export function checkTrigger(component: import('@formio/core').Component, trigger: any, row: import('@formio/core').DataObject, data: import('@formio/core').DataObject, form: import('@formio/core').Form, instance: any): boolean;
113
+ /**
114
+ * Sets a property on a component via an executed Logic action.
115
+ * @param {import('@formio/core').Component} component - The component to set the property on.
116
+ * @param {import('@formio/core').LogicAction} action - The action to perform on the component.
117
+ * @param {string} result - The name of the variable in the evaulation to use as the result.
118
+ * @param {import('@formio/core').DataObject} row - The contextual row data.
119
+ * @param {import('@formio/core').DataObject} data - The full submission data.
120
+ * @param {any} instance - The component instance.
121
+ * @returns {import('@formio/core').Component} - The modified component.
122
+ */
123
+ export function setActionProperty(component: import('@formio/core').Component, action: any, result: string, row: import('@formio/core').DataObject, data: import('@formio/core').DataObject, instance: any): import('@formio/core').Component;
124
+ /**
125
+ * Removes HTML tags from string e.g. <div>Hello World</div> => Hello World
126
+ * @param {string} str - The string to remove HTML tags from.
127
+ * @returns {string} - The string without HTML tags.
128
+ */
129
+ export function removeHTML(str: string): string;
104
130
  /**
105
131
  * Unescape HTML characters like &lt, &gt, &amp and etc.
106
- * @param str
107
- * @returns {string}
132
+ * @param {string} str - The string to unescape.
133
+ * @returns {string} - The unescaped string.
108
134
  */
109
- export function unescapeHTML(str: any): string;
135
+ export function unescapeHTML(str: string): string;
110
136
  /**
111
137
  * Make HTML element from string
112
- * @param str
113
- * @param selector
114
- * @returns {HTMLElement}
138
+ * @param {string} str - The string to convert to an HTML element.
139
+ * @param {string} selector - The selector to use to get the element once it is created.
140
+ * @returns {HTMLElement} - The HTML element that was created.
115
141
  */
116
- export function convertStringToHTMLElement(str: any, selector: any): HTMLElement;
142
+ export function convertStringToHTMLElement(str: string, selector: string): HTMLElement;
117
143
  /**
118
144
  * Make a filename guaranteed to be unique.
119
- * @param name
120
- * @param template
121
- * @param evalContext
122
- * @returns {string}
145
+ * @param {string} name - The original name of the file.
146
+ * @param {string} template - The template to use for the unique name.
147
+ * @param {object} evalContext - The context to use for the evaluation.
148
+ * @returns {string} - A unique filename.
149
+ */
150
+ export function uniqueName(name: string, template: string, evalContext: object): string;
151
+ /**
152
+ * Returns a GUID
153
+ * @returns {string} - A GUID.
123
154
  */
124
- export function uniqueName(name: any, template: any, evalContext: any): string;
125
155
  export function guid(): string;
126
156
  /**
127
157
  * Return a translated date setting.
128
- *
129
- * @param date
130
- * @return {(null|Date)}
158
+ * @param {string|Date} date - The date to translate.
159
+ * @returns {(null|Date)} - The translated date.
131
160
  */
132
- export function getDateSetting(date: any): (null | Date);
133
- export function isValidDate(date: any): any;
161
+ export function getDateSetting(date: string | Date): (null | Date);
162
+ /**
163
+ * Returns true if the date is a valid date. False otherwise.
164
+ * @param {Date|string} date - The date to check for validity.
165
+ * @returns {boolean} - TRUE if the date is valid; FALSE otherwise.
166
+ */
167
+ export function isValidDate(date: Date | string): boolean;
134
168
  /**
135
169
  * Get the current timezone string.
136
- *
137
- * @return {string}
170
+ * @returns {string} - The current timezone.
138
171
  */
139
172
  export function currentTimezone(): string;
140
173
  /**
141
174
  * Get an offset date provided a date object and timezone object.
142
- *
143
- * @param date
144
- * @param timezone
145
- * @return {Date}
175
+ * @param {Date} date - The date to offset.
176
+ * @param {string} timezone - The timezone to offset the date to.
177
+ * @returns {Date} - The offset date.
146
178
  */
147
- export function offsetDate(date: any, timezone: any): Date;
179
+ export function offsetDate(date: Date, timezone: string): Date;
148
180
  /**
149
181
  * Returns if the zones are loaded.
150
- *
151
- * @return {boolean}
182
+ * @returns {boolean} - TRUE if the zones are loaded; FALSE otherwise.
152
183
  */
153
184
  export function zonesLoaded(): boolean;
154
185
  /**
155
186
  * Returns if we should load the zones.
156
- *
157
- * @param timezone
158
- * @return {boolean}
187
+ * @param {string} timezone - The timezone to check if we should load the zones.
188
+ * @returns {boolean} - TRUE if we should load the zones; FALSE otherwise.
159
189
  */
160
- export function shouldLoadZones(timezone: any): boolean;
190
+ export function shouldLoadZones(timezone: string): boolean;
161
191
  /**
162
192
  * Externally load the timezone data.
163
- *
164
- * @return {Promise<any> | *}
193
+ * @param {string} url - The URL to load the timezone data from.
194
+ * @param {string} timezone - The timezone to load.
195
+ * @returns {Promise<any> | *} - Resolves when the zones for this timezone are loaded.
165
196
  */
166
- export function loadZones(url: any, timezone: any): Promise<any> | any;
197
+ export function loadZones(url: string, timezone: string): Promise<any> | any;
167
198
  /**
168
199
  * Get the moment date object for translating dates with timezones.
169
- *
170
- * @param value
171
- * @param format
172
- * @param timezone
173
- * @return {*}
200
+ * @param {string|Date} value - The value to convert into a moment date.
201
+ * @param {string} format - The format to convert the date to.
202
+ * @param {string} timezone - The timezone to convert the date to.
203
+ * @returns {Date} - The moment date object.
174
204
  */
175
- export function momentDate(value: any, format: any, timezone: any): any;
205
+ export function momentDate(value: string | Date, format: string, timezone: string): Date;
176
206
  /**
177
207
  * Format a date provided a value, format, and timezone object.
178
- *
179
- * @param value
180
- * @param format
181
- * @param timezone
182
- * @return {string}
208
+ * @param {string} timezonesUrl - The URL to load the timezone data from.
209
+ * @param {string|Date} value - The value to format.
210
+ * @param {string} format - The format to format the date to.
211
+ * @param {string} timezone - The timezone to format the date to.
212
+ * @param {string} flatPickrInputFormat - The format to use for flatpickr input.
213
+ * @returns {string} - The formatted date.
183
214
  */
184
- export function formatDate(timezonesUrl: any, value: any, format: any, timezone: any, flatPickrInputFormat: any): string;
215
+ export function formatDate(timezonesUrl: string, value: string | Date, format: string, timezone: string, flatPickrInputFormat: string): string;
185
216
  /**
186
217
  * Pass a format function to format within a timezone.
187
- *
188
- * @param formatFn
189
- * @param date
190
- * @param format
191
- * @param timezone
192
- * @return {string}
193
- */
194
- export function formatOffset(timezonesUrl: any, formatFn: any, date: any, format: any, timezone: any): string;
195
- export function getLocaleDateFormatInfo(locale: any): {
196
- dayFirst: boolean;
197
- };
218
+ * @param {string} timezonesUrl - The URL to load the timezone data from.
219
+ * @param {Function} formatFn - The format function to use.
220
+ * @param {Date|string} date - The date to format.
221
+ * @param {string} format - The format to format the date to.
222
+ * @param {string} timezone - The timezone to format the date to.
223
+ * @returns {string} - The formatted date.
224
+ */
225
+ export function formatOffset(timezonesUrl: string, formatFn: Function, date: Date | string, format: string, timezone: string): string;
226
+ /**
227
+ * Returns the local date format information.
228
+ * @param {Intl.LocalesArgument} locale - The locale to get the date format for.
229
+ * @returns {object} - The local date format information.
230
+ */
231
+ export function getLocaleDateFormatInfo(locale: Intl.LocalesArgument): object;
198
232
  /**
199
233
  * Convert the format from the angular-datepicker module to flatpickr format.
200
- * @param format
201
- * @return {string}
234
+ * @param {string} format - The format to convert.
235
+ * @returns {string} - The converted format.
202
236
  */
203
- export function convertFormatToFlatpickr(format: any): string;
237
+ export function convertFormatToFlatpickr(format: string): string;
204
238
  /**
205
239
  * Convert the format from the angular-datepicker module to moment format.
206
- * @param format
207
- * @return {string}
240
+ * @param {string} format - The format to convert.
241
+ * @returns {string} - The converted format.
242
+ */
243
+ export function convertFormatToMoment(format: string): string;
244
+ /**
245
+ * Convert the format from the angular-datepicker module to mask format.
246
+ * @param {string} format - The format to convert.
247
+ * @returns {string} - The converted format.
208
248
  */
209
- export function convertFormatToMoment(format: any): string;
210
- export function convertFormatToMask(format: any): any;
249
+ export function convertFormatToMask(format: string): string;
211
250
  /**
212
251
  * Returns an input mask that is compatible with the input mask library.
213
252
  * @param {string} mask - The Form.io input mask.
@@ -215,149 +254,259 @@ export function convertFormatToMask(format: any): any;
215
254
  * @returns {Array} - The input mask for the mask library.
216
255
  */
217
256
  export function getInputMask(mask: string, placeholderChar: string): any[];
218
- export function unmaskValue(value: any, mask: any, placeholderChar: any): any;
219
- export function matchInputMask(value: any, inputMask: any): boolean;
257
+ /**
258
+ * Unmasks a value using the provided mask and placeholder characters.
259
+ * @param {string} value - The value to unmask.
260
+ * @param {string} mask - The mask to use for unmasking.
261
+ * @param {string} placeholderChar - The placeholder character to use for unmasking.
262
+ * @returns {string} - The unmasked value.
263
+ */
264
+ export function unmaskValue(value: string, mask: string, placeholderChar: string): string;
265
+ /**
266
+ * Returns true if the value matches the input mask format.
267
+ * @param {string} value - The value to check.
268
+ * @param {string} inputMask - The input mask to check against.
269
+ * @returns {boolean} - TRUE if the value matches the input mask; FALSE otherwise.
270
+ */
271
+ export function matchInputMask(value: string, inputMask: string): boolean;
272
+ /**
273
+ * Returns the number separators (i.e. 1,000) for the provided language.
274
+ * @param {string} lang - The language code to get the number separators for.
275
+ * @returns {{delimiter: string, decimalSeparator: string}} - The number separators.
276
+ */
220
277
  export function getNumberSeparators(lang?: string): {
221
278
  delimiter: string;
222
279
  decimalSeparator: string;
223
280
  };
224
- export function getNumberDecimalLimit(component: any, defaultLimit: any): any;
281
+ /**
282
+ * Returns the number for the maximum amount of decimal places for a number.
283
+ * @param {import('@formio/core').Component} component - The component to check for decimal limits.
284
+ * @param {number} defaultLimit - The default limit to use if none is provided in the component.
285
+ * @returns {number} - The number of decimal places allowed.
286
+ */
287
+ export function getNumberDecimalLimit(component: import('@formio/core').Component, defaultLimit: number): number;
288
+ /**
289
+ * Returns the currency affixes for a specific language.
290
+ * @param {object} arg0 - The arguments object.
291
+ * @param {string} arg0.currency - The currency code to get the affixes for.
292
+ * @param {number} arg0.decimalLimit - The number of decimal places to use.
293
+ * @param {string} arg0.decimalSeparator - The decimal separator to use.
294
+ * @param {string} arg0.lang - The language code to use.
295
+ * @returns {{prefix: string, suffix: string}} - The currency affixes.
296
+ */
225
297
  export function getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, lang, }: {
226
- currency: any;
227
- decimalLimit: any;
228
- decimalSeparator: any;
229
- lang: any;
298
+ currency: string;
299
+ decimalLimit: number;
300
+ decimalSeparator: string;
301
+ lang: string;
230
302
  }): {
231
303
  prefix: string;
232
304
  suffix: string;
233
305
  };
234
306
  /**
235
307
  * Fetch the field data provided a component.
236
- *
237
- * @param data
238
- * @param component
239
- * @return {*}
308
+ * @param {import('@formio/core').DataObject} data - The data object to fetch the field data from.
309
+ * @param {import('@formio/core').Component} component - The component to fetch the field data for.
310
+ * @returns {*} - The field data.
240
311
  */
241
- export function fieldData(data: any, component: any): any;
312
+ export function fieldData(data: import('@formio/core').DataObject, component: import('@formio/core').Component): any;
242
313
  /**
243
314
  * Delays function execution with possibility to execute function synchronously or cancel it.
244
- *
245
- * @param fn Function to delay
246
- * @param delay Delay time
247
- * @return {*}
315
+ * @param {Function} fn - Function to delay
316
+ * @param {number} delay - Delay time
317
+ * @param {...any} args - Arguments to pass to the function
318
+ * @returns {*} - Function to cancel the delay
248
319
  */
249
- export function delay(fn: any, delay?: number, ...args: any[]): any;
320
+ export function delay(fn: Function, delay?: number, ...args: any[]): any;
250
321
  /**
251
322
  * Iterate the given key to make it unique.
252
- *
253
- * @param {String} key
323
+ * @param {string} key
254
324
  * Modify the component key to be unique.
255
- *
256
- * @returns {String}
325
+ * @returns {string}
257
326
  * The new component key.
258
327
  */
259
328
  export function iterateKey(key: string): string;
260
329
  /**
261
330
  * Determines a unique key within a map provided the base key.
262
- *
263
- * @param map
264
- * @param base
265
- * @return {*}
331
+ * @param {Record<string, string>} map - The map to check for uniqueness.
332
+ * @param {string} base - The base path of the key.
333
+ * @returns {string} - The unique key.
266
334
  */
267
- export function uniqueKey(map: any, base: any): any;
335
+ export function uniqueKey(map: Record<string, string>, base: string): string;
268
336
  /**
269
337
  * Determines the major version number of bootstrap.
270
- *
271
- * @return {number}
338
+ * @param {object} options - The options to check for bootstrap version.
339
+ * @param {string} options.bootstrap - The bootstrap version to use.
340
+ * @returns {number} - The bootstrap version.
272
341
  */
273
- export function bootstrapVersion(options: any): number;
342
+ export function bootstrapVersion(options: {
343
+ bootstrap: string;
344
+ }): number;
274
345
  /**
275
346
  * Retrun provided argument.
276
347
  * If argument is a function, returns the result of a function call.
277
- * @param {*} e;
278
- *
279
- * @return {*}
280
- */
281
- export function unfold(e: any): any;
282
- export function withSwitch(a: any, b: any): (() => any)[];
283
- export function observeOverload(callback: any, options?: {}): () => any;
284
- export function getContextComponents(context: any, excludeNested: any, excludedTypes?: any[]): any[];
348
+ * @param {Function|any} e - The argument to check if a function and call if so.
349
+ * @returns {any} - Either the result of the function call (e) or e if it is not a function.
350
+ */
351
+ export function unfold(e: Function | any): any;
352
+ /**
353
+ * Create enclosed state. Returns functions to getting and cycling between states.
354
+ * @param {*} a - initial state.
355
+ * @param {*} b - next state.
356
+ * @returns {Functions[]} -- [get, toggle];
357
+ */
358
+ export function withSwitch(a: any, b: any): Functions[];
359
+ /**
360
+ * Create a function that will call the provided function only the provided limit.
361
+ * @param {Function} callback - The callback to call.
362
+ * @param {object} options - The options to use.
363
+ * @param {number} options.limit - The limit to call the callback.
364
+ * @param {number} options.delay - The delay to wait before resetting the call count.
365
+ * @returns {Function} - The function that will call the callback only the provided limit.
366
+ */
367
+ export function observeOverload(callback: Function, options?: {
368
+ limit: number;
369
+ delay: number;
370
+ }): Function;
371
+ /**
372
+ * Returns the components that are provided within an evaluation context.
373
+ * @param {any} context - The evaluation context to get the components from.
374
+ * @param {boolean} excludeNested - Exclude nested components.
375
+ * @param {Array<string>} excludedTypes - The types of components to exclude.
376
+ * @returns {Array} - The components within the evaluation context.
377
+ */
378
+ export function getContextComponents(context: any, excludeNested: boolean, excludedTypes?: Array<string>): any[];
379
+ /**
380
+ * Returns the button components that are within an evaluation context.
381
+ * @param {any} context - The evaluation context to get the components from.
382
+ * @returns {Array} - The button components within the evaluation context.
383
+ */
285
384
  export function getContextButtons(context: any): any[];
286
385
  /**
287
386
  * Translates text values in html template.
288
- *
289
- * @param {String} template
290
- * @param {Function} translate
291
- *
292
- * @returns {String}
293
- * Html template with translated values.
387
+ * @param {string} template - The template to translate.
388
+ * @param {Function} translate - The translation function.
389
+ * @returns {string} - Html template with translated values.
294
390
  */
295
391
  export function translateHTMLTemplate(template: string, translate: Function): string;
296
392
  /**
297
393
  * Sanitize an html string.
298
- *
299
- * @param string
300
- * @returns {*}
394
+ * @param {string} string - The string to sanitize.
395
+ * @param {any} options - The options to use for sanitization.
396
+ * @returns {string} - The sanitized html string.
301
397
  */
302
- export function sanitize(string: any, options: any): any;
398
+ export function sanitize(string: string, options: any): string;
303
399
  /**
304
400
  * Fast cloneDeep for JSON objects only.
401
+ * @param {any} obj - The object to perform a fast clone deep against.
402
+ * @returns {any} - The cloned object.
305
403
  */
306
404
  export function fastCloneDeep(obj: any): any;
307
- export function isInputComponent(componentJson: any): any;
308
- export function getArrayFromComponentPath(pathStr: any): any;
405
+ /**
406
+ * Returns if the component is an input component.
407
+ * @param {import('@formio/core').Component} componentJson - The JSON of a component.
408
+ * @returns {bool} - TRUE if the component is an input component; FALSE otherwise.
409
+ */
410
+ export function isInputComponent(componentJson: import('@formio/core').Component): bool;
411
+ /**
412
+ * Takes a component path, and returns a component path array.
413
+ * @param {string} pathStr - The path string to convert to an array.
414
+ * @returns {Arryay<number>} - The array of paths.
415
+ */
416
+ export function getArrayFromComponentPath(pathStr: string): Arryay<number>;
417
+ /**
418
+ * Returns true if the component is a child of the parent.
419
+ * @param {any} child - The child component to check.
420
+ * @param {any} parent - The parent component to check.
421
+ * @returns {boolean} - TRUE if the child is a child of the parent; FALSE otherwise.
422
+ */
309
423
  export function isChildOf(child: any, parent: any): boolean;
310
- export function getStringFromComponentPath(path: any): any;
311
- export function round(number: any, precision: any): any;
424
+ /**
425
+ * Takes an array of component path indexes, and returns a string version of that array.
426
+ * @param {Array<number>} path - The path array to convert to a string.
427
+ * @returns {string} - The string version of the path.
428
+ */
429
+ export function getStringFromComponentPath(path: Array<number>): string;
430
+ /**
431
+ * Takes a number and rounds it to the provided precision amount.
432
+ * @param {number} number - The number to round.
433
+ * @param {number} precision - The precision to round the number to.
434
+ * @returns {string} - The rounded number.
435
+ */
436
+ export function round(number: number, precision: number): string;
312
437
  /**
313
438
  * Check for Internet Explorer browser version
314
- *
315
- * @return {(number|null)}
439
+ * @returns {(number|null)} - The IE browser version or null if not IE
316
440
  */
317
441
  export function getIEBrowserVersion(): (number | null);
318
442
  /**
319
443
  * Get browser name and version (modified from 'jquery-browser-plugin')
320
- *
321
- * @return {Object} -- {{browser name, version, isWebkit?}}
444
+ * @returns {object} -- {{browser name, version, isWebkit?}}
322
445
  * Possible browser names: chrome, safari, ie, edge, opera, mozilla, yabrowser
323
446
  */
324
- export function getBrowserInfo(): Object;
447
+ export function getBrowserInfo(): object;
448
+ /**
449
+ * Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.
450
+ * @param {string} path - The path to remove the indicies from.
451
+ * @returns {string} - The path without the indicies.
452
+ */
325
453
  export function getComponentPathWithoutIndicies(path?: string): string;
326
454
  /**
327
455
  * Returns a path to the component which based on its schema
328
- * @param {*} component is a component's schema containing link to its parent's schema in the 'parent' property
456
+ * @param {import('@formio/core').Component} component - Component containing link to its parent's schema in the 'parent' property
457
+ * @param {string} path - Path to the component
458
+ * @returns {string} - Path to the component
329
459
  */
330
- export function getComponentPath(component: any, path?: string): string;
460
+ export function getComponentPath(component: import('@formio/core').Component, path?: string): string;
331
461
  /**
332
462
  * Returns a parent component of the passed component instance skipping all the Layout components
333
- * @param {*} componentInstance
334
- * @return {(Component|undefined)}
463
+ * @param {Component} componentInstance - The component to check for the parent.
464
+ * @returns {Component|undefined} - The parent data component.
335
465
  */
336
- export function getDataParentComponent(componentInstance: any): (Component | undefined);
466
+ export function getDataParentComponent(componentInstance: Component): Component | undefined;
337
467
  /**
338
468
  * Returns whether the value is a promise
339
- * @param value
340
- * @return {boolean}
469
+ * @param {any} value - The value to check
470
+ * @returns {boolean} - TRUE if the value is a promise; FALSE otherwise
341
471
  */
342
472
  export function isPromise(value: any): boolean;
343
473
  /**
344
474
  * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
345
475
  * changes by itself, e.g. EditGrid)
346
- * @param componentInstance
347
- * @param firstPass
348
- * @returns {boolean|boolean|*}
349
- */
350
- export function isInsideScopingComponent(componentInstance: any, firstPass?: boolean): boolean | boolean | any;
351
- export function getFocusableElements(element: any): any;
352
- export function getComponentSavedTypes(fullSchema: any): string[] | null;
353
- export function getItemTemplateKeys(template: any): any[];
354
- export function isSelectResourceWithObjectValue(comp?: {}): any;
476
+ * @param {Component} componentInstance - The component to check for the scoping parent.
477
+ * @param {boolean} firstPass - Whether it is the first pass of the function
478
+ * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise
479
+ */
480
+ export function isInsideScopingComponent(componentInstance: Component, firstPass?: boolean): boolean | any;
481
+ /**
482
+ * Returns all the focusable elements within the provided dom element.
483
+ * @param {HTMLElement} element - The element to get the focusable elements from.
484
+ * @returns {NodeList<HTMLElement>} - The focusable elements within the provided element.
485
+ */
486
+ export function getFocusableElements(element: HTMLElement): NodeList<HTMLElement>;
487
+ /**
488
+ * Returns the saved types for the component
489
+ * @param {import('@formio/core').Component} fullSchema - The component schema
490
+ * @returns {Array<string>|null} - The saved types for the component
491
+ */
492
+ export function getComponentSavedTypes(fullSchema: import('@formio/core').Component): Array<string> | null;
493
+ /**
494
+ * Returns the template keys inside the template code.
495
+ * @param {string} template - The template to get the keys from.
496
+ * @returns {Array<string>} - The keys inside the template.
497
+ */
498
+ export function getItemTemplateKeys(template: string): Array<string>;
499
+ /**
500
+ * Returns if the component is a select resource with an object for its value.
501
+ * @param {import('@formio/core').Component} comp - The component to check.
502
+ * @returns {boolean} - TRUE if the component is a select resource with an object for its value; FALSE otherwise.
503
+ */
504
+ export function isSelectResourceWithObjectValue(comp?: import('@formio/core').Component): boolean;
355
505
  export * from "./formUtils";
356
506
  /**
357
507
  * Map values through unfold and return first non-nil value.
358
- * @param {Array<T>} collection;
359
- *
360
- * @return {T}
508
+ * @param {Array<T>} collection - The collection to map through unfold.;
509
+ * @returns {T} - The first non-nil value.
361
510
  */
362
511
  export const firstNonNil: any;
363
512
  export namespace componentValueTypes {
@@ -369,9 +518,9 @@ export namespace componentValueTypes {
369
518
  let date: string;
370
519
  let any: string;
371
520
  }
372
- export function interpolateErrors(component: any, errors: FieldError[], interpolateFn: any): [];
521
+ export function interpolateErrors(component: Component, errors: FieldError[], interpolateFn: Function): [];
373
522
  import jsonLogic from 'json-logic-js';
374
523
  import ConditionOperators from './conditionOperators';
375
- import Evaluator from './Evaluator';
376
- export const interpolate: (rawTemplate: any, data: any, _options: any) => any;
377
- export { jsonLogic, ConditionOperators, Evaluator, _ };
524
+ import { Evaluator } from './Evaluator';
525
+ export const interpolate: typeof Evaluator.interpolate;
526
+ export { jsonLogic, moment, ConditionOperators, Evaluator, _ };