@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
@@ -10,10 +10,12 @@ export default [
10
10
  key: 'addons',
11
11
  label: 'Addons',
12
12
  templates: {
13
+ // eslint-disable-next-line quotes
13
14
  header: `<div class="row">
14
15
  <div class="col-6">{{ t(components[0].label) }}</div>
15
16
  <div class="col-4">Settings</div>
16
17
  </div>`,
18
+ // eslint-disable-next-line quotes
17
19
  row: `<div class="row">
18
20
  <div class="col-6">
19
21
  {{ row.name.label }}
@@ -62,6 +64,6 @@ export default [
62
64
  },
63
65
  },
64
66
  ...editForms,
65
- ],
66
- },
67
+ ]
68
+ }
67
69
  ];
@@ -9,8 +9,8 @@ export default [
9
9
  validate: {
10
10
  pattern: '(\\w|\\w[\\w-.]*\\w)',
11
11
  patternMessage: 'The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.',
12
- required: true,
13
- },
12
+ required: true
13
+ }
14
14
  },
15
15
  {
16
16
  weight: 100,
@@ -19,7 +19,7 @@ export default [
19
19
  label: 'Field Tags',
20
20
  storeas: 'array',
21
21
  tooltip: 'Tag the field for use in custom logic.',
22
- key: 'tags',
22
+ key: 'tags'
23
23
  },
24
24
  {
25
25
  weight: 200,
@@ -32,7 +32,7 @@ export default [
32
32
  key: 'value',
33
33
  label: 'Value',
34
34
  placeholder: 'Value',
35
- input: true,
36
- },
35
+ input: true
36
+ }
37
37
  },
38
38
  ];
@@ -1,5 +1,6 @@
1
1
  import EditFormUtils from './utils';
2
2
  import { getContextComponents } from '../../../../utils';
3
+ /* eslint-disable quotes, max-len */
3
4
  export default [
4
5
  {
5
6
  type: 'panel',
@@ -17,9 +18,9 @@ export default [
17
18
  data: {
18
19
  values: [
19
20
  { label: 'True', value: 'true' },
20
- { label: 'False', value: 'false' },
21
- ],
22
- },
21
+ { label: 'False', value: 'false' }
22
+ ]
23
+ }
23
24
  },
24
25
  {
25
26
  type: 'select',
@@ -31,18 +32,19 @@ export default [
31
32
  data: {
32
33
  custom(context) {
33
34
  return getContextComponents(context);
34
- },
35
- },
35
+ }
36
+ }
36
37
  },
37
38
  {
38
39
  type: 'textfield',
39
40
  input: true,
40
41
  label: 'Has the value:',
41
- key: 'conditional.eq',
42
- },
43
- ],
42
+ key: 'conditional.eq'
43
+ }
44
+ ]
44
45
  },
45
46
  EditFormUtils.javaScriptValue('Advanced Conditions', 'customConditional', 'conditional.json', 110, '<p>You must assign the <strong>show</strong> variable a boolean result.</p>' +
46
47
  '<p><strong>Note: Advanced Conditional logic will override the results of the Simple Conditional logic.</strong></p>' +
47
- '<h5>Example</h5><pre>show = !!data.showMe;</pre>', '<p><a href="https://help.form.io/userguide/form-building/logic-and-conditions" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),
48
+ '<h5>Example</h5><pre>show = !!data.showMe;</pre>', '<p><a href="https://help.form.io/userguide/form-building/logic-and-conditions" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>')
48
49
  ];
50
+ /* eslint-enable quotes, max-len */
@@ -87,9 +87,6 @@ declare const _default: ({
87
87
  valueProperty?: undefined;
88
88
  data?: undefined;
89
89
  conditional?: undefined;
90
- as?: undefined;
91
- editor?: undefined;
92
- description?: undefined;
93
90
  } | {
94
91
  type: string;
95
92
  label: string;
@@ -106,9 +103,6 @@ declare const _default: ({
106
103
  valueProperty?: undefined;
107
104
  data?: undefined;
108
105
  conditional?: undefined;
109
- as?: undefined;
110
- editor?: undefined;
111
- description?: undefined;
112
106
  } | {
113
107
  weight: number;
114
108
  type: string;
@@ -131,9 +125,6 @@ declare const _default: ({
131
125
  valueProperty?: undefined;
132
126
  data?: undefined;
133
127
  conditional?: undefined;
134
- as?: undefined;
135
- editor?: undefined;
136
- description?: undefined;
137
128
  } | {
138
129
  weight: number;
139
130
  type: string;
@@ -182,9 +173,6 @@ declare const _default: ({
182
173
  valueProperty?: undefined;
183
174
  data?: undefined;
184
175
  conditional?: undefined;
185
- as?: undefined;
186
- editor?: undefined;
187
- description?: undefined;
188
176
  } | {
189
177
  type: string;
190
178
  input: boolean;
@@ -212,9 +200,6 @@ declare const _default: ({
212
200
  defaultValue?: undefined;
213
201
  values?: undefined;
214
202
  logic?: undefined;
215
- as?: undefined;
216
- editor?: undefined;
217
- description?: undefined;
218
203
  } | {
219
204
  weight: number;
220
205
  type: string;
@@ -231,27 +216,5 @@ declare const _default: ({
231
216
  valueProperty?: undefined;
232
217
  data?: undefined;
233
218
  conditional?: undefined;
234
- as?: undefined;
235
- editor?: undefined;
236
- description?: undefined;
237
- } | {
238
- type: string;
239
- as: string;
240
- editor: string;
241
- weight: number;
242
- input: boolean;
243
- key: string;
244
- label: string;
245
- tooltip: string;
246
- defaultValue: {};
247
- description: string;
248
- placeholder?: undefined;
249
- inline?: undefined;
250
- values?: undefined;
251
- logic?: undefined;
252
- dataSrc?: undefined;
253
- valueProperty?: undefined;
254
- data?: undefined;
255
- conditional?: undefined;
256
219
  })[];
257
220
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import EditFormUtils from './utils';
2
+ /* eslint-disable max-len */
2
3
  export default [
3
4
  {
4
5
  weight: 0,
@@ -6,7 +7,7 @@ export default [
6
7
  label: 'Multiple Values',
7
8
  tooltip: 'Allows multiple values to be entered for this field.',
8
9
  key: 'multiple',
9
- input: true,
10
+ input: true
10
11
  },
11
12
  {
12
13
  type: 'textfield',
@@ -15,7 +16,7 @@ export default [
15
16
  weight: 5,
16
17
  placeholder: 'Default Value',
17
18
  tooltip: 'The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.',
18
- input: true,
19
+ input: true
19
20
  },
20
21
  {
21
22
  weight: 30,
@@ -30,7 +31,7 @@ export default [
30
31
  { label: 'None', value: false },
31
32
  { label: 'Server', value: true },
32
33
  { label: 'Client', value: 'client-only' },
33
- ],
34
+ ]
34
35
  },
35
36
  {
36
37
  weight: 150,
@@ -38,7 +39,7 @@ export default [
38
39
  label: 'Protected',
39
40
  tooltip: 'A protected field will not be returned when queried via API.',
40
41
  key: 'protected',
41
- input: true,
42
+ input: true
42
43
  },
43
44
  {
44
45
  type: 'checkbox',
@@ -46,7 +47,7 @@ export default [
46
47
  weight: 200,
47
48
  key: 'dbIndex',
48
49
  label: 'Database Index',
49
- tooltip: 'Set this field as an index within the database. Increases performance for submission queries.',
50
+ tooltip: 'Set this field as an index within the database. Increases performance for submission queries.'
50
51
  },
51
52
  {
52
53
  weight: 400,
@@ -60,7 +61,7 @@ export default [
60
61
  name: 'disabled',
61
62
  trigger: {
62
63
  type: 'javascript',
63
- javascript: 'result = !instance.root.options.sac;',
64
+ javascript: 'result = !instance.root.options.sac;'
64
65
  },
65
66
  actions: [
66
67
  {
@@ -69,17 +70,17 @@ export default [
69
70
  property: {
70
71
  label: 'Disabled',
71
72
  value: 'disabled',
72
- type: 'boolean',
73
+ type: 'boolean'
73
74
  },
74
- state: true,
75
- },
76
- ],
75
+ state: true
76
+ }
77
+ ]
77
78
  },
78
79
  {
79
80
  name: 'disabledToolTip',
80
81
  trigger: {
81
82
  type: 'javascript',
82
- javascript: 'result = !instance.root.options.sac;',
83
+ javascript: 'result = !instance.root.options.sac;'
83
84
  },
84
85
  actions: [
85
86
  {
@@ -88,13 +89,13 @@ export default [
88
89
  property: {
89
90
  label: 'Tooltip',
90
91
  value: 'tooltip',
91
- type: 'string',
92
+ type: 'string'
92
93
  },
93
- text: 'Only available with Security Module. Contact sales@form.io for more information.',
94
- },
95
- ],
96
- },
97
- ],
94
+ text: 'Only available with Security Module. Contact sales@form.io for more information.'
95
+ }
96
+ ]
97
+ }
98
+ ]
98
99
  },
99
100
  {
100
101
  type: 'select',
@@ -113,19 +114,15 @@ export default [
113
114
  if (component.key !== context.data.key) {
114
115
  values.push({
115
116
  label: component.label || component.key,
116
- value: path,
117
+ value: path
117
118
  });
118
119
  }
119
120
  });
120
121
  return values;
121
- },
122
+ }
122
123
  },
123
124
  conditional: {
124
- json: {
125
- '!': [
126
- { var: 'data.dataSrc' },
127
- ],
128
- },
125
+ json: { '!': [{ var: 'data.dataSrc' }] },
129
126
  },
130
127
  },
131
128
  {
@@ -135,7 +132,7 @@ export default [
135
132
  key: 'clearOnHide',
136
133
  defaultValue: true,
137
134
  tooltip: 'When a field is conditionally hidden, omit the value from the submission data.',
138
- input: true,
135
+ input: true
139
136
  },
140
137
  EditFormUtils.javaScriptValue('Custom Default Value', 'customDefaultValue', 'customDefaultValue', 1000, '<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>', '<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),
141
138
  EditFormUtils.javaScriptValue('Calculated Value', 'calculateValue', 'calculateValue', 1100, '<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>', '<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="https://help.form.io/userguide/form-building/logic-and-conditions#calculated-values" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>', '<tr><th>token</th><td>The decoded JWT token for the authenticated user.</td></tr>'),
@@ -145,7 +142,7 @@ export default [
145
142
  weight: 1100,
146
143
  key: 'calculateServer',
147
144
  label: 'Calculate Value on server',
148
- tooltip: 'Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server.',
145
+ tooltip: 'Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server.'
149
146
  },
150
147
  {
151
148
  type: 'checkbox',
@@ -153,18 +150,7 @@ export default [
153
150
  weight: 1200,
154
151
  key: 'allowCalculateOverride',
155
152
  label: 'Allow Manual Override of Calculated Value',
156
- tooltip: 'When checked, this will allow the user to manually override the calculated value.',
153
+ tooltip: 'When checked, this will allow the user to manually override the calculated value.'
157
154
  },
158
- {
159
- type: 'textarea',
160
- as: 'json',
161
- editor: 'ace',
162
- weight: 1400,
163
- input: true,
164
- key: 'serverOverride',
165
- label: 'Server Override',
166
- tooltip: 'A JSON object containing the component settings that should be overriden when the form submission is processed on the server side.',
167
- defaultValue: {},
168
- description: '<b>Example</b>: { "clearOnHide": true }',
169
- }
170
155
  ];
156
+ /* eslint-enable max-len */
@@ -1,3 +1,4 @@
1
+ /* eslint-disable max-len */
1
2
  export default [
2
3
  {
3
4
  weight: 0,
@@ -8,7 +9,7 @@ export default [
8
9
  placeholder: 'Field Label',
9
10
  tooltip: 'The label for this field that will appear next to it.',
10
11
  validate: {
11
- required: true,
12
+ required: true
12
13
  },
13
14
  autofocus: true,
14
15
  },
@@ -28,9 +29,9 @@ export default [
28
29
  { label: 'Left (Right-aligned)', value: 'left-right' },
29
30
  { label: 'Right (Left-aligned)', value: 'right-left' },
30
31
  { label: 'Right (Right-aligned)', value: 'right-right' },
31
- { label: 'Bottom', value: 'bottom' },
32
- ],
33
- },
32
+ { label: 'Bottom', value: 'bottom' }
33
+ ]
34
+ }
34
35
  },
35
36
  {
36
37
  type: 'number',
@@ -44,26 +45,16 @@ export default [
44
45
  suffix: '%',
45
46
  validate: {
46
47
  min: 0,
47
- max: 100,
48
+ max: 100
48
49
  },
49
50
  conditional: {
50
51
  json: {
51
52
  and: [
52
- {
53
- '!==': [
54
- { var: 'data.labelPosition' },
55
- 'top',
56
- ],
57
- },
58
- {
59
- '!==': [
60
- { var: 'data.labelPosition' },
61
- 'bottom',
62
- ],
63
- },
64
- ],
65
- },
66
- },
53
+ { '!==': [{ var: 'data.labelPosition' }, 'top'] },
54
+ { '!==': [{ var: 'data.labelPosition' }, 'bottom'] },
55
+ ]
56
+ }
57
+ }
67
58
  },
68
59
  {
69
60
  type: 'number',
@@ -77,26 +68,16 @@ export default [
77
68
  suffix: '%',
78
69
  validate: {
79
70
  min: 0,
80
- max: 100,
71
+ max: 100
81
72
  },
82
73
  conditional: {
83
74
  json: {
84
75
  and: [
85
- {
86
- '!==': [
87
- { var: 'data.labelPosition' },
88
- 'top',
89
- ],
90
- },
91
- {
92
- '!==': [
93
- { var: 'data.labelPosition' },
94
- 'bottom',
95
- ],
96
- },
97
- ],
98
- },
99
- },
76
+ { '!==': [{ var: 'data.labelPosition' }, 'top'] },
77
+ { '!==': [{ var: 'data.labelPosition' }, 'bottom'] },
78
+ ]
79
+ }
80
+ }
100
81
  },
101
82
  {
102
83
  weight: 100,
@@ -105,7 +86,7 @@ export default [
105
86
  key: 'placeholder',
106
87
  label: 'Placeholder',
107
88
  placeholder: 'Placeholder',
108
- tooltip: 'The placeholder text that will appear when this field is empty.',
89
+ tooltip: 'The placeholder text that will appear when this field is empty.'
109
90
  },
110
91
  {
111
92
  weight: 200,
@@ -144,7 +125,7 @@ export default [
144
125
  key: 'customClass',
145
126
  label: 'Custom CSS Class',
146
127
  placeholder: 'Custom CSS Class',
147
- tooltip: 'Custom CSS class to add to this component.',
128
+ tooltip: 'Custom CSS class to add to this component.'
148
129
  },
149
130
  {
150
131
  weight: 600,
@@ -153,7 +134,7 @@ export default [
153
134
  key: 'tabindex',
154
135
  label: 'Tab Index',
155
136
  placeholder: '0',
156
- tooltip: "Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information.",
137
+ tooltip: 'Sets the tabindex attribute of this component to override the tab order of the form. See the <a href=\'https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\'>MDN documentation</a> on tabindex for more information.'
157
138
  },
158
139
  {
159
140
  weight: 1100,
@@ -161,7 +142,7 @@ export default [
161
142
  label: 'Hidden',
162
143
  tooltip: 'A hidden field is still a part of the form, but is hidden from view.',
163
144
  key: 'hidden',
164
- input: true,
145
+ input: true
165
146
  },
166
147
  {
167
148
  weight: 1200,
@@ -169,7 +150,7 @@ export default [
169
150
  label: 'Hide Label',
170
151
  tooltip: 'Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.',
171
152
  key: 'hideLabel',
172
- input: true,
153
+ input: true
173
154
  },
174
155
  {
175
156
  weight: 1350,
@@ -177,7 +158,7 @@ export default [
177
158
  label: 'Initial Focus',
178
159
  tooltip: 'Make this field the initially focused element on this form.',
179
160
  key: 'autofocus',
180
- input: true,
161
+ input: true
181
162
  },
182
163
  {
183
164
  weight: 1370,
@@ -188,7 +169,7 @@ export default [
188
169
  input: true,
189
170
  customConditional(context) {
190
171
  return context.instance.options?.flags?.inDataGrid;
191
- },
172
+ }
192
173
  },
193
174
  {
194
175
  weight: 1400,
@@ -196,7 +177,7 @@ export default [
196
177
  label: 'Disabled',
197
178
  tooltip: 'Disable the form input.',
198
179
  key: 'disabled',
199
- input: true,
180
+ input: true
200
181
  },
201
182
  {
202
183
  weight: 1500,
@@ -204,7 +185,7 @@ export default [
204
185
  label: 'Table View',
205
186
  tooltip: 'Shows this value within the table view of the submissions.',
206
187
  key: 'tableView',
207
- input: true,
188
+ input: true
208
189
  },
209
190
  {
210
191
  weight: 1600,
@@ -212,6 +193,7 @@ export default [
212
193
  label: 'Modal Edit',
213
194
  tooltip: 'Opens up a modal to edit the value of this component.',
214
195
  key: 'modalEdit',
215
- input: true,
216
- },
196
+ input: true
197
+ }
217
198
  ];
199
+ /* eslint-enable max-len */
@@ -9,9 +9,9 @@ export default [
9
9
  type: 'textfield',
10
10
  key: 'value',
11
11
  label: 'Attribute Value',
12
- input: true,
12
+ input: true
13
13
  },
14
- tooltip: "Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",
14
+ tooltip: 'Provide a map of HTML attributes for component\'s input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)',
15
15
  addAnother: 'Add Attribute',
16
16
  },
17
17
  {
@@ -30,7 +30,7 @@ export default [
30
30
  key: 'overlay.style',
31
31
  label: 'Style',
32
32
  placeholder: '',
33
- tooltip: 'Custom styles that should be applied to this component when rendered in PDF.',
33
+ tooltip: 'Custom styles that should be applied to this component when rendered in PDF.'
34
34
  },
35
35
  {
36
36
  type: 'textfield',
@@ -38,7 +38,7 @@ export default [
38
38
  key: 'overlay.page',
39
39
  label: 'Page',
40
40
  placeholder: '',
41
- tooltip: 'The PDF page to place this component.',
41
+ tooltip: 'The PDF page to place this component.'
42
42
  },
43
43
  {
44
44
  type: 'textfield',
@@ -46,7 +46,7 @@ export default [
46
46
  key: 'overlay.left',
47
47
  label: 'Left',
48
48
  placeholder: '',
49
- tooltip: 'The left margin within a page to place this component.',
49
+ tooltip: 'The left margin within a page to place this component.'
50
50
  },
51
51
  {
52
52
  type: 'textfield',
@@ -54,7 +54,7 @@ export default [
54
54
  key: 'overlay.top',
55
55
  label: 'Top',
56
56
  placeholder: '',
57
- tooltip: 'The top margin within a page to place this component.',
57
+ tooltip: 'The top margin within a page to place this component.'
58
58
  },
59
59
  {
60
60
  type: 'textfield',
@@ -62,7 +62,7 @@ export default [
62
62
  key: 'overlay.width',
63
63
  label: 'Width',
64
64
  placeholder: '',
65
- tooltip: 'The width of the component (in pixels).',
65
+ tooltip: 'The width of the component (in pixels).'
66
66
  },
67
67
  {
68
68
  type: 'textfield',
@@ -70,8 +70,8 @@ export default [
70
70
  key: 'overlay.height',
71
71
  label: 'Height',
72
72
  placeholder: '',
73
- tooltip: 'The height of the component (in pixels).',
73
+ tooltip: 'The height of the component (in pixels).'
74
74
  },
75
- ],
75
+ ]
76
76
  },
77
77
  ];
@@ -1,5 +1,6 @@
1
1
  import EditFormUtils from './utils';
2
2
  import { getContextComponents } from '../../../../utils';
3
+ /* eslint-disable quotes, max-len */
3
4
  export default [
4
5
  {
5
6
  weight: 0,
@@ -327,9 +328,9 @@ export default [
327
328
  template: '<span>{{ item.label }}</span>',
328
329
  type: 'select',
329
330
  customConditional({ row }) {
330
- return (row.type === 'property' &&
331
+ return row.type === 'property' &&
331
332
  row.hasOwnProperty('property') &&
332
- row.property.type === 'boolean');
333
+ row.property.type === 'boolean';
333
334
  },
334
335
  },
335
336
  {
@@ -342,10 +343,10 @@ export default [
342
343
  tableView: false,
343
344
  description: 'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',
344
345
  customConditional({ row }) {
345
- return (row.type === 'property' &&
346
+ return row.type === 'property' &&
346
347
  row.hasOwnProperty('property') &&
347
348
  row.property.type === 'string' &&
348
- !row.property.component);
349
+ !row.property.component;
349
350
  },
350
351
  },
351
352
  {
@@ -383,7 +384,7 @@ export default [
383
384
  Object.assign(EditFormUtils.logicVariablesTable('<tr><th>input</th><td>The value that was input into this component</td></tr>'), {
384
385
  customConditional({ row }) {
385
386
  return row.type === 'customAction';
386
- },
387
+ }
387
388
  }),
388
389
  {
389
390
  weight: 20,
@@ -406,3 +407,4 @@ export default [
406
407
  ],
407
408
  },
408
409
  ];
410
+ /* eslint-enable quotes, max-len */