@formio/js 5.0.0-dev.5610.da13e39 → 5.0.0-dev.5613.3476921

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 (448) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +1199 -651
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +11 -3
  7. package/dist/formio.full.js +919 -691
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +11 -3
  10. package/dist/formio.js +16 -16
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +493 -1861
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +2 -12
  16. package/lib/cjs/Element.d.ts +96 -86
  17. package/lib/cjs/Element.js +78 -68
  18. package/lib/cjs/Form.d.ts +36 -365
  19. package/lib/cjs/Form.js +64 -50
  20. package/lib/cjs/FormBuilder.d.ts +2 -187
  21. package/lib/cjs/FormBuilder.js +8 -30
  22. package/lib/cjs/PDF.d.ts +13 -11
  23. package/lib/cjs/PDF.js +8 -6
  24. package/lib/cjs/Webform.d.ts +139 -180
  25. package/lib/cjs/Webform.js +298 -313
  26. package/lib/cjs/WebformBuilder.d.ts +14 -16
  27. package/lib/cjs/WebformBuilder.js +11 -17
  28. package/lib/cjs/Wizard.d.ts +21 -31
  29. package/lib/cjs/Wizard.js +19 -42
  30. package/lib/cjs/WizardBuilder.d.ts +1 -1
  31. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +5 -8
  32. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +3 -6
  33. package/lib/cjs/components/Components.d.ts +4 -4
  34. package/lib/cjs/components/Components.js +3 -3
  35. package/lib/cjs/components/_classes/component/Component.d.ts +269 -502
  36. package/lib/cjs/components/_classes/component/Component.form.d.ts +3 -6
  37. package/lib/cjs/components/_classes/component/Component.form.js +0 -5
  38. package/lib/cjs/components/_classes/component/Component.js +189 -433
  39. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
  40. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  41. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  42. package/lib/cjs/components/_classes/field/Field.d.ts +2 -11
  43. package/lib/cjs/components/_classes/field/Field.js +1 -13
  44. package/lib/cjs/components/_classes/input/Input.d.ts +3 -4
  45. package/lib/cjs/components/_classes/input/Input.js +2 -2
  46. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  47. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +3 -6
  48. package/lib/cjs/components/_classes/list/ListComponent.form.js +0 -5
  49. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +12 -43
  50. package/lib/cjs/components/_classes/multivalue/Multivalue.js +3 -37
  51. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +67 -163
  52. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +3 -6
  53. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -5
  54. package/lib/cjs/components/_classes/nested/NestedComponent.js +54 -175
  55. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
  56. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  57. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -7
  58. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +3 -2
  59. package/lib/cjs/components/address/Address.d.ts +2 -4
  60. package/lib/cjs/components/address/Address.form.d.ts +3 -6
  61. package/lib/cjs/components/address/Address.form.js +0 -5
  62. package/lib/cjs/components/button/Button.d.ts +12 -3
  63. package/lib/cjs/components/button/Button.form.d.ts +3 -6
  64. package/lib/cjs/components/button/Button.form.js +0 -5
  65. package/lib/cjs/components/button/Button.js +0 -5
  66. package/lib/cjs/components/checkbox/Checkbox.d.ts +27 -4
  67. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +3 -6
  68. package/lib/cjs/components/checkbox/Checkbox.form.js +0 -5
  69. package/lib/cjs/components/columns/Columns.d.ts +2 -3
  70. package/lib/cjs/components/columns/Columns.form.d.ts +3 -6
  71. package/lib/cjs/components/columns/Columns.form.js +0 -5
  72. package/lib/cjs/components/columns/Columns.js +1 -1
  73. package/lib/cjs/components/container/Container.form.d.ts +3 -6
  74. package/lib/cjs/components/container/Container.form.js +0 -5
  75. package/lib/cjs/components/content/Content.d.ts +1 -2
  76. package/lib/cjs/components/content/Content.form.d.ts +3 -6
  77. package/lib/cjs/components/content/Content.form.js +0 -5
  78. package/lib/cjs/components/currency/Currency.form.d.ts +3 -6
  79. package/lib/cjs/components/currency/Currency.form.js +0 -5
  80. package/lib/cjs/components/currency/Currency.js +2 -1
  81. package/lib/cjs/components/datagrid/DataGrid.d.ts +7 -8
  82. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +3 -6
  83. package/lib/cjs/components/datagrid/DataGrid.form.js +0 -5
  84. package/lib/cjs/components/datagrid/DataGrid.js +5 -5
  85. package/lib/cjs/components/datamap/DataMap.d.ts +0 -1
  86. package/lib/cjs/components/datamap/DataMap.form.d.ts +3 -6
  87. package/lib/cjs/components/datamap/DataMap.form.js +0 -5
  88. package/lib/cjs/components/datetime/DateTime.d.ts +14 -0
  89. package/lib/cjs/components/datetime/DateTime.form.d.ts +3 -6
  90. package/lib/cjs/components/datetime/DateTime.form.js +0 -5
  91. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  92. package/lib/cjs/components/day/Day.d.ts +48 -22
  93. package/lib/cjs/components/day/Day.form.d.ts +3 -6
  94. package/lib/cjs/components/day/Day.form.js +0 -5
  95. package/lib/cjs/components/day/Day.js +20 -15
  96. package/lib/cjs/components/editgrid/EditGrid.d.ts +3 -7
  97. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +3 -6
  98. package/lib/cjs/components/editgrid/EditGrid.form.js +0 -5
  99. package/lib/cjs/components/editgrid/EditGrid.js +3 -3
  100. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +5 -2
  101. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +9 -6
  102. package/lib/cjs/components/email/Email.form.d.ts +3 -6
  103. package/lib/cjs/components/email/Email.form.js +0 -5
  104. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +3 -6
  105. package/lib/cjs/components/fieldset/Fieldset.form.js +0 -5
  106. package/lib/cjs/components/file/File.d.ts +22 -9
  107. package/lib/cjs/components/file/File.form.d.ts +3 -6
  108. package/lib/cjs/components/file/File.form.js +0 -5
  109. package/lib/cjs/components/form/Form.d.ts +20 -31
  110. package/lib/cjs/components/form/Form.form.d.ts +3 -6
  111. package/lib/cjs/components/form/Form.form.js +0 -5
  112. package/lib/cjs/components/form/Form.js +10 -13
  113. package/lib/cjs/components/hidden/Hidden.d.ts +11 -1
  114. package/lib/cjs/components/hidden/Hidden.form.d.ts +3 -6
  115. package/lib/cjs/components/hidden/Hidden.form.js +0 -5
  116. package/lib/cjs/components/hidden/Hidden.js +2 -1
  117. package/lib/cjs/components/html/HTML.d.ts +1 -2
  118. package/lib/cjs/components/html/HTML.form.d.ts +3 -6
  119. package/lib/cjs/components/html/HTML.form.js +0 -5
  120. package/lib/cjs/components/number/Number.d.ts +17 -3
  121. package/lib/cjs/components/number/Number.form.d.ts +3 -6
  122. package/lib/cjs/components/number/Number.form.js +0 -5
  123. package/lib/cjs/components/number/Number.js +2 -1
  124. package/lib/cjs/components/panel/Panel.form.d.ts +3 -6
  125. package/lib/cjs/components/panel/Panel.form.js +0 -5
  126. package/lib/cjs/components/panel/Panel.js +1 -0
  127. package/lib/cjs/components/password/Password.form.d.ts +3 -6
  128. package/lib/cjs/components/password/Password.form.js +0 -5
  129. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +3 -6
  130. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +0 -5
  131. package/lib/cjs/components/radio/Radio.d.ts +26 -3
  132. package/lib/cjs/components/radio/Radio.form.d.ts +3 -6
  133. package/lib/cjs/components/radio/Radio.form.js +0 -5
  134. package/lib/cjs/components/radio/Radio.js +4 -3
  135. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  136. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -5
  137. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +0 -4
  138. package/lib/cjs/components/select/Select.d.ts +39 -16
  139. package/lib/cjs/components/select/Select.form.d.ts +3 -6
  140. package/lib/cjs/components/select/Select.form.js +0 -5
  141. package/lib/cjs/components/select/Select.js +16 -13
  142. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +17 -2
  143. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +3 -6
  144. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +0 -5
  145. package/lib/cjs/components/selectboxes/SelectBoxes.js +9 -7
  146. package/lib/cjs/components/signature/Signature.d.ts +14 -1
  147. package/lib/cjs/components/signature/Signature.form.d.ts +3 -6
  148. package/lib/cjs/components/signature/Signature.form.js +0 -5
  149. package/lib/cjs/components/survey/Survey.d.ts +15 -3
  150. package/lib/cjs/components/survey/Survey.form.d.ts +3 -6
  151. package/lib/cjs/components/survey/Survey.form.js +0 -5
  152. package/lib/cjs/components/table/Table.d.ts +1 -2
  153. package/lib/cjs/components/table/Table.form.d.ts +3 -6
  154. package/lib/cjs/components/table/Table.form.js +0 -5
  155. package/lib/cjs/components/tabs/Tabs.d.ts +4 -4
  156. package/lib/cjs/components/tabs/Tabs.form.d.ts +3 -6
  157. package/lib/cjs/components/tabs/Tabs.form.js +0 -5
  158. package/lib/cjs/components/tabs/Tabs.js +2 -1
  159. package/lib/cjs/components/tags/Tags.d.ts +14 -0
  160. package/lib/cjs/components/tags/Tags.form.d.ts +3 -6
  161. package/lib/cjs/components/tags/Tags.form.js +0 -5
  162. package/lib/cjs/components/textarea/TextArea.d.ts +9 -4
  163. package/lib/cjs/components/textarea/TextArea.form.d.ts +3 -6
  164. package/lib/cjs/components/textarea/TextArea.form.js +0 -5
  165. package/lib/cjs/components/textarea/TextArea.js +2 -2
  166. package/lib/cjs/components/textfield/TextField.d.ts +30 -14
  167. package/lib/cjs/components/textfield/TextField.form.d.ts +3 -6
  168. package/lib/cjs/components/textfield/TextField.form.js +0 -5
  169. package/lib/cjs/components/textfield/TextField.js +16 -13
  170. package/lib/cjs/components/time/Time.form.d.ts +3 -6
  171. package/lib/cjs/components/time/Time.form.js +0 -5
  172. package/lib/cjs/components/unknown/Unknown.form.d.ts +34 -5
  173. package/lib/cjs/components/unknown/Unknown.form.js +0 -4
  174. package/lib/cjs/components/url/Url.form.d.ts +3 -6
  175. package/lib/cjs/components/url/Url.form.js +0 -5
  176. package/lib/cjs/components/well/Well.form.d.ts +3 -6
  177. package/lib/cjs/components/well/Well.form.js +0 -5
  178. package/lib/cjs/formio.embed.d.ts +2 -1
  179. package/lib/cjs/formio.embed.js +100 -2
  180. package/lib/cjs/formio.form.d.ts +4 -11
  181. package/lib/cjs/formio.form.js +5 -13
  182. package/lib/cjs/providers/Providers.d.ts +5 -36
  183. package/lib/cjs/providers/Providers.js +0 -29
  184. package/lib/cjs/providers/address/AddressProvider.d.ts +12 -131
  185. package/lib/cjs/providers/address/AddressProvider.js +2 -88
  186. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -48
  187. package/lib/cjs/providers/address/AzureAddressProvider.js +0 -37
  188. package/lib/cjs/providers/address/CustomAddressProvider.d.ts +4 -27
  189. package/lib/cjs/providers/address/CustomAddressProvider.js +0 -34
  190. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +6 -130
  191. package/lib/cjs/providers/address/GoogleAddressProvider.js +0 -72
  192. package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +7 -32
  193. package/lib/cjs/providers/address/NominatimAddressProvider.js +0 -33
  194. package/lib/cjs/providers/address/index.d.ts +1 -3
  195. package/lib/cjs/providers/processor/fileProcessor.d.ts +1 -7
  196. package/lib/cjs/providers/processor/fileProcessor.js +0 -6
  197. package/lib/cjs/providers/storage/azure.d.ts +13 -6
  198. package/lib/cjs/providers/storage/azure.js +0 -5
  199. package/lib/cjs/providers/storage/base64.d.ts +6 -5
  200. package/lib/cjs/providers/storage/base64.js +0 -4
  201. package/lib/cjs/providers/storage/dropbox.d.ts +4 -6
  202. package/lib/cjs/providers/storage/dropbox.js +0 -5
  203. package/lib/cjs/providers/storage/googleDrive.d.ts +5 -7
  204. package/lib/cjs/providers/storage/googleDrive.js +0 -6
  205. package/lib/cjs/providers/storage/indexeddb.d.ts +7 -5
  206. package/lib/cjs/providers/storage/indexeddb.js +0 -4
  207. package/lib/cjs/providers/storage/s3.d.ts +20 -6
  208. package/lib/cjs/providers/storage/s3.js +0 -5
  209. package/lib/cjs/providers/storage/url.d.ts +7 -6
  210. package/lib/cjs/providers/storage/url.js +0 -10
  211. package/lib/cjs/providers/storage/util.d.ts +1 -24
  212. package/lib/cjs/providers/storage/util.js +0 -18
  213. package/lib/cjs/templates/Templates.d.ts +0 -1
  214. package/lib/cjs/translations/en.d.ts +1 -0
  215. package/lib/cjs/translations/en.js +1 -0
  216. package/lib/cjs/utils/Evaluator.d.ts +3 -6
  217. package/lib/cjs/utils/Evaluator.js +20 -11
  218. package/lib/cjs/utils/builder.d.ts +7 -9
  219. package/lib/cjs/utils/builder.js +5 -10
  220. package/lib/cjs/utils/calendarUtils.d.ts +13 -7
  221. package/lib/cjs/utils/calendarUtils.js +17 -10
  222. package/lib/cjs/utils/formUtils.d.ts +171 -43
  223. package/lib/cjs/utils/formUtils.js +569 -38
  224. package/lib/cjs/utils/utils.d.ts +216 -362
  225. package/lib/cjs/utils/utils.js +224 -331
  226. package/lib/cjs/widgets/CalendarWidget.d.ts +10 -9
  227. package/lib/cjs/widgets/CalendarWidget.js +11 -9
  228. package/lib/mjs/Element.d.ts +96 -86
  229. package/lib/mjs/Element.js +78 -68
  230. package/lib/mjs/Form.d.ts +36 -365
  231. package/lib/mjs/Form.js +57 -140
  232. package/lib/mjs/FormBuilder.d.ts +2 -187
  233. package/lib/mjs/FormBuilder.js +8 -32
  234. package/lib/mjs/PDF.d.ts +13 -11
  235. package/lib/mjs/PDF.js +8 -6
  236. package/lib/mjs/Webform.d.ts +139 -180
  237. package/lib/mjs/Webform.js +310 -325
  238. package/lib/mjs/WebformBuilder.d.ts +14 -16
  239. package/lib/mjs/WebformBuilder.js +11 -16
  240. package/lib/mjs/Wizard.d.ts +21 -31
  241. package/lib/mjs/Wizard.js +18 -41
  242. package/lib/mjs/WizardBuilder.d.ts +1 -1
  243. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +5 -8
  244. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +3 -6
  245. package/lib/mjs/components/Components.d.ts +4 -4
  246. package/lib/mjs/components/Components.js +3 -3
  247. package/lib/mjs/components/_classes/component/Component.d.ts +269 -502
  248. package/lib/mjs/components/_classes/component/Component.form.d.ts +3 -6
  249. package/lib/mjs/components/_classes/component/Component.form.js +0 -5
  250. package/lib/mjs/components/_classes/component/Component.js +189 -433
  251. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +8 -0
  252. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  253. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  254. package/lib/mjs/components/_classes/field/Field.d.ts +2 -11
  255. package/lib/mjs/components/_classes/field/Field.js +1 -13
  256. package/lib/mjs/components/_classes/input/Input.d.ts +3 -4
  257. package/lib/mjs/components/_classes/input/Input.js +2 -2
  258. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  259. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +3 -6
  260. package/lib/mjs/components/_classes/list/ListComponent.form.js +0 -5
  261. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +12 -43
  262. package/lib/mjs/components/_classes/multivalue/Multivalue.js +3 -37
  263. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +67 -163
  264. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +3 -6
  265. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -5
  266. package/lib/mjs/components/_classes/nested/NestedComponent.js +54 -175
  267. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +2 -2
  268. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +1 -1
  269. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -7
  270. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +3 -2
  271. package/lib/mjs/components/address/Address.d.ts +2 -4
  272. package/lib/mjs/components/address/Address.form.d.ts +3 -6
  273. package/lib/mjs/components/address/Address.form.js +0 -5
  274. package/lib/mjs/components/button/Button.d.ts +12 -3
  275. package/lib/mjs/components/button/Button.form.d.ts +3 -6
  276. package/lib/mjs/components/button/Button.form.js +0 -5
  277. package/lib/mjs/components/button/Button.js +0 -5
  278. package/lib/mjs/components/checkbox/Checkbox.d.ts +27 -4
  279. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +3 -6
  280. package/lib/mjs/components/checkbox/Checkbox.form.js +0 -5
  281. package/lib/mjs/components/columns/Columns.d.ts +2 -3
  282. package/lib/mjs/components/columns/Columns.form.d.ts +3 -6
  283. package/lib/mjs/components/columns/Columns.form.js +0 -5
  284. package/lib/mjs/components/columns/Columns.js +1 -1
  285. package/lib/mjs/components/container/Container.form.d.ts +3 -6
  286. package/lib/mjs/components/container/Container.form.js +0 -5
  287. package/lib/mjs/components/content/Content.d.ts +1 -2
  288. package/lib/mjs/components/content/Content.form.d.ts +3 -6
  289. package/lib/mjs/components/content/Content.form.js +0 -5
  290. package/lib/mjs/components/currency/Currency.form.d.ts +3 -6
  291. package/lib/mjs/components/currency/Currency.form.js +0 -5
  292. package/lib/mjs/components/currency/Currency.js +2 -1
  293. package/lib/mjs/components/datagrid/DataGrid.d.ts +7 -8
  294. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +3 -6
  295. package/lib/mjs/components/datagrid/DataGrid.form.js +0 -5
  296. package/lib/mjs/components/datagrid/DataGrid.js +5 -5
  297. package/lib/mjs/components/datamap/DataMap.d.ts +0 -1
  298. package/lib/mjs/components/datamap/DataMap.form.d.ts +3 -6
  299. package/lib/mjs/components/datamap/DataMap.form.js +0 -5
  300. package/lib/mjs/components/datetime/DateTime.d.ts +14 -0
  301. package/lib/mjs/components/datetime/DateTime.form.d.ts +3 -6
  302. package/lib/mjs/components/datetime/DateTime.form.js +0 -5
  303. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  304. package/lib/mjs/components/day/Day.d.ts +48 -22
  305. package/lib/mjs/components/day/Day.form.d.ts +3 -6
  306. package/lib/mjs/components/day/Day.form.js +0 -5
  307. package/lib/mjs/components/day/Day.js +20 -15
  308. package/lib/mjs/components/editgrid/EditGrid.d.ts +3 -7
  309. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +3 -6
  310. package/lib/mjs/components/editgrid/EditGrid.form.js +0 -5
  311. package/lib/mjs/components/editgrid/EditGrid.js +3 -3
  312. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  313. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  314. package/lib/mjs/components/email/Email.form.d.ts +3 -6
  315. package/lib/mjs/components/email/Email.form.js +0 -5
  316. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +3 -6
  317. package/lib/mjs/components/fieldset/Fieldset.form.js +0 -5
  318. package/lib/mjs/components/file/File.d.ts +22 -9
  319. package/lib/mjs/components/file/File.form.d.ts +3 -6
  320. package/lib/mjs/components/file/File.form.js +0 -5
  321. package/lib/mjs/components/form/Form.d.ts +20 -31
  322. package/lib/mjs/components/form/Form.form.d.ts +3 -6
  323. package/lib/mjs/components/form/Form.form.js +0 -5
  324. package/lib/mjs/components/form/Form.js +10 -13
  325. package/lib/mjs/components/hidden/Hidden.d.ts +11 -1
  326. package/lib/mjs/components/hidden/Hidden.form.d.ts +3 -6
  327. package/lib/mjs/components/hidden/Hidden.form.js +0 -5
  328. package/lib/mjs/components/hidden/Hidden.js +2 -1
  329. package/lib/mjs/components/html/HTML.d.ts +1 -2
  330. package/lib/mjs/components/html/HTML.form.d.ts +3 -6
  331. package/lib/mjs/components/html/HTML.form.js +0 -5
  332. package/lib/mjs/components/number/Number.d.ts +17 -3
  333. package/lib/mjs/components/number/Number.form.d.ts +3 -6
  334. package/lib/mjs/components/number/Number.form.js +0 -5
  335. package/lib/mjs/components/number/Number.js +2 -1
  336. package/lib/mjs/components/panel/Panel.form.d.ts +3 -6
  337. package/lib/mjs/components/panel/Panel.form.js +0 -5
  338. package/lib/mjs/components/panel/Panel.js +1 -0
  339. package/lib/mjs/components/password/Password.form.d.ts +3 -6
  340. package/lib/mjs/components/password/Password.form.js +0 -5
  341. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +3 -6
  342. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +0 -5
  343. package/lib/mjs/components/radio/Radio.d.ts +26 -3
  344. package/lib/mjs/components/radio/Radio.form.d.ts +3 -6
  345. package/lib/mjs/components/radio/Radio.form.js +0 -5
  346. package/lib/mjs/components/radio/Radio.js +4 -3
  347. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  348. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -5
  349. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +0 -4
  350. package/lib/mjs/components/select/Select.d.ts +39 -16
  351. package/lib/mjs/components/select/Select.form.d.ts +3 -6
  352. package/lib/mjs/components/select/Select.form.js +0 -5
  353. package/lib/mjs/components/select/Select.js +16 -13
  354. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +17 -2
  355. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +3 -6
  356. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +0 -5
  357. package/lib/mjs/components/selectboxes/SelectBoxes.js +9 -7
  358. package/lib/mjs/components/signature/Signature.d.ts +14 -1
  359. package/lib/mjs/components/signature/Signature.form.d.ts +3 -6
  360. package/lib/mjs/components/signature/Signature.form.js +0 -5
  361. package/lib/mjs/components/survey/Survey.d.ts +15 -3
  362. package/lib/mjs/components/survey/Survey.form.d.ts +3 -6
  363. package/lib/mjs/components/survey/Survey.form.js +0 -5
  364. package/lib/mjs/components/table/Table.d.ts +1 -2
  365. package/lib/mjs/components/table/Table.form.d.ts +3 -6
  366. package/lib/mjs/components/table/Table.form.js +0 -5
  367. package/lib/mjs/components/tabs/Tabs.d.ts +4 -4
  368. package/lib/mjs/components/tabs/Tabs.form.d.ts +3 -6
  369. package/lib/mjs/components/tabs/Tabs.form.js +0 -5
  370. package/lib/mjs/components/tabs/Tabs.js +2 -1
  371. package/lib/mjs/components/tags/Tags.d.ts +14 -0
  372. package/lib/mjs/components/tags/Tags.form.d.ts +3 -6
  373. package/lib/mjs/components/tags/Tags.form.js +0 -5
  374. package/lib/mjs/components/textarea/TextArea.d.ts +9 -4
  375. package/lib/mjs/components/textarea/TextArea.form.d.ts +3 -6
  376. package/lib/mjs/components/textarea/TextArea.form.js +0 -5
  377. package/lib/mjs/components/textarea/TextArea.js +2 -2
  378. package/lib/mjs/components/textfield/TextField.d.ts +30 -14
  379. package/lib/mjs/components/textfield/TextField.form.d.ts +3 -6
  380. package/lib/mjs/components/textfield/TextField.form.js +0 -5
  381. package/lib/mjs/components/textfield/TextField.js +16 -13
  382. package/lib/mjs/components/time/Time.form.d.ts +3 -6
  383. package/lib/mjs/components/time/Time.form.js +0 -5
  384. package/lib/mjs/components/unknown/Unknown.form.d.ts +34 -5
  385. package/lib/mjs/components/unknown/Unknown.form.js +0 -4
  386. package/lib/mjs/components/url/Url.form.d.ts +3 -6
  387. package/lib/mjs/components/url/Url.form.js +0 -5
  388. package/lib/mjs/components/well/Well.form.d.ts +3 -6
  389. package/lib/mjs/components/well/Well.form.js +0 -5
  390. package/lib/mjs/formio.embed.d.ts +2 -1
  391. package/lib/mjs/formio.embed.js +99 -2
  392. package/lib/mjs/formio.form.d.ts +4 -11
  393. package/lib/mjs/formio.form.js +3 -10
  394. package/lib/mjs/providers/Providers.d.ts +5 -36
  395. package/lib/mjs/providers/Providers.js +0 -29
  396. package/lib/mjs/providers/address/AddressProvider.d.ts +12 -131
  397. package/lib/mjs/providers/address/AddressProvider.js +2 -88
  398. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -48
  399. package/lib/mjs/providers/address/AzureAddressProvider.js +0 -37
  400. package/lib/mjs/providers/address/CustomAddressProvider.d.ts +4 -27
  401. package/lib/mjs/providers/address/CustomAddressProvider.js +0 -34
  402. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +6 -130
  403. package/lib/mjs/providers/address/GoogleAddressProvider.js +0 -72
  404. package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +7 -32
  405. package/lib/mjs/providers/address/NominatimAddressProvider.js +0 -33
  406. package/lib/mjs/providers/address/index.d.ts +1 -3
  407. package/lib/mjs/providers/processor/fileProcessor.d.ts +1 -7
  408. package/lib/mjs/providers/processor/fileProcessor.js +0 -6
  409. package/lib/mjs/providers/storage/azure.d.ts +13 -6
  410. package/lib/mjs/providers/storage/azure.js +0 -5
  411. package/lib/mjs/providers/storage/base64.d.ts +6 -5
  412. package/lib/mjs/providers/storage/base64.js +0 -4
  413. package/lib/mjs/providers/storage/dropbox.d.ts +4 -6
  414. package/lib/mjs/providers/storage/dropbox.js +0 -5
  415. package/lib/mjs/providers/storage/googleDrive.d.ts +5 -7
  416. package/lib/mjs/providers/storage/googleDrive.js +0 -6
  417. package/lib/mjs/providers/storage/indexeddb.d.ts +7 -5
  418. package/lib/mjs/providers/storage/indexeddb.js +0 -4
  419. package/lib/mjs/providers/storage/s3.d.ts +20 -6
  420. package/lib/mjs/providers/storage/s3.js +0 -5
  421. package/lib/mjs/providers/storage/url.d.ts +7 -6
  422. package/lib/mjs/providers/storage/url.js +0 -10
  423. package/lib/mjs/providers/storage/util.d.ts +1 -24
  424. package/lib/mjs/providers/storage/util.js +0 -18
  425. package/lib/mjs/templates/Templates.d.ts +0 -1
  426. package/lib/mjs/translations/en.d.ts +1 -0
  427. package/lib/mjs/translations/en.js +1 -0
  428. package/lib/mjs/utils/Evaluator.d.ts +3 -6
  429. package/lib/mjs/utils/Evaluator.js +20 -9
  430. package/lib/mjs/utils/builder.d.ts +7 -9
  431. package/lib/mjs/utils/builder.js +5 -10
  432. package/lib/mjs/utils/calendarUtils.d.ts +13 -7
  433. package/lib/mjs/utils/calendarUtils.js +17 -10
  434. package/lib/mjs/utils/formUtils.d.ts +171 -43
  435. package/lib/mjs/utils/formUtils.js +554 -6
  436. package/lib/mjs/utils/utils.d.ts +216 -362
  437. package/lib/mjs/utils/utils.js +218 -325
  438. package/lib/mjs/widgets/CalendarWidget.d.ts +10 -9
  439. package/lib/mjs/widgets/CalendarWidget.js +11 -9
  440. package/package.json +22 -22
  441. package/embed.d.ts +0 -1
  442. package/form.d.ts +0 -1
  443. package/lib/cjs/InlineEmbed.d.ts +0 -7
  444. package/lib/cjs/InlineEmbed.js +0 -109
  445. package/lib/mjs/InlineEmbed.d.ts +0 -7
  446. package/lib/mjs/InlineEmbed.js +0 -105
  447. package/sdk.d.ts +0 -1
  448. package/utils.d.ts +0 -1
@@ -6,34 +6,36 @@ declare class Component extends Element {
6
6
  static schema(...sources: any[]): any;
7
7
  /**
8
8
  * Return the simple condition settings as part of the component.
9
- * @returns {object} - The simple conditional settings.
9
+ *
10
+ * @return {Object}
11
+ *
10
12
  */
11
- static get conditionOperatorsSettings(): object;
13
+ static get conditionOperatorsSettings(): Object;
12
14
  /**
13
15
  * Return the array of possible types of component value absed on its schema.
16
+ *
14
17
  * @param schema
15
- * @returns {Array}
18
+ * @return {Array}
19
+ *
16
20
  */
17
21
  static savedValueTypes(schema: any): any[];
18
22
  /**
19
23
  * Provides a table view for this component. Override if you wish to do something different than using getView
20
24
  * method of your instance.
25
+ *
21
26
  * @param value
22
27
  * @param options
23
28
  */
24
29
  static tableView(value: any, options: any): void;
25
- /**
26
- * Returns the component condition operator settings if available.
27
- * @returns {object} - The component condition operator settings.
28
- */
29
- static get serverConditionSettings(): object;
30
+ static get serverConditionSettings(): Object;
30
31
  /**
31
32
  * Initialize a new Component.
32
- * @param {object} component - The component JSON you wish to initialize.
33
- * @param {object} options - The options for this component.
34
- * @param {object} data - The global data submission object this component will belong.
33
+ *
34
+ * @param {Object} component - The component JSON you wish to initialize.
35
+ * @param {Object} options - The options for this component.
36
+ * @param {Object} data - The global data submission object this component will belong.
35
37
  */
36
- constructor(component: object, options: object, data: object);
38
+ constructor(component: Object, options: Object, data: Object);
37
39
  id: any;
38
40
  /**
39
41
  * Determines if this component has a condition assigned to it.
@@ -47,6 +49,7 @@ declare class Component extends Element {
47
49
  refs: {};
48
50
  /**
49
51
  * The data path to this specific component instance.
52
+ *
50
53
  * @type {string}
51
54
  */
52
55
  path: string;
@@ -90,27 +93,32 @@ declare class Component extends Element {
90
93
  row: number;
91
94
  /**
92
95
  * Points to a flat map of child components (if applicable).
93
- * @type {object}
96
+ *
97
+ * @type {Object}
94
98
  */
95
- childComponentsMap: object;
99
+ childComponentsMap: Object;
96
100
  /**
97
101
  * Determines if this component is disabled, or not.
102
+ *
98
103
  * @type {boolean}
99
104
  */
100
105
  _disabled: boolean;
101
106
  /**
102
107
  * Points to the root component, usually the FormComponent.
108
+ *
103
109
  * @type {Component}
104
110
  */
105
111
  root: Component;
106
112
  localRoot: any;
107
113
  /**
108
114
  * If this input has been input and provided value.
115
+ *
109
116
  * @type {boolean}
110
117
  */
111
118
  pristine: boolean;
112
119
  /**
113
120
  * Points to the parent component.
121
+ *
114
122
  * @type {Component}
115
123
  */
116
124
  parent: Component;
@@ -128,6 +136,7 @@ declare class Component extends Element {
128
136
  triggerChange: (...args: any[]) => any;
129
137
  /**
130
138
  * Used to trigger a redraw event within this component.
139
+ *
131
140
  * @type {Function}
132
141
  */
133
142
  triggerRedraw: Function;
@@ -145,12 +154,13 @@ declare class Component extends Element {
145
154
  type: any;
146
155
  /**
147
156
  * Sets the static value of this component.
148
- * @param {*} value - The value to set for this component.
157
+ *
158
+ * @param value
149
159
  */
150
160
  set dataValue(value: any);
151
161
  /**
152
162
  * Get the static value of this component.
153
- * @returns {*} - The value for this component.
163
+ * @return {*}
154
164
  */
155
165
  get dataValue(): any;
156
166
  /**
@@ -174,12 +184,13 @@ declare class Component extends Element {
174
184
  init(): void;
175
185
  /**
176
186
  * Disable this component.
177
- * @param {boolean} disabled - TRUE to disable the component.
187
+ *
188
+ * @param {boolean} disabled
178
189
  */
179
190
  set disabled(disabled: boolean);
180
191
  /**
181
192
  * Return if the component is disabled.
182
- * @returns {boolean} - TRUE if the component is disabled.
193
+ * @return {boolean}
183
194
  */
184
195
  get disabled(): boolean;
185
196
  afterComponentAssign(): void;
@@ -198,13 +209,13 @@ declare class Component extends Element {
198
209
  shouldForceHide(component: any): any;
199
210
  shouldForceShow(component: any): any;
200
211
  /**
201
- * Sets the component visibility.
202
- * @param {boolean} value - Whether the component should be visible or not.
212
+ *
213
+ * @param value {boolean}
203
214
  */
204
215
  set visible(value: boolean);
205
216
  /**
206
- * Returns the component visibility
207
- * @returns {boolean} - Whether the component is visible or not.
217
+ *
218
+ * @returns {boolean}
208
219
  */
209
220
  get visible(): boolean;
210
221
  set currentForm(instance: any);
@@ -228,30 +239,26 @@ declare class Component extends Element {
228
239
  };
229
240
  /**
230
241
  * Returns only the schema that is different from the default.
231
- * @param {object} schema - The "full" json schema for the component.
232
- * @param {object} defaultSchema - The "default" json schema for the component.
233
- * @param {boolean} recursion - If we are currently in a recursive loop.
234
- * @returns {object} - The minified json schema for this component.
242
+ *
243
+ * @param schema
244
+ * @param defaultSchema
235
245
  */
236
- getModifiedSchema(schema: object, defaultSchema: object, recursion: boolean): object;
246
+ getModifiedSchema(schema: any, defaultSchema: any, recursion: any): any;
237
247
  /**
238
248
  * Returns the JSON schema for this component.
239
- * @returns {object} - The JSON schema for this component.
240
249
  */
241
- get schema(): object;
250
+ get schema(): any;
242
251
  /**
243
252
  * Returns true if component is inside DataGrid
244
- * @returns {boolean} - True if component is inside DataGrid
245
253
  */
246
- get isInDataGrid(): boolean;
254
+ get isInDataGrid(): any;
247
255
  /**
248
256
  * Translate a text using the i18n system.
257
+ *
249
258
  * @param {string} text - The i18n identifier.
250
- * @param {object} params - The i18n parameters to use for translation.
251
- * @param {...any} args - Additional arguments to pass to the translation library.
252
- * @returns {string} - The translated text.
259
+ * @param {Object} params - The i18n parameters to use for translation.
253
260
  */
254
- t(text: string, params?: object, ...args: any[]): string;
261
+ t(text: string, params?: Object, ...args: any[]): any;
255
262
  labelIsHidden(): any;
256
263
  transform(type: any, value: any): any;
257
264
  getTemplate(names: any, modes: any): {
@@ -265,72 +272,53 @@ declare class Component extends Element {
265
272
  referenceAttributeName: any;
266
273
  } | null;
267
274
  checkTemplateMode(templatesByName: any, modes: any): any;
268
- getFormattedAttribute(attr: any): string;
269
- getFormattedTooltip(tooltipValue: any): string;
275
+ getFormattedAttribute(attr: any): any;
276
+ getFormattedTooltip(tooltipValue: any): any;
270
277
  isHtmlRenderMode(): boolean;
271
- renderTemplate(name: any, data?: {}, modeOption?: string): any;
278
+ renderTemplate(name: any, data: {} | undefined, modeOption: any): any;
272
279
  /**
273
280
  * Sanitize an html string.
274
- * @param {string} dirty - The dirty html string to sanitize.
275
- * @param {boolean} forceSanitize - If we should force the sanitize to occur.
276
- * @param {object} options - The options for the sanitize.
277
- * @returns {*} - The sanitized html string.
281
+ *
282
+ * @param string
283
+ * @returns {*}
278
284
  */
279
- sanitize(dirty: string, forceSanitize?: boolean, options?: object): any;
285
+ sanitize(dirty: any, forceSanitize: any, options: any): any;
280
286
  /**
281
287
  * Render a template string into html.
282
- * @param {string} template - The template to render.
283
- * @param {object} data - The data to provide to the template.
284
- * @returns {HTMLElement | string} - The created element or an empty string if template is not specified.
285
- */
286
- renderString(template: string, data: object): HTMLElement | string;
287
- /**
288
- * Allows for modification of the component value prior to submission.
289
- * @param {*} input - The input to be modified.
290
- * @returns {*} - The modified input mapping for the extended component.
288
+ *
289
+ * @param template
290
+ * @param data
291
+ * @param actions
292
+ *
293
+ * @return {HTMLElement|String} - The created element or an empty string if template is not specified.
291
294
  */
295
+ renderString(template: any, data: any): HTMLElement | string;
292
296
  performInputMapping(input: any): any;
293
- /**
294
- * Returns the component "widget" if one is available.
295
- * @returns {Widget|null} - The widget instance. null if not available.
296
- */
297
297
  get widget(): any;
298
+ getBrowserLanguage(): any;
298
299
  /**
299
- * Returns the native supported browser language.
300
- * @returns {string|null} - The native browser language that is supported.
301
- */
302
- getBrowserLanguage(): string | null;
303
- /**
304
- * Called before a next and previous page is triggered allowing the components to perform special functions.
305
- * @returns {Promise<boolean>} - A promise to resolve when the component is no longer blocking the next/previous page navigation.
306
- */
307
- beforePage(): Promise<boolean>;
308
- /**
309
- * Called before the next page is triggered allowing the components to hook into the page navigation and perform tasks.
310
- * @returns {Promise<boolean>} - A promise to resolve when the component is no longer blocking the next page navigation.
300
+ * Called before a next and previous page is triggered allowing the components
301
+ * to perform special functions.
302
+ *
303
+ * @return {*}
311
304
  */
312
- beforeNext(): Promise<boolean>;
305
+ beforePage(): any;
306
+ beforeNext(): any;
313
307
  /**
314
- * Called before a submission is triggered allowing the components to perform special async functions.
315
- * @returns {Promise<boolean>} - A promise to resolve when the component is no longer blocking the submission.
308
+ * Called before a submission is triggered allowing the components
309
+ * to perform special async functions.
310
+ *
311
+ * @return {*}
316
312
  */
317
- beforeSubmit(): Promise<boolean>;
313
+ beforeSubmit(): any;
318
314
  /**
319
315
  * Return the submission timezone.
320
- * @returns {string} - The submission timezone.
321
- */
322
- get submissionTimezone(): string;
323
- /**
324
- * Return the current timezone.
325
- * @returns {string} - The current timezone.
326
- */
327
- get timezone(): string;
328
- /**
329
- * Return the current timezone.
330
- * @param {object} settings - Settings to control how the timezone should be returned.
331
- * @returns {string} - The current timezone.
316
+ *
317
+ * @return {*}
332
318
  */
333
- getTimezone(settings: object): string;
319
+ get submissionTimezone(): any;
320
+ get timezone(): any;
321
+ getTimezone(settings: any): any;
334
322
  /**
335
323
  *
336
324
  * @param {HTMLElement} element - The containing DOM element to query for the ref value.
@@ -338,92 +326,28 @@ declare class Component extends Element {
338
326
  * @param {string} [referenceAttributeName] - The attribute name to use for the reference.
339
327
  */
340
328
  loadRefs(element: HTMLElement, refs: object, referenceAttributeName?: string | undefined): void;
341
- /**
342
- * Opens the modal element.
343
- * @param {string} template - The template to use for the modal dialog.
344
- */
345
- setOpenModalElement(template?: string): void;
346
- /**
347
- * Returns the modal preview template.
348
- * @returns {string} - The modal preview template.
349
- */
350
- getModalPreviewTemplate(): string;
351
- /**
352
- * Performs a complete build of a component, which empties, renders, sets the content in the DOM, and then finally attaches events.
353
- * @param {HTMLElement} element - The element to attach this component to.
354
- * @returns {Promise<void>} - A promise that resolves when the component has been built.
355
- */
356
- build(element: HTMLElement): Promise<void>;
329
+ setOpenModalElement(template: any): void;
330
+ getModalPreviewTemplate(): any;
331
+ build(element: any): Promise<void>;
357
332
  get hasModalSaveButton(): boolean;
358
- /**
359
- * Renders a component as an HTML string.
360
- * @param {string} children - The contents of all the children HTML as a string.
361
- * @param {boolean} topLevel - If this is the topmost component that is being rendered.
362
- * @returns {string} - The rendered HTML string of a component.
363
- */
364
- render(children?: string, topLevel?: boolean): string;
365
- /**
366
- * Attaches all the tooltips provided the refs object.
367
- * @param {object} toolTipsRefs - The refs for the tooltips within your template.
368
- * @returns {void}
369
- */
370
- attachTooltips(toolTipsRefs: object): void;
371
- /**
372
- * Create a new component modal for this component.
373
- * @param {HTMLElement} element - The element to attach the modal to.
374
- * @param {boolean} modalShouldBeOpened - TRUE if the modal should open immediately.
375
- * @param {any} currentValue - The current value of the component.
376
- * @returns {ComponentModal} - The created component modal.
377
- */
378
- createComponentModal(element: HTMLElement, modalShouldBeOpened: boolean, currentValue: any): ComponentModal;
379
- /**
380
- * Attaches all event listensers for this component to the DOM elements that were rendered.
381
- * @param {HTMLElement} element - The element to attach the listeners to.
382
- * @returns {Promise<void>} - Resolves when the component is done attaching to the DOM.
383
- */
384
- attach(element: HTMLElement): Promise<void>;
333
+ render(children?: string, topLevel?: boolean): any;
334
+ attachTooltips(toolTipsRefs: any): void;
335
+ createComponentModal(element: any, modalShouldBeOpened: any, currentValue: any): ComponentModal;
336
+ attach(element: any): Promise<void>;
385
337
  componentModal: any;
386
- /**
387
- * Restors the "focus" on a component after a redraw event has occured.
388
- */
389
338
  restoreFocus(): void;
390
- /**
391
- * Adds a keyboard shortcut to this component.
392
- * @param {HTMLElement} element - The element to attach the keyboard shortcut to.
393
- * @param {string} shortcut - The keyboard shortcut to add.
394
- * @returns {void}
395
- */
396
- addShortcut(element: HTMLElement, shortcut: string): void;
397
- /**
398
- * Removes a keyboard shortcut from this component.
399
- * @param {HTMLElement} element - The element to remove the keyboard shortcut from.
400
- * @param {string} shortcut - The keyboard shortcut to remove.
401
- * @returns {void}
402
- */
403
- removeShortcut(element: HTMLElement, shortcut: string): void;
339
+ addShortcut(element: any, shortcut: any): void;
340
+ removeShortcut(element: any, shortcut: any): void;
404
341
  /**
405
342
  * Remove all event handlers.
406
343
  */
407
344
  detach(): void;
408
- /**
409
- * Determines if the component should be refreshed based on the path of another component that changed.
410
- * @param {string} refreshData - The path of the data that needs to trigger a refresh.
411
- * @param {boolean} changed - Flag that is true if the data has been changed.
412
- * @param {any} flags - The flags for the checkData procedure.
413
- * @returns {void}
414
- */
415
- checkRefresh(refreshData: string, changed: boolean, flags: any): void;
416
- /**
417
- * Iterates over a list of changes, and determines if the component should be refreshed if it is configured to refresh on any of those components.
418
- * @param {Array<any>} changes - The list of components that have changed.
419
- * @param {any} flags - The checkData flags.
420
- * @returns {void}
421
- */
422
- checkRefreshOn(changes: Array<any>, flags?: any): void;
345
+ checkRefresh(refreshData: any, changed: any, flags: any): void;
346
+ checkRefreshOn(changes: any, flags?: {}): void;
423
347
  /**
424
348
  * Refreshes the component with a new value.
425
- * @param {any} value - The latest value of the component to check if it needs to be refreshed.
426
- * @returns {void}
349
+ *
350
+ * @param value
427
351
  */
428
352
  refresh(value: any): void;
429
353
  refreshOnChanged: boolean | undefined;
@@ -434,84 +358,33 @@ declare class Component extends Element {
434
358
  * with the components data and returns true if they are in the same context.
435
359
  *
436
360
  * Different rows of the same EditGrid, for example, are in different contexts.
437
- * @param {any} component - The component to check if it is in the same context as this component.
438
- * @returns {boolean} - TRUE if the component is in the same context as this component.
361
+ *
362
+ * @param component
439
363
  */
440
364
  inContext(component: any): boolean;
441
- /**
442
- * Determines if we are in "view" only mode.
443
- * @returns {boolean} - TRUE if we are in "view" only mode.
444
- */
445
- get viewOnly(): boolean;
446
- /**
447
- * Sets the HTMLElement for this component.
448
- * @param {HTMLElement} element - The element that is attached to this component.
449
- * @returns {void}
450
- */
451
- setElement(element: HTMLElement): void;
365
+ get viewOnly(): any;
366
+ setElement(element: any): void;
452
367
  element: any;
453
- /**
454
- * Creates an element to hold the "view only" version of this component.
455
- * @returns {HTMLElement} - The element for this component.
456
- */
457
- createViewOnlyElement(): HTMLElement;
458
- /**
459
- * The default value for the "view only" mode of a component if the value is not provided.
460
- * @returns {string} - The default value for this component.
461
- */
368
+ createViewOnlyElement(): any;
462
369
  get defaultViewOnlyValue(): string;
463
370
  /**
464
371
  * Uses the widget to determine the output string.
465
- * @param {any} value - The current value of the component.
466
- * @param {any} options - The options for getValueAsString.
467
- * @returns {any|Array<any>} - The value as a string.
468
- */
469
- getWidgetValueAsString(value: any, options: any): any | Array<any>;
470
- /**
471
- * Returns the value of the component as a string.
472
- * @param {any} value - The value for this component.
473
- * @param {any} options - The options for this component.
474
- * @returns {string} - The string representation of the value of this component.
475
- */
476
- getValueAsString(value: any, options: any): string;
477
- /**
478
- * Returns the string representation "view" of the component value.
479
- * @param {any} value - The value of the component.
480
- * @param {any} options - The options for this component.
481
- * @returns {string} - The string representation of the value of this component.
482
- */
483
- getView(value: any, options: any): string;
484
- /**
485
- * Updates the items list for this component. Useful for Select and other List component types.
486
- * @param {...any} args - The arguments to pass to the onChange event.
487
- * @returns {void}
372
+ *
373
+ * @param value
374
+ * @return {*}
488
375
  */
376
+ getWidgetValueAsString(value: any, options: any): any;
377
+ getValueAsString(value: any, options: any): any;
378
+ getView(value: any, options: any): any;
489
379
  updateItems(...args: any[]): void;
490
380
  /**
491
- * Returns the value for a specific item in a List type component.
492
- * @param {any} data - The data for this component.
493
- * @param {boolean} [forceUseValue] - if true, return 'value' property of the data
494
- * @returns {any} - The value of the item.
381
+ * @param {*} data
382
+ * @param {boolean} [forceUseValue=false] - if true, return 'value' property of the data
383
+ * @return {*}
495
384
  */
496
385
  itemValue(data: any, forceUseValue?: boolean | undefined): any;
497
- /**
498
- * Returns the item value for html mode.
499
- * @param {any} value - The value for this component.
500
- * @returns {any} - The value of the item for html mode.
501
- */
502
386
  itemValueForHTMLMode(value: any): any;
503
- /**
504
- * Creates a modal to input the value of this component.
505
- * @param {HTMLElement} element - The element to attach the modal to.
506
- * @param {any} attr - A list of attributes to add to the modal.
507
- * @param {boolean} confirm - If we should add a confirmation to the modal that keeps it from closing unless confirmed.
508
- * @returns {HTMLElement} - The created modal element.
509
- */
510
- createModal(element: HTMLElement, attr: any, confirm: boolean): HTMLElement;
511
- /**
512
- * Uses CSS classes to show or hide an element.
513
- * @returns {boolean} - TRUE if the element has been css removed.
514
- */
387
+ createModal(element: any, attr: any, confirm: any): HTMLElement;
515
388
  get optimizeRedraw(): boolean;
516
389
  /**
517
390
  * Retrieves the CSS class name of this component.
@@ -520,251 +393,125 @@ declare class Component extends Element {
520
393
  get className(): string;
521
394
  /**
522
395
  * Build the custom style from the layout values
523
- * @returns {string} - The custom style
396
+ * @return {string} - The custom style
524
397
  */
525
398
  get customStyle(): string;
526
- /**
527
- * Returns if the application is on a mobile device.
528
- * @returns {boolean} - TRUE if the application is on a mobile device.
529
- */
530
- get isMobile(): boolean;
399
+ get isMobile(): import("ismobilejs").isMobileResult;
531
400
  /**
532
401
  * Returns the outside wrapping element of this component.
533
- * @returns {HTMLElement} - The wrapping element of this component.
402
+ * @returns {HTMLElement}
534
403
  */
535
404
  getElement(): HTMLElement;
536
- /**
537
- * Create an evaluation context for all script executions and interpolations.
538
- * @param {any} additional - Additional context to provide.
539
- * @returns {any} - The evaluation context.
540
- */
541
- evalContext(additional: any): any;
542
405
  /**
543
406
  * Sets the pristine flag for this component.
544
- * @param {boolean} pristine - TRUE to make pristine, FALSE not pristine.
407
+ *
408
+ * @param pristine {boolean} - TRUE to make pristine, FALSE not pristine.
545
409
  */
546
410
  setPristine(pristine: boolean): void;
547
- /**
548
- * Returns if the component is pristine.
549
- * @returns {boolean} - TRUE if the component is pristine.
550
- */
551
411
  get isPristine(): boolean;
552
- /**
553
- * Sets the dirty flag for this component.
554
- * @param {boolean} dirty - TRUE to make dirty, FALSE not dirty.
555
- */
556
- setDirty(dirty: boolean): void;
557
- dirty: boolean | undefined;
558
- /**
559
- * Returns if the component is dirty.
560
- * @returns {boolean} - TRUE if the component is dirty.
561
- */
562
- get isDirty(): boolean;
412
+ setDirty(dirty: any): void;
413
+ dirty: any;
414
+ get isDirty(): any;
563
415
  /**
564
416
  * Removes a value out of the data array and rebuild the rows.
565
417
  * @param {number} index - The index of the data element to remove.
566
418
  */
567
419
  removeValue(index: number): void;
568
- /**
569
- * Returns the icon class for a given icon name.
570
- * @param {string} name - The name of the icon you wish to fetch provided the icon class. This is the "font awesome" version of the name of the icon.
571
- * @param {boolean} spinning - If the component should be spinning.
572
- * @returns {string} - The icon class for the equivalent icon in the iconset we are using.
573
- */
574
- iconClass(name: string, spinning: boolean): string;
575
- /**
576
- * Returns the size css class names for our current template.
577
- * @param {string} size - The size class name for the default iconset.
578
- * @returns {string} - The size class for our component.
579
- */
580
- size(size: string): string;
420
+ iconClass(name: any, spinning: any): any;
421
+ size(size: any): any;
581
422
  /**
582
423
  * The readible name for this component.
583
424
  * @returns {string} - The name of the component.
584
425
  */
585
426
  get name(): string;
586
- /**
587
- * Returns the visible errors for this component.
588
- * @returns {Array<object>} - The visible errors for this component.
589
- */
590
- get visibleErrors(): object[];
591
- /**
592
- * Returns all the errors for this component, visible or not.
593
- * @returns {Array<object>} - All the errors for this component.
594
- */
595
- get errors(): object[];
427
+ get visibleErrors(): any[];
428
+ get errors(): any[];
596
429
  /**
597
430
  * Returns the error label for this component.
598
- * @returns {string} - The error label for this component.
431
+ * @return {*}
599
432
  */
600
- get errorLabel(): string;
433
+ get errorLabel(): any;
601
434
  /**
602
435
  * Get the error message provided a certain type of error.
603
- * @param {string} type - The type of error to fetch the message for.
604
- * @returns {string} - The error message configured for this component.
605
- */
606
- errorMessage(type: string): string;
607
- /**
608
- * Sets the content, innerHTML, of an element to the sanitized content.
609
- * @param {HTMLElement} element - The element to set the innerHTML to.
610
- * @param {string} content - The HTML string content that we wish to set.
611
- * @param {boolean} forceSanitize - If we should force the content to be sanitized.
612
- * @param {any} sanitizeOptions - The options for the sanitize function.
613
- * @returns {boolean} - TRUE if the content was sanitized and set.
614
- */
615
- setContent(element: HTMLElement, content: string, forceSanitize: boolean, sanitizeOptions: any): boolean;
616
- /**
617
- * Restores the caret position in the input element after a refresh occurs.
436
+ * @param type
437
+ * @return {*}
618
438
  */
439
+ errorMessage(type: any): any;
440
+ setContent(element: any, content: any, forceSanitize: any, sanitizeOptions: any): boolean;
619
441
  restoreCaretPosition(): void;
620
- /**
621
- * Redraw the component.
622
- * @returns {Promise<void>} - A promise that resolves when the component is done redrawing.
623
- */
624
442
  redraw(): Promise<void>;
625
- /**
626
- * Rebuild and redraw a component.
627
- * @returns {Promise<void>} - A promise that resolves when the component is done rebuilding and redrawing.
628
- */
629
443
  rebuild(): Promise<void>;
630
- /**
631
- * Returns if the dom node has the classes provided.
632
- * @param {HTMLElement} element - The element to check for the class.
633
- * @param {string} className - The name of the class to check.
634
- * @returns {boolean|void} - TRUE if the element has the class.
635
- */
636
- hasClass(element: HTMLElement, className: string): boolean | void;
637
- /**
638
- * Adds a class to an HTML element.
639
- * @param {HTMLElement} element - The dom element to add the class to.
640
- * @param {string} className - The class name you wish to add.
641
- * @returns {this|void} - The component instance.
642
- */
643
- addClass(element: HTMLElement, className: string): this | void;
644
- /**
645
- * Removes a class from an element.
646
- * @param {HTMLElement} element - The element to remove the class from.
647
- * @param {string} className - The class name to remove.
648
- * @returns {this|void} - The component instance.
649
- */
650
- removeClass(element: HTMLElement, className: string): this | void;
444
+ hasClass(element: any, className: any): boolean | undefined;
445
+ addClass(element: any, className: any): this | undefined;
446
+ removeClass(element: any, className: any): this | undefined;
651
447
  /**
652
448
  * Determines if this component has a condition defined.
653
- * @returns {boolean} - TRUE if the component has a condition defined.
449
+ *
450
+ * @return {null}
654
451
  */
655
- hasCondition(): boolean;
452
+ hasCondition(): null;
656
453
  /**
657
454
  * Check if this component is conditionally visible.
658
- * @param {any} data - The data to check against.
659
- * @param {any} row - The row data to check against.
660
- * @returns {boolean} - TRUE if the component is conditionally visible.
455
+ *
456
+ * @param data
457
+ * @return {boolean}
661
458
  */
662
459
  conditionallyVisible(data: any, row: any): boolean;
663
460
  /**
664
461
  * Checks the condition of this component.
665
462
  *
666
463
  * TODO: Switch row and data parameters to be consistent with other methods.
667
- * @param {any} row - The row contextual data.
668
- * @param {any} data - The global data object.
669
- * @returns {boolean} - True if the condition applies to this component.
464
+ *
465
+ * @param row - The row contextual data.
466
+ * @param data - The global data object.
467
+ * @return {boolean} - True if the condition applies to this component.
670
468
  */
671
469
  checkCondition(row: any, data: any): boolean;
672
470
  /**
673
471
  * Check for conditionals and hide/show the element based on those conditions.
674
- * @param {any} data - The data to check against.
675
- * @param {any} flags - The flags passed to checkData function.
676
- * @param {any} row - The row data to check against.
677
- * @returns {boolean} - TRUE if the component is visible.
678
472
  */
679
473
  checkComponentConditions(data: any, flags: any, row: any): boolean;
680
474
  /**
681
475
  * Checks conditions for this component and any sub components.
682
- * @param {any} data - The data to check against.
683
- * @param {any} flags - The flags passed to checkData function.
684
- * @param {any} row - The row data to check against.
685
- * @returns {boolean} - TRUE if the component is visible.
476
+ * @param args
477
+ * @return {boolean}
686
478
  */
687
479
  checkConditions(data: any, flags: any, row: any): boolean;
688
- /**
689
- * Returns the component logic if applicable.
690
- * @returns {Array<object>} - The component logic.
691
- */
692
- get logic(): object[];
480
+ get logic(): any;
693
481
  /**
694
482
  * Check all triggers and apply necessary actions.
695
- * @param {any} data - The data to check against.
696
- * @param {any} row - The row data to check against.
697
- * @returns {boolean|void} - TRUE if the component was altered.
698
- */
699
- fieldLogic(data?: any, row?: any): boolean | void;
700
- /**
701
- * Retuns if the browser is Internet Explorer.
702
- * @returns {boolean} - TRUE if the browser is IE.
703
- */
704
- isIE(): boolean;
705
- /**
706
- * Defines the logic action value through evaluation.
707
- * @param {object} action - The action within the Logic system to perform.
708
- * @param {object} argsObject - The arguments to pass to the evaluation.
709
- * @returns {any} - The result of the evaluation.
710
- */
711
- defineActionValue(action: object, argsObject: object): any;
712
- /**
713
- * Apply the actions of Logic for a component once the conditions have been met.
714
- * @param {object} newComponent - The new component to apply the actions to.
715
- * @param {Array<object>} actions - An array of actions
716
- * @param {any} result - The result of the conditional check in order to evaluate the actions.
717
- * @param {any} row - The contextual row data for this component.
718
- * @param {any} data - The global data object for the submission.
719
- * @returns {boolean} - TRUE if the component was altered.
483
+ *
484
+ * @param data
720
485
  */
721
- applyActions(newComponent: object, actions: Array<object>, result: any, row: any, data: any): boolean;
486
+ fieldLogic(data: any, row: any): any;
487
+ isIE(): number | false;
488
+ defineActionValue(action: any, argsObject: any): any;
489
+ applyActions(newComponent: any, actions: any, result: any, row: any, data: any): any;
722
490
  addInputError(message: any, dirty: any, elements: any): void;
723
491
  removeInputError(elements: any): void;
724
492
  /**
725
493
  * Add a new input error to this element.
726
- * @param {Array<object>|string} messages - An array of messages to add to the element.
727
- * @returns {void}
728
- */
729
- addMessages(messages: Array<object> | string): void;
730
- /**
731
- * Sets the form input widget error classes.
732
- * @param {Array<HTMLElement>} elements - An array of DOM elements to set the error classes on.
733
- * @param {boolean} dirty - If the input is dirty.
734
- * @param {boolean} hasErrors - If the input has errors.
735
- * @param {boolean} hasMessages - If the input has messages.
736
- * @param {HTMLElement} element - The wrapper element for all the other elements passed in first argument.
737
- * @returns {void}
738
- */
739
- setErrorClasses(elements: Array<HTMLElement>, dirty: boolean, hasErrors: boolean, hasMessages: boolean, element?: HTMLElement): void;
740
- /**
741
- * Adds the classes necessary to mark an element as invalid.
742
- * @param {HTMLElement} element - The element you wish to add the invalid classes to.
743
- * @param {boolean} invalid - TRUE if the component is invalid, FALSE otherwise.
744
- * @returns {void}
745
- */
746
- setElementInvalid(element: HTMLElement, invalid: boolean): void;
747
- /**
748
- * Clears the components data if it is conditionally hidden AND clearOnHide is set to true for this component.
749
- */
494
+ *
495
+ * @param {{level: string, message: string}[]} messages
496
+ */
497
+ addMessages(messages: {
498
+ level: string;
499
+ message: string;
500
+ }[]): void;
501
+ setErrorClasses(elements: any, dirty: any, hasErrors: any, hasMessages: any, element?: any): void;
502
+ setElementInvalid(element: any, invalid: any): void;
750
503
  clearOnHide(): void;
751
- /**
752
- * Triggers a debounced onChange event for the root component (usually Webform).
753
- * @param {...any} args - The arguments to pass to the onChange event.
754
- */
755
504
  triggerRootChange(...args: any[]): void;
756
- /**
757
- * Called when the component value has been changed. This will then trigger the root level onChange handler which
758
- * propagates the checkData methods for the full component tree.
759
- * @param {any} flags - The flags for the change event propagation.
760
- * @param {boolean} fromRoot - If the change event is from the root component.
761
- * @returns {boolean} - TRUE if the component has changed.
762
- */
763
- onChange(flags: any, fromRoot: boolean): boolean;
505
+ onChange(flags: any, fromRoot: any): {
506
+ instance: this;
507
+ component: any;
508
+ value: any;
509
+ flags: any;
510
+ };
764
511
  get wysiwygDefault(): {
765
512
  quill: {
766
513
  theme: string;
767
- placeholder: string;
514
+ placeholder: any;
768
515
  modules: {
769
516
  toolbar: ({
770
517
  size: (string | boolean)[];
@@ -801,7 +548,7 @@ declare class Component extends Element {
801
548
  minLines: number;
802
549
  tabSize: number;
803
550
  mode: string;
804
- placeholder: string;
551
+ placeholder: any;
805
552
  };
806
553
  ckeditor: {
807
554
  image: {
@@ -820,27 +567,28 @@ declare class Component extends Element {
820
567
  get tree(): any;
821
568
  /**
822
569
  * The empty value for this component.
823
- * @returns {null} - The empty value for this component.
570
+ *
571
+ * @return {null}
824
572
  */
825
573
  get emptyValue(): null;
826
574
  /**
827
575
  * Returns if this component has a value set.
828
- * @param {any} data - The global data object.
829
- * @returns {boolean} - TRUE if a value is set.
576
+ *
830
577
  */
831
578
  hasValue(data: any): boolean;
832
579
  /**
833
580
  * Get the data value at the root level.
834
- * @returns {*} - The root value for the component, typically the Webform data object.
581
+ *
582
+ * @return {*}
835
583
  */
836
584
  get rootValue(): any;
837
585
  get rootPristine(): any;
838
586
  /**
839
587
  * Splice a value from the dataValue.
840
- * @param {number} index - The index to splice for an array component values.
841
- * @param {*} flags - The flags to use when splicing the value.
588
+ *
589
+ * @param index
842
590
  */
843
- splice(index: number, flags?: any): void;
591
+ splice(index: any, flags?: {}): void;
844
592
  unset(): void;
845
593
  /**
846
594
  * Deletes the value of the component.
@@ -851,29 +599,33 @@ declare class Component extends Element {
851
599
  get defaultValue(): any;
852
600
  /**
853
601
  * Get the input value of this component.
854
- * @returns {*} - The value for the component.
602
+ *
603
+ * @return {*}
855
604
  */
856
605
  getValue(): any;
857
606
  /**
858
607
  * Get the value at a specific index.
859
- * @param {number} index - For an array component or multiple values, this returns the value at a specific index.
860
- * @returns {*} - The value at the specified index.
608
+ *
609
+ * @param index
610
+ * @returns {*}
861
611
  */
862
- getValueAt(index: number): any;
612
+ getValueAt(index: any): any;
863
613
  /**
864
614
  * Set the value of this component.
865
- * @param {*} value - The value to set for this component.
866
- * @param {*} flags - The flags to use when setting the value.
867
- * @returns {boolean} - If the value changed.
615
+ *
616
+ * @param value
617
+ * @param flags
618
+ *
619
+ * @return {boolean} - If the value changed.
868
620
  */
869
- setValue(value: any, flags?: any): boolean;
621
+ setValue(value: any, flags?: {}): boolean;
870
622
  /**
871
623
  * Set the value at a specific index.
872
- * @param {number} index - The index to set the value at.
873
- * @param {*} value - The value to set at the specified index.
874
- * @param {*} flags - The flags to use when setting the value.
624
+ *
625
+ * @param index
626
+ * @param value
875
627
  */
876
- setValueAt(index: number, value: any, flags?: any): void;
628
+ setValueAt(index: any, value: any, flags?: {}): void;
877
629
  get hasSetValue(): boolean;
878
630
  setDefaultValue(): void;
879
631
  /**
@@ -882,21 +634,22 @@ declare class Component extends Element {
882
634
  restoreValue(): void;
883
635
  /**
884
636
  * Normalize values coming into updateValue.
885
- * @param {*} value - The value to normalize before setting.
886
- * @returns {*} - The normalized value.
637
+ *
638
+ * @param value
639
+ * @return {*}
887
640
  */
888
641
  normalizeValue(value: any): any;
889
642
  /**
890
643
  * Update a value of this component.
891
- * @param {*} value - The value to update.
892
- * @param {*} flags - The flags to use when updating the value.
893
- * @returns {boolean} - If the value changed.
644
+ *
645
+ * @param flags
894
646
  */
895
- updateComponentValue(value: any, flags?: any): boolean;
647
+ updateComponentValue(value: any, flags?: {}): boolean;
896
648
  /**
897
649
  * Updates the value of this component plus all sub-components.
898
- * @param {...any} args - The arguments to pass to updateValue.
899
- * @returns {boolean} - If the value changed.
650
+ *
651
+ * @param args
652
+ * @return {boolean}
900
653
  */
901
654
  updateValue(...args: any[]): boolean;
902
655
  getIcon(name: any, content: any, styles: any, ref?: string): any;
@@ -906,123 +659,130 @@ declare class Component extends Element {
906
659
  resetValue(): void;
907
660
  /**
908
661
  * Determine if the value of this component has changed.
909
- * @param {*} newValue - The new value to check.
910
- * @param {*} oldValue - The existing value of the component.
911
- * @returns {boolean} - TRUE if the value has changed.
662
+ *
663
+ * @param newValue
664
+ * @param oldValue
665
+ * @return {boolean}
912
666
  */
913
667
  hasChanged(newValue: any, oldValue: any): boolean;
914
668
  /**
915
669
  * Update the value on change.
916
- * @param {*} flags - The flags to use when triggering the on change event.
917
- * @param {boolean} changed - If the value has changed.
918
- * @returns {boolean} - If the value changed.
670
+ *
671
+ * @param flags
919
672
  */
920
- updateOnChange(flags?: any, changed?: boolean): boolean;
921
- convertNumberOrBoolToString(value: any): any;
673
+ updateOnChange(flags?: {}, changed?: boolean): boolean;
674
+ /**
675
+ * Perform a calculated value operation.
676
+ *
677
+ * @param data - The global data object.
678
+ *
679
+ * @return {boolean} - If the value changed during calculation.
680
+ */
681
+ convertNumberOrBoolToString(value: any): boolean;
922
682
  doValueCalculation(dataValue: any, data: any, row: any): any;
923
683
  calculateComponentValue(data: any, flags: any, row: any): boolean;
924
684
  calculationLocked: boolean | undefined;
925
685
  calculatedValue: any;
926
686
  /**
927
687
  * Performs calculations in this component plus any child components.
928
- * @param {*} data - The data to perform the calculation with.
929
- * @param {*} flags - The flags to use when calculating the value.
930
- * @param {*} row - The contextual row data to use when performing the calculation.
931
- * @returns {boolean} - TRUE if the value changed.
688
+ *
689
+ * @param args
690
+ * @return {boolean}
932
691
  */
933
692
  calculateValue(data: any, flags: any, row: any): boolean;
934
693
  /**
935
694
  * Set this component's label text and render it.
936
- * @param {string} value - The new label text.
695
+ *
696
+ * @param value - The new label text.
937
697
  */
938
- set label(value: string);
698
+ set label(value: any);
939
699
  /**
940
700
  * Get this component's label text.
941
- * @returns {string} - The label text for this component.
701
+ *
942
702
  */
943
- get label(): string;
703
+ get label(): any;
944
704
  /**
945
705
  * Get FormioForm element at the root of this component tree.
946
- * @returns {*} root - The root component to search from.
706
+ *
947
707
  */
948
- getRoot(): any;
708
+ getRoot(): Component;
949
709
  /**
950
710
  * Returns the invalid message, or empty string if the component is valid.
951
- * @param {*} data - The data to check if the component is valid.
952
- * @param {boolean} dirty - If the component is dirty.
953
- * @param {boolean} ignoreCondition - If conditions for the component should be ignored when checking validity.
954
- * @param {*} row - Contextual row data for this component.
955
- * @returns {string} - The message to show when the component is invalid.
711
+ *
712
+ * @param data
713
+ * @param dirty
714
+ * @return {*}
956
715
  */
957
- invalidMessage(data: any, dirty: boolean, ignoreCondition: boolean, row: any): string;
716
+ invalidMessage(data: any, dirty: any, ignoreCondition: any, row: any): any;
958
717
  /**
959
718
  * Returns if the component is valid or not.
960
- * @param {*} data - The data to check if the component is valid.
961
- * @param {boolean} dirty - If the component is dirty.
962
- * @returns {boolean} - TRUE if the component is valid.
719
+ *
720
+ * @param data
721
+ * @param dirty
722
+ * @return {boolean}
963
723
  */
964
- isValid(data: any, dirty: boolean): boolean;
724
+ isValid(data: any, dirty: any): boolean;
965
725
  setComponentValidity(errors: any, dirty: any, silentCheck: any): any;
966
726
  /**
967
727
  * Interpolate errors from the validation methods.
968
- * @param {Array<any>} errors - An array of errors to interpolate.
969
- * @returns {Array<any>} - The interpolated errors.
728
+ * @param {*} errors
729
+ * @returns
970
730
  */
971
- interpolateErrors(errors: Array<any>): Array<any>;
731
+ interpolateErrors(errors: any): any[];
972
732
  /**
973
733
  * Show component validation errors.
974
734
  * @param {*} errors - An array of errors that have occured.
975
735
  * @param {*} data - The root submission data.
976
736
  * @param {*} row - The contextual row data.
977
737
  * @param {*} flags - The flags to perform validation.
978
- * @returns {boolean} - TRUE if the component is valid.
738
+ * @returns
979
739
  */
980
- showValidationErrors(errors: any, data: any, row: any, flags: any): boolean;
740
+ showValidationErrors(errors: any, data: any, row: any, flags: any): any;
981
741
  /**
982
742
  * Perform a component validation.
983
743
  * @param {*} data - The root data you wish to use for this component.
984
744
  * @param {*} row - The contextual row data you wish to use for this component.
985
745
  * @param {*} flags - The flags to control the behavior of the validation.
986
- * @returns {Array<any>} - An array of errors if the component is invalid.
746
+ * @returns
987
747
  */
988
- validateComponent(data?: any, row?: any, flags?: any): Array<any>;
748
+ validateComponent(data: any, row: any, flags?: any): any;
989
749
  /**
990
750
  * Checks the validity of this component and sets the error message if it is invalid.
991
- * @param {*} data - The data to check if the component is valid.
992
- * @param {boolean} dirty - If the component is dirty.
993
- * @param {*} row - The contextual row data for this component.
994
- * @param {*} flags - The flags to use when checking the validity.
995
- * @param {Array<any>} allErrors - An array of all errors that have occured so that it can be appended when another one occurs here.
996
- * @returns {boolean} - TRUE if the component is valid.
751
+ *
752
+ * @param data
753
+ * @param dirty
754
+ * @param row
755
+ * @return {boolean}
997
756
  */
998
- checkComponentValidity(data?: any, dirty?: boolean, row?: any, flags?: any, allErrors?: Array<any>): boolean;
757
+ checkComponentValidity(data: any, dirty: any, row: any, flags?: {}, allErrors?: any[]): boolean;
999
758
  /**
1000
759
  * Checks the validity of the component.
1001
- * @param {*} data - The data to check if the component is valid.
1002
- * @param {boolean} dirty - If the component is dirty.
1003
- * @param {*} row - The contextual row data for this component.
1004
- * @param {boolean} silentCheck - If the check should be silent and not set the error messages.
1005
- * @param {Array<any>} errors - An array of all errors that have occured so that it can be appended when another one occurs here.
1006
- * @returns {boolean} - TRUE if the component is valid.
760
+ * @param {*} data
761
+ * @param {*} dirty
762
+ * @param {*} row
763
+ * @param {*} silentCheck
764
+ * @returns
1007
765
  */
1008
- checkValidity(data?: any, dirty?: boolean, row?: any, silentCheck?: boolean, errors?: Array<any>): boolean;
1009
- checkAsyncValidity(data?: null, dirty?: boolean, row?: null, silentCheck?: boolean, errors?: any[]): boolean;
766
+ checkValidity(data: any, dirty: any, row: any, silentCheck: any, errors?: any[]): boolean;
767
+ checkAsyncValidity(data: any, dirty: any, row: any, silentCheck: any, errors?: any[]): boolean;
1010
768
  /**
1011
769
  * Check the conditions, calculations, and validity of a single component and triggers an update if
1012
770
  * something changed.
1013
- * @param {*} data - The root data of the change event.
1014
- * @param {*} flags - The flags from this change event.
1015
- * @param {*} row - The contextual row data for this component.
1016
- * @returns {void|boolean} - TRUE if no check should be performed on the component.
771
+ *
772
+ * @param data - The root data of the change event.
773
+ * @param flags - The flags from this change event.
774
+ *
775
+ * @return boolean - If component is valid or not.
1017
776
  */
1018
- checkData(data?: any, flags?: any, row?: any): void | boolean;
777
+ checkData(data: any, flags: any, row: any): true | undefined;
1019
778
  checkModal(errors?: any[], dirty?: boolean): void;
1020
779
  get validationValue(): any;
1021
780
  isEmpty(value?: any): any;
1022
781
  isEqual(valueA: any, valueB?: any): any;
1023
782
  /**
1024
783
  * Check if a component is eligible for multiple validation
1025
- * @returns {boolean} - TRUE if the component is eligible for multiple validation.
784
+ *
785
+ * @return {boolean}
1026
786
  */
1027
787
  validateMultiple(): boolean;
1028
788
  clearErrorClasses(element?: any): void;
@@ -1032,7 +792,8 @@ declare class Component extends Element {
1032
792
  /**
1033
793
  * Determines if the value of this component is hidden from the user as if it is coming from the server, but is
1034
794
  * protected.
1035
- * @returns {boolean|*} - TRUE if the value is hidden.
795
+ *
796
+ * @return {boolean|*}
1036
797
  */
1037
798
  isValueHidden(): boolean | any;
1038
799
  shouldSkipValidation(data: any, row: any, flags?: {}): boolean;
@@ -1040,8 +801,6 @@ declare class Component extends Element {
1040
801
  get dataReady(): Promise<void>;
1041
802
  /**
1042
803
  * Prints out the value of this component as a string value.
1043
- * @param {*} value - The value to print out.
1044
- * @returns {string} - The string representation of the value.
1045
804
  */
1046
805
  asString(value: any): string;
1047
806
  setDisabled(element: any, disabled: any): void;
@@ -1057,17 +816,25 @@ declare class Component extends Element {
1057
816
  attachLogic(): void;
1058
817
  /**
1059
818
  * Get the element information.
1060
- * @returns {*} - The components "input" DOM element information.
1061
819
  */
1062
- elementInfo(): any;
820
+ elementInfo(): {
821
+ type: string;
822
+ component: any;
823
+ changeEvent: string;
824
+ attr: {
825
+ name: any;
826
+ type: any;
827
+ class: string;
828
+ lang: any;
829
+ };
830
+ };
1063
831
  autofocus(): void;
1064
832
  scrollIntoView(element?: any): void;
1065
- focus(index?: number): void;
833
+ focus(index: any): void;
1066
834
  /**
1067
835
  * Get `Formio` instance for working with files
1068
- * @returns {import('@formio/core').Formio} - The Formio instance file service.
1069
836
  */
1070
- get fileService(): import("@formio/core").Formio;
837
+ get fileService(): any;
1071
838
  resetCaches(): void;
1072
839
  get previewMode(): boolean;
1073
840
  }