@formio/js 5.0.0-rc.54 → 5.0.0-rc.55

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 (338) 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 +563 -563
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +3 -3
  7. package/dist/formio.full.js +606 -606
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +3 -3
  10. package/dist/formio.js +3 -3
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +16 -16
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +3 -3
  16. package/lib/cjs/Element.d.ts +3 -2
  17. package/lib/cjs/Element.js +4 -3
  18. package/lib/cjs/Form.d.ts +99 -36
  19. package/lib/cjs/Form.js +23 -18
  20. package/lib/cjs/PDF.d.ts +8 -7
  21. package/lib/cjs/PDF.js +6 -5
  22. package/lib/cjs/Webform.d.ts +0 -3
  23. package/lib/cjs/Webform.js +18 -15
  24. package/lib/cjs/WebformBuilder.d.ts +15 -14
  25. package/lib/cjs/WebformBuilder.js +11 -10
  26. package/lib/cjs/Wizard.d.ts +0 -11
  27. package/lib/cjs/Wizard.js +16 -14
  28. package/lib/cjs/WizardBuilder.d.ts +1 -1
  29. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  30. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  31. package/lib/cjs/addons/index.d.ts +2 -2
  32. package/lib/cjs/components/Components.d.ts +6 -5
  33. package/lib/cjs/components/Components.js +2 -1
  34. package/lib/cjs/components/_classes/component/Component.form.d.ts +4 -5
  35. package/lib/cjs/components/_classes/component/Component.form.js +3 -2
  36. package/lib/cjs/components/_classes/component/Component.js +3 -2
  37. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  38. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  39. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  40. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  41. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  42. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +1 -1
  43. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  44. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  45. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  46. package/lib/cjs/components/_classes/list/ListComponent.form.js +3 -3
  47. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  48. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -2
  49. package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -2
  50. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  51. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  52. package/lib/cjs/components/address/Address.form.d.ts +4 -5
  53. package/lib/cjs/components/address/Address.form.js +3 -2
  54. package/lib/cjs/components/button/Button.form.d.ts +4 -5
  55. package/lib/cjs/components/button/Button.form.js +3 -2
  56. package/lib/cjs/components/button/Button.js +3 -2
  57. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +4 -5
  58. package/lib/cjs/components/checkbox/Checkbox.form.js +3 -2
  59. package/lib/cjs/components/checkbox/Checkbox.js +2 -9
  60. package/lib/cjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  61. package/lib/cjs/components/checkbox/fixtures/comp5.js +55 -0
  62. package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
  63. package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
  64. package/lib/cjs/components/columns/Columns.d.ts +1 -1
  65. package/lib/cjs/components/columns/Columns.form.d.ts +4 -5
  66. package/lib/cjs/components/columns/Columns.form.js +3 -2
  67. package/lib/cjs/components/columns/Columns.js +1 -1
  68. package/lib/cjs/components/container/Container.form.d.ts +4 -5
  69. package/lib/cjs/components/container/Container.form.js +3 -2
  70. package/lib/cjs/components/content/Content.form.d.ts +4 -5
  71. package/lib/cjs/components/content/Content.form.js +3 -2
  72. package/lib/cjs/components/currency/Currency.form.d.ts +4 -5
  73. package/lib/cjs/components/currency/Currency.form.js +3 -2
  74. package/lib/cjs/components/currency/Currency.js +1 -1
  75. package/lib/cjs/components/datagrid/DataGrid.d.ts +4 -4
  76. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +4 -5
  77. package/lib/cjs/components/datagrid/DataGrid.form.js +3 -2
  78. package/lib/cjs/components/datagrid/DataGrid.js +4 -4
  79. package/lib/cjs/components/datamap/DataMap.form.d.ts +4 -5
  80. package/lib/cjs/components/datamap/DataMap.form.js +3 -2
  81. package/lib/cjs/components/datetime/DateTime.form.d.ts +4 -5
  82. package/lib/cjs/components/datetime/DateTime.form.js +3 -2
  83. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  84. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  85. package/lib/cjs/components/day/Day.d.ts +18 -23
  86. package/lib/cjs/components/day/Day.form.d.ts +4 -5
  87. package/lib/cjs/components/day/Day.form.js +3 -2
  88. package/lib/cjs/components/day/Day.js +15 -14
  89. package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
  90. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +4 -5
  91. package/lib/cjs/components/editgrid/EditGrid.form.js +3 -2
  92. package/lib/cjs/components/editgrid/EditGrid.js +3 -3
  93. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
  94. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  95. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
  96. package/lib/cjs/components/email/Email.form.d.ts +4 -5
  97. package/lib/cjs/components/email/Email.form.js +3 -2
  98. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +4 -5
  99. package/lib/cjs/components/fieldset/Fieldset.form.js +3 -2
  100. package/lib/cjs/components/file/File.form.d.ts +4 -5
  101. package/lib/cjs/components/file/File.form.js +3 -2
  102. package/lib/cjs/components/form/Form.d.ts +23 -20
  103. package/lib/cjs/components/form/Form.form.d.ts +4 -5
  104. package/lib/cjs/components/form/Form.form.js +3 -2
  105. package/lib/cjs/components/form/Form.js +18 -11
  106. package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  107. package/lib/cjs/components/form/fixtures/comp7.d.ts +36 -0
  108. package/lib/cjs/components/form/fixtures/comp7.js +37 -0
  109. package/lib/cjs/components/form/fixtures/comp8.d.ts +26 -0
  110. package/lib/cjs/components/form/fixtures/comp8.js +29 -0
  111. package/lib/cjs/components/form/fixtures/index.d.ts +3 -1
  112. package/lib/cjs/components/form/fixtures/index.js +5 -1
  113. package/lib/cjs/components/hidden/Hidden.form.d.ts +4 -5
  114. package/lib/cjs/components/hidden/Hidden.form.js +3 -2
  115. package/lib/cjs/components/hidden/Hidden.js +1 -1
  116. package/lib/cjs/components/html/HTML.form.d.ts +4 -5
  117. package/lib/cjs/components/html/HTML.form.js +3 -2
  118. package/lib/cjs/components/number/Number.d.ts +1 -1
  119. package/lib/cjs/components/number/Number.form.d.ts +4 -5
  120. package/lib/cjs/components/number/Number.form.js +3 -2
  121. package/lib/cjs/components/number/Number.js +1 -1
  122. package/lib/cjs/components/panel/Panel.form.d.ts +4 -5
  123. package/lib/cjs/components/panel/Panel.form.js +3 -2
  124. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  125. package/lib/cjs/components/password/Password.form.d.ts +4 -5
  126. package/lib/cjs/components/password/Password.form.js +3 -2
  127. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  128. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +3 -2
  129. package/lib/cjs/components/radio/Radio.form.d.ts +4 -3
  130. package/lib/cjs/components/radio/Radio.form.js +3 -2
  131. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  132. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +2 -1
  133. package/lib/cjs/components/select/Select.d.ts +2 -2
  134. package/lib/cjs/components/select/Select.form.d.ts +4 -3
  135. package/lib/cjs/components/select/Select.form.js +3 -2
  136. package/lib/cjs/components/select/Select.js +1 -1
  137. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  138. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  139. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -2
  140. package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
  141. package/lib/cjs/components/signature/Signature.form.d.ts +4 -5
  142. package/lib/cjs/components/signature/Signature.form.js +3 -2
  143. package/lib/cjs/components/survey/Survey.form.d.ts +4 -5
  144. package/lib/cjs/components/survey/Survey.form.js +3 -2
  145. package/lib/cjs/components/table/Table.form.d.ts +4 -5
  146. package/lib/cjs/components/table/Table.form.js +3 -2
  147. package/lib/cjs/components/tabs/Tabs.d.ts +2 -2
  148. package/lib/cjs/components/tabs/Tabs.form.d.ts +4 -5
  149. package/lib/cjs/components/tabs/Tabs.form.js +3 -2
  150. package/lib/cjs/components/tabs/Tabs.js +1 -1
  151. package/lib/cjs/components/tags/Tags.form.d.ts +4 -5
  152. package/lib/cjs/components/tags/Tags.form.js +3 -2
  153. package/lib/cjs/components/textarea/TextArea.d.ts +3 -3
  154. package/lib/cjs/components/textarea/TextArea.form.d.ts +4 -5
  155. package/lib/cjs/components/textarea/TextArea.form.js +3 -2
  156. package/lib/cjs/components/textarea/TextArea.js +2 -2
  157. package/lib/cjs/components/textfield/TextField.d.ts +12 -19
  158. package/lib/cjs/components/textfield/TextField.form.d.ts +4 -5
  159. package/lib/cjs/components/textfield/TextField.form.js +3 -2
  160. package/lib/cjs/components/textfield/TextField.js +13 -12
  161. package/lib/cjs/components/time/Time.form.d.ts +4 -5
  162. package/lib/cjs/components/time/Time.form.js +3 -2
  163. package/lib/cjs/components/unknown/Unknown.form.d.ts +3 -35
  164. package/lib/cjs/components/unknown/Unknown.form.js +2 -1
  165. package/lib/cjs/components/url/Url.form.d.ts +4 -5
  166. package/lib/cjs/components/url/Url.form.js +3 -2
  167. package/lib/cjs/components/well/Well.form.d.ts +4 -5
  168. package/lib/cjs/components/well/Well.form.js +3 -2
  169. package/lib/cjs/formio.form.js +2 -2
  170. package/lib/cjs/utils/Evaluator.d.ts +0 -1
  171. package/lib/cjs/utils/Evaluator.js +2 -5
  172. package/lib/cjs/utils/formUtils.d.ts +1 -1
  173. package/lib/cjs/utils/utils.d.ts +106 -83
  174. package/lib/cjs/utils/utils.js +96 -140
  175. package/lib/cjs/widgets/CalendarWidget.d.ts +8 -7
  176. package/lib/cjs/widgets/CalendarWidget.js +8 -7
  177. package/lib/mjs/Element.d.ts +3 -2
  178. package/lib/mjs/Element.js +4 -3
  179. package/lib/mjs/Form.d.ts +99 -36
  180. package/lib/mjs/Form.js +43 -38
  181. package/lib/mjs/PDF.d.ts +8 -7
  182. package/lib/mjs/PDF.js +6 -5
  183. package/lib/mjs/Webform.d.ts +0 -3
  184. package/lib/mjs/Webform.js +18 -15
  185. package/lib/mjs/WebformBuilder.d.ts +15 -14
  186. package/lib/mjs/WebformBuilder.js +11 -10
  187. package/lib/mjs/Wizard.d.ts +0 -11
  188. package/lib/mjs/Wizard.js +14 -12
  189. package/lib/mjs/WizardBuilder.d.ts +1 -1
  190. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  191. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  192. package/lib/mjs/addons/index.d.ts +2 -2
  193. package/lib/mjs/components/Components.d.ts +6 -5
  194. package/lib/mjs/components/Components.js +2 -1
  195. package/lib/mjs/components/_classes/component/Component.form.d.ts +4 -5
  196. package/lib/mjs/components/_classes/component/Component.form.js +3 -2
  197. package/lib/mjs/components/_classes/component/Component.js +3 -2
  198. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  199. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  200. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  201. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  202. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  203. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +1 -1
  204. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  205. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  206. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  207. package/lib/mjs/components/_classes/list/ListComponent.form.js +3 -3
  208. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  209. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -2
  210. package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -2
  211. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  212. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  213. package/lib/mjs/components/address/Address.form.d.ts +4 -5
  214. package/lib/mjs/components/address/Address.form.js +3 -2
  215. package/lib/mjs/components/button/Button.form.d.ts +4 -5
  216. package/lib/mjs/components/button/Button.form.js +3 -2
  217. package/lib/mjs/components/button/Button.js +3 -2
  218. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +4 -5
  219. package/lib/mjs/components/checkbox/Checkbox.form.js +3 -2
  220. package/lib/mjs/components/checkbox/Checkbox.js +2 -9
  221. package/lib/mjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  222. package/lib/mjs/components/checkbox/fixtures/comp5.js +53 -0
  223. package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
  224. package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
  225. package/lib/mjs/components/columns/Columns.d.ts +1 -1
  226. package/lib/mjs/components/columns/Columns.form.d.ts +4 -5
  227. package/lib/mjs/components/columns/Columns.form.js +3 -2
  228. package/lib/mjs/components/columns/Columns.js +1 -1
  229. package/lib/mjs/components/container/Container.form.d.ts +4 -5
  230. package/lib/mjs/components/container/Container.form.js +3 -2
  231. package/lib/mjs/components/content/Content.form.d.ts +4 -5
  232. package/lib/mjs/components/content/Content.form.js +3 -2
  233. package/lib/mjs/components/currency/Currency.form.d.ts +4 -5
  234. package/lib/mjs/components/currency/Currency.form.js +3 -2
  235. package/lib/mjs/components/currency/Currency.js +1 -1
  236. package/lib/mjs/components/datagrid/DataGrid.d.ts +4 -4
  237. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +4 -5
  238. package/lib/mjs/components/datagrid/DataGrid.form.js +3 -2
  239. package/lib/mjs/components/datagrid/DataGrid.js +4 -4
  240. package/lib/mjs/components/datamap/DataMap.form.d.ts +4 -5
  241. package/lib/mjs/components/datamap/DataMap.form.js +3 -2
  242. package/lib/mjs/components/datetime/DateTime.form.d.ts +4 -5
  243. package/lib/mjs/components/datetime/DateTime.form.js +3 -2
  244. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  245. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  246. package/lib/mjs/components/day/Day.d.ts +18 -23
  247. package/lib/mjs/components/day/Day.form.d.ts +4 -5
  248. package/lib/mjs/components/day/Day.form.js +3 -2
  249. package/lib/mjs/components/day/Day.js +15 -14
  250. package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
  251. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +4 -5
  252. package/lib/mjs/components/editgrid/EditGrid.form.js +3 -2
  253. package/lib/mjs/components/editgrid/EditGrid.js +3 -3
  254. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  255. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  256. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  257. package/lib/mjs/components/email/Email.form.d.ts +4 -5
  258. package/lib/mjs/components/email/Email.form.js +3 -2
  259. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +4 -5
  260. package/lib/mjs/components/fieldset/Fieldset.form.js +3 -2
  261. package/lib/mjs/components/file/File.form.d.ts +4 -5
  262. package/lib/mjs/components/file/File.form.js +3 -2
  263. package/lib/mjs/components/form/Form.d.ts +23 -20
  264. package/lib/mjs/components/form/Form.form.d.ts +4 -5
  265. package/lib/mjs/components/form/Form.form.js +3 -2
  266. package/lib/mjs/components/form/Form.js +18 -11
  267. package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  268. package/lib/mjs/components/form/fixtures/comp7.d.ts +36 -0
  269. package/lib/mjs/components/form/fixtures/comp7.js +35 -0
  270. package/lib/mjs/components/form/fixtures/comp8.d.ts +26 -0
  271. package/lib/mjs/components/form/fixtures/comp8.js +27 -0
  272. package/lib/mjs/components/form/fixtures/index.d.ts +3 -1
  273. package/lib/mjs/components/form/fixtures/index.js +3 -1
  274. package/lib/mjs/components/hidden/Hidden.form.d.ts +4 -5
  275. package/lib/mjs/components/hidden/Hidden.form.js +3 -2
  276. package/lib/mjs/components/hidden/Hidden.js +1 -1
  277. package/lib/mjs/components/html/HTML.form.d.ts +4 -5
  278. package/lib/mjs/components/html/HTML.form.js +3 -2
  279. package/lib/mjs/components/number/Number.d.ts +1 -1
  280. package/lib/mjs/components/number/Number.form.d.ts +4 -5
  281. package/lib/mjs/components/number/Number.form.js +3 -2
  282. package/lib/mjs/components/number/Number.js +1 -1
  283. package/lib/mjs/components/panel/Panel.form.d.ts +4 -5
  284. package/lib/mjs/components/panel/Panel.form.js +3 -2
  285. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  286. package/lib/mjs/components/password/Password.form.d.ts +4 -5
  287. package/lib/mjs/components/password/Password.form.js +3 -2
  288. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  289. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +3 -2
  290. package/lib/mjs/components/radio/Radio.form.d.ts +4 -3
  291. package/lib/mjs/components/radio/Radio.form.js +3 -2
  292. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  293. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +2 -1
  294. package/lib/mjs/components/select/Select.d.ts +2 -2
  295. package/lib/mjs/components/select/Select.form.d.ts +4 -3
  296. package/lib/mjs/components/select/Select.form.js +3 -2
  297. package/lib/mjs/components/select/Select.js +1 -1
  298. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  299. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  300. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -2
  301. package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
  302. package/lib/mjs/components/signature/Signature.form.d.ts +4 -5
  303. package/lib/mjs/components/signature/Signature.form.js +3 -2
  304. package/lib/mjs/components/survey/Survey.form.d.ts +4 -5
  305. package/lib/mjs/components/survey/Survey.form.js +3 -2
  306. package/lib/mjs/components/table/Table.form.d.ts +4 -5
  307. package/lib/mjs/components/table/Table.form.js +3 -2
  308. package/lib/mjs/components/tabs/Tabs.d.ts +2 -2
  309. package/lib/mjs/components/tabs/Tabs.form.d.ts +4 -5
  310. package/lib/mjs/components/tabs/Tabs.form.js +3 -2
  311. package/lib/mjs/components/tabs/Tabs.js +1 -1
  312. package/lib/mjs/components/tags/Tags.form.d.ts +4 -5
  313. package/lib/mjs/components/tags/Tags.form.js +3 -2
  314. package/lib/mjs/components/textarea/TextArea.d.ts +3 -3
  315. package/lib/mjs/components/textarea/TextArea.form.d.ts +4 -5
  316. package/lib/mjs/components/textarea/TextArea.form.js +3 -2
  317. package/lib/mjs/components/textarea/TextArea.js +2 -2
  318. package/lib/mjs/components/textfield/TextField.d.ts +12 -19
  319. package/lib/mjs/components/textfield/TextField.form.d.ts +4 -5
  320. package/lib/mjs/components/textfield/TextField.form.js +3 -2
  321. package/lib/mjs/components/textfield/TextField.js +13 -12
  322. package/lib/mjs/components/time/Time.form.d.ts +4 -5
  323. package/lib/mjs/components/time/Time.form.js +3 -2
  324. package/lib/mjs/components/unknown/Unknown.form.d.ts +3 -35
  325. package/lib/mjs/components/unknown/Unknown.form.js +2 -1
  326. package/lib/mjs/components/url/Url.form.d.ts +4 -5
  327. package/lib/mjs/components/url/Url.form.js +3 -2
  328. package/lib/mjs/components/well/Well.form.d.ts +4 -5
  329. package/lib/mjs/components/well/Well.form.js +3 -2
  330. package/lib/mjs/formio.form.js +1 -1
  331. package/lib/mjs/utils/Evaluator.d.ts +0 -1
  332. package/lib/mjs/utils/Evaluator.js +1 -4
  333. package/lib/mjs/utils/formUtils.d.ts +1 -1
  334. package/lib/mjs/utils/utils.d.ts +106 -83
  335. package/lib/mjs/utils/utils.js +96 -140
  336. package/lib/mjs/widgets/CalendarWidget.d.ts +8 -7
  337. package/lib/mjs/widgets/CalendarWidget.js +8 -7
  338. package/package.json +5 -8
package/lib/mjs/Form.d.ts CHANGED
@@ -15,32 +15,32 @@ export default class Form extends Element {
15
15
  */
16
16
  /**
17
17
  * @typedef {object} FormioHooks
18
- * @property {Function} [beforeSubmit]
19
- * @property {Function} [beforeCancel]
20
- * @property {Function} [beforeNext]
21
- * @property {Function} [beforePrev]
22
- * @property {Function} [attachComponent]
23
- * @property {Function} [setDataValue]
24
- * @property {Function} [addComponents]
25
- * @property {Function} [addComponent]
26
- * @property {Function} [customValidation]
27
- * @property {Function} [attachWebform]
18
+ * @property {Function} [beforeSubmit] - Called before a submission is made.
19
+ * @property {Function} [beforeCancel] - Called before a cancel is made.
20
+ * @property {Function} [beforeNext] - Called before the next page is navigated to.
21
+ * @property {Function} [beforePrev] - Called before the previous page is navigated to.
22
+ * @property {Function} [attachComponent] - Called when a component is attached.
23
+ * @property {Function} [setDataValue] - Called when a data value is set.
24
+ * @property {Function} [addComponents] - Called when components are added.
25
+ * @property {Function} [addComponent] - Called when a component is added.
26
+ * @property {Function} [customValidation] - Called when a custom validation is made.
27
+ * @property {Function} [attachWebform] - Called when a webform is attached.
28
28
  */
29
29
  /**
30
30
  * @typedef {object} SanitizeConfig
31
- * @property {string[]} [addAttr]
32
- * @property {string[]} [addTags]
33
- * @property {string[]} [allowedAttrs]
34
- * @property {string[]} [allowedTags]
35
- * @property {string[]} [allowedUriRegex]
36
- * @property {string[]} [addUriSafeAttr]
31
+ * @property {string[]} [addAttr] - The html attributes to allow with sanitization.
32
+ * @property {string[]} [addTags] - The html tags to allow with sanitization.
33
+ * @property {string[]} [allowedAttrs] - The html attributes to allow with sanitization.
34
+ * @property {string[]} [allowedTags] - The html tags to allow with sanitization.
35
+ * @property {string[]} [allowedUriRegex] - The regex for allowed URIs.
36
+ * @property {string[]} [addUriSafeAttr] - The URI attributes to allow with sanitization.
37
37
  */
38
38
  /**
39
39
  * @typedef {object} ButtonSettings
40
- * @property {boolean} [showPrevious]
41
- * @property {boolean} [showNext]
42
- * @property {boolean} [showCancel]
43
- * @property {boolean} [showSubmit]
40
+ * @property {boolean} [showPrevious] - Show the previous button in wizard forms.
41
+ * @property {boolean} [showNext] - Show the next button in wizard forms.
42
+ * @property {boolean} [showCancel] - Show the cancel button in wizard forms.
43
+ * @property {boolean} [showSubmit] - Show the submit button in wizard forms.
44
44
  */
45
45
  /**
46
46
  * @typedef {object} FormOptions
@@ -212,15 +212,45 @@ export default class Form extends Element {
212
212
  * - The hooks for this form.
213
213
  */
214
214
  hooks?: {
215
+ /**
216
+ * - Called before a submission is made.
217
+ */
215
218
  beforeSubmit?: Function | undefined;
219
+ /**
220
+ * - Called before a cancel is made.
221
+ */
216
222
  beforeCancel?: Function | undefined;
223
+ /**
224
+ * - Called before the next page is navigated to.
225
+ */
217
226
  beforeNext?: Function | undefined;
227
+ /**
228
+ * - Called before the previous page is navigated to.
229
+ */
218
230
  beforePrev?: Function | undefined;
231
+ /**
232
+ * - Called when a component is attached.
233
+ */
219
234
  attachComponent?: Function | undefined;
235
+ /**
236
+ * - Called when a data value is set.
237
+ */
220
238
  setDataValue?: Function | undefined;
239
+ /**
240
+ * - Called when components are added.
241
+ */
221
242
  addComponents?: Function | undefined;
243
+ /**
244
+ * - Called when a component is added.
245
+ */
222
246
  addComponent?: Function | undefined;
247
+ /**
248
+ * - Called when a custom validation is made.
249
+ */
223
250
  customValidation?: Function | undefined;
251
+ /**
252
+ * - Called when a webform is attached.
253
+ */
224
254
  attachWebform?: Function | undefined;
225
255
  } | undefined;
226
256
  /**
@@ -251,20 +281,50 @@ export default class Form extends Element {
251
281
  * - The sanitize configuration for this form.
252
282
  */
253
283
  sanitizeConfig?: {
284
+ /**
285
+ * - The html attributes to allow with sanitization.
286
+ */
254
287
  addAttr?: string[] | undefined;
288
+ /**
289
+ * - The html tags to allow with sanitization.
290
+ */
255
291
  addTags?: string[] | undefined;
292
+ /**
293
+ * - The html attributes to allow with sanitization.
294
+ */
256
295
  allowedAttrs?: string[] | undefined;
296
+ /**
297
+ * - The html tags to allow with sanitization.
298
+ */
257
299
  allowedTags?: string[] | undefined;
300
+ /**
301
+ * - The regex for allowed URIs.
302
+ */
258
303
  allowedUriRegex?: string[] | undefined;
304
+ /**
305
+ * - The URI attributes to allow with sanitization.
306
+ */
259
307
  addUriSafeAttr?: string[] | undefined;
260
308
  } | undefined;
261
309
  /**
262
310
  * - The button settings for this form.
263
311
  */
264
312
  buttonSettings?: {
313
+ /**
314
+ * - Show the previous button in wizard forms.
315
+ */
265
316
  showPrevious?: boolean | undefined;
317
+ /**
318
+ * - Show the next button in wizard forms.
319
+ */
266
320
  showNext?: boolean | undefined;
321
+ /**
322
+ * - Show the cancel button in wizard forms.
323
+ */
267
324
  showCancel?: boolean | undefined;
325
+ /**
326
+ * - Show the submit button in wizard forms.
327
+ */
268
328
  showSubmit?: boolean | undefined;
269
329
  } | undefined;
270
330
  /**
@@ -300,13 +360,13 @@ export default class Form extends Element {
300
360
  /**
301
361
  * Create a new form instance provided the display of the form.
302
362
  * @param {string} display - The display of the form, either "wizard", "form", or "pdf"
303
- * @returns {*}
363
+ * @returns {Webform|Wizard|PDF} - The new form instance for the display.
304
364
  */
305
- create(display: string): any;
365
+ create(display: string): Webform | Wizard | PDF;
306
366
  /**
307
367
  * Sets the form. Either as JSON or a URL to a form JSON schema.
308
368
  * @param {string|object} formParam - Either the form JSON or the URL of the form json.
309
- * @returns {*}
369
+ * @returns {void}
310
370
  */
311
371
  set form(formParam: object);
312
372
  /**
@@ -332,35 +392,38 @@ export default class Form extends Element {
332
392
  /**
333
393
  * Check Subdirectories path and provide correct options
334
394
  * @param {string} url - The the URL of the form json.
335
- * @param {form} object - The form json.
336
- * @param form
395
+ * @param {import('@formio/core').Form} form - The form json.
337
396
  * @returns {object} The initial options with base and project.
338
397
  */
339
- getFormInitOptions(url: string, form: any): object;
340
- setForm(formParam: any): any;
398
+ getFormInitOptions(url: string, form: import('@formio/core').Form): object;
399
+ /**
400
+ * Sets the form to the JSON schema of a form.
401
+ * @param {import('@formio/core').Form} formParam - The form JSON to set this form to.
402
+ * @returns {Promise<Webform|Wizard|PDF>} - The webform instance that was created.
403
+ */
404
+ setForm(formParam: import('@formio/core').Form): Promise<Webform | Wizard | PDF>;
341
405
  _form: any;
342
406
  getSubmission(formio: any, opts: any): any;
343
407
  /**
344
408
  * Changes the display of the form.
345
409
  * @param {string} display - The display to set this form. Either "wizard", "form", or "pdf"
346
- * @returns {Promise<T>}
410
+ * @returns {Promise<Webform|Wizard|PDF>} - The form instance that was created after changing the display.
347
411
  */
348
- setDisplay(display: string): Promise<T>;
412
+ setDisplay(display: string): Promise<Webform | Wizard | PDF>;
349
413
  empty(): void;
350
414
  /**
351
415
  * Sanitize an html string.
352
- * @param string
353
- * @param dirty
354
- * @param forceSanitize
355
- * @returns {*}
416
+ * @param {string} dirty - The dirty html string to sanitize.
417
+ * @param {boolean} forceSanitize - If the string should be force sanitized.
418
+ * @returns {string} - The sanitized html string.
356
419
  */
357
- sanitize(dirty: any, forceSanitize: any): any;
420
+ sanitize(dirty: string, forceSanitize: boolean): string;
358
421
  setContent(element: any, content: any, forceSanitize: any): boolean;
359
422
  /**
360
423
  * Build a new form.
361
- * @returns {Promise<T>}
424
+ * @returns {Promise<Webform|Wizard|PDF>} - The form instance that was created.
362
425
  */
363
- build(): Promise<T>;
426
+ build(): Promise<Webform | Wizard | PDF>;
364
427
  render(): Promise<any>;
365
428
  attach(element: any): any;
366
429
  }
package/lib/mjs/Form.js CHANGED
@@ -18,32 +18,32 @@ export default class Form extends Element {
18
18
  */
19
19
  /**
20
20
  * @typedef {object} FormioHooks
21
- * @property {Function} [beforeSubmit]
22
- * @property {Function} [beforeCancel]
23
- * @property {Function} [beforeNext]
24
- * @property {Function} [beforePrev]
25
- * @property {Function} [attachComponent]
26
- * @property {Function} [setDataValue]
27
- * @property {Function} [addComponents]
28
- * @property {Function} [addComponent]
29
- * @property {Function} [customValidation]
30
- * @property {Function} [attachWebform]
21
+ * @property {Function} [beforeSubmit] - Called before a submission is made.
22
+ * @property {Function} [beforeCancel] - Called before a cancel is made.
23
+ * @property {Function} [beforeNext] - Called before the next page is navigated to.
24
+ * @property {Function} [beforePrev] - Called before the previous page is navigated to.
25
+ * @property {Function} [attachComponent] - Called when a component is attached.
26
+ * @property {Function} [setDataValue] - Called when a data value is set.
27
+ * @property {Function} [addComponents] - Called when components are added.
28
+ * @property {Function} [addComponent] - Called when a component is added.
29
+ * @property {Function} [customValidation] - Called when a custom validation is made.
30
+ * @property {Function} [attachWebform] - Called when a webform is attached.
31
31
  */
32
32
  /**
33
33
  * @typedef {object} SanitizeConfig
34
- * @property {string[]} [addAttr]
35
- * @property {string[]} [addTags]
36
- * @property {string[]} [allowedAttrs]
37
- * @property {string[]} [allowedTags]
38
- * @property {string[]} [allowedUriRegex]
39
- * @property {string[]} [addUriSafeAttr]
34
+ * @property {string[]} [addAttr] - The html attributes to allow with sanitization.
35
+ * @property {string[]} [addTags] - The html tags to allow with sanitization.
36
+ * @property {string[]} [allowedAttrs] - The html attributes to allow with sanitization.
37
+ * @property {string[]} [allowedTags] - The html tags to allow with sanitization.
38
+ * @property {string[]} [allowedUriRegex] - The regex for allowed URIs.
39
+ * @property {string[]} [addUriSafeAttr] - The URI attributes to allow with sanitization.
40
40
  */
41
41
  /**
42
42
  * @typedef {object} ButtonSettings
43
- * @property {boolean} [showPrevious]
44
- * @property {boolean} [showNext]
45
- * @property {boolean} [showCancel]
46
- * @property {boolean} [showSubmit]
43
+ * @property {boolean} [showPrevious] - Show the previous button in wizard forms.
44
+ * @property {boolean} [showNext] - Show the next button in wizard forms.
45
+ * @property {boolean} [showCancel] - Show the cancel button in wizard forms.
46
+ * @property {boolean} [showSubmit] - Show the submit button in wizard forms.
47
47
  */
48
48
  /**
49
49
  * @typedef {object} FormOptions
@@ -189,7 +189,7 @@ export default class Form extends Element {
189
189
  /**
190
190
  * Create a new form instance provided the display of the form.
191
191
  * @param {string} display - The display of the form, either "wizard", "form", or "pdf"
192
- * @returns {*}
192
+ * @returns {Webform|Wizard|PDF} - The new form instance for the display.
193
193
  */
194
194
  create(display) {
195
195
  if (this.options && (this.options.flatten || this.options.renderMode === 'flat')) {
@@ -207,7 +207,7 @@ export default class Form extends Element {
207
207
  /**
208
208
  * Sets the form. Either as JSON or a URL to a form JSON schema.
209
209
  * @param {string|object} formParam - Either the form JSON or the URL of the form json.
210
- * @returns {*}
210
+ * @returns {void}
211
211
  */
212
212
  set form(formParam) {
213
213
  this.setForm(formParam);
@@ -236,8 +236,7 @@ export default class Form extends Element {
236
236
  /**
237
237
  * Check Subdirectories path and provide correct options
238
238
  * @param {string} url - The the URL of the form json.
239
- * @param {form} object - The form json.
240
- * @param form
239
+ * @param {import('@formio/core').Form} form - The form json.
241
240
  * @returns {object} The initial options with base and project.
242
241
  */
243
242
  getFormInitOptions(url, form) {
@@ -263,6 +262,11 @@ export default class Form extends Element {
263
262
  }
264
263
  return {};
265
264
  }
265
+ /**
266
+ * Sets the form to the JSON schema of a form.
267
+ * @param {import('@formio/core').Form} formParam - The form JSON to set this form to.
268
+ * @returns {Promise<Webform|Wizard|PDF>} - The webform instance that was created.
269
+ */
266
270
  setForm(formParam) {
267
271
  let result;
268
272
  formParam = formParam || this.form;
@@ -331,7 +335,7 @@ export default class Form extends Element {
331
335
  /**
332
336
  * Changes the display of the form.
333
337
  * @param {string} display - The display to set this form. Either "wizard", "form", or "pdf"
334
- * @returns {Promise<T>}
338
+ * @returns {Promise<Webform|Wizard|PDF>} - The form instance that was created after changing the display.
335
339
  */
336
340
  setDisplay(display) {
337
341
  if ((this.display === display) && this.instance) {
@@ -372,10 +376,9 @@ export default class Form extends Element {
372
376
  }
373
377
  /**
374
378
  * Sanitize an html string.
375
- * @param string
376
- * @param dirty
377
- * @param forceSanitize
378
- * @returns {*}
379
+ * @param {string} dirty - The dirty html string to sanitize.
380
+ * @param {boolean} forceSanitize - If the string should be force sanitized.
381
+ * @returns {string} - The sanitized html string.
379
382
  */
380
383
  sanitize(dirty, forceSanitize) {
381
384
  // If Sanitize is turned off
@@ -393,7 +396,7 @@ export default class Form extends Element {
393
396
  }
394
397
  /**
395
398
  * Build a new form.
396
- * @returns {Promise<T>}
399
+ * @returns {Promise<Webform|Wizard|PDF>} - The form instance that was created.
397
400
  */
398
401
  build() {
399
402
  if (!this.instance) {
@@ -448,14 +451,16 @@ export default class Form extends Element {
448
451
  // Allow simple embedding.
449
452
  Formio.embedForm = (embed) => Form.embed(embed);
450
453
  /**
451
- * Factory that creates a new form based on the form parameters.
452
- * @param element {HMTLElement} - The HTML Element to add this form to.
453
- * @param form {string|Object} - The src of the form, or a form object.
454
- * @param options {Object} - The options to create this form.
455
- * @param {...any} args
456
- * @returns {Promise} - When the form is instance is ready.
454
+ * Creates an easy to use interface for embedding webforms, pdfs, and wizards into your application.
455
+ * @param {object} elementOrForm - The DOM element you wish to render this form within, or the form definition.
456
+ * @param {object | string | FormOptions} formOrOptions - A Form JSON schema, the URL of a hosted form, or the form options.
457
+ * @param {FormOptions} [options] - The options to create a new form instance.
458
+ * @returns {Promise<Webform|Wizard|PDF>} - The form instance that was created.
459
+ * @example
460
+ * import { Formio } from '@formio/js';
461
+ * Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/example');
457
462
  */
458
- Formio.createForm = (...args) => {
459
- return (new Form(...args)).ready;
463
+ Formio.createForm = (elementOrForm, formOrOptions, options) => {
464
+ return (new Form(elementOrForm, formOrOptions, options)).ready;
460
465
  };
461
466
  Formio.Form = Form;
package/lib/mjs/PDF.d.ts CHANGED
@@ -11,23 +11,24 @@ export default class PDF extends Webform {
11
11
  iframeElement: any;
12
12
  /**
13
13
  * Get the submission from the iframe.
14
- * @returns {Promise<any>}
14
+ * @returns {Promise<any>} - The submission from the iframe.
15
15
  */
16
16
  getSubmission(): Promise<any>;
17
17
  /**
18
18
  * Ensure we have the submission from the iframe before we submit the form.
19
- * @param options
20
- * @returns {*}
19
+ * @param {any} options - The options for submission.
20
+ * @returns {Promise<any>} - Resolves when the form is submitted.
21
21
  */
22
- submitForm(options?: {}): any;
22
+ submitForm(options?: any): Promise<any>;
23
23
  getSrc(): string;
24
24
  setForm(form: any, flags?: {}): Promise<void>;
25
25
  /**
26
26
  * Set's the value of this form component.
27
- * @param submission
28
- * @param flags
27
+ * @param {import('@formio/core').Submission} submission - The submission JSON to set the value of this form.
28
+ * @param {any} flags - The flags to use when setting the submission.
29
+ * @returns {boolean} - If the value changed or not.
29
30
  */
30
- setValue(submission: any, flags?: {}): boolean;
31
+ setValue(submission: import('@formio/core').Submission, flags?: any): boolean;
31
32
  postMessage(message: any): void;
32
33
  iframeFormSetUp: boolean | undefined;
33
34
  focusOnComponent(key: any): void;
package/lib/mjs/PDF.js CHANGED
@@ -138,7 +138,7 @@ export default class PDF extends Webform {
138
138
  }
139
139
  /**
140
140
  * Get the submission from the iframe.
141
- * @returns {Promise<any>}
141
+ * @returns {Promise<any>} - The submission from the iframe.
142
142
  */
143
143
  getSubmission() {
144
144
  return new Promise((resolve) => {
@@ -148,8 +148,8 @@ export default class PDF extends Webform {
148
148
  }
149
149
  /**
150
150
  * Ensure we have the submission from the iframe before we submit the form.
151
- * @param options
152
- * @returns {*}
151
+ * @param {any} options - The options for submission.
152
+ * @returns {Promise<any>} - Resolves when the form is submitted.
153
153
  */
154
154
  submitForm(options = {}) {
155
155
  this.postMessage({ name: 'getErrors' });
@@ -191,8 +191,9 @@ export default class PDF extends Webform {
191
191
  }
192
192
  /**
193
193
  * Set's the value of this form component.
194
- * @param submission
195
- * @param flags
194
+ * @param {import('@formio/core').Submission} submission - The submission JSON to set the value of this form.
195
+ * @param {any} flags - The flags to use when setting the submission.
196
+ * @returns {boolean} - If the value changed or not.
196
197
  */
197
198
  setValue(submission, flags = {}) {
198
199
  const changed = super.setValue(submission, flags);
@@ -83,9 +83,6 @@
83
83
  * @property {boolean} [building] - If we are in the process of building the form.
84
84
  * @property {number} [zoom] - The zoom for PDF forms.
85
85
  */
86
- /**
87
- * Renders a Form.io form within the webpage.
88
- */
89
86
  declare class Webform extends NestedDataComponent {
90
87
  /**
91
88
  * Creates a new Form instance.
@@ -129,9 +129,6 @@ function getOptions(options) {
129
129
  * @property {boolean} [building] - If we are in the process of building the form.
130
130
  * @property {number} [zoom] - The zoom for PDF forms.
131
131
  */
132
- /**
133
- * Renders a Form.io form within the webpage.
134
- */
135
132
  export default class Webform extends NestedDataComponent {
136
133
  /**
137
134
  * @type {import('Form').FormOptions} - the options for this Webform.
@@ -142,14 +139,14 @@ export default class Webform extends NestedDataComponent {
142
139
  * @param {HTMLElement | object | import('Form').FormOptions} [elementOrOptions] - The DOM element to render this form within or the options to create this form instance.
143
140
  * @param {import('Form').FormOptions} [options] - The options to create a new form instance.
144
141
  */
145
- constructor(elementOrOptions, options) {
142
+ constructor(elementOrOptions, options = undefined) {
146
143
  let element, formOptions;
147
144
  if (elementOrOptions instanceof HTMLElement || options) {
148
145
  element = elementOrOptions;
149
- formOptions = options;
146
+ formOptions = options || {};
150
147
  }
151
148
  else {
152
- formOptions = elementOrOptions;
149
+ formOptions = elementOrOptions || {};
153
150
  }
154
151
  super(null, getOptions(formOptions));
155
152
  this.setElement(element);
@@ -168,7 +165,7 @@ export default class Webform extends NestedDataComponent {
168
165
  this._loading = false;
169
166
  this._form = {};
170
167
  this.draftEnabled = false;
171
- this.savingDraft = true;
168
+ this.savingDraft = false;
172
169
  if (this.options.saveDraftThrottle) {
173
170
  this.triggerSaveDraft = _.throttle(this.saveDraft.bind(this), this.options.saveDraftThrottle);
174
171
  }
@@ -265,14 +262,20 @@ export default class Webform extends NestedDataComponent {
265
262
  // Set language after everything is established.
266
263
  this.language = this.i18next.language;
267
264
  // See if we need to restore the draft from a user.
268
- if (this.options.saveDraft && !this.options.skipDraftRestore) {
269
- this.formReady.then(() => {
270
- const user = Formio.getUser();
271
- // Only restore a draft if the submission isn't explicitly set.
272
- if (user && !this.submissionSet) {
273
- this.restoreDraft(user._id);
274
- }
275
- });
265
+ if (this.options.saveDraft) {
266
+ if (this.options.skipDraftRestore) {
267
+ this.draftEnabled = true;
268
+ this.savingDraft = false;
269
+ }
270
+ else {
271
+ this.formReady.then(() => {
272
+ const user = Formio.getUser();
273
+ // Only restore a draft if the submission isn't explicitly set.
274
+ if (user && !this.submissionSet) {
275
+ this.restoreDraft(user._id);
276
+ }
277
+ });
278
+ }
276
279
  }
277
280
  this.component.clearOnHide = false;
278
281
  // Ensure the root is set to this component.
@@ -56,9 +56,10 @@ export default class WebformBuilder extends Component {
56
56
  /**
57
57
  * When a component sets its api key, we need to check if it is unique within its namespace. Find the namespace root
58
58
  * so we can calculate this correctly.
59
- * @param component
59
+ * @param {import('@formio/core').Component} component - The component to find the namespace root for.
60
+ * @returns {import('@formio/core').Component[]} - The components root for this namespace.
60
61
  */
61
- findNamespaceRoot(component: any): any;
62
+ findNamespaceRoot(component: import('@formio/core').Component): import('@formio/core').Component[];
62
63
  recurseNamespace(component: any): any;
63
64
  render(): any;
64
65
  attach(element: any): Promise<any>;
@@ -80,13 +81,13 @@ export default class WebformBuilder extends Component {
80
81
  highlightInvalidComponents(): void;
81
82
  /**
82
83
  * Called when a new component is saved.
83
- * @param parent
84
- * @param component
85
- * @param isNew
86
- * @param original
87
- * @returns {boolean}
84
+ * @param {Component} component - The component instance to save.
85
+ * @param {Component} parent - The parent component.
86
+ * @param {boolean} isNew - If this is a new component.
87
+ * @param {Component} original - The original component.
88
+ * @returns {boolean} - If the component was saved.
88
89
  */
89
- saveComponent(component: any, parent: any, isNew: any, original: any): boolean;
90
+ saveComponent(component: Component, parent: Component, isNew: boolean, original: Component): boolean;
90
91
  isComponentCreated: boolean | undefined;
91
92
  emitSaveComponentEvent(schema: any, originalComp: any, parentComponentSchema: any, path: any, index: any, isNew: any, originalComponentSchema: any): void;
92
93
  attachEditComponentControls(component: any, parent: any, isNew: any, original: any, ComponentClass: any): void;
@@ -106,16 +107,16 @@ export default class WebformBuilder extends Component {
106
107
  addNewComponent(element: any): void;
107
108
  /**
108
109
  * Creates copy of component schema and stores it under sessionStorage.
109
- * @param {Component} component
110
- * @returns {*}
110
+ * @param {Component} component - The component to copy.
111
+ * @returns {void}
111
112
  */
112
- copyComponent(component: Component): any;
113
+ copyComponent(component: Component): void;
113
114
  /**
114
115
  * Paste copied component after the current component.
115
- * @param {Component} component
116
- * @returns {*}
116
+ * @param {Component} component - The component to paste after.
117
+ * @returns {void}
117
118
  */
118
- pasteComponent(component: Component): any;
119
+ pasteComponent(component: Component): void;
119
120
  isParentSaveChildMethod(parentComp: any): boolean;
120
121
  getParentElement(element: any): any;
121
122
  addBuilderComponentInfo(component: any): any;
@@ -414,7 +414,8 @@ export default class WebformBuilder extends Component {
414
414
  /**
415
415
  * When a component sets its api key, we need to check if it is unique within its namespace. Find the namespace root
416
416
  * so we can calculate this correctly.
417
- * @param component
417
+ * @param {import('@formio/core').Component} component - The component to find the namespace root for.
418
+ * @returns {import('@formio/core').Component[]} - The components root for this namespace.
418
419
  */
419
420
  findNamespaceRoot(component) {
420
421
  const path = getArrayFromComponentPath(component.path);
@@ -1116,11 +1117,11 @@ export default class WebformBuilder extends Component {
1116
1117
  }
1117
1118
  /**
1118
1119
  * Called when a new component is saved.
1119
- * @param parent
1120
- * @param component
1121
- * @param isNew
1122
- * @param original
1123
- * @returns {boolean}
1120
+ * @param {Component} component - The component instance to save.
1121
+ * @param {Component} parent - The parent component.
1122
+ * @param {boolean} isNew - If this is a new component.
1123
+ * @param {Component} original - The original component.
1124
+ * @returns {boolean} - If the component was saved.
1124
1125
  */
1125
1126
  saveComponent(component, parent, isNew, original) {
1126
1127
  this.editForm.detach();
@@ -1507,8 +1508,8 @@ export default class WebformBuilder extends Component {
1507
1508
  }
1508
1509
  /**
1509
1510
  * Creates copy of component schema and stores it under sessionStorage.
1510
- * @param {Component} component
1511
- * @returns {*}
1511
+ * @param {Component} component - The component to copy.
1512
+ * @returns {void}
1512
1513
  */
1513
1514
  copyComponent(component) {
1514
1515
  if (!window.sessionStorage) {
@@ -1519,8 +1520,8 @@ export default class WebformBuilder extends Component {
1519
1520
  }
1520
1521
  /**
1521
1522
  * Paste copied component after the current component.
1522
- * @param {Component} component
1523
- * @returns {*}
1523
+ * @param {Component} component - The component to paste after.
1524
+ * @returns {void}
1524
1525
  */
1525
1526
  pasteComponent(component) {
1526
1527
  if (!window.sessionStorage) {
@@ -1,13 +1,4 @@
1
1
  declare class Wizard extends Webform {
2
- /**
3
- * Constructor for wizard-based forms.
4
- * @param {HTMLElement} [element] - The DOM element to place this wizard.
5
- * @param {object} [options] - Options object, supported options include:
6
- * - breadcrumbSettings.clickable: true (default) - determines if the breadcrumb bar is clickable.
7
- * - buttonSettings.show*(Previous, Next, Cancel): true (default) - determines if the button is shown.
8
- * - allowPrevious: false (default) - determines if the breadcrumb bar is clickable for visited tabs.
9
- */
10
- constructor(...args: any[]);
11
2
  pages: any[];
12
3
  prefixComps: any[];
13
4
  suffixComps: any[];
@@ -28,8 +19,6 @@ declare class Wizard extends Webform {
28
19
  getPages(args?: {}): any[];
29
20
  get hasExtraPages(): boolean;
30
21
  get localData(): any;
31
- isClickableDefined: boolean | undefined;
32
- isSecondInit: boolean | undefined;
33
22
  get wizardKey(): string;
34
23
  set wizard(form: object);
35
24
  get wizard(): object;