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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) 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/embed.d.ts +1 -0
  17. package/form.d.ts +1 -0
  18. package/lib/cjs/Element.d.ts +3 -2
  19. package/lib/cjs/Element.js +4 -3
  20. package/lib/cjs/Form.d.ts +99 -36
  21. package/lib/cjs/Form.js +23 -18
  22. package/lib/cjs/InlineEmbed.d.ts +7 -0
  23. package/lib/cjs/InlineEmbed.js +109 -0
  24. package/lib/cjs/PDF.d.ts +8 -7
  25. package/lib/cjs/PDF.js +6 -5
  26. package/lib/cjs/Webform.d.ts +0 -3
  27. package/lib/cjs/Webform.js +18 -15
  28. package/lib/cjs/WebformBuilder.d.ts +15 -14
  29. package/lib/cjs/WebformBuilder.js +11 -10
  30. package/lib/cjs/Wizard.d.ts +0 -11
  31. package/lib/cjs/Wizard.js +16 -14
  32. package/lib/cjs/WizardBuilder.d.ts +1 -1
  33. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  34. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  35. package/lib/cjs/addons/index.d.ts +2 -2
  36. package/lib/cjs/components/Components.d.ts +6 -5
  37. package/lib/cjs/components/Components.js +2 -1
  38. package/lib/cjs/components/_classes/component/Component.form.d.ts +4 -5
  39. package/lib/cjs/components/_classes/component/Component.form.js +3 -2
  40. package/lib/cjs/components/_classes/component/Component.js +3 -2
  41. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  42. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  43. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  44. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  45. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  46. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +1 -1
  47. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  48. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  49. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  50. package/lib/cjs/components/_classes/list/ListComponent.form.js +3 -3
  51. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  52. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -2
  53. package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -2
  54. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  55. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  56. package/lib/cjs/components/address/Address.form.d.ts +4 -5
  57. package/lib/cjs/components/address/Address.form.js +3 -2
  58. package/lib/cjs/components/button/Button.form.d.ts +4 -5
  59. package/lib/cjs/components/button/Button.form.js +3 -2
  60. package/lib/cjs/components/button/Button.js +3 -2
  61. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +4 -5
  62. package/lib/cjs/components/checkbox/Checkbox.form.js +3 -2
  63. package/lib/cjs/components/checkbox/Checkbox.js +2 -9
  64. package/lib/cjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  65. package/lib/cjs/components/checkbox/fixtures/comp5.js +55 -0
  66. package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
  67. package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
  68. package/lib/cjs/components/columns/Columns.d.ts +1 -1
  69. package/lib/cjs/components/columns/Columns.form.d.ts +4 -5
  70. package/lib/cjs/components/columns/Columns.form.js +3 -2
  71. package/lib/cjs/components/columns/Columns.js +1 -1
  72. package/lib/cjs/components/container/Container.form.d.ts +4 -5
  73. package/lib/cjs/components/container/Container.form.js +3 -2
  74. package/lib/cjs/components/content/Content.form.d.ts +4 -5
  75. package/lib/cjs/components/content/Content.form.js +3 -2
  76. package/lib/cjs/components/currency/Currency.form.d.ts +4 -5
  77. package/lib/cjs/components/currency/Currency.form.js +3 -2
  78. package/lib/cjs/components/currency/Currency.js +1 -1
  79. package/lib/cjs/components/datagrid/DataGrid.d.ts +4 -4
  80. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +4 -5
  81. package/lib/cjs/components/datagrid/DataGrid.form.js +3 -2
  82. package/lib/cjs/components/datagrid/DataGrid.js +4 -4
  83. package/lib/cjs/components/datamap/DataMap.form.d.ts +4 -5
  84. package/lib/cjs/components/datamap/DataMap.form.js +3 -2
  85. package/lib/cjs/components/datetime/DateTime.form.d.ts +4 -5
  86. package/lib/cjs/components/datetime/DateTime.form.js +3 -2
  87. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  88. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  89. package/lib/cjs/components/day/Day.d.ts +18 -23
  90. package/lib/cjs/components/day/Day.form.d.ts +4 -5
  91. package/lib/cjs/components/day/Day.form.js +3 -2
  92. package/lib/cjs/components/day/Day.js +15 -14
  93. package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
  94. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +4 -5
  95. package/lib/cjs/components/editgrid/EditGrid.form.js +3 -2
  96. package/lib/cjs/components/editgrid/EditGrid.js +3 -3
  97. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
  98. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  99. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
  100. package/lib/cjs/components/email/Email.form.d.ts +4 -5
  101. package/lib/cjs/components/email/Email.form.js +3 -2
  102. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +4 -5
  103. package/lib/cjs/components/fieldset/Fieldset.form.js +3 -2
  104. package/lib/cjs/components/file/File.form.d.ts +4 -5
  105. package/lib/cjs/components/file/File.form.js +3 -2
  106. package/lib/cjs/components/form/Form.d.ts +23 -20
  107. package/lib/cjs/components/form/Form.form.d.ts +4 -5
  108. package/lib/cjs/components/form/Form.form.js +3 -2
  109. package/lib/cjs/components/form/Form.js +18 -11
  110. package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  111. package/lib/cjs/components/form/fixtures/comp7.d.ts +36 -0
  112. package/lib/cjs/components/form/fixtures/comp7.js +37 -0
  113. package/lib/cjs/components/form/fixtures/comp8.d.ts +26 -0
  114. package/lib/cjs/components/form/fixtures/comp8.js +29 -0
  115. package/lib/cjs/components/form/fixtures/index.d.ts +3 -1
  116. package/lib/cjs/components/form/fixtures/index.js +5 -1
  117. package/lib/cjs/components/hidden/Hidden.form.d.ts +4 -5
  118. package/lib/cjs/components/hidden/Hidden.form.js +3 -2
  119. package/lib/cjs/components/hidden/Hidden.js +1 -1
  120. package/lib/cjs/components/html/HTML.form.d.ts +4 -5
  121. package/lib/cjs/components/html/HTML.form.js +3 -2
  122. package/lib/cjs/components/number/Number.d.ts +1 -1
  123. package/lib/cjs/components/number/Number.form.d.ts +4 -5
  124. package/lib/cjs/components/number/Number.form.js +3 -2
  125. package/lib/cjs/components/number/Number.js +1 -1
  126. package/lib/cjs/components/panel/Panel.form.d.ts +4 -5
  127. package/lib/cjs/components/panel/Panel.form.js +3 -2
  128. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  129. package/lib/cjs/components/password/Password.form.d.ts +4 -5
  130. package/lib/cjs/components/password/Password.form.js +3 -2
  131. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  132. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +3 -2
  133. package/lib/cjs/components/radio/Radio.form.d.ts +4 -3
  134. package/lib/cjs/components/radio/Radio.form.js +3 -2
  135. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  136. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +2 -1
  137. package/lib/cjs/components/select/Select.d.ts +2 -2
  138. package/lib/cjs/components/select/Select.form.d.ts +4 -3
  139. package/lib/cjs/components/select/Select.form.js +3 -2
  140. package/lib/cjs/components/select/Select.js +1 -1
  141. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  142. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  143. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -2
  144. package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
  145. package/lib/cjs/components/signature/Signature.form.d.ts +4 -5
  146. package/lib/cjs/components/signature/Signature.form.js +3 -2
  147. package/lib/cjs/components/survey/Survey.form.d.ts +4 -5
  148. package/lib/cjs/components/survey/Survey.form.js +3 -2
  149. package/lib/cjs/components/table/Table.form.d.ts +4 -5
  150. package/lib/cjs/components/table/Table.form.js +3 -2
  151. package/lib/cjs/components/tabs/Tabs.d.ts +2 -2
  152. package/lib/cjs/components/tabs/Tabs.form.d.ts +4 -5
  153. package/lib/cjs/components/tabs/Tabs.form.js +3 -2
  154. package/lib/cjs/components/tabs/Tabs.js +1 -1
  155. package/lib/cjs/components/tags/Tags.form.d.ts +4 -5
  156. package/lib/cjs/components/tags/Tags.form.js +3 -2
  157. package/lib/cjs/components/textarea/TextArea.d.ts +3 -3
  158. package/lib/cjs/components/textarea/TextArea.form.d.ts +4 -5
  159. package/lib/cjs/components/textarea/TextArea.form.js +3 -2
  160. package/lib/cjs/components/textarea/TextArea.js +2 -2
  161. package/lib/cjs/components/textfield/TextField.d.ts +12 -19
  162. package/lib/cjs/components/textfield/TextField.form.d.ts +4 -5
  163. package/lib/cjs/components/textfield/TextField.form.js +3 -2
  164. package/lib/cjs/components/textfield/TextField.js +13 -12
  165. package/lib/cjs/components/time/Time.form.d.ts +4 -5
  166. package/lib/cjs/components/time/Time.form.js +3 -2
  167. package/lib/cjs/components/unknown/Unknown.form.d.ts +3 -35
  168. package/lib/cjs/components/unknown/Unknown.form.js +2 -1
  169. package/lib/cjs/components/url/Url.form.d.ts +4 -5
  170. package/lib/cjs/components/url/Url.form.js +3 -2
  171. package/lib/cjs/components/well/Well.form.d.ts +4 -5
  172. package/lib/cjs/components/well/Well.form.js +3 -2
  173. package/lib/cjs/formio.embed.d.ts +1 -2
  174. package/lib/cjs/formio.embed.js +2 -100
  175. package/lib/cjs/formio.form.js +2 -2
  176. package/lib/cjs/utils/Evaluator.d.ts +0 -1
  177. package/lib/cjs/utils/Evaluator.js +2 -5
  178. package/lib/cjs/utils/formUtils.d.ts +1 -1
  179. package/lib/cjs/utils/utils.d.ts +106 -83
  180. package/lib/cjs/utils/utils.js +96 -140
  181. package/lib/cjs/widgets/CalendarWidget.d.ts +8 -7
  182. package/lib/cjs/widgets/CalendarWidget.js +8 -7
  183. package/lib/mjs/Element.d.ts +3 -2
  184. package/lib/mjs/Element.js +4 -3
  185. package/lib/mjs/Form.d.ts +99 -36
  186. package/lib/mjs/Form.js +43 -38
  187. package/lib/mjs/InlineEmbed.d.ts +7 -0
  188. package/lib/mjs/InlineEmbed.js +105 -0
  189. package/lib/mjs/PDF.d.ts +8 -7
  190. package/lib/mjs/PDF.js +6 -5
  191. package/lib/mjs/Webform.d.ts +0 -3
  192. package/lib/mjs/Webform.js +18 -15
  193. package/lib/mjs/WebformBuilder.d.ts +15 -14
  194. package/lib/mjs/WebformBuilder.js +11 -10
  195. package/lib/mjs/Wizard.d.ts +0 -11
  196. package/lib/mjs/Wizard.js +14 -12
  197. package/lib/mjs/WizardBuilder.d.ts +1 -1
  198. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  199. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  200. package/lib/mjs/addons/index.d.ts +2 -2
  201. package/lib/mjs/components/Components.d.ts +6 -5
  202. package/lib/mjs/components/Components.js +2 -1
  203. package/lib/mjs/components/_classes/component/Component.form.d.ts +4 -5
  204. package/lib/mjs/components/_classes/component/Component.form.js +3 -2
  205. package/lib/mjs/components/_classes/component/Component.js +3 -2
  206. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  207. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  208. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  209. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  210. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  211. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +1 -1
  212. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  213. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  214. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  215. package/lib/mjs/components/_classes/list/ListComponent.form.js +3 -3
  216. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  217. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -2
  218. package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -2
  219. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  220. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  221. package/lib/mjs/components/address/Address.form.d.ts +4 -5
  222. package/lib/mjs/components/address/Address.form.js +3 -2
  223. package/lib/mjs/components/button/Button.form.d.ts +4 -5
  224. package/lib/mjs/components/button/Button.form.js +3 -2
  225. package/lib/mjs/components/button/Button.js +3 -2
  226. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +4 -5
  227. package/lib/mjs/components/checkbox/Checkbox.form.js +3 -2
  228. package/lib/mjs/components/checkbox/Checkbox.js +2 -9
  229. package/lib/mjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  230. package/lib/mjs/components/checkbox/fixtures/comp5.js +53 -0
  231. package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
  232. package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
  233. package/lib/mjs/components/columns/Columns.d.ts +1 -1
  234. package/lib/mjs/components/columns/Columns.form.d.ts +4 -5
  235. package/lib/mjs/components/columns/Columns.form.js +3 -2
  236. package/lib/mjs/components/columns/Columns.js +1 -1
  237. package/lib/mjs/components/container/Container.form.d.ts +4 -5
  238. package/lib/mjs/components/container/Container.form.js +3 -2
  239. package/lib/mjs/components/content/Content.form.d.ts +4 -5
  240. package/lib/mjs/components/content/Content.form.js +3 -2
  241. package/lib/mjs/components/currency/Currency.form.d.ts +4 -5
  242. package/lib/mjs/components/currency/Currency.form.js +3 -2
  243. package/lib/mjs/components/currency/Currency.js +1 -1
  244. package/lib/mjs/components/datagrid/DataGrid.d.ts +4 -4
  245. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +4 -5
  246. package/lib/mjs/components/datagrid/DataGrid.form.js +3 -2
  247. package/lib/mjs/components/datagrid/DataGrid.js +4 -4
  248. package/lib/mjs/components/datamap/DataMap.form.d.ts +4 -5
  249. package/lib/mjs/components/datamap/DataMap.form.js +3 -2
  250. package/lib/mjs/components/datetime/DateTime.form.d.ts +4 -5
  251. package/lib/mjs/components/datetime/DateTime.form.js +3 -2
  252. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  253. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  254. package/lib/mjs/components/day/Day.d.ts +18 -23
  255. package/lib/mjs/components/day/Day.form.d.ts +4 -5
  256. package/lib/mjs/components/day/Day.form.js +3 -2
  257. package/lib/mjs/components/day/Day.js +15 -14
  258. package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
  259. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +4 -5
  260. package/lib/mjs/components/editgrid/EditGrid.form.js +3 -2
  261. package/lib/mjs/components/editgrid/EditGrid.js +3 -3
  262. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  263. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  264. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  265. package/lib/mjs/components/email/Email.form.d.ts +4 -5
  266. package/lib/mjs/components/email/Email.form.js +3 -2
  267. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +4 -5
  268. package/lib/mjs/components/fieldset/Fieldset.form.js +3 -2
  269. package/lib/mjs/components/file/File.form.d.ts +4 -5
  270. package/lib/mjs/components/file/File.form.js +3 -2
  271. package/lib/mjs/components/form/Form.d.ts +23 -20
  272. package/lib/mjs/components/form/Form.form.d.ts +4 -5
  273. package/lib/mjs/components/form/Form.form.js +3 -2
  274. package/lib/mjs/components/form/Form.js +18 -11
  275. package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  276. package/lib/mjs/components/form/fixtures/comp7.d.ts +36 -0
  277. package/lib/mjs/components/form/fixtures/comp7.js +35 -0
  278. package/lib/mjs/components/form/fixtures/comp8.d.ts +26 -0
  279. package/lib/mjs/components/form/fixtures/comp8.js +27 -0
  280. package/lib/mjs/components/form/fixtures/index.d.ts +3 -1
  281. package/lib/mjs/components/form/fixtures/index.js +3 -1
  282. package/lib/mjs/components/hidden/Hidden.form.d.ts +4 -5
  283. package/lib/mjs/components/hidden/Hidden.form.js +3 -2
  284. package/lib/mjs/components/hidden/Hidden.js +1 -1
  285. package/lib/mjs/components/html/HTML.form.d.ts +4 -5
  286. package/lib/mjs/components/html/HTML.form.js +3 -2
  287. package/lib/mjs/components/number/Number.d.ts +1 -1
  288. package/lib/mjs/components/number/Number.form.d.ts +4 -5
  289. package/lib/mjs/components/number/Number.form.js +3 -2
  290. package/lib/mjs/components/number/Number.js +1 -1
  291. package/lib/mjs/components/panel/Panel.form.d.ts +4 -5
  292. package/lib/mjs/components/panel/Panel.form.js +3 -2
  293. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  294. package/lib/mjs/components/password/Password.form.d.ts +4 -5
  295. package/lib/mjs/components/password/Password.form.js +3 -2
  296. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  297. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +3 -2
  298. package/lib/mjs/components/radio/Radio.form.d.ts +4 -3
  299. package/lib/mjs/components/radio/Radio.form.js +3 -2
  300. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  301. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +2 -1
  302. package/lib/mjs/components/select/Select.d.ts +2 -2
  303. package/lib/mjs/components/select/Select.form.d.ts +4 -3
  304. package/lib/mjs/components/select/Select.form.js +3 -2
  305. package/lib/mjs/components/select/Select.js +1 -1
  306. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  307. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  308. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -2
  309. package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
  310. package/lib/mjs/components/signature/Signature.form.d.ts +4 -5
  311. package/lib/mjs/components/signature/Signature.form.js +3 -2
  312. package/lib/mjs/components/survey/Survey.form.d.ts +4 -5
  313. package/lib/mjs/components/survey/Survey.form.js +3 -2
  314. package/lib/mjs/components/table/Table.form.d.ts +4 -5
  315. package/lib/mjs/components/table/Table.form.js +3 -2
  316. package/lib/mjs/components/tabs/Tabs.d.ts +2 -2
  317. package/lib/mjs/components/tabs/Tabs.form.d.ts +4 -5
  318. package/lib/mjs/components/tabs/Tabs.form.js +3 -2
  319. package/lib/mjs/components/tabs/Tabs.js +1 -1
  320. package/lib/mjs/components/tags/Tags.form.d.ts +4 -5
  321. package/lib/mjs/components/tags/Tags.form.js +3 -2
  322. package/lib/mjs/components/textarea/TextArea.d.ts +3 -3
  323. package/lib/mjs/components/textarea/TextArea.form.d.ts +4 -5
  324. package/lib/mjs/components/textarea/TextArea.form.js +3 -2
  325. package/lib/mjs/components/textarea/TextArea.js +2 -2
  326. package/lib/mjs/components/textfield/TextField.d.ts +12 -19
  327. package/lib/mjs/components/textfield/TextField.form.d.ts +4 -5
  328. package/lib/mjs/components/textfield/TextField.form.js +3 -2
  329. package/lib/mjs/components/textfield/TextField.js +13 -12
  330. package/lib/mjs/components/time/Time.form.d.ts +4 -5
  331. package/lib/mjs/components/time/Time.form.js +3 -2
  332. package/lib/mjs/components/unknown/Unknown.form.d.ts +3 -35
  333. package/lib/mjs/components/unknown/Unknown.form.js +2 -1
  334. package/lib/mjs/components/url/Url.form.d.ts +4 -5
  335. package/lib/mjs/components/url/Url.form.js +3 -2
  336. package/lib/mjs/components/well/Well.form.d.ts +4 -5
  337. package/lib/mjs/components/well/Well.form.js +3 -2
  338. package/lib/mjs/formio.embed.d.ts +1 -2
  339. package/lib/mjs/formio.embed.js +2 -99
  340. package/lib/mjs/formio.form.js +1 -1
  341. package/lib/mjs/utils/Evaluator.d.ts +0 -1
  342. package/lib/mjs/utils/Evaluator.js +1 -4
  343. package/lib/mjs/utils/formUtils.d.ts +1 -1
  344. package/lib/mjs/utils/utils.d.ts +106 -83
  345. package/lib/mjs/utils/utils.js +96 -140
  346. package/lib/mjs/widgets/CalendarWidget.d.ts +8 -7
  347. package/lib/mjs/widgets/CalendarWidget.js +8 -7
  348. package/package.json +12 -11
  349. package/sdk.d.ts +1 -0
  350. package/utils.d.ts +1 -0
@@ -19,8 +19,9 @@ export default class EditGridComponent extends NestedArrayComponent {
19
19
  get rowTemplate(): any;
20
20
  get headerTemplate(): any;
21
21
  /**
22
- * Returns true if the component has nested components which don't trigger changes on the root level
23
- */ get hasScopedChildren(): boolean;
22
+ * @returns {boolean} - Returns true if the component has nested components which don't trigger changes on the root level
23
+ */
24
+ get hasScopedChildren(): boolean;
24
25
  get emptyValue(): never[];
25
26
  get editgridKey(): string;
26
27
  get rowRef(): string;
@@ -92,7 +93,7 @@ export default class EditGridComponent extends NestedArrayComponent {
92
93
  validateRow(editRow: any, dirty: any, forceSilentCheck: any): any;
93
94
  showRowErrorAlerts(editRow: any, errors: any): void;
94
95
  /**
95
- * Return that this component processes its own validation.
96
+ * @returns {boolean} - Return that this component processes its own validation.
96
97
  */
97
98
  get processOwnValidation(): boolean;
98
99
  checkComponentValidity(data: any, dirty: any, row: any, options?: {}, errors?: any[]): boolean;
@@ -1,7 +1,6 @@
1
1
  /**
2
- *
3
- * @param {...any} extend
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
4
5
  */
5
- export default function _default(...extend: any[]): {
6
- components: any;
7
- };
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -9,8 +9,9 @@ const EditGrid_edit_display_1 = __importDefault(require("./editForm/EditGrid.edi
9
9
  const EditGrid_edit_templates_1 = __importDefault(require("./editForm/EditGrid.edit.templates"));
10
10
  const EditGrid_edit_validation_1 = __importDefault(require("./editForm/EditGrid.edit.validation"));
11
11
  /**
12
- *
13
- * @param {...any} extend
12
+ * The Edit Form function.
13
+ * @param {...any} extend - The components that extend the edit form.
14
+ * @returns {import('@formio/core').Component[]} - The edit form components.
14
15
  */
15
16
  function default_1(...extend) {
16
17
  return Components_1.default.baseEditForm([
@@ -166,8 +166,8 @@ class EditGridComponent extends NestedArrayComponent_1.default {
166
166
  return headerTemplate;
167
167
  }
168
168
  /**
169
- * Returns true if the component has nested components which don't trigger changes on the root level
170
- */ //
169
+ * @returns {boolean} - Returns true if the component has nested components which don't trigger changes on the root level
170
+ */
171
171
  get hasScopedChildren() {
172
172
  return !this.inlineEditMode;
173
173
  }
@@ -1046,7 +1046,7 @@ class EditGridComponent extends NestedArrayComponent_1.default {
1046
1046
  }
1047
1047
  }
1048
1048
  /**
1049
- * Return that this component processes its own validation.
1049
+ * @returns {boolean} - Return that this component processes its own validation.
1050
1050
  */
1051
1051
  get processOwnValidation() {
1052
1052
  return true;
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const Evaluator_1 = __importDefault(require("../../../utils/Evaluator"));
3
+ const Evaluator_1 = require("../../../utils/Evaluator");
7
4
  exports.default = [
8
5
  {
9
6
  key: 'placeholder',
@@ -38,7 +35,7 @@ exports.default = [
38
35
  weight: 1002,
39
36
  input: false,
40
37
  customConditional() {
41
- return !Evaluator_1.default.noeval;
38
+ return !Evaluator_1.Evaluator.noeval;
42
39
  },
43
40
  },
44
41
  {
@@ -25,7 +25,7 @@ declare const _default: ({
25
25
  placeholder: string;
26
26
  description: string;
27
27
  tooltip: string;
28
- customConditional(): any;
28
+ customConditional(): boolean;
29
29
  clearOnHide?: undefined;
30
30
  weight?: undefined;
31
31
  } | {
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const Evaluator_1 = __importDefault(require("../../../utils/Evaluator"));
3
+ const Evaluator_1 = require("../../../utils/Evaluator");
7
4
  exports.default = [
8
5
  {
9
6
  type: 'textarea',
@@ -18,7 +15,7 @@ exports.default = [
18
15
  description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
19
16
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the header of the Edit grid.',
20
17
  customConditional({ data }) {
21
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && !data.displayAsTable;
18
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && !data.displayAsTable;
22
19
  }
23
20
  },
24
21
  {
@@ -34,7 +31,7 @@ exports.default = [
34
31
  description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
35
32
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the header of the Edit grid.',
36
33
  customConditional({ data }) {
37
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && data.displayAsTable;
34
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && data.displayAsTable;
38
35
  }
39
36
  },
40
37
  {
@@ -52,7 +49,7 @@ exports.default = [
52
49
  ' To add click events, add the classes "editRow" and "removeRow" to elements.',
53
50
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render each row of the Edit grid.',
54
51
  customConditional({ data }) {
55
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && !data.displayAsTable;
52
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && !data.displayAsTable;
56
53
  }
57
54
  },
58
55
  {
@@ -70,7 +67,7 @@ exports.default = [
70
67
  ' To add click events, add the classes "editRow" and "removeRow" to elements.',
71
68
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render each row of the Edit grid.',
72
69
  customConditional({ data }) {
73
- return (!Evaluator_1.default.noeval || Evaluator_1.default.protectedEval) && data.displayAsTable;
70
+ return (!Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval) && data.displayAsTable;
74
71
  }
75
72
  },
76
73
  {
@@ -85,7 +82,7 @@ exports.default = [
85
82
  description: 'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',
86
83
  tooltip: 'This is the <a href=\'https://lodash.com/docs/4.17.5#template\'>Lodash Template</a> used to render the footer of the Edit grid.',
87
84
  customConditional() {
88
- return !Evaluator_1.default.noeval || Evaluator_1.default.protectedEval;
85
+ return !Evaluator_1.Evaluator.noeval || Evaluator_1.Evaluator.protectedEval;
89
86
  }
90
87
  },
91
88
  {
@@ -1,7 +1,6 @@
1
1
  /**
2
- *
3
- * @param {...any} extend
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
4
5
  */
5
- export default function _default(...extend: any[]): {
6
- components: any;
7
- };
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -7,8 +7,9 @@ const TextField_form_1 = __importDefault(require("../textfield/TextField.form"))
7
7
  const Email_edit_display_1 = __importDefault(require("./editForm/Email.edit.display"));
8
8
  const Email_edit_validation_1 = __importDefault(require("./editForm/Email.edit.validation"));
9
9
  /**
10
- *
11
- * @param {...any} extend
10
+ * The Edit Form function.
11
+ * @param {...any} extend - The components that extend the edit form.
12
+ * @returns {import('@formio/core').Component[]} - The edit form components.
12
13
  */
13
14
  function default_1(...extend) {
14
15
  return (0, TextField_form_1.default)([
@@ -1,7 +1,6 @@
1
1
  /**
2
- *
3
- * @param {...any} extend
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
4
5
  */
5
- export default function _default(...extend: any[]): {
6
- components: any;
7
- };
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
7
  const Fieldset_edit_display_1 = __importDefault(require("./editForm/Fieldset.edit.display"));
8
8
  /**
9
- *
10
- * @param {...any} extend
9
+ * The Edit Form function.
10
+ * @param {...any} extend - The components that extend the edit form.
11
+ * @returns {import('@formio/core').Component[]} - The edit form components.
11
12
  */
12
13
  function default_1(...extend) {
13
14
  return (0, NestedComponent_form_1.default)([
@@ -1,7 +1,6 @@
1
1
  /**
2
- *
3
- * @param {...any} extend
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
4
5
  */
5
- export default function _default(...extend: any[]): {
6
- components: any;
7
- };
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -9,8 +9,9 @@ const File_edit_display_1 = __importDefault(require("./editForm/File.edit.displa
9
9
  const File_edit_file_1 = __importDefault(require("./editForm/File.edit.file"));
10
10
  const File_edit_validation_1 = __importDefault(require("./editForm/File.edit.validation"));
11
11
  /**
12
- *
13
- * @param {...any} extend
12
+ * The Edit Form function.
13
+ * @param {...any} extend - The components that extend the edit form.
14
+ * @returns {import('@formio/core').Component[]} - The edit form components.
14
15
  */
15
16
  function default_1(...extend) {
16
17
  return Components_1.default.baseEditForm([
@@ -13,11 +13,11 @@ export default class FormComponent extends Component {
13
13
  valueChanged: boolean | undefined;
14
14
  subForm: any;
15
15
  formSrc: any;
16
- get dataReady(): any;
16
+ get dataReady(): Promise<any>;
17
17
  get emptyValue(): {
18
18
  data: {};
19
19
  };
20
- get ready(): any;
20
+ get ready(): Promise<any>;
21
21
  get useOriginalRevision(): any;
22
22
  setFormRevision(rev: any): void;
23
23
  subFormRevision: any;
@@ -29,30 +29,31 @@ export default class FormComponent extends Component {
29
29
  * Prints out the value of form components as a datagrid value.
30
30
  */
31
31
  getValueAsString(value: any, options: any): any;
32
- attach(element: any): Promise<any>;
32
+ attach(element: any): Promise<void>;
33
33
  get hasLoadedForm(): any;
34
34
  get isRevisionChanged(): any;
35
- subFormReady: any;
35
+ subFormReady: Promise<any> | null | undefined;
36
36
  /**
37
37
  * Pass everyComponent to subform.
38
- * @param args
39
- * @returns {*|void}
38
+ * @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
39
+ * @returns {*} - The result of the subform's everyComponent method.
40
40
  */
41
- everyComponent(...args: any[]): any | void;
41
+ everyComponent(...args: any[]): any;
42
42
  setSubFormDisabled(subForm: any): void;
43
43
  updateSubWizards(subForm: any): void;
44
44
  /**
45
45
  * Create a subform instance.
46
- * @param fromAttach
47
- * @returns {*}
46
+ * @param {boolean} [fromAttach] - This function is being called from an `attach` method.
47
+ * @returns {*} - The subform instance.
48
48
  */
49
- createSubForm(fromAttach: any): any;
49
+ createSubForm(fromAttach?: boolean | undefined): any;
50
50
  hideSubmitButton(component: any): void;
51
51
  /**
52
52
  * Load the subform.
53
- * @param fromAttach
53
+ * @param {boolean} fromAttach - This function is being called from an `attach` method.
54
+ * @returns {Promise} - The promise that resolves when the subform is loaded.
54
55
  */
55
- loadSubForm(fromAttach: any): any;
56
+ loadSubForm(fromAttach: boolean): Promise<any>;
56
57
  subFormLoading: boolean | undefined;
57
58
  get subFormData(): any;
58
59
  checkComponentValidity(data: any, dirty: any, row: any, options: any, errors?: any[]): any;
@@ -61,28 +62,30 @@ export default class FormComponent extends Component {
61
62
  setPristine(pristine: any): void;
62
63
  /**
63
64
  * Determine if the subform should be submitted.
64
- * @returns {*|boolean}
65
+ * @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
65
66
  */
66
67
  get shouldSubmit(): any;
67
68
  /**
68
69
  * Returns the data for the subform.
69
- * @returns {*}
70
+ * @returns {*} - the data for the subform.
70
71
  */
71
72
  getSubFormData(): any;
72
73
  /**
73
74
  * Submit the subform if configured to do so.
74
- * @returns {*}
75
+ * @returns {Promise} - The promise that resolves when the subform is submitted.
75
76
  */
76
- submitSubForm(): any;
77
+ submitSubForm(): Promise<any>;
77
78
  /**
78
79
  * Submit the form before the next page is triggered.
79
- * @param next
80
+ * @param {Function} next - The function to trigger the next page.
81
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
80
82
  */
81
- beforePage(next: any): any;
83
+ beforePage(next: Function): Promise<any>;
82
84
  /**
83
85
  * Submit the form before the whole form is triggered.
86
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
84
87
  */
85
- beforeSubmit(): any;
88
+ beforeSubmit(): Promise<any>;
86
89
  isSubFormLazyLoad(): any;
87
90
  isHidden(): boolean;
88
91
  setValue(submission: any, flags?: {}): boolean;
@@ -92,7 +95,7 @@ export default class FormComponent extends Component {
92
95
  /**
93
96
  * Determines if this form is a Nested Wizard
94
97
  * which means it should be a Wizard itself and should be a direct child of a Wizard's page
95
- * @returns {boolean}
98
+ * @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
96
99
  */
97
100
  get isNestedWizard(): boolean;
98
101
  isInternalEvent(event: any): boolean;
@@ -1,7 +1,6 @@
1
1
  /**
2
- *
3
- * @param {...any} extend
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
4
5
  */
5
- export default function _default(...extend: any[]): {
6
- components: any;
7
- };
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -8,8 +8,9 @@ const Form_edit_display_1 = __importDefault(require("./editForm/Form.edit.displa
8
8
  const Form_edit_form_1 = __importDefault(require("./editForm/Form.edit.form"));
9
9
  const Form_edit_data_1 = __importDefault(require("./editForm/Form.edit.data"));
10
10
  /**
11
- *
12
- * @param {...any} extend
11
+ * The Edit Form function.
12
+ * @param {...any} extend - The components that extend the edit form.
13
+ * @returns {import('@formio/core').Component[]} - The edit form components.
13
14
  */
14
15
  function default_1(...extend) {
15
16
  return (0, NestedComponent_form_1.default)([
@@ -206,6 +206,9 @@ class FormComponent extends Component_1.default {
206
206
  if (this.options.saveDraftThrottle) {
207
207
  options.saveDraftThrottle = this.options.saveDraftThrottle;
208
208
  }
209
+ if (this.options.skipDraftRestore) {
210
+ options.skipDraftRestore = this.options.skipDraftRestore;
211
+ }
209
212
  return options;
210
213
  }
211
214
  /* eslint-enable max-statements */
@@ -346,8 +349,8 @@ class FormComponent extends Component_1.default {
346
349
  }
347
350
  /**
348
351
  * Pass everyComponent to subform.
349
- * @param args
350
- * @returns {*|void}
352
+ * @param {any[]} args - Arguments to pass through to the subform's everyComponent method.
353
+ * @returns {*} - The result of the subform's everyComponent method.
351
354
  */
352
355
  everyComponent(...args) {
353
356
  if (this.subForm) {
@@ -372,8 +375,8 @@ class FormComponent extends Component_1.default {
372
375
  }
373
376
  /**
374
377
  * Create a subform instance.
375
- * @param fromAttach
376
- * @returns {*}
378
+ * @param {boolean} [fromAttach] - This function is being called from an `attach` method.
379
+ * @returns {*} - The subform instance.
377
380
  */
378
381
  createSubForm(fromAttach) {
379
382
  this.subFormReady = this.loadSubForm(fromAttach).then((form) => {
@@ -426,7 +429,8 @@ class FormComponent extends Component_1.default {
426
429
  }
427
430
  /**
428
431
  * Load the subform.
429
- * @param fromAttach
432
+ * @param {boolean} fromAttach - This function is being called from an `attach` method.
433
+ * @returns {Promise} - The promise that resolves when the subform is loaded.
430
434
  */
431
435
  loadSubForm(fromAttach) {
432
436
  var _a, _b, _c;
@@ -511,14 +515,14 @@ class FormComponent extends Component_1.default {
511
515
  }
512
516
  /**
513
517
  * Determine if the subform should be submitted.
514
- * @returns {*|boolean}
518
+ * @returns {*|boolean} - TRUE if the subform should be submitted, FALSE if it should not.
515
519
  */
516
520
  get shouldSubmit() {
517
521
  return this.subFormReady && (!this.component.hasOwnProperty('reference') || this.component.reference) && !this.isHidden();
518
522
  }
519
523
  /**
520
524
  * Returns the data for the subform.
521
- * @returns {*}
525
+ * @returns {*} - the data for the subform.
522
526
  */
523
527
  getSubFormData() {
524
528
  if (lodash_1.default.get(this.subForm, 'form.display') === 'pdf') {
@@ -530,7 +534,7 @@ class FormComponent extends Component_1.default {
530
534
  }
531
535
  /**
532
536
  * Submit the subform if configured to do so.
533
- * @returns {*}
537
+ * @returns {Promise} - The promise that resolves when the subform is submitted.
534
538
  */
535
539
  submitSubForm() {
536
540
  // If we wish to submit the form on next page, then do that here.
@@ -557,7 +561,8 @@ class FormComponent extends Component_1.default {
557
561
  }
558
562
  /**
559
563
  * Submit the form before the next page is triggered.
560
- * @param next
564
+ * @param {Function} next - The function to trigger the next page.
565
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the next page is triggered.
561
566
  */
562
567
  beforePage(next) {
563
568
  // Should not submit child forms if we are going to the previous page
@@ -568,6 +573,7 @@ class FormComponent extends Component_1.default {
568
573
  }
569
574
  /**
570
575
  * Submit the form before the whole form is triggered.
576
+ * @returns {Promise} - The promise that resolves when the subform submission is complete (if necessary) and the form is submitted.
571
577
  */
572
578
  beforeSubmit() {
573
579
  var _a, _b, _c;
@@ -577,8 +583,9 @@ class FormComponent extends Component_1.default {
577
583
  this.subForm.triggerSaveDraft.cancel();
578
584
  }
579
585
  const isAlreadySubmitted = submission && submission._id && submission.form;
586
+ const isDraftSubmission = this.options.saveDraft && submission.state === 'draft';
580
587
  // This submission has already been submitted, so just return the reference data.
581
- if (isAlreadySubmitted && !((_c = this.subForm) === null || _c === void 0 ? void 0 : _c.wizard)) {
588
+ if (isAlreadySubmitted && !((_c = this.subForm) === null || _c === void 0 ? void 0 : _c.wizard) && !isDraftSubmission) {
582
589
  this.dataValue = submission;
583
590
  return Promise.resolve(this.dataValue);
584
591
  }
@@ -681,7 +688,7 @@ class FormComponent extends Component_1.default {
681
688
  /**
682
689
  * Determines if this form is a Nested Wizard
683
690
  * which means it should be a Wizard itself and should be a direct child of a Wizard's page
684
- * @returns {boolean}
691
+ * @returns {boolean} - TRUE if this form is a Nested Wizard, FALSE otherwise
685
692
  */
686
693
  get isNestedWizard() {
687
694
  var _a, _b, _c, _d, _e;
@@ -19,7 +19,7 @@ declare const _default: ({
19
19
  'margin-bottom': string;
20
20
  };
21
21
  key: string;
22
- customConditional(): any;
22
+ customConditional(): boolean;
23
23
  components: ({
24
24
  type: string;
25
25
  key: any;
@@ -0,0 +1,36 @@
1
+ declare namespace _default {
2
+ let _id: string;
3
+ let title: string;
4
+ let name: string;
5
+ let path: string;
6
+ let type: string;
7
+ let display: string;
8
+ let components: ({
9
+ label: string;
10
+ tableView: boolean;
11
+ key: string;
12
+ type: string;
13
+ input: boolean;
14
+ src?: undefined;
15
+ disableOnInvalid?: undefined;
16
+ } | {
17
+ label: string;
18
+ tableView: boolean;
19
+ src: string;
20
+ key: string;
21
+ type: string;
22
+ input: boolean;
23
+ disableOnInvalid?: undefined;
24
+ } | {
25
+ type: string;
26
+ label: string;
27
+ key: string;
28
+ disableOnInvalid: boolean;
29
+ input: boolean;
30
+ tableView: boolean;
31
+ src?: undefined;
32
+ })[];
33
+ let project: string;
34
+ let machineName: string;
35
+ }
36
+ export default _default;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ _id: '66051dae494c977c47028fac',
5
+ title: 'test draft parent',
6
+ name: 'testDraftParent',
7
+ path: 'testdraftparent',
8
+ type: 'form',
9
+ display: 'form',
10
+ components: [
11
+ {
12
+ label: 'Parent Form Field',
13
+ tableView: true,
14
+ key: 'parent',
15
+ type: 'textfield',
16
+ input: true,
17
+ },
18
+ {
19
+ label: 'Form',
20
+ tableView: true,
21
+ src: 'http://localhost:3000/idwqwhclwioyqbw/testdraftnested',
22
+ key: 'form',
23
+ type: 'form',
24
+ input: true,
25
+ },
26
+ {
27
+ type: 'button',
28
+ label: 'Submit',
29
+ key: 'submit',
30
+ disableOnInvalid: true,
31
+ input: true,
32
+ tableView: false,
33
+ },
34
+ ],
35
+ project: '63cead09be0090345b109e22',
36
+ machineName: 'idwqwhclwioyqbw:testdraftparent'
37
+ };
@@ -0,0 +1,26 @@
1
+ declare namespace _default {
2
+ let _id: string;
3
+ let title: string;
4
+ let name: string;
5
+ let path: string;
6
+ let type: string;
7
+ let display: string;
8
+ let components: ({
9
+ label: string;
10
+ tableView: boolean;
11
+ key: string;
12
+ type: string;
13
+ input: boolean;
14
+ disableOnInvalid?: undefined;
15
+ } | {
16
+ type: string;
17
+ label: string;
18
+ key: string;
19
+ disableOnInvalid: boolean;
20
+ input: boolean;
21
+ tableView: boolean;
22
+ })[];
23
+ let project: string;
24
+ let machineName: string;
25
+ }
26
+ export default _default;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ _id: '63e4deda12b88c4f05c125cf',
5
+ title: 'test draft nested',
6
+ name: 'testDraftNested',
7
+ path: 'testdraftnested',
8
+ type: 'form',
9
+ display: 'form',
10
+ components: [
11
+ {
12
+ label: 'Nested Form Field',
13
+ tableView: true,
14
+ key: 'nested',
15
+ type: 'textfield',
16
+ input: true,
17
+ },
18
+ {
19
+ type: 'button',
20
+ label: 'Submit',
21
+ key: 'submit',
22
+ disableOnInvalid: true,
23
+ input: true,
24
+ tableView: false,
25
+ },
26
+ ],
27
+ project: '63cead09be0090345b109e22',
28
+ machineName: 'idwqwhclwioyqbw:testdraftparent'
29
+ };
@@ -5,4 +5,6 @@ import comp3 from './comp3';
5
5
  import comp4 from './comp4';
6
6
  import comp5 from './comp5';
7
7
  import comp6 from './comp6';
8
- export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6 };
8
+ import comp7 from './comp7';
9
+ import comp8 from './comp8';
10
+ export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = exports.formModalEdit = void 0;
6
+ exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = exports.formModalEdit = void 0;
7
7
  const formModalEdit_1 = __importDefault(require("./formModalEdit"));
8
8
  exports.formModalEdit = formModalEdit_1.default;
9
9
  const comp1_1 = __importDefault(require("./comp1"));
@@ -18,3 +18,7 @@ const comp5_1 = __importDefault(require("./comp5"));
18
18
  exports.comp5 = comp5_1.default;
19
19
  const comp6_1 = __importDefault(require("./comp6"));
20
20
  exports.comp6 = comp6_1.default;
21
+ const comp7_1 = __importDefault(require("./comp7"));
22
+ exports.comp7 = comp7_1.default;
23
+ const comp8_1 = __importDefault(require("./comp8"));
24
+ exports.comp8 = comp8_1.default;
@@ -1,7 +1,6 @@
1
1
  /**
2
- *
3
- * @param {...any} extend
2
+ * The Edit Form function.
3
+ * @param {...any} extend - The components that extend the edit form.
4
+ * @returns {import('@formio/core').Component[]} - The edit form components.
4
5
  */
5
- export default function _default(...extend: any[]): {
6
- components: any;
7
- };
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];