@formio/js 5.2.4-rc.0 → 5.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/dist/formio.builder.css +50 -161
  2. package/dist/formio.builder.min.css +1 -1
  3. package/dist/formio.embed.js +1 -1
  4. package/dist/formio.embed.min.js +1 -1
  5. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  6. package/dist/formio.form.css +49 -158
  7. package/dist/formio.form.js +108 -152
  8. package/dist/formio.form.min.css +1 -1
  9. package/dist/formio.form.min.js +1 -1
  10. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  11. package/dist/formio.full.css +50 -161
  12. package/dist/formio.full.js +227 -401
  13. package/dist/formio.full.min.css +1 -1
  14. package/dist/formio.full.min.js +1 -1
  15. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  16. package/dist/formio.js +18 -51
  17. package/dist/formio.min.js +1 -1
  18. package/dist/formio.min.js.LICENSE.txt +1 -1
  19. package/dist/formio.utils.js +14 -47
  20. package/dist/formio.utils.min.js +1 -1
  21. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  22. package/lib/cjs/CDN.js +12 -12
  23. package/lib/cjs/Element.d.ts +2 -3
  24. package/lib/cjs/Element.js +26 -29
  25. package/lib/cjs/Embed.js +42 -75
  26. package/lib/cjs/EventEmitter.js +1 -1
  27. package/lib/cjs/Form.d.ts +341 -371
  28. package/lib/cjs/Form.js +39 -153
  29. package/lib/cjs/FormBuilder.d.ts +3 -3
  30. package/lib/cjs/FormBuilder.js +3 -2
  31. package/lib/cjs/Formio.js +23 -26
  32. package/lib/cjs/InlineEmbed.js +17 -23
  33. package/lib/cjs/PDF.d.ts +0 -1
  34. package/lib/cjs/PDF.js +15 -18
  35. package/lib/cjs/PDFBuilder.js +36 -51
  36. package/lib/cjs/Webform.d.ts +366 -8
  37. package/lib/cjs/Webform.js +238 -177
  38. package/lib/cjs/WebformBuilder.js +152 -221
  39. package/lib/cjs/Wizard.js +65 -95
  40. package/lib/cjs/WizardBuilder.js +19 -27
  41. package/lib/cjs/addons/FormioAddon.js +1 -1
  42. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +57 -59
  43. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +16 -24
  44. package/lib/cjs/addons/index.js +3 -3
  45. package/lib/cjs/components/Components.js +4 -0
  46. package/lib/cjs/components/_classes/component/Component.form.js +11 -11
  47. package/lib/cjs/components/_classes/component/Component.js +198 -309
  48. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +4 -2
  49. package/lib/cjs/components/_classes/component/editForm/Component.edit.api.js +5 -5
  50. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +11 -9
  51. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -37
  52. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +25 -39
  53. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +29 -47
  54. package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.js +9 -9
  55. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +7 -5
  56. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +34 -37
  57. package/lib/cjs/components/_classes/component/editForm/utils.js +16 -12
  58. package/lib/cjs/components/_classes/componentModal/ComponentModal.js +6 -6
  59. package/lib/cjs/components/_classes/field/Field.js +1 -7
  60. package/lib/cjs/components/_classes/input/Input.js +26 -30
  61. package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
  62. package/lib/cjs/components/_classes/list/ListComponent.js +18 -27
  63. package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.js +9 -36
  64. package/lib/cjs/components/_classes/multivalue/Multivalue.js +13 -32
  65. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +1 -1
  66. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +3 -3
  67. package/lib/cjs/components/_classes/nested/NestedComponent.js +75 -67
  68. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +14 -19
  69. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +17 -19
  70. package/lib/cjs/components/address/Address.d.ts +0 -1
  71. package/lib/cjs/components/address/Address.js +52 -57
  72. package/lib/cjs/components/address/editForm/Address.edit.data.js +2 -2
  73. package/lib/cjs/components/address/editForm/Address.edit.display.js +2 -2
  74. package/lib/cjs/components/address/editForm/Address.edit.provider.js +11 -53
  75. package/lib/cjs/components/alert/Alert.js +15 -21
  76. package/lib/cjs/components/button/Button.form.js +1 -1
  77. package/lib/cjs/components/button/Button.js +47 -64
  78. package/lib/cjs/components/button/editForm/Button.edit.display.js +9 -49
  79. package/lib/cjs/components/checkbox/Checkbox.d.ts +1 -1
  80. package/lib/cjs/components/checkbox/Checkbox.form.js +3 -3
  81. package/lib/cjs/components/checkbox/Checkbox.js +20 -28
  82. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.js +1 -1
  83. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.js +3 -13
  84. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.js +2 -2
  85. package/lib/cjs/components/columns/Columns.form.js +1 -1
  86. package/lib/cjs/components/columns/Columns.js +12 -24
  87. package/lib/cjs/components/columns/editForm/Columns.edit.display.js +17 -17
  88. package/lib/cjs/components/container/Container.form.js +2 -2
  89. package/lib/cjs/components/container/Container.js +4 -6
  90. package/lib/cjs/components/container/editForm/Container.edit.data.js +3 -3
  91. package/lib/cjs/components/container/editForm/Container.edit.display.js +4 -4
  92. package/lib/cjs/components/content/Content.form.js +2 -4
  93. package/lib/cjs/components/content/Content.js +8 -10
  94. package/lib/cjs/components/content/editForm/Content.edit.display.js +10 -10
  95. package/lib/cjs/components/currency/Currency.form.js +3 -3
  96. package/lib/cjs/components/currency/Currency.js +10 -19
  97. package/lib/cjs/components/currency/editForm/Currency.edit.data.js +5 -5
  98. package/lib/cjs/components/currency/editForm/Currency.edit.display.js +8 -8
  99. package/lib/cjs/components/datagrid/DataGrid.form.js +3 -3
  100. package/lib/cjs/components/datagrid/DataGrid.js +42 -92
  101. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.js +1 -1
  102. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.js +14 -14
  103. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.js +3 -3
  104. package/lib/cjs/components/datamap/DataMap.form.js +2 -2
  105. package/lib/cjs/components/datamap/DataMap.js +35 -46
  106. package/lib/cjs/components/datamap/editForm/DataMap.edit.data.js +1 -1
  107. package/lib/cjs/components/datamap/editForm/DataMap.edit.display.js +8 -8
  108. package/lib/cjs/components/datetime/DateTime.form.js +5 -5
  109. package/lib/cjs/components/datetime/DateTime.js +15 -30
  110. package/lib/cjs/components/datetime/editForm/DateTime.edit.data.js +3 -4
  111. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +10 -10
  112. package/lib/cjs/components/datetime/editForm/DateTime.edit.display.js +17 -22
  113. package/lib/cjs/components/datetime/editForm/DateTime.edit.time.js +5 -5
  114. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +3 -3
  115. package/lib/cjs/components/day/Day.form.js +5 -5
  116. package/lib/cjs/components/day/Day.js +58 -147
  117. package/lib/cjs/components/day/editForm/Day.edit.day.js +9 -13
  118. package/lib/cjs/components/day/editForm/Day.edit.display.js +7 -7
  119. package/lib/cjs/components/day/editForm/Day.edit.month.js +8 -12
  120. package/lib/cjs/components/day/editForm/Day.edit.validation.js +7 -7
  121. package/lib/cjs/components/day/editForm/Day.edit.year.js +8 -8
  122. package/lib/cjs/components/editgrid/EditGrid.form.js +2 -2
  123. package/lib/cjs/components/editgrid/EditGrid.js +96 -142
  124. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.js +2 -2
  125. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -7
  126. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +16 -16
  127. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.js +3 -3
  128. package/lib/cjs/components/email/Email.js +4 -4
  129. package/lib/cjs/components/email/editForm/Email.edit.display.js +3 -3
  130. package/lib/cjs/components/email/editForm/Email.edit.validation.js +6 -6
  131. package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
  132. package/lib/cjs/components/fieldset/Fieldset.js +2 -2
  133. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +8 -8
  134. package/lib/cjs/components/file/File.form.js +4 -4
  135. package/lib/cjs/components/file/File.js +90 -131
  136. package/lib/cjs/components/file/editForm/File.edit.display.js +5 -9
  137. package/lib/cjs/components/file/editForm/File.edit.file.js +53 -97
  138. package/lib/cjs/components/file/editForm/File.edit.validation.js +2 -2
  139. package/lib/cjs/components/form/Form.form.js +3 -3
  140. package/lib/cjs/components/form/Form.js +58 -68
  141. package/lib/cjs/components/form/editForm/Form.edit.data.js +3 -1
  142. package/lib/cjs/components/form/editForm/Form.edit.display.js +7 -6
  143. package/lib/cjs/components/form/editForm/Form.edit.form.js +9 -11
  144. package/lib/cjs/components/hidden/Hidden.form.js +4 -4
  145. package/lib/cjs/components/hidden/Hidden.js +2 -2
  146. package/lib/cjs/components/hidden/editForm/Hidden.edit.data.js +3 -3
  147. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +10 -10
  148. package/lib/cjs/components/html/HTML.js +17 -23
  149. package/lib/cjs/components/html/editForm/HTML.edit.display.js +17 -17
  150. package/lib/cjs/components/html/editForm/HTML.edit.logic.js +2 -2
  151. package/lib/cjs/components/number/Number.form.js +3 -3
  152. package/lib/cjs/components/number/Number.js +11 -27
  153. package/lib/cjs/components/number/editForm/Number.edit.data.js +3 -3
  154. package/lib/cjs/components/number/editForm/Number.edit.display.js +4 -4
  155. package/lib/cjs/components/number/editForm/Number.edit.validation.js +9 -9
  156. package/lib/cjs/components/panel/Panel.form.js +1 -1
  157. package/lib/cjs/components/panel/Panel.js +2 -2
  158. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.js +7 -5
  159. package/lib/cjs/components/panel/editForm/Panel.edit.display.js +29 -55
  160. package/lib/cjs/components/password/Password.form.js +3 -3
  161. package/lib/cjs/components/password/Password.js +2 -5
  162. package/lib/cjs/components/password/editForm/Password.edit.data.js +11 -11
  163. package/lib/cjs/components/password/editForm/Password.edit.display.js +3 -3
  164. package/lib/cjs/components/password/editForm/Password.edit.validation.js +3 -3
  165. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +8 -8
  166. package/lib/cjs/components/phonenumber/PhoneNumber.js +3 -3
  167. package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +6 -6
  168. package/lib/cjs/components/radio/Radio.form.js +3 -3
  169. package/lib/cjs/components/radio/Radio.js +32 -58
  170. package/lib/cjs/components/radio/editForm/Radio.edit.data.js +9 -23
  171. package/lib/cjs/components/radio/editForm/Radio.edit.display.js +6 -6
  172. package/lib/cjs/components/radio/editForm/Radio.edit.validation.js +2 -2
  173. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +5 -5
  174. package/lib/cjs/components/recaptcha/ReCaptcha.js +10 -10
  175. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +24 -24
  176. package/lib/cjs/components/select/Select.form.js +3 -3
  177. package/lib/cjs/components/select/Select.js +140 -235
  178. package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +1 -1
  179. package/lib/cjs/components/select/editForm/Select.edit.data.js +57 -191
  180. package/lib/cjs/components/select/editForm/Select.edit.display.js +2 -2
  181. package/lib/cjs/components/select/editForm/Select.edit.validation.js +4 -4
  182. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +3 -3
  183. package/lib/cjs/components/selectboxes/SelectBoxes.js +16 -29
  184. package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +5 -5
  185. package/lib/cjs/components/signature/Signature.form.js +3 -3
  186. package/lib/cjs/components/signature/Signature.js +17 -26
  187. package/lib/cjs/components/signature/editForm/Signature.edit.display.js +10 -19
  188. package/lib/cjs/components/survey/Survey.form.js +3 -3
  189. package/lib/cjs/components/survey/Survey.js +17 -30
  190. package/lib/cjs/components/survey/editForm/Survey.edit.data.js +11 -23
  191. package/lib/cjs/components/survey/editForm/Survey.edit.display.js +1 -1
  192. package/lib/cjs/components/survey/editForm/Survey.edit.validation.js +1 -1
  193. package/lib/cjs/components/table/Table.form.js +1 -1
  194. package/lib/cjs/components/table/Table.js +7 -8
  195. package/lib/cjs/components/table/editForm/Table.edit.display.js +22 -22
  196. package/lib/cjs/components/tabs/Tabs.form.js +1 -1
  197. package/lib/cjs/components/tabs/Tabs.js +10 -27
  198. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +17 -21
  199. package/lib/cjs/components/tags/Tags.form.js +1 -1
  200. package/lib/cjs/components/tags/Tags.js +12 -28
  201. package/lib/cjs/components/tags/editForm/Tags.edit.data.js +7 -7
  202. package/lib/cjs/components/textarea/TextArea.form.js +2 -2
  203. package/lib/cjs/components/textarea/TextArea.js +45 -63
  204. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +72 -96
  205. package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.js +3 -3
  206. package/lib/cjs/components/textfield/TextField.form.js +3 -3
  207. package/lib/cjs/components/textfield/TextField.js +21 -32
  208. package/lib/cjs/components/textfield/editForm/TextField.edit.data.js +13 -15
  209. package/lib/cjs/components/textfield/editForm/TextField.edit.display.js +21 -31
  210. package/lib/cjs/components/textfield/editForm/TextField.edit.validation.js +6 -6
  211. package/lib/cjs/components/time/Time.js +10 -17
  212. package/lib/cjs/components/time/editForm/Time.edit.display.js +2 -2
  213. package/lib/cjs/components/unknown/Unknown.form.js +5 -5
  214. package/lib/cjs/components/unknown/Unknown.js +2 -2
  215. package/lib/cjs/components/unknown/editForm/Unknown.edit.display.js +3 -3
  216. package/lib/cjs/components/url/Url.form.js +3 -3
  217. package/lib/cjs/components/url/Url.js +2 -2
  218. package/lib/cjs/components/url/editForm/Url.edit.display.js +3 -3
  219. package/lib/cjs/components/url/editForm/Url.edit.validation.js +1 -1
  220. package/lib/cjs/components/well/Well.form.js +1 -1
  221. package/lib/cjs/components/well/Well.js +2 -2
  222. package/lib/cjs/components/well/editForm/Well.edit.display.js +10 -10
  223. package/lib/cjs/formio.form.d.ts +1 -2
  224. package/lib/cjs/formio.form.js +12 -38
  225. package/lib/cjs/i18n.d.ts +0 -4
  226. package/lib/cjs/i18n.js +3 -7
  227. package/lib/cjs/package.json +1 -1
  228. package/lib/cjs/pdf.image.d.ts +2 -0
  229. package/lib/cjs/pdf.image.js +94 -0
  230. package/lib/cjs/providers/address/AddressProvider.js +5 -8
  231. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +3 -3
  232. package/lib/cjs/providers/address/GoogleAddressProvider.js +13 -24
  233. package/lib/cjs/providers/processor/fileProcessor.js +1 -3
  234. package/lib/cjs/providers/storage/azure.js +2 -5
  235. package/lib/cjs/providers/storage/dropbox.js +5 -4
  236. package/lib/cjs/providers/storage/googleDrive.js +4 -3
  237. package/lib/cjs/providers/storage/index.js +1 -1
  238. package/lib/cjs/providers/storage/indexeddb.js +6 -16
  239. package/lib/cjs/providers/storage/s3.js +6 -17
  240. package/lib/cjs/providers/storage/uploadAdapter.js +11 -17
  241. package/lib/cjs/providers/storage/url.js +11 -13
  242. package/lib/cjs/providers/storage/xhr.js +9 -17
  243. package/lib/cjs/templates/index.js +1 -1
  244. package/lib/cjs/translations/en.d.ts +2 -0
  245. package/lib/cjs/translations/en.js +9 -7
  246. package/lib/cjs/utils/ChoicesWrapper.js +2 -2
  247. package/lib/cjs/utils/builder.js +7 -31
  248. package/lib/cjs/utils/calendarUtils.js +5 -7
  249. package/lib/cjs/utils/conditionOperators/ConditionOperator.js +1 -1
  250. package/lib/cjs/utils/conditionOperators/DateGreaterThan.js +4 -12
  251. package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +1 -3
  252. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +6 -10
  253. package/lib/cjs/utils/conditionOperators/index.js +1 -1
  254. package/lib/cjs/utils/formUtils.js +1 -1
  255. package/lib/cjs/utils/i18n.js +1 -7
  256. package/lib/cjs/utils/index.d.ts +1 -2
  257. package/lib/cjs/utils/index.js +2 -2
  258. package/lib/cjs/utils/jsonlogic/operators.d.ts +1 -0
  259. package/lib/cjs/utils/jsonlogic/operators.js +265 -0
  260. package/lib/cjs/utils/utils.d.ts +1 -10
  261. package/lib/cjs/utils/utils.js +92 -175
  262. package/lib/cjs/widgets/CalendarWidget.js +49 -66
  263. package/lib/cjs/widgets/InputWidget.js +4 -6
  264. package/lib/cjs/widgets/index.js +1 -1
  265. package/lib/mjs/CDN.js +12 -12
  266. package/lib/mjs/Element.d.ts +2 -3
  267. package/lib/mjs/Element.js +23 -29
  268. package/lib/mjs/Embed.js +43 -77
  269. package/lib/mjs/EventEmitter.js +1 -1
  270. package/lib/mjs/Form.d.ts +341 -371
  271. package/lib/mjs/Form.js +126 -142
  272. package/lib/mjs/FormBuilder.d.ts +3 -3
  273. package/lib/mjs/FormBuilder.js +3 -2
  274. package/lib/mjs/Formio.js +23 -26
  275. package/lib/mjs/InlineEmbed.js +17 -23
  276. package/lib/mjs/PDF.d.ts +0 -1
  277. package/lib/mjs/PDF.js +15 -18
  278. package/lib/mjs/PDFBuilder.js +36 -51
  279. package/lib/mjs/Webform.d.ts +366 -8
  280. package/lib/mjs/Webform.js +251 -184
  281. package/lib/mjs/WebformBuilder.js +151 -224
  282. package/lib/mjs/Wizard.js +64 -94
  283. package/lib/mjs/WizardBuilder.js +19 -27
  284. package/lib/mjs/addons/FormioAddon.js +1 -1
  285. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +57 -59
  286. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +16 -24
  287. package/lib/mjs/addons/index.js +3 -3
  288. package/lib/mjs/components/Components.js +4 -0
  289. package/lib/mjs/components/_classes/component/Component.form.js +11 -11
  290. package/lib/mjs/components/_classes/component/Component.js +194 -313
  291. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +4 -2
  292. package/lib/mjs/components/_classes/component/editForm/Component.edit.api.js +5 -5
  293. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +11 -9
  294. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -37
  295. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +25 -39
  296. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +29 -47
  297. package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.js +9 -9
  298. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +7 -5
  299. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +34 -37
  300. package/lib/mjs/components/_classes/component/editForm/utils.js +16 -12
  301. package/lib/mjs/components/_classes/componentModal/ComponentModal.js +2 -2
  302. package/lib/mjs/components/_classes/field/Field.js +2 -8
  303. package/lib/mjs/components/_classes/input/Input.js +23 -27
  304. package/lib/mjs/components/_classes/list/ListComponent.form.js +1 -1
  305. package/lib/mjs/components/_classes/list/ListComponent.js +18 -27
  306. package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.js +9 -36
  307. package/lib/mjs/components/_classes/multivalue/Multivalue.js +13 -32
  308. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +1 -1
  309. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +3 -3
  310. package/lib/mjs/components/_classes/nested/NestedComponent.js +33 -41
  311. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +15 -20
  312. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +17 -19
  313. package/lib/mjs/components/address/Address.d.ts +0 -1
  314. package/lib/mjs/components/address/Address.js +49 -60
  315. package/lib/mjs/components/address/editForm/Address.edit.data.js +2 -2
  316. package/lib/mjs/components/address/editForm/Address.edit.display.js +2 -2
  317. package/lib/mjs/components/address/editForm/Address.edit.provider.js +11 -53
  318. package/lib/mjs/components/alert/Alert.js +16 -22
  319. package/lib/mjs/components/button/Button.form.js +1 -1
  320. package/lib/mjs/components/button/Button.js +42 -65
  321. package/lib/mjs/components/button/editForm/Button.edit.display.js +9 -49
  322. package/lib/mjs/components/checkbox/Checkbox.d.ts +1 -1
  323. package/lib/mjs/components/checkbox/Checkbox.form.js +3 -3
  324. package/lib/mjs/components/checkbox/Checkbox.js +21 -29
  325. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.js +1 -1
  326. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.js +3 -13
  327. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.js +2 -2
  328. package/lib/mjs/components/columns/Columns.form.js +1 -1
  329. package/lib/mjs/components/columns/Columns.js +12 -24
  330. package/lib/mjs/components/columns/editForm/Columns.edit.display.js +17 -17
  331. package/lib/mjs/components/container/Container.form.js +2 -2
  332. package/lib/mjs/components/container/Container.js +4 -6
  333. package/lib/mjs/components/container/editForm/Container.edit.data.js +3 -3
  334. package/lib/mjs/components/container/editForm/Container.edit.display.js +4 -4
  335. package/lib/mjs/components/content/Content.form.js +2 -4
  336. package/lib/mjs/components/content/Content.js +8 -10
  337. package/lib/mjs/components/content/editForm/Content.edit.display.js +10 -10
  338. package/lib/mjs/components/currency/Currency.form.js +3 -3
  339. package/lib/mjs/components/currency/Currency.js +10 -19
  340. package/lib/mjs/components/currency/editForm/Currency.edit.data.js +5 -5
  341. package/lib/mjs/components/currency/editForm/Currency.edit.display.js +8 -8
  342. package/lib/mjs/components/datagrid/DataGrid.form.js +3 -3
  343. package/lib/mjs/components/datagrid/DataGrid.js +41 -92
  344. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.js +1 -1
  345. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.js +14 -14
  346. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.js +3 -3
  347. package/lib/mjs/components/datamap/DataMap.form.js +2 -2
  348. package/lib/mjs/components/datamap/DataMap.js +33 -46
  349. package/lib/mjs/components/datamap/editForm/DataMap.edit.data.js +1 -1
  350. package/lib/mjs/components/datamap/editForm/DataMap.edit.display.js +8 -8
  351. package/lib/mjs/components/datetime/DateTime.form.js +5 -5
  352. package/lib/mjs/components/datetime/DateTime.js +16 -31
  353. package/lib/mjs/components/datetime/editForm/DateTime.edit.data.js +3 -4
  354. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +10 -10
  355. package/lib/mjs/components/datetime/editForm/DateTime.edit.display.js +17 -22
  356. package/lib/mjs/components/datetime/editForm/DateTime.edit.time.js +5 -5
  357. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +3 -3
  358. package/lib/mjs/components/day/Day.form.js +5 -5
  359. package/lib/mjs/components/day/Day.js +58 -148
  360. package/lib/mjs/components/day/editForm/Day.edit.day.js +9 -13
  361. package/lib/mjs/components/day/editForm/Day.edit.display.js +7 -7
  362. package/lib/mjs/components/day/editForm/Day.edit.month.js +8 -12
  363. package/lib/mjs/components/day/editForm/Day.edit.validation.js +7 -7
  364. package/lib/mjs/components/day/editForm/Day.edit.year.js +8 -8
  365. package/lib/mjs/components/editgrid/EditGrid.form.js +2 -2
  366. package/lib/mjs/components/editgrid/EditGrid.js +92 -140
  367. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.js +2 -2
  368. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +2 -7
  369. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +16 -16
  370. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.js +3 -3
  371. package/lib/mjs/components/email/Email.js +4 -4
  372. package/lib/mjs/components/email/editForm/Email.edit.display.js +3 -3
  373. package/lib/mjs/components/email/editForm/Email.edit.validation.js +6 -6
  374. package/lib/mjs/components/fieldset/Fieldset.form.js +1 -1
  375. package/lib/mjs/components/fieldset/Fieldset.js +2 -2
  376. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +8 -8
  377. package/lib/mjs/components/file/File.form.js +4 -4
  378. package/lib/mjs/components/file/File.js +89 -136
  379. package/lib/mjs/components/file/editForm/File.edit.display.js +5 -9
  380. package/lib/mjs/components/file/editForm/File.edit.file.js +53 -97
  381. package/lib/mjs/components/file/editForm/File.edit.validation.js +2 -2
  382. package/lib/mjs/components/form/Form.form.js +3 -3
  383. package/lib/mjs/components/form/Form.js +55 -68
  384. package/lib/mjs/components/form/editForm/Form.edit.data.js +3 -1
  385. package/lib/mjs/components/form/editForm/Form.edit.display.js +7 -6
  386. package/lib/mjs/components/form/editForm/Form.edit.form.js +8 -10
  387. package/lib/mjs/components/hidden/Hidden.form.js +4 -4
  388. package/lib/mjs/components/hidden/Hidden.js +2 -2
  389. package/lib/mjs/components/hidden/editForm/Hidden.edit.data.js +3 -3
  390. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +10 -10
  391. package/lib/mjs/components/html/HTML.js +17 -23
  392. package/lib/mjs/components/html/editForm/HTML.edit.display.js +17 -17
  393. package/lib/mjs/components/html/editForm/HTML.edit.logic.js +2 -2
  394. package/lib/mjs/components/number/Number.form.js +3 -3
  395. package/lib/mjs/components/number/Number.js +12 -28
  396. package/lib/mjs/components/number/editForm/Number.edit.data.js +3 -3
  397. package/lib/mjs/components/number/editForm/Number.edit.display.js +4 -4
  398. package/lib/mjs/components/number/editForm/Number.edit.validation.js +9 -9
  399. package/lib/mjs/components/panel/Panel.form.js +1 -1
  400. package/lib/mjs/components/panel/Panel.js +2 -2
  401. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.js +8 -6
  402. package/lib/mjs/components/panel/editForm/Panel.edit.display.js +29 -55
  403. package/lib/mjs/components/password/Password.form.js +3 -3
  404. package/lib/mjs/components/password/Password.js +2 -5
  405. package/lib/mjs/components/password/editForm/Password.edit.data.js +11 -11
  406. package/lib/mjs/components/password/editForm/Password.edit.display.js +3 -3
  407. package/lib/mjs/components/password/editForm/Password.edit.validation.js +3 -3
  408. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +8 -8
  409. package/lib/mjs/components/phonenumber/PhoneNumber.js +3 -3
  410. package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +6 -6
  411. package/lib/mjs/components/radio/Radio.form.js +3 -3
  412. package/lib/mjs/components/radio/Radio.js +30 -59
  413. package/lib/mjs/components/radio/editForm/Radio.edit.data.js +9 -23
  414. package/lib/mjs/components/radio/editForm/Radio.edit.display.js +6 -6
  415. package/lib/mjs/components/radio/editForm/Radio.edit.validation.js +2 -2
  416. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +5 -5
  417. package/lib/mjs/components/recaptcha/ReCaptcha.js +8 -10
  418. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +24 -24
  419. package/lib/mjs/components/select/Select.form.js +3 -3
  420. package/lib/mjs/components/select/Select.js +145 -240
  421. package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +1 -1
  422. package/lib/mjs/components/select/editForm/Select.edit.data.js +57 -191
  423. package/lib/mjs/components/select/editForm/Select.edit.display.js +2 -2
  424. package/lib/mjs/components/select/editForm/Select.edit.validation.js +4 -4
  425. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +3 -3
  426. package/lib/mjs/components/selectboxes/SelectBoxes.js +16 -30
  427. package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +5 -5
  428. package/lib/mjs/components/signature/Signature.form.js +3 -3
  429. package/lib/mjs/components/signature/Signature.js +16 -26
  430. package/lib/mjs/components/signature/editForm/Signature.edit.display.js +10 -19
  431. package/lib/mjs/components/survey/Survey.form.js +3 -3
  432. package/lib/mjs/components/survey/Survey.js +17 -30
  433. package/lib/mjs/components/survey/editForm/Survey.edit.data.js +11 -23
  434. package/lib/mjs/components/survey/editForm/Survey.edit.display.js +1 -1
  435. package/lib/mjs/components/survey/editForm/Survey.edit.validation.js +1 -1
  436. package/lib/mjs/components/table/Table.form.js +1 -1
  437. package/lib/mjs/components/table/Table.js +6 -8
  438. package/lib/mjs/components/table/editForm/Table.edit.display.js +22 -22
  439. package/lib/mjs/components/tabs/Tabs.form.js +1 -1
  440. package/lib/mjs/components/tabs/Tabs.js +9 -27
  441. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +17 -21
  442. package/lib/mjs/components/tags/Tags.form.js +1 -1
  443. package/lib/mjs/components/tags/Tags.js +12 -28
  444. package/lib/mjs/components/tags/editForm/Tags.edit.data.js +7 -7
  445. package/lib/mjs/components/textarea/TextArea.form.js +2 -2
  446. package/lib/mjs/components/textarea/TextArea.js +51 -75
  447. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +72 -96
  448. package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.js +3 -3
  449. package/lib/mjs/components/textfield/TextField.form.js +3 -3
  450. package/lib/mjs/components/textfield/TextField.js +23 -34
  451. package/lib/mjs/components/textfield/editForm/TextField.edit.data.js +13 -15
  452. package/lib/mjs/components/textfield/editForm/TextField.edit.display.js +21 -31
  453. package/lib/mjs/components/textfield/editForm/TextField.edit.validation.js +6 -6
  454. package/lib/mjs/components/time/Time.js +10 -17
  455. package/lib/mjs/components/time/editForm/Time.edit.display.js +2 -2
  456. package/lib/mjs/components/unknown/Unknown.form.js +5 -5
  457. package/lib/mjs/components/unknown/Unknown.js +2 -2
  458. package/lib/mjs/components/unknown/editForm/Unknown.edit.display.js +3 -3
  459. package/lib/mjs/components/url/Url.form.js +3 -3
  460. package/lib/mjs/components/url/Url.js +2 -2
  461. package/lib/mjs/components/url/editForm/Url.edit.display.js +3 -3
  462. package/lib/mjs/components/url/editForm/Url.edit.validation.js +1 -1
  463. package/lib/mjs/components/well/Well.form.js +1 -1
  464. package/lib/mjs/components/well/Well.js +2 -2
  465. package/lib/mjs/components/well/editForm/Well.edit.display.js +10 -10
  466. package/lib/mjs/formio.form.d.ts +1 -2
  467. package/lib/mjs/formio.form.js +8 -10
  468. package/lib/mjs/i18n.d.ts +0 -4
  469. package/lib/mjs/i18n.js +3 -7
  470. package/lib/mjs/package.json +1 -1
  471. package/lib/mjs/pdf.image.d.ts +2 -0
  472. package/lib/mjs/pdf.image.js +94 -0
  473. package/lib/mjs/providers/address/AddressProvider.js +5 -8
  474. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +3 -3
  475. package/lib/mjs/providers/address/GoogleAddressProvider.js +13 -24
  476. package/lib/mjs/providers/processor/fileProcessor.js +1 -3
  477. package/lib/mjs/providers/storage/azure.js +2 -5
  478. package/lib/mjs/providers/storage/dropbox.js +5 -4
  479. package/lib/mjs/providers/storage/googleDrive.js +4 -3
  480. package/lib/mjs/providers/storage/index.js +1 -1
  481. package/lib/mjs/providers/storage/indexeddb.js +6 -16
  482. package/lib/mjs/providers/storage/s3.js +8 -19
  483. package/lib/mjs/providers/storage/uploadAdapter.js +11 -17
  484. package/lib/mjs/providers/storage/url.js +11 -13
  485. package/lib/mjs/providers/storage/xhr.js +9 -17
  486. package/lib/mjs/templates/index.js +1 -1
  487. package/lib/mjs/translations/en.d.ts +2 -0
  488. package/lib/mjs/translations/en.js +9 -7
  489. package/lib/mjs/utils/ChoicesWrapper.js +2 -2
  490. package/lib/mjs/utils/builder.js +7 -31
  491. package/lib/mjs/utils/calendarUtils.js +5 -7
  492. package/lib/mjs/utils/conditionOperators/ConditionOperator.js +1 -1
  493. package/lib/mjs/utils/conditionOperators/DateGreaterThan.js +5 -16
  494. package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +1 -3
  495. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +6 -10
  496. package/lib/mjs/utils/conditionOperators/index.js +1 -1
  497. package/lib/mjs/utils/formUtils.js +2 -2
  498. package/lib/mjs/utils/i18n.js +1 -7
  499. package/lib/mjs/utils/index.d.ts +1 -2
  500. package/lib/mjs/utils/index.js +3 -3
  501. package/lib/mjs/utils/jsonlogic/operators.d.ts +1 -0
  502. package/lib/mjs/utils/jsonlogic/operators.js +262 -0
  503. package/lib/mjs/utils/utils.d.ts +1 -10
  504. package/lib/mjs/utils/utils.js +91 -178
  505. package/lib/mjs/widgets/CalendarWidget.js +50 -67
  506. package/lib/mjs/widgets/InputWidget.js +4 -6
  507. package/lib/mjs/widgets/index.js +1 -1
  508. package/package.json +3 -3
  509. package/lib/cjs/translations/de.d.ts +0 -80
  510. package/lib/cjs/translations/de.js +0 -81
  511. package/lib/mjs/translations/de.d.ts +0 -80
  512. package/lib/mjs/translations/de.js +0 -79
@@ -25,8 +25,8 @@ class TextFieldComponent extends Input_1.default {
25
25
  validate: {
26
26
  minLength: '',
27
27
  maxLength: '',
28
- pattern: '',
29
- },
28
+ pattern: ''
29
+ }
30
30
  }, ...extend);
31
31
  }
32
32
  static get builderInfo() {
@@ -36,27 +36,19 @@ class TextFieldComponent extends Input_1.default {
36
36
  group: 'basic',
37
37
  documentation: '/userguide/form-building/form-components#text-field',
38
38
  weight: 0,
39
- schema: TextFieldComponent.schema(),
39
+ schema: TextFieldComponent.schema()
40
40
  };
41
41
  }
42
42
  static get serverConditionSettings() {
43
43
  return TextFieldComponent.conditionOperatorsSettings;
44
44
  }
45
45
  static get conditionOperatorsSettings() {
46
- return Object.assign(Object.assign({}, super.conditionOperatorsSettings), { operators: [
47
- ...super.conditionOperatorsSettings.operators,
48
- 'includes',
49
- 'notIncludes',
50
- 'endsWith',
51
- 'startsWith',
52
- ], valueComponent(classComp) {
46
+ return Object.assign(Object.assign({}, super.conditionOperatorsSettings), { operators: [...super.conditionOperatorsSettings.operators, 'includes', 'notIncludes', 'endsWith', 'startsWith'], valueComponent(classComp) {
53
47
  return Object.assign(Object.assign({}, classComp), { type: 'textfield' });
54
48
  } });
55
49
  }
56
50
  static savedValueTypes(schema) {
57
- return (utils_1.default.getComponentSavedTypes(schema) || [
58
- utils_1.default.componentValueTypes.string,
59
- ]);
51
+ return utils_1.default.getComponentSavedTypes(schema) || [utils_1.default.componentValueTypes.string];
60
52
  }
61
53
  get defaultSchema() {
62
54
  return TextFieldComponent.schema();
@@ -71,9 +63,9 @@ class TextFieldComponent extends Input_1.default {
71
63
  info.attr.type = 'password';
72
64
  }
73
65
  else {
74
- info.attr.type = this.component.inputType === 'password' ? 'password' : 'text';
66
+ info.attr.type = (this.component.inputType === 'password') ? 'password' : 'text';
75
67
  }
76
- info.changeEvent = this.component.applyMaskOn === 'blur' ? 'blur' : 'input';
68
+ info.changeEvent = (this.component.applyMaskOn === 'blur') ? 'blur' : 'input';
77
69
  return info;
78
70
  }
79
71
  get emptyValue() {
@@ -82,13 +74,13 @@ class TextFieldComponent extends Input_1.default {
82
74
  constructor(component, options, data) {
83
75
  var _a, _b, _c;
84
76
  super(component, options, data);
85
- const timezone = ((_a = this.component.widget) === null || _a === void 0 ? void 0 : _a.timezone) || this.options.timezone;
86
- const displayInTimezone = ((_b = this.component.widget) === null || _b === void 0 ? void 0 : _b.displayInTimezone) || 'viewer';
77
+ const timezone = (((_a = this.component.widget) === null || _a === void 0 ? void 0 : _a.timezone) || this.options.timezone);
78
+ const displayInTimezone = (((_b = this.component.widget) === null || _b === void 0 ? void 0 : _b.displayInTimezone) || 'viewer');
87
79
  if (((_c = this.component.widget) === null || _c === void 0 ? void 0 : _c.type) === 'calendar') {
88
80
  this.component.widget = Object.assign(Object.assign({}, this.component.widget), { readOnly: this.options.readOnly, timezone,
89
81
  displayInTimezone, locale: this.component.widget.locale || this.options.language, saveAs: 'text' });
90
- // update originalComponent to include widget settings after component initialization
91
- // originalComponent is used to restore the component (and widget) after evaluating field logic
82
+ // update originalComponent to include widget settings after component initialization
83
+ // originalComponent is used to restore the component (and widget) after evaluating field logic
92
84
  this.originalComponent = utils_1.default.fastCloneDeep(this.component);
93
85
  }
94
86
  }
@@ -106,10 +98,10 @@ class TextFieldComponent extends Input_1.default {
106
98
  */
107
99
  maskValue(value, flags = {}) {
108
100
  // Convert it into the correct format.
109
- if (!value || typeof value !== 'object') {
101
+ if (!value || (typeof value !== 'object')) {
110
102
  value = {
111
103
  value,
112
- maskName: this.component.inputMasks[0].label,
104
+ maskName: this.component.inputMasks[0].label
113
105
  };
114
106
  }
115
107
  // If no value is provided, then set the defaultValue.
@@ -160,9 +152,7 @@ class TextFieldComponent extends Input_1.default {
160
152
  }
161
153
  else {
162
154
  const placeholderChar = this.placeholderChar;
163
- textInput.value = (0, vanilla_text_mask_1.conformToMask)(textValue, utils_1.default.getInputMask(mask), {
164
- placeholderChar,
165
- }).conformedValue;
155
+ textInput.value = (0, vanilla_text_mask_1.conformToMask)(textValue, utils_1.default.getInputMask(mask), { placeholderChar }).conformedValue;
166
156
  }
167
157
  }
168
158
  else {
@@ -186,7 +176,7 @@ class TextFieldComponent extends Input_1.default {
186
176
  const displayMask = this.component.displayMask;
187
177
  // If the input has only the valueMask or the displayMask is the same as the valueMask,
188
178
  // just return the value which is already formatted
189
- if ((valueMask && !displayMask) || displayMask === valueMask) {
179
+ if (valueMask && !displayMask || displayMask === valueMask) {
190
180
  return value;
191
181
  }
192
182
  // If there is only the displayMask, return the raw (unmasked) value
@@ -206,7 +196,7 @@ class TextFieldComponent extends Input_1.default {
206
196
  const maskInput = this.refs.select ? this.refs.select[index] : null;
207
197
  return {
208
198
  value: textInput ? textInput.value : undefined,
209
- maskName: maskInput ? maskInput.value : undefined,
199
+ maskName: maskInput ? maskInput.value : undefined
210
200
  };
211
201
  }
212
202
  checkInputMaskValue(inputMask) {
@@ -260,17 +250,16 @@ class TextFieldComponent extends Input_1.default {
260
250
  }
261
251
  }
262
252
  isHtmlRenderMode() {
263
- return (super.isHtmlRenderMode() ||
253
+ return super.isHtmlRenderMode() ||
264
254
  ((this.options.readOnly || this.disabled) &&
265
255
  this.component.inputFormat === 'html' &&
266
- this.type === 'textfield'));
256
+ this.type === 'textfield');
267
257
  }
268
258
  isEmpty(value = this.dataValue) {
269
259
  if (!this.isMultipleMasksField) {
270
260
  return super.isEmpty((value || '').toString().trim());
271
261
  }
272
- return (super.isEmpty(value) ||
273
- (this.component.multiple ? value.length === 0 : !value.maskName || !value.value));
262
+ return super.isEmpty(value) || (this.component.multiple ? value.length === 0 : (!value.maskName || !value.value));
274
263
  }
275
264
  truncateMultipleSpaces(value) {
276
265
  if (value) {
@@ -296,7 +285,7 @@ class TextFieldComponent extends Input_1.default {
296
285
  }
297
286
  getValueAsString(value, options) {
298
287
  if ((options === null || options === void 0 ? void 0 : options.email) && this.visible && !this.skipInEmail && lodash_1.default.isObject(value)) {
299
- const result = `
288
+ const result = (`
300
289
  <table border="1" style="width:100%">
301
290
  <tbody>
302
291
  <tr>
@@ -305,7 +294,7 @@ class TextFieldComponent extends Input_1.default {
305
294
  </tr>
306
295
  </tbody>
307
296
  </table>
308
- `;
297
+ `);
309
298
  return result;
310
299
  }
311
300
  if (value && this.component.inputFormat === 'plain' && /<[^<>]+>/g.test(value)) {
@@ -13,20 +13,19 @@ exports.default = [
13
13
  values: [
14
14
  {
15
15
  value: 'plain',
16
- label: 'Plain',
16
+ label: 'Plain'
17
17
  },
18
18
  {
19
19
  value: 'html',
20
- label: 'HTML',
21
- },
22
- {
20
+ label: 'HTML'
21
+ }, {
23
22
  value: 'raw',
24
- label: 'Raw (Insecure)',
25
- },
26
- ],
23
+ label: 'Raw (Insecure)'
24
+ }
25
+ ]
27
26
  },
28
27
  defaultValue: 'plain',
29
- input: true,
28
+ input: true
30
29
  },
31
30
  {
32
31
  weight: 200,
@@ -38,17 +37,16 @@ exports.default = [
38
37
  values: [
39
38
  {
40
39
  value: 'mixed',
41
- label: 'Mixed (Allow upper and lower case)',
40
+ label: 'Mixed (Allow upper and lower case)'
42
41
  },
43
42
  {
44
43
  value: 'uppercase',
45
- label: 'Uppercase',
46
- },
47
- {
44
+ label: 'Uppercase'
45
+ }, {
48
46
  value: 'lowercase',
49
- label: 'Lowercase',
50
- },
51
- ],
47
+ label: 'Lowercase'
48
+ }
49
+ ]
52
50
  },
53
51
  {
54
52
  weight: 205,
@@ -23,16 +23,11 @@ exports.default = [
23
23
  values: [
24
24
  { label: 'Input Field', value: 'input' },
25
25
  { label: 'Calendar Picker', value: 'calendar' },
26
- ],
26
+ ]
27
27
  },
28
28
  conditional: {
29
- json: {
30
- '===': [
31
- { var: 'data.type' },
32
- 'textfield',
33
- ],
34
- },
35
- },
29
+ json: { '===': [{ var: 'data.type' }, 'textfield'] }
30
+ }
36
31
  },
37
32
  {
38
33
  weight: 405,
@@ -65,13 +60,8 @@ exports.default = [
65
60
  editor: 'ace',
66
61
  as: 'json',
67
62
  conditional: {
68
- json: {
69
- '!==': [
70
- { var: 'data.widget.type' },
71
- 'input',
72
- ],
73
- },
74
- },
63
+ json: { '!==': [{ var: 'data.widget.type' }, 'input'] }
64
+ }
75
65
  },
76
66
  {
77
67
  weight: 410,
@@ -79,7 +69,7 @@ exports.default = [
79
69
  input: true,
80
70
  key: 'inputMask',
81
71
  label: 'Input Mask',
82
- tooltip: "An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",
72
+ tooltip: 'An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target=\'_blank\' href=\'https://github.com/RobinHerbots/jquery.inputmask\'>jquery.inputmask documentation</a> for more information.</a>',
83
73
  customConditional(context) {
84
74
  return !context.data.allowMultipleMasks;
85
75
  },
@@ -90,7 +80,7 @@ exports.default = [
90
80
  input: true,
91
81
  key: 'displayMask',
92
82
  label: 'Display Mask',
93
- tooltip: "A display mask helps to display the input in a readable way, this won't affect the value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",
83
+ tooltip: 'A display mask helps to display the input in a readable way, this won\'t affect the value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target=\'_blank\' href=\'https://github.com/RobinHerbots/jquery.inputmask\'>jquery.inputmask documentation</a> for more information.</a>',
94
84
  customConditional(context) {
95
85
  return !context.data.allowMultipleMasks;
96
86
  },
@@ -122,18 +112,18 @@ exports.default = [
122
112
  label: 'Input Mask Placeholder Char',
123
113
  tooltip: 'You can specify a char which will be used as a placeholder in the field. <br>E.g., \u02cd<br>Make note that placeholder char will be replaced by a space if it is used inside the mask',
124
114
  validation: {
125
- maxLength: 1,
115
+ maxLength: 1
126
116
  },
127
117
  customConditional(context) {
128
118
  return context.data.inputMask || context.data.displayMask;
129
- },
119
+ }
130
120
  },
131
121
  {
132
122
  weight: 413,
133
123
  type: 'checkbox',
134
124
  input: true,
135
125
  key: 'allowMultipleMasks',
136
- label: 'Allow Multiple Masks',
126
+ label: 'Allow Multiple Masks'
137
127
  },
138
128
  {
139
129
  weight: 1350,
@@ -141,7 +131,7 @@ exports.default = [
141
131
  input: true,
142
132
  key: 'spellcheck',
143
133
  defaultValue: true,
144
- label: 'Allow Spellcheck',
134
+ label: 'Allow Spellcheck'
145
135
  },
146
136
  {
147
137
  weight: 417,
@@ -158,29 +148,29 @@ exports.default = [
158
148
  type: 'textfield',
159
149
  key: 'label',
160
150
  label: 'Label',
161
- input: true,
151
+ input: true
162
152
  },
163
153
  {
164
154
  type: 'textfield',
165
155
  key: 'mask',
166
156
  label: 'Mask',
167
- input: true,
168
- },
169
- ],
157
+ input: true
158
+ }
159
+ ]
170
160
  },
171
161
  {
172
162
  weight: 320,
173
163
  type: 'textfield',
174
164
  input: true,
175
165
  key: 'prefix',
176
- label: 'Prefix',
166
+ label: 'Prefix'
177
167
  },
178
168
  {
179
169
  weight: 330,
180
170
  type: 'textfield',
181
171
  input: true,
182
172
  key: 'suffix',
183
- label: 'Suffix',
173
+ label: 'Suffix'
184
174
  },
185
175
  {
186
176
  weight: 700,
@@ -189,7 +179,7 @@ exports.default = [
189
179
  key: 'autocomplete',
190
180
  label: 'Autocomplete',
191
181
  placeholder: 'on',
192
- tooltip: "Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information.",
182
+ tooltip: 'Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href=\'https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete\'>MDN documentation</a> on autocomplete for more information.'
193
183
  },
194
184
  {
195
185
  weight: 1300,
@@ -197,7 +187,7 @@ exports.default = [
197
187
  label: 'Hide Input',
198
188
  tooltip: 'Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.',
199
189
  key: 'mask',
200
- input: true,
190
+ input: true
201
191
  },
202
192
  {
203
193
  weight: 1200,
@@ -205,7 +195,7 @@ exports.default = [
205
195
  label: 'Show Word Counter',
206
196
  tooltip: 'Show a live count of the number of words.',
207
197
  key: 'showWordCount',
208
- input: true,
198
+ input: true
209
199
  },
210
200
  {
211
201
  weight: 1201,
@@ -213,6 +203,6 @@ exports.default = [
213
203
  label: 'Show Character Counter',
214
204
  tooltip: 'Show a live count of the number of characters.',
215
205
  key: 'showCharCount',
216
- input: true,
206
+ input: true
217
207
  },
218
208
  ];
@@ -8,7 +8,7 @@ exports.default = [
8
8
  placeholder: 'Minimum Length',
9
9
  type: 'number',
10
10
  tooltip: 'The minimum length requirement this field must meet.',
11
- input: true,
11
+ input: true
12
12
  },
13
13
  {
14
14
  weight: 120,
@@ -17,7 +17,7 @@ exports.default = [
17
17
  placeholder: 'Maximum Length',
18
18
  type: 'number',
19
19
  tooltip: 'The maximum length requirement this field must meet.',
20
- input: true,
20
+ input: true
21
21
  },
22
22
  {
23
23
  weight: 125,
@@ -26,7 +26,7 @@ exports.default = [
26
26
  placeholder: 'Minimum Word Length',
27
27
  type: 'number',
28
28
  tooltip: 'The minimum amount of words that can be added to this field.',
29
- input: true,
29
+ input: true
30
30
  },
31
31
  {
32
32
  weight: 126,
@@ -35,7 +35,7 @@ exports.default = [
35
35
  placeholder: 'Maximum Word Length',
36
36
  type: 'number',
37
37
  tooltip: 'The maximum amount of words that can be added to this field.',
38
- input: true,
38
+ input: true
39
39
  },
40
40
  {
41
41
  weight: 130,
@@ -44,6 +44,6 @@ exports.default = [
44
44
  placeholder: 'Regular Expression Pattern',
45
45
  type: 'textfield',
46
46
  tooltip: 'The regular expression pattern test that the field value must pass before the form can be submitted.',
47
- input: true,
48
- },
47
+ input: true
48
+ }
49
49
  ];
@@ -22,12 +22,11 @@ class TimeComponent extends TextField_1.default {
22
22
  super(component, options, data);
23
23
  const { edge: isEdgeBrowser, version: edgeVersion } = (0, utils_1.getBrowserInfo)();
24
24
  this.component.inputMask = this.getInputMaskFromFormat(this.component.format);
25
- this.component.inputType =
26
- isEdgeBrowser && edgeVersion <= 18 ? 'text' : this.component.inputType || 'time';
25
+ this.component.inputType = isEdgeBrowser && edgeVersion <= 18
26
+ ? 'text'
27
+ : (this.component.inputType || 'time');
27
28
  // If default value is given then the raw data needs to be set
28
- this.rawData = this.component.multiple
29
- ? []
30
- : this.getValueAsString(this.defaultValue) || this.emptyValue;
29
+ this.rawData = this.component.multiple ? [] : this.getValueAsString(this.defaultValue) || this.emptyValue;
31
30
  }
32
31
  static get builderInfo() {
33
32
  return {
@@ -48,7 +47,7 @@ class TimeComponent extends TextField_1.default {
48
47
  get defaultValue() {
49
48
  let value = super.defaultValue;
50
49
  if (this.component.multiple && Array.isArray(value)) {
51
- value = value.map((item) => (item ? this.getStringAsValue(item) : item));
50
+ value = value.map(item => item ? this.getStringAsValue(item) : item);
52
51
  }
53
52
  else {
54
53
  if (value) {
@@ -69,12 +68,7 @@ class TimeComponent extends TextField_1.default {
69
68
  return value.includes('_');
70
69
  }
71
70
  removeValue(index) {
72
- this.rawData = Array.isArray(this.rawData)
73
- ? [
74
- ...this.rawData.slice(0, index),
75
- ...this.rawData.slice(index + 1),
76
- ]
77
- : this.emptyValue;
71
+ this.rawData = Array.isArray(this.rawData) ? [...this.rawData.slice(0, index), ...this.rawData.slice(index + 1)] : this.emptyValue;
78
72
  super.removeValue(index);
79
73
  }
80
74
  resetRawData(index) {
@@ -122,11 +116,9 @@ class TimeComponent extends TextField_1.default {
122
116
  }
123
117
  getValueAsString(value) {
124
118
  if (Array.isArray(value) && this.component.multiple) {
125
- return value
126
- .map((item) => (0, moment_1.default)(item, this.component.dataFormat).format(this.component.format))
127
- .join(', ');
119
+ return value.map(item => (0, moment_1.default)(item, this.component.dataFormat).format(this.component.format)).join(', ');
128
120
  }
129
- return ((value ? (0, moment_1.default)(value, this.component.dataFormat).format(this.component.format) : value) || '');
121
+ return (value ? (0, moment_1.default)(value, this.component.dataFormat).format(this.component.format) : value) || '';
130
122
  }
131
123
  getInputMaskFromFormat(format) {
132
124
  if (format === 'LT') {
@@ -135,7 +127,8 @@ class TimeComponent extends TextField_1.default {
135
127
  if (format === 'LTS') {
136
128
  return '99:99:99 AA';
137
129
  }
138
- return format.replace(/[hHmMsSk]/g, '9').replace(/[aA]/, 'AA');
130
+ return format.replace(/[hHmMsSk]/g, '9')
131
+ .replace(/[aA]/, 'AA');
139
132
  }
140
133
  addFocusBlurEvents(element) {
141
134
  super.addFocusBlurEvents(element);
@@ -5,7 +5,7 @@ exports.default = [
5
5
  type: 'select',
6
6
  input: true,
7
7
  weight: 40,
8
- tooltip: "Select the type of widget you'd like to use.",
8
+ tooltip: 'Select the type of widget you\'d like to use.',
9
9
  key: 'inputType',
10
10
  defaultValue: 'time',
11
11
  label: 'Input Type',
@@ -38,5 +38,5 @@ exports.default = [
38
38
  {
39
39
  key: 'placeholder',
40
40
  ignore: true,
41
- },
41
+ }
42
42
  ];
@@ -20,11 +20,11 @@ function default_1() {
20
20
  label: 'Custom',
21
21
  key: 'display',
22
22
  weight: 0,
23
- components: Unknown_edit_display_1.default,
24
- },
25
- ],
26
- },
27
- ],
23
+ components: Unknown_edit_display_1.default
24
+ }
25
+ ]
26
+ }
27
+ ]
28
28
  };
29
29
  }
30
30
  exports.default = default_1;
@@ -10,7 +10,7 @@ class UnknownComponent extends Component_1.default {
10
10
  type: 'custom',
11
11
  key: 'custom',
12
12
  protected: false,
13
- persistent: true,
13
+ persistent: true
14
14
  };
15
15
  }
16
16
  static get builderInfo() {
@@ -20,7 +20,7 @@ class UnknownComponent extends Component_1.default {
20
20
  group: 'premium',
21
21
  documentation: '/userguide/form-building/premium-components#custom',
22
22
  weight: 120,
23
- schema: UnknownComponent.schema(),
23
+ schema: UnknownComponent.schema()
24
24
  };
25
25
  }
26
26
  get defaultSchema() {
@@ -12,7 +12,7 @@ exports.default = [
12
12
  'custom component documentation' +
13
13
  '</a>.',
14
14
  type: 'htmlelement',
15
- weight: 5,
15
+ weight: 5
16
16
  },
17
17
  {
18
18
  type: 'textarea',
@@ -22,6 +22,6 @@ exports.default = [
22
22
  input: true,
23
23
  key: 'componentJson',
24
24
  label: 'Custom Element JSON',
25
- tooltip: 'Enter the JSON for this custom element.',
26
- },
25
+ tooltip: 'Enter the JSON for this custom element.'
26
+ }
27
27
  ];
@@ -16,15 +16,15 @@ function default_1(...extend) {
16
16
  return (0, TextField_form_1.default)([
17
17
  {
18
18
  key: 'display',
19
- components: Url_edit_display_1.default,
19
+ components: Url_edit_display_1.default
20
20
  },
21
21
  {
22
22
  key: 'data',
23
- components: Url_edit_data_1.default,
23
+ components: Url_edit_data_1.default
24
24
  },
25
25
  {
26
26
  key: 'validation',
27
- components: Url_edit_validation_1.default,
27
+ components: Url_edit_validation_1.default
28
28
  },
29
29
  ], ...extend);
30
30
  }
@@ -10,7 +10,7 @@ class UrlComponent extends TextField_1.default {
10
10
  type: 'url',
11
11
  label: 'Url',
12
12
  key: 'url',
13
- inputType: 'url',
13
+ inputType: 'url'
14
14
  }, ...extend);
15
15
  }
16
16
  static get builderInfo() {
@@ -20,7 +20,7 @@ class UrlComponent extends TextField_1.default {
20
20
  icon: 'link',
21
21
  documentation: '/userguide/form-building/advanced-components#url',
22
22
  weight: 20,
23
- schema: UrlComponent.schema(),
23
+ schema: UrlComponent.schema()
24
24
  };
25
25
  }
26
26
  constructor(component, options, data) {
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
4
  {
5
5
  key: 'inputMask',
6
- ignore: true,
6
+ ignore: true
7
7
  },
8
8
  {
9
9
  key: 'allowMultipleMasks',
10
- ignore: true,
10
+ ignore: true
11
11
  },
12
12
  {
13
13
  key: 'showWordCount',
@@ -16,5 +16,5 @@ exports.default = [
16
16
  {
17
17
  key: 'showCharCount',
18
18
  ignore: true,
19
- },
19
+ }
20
20
  ];
@@ -7,6 +7,6 @@ exports.default = [
7
7
  },
8
8
  {
9
9
  key: 'validate.maxWords',
10
- ignore: true,
10
+ ignore: true
11
11
  },
12
12
  ];
@@ -14,7 +14,7 @@ function default_1(...extend) {
14
14
  return (0, NestedComponent_form_1.default)([
15
15
  {
16
16
  key: 'display',
17
- components: Well_edit_display_1.default,
17
+ components: Well_edit_display_1.default
18
18
  },
19
19
  ], ...extend);
20
20
  }
@@ -11,7 +11,7 @@ class WellComponent extends NestedComponent_1.default {
11
11
  key: 'well',
12
12
  input: false,
13
13
  persistent: false,
14
- components: [],
14
+ components: []
15
15
  }, ...extend);
16
16
  }
17
17
  static get builderInfo() {
@@ -22,7 +22,7 @@ class WellComponent extends NestedComponent_1.default {
22
22
  documentation: '/userguide/form-building/layout-components#well',
23
23
  showPreview: false,
24
24
  weight: 60,
25
- schema: WellComponent.schema(),
25
+ schema: WellComponent.schema()
26
26
  };
27
27
  }
28
28
  static savedValueTypes() {