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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) 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/Embed.js +8 -5
  19. package/lib/cjs/Form.d.ts +99 -36
  20. package/lib/cjs/Form.js +23 -18
  21. package/lib/cjs/PDF.d.ts +8 -7
  22. package/lib/cjs/PDF.js +6 -5
  23. package/lib/cjs/Webform.d.ts +1 -4
  24. package/lib/cjs/Webform.js +19 -16
  25. package/lib/cjs/WebformBuilder.d.ts +15 -14
  26. package/lib/cjs/WebformBuilder.js +11 -10
  27. package/lib/cjs/Wizard.d.ts +1 -12
  28. package/lib/cjs/Wizard.js +17 -15
  29. package/lib/cjs/WizardBuilder.d.ts +1 -1
  30. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  31. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  32. package/lib/cjs/addons/index.d.ts +2 -2
  33. package/lib/cjs/components/Components.d.ts +6 -5
  34. package/lib/cjs/components/Components.js +2 -1
  35. package/lib/cjs/components/_classes/component/Component.form.d.ts +4 -5
  36. package/lib/cjs/components/_classes/component/Component.form.js +3 -2
  37. package/lib/cjs/components/_classes/component/Component.js +3 -2
  38. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  39. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  40. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  41. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  42. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +2 -2
  43. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +1 -1
  44. package/lib/cjs/components/_classes/component/editForm/utils.js +2 -2
  45. package/lib/cjs/components/_classes/list/ListComponent.d.ts +2 -2
  46. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  47. package/lib/cjs/components/_classes/list/ListComponent.form.js +3 -3
  48. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  49. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -2
  50. package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -2
  51. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  52. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  53. package/lib/cjs/components/address/Address.form.d.ts +4 -5
  54. package/lib/cjs/components/address/Address.form.js +3 -2
  55. package/lib/cjs/components/button/Button.form.d.ts +4 -5
  56. package/lib/cjs/components/button/Button.form.js +3 -2
  57. package/lib/cjs/components/button/Button.js +3 -2
  58. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +4 -5
  59. package/lib/cjs/components/checkbox/Checkbox.form.js +3 -2
  60. package/lib/cjs/components/checkbox/Checkbox.js +2 -9
  61. package/lib/cjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  62. package/lib/cjs/components/checkbox/fixtures/comp5.js +55 -0
  63. package/lib/cjs/components/checkbox/fixtures/index.d.ts +2 -1
  64. package/lib/cjs/components/checkbox/fixtures/index.js +3 -1
  65. package/lib/cjs/components/columns/Columns.d.ts +1 -1
  66. package/lib/cjs/components/columns/Columns.form.d.ts +4 -5
  67. package/lib/cjs/components/columns/Columns.form.js +3 -2
  68. package/lib/cjs/components/columns/Columns.js +1 -1
  69. package/lib/cjs/components/container/Container.form.d.ts +4 -5
  70. package/lib/cjs/components/container/Container.form.js +3 -2
  71. package/lib/cjs/components/content/Content.form.d.ts +4 -5
  72. package/lib/cjs/components/content/Content.form.js +3 -2
  73. package/lib/cjs/components/currency/Currency.form.d.ts +4 -5
  74. package/lib/cjs/components/currency/Currency.form.js +3 -2
  75. package/lib/cjs/components/currency/Currency.js +1 -1
  76. package/lib/cjs/components/datagrid/DataGrid.d.ts +4 -4
  77. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +4 -5
  78. package/lib/cjs/components/datagrid/DataGrid.form.js +3 -2
  79. package/lib/cjs/components/datagrid/DataGrid.js +4 -4
  80. package/lib/cjs/components/datamap/DataMap.form.d.ts +4 -5
  81. package/lib/cjs/components/datamap/DataMap.form.js +3 -2
  82. package/lib/cjs/components/datetime/DateTime.form.d.ts +4 -5
  83. package/lib/cjs/components/datetime/DateTime.form.js +3 -2
  84. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  85. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +2 -2
  86. package/lib/cjs/components/day/Day.d.ts +18 -23
  87. package/lib/cjs/components/day/Day.form.d.ts +4 -5
  88. package/lib/cjs/components/day/Day.form.js +3 -2
  89. package/lib/cjs/components/day/Day.js +15 -14
  90. package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
  91. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +4 -5
  92. package/lib/cjs/components/editgrid/EditGrid.form.js +3 -2
  93. package/lib/cjs/components/editgrid/EditGrid.js +3 -3
  94. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -5
  95. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  96. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +6 -9
  97. package/lib/cjs/components/email/Email.form.d.ts +4 -5
  98. package/lib/cjs/components/email/Email.form.js +3 -2
  99. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +4 -5
  100. package/lib/cjs/components/fieldset/Fieldset.form.js +3 -2
  101. package/lib/cjs/components/file/File.form.d.ts +4 -5
  102. package/lib/cjs/components/file/File.form.js +3 -2
  103. package/lib/cjs/components/form/Form.d.ts +23 -20
  104. package/lib/cjs/components/form/Form.form.d.ts +4 -5
  105. package/lib/cjs/components/form/Form.form.js +3 -2
  106. package/lib/cjs/components/form/Form.js +18 -11
  107. package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  108. package/lib/cjs/components/form/fixtures/comp7.d.ts +36 -0
  109. package/lib/cjs/components/form/fixtures/comp7.js +37 -0
  110. package/lib/cjs/components/form/fixtures/comp8.d.ts +26 -0
  111. package/lib/cjs/components/form/fixtures/comp8.js +29 -0
  112. package/lib/cjs/components/form/fixtures/index.d.ts +3 -1
  113. package/lib/cjs/components/form/fixtures/index.js +5 -1
  114. package/lib/cjs/components/hidden/Hidden.form.d.ts +4 -5
  115. package/lib/cjs/components/hidden/Hidden.form.js +3 -2
  116. package/lib/cjs/components/hidden/Hidden.js +1 -1
  117. package/lib/cjs/components/html/HTML.form.d.ts +4 -5
  118. package/lib/cjs/components/html/HTML.form.js +3 -2
  119. package/lib/cjs/components/number/Number.d.ts +1 -1
  120. package/lib/cjs/components/number/Number.form.d.ts +4 -5
  121. package/lib/cjs/components/number/Number.form.js +3 -2
  122. package/lib/cjs/components/number/Number.js +1 -1
  123. package/lib/cjs/components/panel/Panel.form.d.ts +4 -5
  124. package/lib/cjs/components/panel/Panel.form.js +3 -2
  125. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  126. package/lib/cjs/components/password/Password.form.d.ts +4 -5
  127. package/lib/cjs/components/password/Password.form.js +3 -2
  128. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  129. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +3 -2
  130. package/lib/cjs/components/radio/Radio.form.d.ts +4 -3
  131. package/lib/cjs/components/radio/Radio.form.js +3 -2
  132. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  133. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +2 -1
  134. package/lib/cjs/components/select/Select.d.ts +2 -2
  135. package/lib/cjs/components/select/Select.form.d.ts +4 -3
  136. package/lib/cjs/components/select/Select.form.js +3 -2
  137. package/lib/cjs/components/select/Select.js +1 -1
  138. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  139. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  140. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -2
  141. package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
  142. package/lib/cjs/components/signature/Signature.form.d.ts +4 -5
  143. package/lib/cjs/components/signature/Signature.form.js +3 -2
  144. package/lib/cjs/components/survey/Survey.form.d.ts +4 -5
  145. package/lib/cjs/components/survey/Survey.form.js +3 -2
  146. package/lib/cjs/components/table/Table.form.d.ts +4 -5
  147. package/lib/cjs/components/table/Table.form.js +3 -2
  148. package/lib/cjs/components/tabs/Tabs.d.ts +2 -2
  149. package/lib/cjs/components/tabs/Tabs.form.d.ts +4 -5
  150. package/lib/cjs/components/tabs/Tabs.form.js +3 -2
  151. package/lib/cjs/components/tabs/Tabs.js +1 -1
  152. package/lib/cjs/components/tags/Tags.form.d.ts +4 -5
  153. package/lib/cjs/components/tags/Tags.form.js +3 -2
  154. package/lib/cjs/components/textarea/TextArea.d.ts +3 -3
  155. package/lib/cjs/components/textarea/TextArea.form.d.ts +4 -5
  156. package/lib/cjs/components/textarea/TextArea.form.js +3 -2
  157. package/lib/cjs/components/textarea/TextArea.js +2 -2
  158. package/lib/cjs/components/textfield/TextField.d.ts +12 -19
  159. package/lib/cjs/components/textfield/TextField.form.d.ts +4 -5
  160. package/lib/cjs/components/textfield/TextField.form.js +3 -2
  161. package/lib/cjs/components/textfield/TextField.js +13 -12
  162. package/lib/cjs/components/time/Time.form.d.ts +4 -5
  163. package/lib/cjs/components/time/Time.form.js +3 -2
  164. package/lib/cjs/components/unknown/Unknown.form.d.ts +3 -35
  165. package/lib/cjs/components/unknown/Unknown.form.js +2 -1
  166. package/lib/cjs/components/url/Url.form.d.ts +4 -5
  167. package/lib/cjs/components/url/Url.form.js +3 -2
  168. package/lib/cjs/components/well/Well.form.d.ts +4 -5
  169. package/lib/cjs/components/well/Well.form.js +3 -2
  170. package/lib/cjs/formio.form.js +2 -2
  171. package/lib/cjs/utils/Evaluator.d.ts +0 -1
  172. package/lib/cjs/utils/Evaluator.js +2 -5
  173. package/lib/cjs/utils/formUtils.d.ts +1 -1
  174. package/lib/cjs/utils/utils.d.ts +106 -83
  175. package/lib/cjs/utils/utils.js +96 -140
  176. package/lib/cjs/widgets/CalendarWidget.d.ts +8 -7
  177. package/lib/cjs/widgets/CalendarWidget.js +8 -7
  178. package/lib/mjs/Element.d.ts +3 -2
  179. package/lib/mjs/Element.js +4 -3
  180. package/lib/mjs/Embed.js +8 -5
  181. package/lib/mjs/Form.d.ts +99 -36
  182. package/lib/mjs/Form.js +43 -38
  183. package/lib/mjs/PDF.d.ts +8 -7
  184. package/lib/mjs/PDF.js +6 -5
  185. package/lib/mjs/Webform.d.ts +1 -4
  186. package/lib/mjs/Webform.js +19 -16
  187. package/lib/mjs/WebformBuilder.d.ts +15 -14
  188. package/lib/mjs/WebformBuilder.js +11 -10
  189. package/lib/mjs/Wizard.d.ts +1 -12
  190. package/lib/mjs/Wizard.js +15 -13
  191. package/lib/mjs/WizardBuilder.d.ts +1 -1
  192. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +2 -2
  193. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +2 -2
  194. package/lib/mjs/addons/index.d.ts +2 -2
  195. package/lib/mjs/components/Components.d.ts +6 -5
  196. package/lib/mjs/components/Components.js +2 -1
  197. package/lib/mjs/components/_classes/component/Component.form.d.ts +4 -5
  198. package/lib/mjs/components/_classes/component/Component.form.js +3 -2
  199. package/lib/mjs/components/_classes/component/Component.js +3 -2
  200. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +2 -2
  201. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +1 -1
  202. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +1 -1
  203. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +1 -1
  204. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +1 -1
  205. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +1 -1
  206. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  207. package/lib/mjs/components/_classes/list/ListComponent.d.ts +2 -2
  208. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +4 -4
  209. package/lib/mjs/components/_classes/list/ListComponent.form.js +3 -3
  210. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +4 -5
  211. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -2
  212. package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -2
  213. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +1 -1
  214. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +1 -1
  215. package/lib/mjs/components/address/Address.form.d.ts +4 -5
  216. package/lib/mjs/components/address/Address.form.js +3 -2
  217. package/lib/mjs/components/button/Button.form.d.ts +4 -5
  218. package/lib/mjs/components/button/Button.form.js +3 -2
  219. package/lib/mjs/components/button/Button.js +3 -2
  220. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +4 -5
  221. package/lib/mjs/components/checkbox/Checkbox.form.js +3 -2
  222. package/lib/mjs/components/checkbox/Checkbox.js +2 -9
  223. package/lib/mjs/components/checkbox/fixtures/comp5.d.ts +34 -0
  224. package/lib/mjs/components/checkbox/fixtures/comp5.js +53 -0
  225. package/lib/mjs/components/checkbox/fixtures/index.d.ts +2 -1
  226. package/lib/mjs/components/checkbox/fixtures/index.js +2 -1
  227. package/lib/mjs/components/columns/Columns.d.ts +1 -1
  228. package/lib/mjs/components/columns/Columns.form.d.ts +4 -5
  229. package/lib/mjs/components/columns/Columns.form.js +3 -2
  230. package/lib/mjs/components/columns/Columns.js +1 -1
  231. package/lib/mjs/components/container/Container.form.d.ts +4 -5
  232. package/lib/mjs/components/container/Container.form.js +3 -2
  233. package/lib/mjs/components/content/Content.form.d.ts +4 -5
  234. package/lib/mjs/components/content/Content.form.js +3 -2
  235. package/lib/mjs/components/currency/Currency.form.d.ts +4 -5
  236. package/lib/mjs/components/currency/Currency.form.js +3 -2
  237. package/lib/mjs/components/currency/Currency.js +1 -1
  238. package/lib/mjs/components/datagrid/DataGrid.d.ts +4 -4
  239. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +4 -5
  240. package/lib/mjs/components/datagrid/DataGrid.form.js +3 -2
  241. package/lib/mjs/components/datagrid/DataGrid.js +4 -4
  242. package/lib/mjs/components/datamap/DataMap.form.d.ts +4 -5
  243. package/lib/mjs/components/datamap/DataMap.form.js +3 -2
  244. package/lib/mjs/components/datetime/DateTime.form.d.ts +4 -5
  245. package/lib/mjs/components/datetime/DateTime.form.js +3 -2
  246. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +1 -1
  247. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +1 -1
  248. package/lib/mjs/components/day/Day.d.ts +18 -23
  249. package/lib/mjs/components/day/Day.form.d.ts +4 -5
  250. package/lib/mjs/components/day/Day.form.js +3 -2
  251. package/lib/mjs/components/day/Day.js +15 -14
  252. package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
  253. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +4 -5
  254. package/lib/mjs/components/editgrid/EditGrid.form.js +3 -2
  255. package/lib/mjs/components/editgrid/EditGrid.js +3 -3
  256. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +1 -1
  257. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +1 -1
  258. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +1 -1
  259. package/lib/mjs/components/email/Email.form.d.ts +4 -5
  260. package/lib/mjs/components/email/Email.form.js +3 -2
  261. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +4 -5
  262. package/lib/mjs/components/fieldset/Fieldset.form.js +3 -2
  263. package/lib/mjs/components/file/File.form.d.ts +4 -5
  264. package/lib/mjs/components/file/File.form.js +3 -2
  265. package/lib/mjs/components/form/Form.d.ts +23 -20
  266. package/lib/mjs/components/form/Form.form.d.ts +4 -5
  267. package/lib/mjs/components/form/Form.form.js +3 -2
  268. package/lib/mjs/components/form/Form.js +18 -11
  269. package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +1 -1
  270. package/lib/mjs/components/form/fixtures/comp7.d.ts +36 -0
  271. package/lib/mjs/components/form/fixtures/comp7.js +35 -0
  272. package/lib/mjs/components/form/fixtures/comp8.d.ts +26 -0
  273. package/lib/mjs/components/form/fixtures/comp8.js +27 -0
  274. package/lib/mjs/components/form/fixtures/index.d.ts +3 -1
  275. package/lib/mjs/components/form/fixtures/index.js +3 -1
  276. package/lib/mjs/components/hidden/Hidden.form.d.ts +4 -5
  277. package/lib/mjs/components/hidden/Hidden.form.js +3 -2
  278. package/lib/mjs/components/hidden/Hidden.js +1 -1
  279. package/lib/mjs/components/html/HTML.form.d.ts +4 -5
  280. package/lib/mjs/components/html/HTML.form.js +3 -2
  281. package/lib/mjs/components/number/Number.d.ts +1 -1
  282. package/lib/mjs/components/number/Number.form.d.ts +4 -5
  283. package/lib/mjs/components/number/Number.form.js +3 -2
  284. package/lib/mjs/components/number/Number.js +1 -1
  285. package/lib/mjs/components/panel/Panel.form.d.ts +4 -5
  286. package/lib/mjs/components/panel/Panel.form.js +3 -2
  287. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +1 -1
  288. package/lib/mjs/components/password/Password.form.d.ts +4 -5
  289. package/lib/mjs/components/password/Password.form.js +3 -2
  290. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +4 -5
  291. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +3 -2
  292. package/lib/mjs/components/radio/Radio.form.d.ts +4 -3
  293. package/lib/mjs/components/radio/Radio.form.js +3 -2
  294. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +3 -4
  295. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +2 -1
  296. package/lib/mjs/components/select/Select.d.ts +2 -2
  297. package/lib/mjs/components/select/Select.form.d.ts +4 -3
  298. package/lib/mjs/components/select/Select.form.js +3 -2
  299. package/lib/mjs/components/select/Select.js +1 -1
  300. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -8
  301. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +4 -3
  302. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -2
  303. package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
  304. package/lib/mjs/components/signature/Signature.form.d.ts +4 -5
  305. package/lib/mjs/components/signature/Signature.form.js +3 -2
  306. package/lib/mjs/components/survey/Survey.form.d.ts +4 -5
  307. package/lib/mjs/components/survey/Survey.form.js +3 -2
  308. package/lib/mjs/components/table/Table.form.d.ts +4 -5
  309. package/lib/mjs/components/table/Table.form.js +3 -2
  310. package/lib/mjs/components/tabs/Tabs.d.ts +2 -2
  311. package/lib/mjs/components/tabs/Tabs.form.d.ts +4 -5
  312. package/lib/mjs/components/tabs/Tabs.form.js +3 -2
  313. package/lib/mjs/components/tabs/Tabs.js +1 -1
  314. package/lib/mjs/components/tags/Tags.form.d.ts +4 -5
  315. package/lib/mjs/components/tags/Tags.form.js +3 -2
  316. package/lib/mjs/components/textarea/TextArea.d.ts +3 -3
  317. package/lib/mjs/components/textarea/TextArea.form.d.ts +4 -5
  318. package/lib/mjs/components/textarea/TextArea.form.js +3 -2
  319. package/lib/mjs/components/textarea/TextArea.js +2 -2
  320. package/lib/mjs/components/textfield/TextField.d.ts +12 -19
  321. package/lib/mjs/components/textfield/TextField.form.d.ts +4 -5
  322. package/lib/mjs/components/textfield/TextField.form.js +3 -2
  323. package/lib/mjs/components/textfield/TextField.js +13 -12
  324. package/lib/mjs/components/time/Time.form.d.ts +4 -5
  325. package/lib/mjs/components/time/Time.form.js +3 -2
  326. package/lib/mjs/components/unknown/Unknown.form.d.ts +3 -35
  327. package/lib/mjs/components/unknown/Unknown.form.js +2 -1
  328. package/lib/mjs/components/url/Url.form.d.ts +4 -5
  329. package/lib/mjs/components/url/Url.form.js +3 -2
  330. package/lib/mjs/components/well/Well.form.d.ts +4 -5
  331. package/lib/mjs/components/well/Well.form.js +3 -2
  332. package/lib/mjs/formio.form.js +1 -1
  333. package/lib/mjs/utils/Evaluator.d.ts +0 -1
  334. package/lib/mjs/utils/Evaluator.js +1 -4
  335. package/lib/mjs/utils/formUtils.d.ts +1 -1
  336. package/lib/mjs/utils/utils.d.ts +106 -83
  337. package/lib/mjs/utils/utils.js +96 -140
  338. package/lib/mjs/widgets/CalendarWidget.d.ts +8 -7
  339. package/lib/mjs/widgets/CalendarWidget.js +8 -7
  340. package/package.json +5 -8
@@ -46,65 +46,12 @@ function setPathToComponentAndPerentSchema(component) {
46
46
  * @param {Function|string|object} func - The function to evaluate.
47
47
  * @param {*} args - A map of arguments to pass to the function.
48
48
  * @param {string} ret - The name of the "return" variable in the script.
49
- * @param {boolean} tokenize - True if the script should be interpolated before being executed.
49
+ * @param {boolean} interpolate - True if the script should be interpolated before being executed.
50
+ * @param {import('@formio/core').EvaluatorOptions} options - The evaluator options.
50
51
  * @returns {*} - The result of the evaluation.
51
52
  */
52
- export function evaluate(func, args, ret, tokenize) {
53
- let returnVal = null;
54
- const component = args.component ? args.component : { key: 'unknown' };
55
- if (!args.form && args.instance) {
56
- args.form = _.get(args.instance, 'root._form', {});
57
- }
58
- const componentKey = component.key;
59
- if (typeof func === 'string') {
60
- if (ret) {
61
- func += `;return ${ret}`;
62
- }
63
- if (tokenize) {
64
- // Replace all {{ }} references with actual data.
65
- func = func.replace(/({{\s+(.*)\s+}})/, (match, $1, $2) => {
66
- if ($2.indexOf('data.') === 0) {
67
- return _.get(args.data, $2.replace('data.', ''));
68
- }
69
- else if ($2.indexOf('row.') === 0) {
70
- return _.get(args.row, $2.replace('row.', ''));
71
- }
72
- // Support legacy...
73
- return _.get(args.data, $2);
74
- });
75
- }
76
- try {
77
- func = Evaluator.evaluator(func, args);
78
- args = _.values(args);
79
- }
80
- catch (err) {
81
- console.warn(`An error occured within the custom function for ${componentKey}`, err);
82
- returnVal = null;
83
- func = false;
84
- }
85
- }
86
- if (typeof func === 'function') {
87
- try {
88
- returnVal = Evaluator.evaluate(func, args);
89
- }
90
- catch (err) {
91
- returnVal = null;
92
- console.warn(`An error occured within custom function for ${componentKey}`, err);
93
- }
94
- }
95
- else if (typeof func === 'object') {
96
- try {
97
- returnVal = jsonLogic.apply(func, args);
98
- }
99
- catch (err) {
100
- returnVal = null;
101
- console.warn(`An error occured within custom function for ${componentKey}`, err);
102
- }
103
- }
104
- else if (func) {
105
- console.warn(`Unknown function type for ${componentKey}`);
106
- }
107
- return returnVal;
53
+ export function evaluate(func, args, ret, interpolate, options = {}) {
54
+ return Evaluator.evaluate(func, args, ret, interpolate, undefined, options);
108
55
  }
109
56
  /**
110
57
  * Returns a random compoennt ID.
@@ -1021,9 +968,9 @@ export function iterateKey(key) {
1021
968
  }
1022
969
  /**
1023
970
  * Determines a unique key within a map provided the base key.
1024
- * @param map
1025
- * @param base
1026
- * @returns {*}
971
+ * @param {Record<string, string>} map - The map to check for uniqueness.
972
+ * @param {string} base - The base path of the key.
973
+ * @returns {string} - The unique key.
1027
974
  */
1028
975
  export function uniqueKey(map, base) {
1029
976
  let newKey = base;
@@ -1034,8 +981,9 @@ export function uniqueKey(map, base) {
1034
981
  }
1035
982
  /**
1036
983
  * Determines the major version number of bootstrap.
1037
- * @param options
1038
- * @returns {number}
984
+ * @param {object} options - The options to check for bootstrap version.
985
+ * @param {string} options.bootstrap - The bootstrap version to use.
986
+ * @returns {number} - The bootstrap version.
1039
987
  */
1040
988
  export function bootstrapVersion(options) {
1041
989
  if (options.bootstrap) {
@@ -1052,9 +1000,8 @@ export function bootstrapVersion(options) {
1052
1000
  /**
1053
1001
  * Retrun provided argument.
1054
1002
  * If argument is a function, returns the result of a function call.
1055
- * @param {*} e;
1056
- * @param e
1057
- * @returns {*}
1003
+ * @param {Function|any} e - The argument to check if a function and call if so.
1004
+ * @returns {any} - Either the result of the function call (e) or e if it is not a function.
1058
1005
  */
1059
1006
  export function unfold(e) {
1060
1007
  if (typeof e === 'function') {
@@ -1064,36 +1011,31 @@ export function unfold(e) {
1064
1011
  }
1065
1012
  /**
1066
1013
  * Map values through unfold and return first non-nil value.
1067
- * @param {Array<T>} collection;
1068
- * @returns {T}
1014
+ * @param {Array<T>} collection - The collection to map through unfold.;
1015
+ * @returns {T} - The first non-nil value.
1069
1016
  */
1070
1017
  export const firstNonNil = _.flow([
1071
1018
  _.partialRight(_.map, unfold),
1072
1019
  _.partialRight(_.find, v => !_.isUndefined(v))
1073
1020
  ]);
1074
- /*
1075
- * Create enclosed state.
1076
- * Returns functions to getting and cycling between states.
1021
+ /**
1022
+ * Create enclosed state. Returns functions to getting and cycling between states.
1077
1023
  * @param {*} a - initial state.
1078
1024
  * @param {*} b - next state.
1079
- * @return {Functions[]} -- [get, toggle];
1080
- */
1081
- /**
1082
- *
1083
- * @param a
1084
- * @param b
1025
+ * @returns {Functions[]} -- [get, toggle];
1085
1026
  */
1086
1027
  export function withSwitch(a, b) {
1087
1028
  let state = a;
1088
1029
  let next = b;
1089
1030
  /**
1090
- *
1031
+ * Returns the state of the switch.
1032
+ * @returns {*} - The current state.
1091
1033
  */
1092
1034
  function get() {
1093
1035
  return state;
1094
1036
  }
1095
1037
  /**
1096
- *
1038
+ * Toggles the state of the switch.
1097
1039
  */
1098
1040
  function toggle() {
1099
1041
  const prev = state;
@@ -1103,9 +1045,12 @@ export function withSwitch(a, b) {
1103
1045
  return [get, toggle];
1104
1046
  }
1105
1047
  /**
1106
- *
1107
- * @param callback
1108
- * @param options
1048
+ * Create a function that will call the provided function only the provided limit.
1049
+ * @param {Function} callback - The callback to call.
1050
+ * @param {object} options - The options to use.
1051
+ * @param {number} options.limit - The limit to call the callback.
1052
+ * @param {number} options.delay - The delay to wait before resetting the call count.
1053
+ * @returns {Function} - The function that will call the callback only the provided limit.
1109
1054
  */
1110
1055
  export function observeOverload(callback, options = {}) {
1111
1056
  const { limit = 50, delay = 500 } = options;
@@ -1127,12 +1072,13 @@ export function observeOverload(callback, options = {}) {
1127
1072
  };
1128
1073
  }
1129
1074
  /**
1130
- *
1131
- * @param context
1132
- * @param excludeNested
1133
- * @param excludedTypes
1075
+ * Returns the components that are provided within an evaluation context.
1076
+ * @param {any} context - The evaluation context to get the components from.
1077
+ * @param {boolean} excludeNested - Exclude nested components.
1078
+ * @param {Array<string>} excludedTypes - The types of components to exclude.
1079
+ * @returns {Array} - The components within the evaluation context.
1134
1080
  */
1135
- export function getContextComponents(context, excludeNested = false, excludedTypes = []) {
1081
+ export function getContextComponents(context, excludeNested, excludedTypes = []) {
1136
1082
  const values = [];
1137
1083
  context.utils.eachComponent(context.instance.options.editForm.components, (component, path) => {
1138
1084
  const addToContextComponents = excludeNested ? !component.tree : true;
@@ -1146,8 +1092,9 @@ export function getContextComponents(context, excludeNested = false, excludedTyp
1146
1092
  return values;
1147
1093
  }
1148
1094
  /**
1149
- *
1150
- * @param context
1095
+ * Returns the button components that are within an evaluation context.
1096
+ * @param {any} context - The evaluation context to get the components from.
1097
+ * @returns {Array} - The button components within the evaluation context.
1151
1098
  */
1152
1099
  export function getContextButtons(context) {
1153
1100
  const values = [];
@@ -1165,10 +1112,9 @@ export function getContextButtons(context) {
1165
1112
  const inTextTags = ['#text', 'A', 'B', 'EM', 'I', 'SMALL', 'STRONG', 'SUB', 'SUP', 'INS', 'DEL', 'MARK', 'CODE'];
1166
1113
  /**
1167
1114
  * Helper function for 'translateHTMLTemplate'. Translates text value of the passed html element.
1168
- * @param {HTMLElement} elem
1169
- * @param {Function} translate
1170
- * @returns {string}
1171
- * Translated element template.
1115
+ * @param {HTMLElement} elem - The element to translate.
1116
+ * @param {Function} translate - The translation function.
1117
+ * @returns {string} - Translated element template.
1172
1118
  */
1173
1119
  function translateElemValue(elem, translate) {
1174
1120
  if (!elem.innerText) {
@@ -1199,8 +1145,8 @@ function translateElemValue(elem, translate) {
1199
1145
  }
1200
1146
  /**
1201
1147
  * Helper function for 'translateHTMLTemplate'. Goes deep through html tag children and calls function to translate their text values.
1202
- * @param {HTMLElement} tag
1203
- * @param {Function} translate
1148
+ * @param {HTMLElement} tag - The tag to translate.
1149
+ * @param {Function} translate - The translation function.
1204
1150
  * @returns {void}
1205
1151
  */
1206
1152
  function translateDeepTag(tag, translate) {
@@ -1216,10 +1162,9 @@ function translateDeepTag(tag, translate) {
1216
1162
  }
1217
1163
  /**
1218
1164
  * Translates text values in html template.
1219
- * @param {string} template
1220
- * @param {Function} translate
1221
- * @returns {string}
1222
- * Html template with translated values.
1165
+ * @param {string} template - The template to translate.
1166
+ * @param {Function} translate - The translation function.
1167
+ * @returns {string} - Html template with translated values.
1223
1168
  */
1224
1169
  export function translateHTMLTemplate(template, translate) {
1225
1170
  const isHTML = /<[^>]*>/.test(template);
@@ -1236,9 +1181,9 @@ export function translateHTMLTemplate(template, translate) {
1236
1181
  }
1237
1182
  /**
1238
1183
  * Sanitize an html string.
1239
- * @param string
1240
- * @param options
1241
- * @returns {*}
1184
+ * @param {string} string - The string to sanitize.
1185
+ * @param {any} options - The options to use for sanitization.
1186
+ * @returns {string} - The sanitized html string.
1242
1187
  */
1243
1188
  export function sanitize(string, options) {
1244
1189
  if (typeof dompurify.sanitize !== 'function') {
@@ -1286,15 +1231,17 @@ export function sanitize(string, options) {
1286
1231
  }
1287
1232
  /**
1288
1233
  * Fast cloneDeep for JSON objects only.
1289
- * @param obj
1234
+ * @param {any} obj - The object to perform a fast clone deep against.
1235
+ * @returns {any} - The cloned object.
1290
1236
  */
1291
1237
  export function fastCloneDeep(obj) {
1292
1238
  return obj ? JSON.parse(JSON.stringify(obj)) : obj;
1293
1239
  }
1294
1240
  export { Evaluator, interpolate };
1295
1241
  /**
1296
- *
1297
- * @param componentJson
1242
+ * Returns if the component is an input component.
1243
+ * @param {import('@formio/core').Component} componentJson - The JSON of a component.
1244
+ * @returns {bool} - TRUE if the component is an input component; FALSE otherwise.
1298
1245
  */
1299
1246
  export function isInputComponent(componentJson) {
1300
1247
  if (componentJson.input === false || componentJson.input === true) {
@@ -1316,8 +1263,9 @@ export function isInputComponent(componentJson) {
1316
1263
  }
1317
1264
  }
1318
1265
  /**
1319
- *
1320
- * @param pathStr
1266
+ * Takes a component path, and returns a component path array.
1267
+ * @param {string} pathStr - The path string to convert to an array.
1268
+ * @returns {Arryay<number>} - The array of paths.
1321
1269
  */
1322
1270
  export function getArrayFromComponentPath(pathStr) {
1323
1271
  if (!pathStr || !_.isString(pathStr)) {
@@ -1333,9 +1281,10 @@ export function getArrayFromComponentPath(pathStr) {
1333
1281
  .map(part => _.defaultTo(_.toNumber(part), part));
1334
1282
  }
1335
1283
  /**
1336
- *
1337
- * @param child
1338
- * @param parent
1284
+ * Returns true if the component is a child of the parent.
1285
+ * @param {any} child - The child component to check.
1286
+ * @param {any} parent - The parent component to check.
1287
+ * @returns {boolean} - TRUE if the child is a child of the parent; FALSE otherwise.
1339
1288
  */
1340
1289
  export function isChildOf(child, parent) {
1341
1290
  while (child && child.parent) {
@@ -1347,8 +1296,9 @@ export function isChildOf(child, parent) {
1347
1296
  return false;
1348
1297
  }
1349
1298
  /**
1350
- *
1351
- * @param path
1299
+ * Takes an array of component path indexes, and returns a string version of that array.
1300
+ * @param {Array<number>} path - The path array to convert to a string.
1301
+ * @returns {string} - The string version of the path.
1352
1302
  */
1353
1303
  export function getStringFromComponentPath(path) {
1354
1304
  if (!_.isArray(path)) {
@@ -1366,19 +1316,20 @@ export function getStringFromComponentPath(path) {
1366
1316
  return strPath;
1367
1317
  }
1368
1318
  /**
1369
- *
1370
- * @param number
1371
- * @param precision
1319
+ * Takes a number and rounds it to the provided precision amount.
1320
+ * @param {number} number - The number to round.
1321
+ * @param {number} precision - The precision to round the number to.
1322
+ * @returns {string} - The rounded number.
1372
1323
  */
1373
1324
  export function round(number, precision) {
1374
1325
  if (_.isNumber(number)) {
1375
1326
  return number.toFixed(precision);
1376
1327
  }
1377
- return number;
1328
+ return number.toString();
1378
1329
  }
1379
1330
  /**
1380
1331
  * Check for Internet Explorer browser version
1381
- * @returns {(number|null)}
1332
+ * @returns {(number|null)} - The IE browser version or null if not IE
1382
1333
  */
1383
1334
  export function getIEBrowserVersion() {
1384
1335
  const { ie, version } = getBrowserInfo();
@@ -1435,16 +1386,18 @@ export function getBrowserInfo() {
1435
1386
  return browser;
1436
1387
  }
1437
1388
  /**
1438
- *
1439
- * @param path
1389
+ * Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.
1390
+ * @param {string} path - The path to remove the indicies from.
1391
+ * @returns {string} - The path without the indicies.
1440
1392
  */
1441
1393
  export function getComponentPathWithoutIndicies(path = '') {
1442
1394
  return path.replace(/\[\d+\]/, '');
1443
1395
  }
1444
1396
  /**
1445
1397
  * Returns a path to the component which based on its schema
1446
- * @param {*} component is a component's schema containing link to its parent's schema in the 'parent' property
1447
- * @param path
1398
+ * @param {import('@formio/core').Component} component - Component containing link to its parent's schema in the 'parent' property
1399
+ * @param {string} path - Path to the component
1400
+ * @returns {string} - Path to the component
1448
1401
  */
1449
1402
  export function getComponentPath(component, path = '') {
1450
1403
  if (!component || !component.key || component?._form?.display === 'wizard') { // unlike the Webform, the Wizard has the key and it is a duplicate of the panel key
@@ -1455,8 +1408,8 @@ export function getComponentPath(component, path = '') {
1455
1408
  }
1456
1409
  /**
1457
1410
  * Returns a parent component of the passed component instance skipping all the Layout components
1458
- * @param {*} componentInstance
1459
- * @returns {(Component|undefined)}
1411
+ * @param {Component} componentInstance - The component to check for the parent.
1412
+ * @returns {Component|undefined} - The parent data component.
1460
1413
  */
1461
1414
  export function getDataParentComponent(componentInstance) {
1462
1415
  if (!componentInstance) {
@@ -1472,8 +1425,8 @@ export function getDataParentComponent(componentInstance) {
1472
1425
  }
1473
1426
  /**
1474
1427
  * Returns whether the value is a promise
1475
- * @param value
1476
- * @returns {boolean}
1428
+ * @param {any} value - The value to check
1429
+ * @returns {boolean} - TRUE if the value is a promise; FALSE otherwise
1477
1430
  */
1478
1431
  export function isPromise(value) {
1479
1432
  return value
@@ -1484,9 +1437,9 @@ export function isPromise(value) {
1484
1437
  /**
1485
1438
  * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
1486
1439
  * changes by itself, e.g. EditGrid)
1487
- * @param componentInstance
1488
- * @param firstPass
1489
- * @returns {boolean|boolean|*}
1440
+ * @param {Component} componentInstance - The component to check for the scoping parent.
1441
+ * @param {boolean} firstPass - Whether it is the first pass of the function
1442
+ * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise
1490
1443
  */
1491
1444
  export function isInsideScopingComponent(componentInstance, firstPass = true) {
1492
1445
  if (!firstPass && componentInstance?.hasScopedChildren) {
@@ -1502,8 +1455,9 @@ export function isInsideScopingComponent(componentInstance, firstPass = true) {
1502
1455
  return false;
1503
1456
  }
1504
1457
  /**
1505
- *
1506
- * @param element
1458
+ * Returns all the focusable elements within the provided dom element.
1459
+ * @param {HTMLElement} element - The element to get the focusable elements from.
1460
+ * @returns {NodeList<HTMLElement>} - The focusable elements within the provided element.
1507
1461
  */
1508
1462
  export function getFocusableElements(element) {
1509
1463
  const focusableSelector = `button:not([disabled]), input:not([disabled]), select:not([disabled]),
@@ -1522,8 +1476,9 @@ export const componentValueTypes = {
1522
1476
  any: 'any',
1523
1477
  };
1524
1478
  /**
1525
- *
1526
- * @param fullSchema
1479
+ * Returns the saved types for the component
1480
+ * @param {import('@formio/core').Component} fullSchema - The component schema
1481
+ * @returns {Array<string>|null} - The saved types for the component
1527
1482
  */
1528
1483
  export function getComponentSavedTypes(fullSchema) {
1529
1484
  const schema = fullSchema || {};
@@ -1537,11 +1492,10 @@ export function getComponentSavedTypes(fullSchema) {
1537
1492
  }
1538
1493
  /**
1539
1494
  * Interpolates @formio/core errors so that they are compatible with the renderer
1540
- * @param component
1541
- * @param {FieldError[]} errors
1542
- * @param firstPass
1543
- * @param interpolateFn
1544
- * @returns {[]}
1495
+ * @param {Component} component - The component to interpolate the errors for
1496
+ * @param {FieldError[]} errors - The errors to interpolate
1497
+ * @param {Function} interpolateFn - The interpolation function
1498
+ * @returns {[]} - The interpolated errors
1545
1499
  */
1546
1500
  export const interpolateErrors = (component, errors, interpolateFn) => {
1547
1501
  return errors.map((error) => {
@@ -1552,8 +1506,9 @@ export const interpolateErrors = (component, errors, interpolateFn) => {
1552
1506
  });
1553
1507
  };
1554
1508
  /**
1555
- *
1556
- * @param template
1509
+ * Returns the template keys inside the template code.
1510
+ * @param {string} template - The template to get the keys from.
1511
+ * @returns {Array<string>} - The keys inside the template.
1557
1512
  */
1558
1513
  export function getItemTemplateKeys(template) {
1559
1514
  const templateKeys = [];
@@ -1572,8 +1527,9 @@ export function getItemTemplateKeys(template) {
1572
1527
  return templateKeys;
1573
1528
  }
1574
1529
  /**
1575
- *
1576
- * @param comp
1530
+ * Returns if the component is a select resource with an object for its value.
1531
+ * @param {import('@formio/core').Component} comp - The component to check.
1532
+ * @returns {boolean} - TRUE if the component is a select resource with an object for its value; FALSE otherwise.
1577
1533
  */
1578
1534
  export function isSelectResourceWithObjectValue(comp = {}) {
1579
1535
  const { reference, dataSrc, valueProperty } = comp;
@@ -70,17 +70,18 @@ export default class CalendarWidget extends InputWidget {
70
70
  get dateTimeFormat(): string;
71
71
  get dateFormat(): any;
72
72
  /**
73
- * Return the date value.
74
- * @param date
75
- * @param format
76
- * @param useTimezone
77
- * @returns {string}
73
+ * Return the date value as a string.
74
+ * @param {string|Date} date - The date object or a date string that is momentjs compatible.
75
+ * @param {string} format - The DateParser code format.
76
+ * @param {boolean} [useTimezone] - If the timezone should be used.
77
+ * @returns {string} - Returns the formatted date string.
78
78
  */
79
- getDateValue(date: any, format: any, useTimezone: any): string;
79
+ getDateValue(date: string | Date, format: string, useTimezone?: boolean | undefined): string;
80
80
  isValueISO8601(value: any): any;
81
81
  /**
82
82
  * Set the selected date value.
83
- * @param value
83
+ * @param {*} value - The value to set.
84
+ * @returns {void}
84
85
  */
85
86
  setValue(value: any): void;
86
87
  getValueAsString(value: any, format: any): string;
@@ -246,11 +246,11 @@ export default class CalendarWidget extends InputWidget {
246
246
  return _.get(this.settings, 'format', DEFAULT_FORMAT);
247
247
  }
248
248
  /**
249
- * Return the date value.
250
- * @param date
251
- * @param format
252
- * @param useTimezone
253
- * @returns {string}
249
+ * Return the date value as a string.
250
+ * @param {string|Date} date - The date object or a date string that is momentjs compatible.
251
+ * @param {string} format - The DateParser code format.
252
+ * @param {boolean} [useTimezone] - If the timezone should be used.
253
+ * @returns {string} - Returns the formatted date string.
254
254
  */
255
255
  getDateValue(date, format, useTimezone) {
256
256
  if (useTimezone) {
@@ -260,7 +260,7 @@ export default class CalendarWidget extends InputWidget {
260
260
  }
261
261
  /**
262
262
  * Return the value of the selected date.
263
- * @returns {*}
263
+ * @returns {*} - The value of the selected date.
264
264
  */
265
265
  getValue() {
266
266
  // Standard output format.
@@ -282,7 +282,8 @@ export default class CalendarWidget extends InputWidget {
282
282
  }
283
283
  /**
284
284
  * Set the selected date value.
285
- * @param value
285
+ * @param {*} value - The value to set.
286
+ * @returns {void}
286
287
  */
287
288
  setValue(value) {
288
289
  const saveAsText = (this.settings.saveAs === 'text');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.54",
3
+ "version": "5.0.0-rc.56",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -38,8 +38,8 @@
38
38
  "lint"
39
39
  ],
40
40
  "scripts": {
41
- "build": "yarn lib && yarn dist",
42
- "doc": "",
41
+ "build": "yarn doc && yarn lib && yarn dist",
42
+ "doc": "typedoc",
43
43
  "dist": "gulp clean:dist && webpack --config webpack.config.js && webpack --config webpack.prod.js && gulp build",
44
44
  "lib": "gulp clean:lib && tsc --project tsconfig.cjs.json && tsc --project tsconfig.mjs.json && yarn lib:package",
45
45
  "lib:package": "node ./libpackage.js",
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "@formio/bootstrap": "^3.0.0-rc.24",
83
83
  "@formio/choices.js": "^10.2.1",
84
- "@formio/core": "^2.1.0-dev.tt.8",
84
+ "@formio/core": "^2.1.0-dev.tt.12",
85
85
  "@formio/text-mask-addons": "^3.8.0-formio.2",
86
86
  "@formio/vanilla-text-mask": "^5.1.1-formio.1",
87
87
  "abortcontroller-polyfill": "^1.7.5",
@@ -128,8 +128,6 @@
128
128
  "chance": "^1.1.9",
129
129
  "ejs-loader": "^0.5.0",
130
130
  "escape-string-regexp": "^5.0.0",
131
- "esdoc-ecmascript-proposal-plugin": "^1.0.0",
132
- "esdoc-standard-plugin": "^1.0.0",
133
131
  "eslint": "^8.57.0",
134
132
  "eslint-plugin-jsdoc": "^48.2.5",
135
133
  "fetch-mock": "^9.11.0",
@@ -176,7 +174,6 @@
176
174
  "webpack-bundle-analyzer": "^4.10.2",
177
175
  "webpack-cli": "^5.1.1",
178
176
  "webpack-node-externals": "^3.0.0",
179
- "webpack-stream": "^7.0.0",
180
- "written-number": "^0.11.1"
177
+ "webpack-stream": "^7.0.0"
181
178
  }
182
179
  }