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