@formio/js 5.0.0-rc.27 → 5.0.0-rc.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (376) hide show
  1. package/dist/fonts/bootstrap-icons.woff +0 -0
  2. package/dist/fonts/bootstrap-icons.woff2 +0 -0
  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.js +957 -2270
  7. package/dist/formio.form.min.js +1 -1
  8. package/dist/formio.form.min.js.LICENSE.txt +4 -2
  9. package/dist/formio.full.css +100 -3
  10. package/dist/formio.full.js +961 -2231
  11. package/dist/formio.full.min.css +2 -2
  12. package/dist/formio.full.min.js +1 -1
  13. package/dist/formio.full.min.js.LICENSE.txt +4 -2
  14. package/dist/formio.js +101 -1966
  15. package/dist/formio.min.js +1 -1
  16. package/dist/formio.min.js.LICENSE.txt +1 -3
  17. package/dist/formio.utils.js +145 -104
  18. package/dist/formio.utils.min.js +1 -1
  19. package/dist/formio.utils.min.js.LICENSE.txt +4 -2
  20. package/lib/cjs/CDN.d.ts +1 -1
  21. package/lib/cjs/CDN.js +2 -2
  22. package/lib/cjs/Embed.d.ts +16 -7
  23. package/lib/cjs/Embed.js +76 -24
  24. package/lib/cjs/Formio.d.ts +0 -1
  25. package/lib/cjs/Formio.js +27 -19
  26. package/lib/cjs/PDF.js +2 -2
  27. package/lib/cjs/Webform.d.ts +6 -9
  28. package/lib/cjs/Webform.js +59 -81
  29. package/lib/cjs/WebformBuilder.d.ts +1 -1
  30. package/lib/cjs/WebformBuilder.js +33 -16
  31. package/lib/cjs/Wizard.d.ts +5 -4
  32. package/lib/cjs/Wizard.js +37 -26
  33. package/lib/cjs/WizardBuilder.d.ts +1 -0
  34. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +1 -2
  35. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +11 -12
  36. package/lib/cjs/addons/index.d.ts +1 -0
  37. package/lib/cjs/addons/index.js +5 -1
  38. package/lib/cjs/components/Components.d.ts +7 -0
  39. package/lib/cjs/components/Components.js +30 -0
  40. package/lib/cjs/components/_classes/component/Component.d.ts +57 -27
  41. package/lib/cjs/components/_classes/component/Component.js +193 -119
  42. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +8 -0
  43. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +31 -1
  44. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +28 -11
  45. package/lib/cjs/components/_classes/nested/NestedComponent.js +88 -57
  46. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +4 -3
  47. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +17 -4
  48. package/lib/cjs/components/builder.js +0 -2
  49. package/lib/cjs/components/button/Button.js +2 -1
  50. package/lib/cjs/components/columns/Columns.d.ts +1 -0
  51. package/lib/cjs/components/columns/Columns.js +2 -3
  52. package/lib/cjs/components/columns/editForm/Columns.edit.display.d.ts +30 -1
  53. package/lib/cjs/components/columns/editForm/Columns.edit.display.js +23 -1
  54. package/lib/cjs/components/container/Container.d.ts +1 -0
  55. package/lib/cjs/components/container/Container.js +2 -6
  56. package/lib/cjs/components/content/Content.d.ts +1 -0
  57. package/lib/cjs/components/content/Content.js +1 -0
  58. package/lib/cjs/components/datagrid/DataGrid.d.ts +0 -8
  59. package/lib/cjs/components/datagrid/DataGrid.js +9 -26
  60. package/lib/cjs/components/datamap/DataMap.js +2 -1
  61. package/lib/cjs/components/datetime/DateTime.js +0 -2
  62. package/lib/cjs/components/day/Day.js +2 -3
  63. package/lib/cjs/components/editgrid/EditGrid.d.ts +8 -4
  64. package/lib/cjs/components/editgrid/EditGrid.js +96 -73
  65. package/lib/cjs/components/email/Email.js +0 -1
  66. package/lib/cjs/components/file/File.js +1 -1
  67. package/lib/cjs/components/file/fixtures/comp3.d.ts +29 -0
  68. package/lib/cjs/components/file/fixtures/comp3.js +31 -0
  69. package/lib/cjs/components/form/Form.d.ts +2 -6
  70. package/lib/cjs/components/form/Form.js +43 -14
  71. package/lib/cjs/components/index.d.ts +0 -2
  72. package/lib/cjs/components/index.js +0 -2
  73. package/lib/cjs/components/number/Number.d.ts +1 -2
  74. package/lib/cjs/components/number/Number.js +5 -6
  75. package/lib/cjs/components/panel/Panel.d.ts +0 -1
  76. package/lib/cjs/components/panel/Panel.js +2 -9
  77. package/lib/cjs/components/panel/editForm/Panel.edit.display.d.ts +6 -38
  78. package/lib/cjs/components/panel/editForm/Panel.edit.display.js +3 -16
  79. package/lib/cjs/components/phonenumber/PhoneNumber.js +17 -0
  80. package/lib/cjs/components/radio/Radio.js +0 -2
  81. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  82. package/lib/cjs/components/recaptcha/ReCaptcha.js +2 -2
  83. package/lib/cjs/components/select/Select.js +3 -2
  84. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +1 -2
  85. package/lib/cjs/components/selectboxes/SelectBoxes.js +7 -6
  86. package/lib/cjs/components/table/editForm/Table.edit.display.d.ts +31 -2
  87. package/lib/cjs/components/table/editForm/Table.edit.display.js +22 -0
  88. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.d.ts +30 -2
  89. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +22 -0
  90. package/lib/cjs/components/textfield/TextField.js +20 -6
  91. package/lib/cjs/components/time/Time.js +0 -6
  92. package/lib/cjs/components/url/Url.js +0 -1
  93. package/lib/cjs/components/well/editForm/Well.edit.display.d.ts +25 -2
  94. package/lib/cjs/components/well/editForm/Well.edit.display.js +18 -0
  95. package/lib/cjs/formio.embed.js +5 -3
  96. package/lib/cjs/formio.form.d.ts +1 -7
  97. package/lib/cjs/formio.form.js +3 -38
  98. package/lib/cjs/index.d.ts +2 -1
  99. package/lib/cjs/index.js +3 -1
  100. package/lib/cjs/providers/Providers.d.ts +0 -4
  101. package/lib/cjs/providers/storage/azure.d.ts +0 -2
  102. package/lib/cjs/providers/storage/azure.js +1 -6
  103. package/lib/cjs/providers/storage/googleDrive.d.ts +0 -1
  104. package/lib/cjs/providers/storage/googleDrive.js +0 -4
  105. package/lib/cjs/providers/storage/s3.d.ts +0 -1
  106. package/lib/cjs/providers/storage/s3.js +0 -4
  107. package/lib/cjs/templates/Templates.d.ts +1 -11
  108. package/lib/cjs/templates/Templates.js +4 -41
  109. package/lib/cjs/translations/en.d.ts +5 -0
  110. package/lib/cjs/translations/en.js +5 -0
  111. package/lib/cjs/utils/formUtils.js +1 -0
  112. package/lib/cjs/utils/index.d.ts +1 -0
  113. package/lib/cjs/utils/index.js +2 -0
  114. package/lib/cjs/utils/utils.d.ts +2 -1
  115. package/lib/cjs/utils/utils.js +27 -9
  116. package/lib/mjs/CDN.d.ts +1 -1
  117. package/lib/mjs/CDN.js +2 -2
  118. package/lib/mjs/Embed.d.ts +16 -7
  119. package/lib/mjs/Embed.js +75 -18
  120. package/lib/mjs/Formio.d.ts +0 -1
  121. package/lib/mjs/Formio.js +11 -3
  122. package/lib/mjs/PDF.js +2 -2
  123. package/lib/mjs/Webform.d.ts +6 -9
  124. package/lib/mjs/Webform.js +58 -82
  125. package/lib/mjs/WebformBuilder.d.ts +1 -1
  126. package/lib/mjs/WebformBuilder.js +31 -10
  127. package/lib/mjs/Wizard.d.ts +5 -4
  128. package/lib/mjs/Wizard.js +36 -27
  129. package/lib/mjs/WizardBuilder.d.ts +1 -0
  130. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +1 -2
  131. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +11 -12
  132. package/lib/mjs/addons/index.d.ts +1 -0
  133. package/lib/mjs/addons/index.js +5 -1
  134. package/lib/mjs/components/Components.d.ts +7 -0
  135. package/lib/mjs/components/Components.js +29 -0
  136. package/lib/mjs/components/_classes/component/Component.d.ts +57 -27
  137. package/lib/mjs/components/_classes/component/Component.js +191 -118
  138. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +8 -0
  139. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +31 -1
  140. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +28 -11
  141. package/lib/mjs/components/_classes/nested/NestedComponent.js +88 -57
  142. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +4 -3
  143. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +18 -5
  144. package/lib/mjs/components/builder.js +0 -2
  145. package/lib/mjs/components/button/Button.js +2 -1
  146. package/lib/mjs/components/columns/Columns.d.ts +1 -0
  147. package/lib/mjs/components/columns/Columns.js +2 -3
  148. package/lib/mjs/components/columns/editForm/Columns.edit.display.d.ts +30 -1
  149. package/lib/mjs/components/columns/editForm/Columns.edit.display.js +23 -1
  150. package/lib/mjs/components/container/Container.d.ts +1 -0
  151. package/lib/mjs/components/container/Container.js +2 -6
  152. package/lib/mjs/components/content/Content.d.ts +1 -0
  153. package/lib/mjs/components/content/Content.js +1 -0
  154. package/lib/mjs/components/datagrid/DataGrid.d.ts +0 -8
  155. package/lib/mjs/components/datagrid/DataGrid.js +9 -26
  156. package/lib/mjs/components/datamap/DataMap.js +2 -1
  157. package/lib/mjs/components/datetime/DateTime.js +0 -2
  158. package/lib/mjs/components/day/Day.js +2 -3
  159. package/lib/mjs/components/editgrid/EditGrid.d.ts +8 -4
  160. package/lib/mjs/components/editgrid/EditGrid.js +97 -76
  161. package/lib/mjs/components/email/Email.js +0 -1
  162. package/lib/mjs/components/file/File.js +1 -1
  163. package/lib/mjs/components/file/fixtures/comp3.d.ts +29 -0
  164. package/lib/mjs/components/file/fixtures/comp3.js +29 -0
  165. package/lib/mjs/components/form/Form.d.ts +2 -6
  166. package/lib/mjs/components/form/Form.js +45 -14
  167. package/lib/mjs/components/index.d.ts +0 -2
  168. package/lib/mjs/components/index.js +0 -2
  169. package/lib/mjs/components/number/Number.d.ts +1 -2
  170. package/lib/mjs/components/number/Number.js +4 -5
  171. package/lib/mjs/components/panel/Panel.d.ts +0 -1
  172. package/lib/mjs/components/panel/Panel.js +3 -9
  173. package/lib/mjs/components/panel/editForm/Panel.edit.display.d.ts +6 -38
  174. package/lib/mjs/components/panel/editForm/Panel.edit.display.js +3 -16
  175. package/lib/mjs/components/phonenumber/PhoneNumber.js +17 -0
  176. package/lib/mjs/components/radio/Radio.js +0 -2
  177. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +1 -1
  178. package/lib/mjs/components/recaptcha/ReCaptcha.js +2 -2
  179. package/lib/mjs/components/select/Select.js +3 -2
  180. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +1 -2
  181. package/lib/mjs/components/selectboxes/SelectBoxes.js +7 -6
  182. package/lib/mjs/components/table/editForm/Table.edit.display.d.ts +31 -2
  183. package/lib/mjs/components/table/editForm/Table.edit.display.js +22 -0
  184. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.d.ts +30 -2
  185. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +22 -0
  186. package/lib/mjs/components/textfield/TextField.js +20 -6
  187. package/lib/mjs/components/time/Time.js +0 -6
  188. package/lib/mjs/components/url/Url.js +0 -1
  189. package/lib/mjs/components/well/editForm/Well.edit.display.d.ts +25 -2
  190. package/lib/mjs/components/well/editForm/Well.edit.display.js +18 -0
  191. package/lib/mjs/formio.embed.js +5 -3
  192. package/lib/mjs/formio.form.d.ts +1 -7
  193. package/lib/mjs/formio.form.js +3 -32
  194. package/lib/mjs/index.d.ts +2 -1
  195. package/lib/mjs/index.js +2 -1
  196. package/lib/mjs/providers/Providers.d.ts +0 -4
  197. package/lib/mjs/providers/storage/azure.d.ts +0 -2
  198. package/lib/mjs/providers/storage/azure.js +1 -6
  199. package/lib/mjs/providers/storage/googleDrive.d.ts +0 -1
  200. package/lib/mjs/providers/storage/googleDrive.js +0 -4
  201. package/lib/mjs/providers/storage/s3.d.ts +0 -1
  202. package/lib/mjs/providers/storage/s3.js +0 -4
  203. package/lib/mjs/templates/Templates.d.ts +1 -11
  204. package/lib/mjs/templates/Templates.js +4 -40
  205. package/lib/mjs/translations/en.d.ts +5 -0
  206. package/lib/mjs/translations/en.js +5 -0
  207. package/lib/mjs/utils/formUtils.js +1 -0
  208. package/lib/mjs/utils/index.d.ts +1 -0
  209. package/lib/mjs/utils/index.js +1 -0
  210. package/lib/mjs/utils/utils.d.ts +2 -1
  211. package/lib/mjs/utils/utils.js +24 -7
  212. package/package.json +13 -13
  213. package/lib/cjs/components/tree/Node.d.ts +0 -55
  214. package/lib/cjs/components/tree/Node.js +0 -185
  215. package/lib/cjs/components/tree/Tree.d.ts +0 -48
  216. package/lib/cjs/components/tree/Tree.form.d.ts +0 -3
  217. package/lib/cjs/components/tree/Tree.form.js +0 -21
  218. package/lib/cjs/components/tree/Tree.js +0 -383
  219. package/lib/cjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
  220. package/lib/cjs/components/tree/editForm/Tree.edit.data.js +0 -9
  221. package/lib/cjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
  222. package/lib/cjs/components/tree/editForm/Tree.edit.display.js +0 -12
  223. package/lib/cjs/components/tree/fixtures/comp1.d.ts +0 -23
  224. package/lib/cjs/components/tree/fixtures/comp1.js +0 -24
  225. package/lib/cjs/components/tree/fixtures/comp2.d.ts +0 -116
  226. package/lib/cjs/components/tree/fixtures/comp2.js +0 -82
  227. package/lib/cjs/components/tree/fixtures/comp3.d.ts +0 -24
  228. package/lib/cjs/components/tree/fixtures/comp3.js +0 -25
  229. package/lib/cjs/components/tree/fixtures/comp4.d.ts +0 -42
  230. package/lib/cjs/components/tree/fixtures/comp4.js +0 -47
  231. package/lib/cjs/components/tree/fixtures/index.d.ts +0 -5
  232. package/lib/cjs/components/tree/fixtures/index.js +0 -14
  233. package/lib/cjs/validator/Rules.d.ts +0 -53
  234. package/lib/cjs/validator/Rules.js +0 -22
  235. package/lib/cjs/validator/Validator.d.ts +0 -228
  236. package/lib/cjs/validator/Validator.js +0 -1113
  237. package/lib/cjs/validator/conjunctions/index.d.ts +0 -7
  238. package/lib/cjs/validator/conjunctions/index.js +0 -18
  239. package/lib/cjs/validator/operators/index.d.ts +0 -7
  240. package/lib/cjs/validator/operators/index.js +0 -18
  241. package/lib/cjs/validator/quickRules/index.d.ts +0 -7
  242. package/lib/cjs/validator/quickRules/index.js +0 -18
  243. package/lib/cjs/validator/rules/Custom.d.ts +0 -5
  244. package/lib/cjs/validator/rules/Custom.js +0 -30
  245. package/lib/cjs/validator/rules/Date.d.ts +0 -5
  246. package/lib/cjs/validator/rules/Date.js +0 -25
  247. package/lib/cjs/validator/rules/Day.d.ts +0 -5
  248. package/lib/cjs/validator/rules/Day.js +0 -58
  249. package/lib/cjs/validator/rules/Email.d.ts +0 -5
  250. package/lib/cjs/validator/rules/Email.js +0 -24
  251. package/lib/cjs/validator/rules/JSON.d.ts +0 -5
  252. package/lib/cjs/validator/rules/JSON.js +0 -29
  253. package/lib/cjs/validator/rules/Mask.d.ts +0 -5
  254. package/lib/cjs/validator/rules/Mask.js +0 -32
  255. package/lib/cjs/validator/rules/Max.d.ts +0 -5
  256. package/lib/cjs/validator/rules/Max.js +0 -21
  257. package/lib/cjs/validator/rules/MaxDate.d.ts +0 -5
  258. package/lib/cjs/validator/rules/MaxDate.js +0 -34
  259. package/lib/cjs/validator/rules/MaxLength.d.ts +0 -5
  260. package/lib/cjs/validator/rules/MaxLength.js +0 -20
  261. package/lib/cjs/validator/rules/MaxWords.d.ts +0 -5
  262. package/lib/cjs/validator/rules/MaxWords.js +0 -20
  263. package/lib/cjs/validator/rules/MaxYear.d.ts +0 -5
  264. package/lib/cjs/validator/rules/MaxYear.js +0 -22
  265. package/lib/cjs/validator/rules/Min.d.ts +0 -5
  266. package/lib/cjs/validator/rules/Min.js +0 -21
  267. package/lib/cjs/validator/rules/MinDate.d.ts +0 -5
  268. package/lib/cjs/validator/rules/MinDate.js +0 -30
  269. package/lib/cjs/validator/rules/MinLength.d.ts +0 -5
  270. package/lib/cjs/validator/rules/MinLength.js +0 -20
  271. package/lib/cjs/validator/rules/MinWords.d.ts +0 -5
  272. package/lib/cjs/validator/rules/MinWords.js +0 -20
  273. package/lib/cjs/validator/rules/MinYear.d.ts +0 -5
  274. package/lib/cjs/validator/rules/MinYear.js +0 -22
  275. package/lib/cjs/validator/rules/Pattern.d.ts +0 -5
  276. package/lib/cjs/validator/rules/Pattern.js +0 -20
  277. package/lib/cjs/validator/rules/Required.d.ts +0 -5
  278. package/lib/cjs/validator/rules/Required.js +0 -17
  279. package/lib/cjs/validator/rules/Rule.d.ts +0 -7
  280. package/lib/cjs/validator/rules/Rule.js +0 -12
  281. package/lib/cjs/validator/rules/Select.d.ts +0 -5
  282. package/lib/cjs/validator/rules/Select.js +0 -95
  283. package/lib/cjs/validator/rules/Time.d.ts +0 -5
  284. package/lib/cjs/validator/rules/Time.js +0 -19
  285. package/lib/cjs/validator/rules/Unique.d.ts +0 -5
  286. package/lib/cjs/validator/rules/Unique.js +0 -69
  287. package/lib/cjs/validator/rules/Url.d.ts +0 -5
  288. package/lib/cjs/validator/rules/Url.js +0 -23
  289. package/lib/cjs/validator/rules/index.d.ts +0 -47
  290. package/lib/cjs/validator/rules/index.js +0 -51
  291. package/lib/cjs/validator/transformers/index.d.ts +0 -7
  292. package/lib/cjs/validator/transformers/index.js +0 -18
  293. package/lib/cjs/validator/valueSources/index.d.ts +0 -7
  294. package/lib/cjs/validator/valueSources/index.js +0 -18
  295. package/lib/mjs/components/tree/Node.d.ts +0 -55
  296. package/lib/mjs/components/tree/Node.js +0 -179
  297. package/lib/mjs/components/tree/Tree.d.ts +0 -48
  298. package/lib/mjs/components/tree/Tree.form.d.ts +0 -3
  299. package/lib/mjs/components/tree/Tree.form.js +0 -15
  300. package/lib/mjs/components/tree/Tree.js +0 -384
  301. package/lib/mjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
  302. package/lib/mjs/components/tree/editForm/Tree.edit.data.js +0 -7
  303. package/lib/mjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
  304. package/lib/mjs/components/tree/editForm/Tree.edit.display.js +0 -10
  305. package/lib/mjs/components/tree/fixtures/comp1.d.ts +0 -23
  306. package/lib/mjs/components/tree/fixtures/comp1.js +0 -22
  307. package/lib/mjs/components/tree/fixtures/comp2.d.ts +0 -116
  308. package/lib/mjs/components/tree/fixtures/comp2.js +0 -80
  309. package/lib/mjs/components/tree/fixtures/comp3.d.ts +0 -24
  310. package/lib/mjs/components/tree/fixtures/comp3.js +0 -23
  311. package/lib/mjs/components/tree/fixtures/comp4.d.ts +0 -42
  312. package/lib/mjs/components/tree/fixtures/comp4.js +0 -45
  313. package/lib/mjs/components/tree/fixtures/index.d.ts +0 -5
  314. package/lib/mjs/components/tree/fixtures/index.js +0 -5
  315. package/lib/mjs/validator/Rules.d.ts +0 -53
  316. package/lib/mjs/validator/Rules.js +0 -17
  317. package/lib/mjs/validator/Validator.d.ts +0 -228
  318. package/lib/mjs/validator/Validator.js +0 -1103
  319. package/lib/mjs/validator/conjunctions/index.d.ts +0 -7
  320. package/lib/mjs/validator/conjunctions/index.js +0 -16
  321. package/lib/mjs/validator/operators/index.d.ts +0 -7
  322. package/lib/mjs/validator/operators/index.js +0 -16
  323. package/lib/mjs/validator/quickRules/index.d.ts +0 -7
  324. package/lib/mjs/validator/quickRules/index.js +0 -16
  325. package/lib/mjs/validator/rules/Custom.d.ts +0 -5
  326. package/lib/mjs/validator/rules/Custom.js +0 -21
  327. package/lib/mjs/validator/rules/Date.d.ts +0 -5
  328. package/lib/mjs/validator/rules/Date.js +0 -16
  329. package/lib/mjs/validator/rules/Day.d.ts +0 -5
  330. package/lib/mjs/validator/rules/Day.js +0 -49
  331. package/lib/mjs/validator/rules/Email.d.ts +0 -5
  332. package/lib/mjs/validator/rules/Email.js +0 -15
  333. package/lib/mjs/validator/rules/JSON.d.ts +0 -5
  334. package/lib/mjs/validator/rules/JSON.js +0 -20
  335. package/lib/mjs/validator/rules/Mask.d.ts +0 -5
  336. package/lib/mjs/validator/rules/Mask.js +0 -23
  337. package/lib/mjs/validator/rules/Max.d.ts +0 -5
  338. package/lib/mjs/validator/rules/Max.js +0 -12
  339. package/lib/mjs/validator/rules/MaxDate.d.ts +0 -5
  340. package/lib/mjs/validator/rules/MaxDate.js +0 -25
  341. package/lib/mjs/validator/rules/MaxLength.d.ts +0 -5
  342. package/lib/mjs/validator/rules/MaxLength.js +0 -11
  343. package/lib/mjs/validator/rules/MaxWords.d.ts +0 -5
  344. package/lib/mjs/validator/rules/MaxWords.js +0 -11
  345. package/lib/mjs/validator/rules/MaxYear.d.ts +0 -5
  346. package/lib/mjs/validator/rules/MaxYear.js +0 -13
  347. package/lib/mjs/validator/rules/Min.d.ts +0 -5
  348. package/lib/mjs/validator/rules/Min.js +0 -12
  349. package/lib/mjs/validator/rules/MinDate.d.ts +0 -5
  350. package/lib/mjs/validator/rules/MinDate.js +0 -21
  351. package/lib/mjs/validator/rules/MinLength.d.ts +0 -5
  352. package/lib/mjs/validator/rules/MinLength.js +0 -11
  353. package/lib/mjs/validator/rules/MinWords.d.ts +0 -5
  354. package/lib/mjs/validator/rules/MinWords.js +0 -11
  355. package/lib/mjs/validator/rules/MinYear.d.ts +0 -5
  356. package/lib/mjs/validator/rules/MinYear.js +0 -13
  357. package/lib/mjs/validator/rules/Pattern.d.ts +0 -5
  358. package/lib/mjs/validator/rules/Pattern.js +0 -11
  359. package/lib/mjs/validator/rules/Required.d.ts +0 -5
  360. package/lib/mjs/validator/rules/Required.js +0 -8
  361. package/lib/mjs/validator/rules/Rule.d.ts +0 -7
  362. package/lib/mjs/validator/rules/Rule.js +0 -9
  363. package/lib/mjs/validator/rules/Select.d.ts +0 -5
  364. package/lib/mjs/validator/rules/Select.js +0 -86
  365. package/lib/mjs/validator/rules/Time.d.ts +0 -5
  366. package/lib/mjs/validator/rules/Time.js +0 -10
  367. package/lib/mjs/validator/rules/Unique.d.ts +0 -5
  368. package/lib/mjs/validator/rules/Unique.js +0 -60
  369. package/lib/mjs/validator/rules/Url.d.ts +0 -5
  370. package/lib/mjs/validator/rules/Url.js +0 -14
  371. package/lib/mjs/validator/rules/index.d.ts +0 -47
  372. package/lib/mjs/validator/rules/index.js +0 -46
  373. package/lib/mjs/validator/transformers/index.d.ts +0 -7
  374. package/lib/mjs/validator/transformers/index.js +0 -16
  375. package/lib/mjs/validator/valueSources/index.d.ts +0 -7
  376. package/lib/mjs/validator/valueSources/index.js +0 -16
@@ -1,23 +0,0 @@
1
- declare namespace _default {
2
- const label: string;
3
- const tableView: boolean;
4
- const calculateServer: boolean;
5
- const key: string;
6
- const type: string;
7
- const input: boolean;
8
- const tree: boolean;
9
- const components: {
10
- label: string;
11
- mask: boolean;
12
- spellcheck: boolean;
13
- tableView: boolean;
14
- delimiter: boolean;
15
- requireDecimal: boolean;
16
- inputFormat: string;
17
- calculateServer: boolean;
18
- key: string;
19
- type: string;
20
- input: boolean;
21
- }[];
22
- }
23
- export default _default;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- 'label': 'Tree',
5
- 'tableView': true,
6
- 'calculateServer': false,
7
- 'key': 'tree',
8
- 'type': 'tree',
9
- 'input': true,
10
- 'tree': true,
11
- 'components': [{
12
- 'label': 'Number',
13
- 'mask': false,
14
- 'spellcheck': true,
15
- 'tableView': false,
16
- 'delimiter': false,
17
- 'requireDecimal': false,
18
- 'inputFormat': 'plain',
19
- 'calculateServer': false,
20
- 'key': 'number',
21
- 'type': 'number',
22
- 'input': true
23
- }]
24
- };
@@ -1,116 +0,0 @@
1
- declare namespace _default {
2
- const label: string;
3
- const tableView: boolean;
4
- const key: string;
5
- const type: string;
6
- const input: boolean;
7
- const tree: boolean;
8
- const components: ({
9
- label: string;
10
- autoExpand: boolean;
11
- tableView: boolean;
12
- key: string;
13
- type: string;
14
- input: boolean;
15
- widget?: undefined;
16
- data?: undefined;
17
- selectThreshold?: undefined;
18
- validate?: undefined;
19
- indexeddb?: undefined;
20
- collapsible?: undefined;
21
- components?: undefined;
22
- reorder?: undefined;
23
- addAnotherPosition?: undefined;
24
- layoutFixed?: undefined;
25
- enableRowGroups?: undefined;
26
- initEmpty?: undefined;
27
- defaultValue?: undefined;
28
- } | {
29
- label: string;
30
- widget: string;
31
- tableView: boolean;
32
- data: {
33
- values: {
34
- label: string;
35
- value: string;
36
- }[];
37
- };
38
- selectThreshold: number;
39
- validate: {
40
- onlyAvailableItems: boolean;
41
- };
42
- key: string;
43
- type: string;
44
- indexeddb: {
45
- filter: {};
46
- };
47
- input: boolean;
48
- autoExpand?: undefined;
49
- collapsible?: undefined;
50
- components?: undefined;
51
- reorder?: undefined;
52
- addAnotherPosition?: undefined;
53
- layoutFixed?: undefined;
54
- enableRowGroups?: undefined;
55
- initEmpty?: undefined;
56
- defaultValue?: undefined;
57
- } | {
58
- collapsible: boolean;
59
- key: string;
60
- type: string;
61
- label: string;
62
- input: boolean;
63
- tableView: boolean;
64
- components: {
65
- label: string;
66
- mask: boolean;
67
- spellcheck: boolean;
68
- tableView: boolean;
69
- delimiter: boolean;
70
- requireDecimal: boolean;
71
- inputFormat: string;
72
- key: string;
73
- type: string;
74
- input: boolean;
75
- }[];
76
- autoExpand?: undefined;
77
- widget?: undefined;
78
- data?: undefined;
79
- selectThreshold?: undefined;
80
- validate?: undefined;
81
- indexeddb?: undefined;
82
- reorder?: undefined;
83
- addAnotherPosition?: undefined;
84
- layoutFixed?: undefined;
85
- enableRowGroups?: undefined;
86
- initEmpty?: undefined;
87
- defaultValue?: undefined;
88
- } | {
89
- label: string;
90
- reorder: boolean;
91
- addAnotherPosition: string;
92
- layoutFixed: boolean;
93
- enableRowGroups: boolean;
94
- initEmpty: boolean;
95
- tableView: boolean;
96
- defaultValue: {}[];
97
- key: string;
98
- type: string;
99
- input: boolean;
100
- components: {
101
- label: string;
102
- tableView: boolean;
103
- key: string;
104
- type: string;
105
- input: boolean;
106
- }[];
107
- autoExpand?: undefined;
108
- widget?: undefined;
109
- data?: undefined;
110
- selectThreshold?: undefined;
111
- validate?: undefined;
112
- indexeddb?: undefined;
113
- collapsible?: undefined;
114
- })[];
115
- }
116
- export default _default;
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- 'label': 'Tree',
5
- 'tableView': false,
6
- 'key': 'tree',
7
- 'type': 'tree',
8
- 'input': true,
9
- 'tree': true,
10
- 'components': [{
11
- 'label': 'Text Area',
12
- 'autoExpand': false,
13
- 'tableView': true,
14
- 'key': 'textArea',
15
- 'type': 'textarea',
16
- 'input': true
17
- }, {
18
- 'label': 'Select',
19
- 'widget': 'choicesjs',
20
- 'tableView': true,
21
- 'data': {
22
- 'values': [{
23
- 'label': 'a',
24
- 'value': 'a'
25
- }, {
26
- 'label': 'b',
27
- 'value': 'b'
28
- }, {
29
- 'label': 'c',
30
- 'value': 'c'
31
- }]
32
- },
33
- 'selectThreshold': 0.3,
34
- 'validate': {
35
- 'onlyAvailableItems': false
36
- },
37
- 'key': 'select',
38
- 'type': 'select',
39
- 'indexeddb': {
40
- 'filter': {}
41
- },
42
- 'input': true
43
- }, {
44
- 'collapsible': false,
45
- 'key': 'panel',
46
- 'type': 'panel',
47
- 'label': 'Panel',
48
- 'input': false,
49
- 'tableView': false,
50
- 'components': [{
51
- 'label': 'Number',
52
- 'mask': false,
53
- 'spellcheck': true,
54
- 'tableView': false,
55
- 'delimiter': false,
56
- 'requireDecimal': false,
57
- 'inputFormat': 'plain',
58
- 'key': 'number',
59
- 'type': 'number',
60
- 'input': true
61
- }]
62
- }, {
63
- 'label': 'Data Grid',
64
- 'reorder': false,
65
- 'addAnotherPosition': 'bottom',
66
- 'layoutFixed': false,
67
- 'enableRowGroups': false,
68
- 'initEmpty': false,
69
- 'tableView': false,
70
- 'defaultValue': [{}],
71
- 'key': 'dataGrid',
72
- 'type': 'datagrid',
73
- 'input': true,
74
- 'components': [{
75
- 'label': 'Text Field',
76
- 'tableView': true,
77
- 'key': 'textField',
78
- 'type': 'textfield',
79
- 'input': true
80
- }]
81
- }]
82
- };
@@ -1,24 +0,0 @@
1
- declare namespace _default {
2
- const label: string;
3
- const tableView: boolean;
4
- const key: string;
5
- const type: string;
6
- const input: boolean;
7
- const tree: boolean;
8
- const components: {
9
- label: string;
10
- tableView: boolean;
11
- key: string;
12
- type: string;
13
- input: boolean;
14
- tree: boolean;
15
- components: {
16
- label: string;
17
- tableView: boolean;
18
- key: string;
19
- type: string;
20
- input: boolean;
21
- }[];
22
- }[];
23
- }
24
- export default _default;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- 'label': 'Tree',
5
- 'tableView': false,
6
- 'key': 'tree',
7
- 'type': 'tree',
8
- 'input': true,
9
- 'tree': true,
10
- 'components': [{
11
- 'label': 'Tree',
12
- 'tableView': false,
13
- 'key': 'tree1',
14
- 'type': 'tree',
15
- 'input': true,
16
- 'tree': true,
17
- 'components': [{
18
- 'label': 'Text Field',
19
- 'tableView': true,
20
- 'key': 'textField',
21
- 'type': 'textfield',
22
- 'input': true
23
- }]
24
- }]
25
- };
@@ -1,42 +0,0 @@
1
- declare namespace _default {
2
- const type: string;
3
- const owner: null;
4
- const components: ({
5
- label: string;
6
- tableView: boolean;
7
- key: string;
8
- type: string;
9
- input: boolean;
10
- tree: boolean;
11
- components: {
12
- title: string;
13
- collapsible: boolean;
14
- key: string;
15
- type: string;
16
- label: string;
17
- input: boolean;
18
- tableView: boolean;
19
- components: {
20
- label: string;
21
- tableView: boolean;
22
- validate: {
23
- required: boolean;
24
- };
25
- key: string;
26
- type: string;
27
- input: boolean;
28
- }[];
29
- }[];
30
- disableOnInvalid?: undefined;
31
- } | {
32
- type: string;
33
- label: string;
34
- key: string;
35
- disableOnInvalid: boolean;
36
- input: boolean;
37
- tableView: boolean;
38
- tree?: undefined;
39
- components?: undefined;
40
- })[];
41
- }
42
- export default _default;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- type: 'form',
5
- owner: null,
6
- components: [
7
- {
8
- label: 'Tree',
9
- tableView: false,
10
- key: 'tree',
11
- type: 'tree',
12
- input: true,
13
- tree: true,
14
- components: [
15
- {
16
- title: 'Required validation',
17
- collapsible: false,
18
- key: 'panel',
19
- type: 'panel',
20
- label: 'Panel',
21
- input: false,
22
- tableView: false,
23
- components: [
24
- {
25
- label: 'Text Field',
26
- tableView: true,
27
- validate: {
28
- required: true,
29
- },
30
- key: 'textField',
31
- type: 'textfield',
32
- input: true,
33
- },
34
- ],
35
- },
36
- ],
37
- },
38
- {
39
- type: 'button',
40
- label: 'Submit',
41
- key: 'submit',
42
- disableOnInvalid: true,
43
- input: true,
44
- tableView: false,
45
- },
46
- ],
47
- };
@@ -1,5 +0,0 @@
1
- import comp1 from './comp1';
2
- import comp2 from './comp2';
3
- import comp3 from './comp3';
4
- import comp4 from './comp4';
5
- export { comp1, comp2, comp3, comp4 };
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
7
- const comp1_1 = __importDefault(require("./comp1"));
8
- exports.comp1 = comp1_1.default;
9
- const comp2_1 = __importDefault(require("./comp2"));
10
- exports.comp2 = comp2_1.default;
11
- const comp3_1 = __importDefault(require("./comp3"));
12
- exports.comp3 = comp3_1.default;
13
- const comp4_1 = __importDefault(require("./comp4"));
14
- exports.comp4 = comp4_1.default;
@@ -1,53 +0,0 @@
1
- export default class Rules {
2
- static rules: {
3
- custom: typeof import("./rules/Custom").default;
4
- date: typeof import("./rules/Date").default;
5
- day: typeof import("./rules/Day").default;
6
- email: typeof import("./rules/Email").default;
7
- json: typeof import("./rules/JSON").default;
8
- mask: typeof import("./rules/Mask").default;
9
- max: typeof import("./rules/Max").default;
10
- maxDate: typeof import("./rules/MaxDate").default;
11
- maxLength: typeof import("./rules/MaxLength").default;
12
- maxWords: typeof import("./rules/MaxWords").default;
13
- min: typeof import("./rules/Min").default;
14
- minDate: typeof import("./rules/MinDate").default;
15
- minLength: typeof import("./rules/MinLength").default;
16
- minWords: typeof import("./rules/MinWords").default;
17
- pattern: typeof import("./rules/Pattern").default;
18
- required: typeof import("./rules/Required").default;
19
- select: typeof import("./rules/Select").default;
20
- unique: typeof import("./rules/Unique").default;
21
- url: typeof import("./rules/Url").default;
22
- minYear: typeof import("./rules/MinYear").default;
23
- maxYear: typeof import("./rules/MaxYear").default;
24
- time: typeof import("./rules/Time").default;
25
- };
26
- static addRule(name: any, rule: any): void;
27
- static addRules(rules: any): void;
28
- static getRule(name: any): any;
29
- static getRules(): {
30
- custom: typeof import("./rules/Custom").default;
31
- date: typeof import("./rules/Date").default;
32
- day: typeof import("./rules/Day").default;
33
- email: typeof import("./rules/Email").default;
34
- json: typeof import("./rules/JSON").default;
35
- mask: typeof import("./rules/Mask").default;
36
- max: typeof import("./rules/Max").default;
37
- maxDate: typeof import("./rules/MaxDate").default;
38
- maxLength: typeof import("./rules/MaxLength").default;
39
- maxWords: typeof import("./rules/MaxWords").default;
40
- min: typeof import("./rules/Min").default;
41
- minDate: typeof import("./rules/MinDate").default;
42
- minLength: typeof import("./rules/MinLength").default;
43
- minWords: typeof import("./rules/MinWords").default;
44
- pattern: typeof import("./rules/Pattern").default;
45
- required: typeof import("./rules/Required").default;
46
- select: typeof import("./rules/Select").default;
47
- unique: typeof import("./rules/Unique").default;
48
- url: typeof import("./rules/Url").default;
49
- minYear: typeof import("./rules/MinYear").default;
50
- maxYear: typeof import("./rules/MaxYear").default;
51
- time: typeof import("./rules/Time").default;
52
- };
53
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const index_1 = __importDefault(require("./rules/index"));
7
- class Rules {
8
- static addRule(name, rule) {
9
- Rules.rules[name] = rule;
10
- }
11
- static addRules(rules) {
12
- Rules.rules = Object.assign(Object.assign({}, Rules.rules), rules);
13
- }
14
- static getRule(name) {
15
- return Rules.rules[name];
16
- }
17
- static getRules() {
18
- return Rules.rules;
19
- }
20
- }
21
- Rules.rules = index_1.default;
22
- exports.default = Rules;