@formio/js 5.0.0-rc.19 → 5.0.0-rc.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. package/README.md +1 -1
  2. package/dist/formio.builder.css +14 -22
  3. package/dist/formio.builder.min.css +1 -1
  4. package/dist/formio.embed.css +1 -2
  5. package/dist/formio.embed.js +2 -2
  6. package/dist/formio.embed.min.css +1 -1
  7. package/dist/formio.embed.min.js +1 -1
  8. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  9. package/dist/formio.form.css +10 -2
  10. package/dist/formio.form.js +1239 -1097
  11. package/dist/formio.form.min.css +1 -1
  12. package/dist/formio.form.min.js +1 -1
  13. package/dist/formio.form.min.js.LICENSE.txt +3 -8
  14. package/dist/formio.full.css +14 -22
  15. package/dist/formio.full.js +1271 -1118
  16. package/dist/formio.full.min.css +1 -1
  17. package/dist/formio.full.min.js +1 -1
  18. package/dist/formio.full.min.js.LICENSE.txt +3 -8
  19. package/dist/formio.js +713 -626
  20. package/dist/formio.min.js +1 -1
  21. package/dist/formio.min.js.LICENSE.txt +2 -7
  22. package/dist/formio.utils.js +220 -13
  23. package/dist/formio.utils.min.js +1 -1
  24. package/dist/formio.utils.min.js.LICENSE.txt +2 -7
  25. package/lib/cjs/CDN.js +1 -1
  26. package/lib/cjs/Element.js +7 -2
  27. package/lib/cjs/Embed.js +1 -1
  28. package/lib/cjs/Form.d.ts +8 -5
  29. package/lib/cjs/Form.js +52 -10
  30. package/lib/cjs/PDF.d.ts +11 -3
  31. package/lib/cjs/PDF.js +4 -5
  32. package/lib/cjs/PDFBuilder.js +2 -3
  33. package/lib/cjs/Webform.d.ts +4 -7
  34. package/lib/cjs/Webform.js +40 -119
  35. package/lib/cjs/WebformBuilder.d.ts +6 -1
  36. package/lib/cjs/WebformBuilder.js +104 -64
  37. package/lib/cjs/Wizard.d.ts +8 -5
  38. package/lib/cjs/Wizard.js +12 -12
  39. package/lib/cjs/WizardBuilder.d.ts +6 -4
  40. package/lib/cjs/WizardBuilder.js +20 -3
  41. package/lib/cjs/addons/FormioAddon.d.ts +1 -1
  42. package/lib/cjs/addons/FormioAddon.js +1 -2
  43. package/lib/cjs/components/_classes/component/Component.d.ts +14 -8
  44. package/lib/cjs/components/_classes/component/Component.js +24 -14
  45. package/lib/cjs/components/_classes/input/Input.d.ts +1 -1
  46. package/lib/cjs/components/_classes/input/Input.js +1 -2
  47. package/lib/cjs/components/_classes/list/ListComponent.d.ts +4 -0
  48. package/lib/cjs/components/_classes/list/ListComponent.js +43 -6
  49. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +1 -0
  50. package/lib/cjs/components/_classes/multivalue/Multivalue.js +10 -4
  51. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +5 -2
  52. package/lib/cjs/components/_classes/nested/NestedComponent.js +9 -10
  53. package/lib/cjs/components/address/Address.d.ts +8 -0
  54. package/lib/cjs/components/button/Button.js +2 -3
  55. package/lib/cjs/components/checkbox/Checkbox.d.ts +13 -0
  56. package/lib/cjs/components/checkbox/Checkbox.js +17 -5
  57. package/lib/cjs/components/columns/Columns.d.ts +1 -0
  58. package/lib/cjs/components/columns/Columns.js +1 -0
  59. package/lib/cjs/components/container/Container.d.ts +1 -0
  60. package/lib/cjs/components/container/Container.js +1 -0
  61. package/lib/cjs/components/content/Content.d.ts +1 -0
  62. package/lib/cjs/components/content/Content.js +1 -2
  63. package/lib/cjs/components/currency/editForm/Currency.edit.data.d.ts +14 -2
  64. package/lib/cjs/components/currency/editForm/Currency.edit.data.js +4 -0
  65. package/lib/cjs/components/currency/editForm/Currency.edit.display.js +4 -0
  66. package/lib/cjs/components/datagrid/DataGrid.d.ts +1 -0
  67. package/lib/cjs/components/datagrid/DataGrid.js +8 -1
  68. package/lib/cjs/components/datamap/DataMap.js +1 -0
  69. package/lib/cjs/components/datetime/DateTime.d.ts +4 -0
  70. package/lib/cjs/components/datetime/DateTime.js +21 -1
  71. package/lib/cjs/components/day/Day.d.ts +1 -1
  72. package/lib/cjs/components/day/Day.js +22 -6
  73. package/lib/cjs/components/day/fixtures/comp3.js +2 -2
  74. package/lib/cjs/components/editgrid/EditGrid.d.ts +4 -3
  75. package/lib/cjs/components/editgrid/EditGrid.js +11 -6
  76. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +190 -0
  77. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.js +227 -0
  78. package/lib/cjs/components/editgrid/fixtures/comp15.d.ts +54 -0
  79. package/lib/cjs/components/editgrid/fixtures/comp15.js +51 -0
  80. package/lib/cjs/components/editgrid/fixtures/index.d.ts +3 -1
  81. package/lib/cjs/components/editgrid/fixtures/index.js +5 -1
  82. package/lib/cjs/components/fieldset/Fieldset.d.ts +1 -0
  83. package/lib/cjs/components/fieldset/Fieldset.js +1 -0
  84. package/lib/cjs/components/file/File.d.ts +7 -5
  85. package/lib/cjs/components/file/File.js +26 -9
  86. package/lib/cjs/components/file/editForm/File.edit.file.d.ts +62 -0
  87. package/lib/cjs/components/file/editForm/File.edit.file.js +29 -2
  88. package/lib/cjs/components/form/Form.d.ts +3 -0
  89. package/lib/cjs/components/form/Form.js +9 -10
  90. package/lib/cjs/components/hidden/Hidden.d.ts +1 -0
  91. package/lib/cjs/components/hidden/Hidden.js +1 -0
  92. package/lib/cjs/components/html/HTML.d.ts +1 -0
  93. package/lib/cjs/components/html/HTML.js +1 -0
  94. package/lib/cjs/components/number/Number.d.ts +5 -1
  95. package/lib/cjs/components/number/Number.js +24 -7
  96. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +9 -0
  97. package/lib/cjs/components/radio/Radio.d.ts +5 -3
  98. package/lib/cjs/components/radio/Radio.js +59 -18
  99. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  100. package/lib/cjs/components/recaptcha/ReCaptcha.js +4 -5
  101. package/lib/cjs/components/resource/Resource.d.ts +7 -0
  102. package/lib/cjs/components/resource/Resource.js +0 -1
  103. package/lib/cjs/components/resource/editForm/Resource.edit.display.js +1 -1
  104. package/lib/cjs/components/select/Select.d.ts +7 -5
  105. package/lib/cjs/components/select/Select.js +15 -49
  106. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +12 -0
  107. package/lib/cjs/components/selectboxes/SelectBoxes.js +53 -25
  108. package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +30 -27
  109. package/lib/cjs/components/selectboxes/fixtures/comp4.js +47 -32
  110. package/lib/cjs/components/selectboxes/fixtures/comp6.d.ts +14 -0
  111. package/lib/cjs/components/selectboxes/fixtures/comp6.js +15 -0
  112. package/lib/cjs/components/selectboxes/fixtures/index.d.ts +2 -1
  113. package/lib/cjs/components/selectboxes/fixtures/index.js +3 -1
  114. package/lib/cjs/components/signature/Signature.d.ts +1 -1
  115. package/lib/cjs/components/signature/Signature.js +8 -3
  116. package/lib/cjs/components/survey/Survey.js +3 -0
  117. package/lib/cjs/components/table/Table.d.ts +1 -0
  118. package/lib/cjs/components/table/Table.js +1 -0
  119. package/lib/cjs/components/tabs/Tabs.d.ts +1 -0
  120. package/lib/cjs/components/tabs/Tabs.js +1 -0
  121. package/lib/cjs/components/tags/Tags.js +3 -0
  122. package/lib/cjs/components/textarea/TextArea.d.ts +3 -2
  123. package/lib/cjs/components/textarea/TextArea.js +4 -5
  124. package/lib/cjs/components/textarea/fixtures/comp4.d.ts +30 -0
  125. package/lib/cjs/components/textarea/fixtures/comp4.js +27 -0
  126. package/lib/cjs/components/textarea/fixtures/index.d.ts +2 -1
  127. package/lib/cjs/components/textarea/fixtures/index.js +3 -1
  128. package/lib/cjs/components/textfield/TextField.d.ts +1 -0
  129. package/lib/cjs/components/textfield/TextField.js +5 -3
  130. package/lib/cjs/components/time/Time.d.ts +4 -0
  131. package/lib/cjs/components/time/Time.js +6 -1
  132. package/lib/cjs/components/tree/Tree.d.ts +5 -4
  133. package/lib/cjs/components/tree/Tree.form.js +5 -0
  134. package/lib/cjs/components/tree/Tree.js +8 -9
  135. package/lib/cjs/components/tree/editForm/Tree.edit.display.d.ts +9 -0
  136. package/lib/cjs/components/tree/editForm/Tree.edit.display.js +12 -0
  137. package/lib/cjs/components/well/Well.d.ts +1 -0
  138. package/lib/cjs/components/well/Well.js +1 -0
  139. package/lib/cjs/providers/Providers.d.ts +31 -11
  140. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +2 -2
  141. package/lib/cjs/providers/address/GoogleAddressProvider.js +2 -3
  142. package/lib/cjs/providers/processor/fileProcessor.d.ts +1 -1
  143. package/lib/cjs/providers/processor/fileProcessor.js +1 -5
  144. package/lib/cjs/providers/storage/azure.d.ts +10 -1
  145. package/lib/cjs/providers/storage/azure.js +7 -2
  146. package/lib/cjs/providers/storage/base64.d.ts +2 -2
  147. package/lib/cjs/providers/storage/base64.js +2 -6
  148. package/lib/cjs/providers/storage/dropbox.d.ts +2 -2
  149. package/lib/cjs/providers/storage/dropbox.js +2 -6
  150. package/lib/cjs/providers/storage/googleDrive.d.ts +3 -2
  151. package/lib/cjs/providers/storage/googleDrive.js +6 -6
  152. package/lib/cjs/providers/storage/indexeddb.d.ts +3 -3
  153. package/lib/cjs/providers/storage/indexeddb.js +9 -13
  154. package/lib/cjs/providers/storage/s3.d.ts +11 -1
  155. package/lib/cjs/providers/storage/s3.js +5 -2
  156. package/lib/cjs/providers/storage/uploadAdapter.js +1 -5
  157. package/lib/cjs/providers/storage/url.d.ts +2 -2
  158. package/lib/cjs/providers/storage/url.js +12 -8
  159. package/lib/cjs/providers/storage/xhr.d.ts +1 -1
  160. package/lib/cjs/providers/storage/xhr.js +1 -2
  161. package/lib/cjs/templates/index.d.ts +226 -1
  162. package/lib/cjs/utils/Evaluator.js +4 -33
  163. package/lib/cjs/utils/i18n.d.ts +16 -0
  164. package/lib/cjs/utils/i18n.js +88 -0
  165. package/lib/cjs/utils/utils.d.ts +1 -1
  166. package/lib/cjs/utils/utils.js +8 -9
  167. package/lib/cjs/validator/Validator.d.ts +30 -2
  168. package/lib/cjs/validator/Validator.js +32 -9
  169. package/lib/cjs/validator/rules/Select.js +1 -2
  170. package/lib/cjs/validator/rules/Unique.d.ts +1 -1
  171. package/lib/cjs/validator/rules/Unique.js +1 -2
  172. package/lib/cjs/widgets/CalendarWidget.d.ts +1 -0
  173. package/lib/cjs/widgets/InputWidget.d.ts +1 -1
  174. package/lib/cjs/widgets/InputWidget.js +1 -2
  175. package/lib/mjs/CDN.js +1 -1
  176. package/lib/mjs/Element.js +6 -2
  177. package/lib/mjs/Embed.js +4 -1
  178. package/lib/mjs/Form.d.ts +8 -5
  179. package/lib/mjs/Form.js +52 -10
  180. package/lib/mjs/PDF.d.ts +11 -3
  181. package/lib/mjs/PDF.js +4 -5
  182. package/lib/mjs/PDFBuilder.js +2 -3
  183. package/lib/mjs/Webform.d.ts +4 -7
  184. package/lib/mjs/Webform.js +40 -122
  185. package/lib/mjs/WebformBuilder.d.ts +6 -1
  186. package/lib/mjs/WebformBuilder.js +102 -64
  187. package/lib/mjs/Wizard.d.ts +8 -5
  188. package/lib/mjs/Wizard.js +12 -12
  189. package/lib/mjs/WizardBuilder.d.ts +6 -4
  190. package/lib/mjs/WizardBuilder.js +20 -3
  191. package/lib/mjs/addons/FormioAddon.d.ts +1 -1
  192. package/lib/mjs/addons/FormioAddon.js +1 -2
  193. package/lib/mjs/components/_classes/component/Component.d.ts +14 -8
  194. package/lib/mjs/components/_classes/component/Component.js +24 -14
  195. package/lib/mjs/components/_classes/input/Input.d.ts +1 -1
  196. package/lib/mjs/components/_classes/input/Input.js +1 -2
  197. package/lib/mjs/components/_classes/list/ListComponent.d.ts +4 -0
  198. package/lib/mjs/components/_classes/list/ListComponent.js +43 -5
  199. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +1 -0
  200. package/lib/mjs/components/_classes/multivalue/Multivalue.js +10 -4
  201. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +5 -2
  202. package/lib/mjs/components/_classes/nested/NestedComponent.js +9 -10
  203. package/lib/mjs/components/address/Address.d.ts +8 -0
  204. package/lib/mjs/components/button/Button.js +2 -3
  205. package/lib/mjs/components/checkbox/Checkbox.d.ts +13 -0
  206. package/lib/mjs/components/checkbox/Checkbox.js +21 -5
  207. package/lib/mjs/components/columns/Columns.d.ts +1 -0
  208. package/lib/mjs/components/columns/Columns.js +1 -0
  209. package/lib/mjs/components/container/Container.d.ts +1 -0
  210. package/lib/mjs/components/container/Container.js +1 -0
  211. package/lib/mjs/components/content/Content.d.ts +1 -0
  212. package/lib/mjs/components/content/Content.js +1 -2
  213. package/lib/mjs/components/currency/editForm/Currency.edit.data.d.ts +14 -2
  214. package/lib/mjs/components/currency/editForm/Currency.edit.data.js +4 -0
  215. package/lib/mjs/components/currency/editForm/Currency.edit.display.js +4 -0
  216. package/lib/mjs/components/datagrid/DataGrid.d.ts +1 -0
  217. package/lib/mjs/components/datagrid/DataGrid.js +8 -1
  218. package/lib/mjs/components/datamap/DataMap.js +1 -0
  219. package/lib/mjs/components/datetime/DateTime.d.ts +4 -0
  220. package/lib/mjs/components/datetime/DateTime.js +28 -1
  221. package/lib/mjs/components/day/Day.d.ts +1 -1
  222. package/lib/mjs/components/day/Day.js +25 -6
  223. package/lib/mjs/components/day/fixtures/comp3.js +2 -2
  224. package/lib/mjs/components/editgrid/EditGrid.d.ts +4 -3
  225. package/lib/mjs/components/editgrid/EditGrid.js +11 -6
  226. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +190 -0
  227. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.js +225 -0
  228. package/lib/mjs/components/editgrid/fixtures/comp15.d.ts +54 -0
  229. package/lib/mjs/components/editgrid/fixtures/comp15.js +49 -0
  230. package/lib/mjs/components/editgrid/fixtures/index.d.ts +3 -1
  231. package/lib/mjs/components/editgrid/fixtures/index.js +3 -1
  232. package/lib/mjs/components/fieldset/Fieldset.d.ts +1 -0
  233. package/lib/mjs/components/fieldset/Fieldset.js +1 -0
  234. package/lib/mjs/components/file/File.d.ts +7 -5
  235. package/lib/mjs/components/file/File.js +29 -9
  236. package/lib/mjs/components/file/editForm/File.edit.file.d.ts +62 -0
  237. package/lib/mjs/components/file/editForm/File.edit.file.js +29 -2
  238. package/lib/mjs/components/form/Form.d.ts +3 -0
  239. package/lib/mjs/components/form/Form.js +9 -10
  240. package/lib/mjs/components/hidden/Hidden.d.ts +1 -0
  241. package/lib/mjs/components/hidden/Hidden.js +1 -0
  242. package/lib/mjs/components/html/HTML.d.ts +1 -0
  243. package/lib/mjs/components/html/HTML.js +1 -0
  244. package/lib/mjs/components/number/Number.d.ts +5 -1
  245. package/lib/mjs/components/number/Number.js +24 -7
  246. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +9 -0
  247. package/lib/mjs/components/radio/Radio.d.ts +5 -3
  248. package/lib/mjs/components/radio/Radio.js +59 -18
  249. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  250. package/lib/mjs/components/recaptcha/ReCaptcha.js +4 -5
  251. package/lib/mjs/components/resource/Resource.d.ts +7 -0
  252. package/lib/mjs/components/resource/Resource.js +0 -1
  253. package/lib/mjs/components/resource/editForm/Resource.edit.display.js +1 -1
  254. package/lib/mjs/components/select/Select.d.ts +7 -5
  255. package/lib/mjs/components/select/Select.js +18 -49
  256. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +12 -0
  257. package/lib/mjs/components/selectboxes/SelectBoxes.js +56 -25
  258. package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +30 -27
  259. package/lib/mjs/components/selectboxes/fixtures/comp4.js +47 -32
  260. package/lib/mjs/components/selectboxes/fixtures/comp6.d.ts +14 -0
  261. package/lib/mjs/components/selectboxes/fixtures/comp6.js +13 -0
  262. package/lib/mjs/components/selectboxes/fixtures/index.d.ts +2 -1
  263. package/lib/mjs/components/selectboxes/fixtures/index.js +2 -1
  264. package/lib/mjs/components/signature/Signature.d.ts +1 -1
  265. package/lib/mjs/components/signature/Signature.js +11 -3
  266. package/lib/mjs/components/survey/Survey.js +6 -0
  267. package/lib/mjs/components/table/Table.d.ts +1 -0
  268. package/lib/mjs/components/table/Table.js +1 -0
  269. package/lib/mjs/components/tabs/Tabs.d.ts +1 -0
  270. package/lib/mjs/components/tabs/Tabs.js +1 -0
  271. package/lib/mjs/components/tags/Tags.js +6 -0
  272. package/lib/mjs/components/textarea/TextArea.d.ts +3 -2
  273. package/lib/mjs/components/textarea/TextArea.js +4 -5
  274. package/lib/mjs/components/textarea/fixtures/comp4.d.ts +30 -0
  275. package/lib/mjs/components/textarea/fixtures/comp4.js +25 -0
  276. package/lib/mjs/components/textarea/fixtures/index.d.ts +2 -1
  277. package/lib/mjs/components/textarea/fixtures/index.js +2 -1
  278. package/lib/mjs/components/textfield/TextField.d.ts +1 -0
  279. package/lib/mjs/components/textfield/TextField.js +8 -3
  280. package/lib/mjs/components/time/Time.d.ts +4 -0
  281. package/lib/mjs/components/time/Time.js +12 -1
  282. package/lib/mjs/components/tree/Tree.d.ts +5 -4
  283. package/lib/mjs/components/tree/Tree.form.js +5 -0
  284. package/lib/mjs/components/tree/Tree.js +8 -9
  285. package/lib/mjs/components/tree/editForm/Tree.edit.display.d.ts +9 -0
  286. package/lib/mjs/components/tree/editForm/Tree.edit.display.js +10 -0
  287. package/lib/mjs/components/well/Well.d.ts +1 -0
  288. package/lib/mjs/components/well/Well.js +1 -0
  289. package/lib/mjs/providers/Providers.d.ts +31 -11
  290. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +2 -2
  291. package/lib/mjs/providers/address/GoogleAddressProvider.js +2 -3
  292. package/lib/mjs/providers/processor/fileProcessor.d.ts +1 -1
  293. package/lib/mjs/providers/processor/fileProcessor.js +1 -2
  294. package/lib/mjs/providers/storage/azure.d.ts +10 -1
  295. package/lib/mjs/providers/storage/azure.js +7 -2
  296. package/lib/mjs/providers/storage/base64.d.ts +2 -2
  297. package/lib/mjs/providers/storage/base64.js +2 -3
  298. package/lib/mjs/providers/storage/dropbox.d.ts +2 -2
  299. package/lib/mjs/providers/storage/dropbox.js +2 -3
  300. package/lib/mjs/providers/storage/googleDrive.d.ts +3 -2
  301. package/lib/mjs/providers/storage/googleDrive.js +6 -3
  302. package/lib/mjs/providers/storage/indexeddb.d.ts +3 -3
  303. package/lib/mjs/providers/storage/indexeddb.js +9 -10
  304. package/lib/mjs/providers/storage/s3.d.ts +11 -1
  305. package/lib/mjs/providers/storage/s3.js +5 -2
  306. package/lib/mjs/providers/storage/uploadAdapter.js +1 -2
  307. package/lib/mjs/providers/storage/url.d.ts +2 -2
  308. package/lib/mjs/providers/storage/url.js +12 -5
  309. package/lib/mjs/providers/storage/xhr.d.ts +1 -1
  310. package/lib/mjs/providers/storage/xhr.js +1 -2
  311. package/lib/mjs/templates/index.d.ts +226 -1
  312. package/lib/mjs/utils/Evaluator.js +4 -33
  313. package/lib/mjs/utils/i18n.d.ts +16 -0
  314. package/lib/mjs/utils/i18n.js +81 -0
  315. package/lib/mjs/utils/utils.d.ts +1 -1
  316. package/lib/mjs/utils/utils.js +8 -9
  317. package/lib/mjs/validator/Validator.d.ts +30 -2
  318. package/lib/mjs/validator/Validator.js +31 -9
  319. package/lib/mjs/validator/rules/Select.js +1 -2
  320. package/lib/mjs/validator/rules/Unique.d.ts +1 -1
  321. package/lib/mjs/validator/rules/Unique.js +1 -2
  322. package/lib/mjs/widgets/CalendarWidget.d.ts +1 -0
  323. package/lib/mjs/widgets/InputWidget.d.ts +1 -1
  324. package/lib/mjs/widgets/InputWidget.js +1 -2
  325. package/package.json +14 -15
@@ -0,0 +1,190 @@
1
+ declare namespace _default {
2
+ const type: string;
3
+ const components: ({
4
+ label: string;
5
+ conditionalAddButton: string;
6
+ tableView: boolean;
7
+ templates: {
8
+ header: string;
9
+ row: string;
10
+ };
11
+ addAnother: string;
12
+ saveRow: string;
13
+ inlineEdit: boolean;
14
+ customDefaultValue: string;
15
+ validate: {
16
+ minLength: number;
17
+ };
18
+ rowDrafts: boolean;
19
+ key: string;
20
+ type: string;
21
+ input: boolean;
22
+ components: ({
23
+ label: string;
24
+ columns: ({
25
+ components: {
26
+ label: string;
27
+ widget: string;
28
+ tableView: boolean;
29
+ dataSrc: string;
30
+ data: {
31
+ custom: string;
32
+ };
33
+ template: string;
34
+ validate: {
35
+ required: boolean;
36
+ };
37
+ key: string;
38
+ type: string;
39
+ input: boolean;
40
+ hideOnChildrenHidden: boolean;
41
+ }[];
42
+ width: number;
43
+ offset: number;
44
+ push: number;
45
+ pull: number;
46
+ size: string;
47
+ currentWidth: number;
48
+ } | {
49
+ components: {
50
+ label: string;
51
+ widget: string;
52
+ tableView: boolean;
53
+ dataSrc: string;
54
+ data: {
55
+ custom: string;
56
+ };
57
+ template: string;
58
+ validate: {
59
+ required: boolean;
60
+ };
61
+ key: string;
62
+ logic: {
63
+ name: string;
64
+ trigger: {
65
+ type: string;
66
+ javascript: string;
67
+ };
68
+ actions: {
69
+ name: string;
70
+ type: string;
71
+ property: {
72
+ label: string;
73
+ value: string;
74
+ type: string;
75
+ };
76
+ state: boolean;
77
+ }[];
78
+ }[];
79
+ type: string;
80
+ input: boolean;
81
+ hideOnChildrenHidden: boolean;
82
+ }[];
83
+ width: number;
84
+ offset: number;
85
+ push: number;
86
+ pull: number;
87
+ size: string;
88
+ currentWidth: number;
89
+ })[];
90
+ key: string;
91
+ type: string;
92
+ tableView: boolean;
93
+ input: boolean;
94
+ hideOnChildrenHidden: boolean;
95
+ } | {
96
+ label: string;
97
+ columns: ({
98
+ components: {
99
+ label: string;
100
+ widget: string;
101
+ tableView: boolean;
102
+ data: {
103
+ values: {
104
+ label: string;
105
+ value: string;
106
+ }[];
107
+ };
108
+ refreshOn: string;
109
+ validate: {
110
+ required: boolean;
111
+ };
112
+ key: string;
113
+ logic: {
114
+ name: string;
115
+ trigger: {
116
+ type: string;
117
+ javascript: string;
118
+ };
119
+ actions: {
120
+ name: string;
121
+ type: string;
122
+ property: {
123
+ label: string;
124
+ value: string;
125
+ type: string;
126
+ };
127
+ state: boolean;
128
+ }[];
129
+ }[];
130
+ type: string;
131
+ input: boolean;
132
+ hideOnChildrenHidden: boolean;
133
+ }[];
134
+ width: number;
135
+ offset: number;
136
+ push: number;
137
+ pull: number;
138
+ size: string;
139
+ currentWidth: number;
140
+ } | {
141
+ components: {
142
+ label: string;
143
+ mask: boolean;
144
+ spellcheck: boolean;
145
+ tableView: boolean;
146
+ currency: string;
147
+ inputFormat: string;
148
+ validate: {
149
+ required: boolean;
150
+ };
151
+ key: string;
152
+ type: string;
153
+ input: boolean;
154
+ delimiter: boolean;
155
+ hideOnChildrenHidden: boolean;
156
+ }[];
157
+ width: number;
158
+ offset: number;
159
+ push: number;
160
+ pull: number;
161
+ size: string;
162
+ currentWidth: number;
163
+ })[];
164
+ key: string;
165
+ type: string;
166
+ input: boolean;
167
+ tableView: boolean;
168
+ hideOnChildrenHidden: boolean;
169
+ })[];
170
+ disableOnInvalid?: undefined;
171
+ } | {
172
+ type: string;
173
+ label: string;
174
+ key: string;
175
+ disableOnInvalid: boolean;
176
+ input: boolean;
177
+ tableView: boolean;
178
+ conditionalAddButton?: undefined;
179
+ templates?: undefined;
180
+ addAnother?: undefined;
181
+ saveRow?: undefined;
182
+ inlineEdit?: undefined;
183
+ customDefaultValue?: undefined;
184
+ validate?: undefined;
185
+ rowDrafts?: undefined;
186
+ components?: undefined;
187
+ })[];
188
+ const display: string;
189
+ }
190
+ export default _default;
@@ -0,0 +1,225 @@
1
+ export default {
2
+ type: 'form',
3
+ components: [
4
+ {
5
+ label: 'Selected Funds',
6
+ conditionalAddButton: 'show = !instance.hasOpenRows();',
7
+ tableView: false,
8
+ templates: {
9
+ header: "<div class=\"row\">\r\n {% util.eachComponent(components, function(component) {\r\n if (component.key === 'loadTypeFundCode') { %}\r\n <div class=\"col-sm-2\">\r\n <strong>Fund Code</strong>\r\n </div>\r\n <div class=\"col-sm-2\">\r\n <strong>Load Type</strong>\r\n </div> \r\n {% } else if (component.key !== 'fundClass') { \r\n if (component.key === 'fundName2') { %}\r\n <div class=\"col-sm-2\">\r\n {% } else { %}\r\n <div class=\"col-sm-2\">\r\n {% } %}\r\n <strong>{{ component.label }}</strong>\r\n </div>\r\n {% }\r\n }) %}\r\n</div>",
10
+ row: "<div class=\"row\">\r\n {% console.dir(row);\r\n util.eachComponent(components, function(component) { \r\n if (component.key === 'loadTypeFundCode') { \r\n var fundCode = '';\r\n var loadType = '';\r\n var item = component.data.values.find(item=>item.value==row[component.key]);\r\n if (!!item) {\r\n\t var itemParts = item.label.split('/');\r\n loadType = itemParts [0];\r\n\t if (itemParts.length > 1) { \r\n\t fundCode = itemParts [1];\r\n }\r\n }\r\n %}\r\n <div class=\"col-sm-2\">{{ fundCode }}</div>\r\n <div class=\"col-sm-2\">{{ loadType }}</div>\r\n {% } else if (component.key !== 'fundClass') { \r\n if (component.key === 'fundName2') { %}\r\n <div class=\"col-sm-2\">\r\n {% } else { %}\r\n <div class=\"col-sm-2\">\r\n {% } \r\n if (!!component.data && !!Array.isArray(component.data.values)) { \r\n var item = component.data.values.find(item=>item.value==row[component.key]);\r\n if (!!item) { %}\r\n {{item.label}}\r\n {% } else { %}\r\n {{ row[component.key] }}\r\n {% } \r\n } else { %}\r\n {{ row[component.key] }}\r\n {% } %}\r\n </div>\r\n {% }\r\n }) %}\r\n <div class=\"col-sm-2\">\r\n <div class=\"btn-group pull-right\">\r\n {% if (!instance.hasOpenRows()) { %}\r\n <div class=\"btn btn-default btn-sm editRow\"><i class=\"fa fa-edit\"></i></div>\r\n <div class=\"btn btn-danger btn-sm removeRow\"><i class=\"fa fa-trash\"></i></div>\r\n {% } %}\r\n </div>\r\n </div>\r\n</div>"
11
+ },
12
+ addAnother: 'Add Another Fund',
13
+ saveRow: 'Save Fund',
14
+ inlineEdit: true,
15
+ customDefaultValue: "value = [\n {\n fundClass: 'Class1',\n fundName2: 'Name1',\n loadTypeFundCode: 'dsc602',\n allocationAmount2: 100\n },\n {\n fundClass: 'Class2',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 200\n },\n {\n fundClass: 'Class3',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 100\n },\n {\n fundClass: 'Class3',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 100\n } ,\n {\n fundClass: 'Class3',\n fundName2: 'Name2',\n loadTypeFundCode: 'll1202',\n allocationAmount2: 100\n }\n];",
16
+ validate: {
17
+ minLength: 1
18
+ },
19
+ rowDrafts: false,
20
+ key: 'selectedFunds2',
21
+ type: 'editgrid',
22
+ input: true,
23
+ components: [
24
+ {
25
+ label: 'Columns',
26
+ columns: [
27
+ {
28
+ components: [
29
+ {
30
+ label: 'Fund Class',
31
+ widget: 'choicesjs',
32
+ tableView: true,
33
+ dataSrc: 'custom',
34
+ data: {
35
+ custom: "values = ['Class1', 'Class2', 'Class3'];"
36
+ },
37
+ template: '<span>{{ item }}</span>',
38
+ validate: {
39
+ required: true
40
+ },
41
+ key: 'fundClass',
42
+ type: 'select',
43
+ input: true,
44
+ hideOnChildrenHidden: false
45
+ }
46
+ ],
47
+ width: 6,
48
+ offset: 0,
49
+ push: 0,
50
+ pull: 0,
51
+ size: 'md',
52
+ currentWidth: 6
53
+ },
54
+ {
55
+ components: [
56
+ {
57
+ label: 'Fund Name',
58
+ widget: 'choicesjs',
59
+ tableView: true,
60
+ dataSrc: 'custom',
61
+ data: {
62
+ custom: "values = ['Name1', 'Name2'];"
63
+ },
64
+ template: '<span>{{ item }}</span>',
65
+ validate: {
66
+ required: true
67
+ },
68
+ key: 'fundName2',
69
+ logic: [
70
+ {
71
+ name: 'Disable',
72
+ trigger: {
73
+ type: 'javascript',
74
+ javascript: "result = !row['fundClass'];"
75
+ },
76
+ actions: [
77
+ {
78
+ name: 'Disable',
79
+ type: 'property',
80
+ property: {
81
+ label: 'Disabled',
82
+ value: 'disabled',
83
+ type: 'boolean'
84
+ },
85
+ state: true
86
+ }
87
+ ]
88
+ }
89
+ ],
90
+ type: 'select',
91
+ input: true,
92
+ hideOnChildrenHidden: false
93
+ }
94
+ ],
95
+ width: 6,
96
+ offset: 0,
97
+ push: 0,
98
+ pull: 0,
99
+ size: 'md',
100
+ currentWidth: 6
101
+ }
102
+ ],
103
+ key: 'columns1',
104
+ type: 'columns',
105
+ tableView: false,
106
+ input: false,
107
+ hideOnChildrenHidden: false
108
+ },
109
+ {
110
+ label: 'Columns',
111
+ columns: [
112
+ {
113
+ components: [
114
+ {
115
+ label: 'Load Type / Fund Code',
116
+ widget: 'choicesjs',
117
+ tableView: true,
118
+ data: {
119
+ values: [
120
+ {
121
+ label: 'DSC/602',
122
+ value: 'dsc602'
123
+ },
124
+ {
125
+ label: 'NL/702',
126
+ value: 'nl702'
127
+ },
128
+ {
129
+ label: 'LL/1202',
130
+ value: 'll1202'
131
+ },
132
+ {
133
+ label: 'NL-CB/3002',
134
+ value: 'nlCb3002'
135
+ },
136
+ {
137
+ label: 'NL-CB5/5002',
138
+ value: 'nlCb55002'
139
+ }
140
+ ]
141
+ },
142
+ refreshOn: 'editGrid1.fundName2',
143
+ validate: {
144
+ required: true
145
+ },
146
+ key: 'loadTypeFundCode',
147
+ logic: [
148
+ {
149
+ name: 'Disable',
150
+ trigger: {
151
+ type: 'javascript',
152
+ javascript: "result = !row['fundName2'];"
153
+ },
154
+ actions: [
155
+ {
156
+ name: 'Disable',
157
+ type: 'property',
158
+ property: {
159
+ label: 'Disabled',
160
+ value: 'disabled',
161
+ type: 'boolean'
162
+ },
163
+ state: true
164
+ }
165
+ ]
166
+ }
167
+ ],
168
+ type: 'select',
169
+ input: true,
170
+ hideOnChildrenHidden: false
171
+ }
172
+ ],
173
+ width: 6,
174
+ offset: 0,
175
+ push: 0,
176
+ pull: 0,
177
+ size: 'md',
178
+ currentWidth: 6
179
+ },
180
+ {
181
+ components: [
182
+ {
183
+ label: 'Amount',
184
+ mask: false,
185
+ spellcheck: true,
186
+ tableView: false,
187
+ currency: 'USD',
188
+ inputFormat: 'plain',
189
+ validate: {
190
+ required: true
191
+ },
192
+ key: 'allocationAmount2',
193
+ type: 'currency',
194
+ input: true,
195
+ delimiter: true,
196
+ hideOnChildrenHidden: false
197
+ }
198
+ ],
199
+ width: 6,
200
+ offset: 0,
201
+ push: 0,
202
+ pull: 0,
203
+ size: 'md',
204
+ currentWidth: 6
205
+ }
206
+ ],
207
+ key: 'columns',
208
+ type: 'columns',
209
+ input: false,
210
+ tableView: false,
211
+ hideOnChildrenHidden: false
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ type: 'button',
217
+ label: 'Submit',
218
+ key: 'submit',
219
+ disableOnInvalid: true,
220
+ input: true,
221
+ tableView: false
222
+ }
223
+ ],
224
+ display: 'form',
225
+ };
@@ -0,0 +1,54 @@
1
+ declare namespace _default {
2
+ const type: string;
3
+ const display: string;
4
+ const components: ({
5
+ label: string;
6
+ tableView: boolean;
7
+ validate: {
8
+ minLength: number;
9
+ };
10
+ rowDrafts: boolean;
11
+ key: string;
12
+ type: string;
13
+ displayAsTable: boolean;
14
+ input: boolean;
15
+ components: ({
16
+ label: string;
17
+ applyMaskOn: string;
18
+ tableView: boolean;
19
+ key: string;
20
+ type: string;
21
+ input: boolean;
22
+ mask?: undefined;
23
+ delimiter?: undefined;
24
+ requireDecimal?: undefined;
25
+ inputFormat?: undefined;
26
+ truncateMultipleSpaces?: undefined;
27
+ } | {
28
+ label: string;
29
+ applyMaskOn: string;
30
+ mask: boolean;
31
+ tableView: boolean;
32
+ delimiter: boolean;
33
+ requireDecimal: boolean;
34
+ inputFormat: string;
35
+ truncateMultipleSpaces: boolean;
36
+ key: string;
37
+ type: string;
38
+ input: boolean;
39
+ })[];
40
+ disableOnInvalid?: undefined;
41
+ } | {
42
+ type: string;
43
+ label: string;
44
+ key: string;
45
+ disableOnInvalid: boolean;
46
+ input: boolean;
47
+ tableView: boolean;
48
+ validate?: undefined;
49
+ rowDrafts?: undefined;
50
+ displayAsTable?: undefined;
51
+ components?: undefined;
52
+ })[];
53
+ }
54
+ export default _default;
@@ -0,0 +1,49 @@
1
+ export default {
2
+ type: 'form',
3
+ display: 'form',
4
+ components: [
5
+ {
6
+ label: 'Edit Grid',
7
+ tableView: false,
8
+ validate: {
9
+ minLength: 6
10
+ },
11
+ rowDrafts: false,
12
+ key: 'editGrid',
13
+ type: 'editgrid',
14
+ displayAsTable: false,
15
+ input: true,
16
+ components: [
17
+ {
18
+ label: 'Text',
19
+ applyMaskOn: 'change',
20
+ tableView: true,
21
+ key: 'text',
22
+ type: 'textfield',
23
+ input: true
24
+ },
25
+ {
26
+ label: 'Number',
27
+ applyMaskOn: 'change',
28
+ mask: false,
29
+ tableView: false,
30
+ delimiter: false,
31
+ requireDecimal: false,
32
+ inputFormat: 'plain',
33
+ truncateMultipleSpaces: false,
34
+ key: 'number',
35
+ type: 'number',
36
+ input: true
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ type: 'button',
42
+ label: 'Submit',
43
+ key: 'submit',
44
+ disableOnInvalid: true,
45
+ input: true,
46
+ tableView: false
47
+ }
48
+ ]
49
+ };
@@ -6,6 +6,7 @@ import comp11 from './comp11';
6
6
  import comp12 from './comp12';
7
7
  import comp13 from './comp13';
8
8
  import comp14 from './comp14';
9
+ import comp15 from './comp15';
9
10
  import comp4 from './comp4';
10
11
  import comp5 from './comp5';
11
12
  import comp6 from './comp6';
@@ -14,4 +15,5 @@ import comp8 from './comp8';
14
15
  import comp9 from './comp9';
15
16
  import compOpenWhenEmpty from './comp-openWhenEmpty';
16
17
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
17
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions };
18
+ import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
@@ -12,6 +12,8 @@ import comp11 from './comp11';
12
12
  import comp12 from './comp12';
13
13
  import comp13 from './comp13';
14
14
  import comp14 from './comp14';
15
+ import comp15 from './comp15';
15
16
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
16
17
  import compOpenWhenEmpty from './comp-openWhenEmpty';
17
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions };
18
+ import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
@@ -4,6 +4,7 @@ export default class FieldsetComponent extends NestedComponent {
4
4
  icon: string;
5
5
  group: string;
6
6
  documentation: string;
7
+ showPreview: boolean;
7
8
  weight: number;
8
9
  schema: any;
9
10
  };
@@ -17,6 +17,7 @@ export default class FieldsetComponent extends NestedComponent {
17
17
  icon: 'th-large',
18
18
  group: 'layout',
19
19
  documentation: '/userguide/form-building/layout-components#field-set',
20
+ showPreview: false,
20
21
  weight: 20,
21
22
  schema: FieldsetComponent.schema()
22
23
  };
@@ -18,6 +18,7 @@ export default class FileComponent extends Field {
18
18
  statuses: any[] | undefined;
19
19
  set fileDropHidden(arg: any);
20
20
  get fileDropHidden(): any;
21
+ get dataReady(): Promise<any>;
21
22
  loadImage(fileInfo: any): any;
22
23
  get emptyValue(): never[];
23
24
  getValueAsString(value: any): any;
@@ -27,23 +28,24 @@ export default class FileComponent extends Field {
27
28
  render(): any;
28
29
  getVideoStream(constraints: any): any;
29
30
  stopVideoStream(videoStream: any): void;
30
- getFrame(videoPlayer: any): any;
31
+ getFrame(videoPlayer: any): Promise<any>;
31
32
  startVideo(): void;
32
33
  videoStream: any;
33
34
  stopVideo(): void;
34
35
  takePicture(): void;
35
- browseFiles(attrs?: {}): any;
36
+ browseFiles(attrs?: {}): Promise<any>;
36
37
  _cameraMode: any;
37
38
  get useWebViewCamera(): any;
38
39
  get imageUpload(): boolean;
39
40
  get browseOptions(): {
40
41
  multiple: boolean;
42
+ capture: any;
41
43
  accept: any;
42
44
  };
43
45
  deleteFile(fileInfo: any): void;
44
- filesReady: any;
45
- filesReadyResolve: any;
46
- filesReadyReject: any;
46
+ filesReady: Promise<any> | undefined;
47
+ filesReadyResolve: ((value: any) => void) | undefined;
48
+ filesReadyReject: ((reason?: any) => void) | undefined;
47
49
  fileSize(a: any, b: any, c: any, d: any, e: any): string;
48
50
  globStringToRegex(str: any): any;
49
51
  translateScalars(str: any): any;