@formio/js 5.0.0-rc.27 → 5.0.0-rc.27-dev.5543.40bb827

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2253) hide show
  1. package/package.json +9 -7
  2. package/types/formio.d.ts +2 -0
  3. package/dist/fonts/bootstrap-icons.woff +0 -0
  4. package/dist/fonts/bootstrap-icons.woff2 +0 -0
  5. package/dist/formio.builder.css +0 -2299
  6. package/dist/formio.builder.min.css +0 -1
  7. package/dist/formio.embed.css +0 -1
  8. package/dist/formio.embed.js +0 -2
  9. package/dist/formio.embed.min.css +0 -1
  10. package/dist/formio.embed.min.js +0 -2
  11. package/dist/formio.embed.min.js.LICENSE.txt +0 -1
  12. package/dist/formio.form.css +0 -2034
  13. package/dist/formio.form.js +0 -8273
  14. package/dist/formio.form.min.css +0 -1
  15. package/dist/formio.form.min.js +0 -2
  16. package/dist/formio.form.min.js.LICENSE.txt +0 -43
  17. package/dist/formio.full.css +0 -3941
  18. package/dist/formio.full.js +0 -10280
  19. package/dist/formio.full.min.css +0 -5
  20. package/dist/formio.full.min.js +0 -2
  21. package/dist/formio.full.min.js.LICENSE.txt +0 -43
  22. package/dist/formio.js +0 -2809
  23. package/dist/formio.min.js +0 -2
  24. package/dist/formio.min.js.LICENSE.txt +0 -12
  25. package/dist/formio.utils.js +0 -2310
  26. package/dist/formio.utils.min.js +0 -2
  27. package/dist/formio.utils.min.js.LICENSE.txt +0 -36
  28. package/lib/cjs/CDN.d.ts +0 -29
  29. package/lib/cjs/CDN.js +0 -77
  30. package/lib/cjs/Element.d.ts +0 -255
  31. package/lib/cjs/Element.js +0 -603
  32. package/lib/cjs/Embed.d.ts +0 -43
  33. package/lib/cjs/Embed.js +0 -325
  34. package/lib/cjs/EventEmitter.d.ts +0 -7
  35. package/lib/cjs/EventEmitter.js +0 -52
  36. package/lib/cjs/Form.d.ts +0 -93
  37. package/lib/cjs/Form.js +0 -379
  38. package/lib/cjs/FormBuilder.d.ts +0 -6
  39. package/lib/cjs/FormBuilder.js +0 -39
  40. package/lib/cjs/Formio.d.ts +0 -2
  41. package/lib/cjs/Formio.js +0 -95
  42. package/lib/cjs/PDF.d.ts +0 -40
  43. package/lib/cjs/PDF.js +0 -291
  44. package/lib/cjs/PDFBuilder.d.ts +0 -55
  45. package/lib/cjs/PDFBuilder.js +0 -480
  46. package/lib/cjs/Webform.d.ts +0 -405
  47. package/lib/cjs/Webform.js +0 -1436
  48. package/lib/cjs/WebformBuilder.d.ts +0 -126
  49. package/lib/cjs/WebformBuilder.js +0 -1578
  50. package/lib/cjs/Wizard.d.ts +0 -96
  51. package/lib/cjs/Wizard.js +0 -916
  52. package/lib/cjs/WizardBuilder.d.ts +0 -48
  53. package/lib/cjs/WizardBuilder.js +0 -269
  54. package/lib/cjs/addons/FormioAddon.d.ts +0 -19
  55. package/lib/cjs/addons/FormioAddon.js +0 -36
  56. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +0 -717
  57. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +0 -590
  58. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +0 -316
  59. package/lib/cjs/addons/PasswordStrength/PasswordStrengthAddon.js +0 -397
  60. package/lib/cjs/addons/index.d.ts +0 -625
  61. package/lib/cjs/addons/index.js +0 -25
  62. package/lib/cjs/builders/Builders.d.ts +0 -18
  63. package/lib/cjs/builders/Builders.js +0 -29
  64. package/lib/cjs/builders/index.d.ts +0 -2
  65. package/lib/cjs/builders/index.js +0 -7
  66. package/lib/cjs/components/Components.d.ts +0 -258
  67. package/lib/cjs/components/Components.js +0 -80
  68. package/lib/cjs/components/_classes/component/Component.d.ts +0 -798
  69. package/lib/cjs/components/_classes/component/Component.form.d.ts +0 -3
  70. package/lib/cjs/components/_classes/component/Component.form.js +0 -77
  71. package/lib/cjs/components/_classes/component/Component.js +0 -3200
  72. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.d.ts +0 -645
  73. package/lib/cjs/components/_classes/component/editForm/Component.edit.addons.js +0 -46
  74. package/lib/cjs/components/_classes/component/editForm/Component.edit.api.d.ts +0 -42
  75. package/lib/cjs/components/_classes/component/editForm/Component.edit.api.js +0 -40
  76. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +0 -113
  77. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +0 -55
  78. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -219
  79. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +0 -161
  80. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.d.ts +0 -160
  81. package/lib/cjs/components/_classes/component/editForm/Component.edit.display.js +0 -202
  82. package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.d.ts +0 -44
  83. package/lib/cjs/components/_classes/component/editForm/Component.edit.layout.js +0 -79
  84. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.d.ts +0 -368
  85. package/lib/cjs/components/_classes/component/editForm/Component.edit.logic.js +0 -415
  86. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.d.ts +0 -140
  87. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +0 -209
  88. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +0 -83
  89. package/lib/cjs/components/_classes/component/editForm/utils.js +0 -137
  90. package/lib/cjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
  91. package/lib/cjs/components/_classes/component/fixtures/comp1.js +0 -33
  92. package/lib/cjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
  93. package/lib/cjs/components/_classes/component/fixtures/comp2.js +0 -33
  94. package/lib/cjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
  95. package/lib/cjs/components/_classes/component/fixtures/comp3.js +0 -14
  96. package/lib/cjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
  97. package/lib/cjs/components/_classes/component/fixtures/comp4.js +0 -18
  98. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +0 -5
  99. package/lib/cjs/components/_classes/component/fixtures/index.js +0 -14
  100. package/lib/cjs/components/_classes/componentModal/ComponentModal.d.ts +0 -46
  101. package/lib/cjs/components/_classes/componentModal/ComponentModal.js +0 -183
  102. package/lib/cjs/components/_classes/field/Field.d.ts +0 -5
  103. package/lib/cjs/components/_classes/field/Field.js +0 -37
  104. package/lib/cjs/components/_classes/input/Input.d.ts +0 -42
  105. package/lib/cjs/components/_classes/input/Input.js +0 -303
  106. package/lib/cjs/components/_classes/list/ListComponent.d.ts +0 -18
  107. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +0 -3
  108. package/lib/cjs/components/_classes/list/ListComponent.form.js +0 -16
  109. package/lib/cjs/components/_classes/list/ListComponent.js +0 -255
  110. package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +0 -183
  111. package/lib/cjs/components/_classes/list/editForm/ListComponent.edit.data.js +0 -119
  112. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +0 -29
  113. package/lib/cjs/components/_classes/multivalue/Multivalue.js +0 -255
  114. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +0 -133
  115. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +0 -3
  116. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -19
  117. package/lib/cjs/components/_classes/nested/NestedComponent.js +0 -692
  118. package/lib/cjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
  119. package/lib/cjs/components/_classes/nested/fixtures/comp1.js +0 -16
  120. package/lib/cjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
  121. package/lib/cjs/components/_classes/nested/fixtures/comp2.js +0 -227
  122. package/lib/cjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
  123. package/lib/cjs/components/_classes/nested/fixtures/comp3.js +0 -29
  124. package/lib/cjs/components/_classes/nested/fixtures/index.d.ts +0 -3
  125. package/lib/cjs/components/_classes/nested/fixtures/index.js +0 -12
  126. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +0 -15
  127. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.js +0 -184
  128. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -12
  129. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +0 -127
  130. package/lib/cjs/components/address/Address.d.ts +0 -66
  131. package/lib/cjs/components/address/Address.form.d.ts +0 -3
  132. package/lib/cjs/components/address/Address.form.js +0 -28
  133. package/lib/cjs/components/address/Address.js +0 -552
  134. package/lib/cjs/components/address/editForm/Address.edit.data.d.ts +0 -31
  135. package/lib/cjs/components/address/editForm/Address.edit.data.js +0 -23
  136. package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +0 -49
  137. package/lib/cjs/components/address/editForm/Address.edit.display.js +0 -44
  138. package/lib/cjs/components/address/editForm/Address.edit.provider.d.ts +0 -164
  139. package/lib/cjs/components/address/editForm/Address.edit.provider.js +0 -156
  140. package/lib/cjs/components/address/fixtures/comp1.d.ts +0 -34
  141. package/lib/cjs/components/address/fixtures/comp1.js +0 -71
  142. package/lib/cjs/components/address/fixtures/comp2.d.ts +0 -62
  143. package/lib/cjs/components/address/fixtures/comp2.js +0 -103
  144. package/lib/cjs/components/address/fixtures/comp3.d.ts +0 -44
  145. package/lib/cjs/components/address/fixtures/comp3.js +0 -85
  146. package/lib/cjs/components/address/fixtures/comp4.d.ts +0 -56
  147. package/lib/cjs/components/address/fixtures/comp4.js +0 -93
  148. package/lib/cjs/components/address/fixtures/index.d.ts +0 -5
  149. package/lib/cjs/components/address/fixtures/index.js +0 -14
  150. package/lib/cjs/components/address/fixtures/values.d.ts +0 -22
  151. package/lib/cjs/components/address/fixtures/values.js +0 -19
  152. package/lib/cjs/components/alert/Alert.d.ts +0 -30
  153. package/lib/cjs/components/alert/Alert.js +0 -183
  154. package/lib/cjs/components/builder.d.ts +0 -2
  155. package/lib/cjs/components/builder.js +0 -91
  156. package/lib/cjs/components/button/Button.d.ts +0 -45
  157. package/lib/cjs/components/button/Button.form.d.ts +0 -3
  158. package/lib/cjs/components/button/Button.form.js +0 -24
  159. package/lib/cjs/components/button/Button.js +0 -467
  160. package/lib/cjs/components/button/editForm/Button.edit.display.d.ts +0 -360
  161. package/lib/cjs/components/button/editForm/Button.edit.display.js +0 -253
  162. package/lib/cjs/components/button/fixtures/comp1.d.ts +0 -15
  163. package/lib/cjs/components/button/fixtures/comp1.js +0 -16
  164. package/lib/cjs/components/button/fixtures/comp2.d.ts +0 -25
  165. package/lib/cjs/components/button/fixtures/comp2.js +0 -57
  166. package/lib/cjs/components/button/fixtures/comp3.d.ts +0 -113
  167. package/lib/cjs/components/button/fixtures/comp3.js +0 -84
  168. package/lib/cjs/components/button/fixtures/index.d.ts +0 -4
  169. package/lib/cjs/components/button/fixtures/index.js +0 -12
  170. package/lib/cjs/components/button/fixtures/values.d.ts +0 -2
  171. package/lib/cjs/components/button/fixtures/values.js +0 -6
  172. package/lib/cjs/components/checkbox/Checkbox.d.ts +0 -77
  173. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +0 -3
  174. package/lib/cjs/components/checkbox/Checkbox.form.js +0 -26
  175. package/lib/cjs/components/checkbox/Checkbox.js +0 -221
  176. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +0 -5
  177. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.data.js +0 -8
  178. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +0 -75
  179. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.display.js +0 -79
  180. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +0 -5
  181. package/lib/cjs/components/checkbox/editForm/Checkbox.edit.validation.js +0 -12
  182. package/lib/cjs/components/checkbox/fixtures/comp1.d.ts +0 -24
  183. package/lib/cjs/components/checkbox/fixtures/comp1.js +0 -24
  184. package/lib/cjs/components/checkbox/fixtures/comp2.d.ts +0 -12
  185. package/lib/cjs/components/checkbox/fixtures/comp2.js +0 -13
  186. package/lib/cjs/components/checkbox/fixtures/comp3.d.ts +0 -15
  187. package/lib/cjs/components/checkbox/fixtures/comp3.js +0 -16
  188. package/lib/cjs/components/checkbox/fixtures/comp4.d.ts +0 -46
  189. package/lib/cjs/components/checkbox/fixtures/comp4.js +0 -39
  190. package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
  191. package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.js +0 -25
  192. package/lib/cjs/components/checkbox/fixtures/index.d.ts +0 -6
  193. package/lib/cjs/components/checkbox/fixtures/index.js +0 -16
  194. package/lib/cjs/components/checkbox/fixtures/values.d.ts +0 -2
  195. package/lib/cjs/components/checkbox/fixtures/values.js +0 -6
  196. package/lib/cjs/components/columns/Columns.d.ts +0 -27
  197. package/lib/cjs/components/columns/Columns.form.d.ts +0 -3
  198. package/lib/cjs/components/columns/Columns.form.js +0 -16
  199. package/lib/cjs/components/columns/Columns.js +0 -160
  200. package/lib/cjs/components/columns/editForm/Columns.edit.display.d.ts +0 -58
  201. package/lib/cjs/components/columns/editForm/Columns.edit.display.js +0 -100
  202. package/lib/cjs/components/columns/fixtures/comp1.d.ts +0 -45
  203. package/lib/cjs/components/columns/fixtures/comp1.js +0 -85
  204. package/lib/cjs/components/columns/fixtures/comp2.d.ts +0 -24
  205. package/lib/cjs/components/columns/fixtures/comp2.js +0 -127
  206. package/lib/cjs/components/columns/fixtures/comp3.d.ts +0 -45
  207. package/lib/cjs/components/columns/fixtures/comp3.js +0 -53
  208. package/lib/cjs/components/columns/fixtures/index.d.ts +0 -4
  209. package/lib/cjs/components/columns/fixtures/index.js +0 -12
  210. package/lib/cjs/components/container/Container.d.ts +0 -15
  211. package/lib/cjs/components/container/Container.form.d.ts +0 -3
  212. package/lib/cjs/components/container/Container.form.js +0 -21
  213. package/lib/cjs/components/container/Container.js +0 -82
  214. package/lib/cjs/components/container/editForm/Container.edit.data.d.ts +0 -5
  215. package/lib/cjs/components/container/editForm/Container.edit.data.js +0 -16
  216. package/lib/cjs/components/container/editForm/Container.edit.display.d.ts +0 -5
  217. package/lib/cjs/components/container/editForm/Container.edit.display.js +0 -20
  218. package/lib/cjs/components/container/fixtures/comp1.d.ts +0 -49
  219. package/lib/cjs/components/container/fixtures/comp1.js +0 -82
  220. package/lib/cjs/components/container/fixtures/comp2.d.ts +0 -30
  221. package/lib/cjs/components/container/fixtures/comp2.js +0 -34
  222. package/lib/cjs/components/container/fixtures/comp3.d.ts +0 -77
  223. package/lib/cjs/components/container/fixtures/comp3.js +0 -57
  224. package/lib/cjs/components/container/fixtures/index.d.ts +0 -4
  225. package/lib/cjs/components/container/fixtures/index.js +0 -12
  226. package/lib/cjs/components/content/Content.d.ts +0 -17
  227. package/lib/cjs/components/content/Content.form.d.ts +0 -3
  228. package/lib/cjs/components/content/Content.form.js +0 -43
  229. package/lib/cjs/components/content/Content.js +0 -78
  230. package/lib/cjs/components/content/editForm/Content.edit.display.d.ts +0 -18
  231. package/lib/cjs/components/content/editForm/Content.edit.display.js +0 -48
  232. package/lib/cjs/components/content/editForm/Content.edit.logic.d.ts +0 -48
  233. package/lib/cjs/components/content/editForm/Content.edit.logic.js +0 -100
  234. package/lib/cjs/components/content/fixtures/comp1.d.ts +0 -13
  235. package/lib/cjs/components/content/fixtures/comp1.js +0 -14
  236. package/lib/cjs/components/content/fixtures/index.d.ts +0 -2
  237. package/lib/cjs/components/content/fixtures/index.js +0 -8
  238. package/lib/cjs/components/currency/Currency.d.ts +0 -8
  239. package/lib/cjs/components/currency/Currency.form.d.ts +0 -3
  240. package/lib/cjs/components/currency/Currency.form.js +0 -46
  241. package/lib/cjs/components/currency/Currency.js +0 -180
  242. package/lib/cjs/components/currency/editForm/Currency.edit.data.d.ts +0 -29
  243. package/lib/cjs/components/currency/editForm/Currency.edit.data.js +0 -192
  244. package/lib/cjs/components/currency/editForm/Currency.edit.display.d.ts +0 -18
  245. package/lib/cjs/components/currency/editForm/Currency.edit.display.js +0 -40
  246. package/lib/cjs/components/currency/fixtures/comp1.d.ts +0 -31
  247. package/lib/cjs/components/currency/fixtures/comp1.js +0 -31
  248. package/lib/cjs/components/currency/fixtures/comp2.d.ts +0 -20
  249. package/lib/cjs/components/currency/fixtures/comp2.js +0 -20
  250. package/lib/cjs/components/currency/fixtures/comp3.d.ts +0 -13
  251. package/lib/cjs/components/currency/fixtures/comp3.js +0 -14
  252. package/lib/cjs/components/currency/fixtures/comp4.d.ts +0 -17
  253. package/lib/cjs/components/currency/fixtures/comp4.js +0 -20
  254. package/lib/cjs/components/currency/fixtures/index.d.ts +0 -5
  255. package/lib/cjs/components/currency/fixtures/index.js +0 -14
  256. package/lib/cjs/components/currency/fixtures/values.d.ts +0 -2
  257. package/lib/cjs/components/currency/fixtures/values.js +0 -8
  258. package/lib/cjs/components/datagrid/DataGrid.d.ts +0 -88
  259. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +0 -3
  260. package/lib/cjs/components/datagrid/DataGrid.form.js +0 -26
  261. package/lib/cjs/components/datagrid/DataGrid.js +0 -648
  262. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +0 -5
  263. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.data.js +0 -8
  264. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +0 -283
  265. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.display.js +0 -149
  266. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +0 -20
  267. package/lib/cjs/components/datagrid/editForm/DataGrid.edit.validation.js +0 -26
  268. package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
  269. package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -42
  270. package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
  271. package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.js +0 -1
  272. package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
  273. package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -81
  274. package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
  275. package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -75
  276. package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -197
  277. package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -178
  278. package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
  279. package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.js +0 -69
  280. package/lib/cjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
  281. package/lib/cjs/components/datagrid/fixtures/comp-with-logic.js +0 -180
  282. package/lib/cjs/components/datagrid/fixtures/comp1.d.ts +0 -93
  283. package/lib/cjs/components/datagrid/fixtures/comp1.js +0 -115
  284. package/lib/cjs/components/datagrid/fixtures/comp2.d.ts +0 -18
  285. package/lib/cjs/components/datagrid/fixtures/comp2.js +0 -29
  286. package/lib/cjs/components/datagrid/fixtures/comp3.d.ts +0 -14
  287. package/lib/cjs/components/datagrid/fixtures/comp3.js +0 -23
  288. package/lib/cjs/components/datagrid/fixtures/comp4.d.ts +0 -27
  289. package/lib/cjs/components/datagrid/fixtures/comp4.js +0 -28
  290. package/lib/cjs/components/datagrid/fixtures/comp5.d.ts +0 -67
  291. package/lib/cjs/components/datagrid/fixtures/comp5.js +0 -77
  292. package/lib/cjs/components/datagrid/fixtures/comp6.d.ts +0 -567
  293. package/lib/cjs/components/datagrid/fixtures/comp6.js +0 -296
  294. package/lib/cjs/components/datagrid/fixtures/comp7.d.ts +0 -28
  295. package/lib/cjs/components/datagrid/fixtures/comp7.js +0 -35
  296. package/lib/cjs/components/datagrid/fixtures/comp8.d.ts +0 -35
  297. package/lib/cjs/components/datagrid/fixtures/comp8.js +0 -37
  298. package/lib/cjs/components/datagrid/fixtures/index.d.ts +0 -15
  299. package/lib/cjs/components/datagrid/fixtures/index.js +0 -34
  300. package/lib/cjs/components/datamap/DataMap.d.ts +0 -36
  301. package/lib/cjs/components/datamap/DataMap.form.d.ts +0 -3
  302. package/lib/cjs/components/datamap/DataMap.form.js +0 -21
  303. package/lib/cjs/components/datamap/DataMap.js +0 -301
  304. package/lib/cjs/components/datamap/editForm/DataMap.edit.data.d.ts +0 -5
  305. package/lib/cjs/components/datamap/editForm/DataMap.edit.data.js +0 -12
  306. package/lib/cjs/components/datamap/editForm/DataMap.edit.display.d.ts +0 -30
  307. package/lib/cjs/components/datamap/editForm/DataMap.edit.display.js +0 -48
  308. package/lib/cjs/components/datamap/fixtures/comp1.d.ts +0 -18
  309. package/lib/cjs/components/datamap/fixtures/comp1.js +0 -15
  310. package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
  311. package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -85
  312. package/lib/cjs/components/datamap/fixtures/index.d.ts +0 -3
  313. package/lib/cjs/components/datamap/fixtures/index.js +0 -10
  314. package/lib/cjs/components/datetime/DateTime.d.ts +0 -39
  315. package/lib/cjs/components/datetime/DateTime.form.d.ts +0 -3
  316. package/lib/cjs/components/datetime/DateTime.form.js +0 -40
  317. package/lib/cjs/components/datetime/DateTime.js +0 -164
  318. package/lib/cjs/components/datetime/editForm/DateTime.edit.data.d.ts +0 -24
  319. package/lib/cjs/components/datetime/editForm/DateTime.edit.data.js +0 -23
  320. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.d.ts +0 -61
  321. package/lib/cjs/components/datetime/editForm/DateTime.edit.date.js +0 -75
  322. package/lib/cjs/components/datetime/editForm/DateTime.edit.display.d.ts +0 -128
  323. package/lib/cjs/components/datetime/editForm/DateTime.edit.display.js +0 -100
  324. package/lib/cjs/components/datetime/editForm/DateTime.edit.time.d.ts +0 -9
  325. package/lib/cjs/components/datetime/editForm/DateTime.edit.time.js +0 -36
  326. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.d.ts +0 -40
  327. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +0 -84
  328. package/lib/cjs/components/datetime/fixtures/comp1.d.ts +0 -45
  329. package/lib/cjs/components/datetime/fixtures/comp1.js +0 -44
  330. package/lib/cjs/components/datetime/fixtures/comp10.d.ts +0 -102
  331. package/lib/cjs/components/datetime/fixtures/comp10.js +0 -86
  332. package/lib/cjs/components/datetime/fixtures/comp11.d.ts +0 -58
  333. package/lib/cjs/components/datetime/fixtures/comp11.js +0 -55
  334. package/lib/cjs/components/datetime/fixtures/comp12.d.ts +0 -57
  335. package/lib/cjs/components/datetime/fixtures/comp12.js +0 -55
  336. package/lib/cjs/components/datetime/fixtures/comp2.d.ts +0 -42
  337. package/lib/cjs/components/datetime/fixtures/comp2.js +0 -43
  338. package/lib/cjs/components/datetime/fixtures/comp3.d.ts +0 -51
  339. package/lib/cjs/components/datetime/fixtures/comp3.js +0 -40
  340. package/lib/cjs/components/datetime/fixtures/comp5.d.ts +0 -57
  341. package/lib/cjs/components/datetime/fixtures/comp5.js +0 -48
  342. package/lib/cjs/components/datetime/fixtures/comp6.d.ts +0 -55
  343. package/lib/cjs/components/datetime/fixtures/comp6.js +0 -49
  344. package/lib/cjs/components/datetime/fixtures/comp7.d.ts +0 -59
  345. package/lib/cjs/components/datetime/fixtures/comp7.js +0 -53
  346. package/lib/cjs/components/datetime/fixtures/comp8.d.ts +0 -59
  347. package/lib/cjs/components/datetime/fixtures/comp8.js +0 -52
  348. package/lib/cjs/components/datetime/fixtures/comp9.d.ts +0 -64
  349. package/lib/cjs/components/datetime/fixtures/comp9.js +0 -95
  350. package/lib/cjs/components/datetime/fixtures/index.d.ts +0 -12
  351. package/lib/cjs/components/datetime/fixtures/index.js +0 -28
  352. package/lib/cjs/components/datetime/fixtures/values.d.ts +0 -2
  353. package/lib/cjs/components/datetime/fixtures/values.js +0 -6
  354. package/lib/cjs/components/day/Day.d.ts +0 -163
  355. package/lib/cjs/components/day/Day.form.d.ts +0 -3
  356. package/lib/cjs/components/day/Day.form.js +0 -47
  357. package/lib/cjs/components/day/Day.js +0 -573
  358. package/lib/cjs/components/day/editForm/Day.edit.data.d.ts +0 -5
  359. package/lib/cjs/components/day/editForm/Day.edit.data.js +0 -8
  360. package/lib/cjs/components/day/editForm/Day.edit.day.d.ts +0 -40
  361. package/lib/cjs/components/day/editForm/Day.edit.day.js +0 -48
  362. package/lib/cjs/components/day/editForm/Day.edit.display.d.ts +0 -40
  363. package/lib/cjs/components/day/editForm/Day.edit.display.js +0 -46
  364. package/lib/cjs/components/day/editForm/Day.edit.month.d.ts +0 -40
  365. package/lib/cjs/components/day/editForm/Day.edit.month.js +0 -40
  366. package/lib/cjs/components/day/editForm/Day.edit.validation.d.ts +0 -29
  367. package/lib/cjs/components/day/editForm/Day.edit.validation.js +0 -54
  368. package/lib/cjs/components/day/editForm/Day.edit.year.d.ts +0 -40
  369. package/lib/cjs/components/day/editForm/Day.edit.year.js +0 -58
  370. package/lib/cjs/components/day/fixtures/comp1.d.ts +0 -46
  371. package/lib/cjs/components/day/fixtures/comp1.js +0 -39
  372. package/lib/cjs/components/day/fixtures/comp2.d.ts +0 -46
  373. package/lib/cjs/components/day/fixtures/comp2.js +0 -39
  374. package/lib/cjs/components/day/fixtures/comp3.d.ts +0 -48
  375. package/lib/cjs/components/day/fixtures/comp3.js +0 -41
  376. package/lib/cjs/components/day/fixtures/comp4.d.ts +0 -53
  377. package/lib/cjs/components/day/fixtures/comp4.js +0 -56
  378. package/lib/cjs/components/day/fixtures/comp5.d.ts +0 -29
  379. package/lib/cjs/components/day/fixtures/comp5.js +0 -32
  380. package/lib/cjs/components/day/fixtures/comp6.d.ts +0 -81
  381. package/lib/cjs/components/day/fixtures/comp6.js +0 -76
  382. package/lib/cjs/components/day/fixtures/index.d.ts +0 -7
  383. package/lib/cjs/components/day/fixtures/index.js +0 -18
  384. package/lib/cjs/components/day/fixtures/values.d.ts +0 -2
  385. package/lib/cjs/components/day/fixtures/values.js +0 -6
  386. package/lib/cjs/components/editgrid/EditGrid.d.ts +0 -99
  387. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +0 -3
  388. package/lib/cjs/components/editgrid/EditGrid.form.js +0 -33
  389. package/lib/cjs/components/editgrid/EditGrid.js +0 -1167
  390. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +0 -18
  391. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.data.js +0 -20
  392. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +0 -82
  393. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.display.js +0 -58
  394. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +0 -58
  395. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.templates.js +0 -131
  396. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +0 -29
  397. package/lib/cjs/components/editgrid/editForm/EditGrid.edit.validation.js +0 -34
  398. package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
  399. package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -36
  400. package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
  401. package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -220
  402. package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -77
  403. package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -84
  404. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
  405. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -227
  406. package/lib/cjs/components/editgrid/fixtures/comp1.d.ts +0 -89
  407. package/lib/cjs/components/editgrid/fixtures/comp1.js +0 -128
  408. package/lib/cjs/components/editgrid/fixtures/comp10.d.ts +0 -49
  409. package/lib/cjs/components/editgrid/fixtures/comp10.js +0 -48
  410. package/lib/cjs/components/editgrid/fixtures/comp11.d.ts +0 -53
  411. package/lib/cjs/components/editgrid/fixtures/comp11.js +0 -50
  412. package/lib/cjs/components/editgrid/fixtures/comp12.d.ts +0 -57
  413. package/lib/cjs/components/editgrid/fixtures/comp12.js +0 -50
  414. package/lib/cjs/components/editgrid/fixtures/comp13.d.ts +0 -64
  415. package/lib/cjs/components/editgrid/fixtures/comp13.js +0 -64
  416. package/lib/cjs/components/editgrid/fixtures/comp14.d.ts +0 -88
  417. package/lib/cjs/components/editgrid/fixtures/comp14.js +0 -84
  418. package/lib/cjs/components/editgrid/fixtures/comp15.d.ts +0 -54
  419. package/lib/cjs/components/editgrid/fixtures/comp15.js +0 -51
  420. package/lib/cjs/components/editgrid/fixtures/comp2.d.ts +0 -112
  421. package/lib/cjs/components/editgrid/fixtures/comp2.js +0 -114
  422. package/lib/cjs/components/editgrid/fixtures/comp3.d.ts +0 -27
  423. package/lib/cjs/components/editgrid/fixtures/comp3.js +0 -28
  424. package/lib/cjs/components/editgrid/fixtures/comp4.d.ts +0 -23
  425. package/lib/cjs/components/editgrid/fixtures/comp4.js +0 -24
  426. package/lib/cjs/components/editgrid/fixtures/comp5.d.ts +0 -19
  427. package/lib/cjs/components/editgrid/fixtures/comp5.js +0 -22
  428. package/lib/cjs/components/editgrid/fixtures/comp6.d.ts +0 -50
  429. package/lib/cjs/components/editgrid/fixtures/comp6.js +0 -58
  430. package/lib/cjs/components/editgrid/fixtures/comp7.d.ts +0 -129
  431. package/lib/cjs/components/editgrid/fixtures/comp7.js +0 -123
  432. package/lib/cjs/components/editgrid/fixtures/comp8.d.ts +0 -148
  433. package/lib/cjs/components/editgrid/fixtures/comp8.js +0 -156
  434. package/lib/cjs/components/editgrid/fixtures/comp9.d.ts +0 -86
  435. package/lib/cjs/components/editgrid/fixtures/comp9.js +0 -62
  436. package/lib/cjs/components/editgrid/fixtures/index.d.ts +0 -19
  437. package/lib/cjs/components/editgrid/fixtures/index.js +0 -42
  438. package/lib/cjs/components/email/Email.d.ts +0 -4
  439. package/lib/cjs/components/email/Email.form.d.ts +0 -3
  440. package/lib/cjs/components/email/Email.form.js +0 -21
  441. package/lib/cjs/components/email/Email.js +0 -54
  442. package/lib/cjs/components/email/editForm/Email.edit.display.d.ts +0 -5
  443. package/lib/cjs/components/email/editForm/Email.edit.display.js +0 -20
  444. package/lib/cjs/components/email/editForm/Email.edit.validation.d.ts +0 -24
  445. package/lib/cjs/components/email/editForm/Email.edit.validation.js +0 -28
  446. package/lib/cjs/components/email/fixtures/comp1.d.ts +0 -26
  447. package/lib/cjs/components/email/fixtures/comp1.js +0 -26
  448. package/lib/cjs/components/email/fixtures/comp2.d.ts +0 -23
  449. package/lib/cjs/components/email/fixtures/comp2.js +0 -13
  450. package/lib/cjs/components/email/fixtures/index.d.ts +0 -3
  451. package/lib/cjs/components/email/fixtures/index.js +0 -10
  452. package/lib/cjs/components/email/fixtures/values.d.ts +0 -2
  453. package/lib/cjs/components/email/fixtures/values.js +0 -6
  454. package/lib/cjs/components/fieldset/Fieldset.d.ts +0 -15
  455. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +0 -3
  456. package/lib/cjs/components/fieldset/Fieldset.form.js +0 -16
  457. package/lib/cjs/components/fieldset/Fieldset.js +0 -47
  458. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +0 -33
  459. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -44
  460. package/lib/cjs/components/fieldset/fixtures/comp1.d.ts +0 -46
  461. package/lib/cjs/components/fieldset/fixtures/comp1.js +0 -81
  462. package/lib/cjs/components/fieldset/fixtures/index.d.ts +0 -2
  463. package/lib/cjs/components/fieldset/fixtures/index.js +0 -8
  464. package/lib/cjs/components/file/File.d.ts +0 -81
  465. package/lib/cjs/components/file/File.form.d.ts +0 -3
  466. package/lib/cjs/components/file/File.form.js +0 -33
  467. package/lib/cjs/components/file/File.js +0 -777
  468. package/lib/cjs/components/file/editForm/File.edit.data.d.ts +0 -5
  469. package/lib/cjs/components/file/editForm/File.edit.data.js +0 -8
  470. package/lib/cjs/components/file/editForm/File.edit.display.d.ts +0 -5
  471. package/lib/cjs/components/file/editForm/File.edit.display.js +0 -8
  472. package/lib/cjs/components/file/editForm/File.edit.file.d.ts +0 -275
  473. package/lib/cjs/components/file/editForm/File.edit.file.js +0 -288
  474. package/lib/cjs/components/file/editForm/File.edit.validation.d.ts +0 -5
  475. package/lib/cjs/components/file/editForm/File.edit.validation.js +0 -12
  476. package/lib/cjs/components/file/fixtures/comp1.d.ts +0 -15
  477. package/lib/cjs/components/file/fixtures/comp1.js +0 -18
  478. package/lib/cjs/components/file/fixtures/comp2.d.ts +0 -35
  479. package/lib/cjs/components/file/fixtures/comp2.js +0 -31
  480. package/lib/cjs/components/file/fixtures/index.d.ts +0 -3
  481. package/lib/cjs/components/file/fixtures/index.js +0 -10
  482. package/lib/cjs/components/file/fixtures/values.d.ts +0 -10
  483. package/lib/cjs/components/file/fixtures/values.js +0 -15
  484. package/lib/cjs/components/form/Form.d.ts +0 -98
  485. package/lib/cjs/components/form/Form.form.d.ts +0 -3
  486. package/lib/cjs/components/form/Form.form.js +0 -30
  487. package/lib/cjs/components/form/Form.js +0 -730
  488. package/lib/cjs/components/form/editForm/Form.edit.data.d.ts +0 -82
  489. package/lib/cjs/components/form/editForm/Form.edit.data.js +0 -21
  490. package/lib/cjs/components/form/editForm/Form.edit.display.d.ts +0 -5
  491. package/lib/cjs/components/form/editForm/Form.edit.display.js +0 -29
  492. package/lib/cjs/components/form/editForm/Form.edit.form.d.ts +0 -89
  493. package/lib/cjs/components/form/editForm/Form.edit.form.js +0 -75
  494. package/lib/cjs/components/form/fixtures/comp1.d.ts +0 -45
  495. package/lib/cjs/components/form/fixtures/comp1.js +0 -80
  496. package/lib/cjs/components/form/fixtures/comp2.d.ts +0 -14
  497. package/lib/cjs/components/form/fixtures/comp2.js +0 -15
  498. package/lib/cjs/components/form/fixtures/comp3.d.ts +0 -187
  499. package/lib/cjs/components/form/fixtures/comp3.js +0 -170
  500. package/lib/cjs/components/form/fixtures/comp4.d.ts +0 -107
  501. package/lib/cjs/components/form/fixtures/comp4.js +0 -91
  502. package/lib/cjs/components/form/fixtures/comp5.d.ts +0 -42
  503. package/lib/cjs/components/form/fixtures/comp5.js +0 -45
  504. package/lib/cjs/components/form/fixtures/comp6.d.ts +0 -74
  505. package/lib/cjs/components/form/fixtures/comp6.js +0 -94
  506. package/lib/cjs/components/form/fixtures/formModalEdit.d.ts +0 -42
  507. package/lib/cjs/components/form/fixtures/formModalEdit.js +0 -51
  508. package/lib/cjs/components/form/fixtures/index.d.ts +0 -8
  509. package/lib/cjs/components/form/fixtures/index.js +0 -20
  510. package/lib/cjs/components/form/fixtures/values.d.ts +0 -6
  511. package/lib/cjs/components/form/fixtures/values.js +0 -9
  512. package/lib/cjs/components/hidden/Hidden.d.ts +0 -26
  513. package/lib/cjs/components/hidden/Hidden.form.d.ts +0 -3
  514. package/lib/cjs/components/hidden/Hidden.form.js +0 -29
  515. package/lib/cjs/components/hidden/Hidden.js +0 -61
  516. package/lib/cjs/components/hidden/editForm/Hidden.edit.data.d.ts +0 -5
  517. package/lib/cjs/components/hidden/editForm/Hidden.edit.data.js +0 -16
  518. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.d.ts +0 -5
  519. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +0 -44
  520. package/lib/cjs/components/hidden/fixtures/comp1.d.ts +0 -18
  521. package/lib/cjs/components/hidden/fixtures/comp1.js +0 -18
  522. package/lib/cjs/components/hidden/fixtures/index.d.ts +0 -2
  523. package/lib/cjs/components/hidden/fixtures/index.js +0 -8
  524. package/lib/cjs/components/hidden/fixtures/values.d.ts +0 -2
  525. package/lib/cjs/components/hidden/fixtures/values.js +0 -6
  526. package/lib/cjs/components/html/HTML.d.ts +0 -18
  527. package/lib/cjs/components/html/HTML.form.d.ts +0 -3
  528. package/lib/cjs/components/html/HTML.form.js +0 -29
  529. package/lib/cjs/components/html/HTML.js +0 -93
  530. package/lib/cjs/components/html/editForm/HTML.edit.display.d.ts +0 -77
  531. package/lib/cjs/components/html/editForm/HTML.edit.display.js +0 -100
  532. package/lib/cjs/components/html/editForm/HTML.edit.logic.d.ts +0 -48
  533. package/lib/cjs/components/html/editForm/HTML.edit.logic.js +0 -100
  534. package/lib/cjs/components/html/fixtures/comp1.d.ts +0 -19
  535. package/lib/cjs/components/html/fixtures/comp1.js +0 -22
  536. package/lib/cjs/components/html/fixtures/comp2.d.ts +0 -21
  537. package/lib/cjs/components/html/fixtures/comp2.js +0 -24
  538. package/lib/cjs/components/html/fixtures/index.d.ts +0 -3
  539. package/lib/cjs/components/html/fixtures/index.js +0 -10
  540. package/lib/cjs/components/index.d.ts +0 -100
  541. package/lib/cjs/components/index.js +0 -104
  542. package/lib/cjs/components/number/Number.d.ts +0 -54
  543. package/lib/cjs/components/number/Number.form.d.ts +0 -3
  544. package/lib/cjs/components/number/Number.form.js +0 -26
  545. package/lib/cjs/components/number/Number.js +0 -204
  546. package/lib/cjs/components/number/editForm/Number.edit.data.d.ts +0 -18
  547. package/lib/cjs/components/number/editForm/Number.edit.data.js +0 -32
  548. package/lib/cjs/components/number/editForm/Number.edit.display.d.ts +0 -5
  549. package/lib/cjs/components/number/editForm/Number.edit.display.js +0 -24
  550. package/lib/cjs/components/number/editForm/Number.edit.validation.d.ts +0 -20
  551. package/lib/cjs/components/number/editForm/Number.edit.validation.js +0 -46
  552. package/lib/cjs/components/number/fixtures/comp1.d.ts +0 -33
  553. package/lib/cjs/components/number/fixtures/comp1.js +0 -32
  554. package/lib/cjs/components/number/fixtures/comp2.d.ts +0 -32
  555. package/lib/cjs/components/number/fixtures/comp2.js +0 -31
  556. package/lib/cjs/components/number/fixtures/comp3.d.ts +0 -14
  557. package/lib/cjs/components/number/fixtures/comp3.js +0 -15
  558. package/lib/cjs/components/number/fixtures/comp4.d.ts +0 -14
  559. package/lib/cjs/components/number/fixtures/comp4.js +0 -15
  560. package/lib/cjs/components/number/fixtures/comp5.d.ts +0 -20
  561. package/lib/cjs/components/number/fixtures/comp5.js +0 -20
  562. package/lib/cjs/components/number/fixtures/comp6.d.ts +0 -40
  563. package/lib/cjs/components/number/fixtures/comp6.js +0 -27
  564. package/lib/cjs/components/number/fixtures/comp7.d.ts +0 -15
  565. package/lib/cjs/components/number/fixtures/comp7.js +0 -16
  566. package/lib/cjs/components/number/fixtures/index.d.ts +0 -8
  567. package/lib/cjs/components/number/fixtures/index.js +0 -20
  568. package/lib/cjs/components/number/fixtures/values.d.ts +0 -2
  569. package/lib/cjs/components/number/fixtures/values.js +0 -11
  570. package/lib/cjs/components/panel/Panel.d.ts +0 -15
  571. package/lib/cjs/components/panel/Panel.form.d.ts +0 -3
  572. package/lib/cjs/components/panel/Panel.form.js +0 -21
  573. package/lib/cjs/components/panel/Panel.js +0 -62
  574. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.d.ts +0 -75
  575. package/lib/cjs/components/panel/editForm/Panel.edit.conditional.js +0 -42
  576. package/lib/cjs/components/panel/editForm/Panel.edit.display.d.ts +0 -228
  577. package/lib/cjs/components/panel/editForm/Panel.edit.display.js +0 -213
  578. package/lib/cjs/components/panel/fixtures/comp1.d.ts +0 -46
  579. package/lib/cjs/components/panel/fixtures/comp1.js +0 -80
  580. package/lib/cjs/components/panel/fixtures/comp2.d.ts +0 -80
  581. package/lib/cjs/components/panel/fixtures/comp2.js +0 -69
  582. package/lib/cjs/components/panel/fixtures/index.d.ts +0 -3
  583. package/lib/cjs/components/panel/fixtures/index.js +0 -10
  584. package/lib/cjs/components/password/Password.d.ts +0 -3
  585. package/lib/cjs/components/password/Password.form.d.ts +0 -3
  586. package/lib/cjs/components/password/Password.form.js +0 -26
  587. package/lib/cjs/components/password/Password.js +0 -40
  588. package/lib/cjs/components/password/editForm/Password.edit.data.d.ts +0 -18
  589. package/lib/cjs/components/password/editForm/Password.edit.data.js +0 -48
  590. package/lib/cjs/components/password/editForm/Password.edit.display.d.ts +0 -5
  591. package/lib/cjs/components/password/editForm/Password.edit.display.js +0 -16
  592. package/lib/cjs/components/password/editForm/Password.edit.validation.d.ts +0 -5
  593. package/lib/cjs/components/password/editForm/Password.edit.validation.js +0 -16
  594. package/lib/cjs/components/password/fixtures/comp1.d.ts +0 -22
  595. package/lib/cjs/components/password/fixtures/comp1.js +0 -22
  596. package/lib/cjs/components/password/fixtures/comp2.d.ts +0 -27
  597. package/lib/cjs/components/password/fixtures/comp2.js +0 -29
  598. package/lib/cjs/components/password/fixtures/index.d.ts +0 -3
  599. package/lib/cjs/components/password/fixtures/index.js +0 -10
  600. package/lib/cjs/components/password/fixtures/values.d.ts +0 -2
  601. package/lib/cjs/components/password/fixtures/values.js +0 -6
  602. package/lib/cjs/components/phonenumber/PhoneNumber.d.ts +0 -3
  603. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +0 -3
  604. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +0 -38
  605. package/lib/cjs/components/phonenumber/PhoneNumber.js +0 -33
  606. package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +0 -5
  607. package/lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +0 -24
  608. package/lib/cjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
  609. package/lib/cjs/components/phonenumber/fixtures/comp1.js +0 -27
  610. package/lib/cjs/components/phonenumber/fixtures/index.d.ts +0 -2
  611. package/lib/cjs/components/phonenumber/fixtures/index.js +0 -8
  612. package/lib/cjs/components/phonenumber/fixtures/values.d.ts +0 -2
  613. package/lib/cjs/components/phonenumber/fixtures/values.js +0 -6
  614. package/lib/cjs/components/radio/Radio.d.ts +0 -65
  615. package/lib/cjs/components/radio/Radio.form.d.ts +0 -3
  616. package/lib/cjs/components/radio/Radio.form.js +0 -26
  617. package/lib/cjs/components/radio/Radio.js +0 -376
  618. package/lib/cjs/components/radio/editForm/Radio.edit.data.d.ts +0 -134
  619. package/lib/cjs/components/radio/editForm/Radio.edit.data.js +0 -85
  620. package/lib/cjs/components/radio/editForm/Radio.edit.display.d.ts +0 -40
  621. package/lib/cjs/components/radio/editForm/Radio.edit.display.js +0 -34
  622. package/lib/cjs/components/radio/editForm/Radio.edit.validation.d.ts +0 -18
  623. package/lib/cjs/components/radio/editForm/Radio.edit.validation.js +0 -20
  624. package/lib/cjs/components/radio/fixtures/comp1.d.ts +0 -28
  625. package/lib/cjs/components/radio/fixtures/comp1.js +0 -42
  626. package/lib/cjs/components/radio/fixtures/comp2.d.ts +0 -85
  627. package/lib/cjs/components/radio/fixtures/comp2.js +0 -86
  628. package/lib/cjs/components/radio/fixtures/comp3.d.ts +0 -85
  629. package/lib/cjs/components/radio/fixtures/comp3.js +0 -90
  630. package/lib/cjs/components/radio/fixtures/comp4.d.ts +0 -19
  631. package/lib/cjs/components/radio/fixtures/comp4.js +0 -27
  632. package/lib/cjs/components/radio/fixtures/comp5.d.ts +0 -39
  633. package/lib/cjs/components/radio/fixtures/comp5.js +0 -35
  634. package/lib/cjs/components/radio/fixtures/comp6.d.ts +0 -38
  635. package/lib/cjs/components/radio/fixtures/comp6.js +0 -33
  636. package/lib/cjs/components/radio/fixtures/comp7.d.ts +0 -23
  637. package/lib/cjs/components/radio/fixtures/comp7.js +0 -21
  638. package/lib/cjs/components/radio/fixtures/comp8.d.ts +0 -118
  639. package/lib/cjs/components/radio/fixtures/comp8.js +0 -113
  640. package/lib/cjs/components/radio/fixtures/comp9.d.ts +0 -35
  641. package/lib/cjs/components/radio/fixtures/comp9.js +0 -32
  642. package/lib/cjs/components/radio/fixtures/index.d.ts +0 -10
  643. package/lib/cjs/components/radio/fixtures/index.js +0 -24
  644. package/lib/cjs/components/radio/fixtures/values.d.ts +0 -2
  645. package/lib/cjs/components/radio/fixtures/values.js +0 -7
  646. package/lib/cjs/components/recaptcha/ReCaptcha.d.ts +0 -23
  647. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +0 -3
  648. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +0 -32
  649. package/lib/cjs/components/recaptcha/ReCaptcha.js +0 -142
  650. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +0 -44
  651. package/lib/cjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +0 -108
  652. package/lib/cjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
  653. package/lib/cjs/components/recaptcha/fixtures/comp1.js +0 -9
  654. package/lib/cjs/components/recaptcha/fixtures/index.d.ts +0 -2
  655. package/lib/cjs/components/recaptcha/fixtures/index.js +0 -8
  656. package/lib/cjs/components/resource/Resource.d.ts +0 -10
  657. package/lib/cjs/components/resource/Resource.form.d.ts +0 -3
  658. package/lib/cjs/components/resource/Resource.form.js +0 -16
  659. package/lib/cjs/components/resource/Resource.js +0 -39
  660. package/lib/cjs/components/resource/editForm/Resource.edit.display.d.ts +0 -173
  661. package/lib/cjs/components/resource/editForm/Resource.edit.display.js +0 -102
  662. package/lib/cjs/components/resource/fixtures/comp1.d.ts +0 -30
  663. package/lib/cjs/components/resource/fixtures/comp1.js +0 -30
  664. package/lib/cjs/components/resource/fixtures/comp2.d.ts +0 -35
  665. package/lib/cjs/components/resource/fixtures/comp2.js +0 -31
  666. package/lib/cjs/components/resource/fixtures/index.d.ts +0 -3
  667. package/lib/cjs/components/resource/fixtures/index.js +0 -10
  668. package/lib/cjs/components/select/Select.d.ts +0 -145
  669. package/lib/cjs/components/select/Select.form.d.ts +0 -3
  670. package/lib/cjs/components/select/Select.form.js +0 -26
  671. package/lib/cjs/components/select/Select.js +0 -1466
  672. package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +0 -1039
  673. package/lib/cjs/components/select/editForm/Select.edit.data.js +0 -629
  674. package/lib/cjs/components/select/editForm/Select.edit.display.d.ts +0 -27
  675. package/lib/cjs/components/select/editForm/Select.edit.display.js +0 -28
  676. package/lib/cjs/components/select/editForm/Select.edit.validation.d.ts +0 -30
  677. package/lib/cjs/components/select/editForm/Select.edit.validation.js +0 -35
  678. package/lib/cjs/components/select/fixtures/comp1.d.ts +0 -40
  679. package/lib/cjs/components/select/fixtures/comp1.js +0 -66
  680. package/lib/cjs/components/select/fixtures/comp10.d.ts +0 -41
  681. package/lib/cjs/components/select/fixtures/comp10.js +0 -32
  682. package/lib/cjs/components/select/fixtures/comp11.d.ts +0 -28
  683. package/lib/cjs/components/select/fixtures/comp11.js +0 -24
  684. package/lib/cjs/components/select/fixtures/comp12.d.ts +0 -53
  685. package/lib/cjs/components/select/fixtures/comp12.js +0 -29
  686. package/lib/cjs/components/select/fixtures/comp13.d.ts +0 -28
  687. package/lib/cjs/components/select/fixtures/comp13.js +0 -31
  688. package/lib/cjs/components/select/fixtures/comp14.d.ts +0 -40
  689. package/lib/cjs/components/select/fixtures/comp14.js +0 -27
  690. package/lib/cjs/components/select/fixtures/comp15.d.ts +0 -50
  691. package/lib/cjs/components/select/fixtures/comp15.js +0 -41
  692. package/lib/cjs/components/select/fixtures/comp16.d.ts +0 -34
  693. package/lib/cjs/components/select/fixtures/comp16.js +0 -33
  694. package/lib/cjs/components/select/fixtures/comp17.d.ts +0 -51
  695. package/lib/cjs/components/select/fixtures/comp17.js +0 -43
  696. package/lib/cjs/components/select/fixtures/comp18.d.ts +0 -49
  697. package/lib/cjs/components/select/fixtures/comp18.js +0 -42
  698. package/lib/cjs/components/select/fixtures/comp19.d.ts +0 -23
  699. package/lib/cjs/components/select/fixtures/comp19.js +0 -36
  700. package/lib/cjs/components/select/fixtures/comp2.d.ts +0 -41
  701. package/lib/cjs/components/select/fixtures/comp2.js +0 -67
  702. package/lib/cjs/components/select/fixtures/comp3.d.ts +0 -35
  703. package/lib/cjs/components/select/fixtures/comp3.js +0 -209
  704. package/lib/cjs/components/select/fixtures/comp4.d.ts +0 -103
  705. package/lib/cjs/components/select/fixtures/comp4.js +0 -106
  706. package/lib/cjs/components/select/fixtures/comp5.d.ts +0 -21
  707. package/lib/cjs/components/select/fixtures/comp5.js +0 -28
  708. package/lib/cjs/components/select/fixtures/comp6.d.ts +0 -20
  709. package/lib/cjs/components/select/fixtures/comp6.js +0 -30
  710. package/lib/cjs/components/select/fixtures/comp7.d.ts +0 -63
  711. package/lib/cjs/components/select/fixtures/comp7.js +0 -46
  712. package/lib/cjs/components/select/fixtures/comp8.d.ts +0 -72
  713. package/lib/cjs/components/select/fixtures/comp8.js +0 -37
  714. package/lib/cjs/components/select/fixtures/comp9.d.ts +0 -88
  715. package/lib/cjs/components/select/fixtures/comp9.js +0 -67
  716. package/lib/cjs/components/select/fixtures/index.d.ts +0 -20
  717. package/lib/cjs/components/select/fixtures/index.js +0 -45
  718. package/lib/cjs/components/select/fixtures/values.d.ts +0 -2
  719. package/lib/cjs/components/select/fixtures/values.js +0 -7
  720. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +0 -52
  721. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +0 -3
  722. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +0 -25
  723. package/lib/cjs/components/selectboxes/SelectBoxes.js +0 -258
  724. package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +0 -9
  725. package/lib/cjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +0 -36
  726. package/lib/cjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
  727. package/lib/cjs/components/selectboxes/fixtures/comp1.js +0 -54
  728. package/lib/cjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
  729. package/lib/cjs/components/selectboxes/fixtures/comp2.js +0 -54
  730. package/lib/cjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
  731. package/lib/cjs/components/selectboxes/fixtures/comp3.js +0 -21
  732. package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
  733. package/lib/cjs/components/selectboxes/fixtures/comp4.js +0 -81
  734. package/lib/cjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
  735. package/lib/cjs/components/selectboxes/fixtures/comp5.js +0 -33
  736. package/lib/cjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
  737. package/lib/cjs/components/selectboxes/fixtures/comp6.js +0 -15
  738. package/lib/cjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
  739. package/lib/cjs/components/selectboxes/fixtures/comp7.js +0 -31
  740. package/lib/cjs/components/selectboxes/fixtures/index.d.ts +0 -8
  741. package/lib/cjs/components/selectboxes/fixtures/index.js +0 -20
  742. package/lib/cjs/components/selectboxes/fixtures/values.d.ts +0 -6
  743. package/lib/cjs/components/selectboxes/fixtures/values.js +0 -24
  744. package/lib/cjs/components/signature/Signature.d.ts +0 -46
  745. package/lib/cjs/components/signature/Signature.form.d.ts +0 -3
  746. package/lib/cjs/components/signature/Signature.form.js +0 -26
  747. package/lib/cjs/components/signature/Signature.js +0 -259
  748. package/lib/cjs/components/signature/editForm/Signature.edit.data.d.ts +0 -5
  749. package/lib/cjs/components/signature/editForm/Signature.edit.data.js +0 -16
  750. package/lib/cjs/components/signature/editForm/Signature.edit.display.d.ts +0 -51
  751. package/lib/cjs/components/signature/editForm/Signature.edit.display.js +0 -71
  752. package/lib/cjs/components/signature/editForm/Signature.edit.validation.d.ts +0 -5
  753. package/lib/cjs/components/signature/editForm/Signature.edit.validation.js +0 -12
  754. package/lib/cjs/components/signature/fixtures/comp1.d.ts +0 -30
  755. package/lib/cjs/components/signature/fixtures/comp1.js +0 -30
  756. package/lib/cjs/components/signature/fixtures/index.d.ts +0 -2
  757. package/lib/cjs/components/signature/fixtures/index.js +0 -8
  758. package/lib/cjs/components/signature/fixtures/values.d.ts +0 -2
  759. package/lib/cjs/components/signature/fixtures/values.js +0 -7
  760. package/lib/cjs/components/survey/Survey.d.ts +0 -37
  761. package/lib/cjs/components/survey/Survey.form.d.ts +0 -3
  762. package/lib/cjs/components/survey/Survey.form.js +0 -26
  763. package/lib/cjs/components/survey/Survey.js +0 -156
  764. package/lib/cjs/components/survey/editForm/Survey.edit.data.d.ts +0 -44
  765. package/lib/cjs/components/survey/editForm/Survey.edit.data.js +0 -72
  766. package/lib/cjs/components/survey/editForm/Survey.edit.display.d.ts +0 -5
  767. package/lib/cjs/components/survey/editForm/Survey.edit.display.js +0 -8
  768. package/lib/cjs/components/survey/editForm/Survey.edit.validation.d.ts +0 -5
  769. package/lib/cjs/components/survey/editForm/Survey.edit.validation.js +0 -8
  770. package/lib/cjs/components/survey/fixtures/comp1.d.ts +0 -31
  771. package/lib/cjs/components/survey/fixtures/comp1.js +0 -55
  772. package/lib/cjs/components/survey/fixtures/comp2.d.ts +0 -31
  773. package/lib/cjs/components/survey/fixtures/comp2.js +0 -55
  774. package/lib/cjs/components/survey/fixtures/index.d.ts +0 -3
  775. package/lib/cjs/components/survey/fixtures/index.js +0 -10
  776. package/lib/cjs/components/survey/fixtures/values.d.ts +0 -5
  777. package/lib/cjs/components/survey/fixtures/values.js +0 -12
  778. package/lib/cjs/components/table/Table.d.ts +0 -23
  779. package/lib/cjs/components/table/Table.form.d.ts +0 -3
  780. package/lib/cjs/components/table/Table.form.js +0 -16
  781. package/lib/cjs/components/table/Table.js +0 -175
  782. package/lib/cjs/components/table/editForm/Table.edit.display.d.ts +0 -55
  783. package/lib/cjs/components/table/editForm/Table.edit.display.js +0 -111
  784. package/lib/cjs/components/table/fixtures/comp1.d.ts +0 -53
  785. package/lib/cjs/components/table/fixtures/comp1.js +0 -237
  786. package/lib/cjs/components/table/fixtures/index.d.ts +0 -2
  787. package/lib/cjs/components/table/fixtures/index.js +0 -8
  788. package/lib/cjs/components/tabs/Tabs.d.ts +0 -30
  789. package/lib/cjs/components/tabs/Tabs.form.d.ts +0 -3
  790. package/lib/cjs/components/tabs/Tabs.form.js +0 -16
  791. package/lib/cjs/components/tabs/Tabs.js +0 -207
  792. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.d.ts +0 -49
  793. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +0 -68
  794. package/lib/cjs/components/tabs/fixtures/comp1.d.ts +0 -23
  795. package/lib/cjs/components/tabs/fixtures/comp1.js +0 -33
  796. package/lib/cjs/components/tabs/fixtures/index.d.ts +0 -2
  797. package/lib/cjs/components/tabs/fixtures/index.js +0 -8
  798. package/lib/cjs/components/tags/Tags.d.ts +0 -41
  799. package/lib/cjs/components/tags/Tags.form.d.ts +0 -3
  800. package/lib/cjs/components/tags/Tags.form.js +0 -16
  801. package/lib/cjs/components/tags/Tags.js +0 -174
  802. package/lib/cjs/components/tags/editForm/Tags.edit.data.d.ts +0 -51
  803. package/lib/cjs/components/tags/editForm/Tags.edit.data.js +0 -39
  804. package/lib/cjs/components/tags/fixtures/comp1.d.ts +0 -20
  805. package/lib/cjs/components/tags/fixtures/comp1.js +0 -20
  806. package/lib/cjs/components/tags/fixtures/comp2.d.ts +0 -10
  807. package/lib/cjs/components/tags/fixtures/comp2.js +0 -11
  808. package/lib/cjs/components/tags/fixtures/comp3.d.ts +0 -23
  809. package/lib/cjs/components/tags/fixtures/comp3.js +0 -20
  810. package/lib/cjs/components/tags/fixtures/comp4.d.ts +0 -9
  811. package/lib/cjs/components/tags/fixtures/comp4.js +0 -10
  812. package/lib/cjs/components/tags/fixtures/comp5.d.ts +0 -24
  813. package/lib/cjs/components/tags/fixtures/comp5.js +0 -24
  814. package/lib/cjs/components/tags/fixtures/comp6.d.ts +0 -17
  815. package/lib/cjs/components/tags/fixtures/comp6.js +0 -20
  816. package/lib/cjs/components/tags/fixtures/index.d.ts +0 -7
  817. package/lib/cjs/components/tags/fixtures/index.js +0 -18
  818. package/lib/cjs/components/tags/fixtures/values.d.ts +0 -2
  819. package/lib/cjs/components/tags/fixtures/values.js +0 -6
  820. package/lib/cjs/components/textarea/TextArea.d.ts +0 -37
  821. package/lib/cjs/components/textarea/TextArea.form.d.ts +0 -3
  822. package/lib/cjs/components/textarea/TextArea.form.js +0 -21
  823. package/lib/cjs/components/textarea/TextArea.js +0 -537
  824. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.d.ts +0 -355
  825. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +0 -263
  826. package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.d.ts +0 -10
  827. package/lib/cjs/components/textarea/editForm/TextArea.edit.validation.js +0 -22
  828. package/lib/cjs/components/textarea/fixtures/comp1.d.ts +0 -31
  829. package/lib/cjs/components/textarea/fixtures/comp1.js +0 -31
  830. package/lib/cjs/components/textarea/fixtures/comp2.d.ts +0 -29
  831. package/lib/cjs/components/textarea/fixtures/comp2.js +0 -29
  832. package/lib/cjs/components/textarea/fixtures/comp3.d.ts +0 -27
  833. package/lib/cjs/components/textarea/fixtures/comp3.js +0 -29
  834. package/lib/cjs/components/textarea/fixtures/comp4.d.ts +0 -30
  835. package/lib/cjs/components/textarea/fixtures/comp4.js +0 -27
  836. package/lib/cjs/components/textarea/fixtures/index.d.ts +0 -5
  837. package/lib/cjs/components/textarea/fixtures/index.js +0 -14
  838. package/lib/cjs/components/textarea/fixtures/values.d.ts +0 -2
  839. package/lib/cjs/components/textarea/fixtures/values.js +0 -6
  840. package/lib/cjs/components/textfield/TextField.d.ts +0 -60
  841. package/lib/cjs/components/textfield/TextField.form.d.ts +0 -3
  842. package/lib/cjs/components/textfield/TextField.form.js +0 -26
  843. package/lib/cjs/components/textfield/TextField.js +0 -251
  844. package/lib/cjs/components/textfield/editForm/TextField.edit.data.d.ts +0 -46
  845. package/lib/cjs/components/textfield/editForm/TextField.edit.data.js +0 -58
  846. package/lib/cjs/components/textfield/editForm/TextField.edit.display.d.ts +0 -248
  847. package/lib/cjs/components/textfield/editForm/TextField.edit.display.js +0 -208
  848. package/lib/cjs/components/textfield/editForm/TextField.edit.validation.d.ts +0 -10
  849. package/lib/cjs/components/textfield/editForm/TextField.edit.validation.js +0 -49
  850. package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
  851. package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -48
  852. package/lib/cjs/components/textfield/fixtures/comp1.d.ts +0 -33
  853. package/lib/cjs/components/textfield/fixtures/comp1.js +0 -33
  854. package/lib/cjs/components/textfield/fixtures/comp2.d.ts +0 -33
  855. package/lib/cjs/components/textfield/fixtures/comp2.js +0 -33
  856. package/lib/cjs/components/textfield/fixtures/comp3.d.ts +0 -33
  857. package/lib/cjs/components/textfield/fixtures/comp3.js +0 -33
  858. package/lib/cjs/components/textfield/fixtures/comp4.d.ts +0 -23
  859. package/lib/cjs/components/textfield/fixtures/comp4.js +0 -27
  860. package/lib/cjs/components/textfield/fixtures/comp5.d.ts +0 -12
  861. package/lib/cjs/components/textfield/fixtures/comp5.js +0 -13
  862. package/lib/cjs/components/textfield/fixtures/comp6.d.ts +0 -25
  863. package/lib/cjs/components/textfield/fixtures/comp6.js +0 -21
  864. package/lib/cjs/components/textfield/fixtures/comp7.d.ts +0 -37
  865. package/lib/cjs/components/textfield/fixtures/comp7.js +0 -38
  866. package/lib/cjs/components/textfield/fixtures/index.d.ts +0 -9
  867. package/lib/cjs/components/textfield/fixtures/index.js +0 -22
  868. package/lib/cjs/components/textfield/fixtures/values.d.ts +0 -2
  869. package/lib/cjs/components/textfield/fixtures/values.js +0 -7
  870. package/lib/cjs/components/time/Time.d.ts +0 -27
  871. package/lib/cjs/components/time/Time.form.d.ts +0 -3
  872. package/lib/cjs/components/time/Time.form.js +0 -21
  873. package/lib/cjs/components/time/Time.js +0 -153
  874. package/lib/cjs/components/time/editForm/Time.edit.data.d.ts +0 -10
  875. package/lib/cjs/components/time/editForm/Time.edit.data.js +0 -13
  876. package/lib/cjs/components/time/editForm/Time.edit.display.d.ts +0 -52
  877. package/lib/cjs/components/time/editForm/Time.edit.display.js +0 -42
  878. package/lib/cjs/components/time/fixtures/comp1.d.ts +0 -24
  879. package/lib/cjs/components/time/fixtures/comp1.js +0 -24
  880. package/lib/cjs/components/time/fixtures/comp2.d.ts +0 -10
  881. package/lib/cjs/components/time/fixtures/comp2.js +0 -11
  882. package/lib/cjs/components/time/fixtures/comp3.d.ts +0 -15
  883. package/lib/cjs/components/time/fixtures/comp3.js +0 -18
  884. package/lib/cjs/components/time/fixtures/index.d.ts +0 -6
  885. package/lib/cjs/components/time/fixtures/index.js +0 -16
  886. package/lib/cjs/components/time/fixtures/timeForm.d.ts +0 -47
  887. package/lib/cjs/components/time/fixtures/timeForm.js +0 -52
  888. package/lib/cjs/components/time/fixtures/timeForm2.d.ts +0 -38
  889. package/lib/cjs/components/time/fixtures/timeForm2.js +0 -44
  890. package/lib/cjs/components/time/fixtures/values.d.ts +0 -2
  891. package/lib/cjs/components/time/fixtures/values.js +0 -7
  892. package/lib/cjs/components/tree/Node.d.ts +0 -55
  893. package/lib/cjs/components/tree/Node.js +0 -185
  894. package/lib/cjs/components/tree/Tree.d.ts +0 -48
  895. package/lib/cjs/components/tree/Tree.form.d.ts +0 -3
  896. package/lib/cjs/components/tree/Tree.form.js +0 -21
  897. package/lib/cjs/components/tree/Tree.js +0 -383
  898. package/lib/cjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
  899. package/lib/cjs/components/tree/editForm/Tree.edit.data.js +0 -9
  900. package/lib/cjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
  901. package/lib/cjs/components/tree/editForm/Tree.edit.display.js +0 -12
  902. package/lib/cjs/components/tree/fixtures/comp1.d.ts +0 -23
  903. package/lib/cjs/components/tree/fixtures/comp1.js +0 -24
  904. package/lib/cjs/components/tree/fixtures/comp2.d.ts +0 -116
  905. package/lib/cjs/components/tree/fixtures/comp2.js +0 -82
  906. package/lib/cjs/components/tree/fixtures/comp3.d.ts +0 -24
  907. package/lib/cjs/components/tree/fixtures/comp3.js +0 -25
  908. package/lib/cjs/components/tree/fixtures/comp4.d.ts +0 -42
  909. package/lib/cjs/components/tree/fixtures/comp4.js +0 -47
  910. package/lib/cjs/components/tree/fixtures/index.d.ts +0 -5
  911. package/lib/cjs/components/tree/fixtures/index.js +0 -14
  912. package/lib/cjs/components/unknown/Unknown.d.ts +0 -28
  913. package/lib/cjs/components/unknown/Unknown.form.d.ts +0 -34
  914. package/lib/cjs/components/unknown/Unknown.form.js +0 -25
  915. package/lib/cjs/components/unknown/Unknown.js +0 -30
  916. package/lib/cjs/components/unknown/editForm/Unknown.edit.display.d.ts +0 -24
  917. package/lib/cjs/components/unknown/editForm/Unknown.edit.display.js +0 -27
  918. package/lib/cjs/components/unknown/fixtures/comp1.d.ts +0 -7
  919. package/lib/cjs/components/unknown/fixtures/comp1.js +0 -8
  920. package/lib/cjs/components/unknown/fixtures/index.d.ts +0 -2
  921. package/lib/cjs/components/unknown/fixtures/index.js +0 -8
  922. package/lib/cjs/components/url/Url.d.ts +0 -3
  923. package/lib/cjs/components/url/Url.form.d.ts +0 -3
  924. package/lib/cjs/components/url/Url.form.js +0 -26
  925. package/lib/cjs/components/url/Url.js +0 -39
  926. package/lib/cjs/components/url/editForm/Url.edit.data.d.ts +0 -5
  927. package/lib/cjs/components/url/editForm/Url.edit.data.js +0 -8
  928. package/lib/cjs/components/url/editForm/Url.edit.display.d.ts +0 -5
  929. package/lib/cjs/components/url/editForm/Url.edit.display.js +0 -20
  930. package/lib/cjs/components/url/editForm/Url.edit.validation.d.ts +0 -5
  931. package/lib/cjs/components/url/editForm/Url.edit.validation.js +0 -12
  932. package/lib/cjs/components/url/fixtures/comp1.d.ts +0 -26
  933. package/lib/cjs/components/url/fixtures/comp1.js +0 -26
  934. package/lib/cjs/components/url/fixtures/comp2.d.ts +0 -26
  935. package/lib/cjs/components/url/fixtures/comp2.js +0 -23
  936. package/lib/cjs/components/url/fixtures/index.d.ts +0 -3
  937. package/lib/cjs/components/url/fixtures/index.js +0 -10
  938. package/lib/cjs/components/url/fixtures/values.d.ts +0 -2
  939. package/lib/cjs/components/url/fixtures/values.js +0 -6
  940. package/lib/cjs/components/well/Well.d.ts +0 -15
  941. package/lib/cjs/components/well/Well.form.d.ts +0 -3
  942. package/lib/cjs/components/well/Well.form.js +0 -16
  943. package/lib/cjs/components/well/Well.js +0 -45
  944. package/lib/cjs/components/well/editForm/Well.edit.display.d.ts +0 -5
  945. package/lib/cjs/components/well/editForm/Well.edit.display.js +0 -32
  946. package/lib/cjs/components/well/fixtures/comp1.d.ts +0 -43
  947. package/lib/cjs/components/well/fixtures/comp1.js +0 -77
  948. package/lib/cjs/components/well/fixtures/index.d.ts +0 -2
  949. package/lib/cjs/components/well/fixtures/index.js +0 -8
  950. package/lib/cjs/displays/Displays.d.ts +0 -18
  951. package/lib/cjs/displays/Displays.js +0 -29
  952. package/lib/cjs/displays/index.d.ts +0 -2
  953. package/lib/cjs/displays/index.js +0 -7
  954. package/lib/cjs/formio.embed.d.ts +0 -2
  955. package/lib/cjs/formio.embed.js +0 -100
  956. package/lib/cjs/formio.form.d.ts +0 -23
  957. package/lib/cjs/formio.form.js +0 -167
  958. package/lib/cjs/i18n.d.ts +0 -13
  959. package/lib/cjs/i18n.js +0 -19
  960. package/lib/cjs/index.d.ts +0 -4
  961. package/lib/cjs/index.js +0 -34
  962. package/lib/cjs/licenses/Licenses.d.ts +0 -7
  963. package/lib/cjs/licenses/Licenses.js +0 -22
  964. package/lib/cjs/licenses/index.d.ts +0 -2
  965. package/lib/cjs/licenses/index.js +0 -7
  966. package/lib/cjs/package.json +0 -3
  967. package/lib/cjs/pdf.image.d.ts +0 -2
  968. package/lib/cjs/pdf.image.js +0 -94
  969. package/lib/cjs/providers/Providers.d.ts +0 -84
  970. package/lib/cjs/providers/Providers.js +0 -34
  971. package/lib/cjs/providers/address/AddressProvider.d.ts +0 -17
  972. package/lib/cjs/providers/address/AddressProvider.js +0 -61
  973. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +0 -12
  974. package/lib/cjs/providers/address/AzureAddressProvider.js +0 -31
  975. package/lib/cjs/providers/address/CustomAddressProvider.d.ts +0 -7
  976. package/lib/cjs/providers/address/CustomAddressProvider.js +0 -26
  977. package/lib/cjs/providers/address/GoogleAddressProvider.d.ts +0 -18
  978. package/lib/cjs/providers/address/GoogleAddressProvider.js +0 -117
  979. package/lib/cjs/providers/address/NominatimAddressProvider.d.ts +0 -11
  980. package/lib/cjs/providers/address/NominatimAddressProvider.js +0 -31
  981. package/lib/cjs/providers/address/index.d.ts +0 -6
  982. package/lib/cjs/providers/address/index.js +0 -12
  983. package/lib/cjs/providers/auth/index.d.ts +0 -2
  984. package/lib/cjs/providers/auth/index.js +0 -3
  985. package/lib/cjs/providers/index.d.ts +0 -2
  986. package/lib/cjs/providers/index.js +0 -7
  987. package/lib/cjs/providers/processor/fileProcessor.d.ts +0 -2
  988. package/lib/cjs/providers/processor/fileProcessor.js +0 -40
  989. package/lib/cjs/providers/storage/azure.d.ts +0 -17
  990. package/lib/cjs/providers/storage/azure.js +0 -35
  991. package/lib/cjs/providers/storage/base64.d.ts +0 -10
  992. package/lib/cjs/providers/storage/base64.js +0 -31
  993. package/lib/cjs/providers/storage/dropbox.d.ts +0 -8
  994. package/lib/cjs/providers/storage/dropbox.js +0 -57
  995. package/lib/cjs/providers/storage/googleDrive.d.ts +0 -9
  996. package/lib/cjs/providers/storage/googleDrive.js +0 -60
  997. package/lib/cjs/providers/storage/index.d.ts +0 -15
  998. package/lib/cjs/providers/storage/index.js +0 -19
  999. package/lib/cjs/providers/storage/indexeddb.d.ts +0 -11
  1000. package/lib/cjs/providers/storage/indexeddb.js +0 -120
  1001. package/lib/cjs/providers/storage/s3.d.ts +0 -18
  1002. package/lib/cjs/providers/storage/s3.js +0 -53
  1003. package/lib/cjs/providers/storage/uploadAdapter.d.ts +0 -1
  1004. package/lib/cjs/providers/storage/uploadAdapter.js +0 -57
  1005. package/lib/cjs/providers/storage/url.d.ts +0 -11
  1006. package/lib/cjs/providers/storage/url.js +0 -142
  1007. package/lib/cjs/providers/storage/xhr.d.ts +0 -7
  1008. package/lib/cjs/providers/storage/xhr.js +0 -100
  1009. package/lib/cjs/templates/Templates.d.ts +0 -11
  1010. package/lib/cjs/templates/Templates.js +0 -47
  1011. package/lib/cjs/templates/index.d.ts +0 -229
  1012. package/lib/cjs/templates/index.js +0 -9
  1013. package/lib/cjs/translations/en.d.ts +0 -66
  1014. package/lib/cjs/translations/en.js +0 -67
  1015. package/lib/cjs/utils/ChoicesWrapper.d.ts +0 -38
  1016. package/lib/cjs/utils/ChoicesWrapper.js +0 -194
  1017. package/lib/cjs/utils/Evaluator.d.ts +0 -4
  1018. package/lib/cjs/utils/Evaluator.js +0 -69
  1019. package/lib/cjs/utils/builder.d.ts +0 -22
  1020. package/lib/cjs/utils/builder.js +0 -84
  1021. package/lib/cjs/utils/calendarUtils.d.ts +0 -41
  1022. package/lib/cjs/utils/calendarUtils.js +0 -136
  1023. package/lib/cjs/utils/conditionOperators/ConditionOperator.d.ts +0 -7
  1024. package/lib/cjs/utils/conditionOperators/ConditionOperator.js +0 -29
  1025. package/lib/cjs/utils/conditionOperators/DateGreaterThan.d.ts +0 -13
  1026. package/lib/cjs/utils/conditionOperators/DateGreaterThan.js +0 -37
  1027. package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +0 -4
  1028. package/lib/cjs/utils/conditionOperators/DateGreaterThanOrEqual.js +0 -18
  1029. package/lib/cjs/utils/conditionOperators/DateLessThan.d.ts +0 -4
  1030. package/lib/cjs/utils/conditionOperators/DateLessThan.js +0 -18
  1031. package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +0 -4
  1032. package/lib/cjs/utils/conditionOperators/DateLessThanOrEqual.js +0 -18
  1033. package/lib/cjs/utils/conditionOperators/EndsWith.d.ts +0 -7
  1034. package/lib/cjs/utils/conditionOperators/EndsWith.js +0 -19
  1035. package/lib/cjs/utils/conditionOperators/GreaterThan.d.ts +0 -7
  1036. package/lib/cjs/utils/conditionOperators/GreaterThan.js +0 -19
  1037. package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +0 -7
  1038. package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.js +0 -19
  1039. package/lib/cjs/utils/conditionOperators/Includes.d.ts +0 -7
  1040. package/lib/cjs/utils/conditionOperators/Includes.js +0 -19
  1041. package/lib/cjs/utils/conditionOperators/IsDateEqual.d.ts +0 -4
  1042. package/lib/cjs/utils/conditionOperators/IsDateEqual.js +0 -18
  1043. package/lib/cjs/utils/conditionOperators/IsEmptyValue.d.ts +0 -9
  1044. package/lib/cjs/utils/conditionOperators/IsEmptyValue.js +0 -30
  1045. package/lib/cjs/utils/conditionOperators/IsEqualTo.d.ts +0 -7
  1046. package/lib/cjs/utils/conditionOperators/IsEqualTo.js +0 -30
  1047. package/lib/cjs/utils/conditionOperators/IsNotDateEqual.d.ts +0 -4
  1048. package/lib/cjs/utils/conditionOperators/IsNotDateEqual.js +0 -18
  1049. package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.d.ts +0 -4
  1050. package/lib/cjs/utils/conditionOperators/IsNotEmptyValue.js +0 -18
  1051. package/lib/cjs/utils/conditionOperators/IsNotEqualTo.d.ts +0 -7
  1052. package/lib/cjs/utils/conditionOperators/IsNotEqualTo.js +0 -19
  1053. package/lib/cjs/utils/conditionOperators/LessThan.d.ts +0 -7
  1054. package/lib/cjs/utils/conditionOperators/LessThan.js +0 -19
  1055. package/lib/cjs/utils/conditionOperators/LessThanOrEqual.d.ts +0 -7
  1056. package/lib/cjs/utils/conditionOperators/LessThanOrEqual.js +0 -19
  1057. package/lib/cjs/utils/conditionOperators/NotIncludes.d.ts +0 -4
  1058. package/lib/cjs/utils/conditionOperators/NotIncludes.js +0 -18
  1059. package/lib/cjs/utils/conditionOperators/StartsWith.d.ts +0 -7
  1060. package/lib/cjs/utils/conditionOperators/StartsWith.js +0 -19
  1061. package/lib/cjs/utils/conditionOperators/index.d.ts +0 -7
  1062. package/lib/cjs/utils/conditionOperators/index.js +0 -44
  1063. package/lib/cjs/utils/formUtils.d.ts +0 -173
  1064. package/lib/cjs/utils/formUtils.js +0 -583
  1065. package/lib/cjs/utils/i18n.d.ts +0 -16
  1066. package/lib/cjs/utils/i18n.js +0 -88
  1067. package/lib/cjs/utils/index.d.ts +0 -2
  1068. package/lib/cjs/utils/index.js +0 -30
  1069. package/lib/cjs/utils/jsonlogic/operators.d.ts +0 -1
  1070. package/lib/cjs/utils/jsonlogic/operators.js +0 -265
  1071. package/lib/cjs/utils/utils.d.ts +0 -374
  1072. package/lib/cjs/utils/utils.js +0 -1487
  1073. package/lib/cjs/validator/Rules.d.ts +0 -53
  1074. package/lib/cjs/validator/Rules.js +0 -22
  1075. package/lib/cjs/validator/Validator.d.ts +0 -228
  1076. package/lib/cjs/validator/Validator.js +0 -1113
  1077. package/lib/cjs/validator/conjunctions/index.d.ts +0 -7
  1078. package/lib/cjs/validator/conjunctions/index.js +0 -18
  1079. package/lib/cjs/validator/operators/index.d.ts +0 -7
  1080. package/lib/cjs/validator/operators/index.js +0 -18
  1081. package/lib/cjs/validator/quickRules/index.d.ts +0 -7
  1082. package/lib/cjs/validator/quickRules/index.js +0 -18
  1083. package/lib/cjs/validator/rules/Custom.d.ts +0 -5
  1084. package/lib/cjs/validator/rules/Custom.js +0 -30
  1085. package/lib/cjs/validator/rules/Date.d.ts +0 -5
  1086. package/lib/cjs/validator/rules/Date.js +0 -25
  1087. package/lib/cjs/validator/rules/Day.d.ts +0 -5
  1088. package/lib/cjs/validator/rules/Day.js +0 -58
  1089. package/lib/cjs/validator/rules/Email.d.ts +0 -5
  1090. package/lib/cjs/validator/rules/Email.js +0 -24
  1091. package/lib/cjs/validator/rules/JSON.d.ts +0 -5
  1092. package/lib/cjs/validator/rules/JSON.js +0 -29
  1093. package/lib/cjs/validator/rules/Mask.d.ts +0 -5
  1094. package/lib/cjs/validator/rules/Mask.js +0 -32
  1095. package/lib/cjs/validator/rules/Max.d.ts +0 -5
  1096. package/lib/cjs/validator/rules/Max.js +0 -21
  1097. package/lib/cjs/validator/rules/MaxDate.d.ts +0 -5
  1098. package/lib/cjs/validator/rules/MaxDate.js +0 -34
  1099. package/lib/cjs/validator/rules/MaxLength.d.ts +0 -5
  1100. package/lib/cjs/validator/rules/MaxLength.js +0 -20
  1101. package/lib/cjs/validator/rules/MaxWords.d.ts +0 -5
  1102. package/lib/cjs/validator/rules/MaxWords.js +0 -20
  1103. package/lib/cjs/validator/rules/MaxYear.d.ts +0 -5
  1104. package/lib/cjs/validator/rules/MaxYear.js +0 -22
  1105. package/lib/cjs/validator/rules/Min.d.ts +0 -5
  1106. package/lib/cjs/validator/rules/Min.js +0 -21
  1107. package/lib/cjs/validator/rules/MinDate.d.ts +0 -5
  1108. package/lib/cjs/validator/rules/MinDate.js +0 -30
  1109. package/lib/cjs/validator/rules/MinLength.d.ts +0 -5
  1110. package/lib/cjs/validator/rules/MinLength.js +0 -20
  1111. package/lib/cjs/validator/rules/MinWords.d.ts +0 -5
  1112. package/lib/cjs/validator/rules/MinWords.js +0 -20
  1113. package/lib/cjs/validator/rules/MinYear.d.ts +0 -5
  1114. package/lib/cjs/validator/rules/MinYear.js +0 -22
  1115. package/lib/cjs/validator/rules/Pattern.d.ts +0 -5
  1116. package/lib/cjs/validator/rules/Pattern.js +0 -20
  1117. package/lib/cjs/validator/rules/Required.d.ts +0 -5
  1118. package/lib/cjs/validator/rules/Required.js +0 -17
  1119. package/lib/cjs/validator/rules/Rule.d.ts +0 -7
  1120. package/lib/cjs/validator/rules/Rule.js +0 -12
  1121. package/lib/cjs/validator/rules/Select.d.ts +0 -5
  1122. package/lib/cjs/validator/rules/Select.js +0 -95
  1123. package/lib/cjs/validator/rules/Time.d.ts +0 -5
  1124. package/lib/cjs/validator/rules/Time.js +0 -19
  1125. package/lib/cjs/validator/rules/Unique.d.ts +0 -5
  1126. package/lib/cjs/validator/rules/Unique.js +0 -69
  1127. package/lib/cjs/validator/rules/Url.d.ts +0 -5
  1128. package/lib/cjs/validator/rules/Url.js +0 -23
  1129. package/lib/cjs/validator/rules/index.d.ts +0 -47
  1130. package/lib/cjs/validator/rules/index.js +0 -51
  1131. package/lib/cjs/validator/transformers/index.d.ts +0 -7
  1132. package/lib/cjs/validator/transformers/index.js +0 -18
  1133. package/lib/cjs/validator/valueSources/index.d.ts +0 -7
  1134. package/lib/cjs/validator/valueSources/index.js +0 -18
  1135. package/lib/cjs/widgets/CalendarWidget.d.ts +0 -97
  1136. package/lib/cjs/widgets/CalendarWidget.js +0 -468
  1137. package/lib/cjs/widgets/InputWidget.d.ts +0 -24
  1138. package/lib/cjs/widgets/InputWidget.js +0 -74
  1139. package/lib/cjs/widgets/index.d.ts +0 -7
  1140. package/lib/cjs/widgets/index.js +0 -11
  1141. package/lib/mjs/CDN.d.ts +0 -29
  1142. package/lib/mjs/CDN.js +0 -75
  1143. package/lib/mjs/Element.d.ts +0 -255
  1144. package/lib/mjs/Element.js +0 -571
  1145. package/lib/mjs/Embed.d.ts +0 -43
  1146. package/lib/mjs/Embed.js +0 -298
  1147. package/lib/mjs/EventEmitter.d.ts +0 -7
  1148. package/lib/mjs/EventEmitter.js +0 -26
  1149. package/lib/mjs/Form.d.ts +0 -93
  1150. package/lib/mjs/Form.js +0 -350
  1151. package/lib/mjs/FormBuilder.d.ts +0 -6
  1152. package/lib/mjs/FormBuilder.js +0 -34
  1153. package/lib/mjs/Formio.d.ts +0 -2
  1154. package/lib/mjs/Formio.js +0 -89
  1155. package/lib/mjs/PDF.d.ts +0 -40
  1156. package/lib/mjs/PDF.js +0 -284
  1157. package/lib/mjs/PDFBuilder.d.ts +0 -55
  1158. package/lib/mjs/PDFBuilder.js +0 -473
  1159. package/lib/mjs/Webform.d.ts +0 -405
  1160. package/lib/mjs/Webform.js +0 -1431
  1161. package/lib/mjs/WebformBuilder.d.ts +0 -126
  1162. package/lib/mjs/WebformBuilder.js +0 -1576
  1163. package/lib/mjs/Wizard.d.ts +0 -96
  1164. package/lib/mjs/Wizard.js +0 -904
  1165. package/lib/mjs/WizardBuilder.d.ts +0 -48
  1166. package/lib/mjs/WizardBuilder.js +0 -262
  1167. package/lib/mjs/addons/FormioAddon.d.ts +0 -19
  1168. package/lib/mjs/addons/FormioAddon.js +0 -30
  1169. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.d.ts +0 -717
  1170. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.d.ts +0 -590
  1171. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.form.js +0 -311
  1172. package/lib/mjs/addons/PasswordStrength/PasswordStrengthAddon.js +0 -388
  1173. package/lib/mjs/addons/index.d.ts +0 -625
  1174. package/lib/mjs/addons/index.js +0 -19
  1175. package/lib/mjs/builders/Builders.d.ts +0 -18
  1176. package/lib/mjs/builders/Builders.js +0 -24
  1177. package/lib/mjs/builders/index.d.ts +0 -2
  1178. package/lib/mjs/builders/index.js +0 -2
  1179. package/lib/mjs/components/Components.d.ts +0 -258
  1180. package/lib/mjs/components/Components.js +0 -75
  1181. package/lib/mjs/components/_classes/component/Component.d.ts +0 -798
  1182. package/lib/mjs/components/_classes/component/Component.form.d.ts +0 -3
  1183. package/lib/mjs/components/_classes/component/Component.form.js +0 -71
  1184. package/lib/mjs/components/_classes/component/Component.js +0 -3164
  1185. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.d.ts +0 -645
  1186. package/lib/mjs/components/_classes/component/editForm/Component.edit.addons.js +0 -39
  1187. package/lib/mjs/components/_classes/component/editForm/Component.edit.api.d.ts +0 -42
  1188. package/lib/mjs/components/_classes/component/editForm/Component.edit.api.js +0 -38
  1189. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.d.ts +0 -113
  1190. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +0 -50
  1191. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.d.ts +0 -219
  1192. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +0 -156
  1193. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.d.ts +0 -160
  1194. package/lib/mjs/components/_classes/component/editForm/Component.edit.display.js +0 -199
  1195. package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.d.ts +0 -44
  1196. package/lib/mjs/components/_classes/component/editForm/Component.edit.layout.js +0 -77
  1197. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.d.ts +0 -368
  1198. package/lib/mjs/components/_classes/component/editForm/Component.edit.logic.js +0 -410
  1199. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.d.ts +0 -140
  1200. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +0 -204
  1201. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +0 -83
  1202. package/lib/mjs/components/_classes/component/editForm/utils.js +0 -132
  1203. package/lib/mjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
  1204. package/lib/mjs/components/_classes/component/fixtures/comp1.js +0 -31
  1205. package/lib/mjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
  1206. package/lib/mjs/components/_classes/component/fixtures/comp2.js +0 -31
  1207. package/lib/mjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
  1208. package/lib/mjs/components/_classes/component/fixtures/comp3.js +0 -12
  1209. package/lib/mjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
  1210. package/lib/mjs/components/_classes/component/fixtures/comp4.js +0 -16
  1211. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +0 -5
  1212. package/lib/mjs/components/_classes/component/fixtures/index.js +0 -5
  1213. package/lib/mjs/components/_classes/componentModal/ComponentModal.d.ts +0 -46
  1214. package/lib/mjs/components/_classes/componentModal/ComponentModal.js +0 -177
  1215. package/lib/mjs/components/_classes/field/Field.d.ts +0 -5
  1216. package/lib/mjs/components/_classes/field/Field.js +0 -34
  1217. package/lib/mjs/components/_classes/input/Input.d.ts +0 -42
  1218. package/lib/mjs/components/_classes/input/Input.js +0 -296
  1219. package/lib/mjs/components/_classes/list/ListComponent.d.ts +0 -18
  1220. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +0 -3
  1221. package/lib/mjs/components/_classes/list/ListComponent.form.js +0 -10
  1222. package/lib/mjs/components/_classes/list/ListComponent.js +0 -249
  1223. package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.d.ts +0 -183
  1224. package/lib/mjs/components/_classes/list/editForm/ListComponent.edit.data.js +0 -117
  1225. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +0 -29
  1226. package/lib/mjs/components/_classes/multivalue/Multivalue.js +0 -249
  1227. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +0 -133
  1228. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +0 -3
  1229. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -13
  1230. package/lib/mjs/components/_classes/nested/NestedComponent.js +0 -686
  1231. package/lib/mjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
  1232. package/lib/mjs/components/_classes/nested/fixtures/comp1.js +0 -14
  1233. package/lib/mjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
  1234. package/lib/mjs/components/_classes/nested/fixtures/comp2.js +0 -225
  1235. package/lib/mjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
  1236. package/lib/mjs/components/_classes/nested/fixtures/comp3.js +0 -27
  1237. package/lib/mjs/components/_classes/nested/fixtures/index.d.ts +0 -3
  1238. package/lib/mjs/components/_classes/nested/fixtures/index.js +0 -3
  1239. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +0 -15
  1240. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.js +0 -178
  1241. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -12
  1242. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +0 -128
  1243. package/lib/mjs/components/address/Address.d.ts +0 -66
  1244. package/lib/mjs/components/address/Address.form.d.ts +0 -3
  1245. package/lib/mjs/components/address/Address.form.js +0 -22
  1246. package/lib/mjs/components/address/Address.js +0 -541
  1247. package/lib/mjs/components/address/editForm/Address.edit.data.d.ts +0 -31
  1248. package/lib/mjs/components/address/editForm/Address.edit.data.js +0 -21
  1249. package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +0 -49
  1250. package/lib/mjs/components/address/editForm/Address.edit.display.js +0 -42
  1251. package/lib/mjs/components/address/editForm/Address.edit.provider.d.ts +0 -164
  1252. package/lib/mjs/components/address/editForm/Address.edit.provider.js +0 -151
  1253. package/lib/mjs/components/address/fixtures/comp1.d.ts +0 -34
  1254. package/lib/mjs/components/address/fixtures/comp1.js +0 -69
  1255. package/lib/mjs/components/address/fixtures/comp2.d.ts +0 -62
  1256. package/lib/mjs/components/address/fixtures/comp2.js +0 -101
  1257. package/lib/mjs/components/address/fixtures/comp3.d.ts +0 -44
  1258. package/lib/mjs/components/address/fixtures/comp3.js +0 -83
  1259. package/lib/mjs/components/address/fixtures/comp4.d.ts +0 -56
  1260. package/lib/mjs/components/address/fixtures/comp4.js +0 -91
  1261. package/lib/mjs/components/address/fixtures/index.d.ts +0 -5
  1262. package/lib/mjs/components/address/fixtures/index.js +0 -5
  1263. package/lib/mjs/components/address/fixtures/values.d.ts +0 -22
  1264. package/lib/mjs/components/address/fixtures/values.js +0 -17
  1265. package/lib/mjs/components/alert/Alert.d.ts +0 -30
  1266. package/lib/mjs/components/alert/Alert.js +0 -176
  1267. package/lib/mjs/components/builder.d.ts +0 -2
  1268. package/lib/mjs/components/builder.js +0 -86
  1269. package/lib/mjs/components/button/Button.d.ts +0 -45
  1270. package/lib/mjs/components/button/Button.form.d.ts +0 -3
  1271. package/lib/mjs/components/button/Button.form.js +0 -18
  1272. package/lib/mjs/components/button/Button.js +0 -460
  1273. package/lib/mjs/components/button/editForm/Button.edit.display.d.ts +0 -360
  1274. package/lib/mjs/components/button/editForm/Button.edit.display.js +0 -247
  1275. package/lib/mjs/components/button/fixtures/comp1.d.ts +0 -15
  1276. package/lib/mjs/components/button/fixtures/comp1.js +0 -14
  1277. package/lib/mjs/components/button/fixtures/comp2.d.ts +0 -25
  1278. package/lib/mjs/components/button/fixtures/comp2.js +0 -55
  1279. package/lib/mjs/components/button/fixtures/comp3.d.ts +0 -113
  1280. package/lib/mjs/components/button/fixtures/comp3.js +0 -82
  1281. package/lib/mjs/components/button/fixtures/index.d.ts +0 -4
  1282. package/lib/mjs/components/button/fixtures/index.js +0 -4
  1283. package/lib/mjs/components/button/fixtures/values.d.ts +0 -2
  1284. package/lib/mjs/components/button/fixtures/values.js +0 -4
  1285. package/lib/mjs/components/checkbox/Checkbox.d.ts +0 -77
  1286. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +0 -3
  1287. package/lib/mjs/components/checkbox/Checkbox.form.js +0 -20
  1288. package/lib/mjs/components/checkbox/Checkbox.js +0 -219
  1289. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.d.ts +0 -5
  1290. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.data.js +0 -6
  1291. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.d.ts +0 -75
  1292. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.display.js +0 -74
  1293. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.d.ts +0 -5
  1294. package/lib/mjs/components/checkbox/editForm/Checkbox.edit.validation.js +0 -10
  1295. package/lib/mjs/components/checkbox/fixtures/comp1.d.ts +0 -24
  1296. package/lib/mjs/components/checkbox/fixtures/comp1.js +0 -22
  1297. package/lib/mjs/components/checkbox/fixtures/comp2.d.ts +0 -12
  1298. package/lib/mjs/components/checkbox/fixtures/comp2.js +0 -11
  1299. package/lib/mjs/components/checkbox/fixtures/comp3.d.ts +0 -15
  1300. package/lib/mjs/components/checkbox/fixtures/comp3.js +0 -14
  1301. package/lib/mjs/components/checkbox/fixtures/comp4.d.ts +0 -46
  1302. package/lib/mjs/components/checkbox/fixtures/comp4.js +0 -37
  1303. package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
  1304. package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.js +0 -23
  1305. package/lib/mjs/components/checkbox/fixtures/index.d.ts +0 -6
  1306. package/lib/mjs/components/checkbox/fixtures/index.js +0 -6
  1307. package/lib/mjs/components/checkbox/fixtures/values.d.ts +0 -2
  1308. package/lib/mjs/components/checkbox/fixtures/values.js +0 -4
  1309. package/lib/mjs/components/columns/Columns.d.ts +0 -27
  1310. package/lib/mjs/components/columns/Columns.form.d.ts +0 -3
  1311. package/lib/mjs/components/columns/Columns.form.js +0 -10
  1312. package/lib/mjs/components/columns/Columns.js +0 -153
  1313. package/lib/mjs/components/columns/editForm/Columns.edit.display.d.ts +0 -58
  1314. package/lib/mjs/components/columns/editForm/Columns.edit.display.js +0 -98
  1315. package/lib/mjs/components/columns/fixtures/comp1.d.ts +0 -45
  1316. package/lib/mjs/components/columns/fixtures/comp1.js +0 -83
  1317. package/lib/mjs/components/columns/fixtures/comp2.d.ts +0 -24
  1318. package/lib/mjs/components/columns/fixtures/comp2.js +0 -125
  1319. package/lib/mjs/components/columns/fixtures/comp3.d.ts +0 -45
  1320. package/lib/mjs/components/columns/fixtures/comp3.js +0 -51
  1321. package/lib/mjs/components/columns/fixtures/index.d.ts +0 -4
  1322. package/lib/mjs/components/columns/fixtures/index.js +0 -4
  1323. package/lib/mjs/components/container/Container.d.ts +0 -15
  1324. package/lib/mjs/components/container/Container.form.d.ts +0 -3
  1325. package/lib/mjs/components/container/Container.form.js +0 -15
  1326. package/lib/mjs/components/container/Container.js +0 -76
  1327. package/lib/mjs/components/container/editForm/Container.edit.data.d.ts +0 -5
  1328. package/lib/mjs/components/container/editForm/Container.edit.data.js +0 -14
  1329. package/lib/mjs/components/container/editForm/Container.edit.display.d.ts +0 -5
  1330. package/lib/mjs/components/container/editForm/Container.edit.display.js +0 -18
  1331. package/lib/mjs/components/container/fixtures/comp1.d.ts +0 -49
  1332. package/lib/mjs/components/container/fixtures/comp1.js +0 -80
  1333. package/lib/mjs/components/container/fixtures/comp2.d.ts +0 -30
  1334. package/lib/mjs/components/container/fixtures/comp2.js +0 -32
  1335. package/lib/mjs/components/container/fixtures/comp3.d.ts +0 -77
  1336. package/lib/mjs/components/container/fixtures/comp3.js +0 -55
  1337. package/lib/mjs/components/container/fixtures/index.d.ts +0 -4
  1338. package/lib/mjs/components/container/fixtures/index.js +0 -4
  1339. package/lib/mjs/components/content/Content.d.ts +0 -17
  1340. package/lib/mjs/components/content/Content.form.d.ts +0 -3
  1341. package/lib/mjs/components/content/Content.form.js +0 -37
  1342. package/lib/mjs/components/content/Content.js +0 -71
  1343. package/lib/mjs/components/content/editForm/Content.edit.display.d.ts +0 -18
  1344. package/lib/mjs/components/content/editForm/Content.edit.display.js +0 -46
  1345. package/lib/mjs/components/content/editForm/Content.edit.logic.d.ts +0 -48
  1346. package/lib/mjs/components/content/editForm/Content.edit.logic.js +0 -98
  1347. package/lib/mjs/components/content/fixtures/comp1.d.ts +0 -13
  1348. package/lib/mjs/components/content/fixtures/comp1.js +0 -12
  1349. package/lib/mjs/components/content/fixtures/index.d.ts +0 -2
  1350. package/lib/mjs/components/content/fixtures/index.js +0 -2
  1351. package/lib/mjs/components/currency/Currency.d.ts +0 -8
  1352. package/lib/mjs/components/currency/Currency.form.d.ts +0 -3
  1353. package/lib/mjs/components/currency/Currency.form.js +0 -40
  1354. package/lib/mjs/components/currency/Currency.js +0 -174
  1355. package/lib/mjs/components/currency/editForm/Currency.edit.data.d.ts +0 -29
  1356. package/lib/mjs/components/currency/editForm/Currency.edit.data.js +0 -190
  1357. package/lib/mjs/components/currency/editForm/Currency.edit.display.d.ts +0 -18
  1358. package/lib/mjs/components/currency/editForm/Currency.edit.display.js +0 -38
  1359. package/lib/mjs/components/currency/fixtures/comp1.d.ts +0 -31
  1360. package/lib/mjs/components/currency/fixtures/comp1.js +0 -29
  1361. package/lib/mjs/components/currency/fixtures/comp2.d.ts +0 -20
  1362. package/lib/mjs/components/currency/fixtures/comp2.js +0 -18
  1363. package/lib/mjs/components/currency/fixtures/comp3.d.ts +0 -13
  1364. package/lib/mjs/components/currency/fixtures/comp3.js +0 -12
  1365. package/lib/mjs/components/currency/fixtures/comp4.d.ts +0 -17
  1366. package/lib/mjs/components/currency/fixtures/comp4.js +0 -18
  1367. package/lib/mjs/components/currency/fixtures/index.d.ts +0 -5
  1368. package/lib/mjs/components/currency/fixtures/index.js +0 -5
  1369. package/lib/mjs/components/currency/fixtures/values.d.ts +0 -2
  1370. package/lib/mjs/components/currency/fixtures/values.js +0 -6
  1371. package/lib/mjs/components/datagrid/DataGrid.d.ts +0 -88
  1372. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +0 -3
  1373. package/lib/mjs/components/datagrid/DataGrid.form.js +0 -20
  1374. package/lib/mjs/components/datagrid/DataGrid.js +0 -644
  1375. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.d.ts +0 -5
  1376. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.data.js +0 -6
  1377. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.d.ts +0 -283
  1378. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.display.js +0 -147
  1379. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.d.ts +0 -20
  1380. package/lib/mjs/components/datagrid/editForm/DataGrid.edit.validation.js +0 -24
  1381. package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
  1382. package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -40
  1383. package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
  1384. package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.js +0 -1
  1385. package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
  1386. package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -79
  1387. package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
  1388. package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -73
  1389. package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -197
  1390. package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -176
  1391. package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
  1392. package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.js +0 -67
  1393. package/lib/mjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
  1394. package/lib/mjs/components/datagrid/fixtures/comp-with-logic.js +0 -178
  1395. package/lib/mjs/components/datagrid/fixtures/comp1.d.ts +0 -93
  1396. package/lib/mjs/components/datagrid/fixtures/comp1.js +0 -113
  1397. package/lib/mjs/components/datagrid/fixtures/comp2.d.ts +0 -18
  1398. package/lib/mjs/components/datagrid/fixtures/comp2.js +0 -27
  1399. package/lib/mjs/components/datagrid/fixtures/comp3.d.ts +0 -14
  1400. package/lib/mjs/components/datagrid/fixtures/comp3.js +0 -21
  1401. package/lib/mjs/components/datagrid/fixtures/comp4.d.ts +0 -27
  1402. package/lib/mjs/components/datagrid/fixtures/comp4.js +0 -26
  1403. package/lib/mjs/components/datagrid/fixtures/comp5.d.ts +0 -67
  1404. package/lib/mjs/components/datagrid/fixtures/comp5.js +0 -75
  1405. package/lib/mjs/components/datagrid/fixtures/comp6.d.ts +0 -567
  1406. package/lib/mjs/components/datagrid/fixtures/comp6.js +0 -294
  1407. package/lib/mjs/components/datagrid/fixtures/comp7.d.ts +0 -28
  1408. package/lib/mjs/components/datagrid/fixtures/comp7.js +0 -33
  1409. package/lib/mjs/components/datagrid/fixtures/comp8.d.ts +0 -35
  1410. package/lib/mjs/components/datagrid/fixtures/comp8.js +0 -35
  1411. package/lib/mjs/components/datagrid/fixtures/index.d.ts +0 -15
  1412. package/lib/mjs/components/datagrid/fixtures/index.js +0 -15
  1413. package/lib/mjs/components/datamap/DataMap.d.ts +0 -36
  1414. package/lib/mjs/components/datamap/DataMap.form.d.ts +0 -3
  1415. package/lib/mjs/components/datamap/DataMap.form.js +0 -15
  1416. package/lib/mjs/components/datamap/DataMap.js +0 -295
  1417. package/lib/mjs/components/datamap/editForm/DataMap.edit.data.d.ts +0 -5
  1418. package/lib/mjs/components/datamap/editForm/DataMap.edit.data.js +0 -10
  1419. package/lib/mjs/components/datamap/editForm/DataMap.edit.display.d.ts +0 -30
  1420. package/lib/mjs/components/datamap/editForm/DataMap.edit.display.js +0 -46
  1421. package/lib/mjs/components/datamap/fixtures/comp1.d.ts +0 -18
  1422. package/lib/mjs/components/datamap/fixtures/comp1.js +0 -13
  1423. package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
  1424. package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -83
  1425. package/lib/mjs/components/datamap/fixtures/index.d.ts +0 -3
  1426. package/lib/mjs/components/datamap/fixtures/index.js +0 -3
  1427. package/lib/mjs/components/datetime/DateTime.d.ts +0 -39
  1428. package/lib/mjs/components/datetime/DateTime.form.d.ts +0 -3
  1429. package/lib/mjs/components/datetime/DateTime.form.js +0 -34
  1430. package/lib/mjs/components/datetime/DateTime.js +0 -187
  1431. package/lib/mjs/components/datetime/editForm/DateTime.edit.data.d.ts +0 -24
  1432. package/lib/mjs/components/datetime/editForm/DateTime.edit.data.js +0 -21
  1433. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.d.ts +0 -61
  1434. package/lib/mjs/components/datetime/editForm/DateTime.edit.date.js +0 -70
  1435. package/lib/mjs/components/datetime/editForm/DateTime.edit.display.d.ts +0 -128
  1436. package/lib/mjs/components/datetime/editForm/DateTime.edit.display.js +0 -98
  1437. package/lib/mjs/components/datetime/editForm/DateTime.edit.time.d.ts +0 -9
  1438. package/lib/mjs/components/datetime/editForm/DateTime.edit.time.js +0 -34
  1439. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.d.ts +0 -40
  1440. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +0 -82
  1441. package/lib/mjs/components/datetime/fixtures/comp1.d.ts +0 -45
  1442. package/lib/mjs/components/datetime/fixtures/comp1.js +0 -42
  1443. package/lib/mjs/components/datetime/fixtures/comp10.d.ts +0 -102
  1444. package/lib/mjs/components/datetime/fixtures/comp10.js +0 -84
  1445. package/lib/mjs/components/datetime/fixtures/comp11.d.ts +0 -58
  1446. package/lib/mjs/components/datetime/fixtures/comp11.js +0 -53
  1447. package/lib/mjs/components/datetime/fixtures/comp12.d.ts +0 -57
  1448. package/lib/mjs/components/datetime/fixtures/comp12.js +0 -53
  1449. package/lib/mjs/components/datetime/fixtures/comp2.d.ts +0 -42
  1450. package/lib/mjs/components/datetime/fixtures/comp2.js +0 -41
  1451. package/lib/mjs/components/datetime/fixtures/comp3.d.ts +0 -51
  1452. package/lib/mjs/components/datetime/fixtures/comp3.js +0 -38
  1453. package/lib/mjs/components/datetime/fixtures/comp5.d.ts +0 -57
  1454. package/lib/mjs/components/datetime/fixtures/comp5.js +0 -46
  1455. package/lib/mjs/components/datetime/fixtures/comp6.d.ts +0 -55
  1456. package/lib/mjs/components/datetime/fixtures/comp6.js +0 -47
  1457. package/lib/mjs/components/datetime/fixtures/comp7.d.ts +0 -59
  1458. package/lib/mjs/components/datetime/fixtures/comp7.js +0 -51
  1459. package/lib/mjs/components/datetime/fixtures/comp8.d.ts +0 -59
  1460. package/lib/mjs/components/datetime/fixtures/comp8.js +0 -50
  1461. package/lib/mjs/components/datetime/fixtures/comp9.d.ts +0 -64
  1462. package/lib/mjs/components/datetime/fixtures/comp9.js +0 -93
  1463. package/lib/mjs/components/datetime/fixtures/index.d.ts +0 -12
  1464. package/lib/mjs/components/datetime/fixtures/index.js +0 -12
  1465. package/lib/mjs/components/datetime/fixtures/values.d.ts +0 -2
  1466. package/lib/mjs/components/datetime/fixtures/values.js +0 -4
  1467. package/lib/mjs/components/day/Day.d.ts +0 -163
  1468. package/lib/mjs/components/day/Day.form.d.ts +0 -3
  1469. package/lib/mjs/components/day/Day.form.js +0 -41
  1470. package/lib/mjs/components/day/Day.js +0 -568
  1471. package/lib/mjs/components/day/editForm/Day.edit.data.d.ts +0 -5
  1472. package/lib/mjs/components/day/editForm/Day.edit.data.js +0 -6
  1473. package/lib/mjs/components/day/editForm/Day.edit.day.d.ts +0 -40
  1474. package/lib/mjs/components/day/editForm/Day.edit.day.js +0 -46
  1475. package/lib/mjs/components/day/editForm/Day.edit.display.d.ts +0 -40
  1476. package/lib/mjs/components/day/editForm/Day.edit.display.js +0 -44
  1477. package/lib/mjs/components/day/editForm/Day.edit.month.d.ts +0 -40
  1478. package/lib/mjs/components/day/editForm/Day.edit.month.js +0 -38
  1479. package/lib/mjs/components/day/editForm/Day.edit.validation.d.ts +0 -29
  1480. package/lib/mjs/components/day/editForm/Day.edit.validation.js +0 -52
  1481. package/lib/mjs/components/day/editForm/Day.edit.year.d.ts +0 -40
  1482. package/lib/mjs/components/day/editForm/Day.edit.year.js +0 -56
  1483. package/lib/mjs/components/day/fixtures/comp1.d.ts +0 -46
  1484. package/lib/mjs/components/day/fixtures/comp1.js +0 -37
  1485. package/lib/mjs/components/day/fixtures/comp2.d.ts +0 -46
  1486. package/lib/mjs/components/day/fixtures/comp2.js +0 -37
  1487. package/lib/mjs/components/day/fixtures/comp3.d.ts +0 -48
  1488. package/lib/mjs/components/day/fixtures/comp3.js +0 -39
  1489. package/lib/mjs/components/day/fixtures/comp4.d.ts +0 -53
  1490. package/lib/mjs/components/day/fixtures/comp4.js +0 -54
  1491. package/lib/mjs/components/day/fixtures/comp5.d.ts +0 -29
  1492. package/lib/mjs/components/day/fixtures/comp5.js +0 -30
  1493. package/lib/mjs/components/day/fixtures/comp6.d.ts +0 -81
  1494. package/lib/mjs/components/day/fixtures/comp6.js +0 -74
  1495. package/lib/mjs/components/day/fixtures/index.d.ts +0 -7
  1496. package/lib/mjs/components/day/fixtures/index.js +0 -7
  1497. package/lib/mjs/components/day/fixtures/values.d.ts +0 -2
  1498. package/lib/mjs/components/day/fixtures/values.js +0 -4
  1499. package/lib/mjs/components/editgrid/EditGrid.d.ts +0 -99
  1500. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +0 -3
  1501. package/lib/mjs/components/editgrid/EditGrid.form.js +0 -27
  1502. package/lib/mjs/components/editgrid/EditGrid.js +0 -1156
  1503. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.d.ts +0 -18
  1504. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.data.js +0 -18
  1505. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.d.ts +0 -82
  1506. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.display.js +0 -53
  1507. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.d.ts +0 -58
  1508. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.templates.js +0 -126
  1509. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.d.ts +0 -29
  1510. package/lib/mjs/components/editgrid/editForm/EditGrid.edit.validation.js +0 -32
  1511. package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
  1512. package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -34
  1513. package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
  1514. package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -218
  1515. package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -77
  1516. package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -82
  1517. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
  1518. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -225
  1519. package/lib/mjs/components/editgrid/fixtures/comp1.d.ts +0 -89
  1520. package/lib/mjs/components/editgrid/fixtures/comp1.js +0 -126
  1521. package/lib/mjs/components/editgrid/fixtures/comp10.d.ts +0 -49
  1522. package/lib/mjs/components/editgrid/fixtures/comp10.js +0 -46
  1523. package/lib/mjs/components/editgrid/fixtures/comp11.d.ts +0 -53
  1524. package/lib/mjs/components/editgrid/fixtures/comp11.js +0 -48
  1525. package/lib/mjs/components/editgrid/fixtures/comp12.d.ts +0 -57
  1526. package/lib/mjs/components/editgrid/fixtures/comp12.js +0 -48
  1527. package/lib/mjs/components/editgrid/fixtures/comp13.d.ts +0 -64
  1528. package/lib/mjs/components/editgrid/fixtures/comp13.js +0 -62
  1529. package/lib/mjs/components/editgrid/fixtures/comp14.d.ts +0 -88
  1530. package/lib/mjs/components/editgrid/fixtures/comp14.js +0 -82
  1531. package/lib/mjs/components/editgrid/fixtures/comp15.d.ts +0 -54
  1532. package/lib/mjs/components/editgrid/fixtures/comp15.js +0 -49
  1533. package/lib/mjs/components/editgrid/fixtures/comp2.d.ts +0 -112
  1534. package/lib/mjs/components/editgrid/fixtures/comp2.js +0 -112
  1535. package/lib/mjs/components/editgrid/fixtures/comp3.d.ts +0 -27
  1536. package/lib/mjs/components/editgrid/fixtures/comp3.js +0 -26
  1537. package/lib/mjs/components/editgrid/fixtures/comp4.d.ts +0 -23
  1538. package/lib/mjs/components/editgrid/fixtures/comp4.js +0 -22
  1539. package/lib/mjs/components/editgrid/fixtures/comp5.d.ts +0 -19
  1540. package/lib/mjs/components/editgrid/fixtures/comp5.js +0 -20
  1541. package/lib/mjs/components/editgrid/fixtures/comp6.d.ts +0 -50
  1542. package/lib/mjs/components/editgrid/fixtures/comp6.js +0 -56
  1543. package/lib/mjs/components/editgrid/fixtures/comp7.d.ts +0 -129
  1544. package/lib/mjs/components/editgrid/fixtures/comp7.js +0 -121
  1545. package/lib/mjs/components/editgrid/fixtures/comp8.d.ts +0 -148
  1546. package/lib/mjs/components/editgrid/fixtures/comp8.js +0 -154
  1547. package/lib/mjs/components/editgrid/fixtures/comp9.d.ts +0 -86
  1548. package/lib/mjs/components/editgrid/fixtures/comp9.js +0 -60
  1549. package/lib/mjs/components/editgrid/fixtures/index.d.ts +0 -19
  1550. package/lib/mjs/components/editgrid/fixtures/index.js +0 -19
  1551. package/lib/mjs/components/email/Email.d.ts +0 -4
  1552. package/lib/mjs/components/email/Email.form.d.ts +0 -3
  1553. package/lib/mjs/components/email/Email.form.js +0 -15
  1554. package/lib/mjs/components/email/Email.js +0 -48
  1555. package/lib/mjs/components/email/editForm/Email.edit.display.d.ts +0 -5
  1556. package/lib/mjs/components/email/editForm/Email.edit.display.js +0 -18
  1557. package/lib/mjs/components/email/editForm/Email.edit.validation.d.ts +0 -24
  1558. package/lib/mjs/components/email/editForm/Email.edit.validation.js +0 -26
  1559. package/lib/mjs/components/email/fixtures/comp1.d.ts +0 -26
  1560. package/lib/mjs/components/email/fixtures/comp1.js +0 -24
  1561. package/lib/mjs/components/email/fixtures/comp2.d.ts +0 -23
  1562. package/lib/mjs/components/email/fixtures/comp2.js +0 -11
  1563. package/lib/mjs/components/email/fixtures/index.d.ts +0 -3
  1564. package/lib/mjs/components/email/fixtures/index.js +0 -3
  1565. package/lib/mjs/components/email/fixtures/values.d.ts +0 -2
  1566. package/lib/mjs/components/email/fixtures/values.js +0 -4
  1567. package/lib/mjs/components/fieldset/Fieldset.d.ts +0 -15
  1568. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +0 -3
  1569. package/lib/mjs/components/fieldset/Fieldset.form.js +0 -10
  1570. package/lib/mjs/components/fieldset/Fieldset.js +0 -41
  1571. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.d.ts +0 -33
  1572. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -42
  1573. package/lib/mjs/components/fieldset/fixtures/comp1.d.ts +0 -46
  1574. package/lib/mjs/components/fieldset/fixtures/comp1.js +0 -79
  1575. package/lib/mjs/components/fieldset/fixtures/index.d.ts +0 -2
  1576. package/lib/mjs/components/fieldset/fixtures/index.js +0 -2
  1577. package/lib/mjs/components/file/File.d.ts +0 -81
  1578. package/lib/mjs/components/file/File.form.d.ts +0 -3
  1579. package/lib/mjs/components/file/File.form.js +0 -27
  1580. package/lib/mjs/components/file/File.js +0 -774
  1581. package/lib/mjs/components/file/editForm/File.edit.data.d.ts +0 -5
  1582. package/lib/mjs/components/file/editForm/File.edit.data.js +0 -6
  1583. package/lib/mjs/components/file/editForm/File.edit.display.d.ts +0 -5
  1584. package/lib/mjs/components/file/editForm/File.edit.display.js +0 -6
  1585. package/lib/mjs/components/file/editForm/File.edit.file.d.ts +0 -275
  1586. package/lib/mjs/components/file/editForm/File.edit.file.js +0 -283
  1587. package/lib/mjs/components/file/editForm/File.edit.validation.d.ts +0 -5
  1588. package/lib/mjs/components/file/editForm/File.edit.validation.js +0 -10
  1589. package/lib/mjs/components/file/fixtures/comp1.d.ts +0 -15
  1590. package/lib/mjs/components/file/fixtures/comp1.js +0 -16
  1591. package/lib/mjs/components/file/fixtures/comp2.d.ts +0 -35
  1592. package/lib/mjs/components/file/fixtures/comp2.js +0 -29
  1593. package/lib/mjs/components/file/fixtures/index.d.ts +0 -3
  1594. package/lib/mjs/components/file/fixtures/index.js +0 -3
  1595. package/lib/mjs/components/file/fixtures/values.d.ts +0 -10
  1596. package/lib/mjs/components/file/fixtures/values.js +0 -13
  1597. package/lib/mjs/components/form/Form.d.ts +0 -98
  1598. package/lib/mjs/components/form/Form.form.d.ts +0 -3
  1599. package/lib/mjs/components/form/Form.form.js +0 -24
  1600. package/lib/mjs/components/form/Form.js +0 -717
  1601. package/lib/mjs/components/form/editForm/Form.edit.data.d.ts +0 -82
  1602. package/lib/mjs/components/form/editForm/Form.edit.data.js +0 -16
  1603. package/lib/mjs/components/form/editForm/Form.edit.display.d.ts +0 -5
  1604. package/lib/mjs/components/form/editForm/Form.edit.display.js +0 -27
  1605. package/lib/mjs/components/form/editForm/Form.edit.form.d.ts +0 -89
  1606. package/lib/mjs/components/form/editForm/Form.edit.form.js +0 -72
  1607. package/lib/mjs/components/form/fixtures/comp1.d.ts +0 -45
  1608. package/lib/mjs/components/form/fixtures/comp1.js +0 -78
  1609. package/lib/mjs/components/form/fixtures/comp2.d.ts +0 -14
  1610. package/lib/mjs/components/form/fixtures/comp2.js +0 -13
  1611. package/lib/mjs/components/form/fixtures/comp3.d.ts +0 -187
  1612. package/lib/mjs/components/form/fixtures/comp3.js +0 -168
  1613. package/lib/mjs/components/form/fixtures/comp4.d.ts +0 -107
  1614. package/lib/mjs/components/form/fixtures/comp4.js +0 -89
  1615. package/lib/mjs/components/form/fixtures/comp5.d.ts +0 -42
  1616. package/lib/mjs/components/form/fixtures/comp5.js +0 -43
  1617. package/lib/mjs/components/form/fixtures/comp6.d.ts +0 -74
  1618. package/lib/mjs/components/form/fixtures/comp6.js +0 -92
  1619. package/lib/mjs/components/form/fixtures/formModalEdit.d.ts +0 -42
  1620. package/lib/mjs/components/form/fixtures/formModalEdit.js +0 -49
  1621. package/lib/mjs/components/form/fixtures/index.d.ts +0 -8
  1622. package/lib/mjs/components/form/fixtures/index.js +0 -8
  1623. package/lib/mjs/components/form/fixtures/values.d.ts +0 -6
  1624. package/lib/mjs/components/form/fixtures/values.js +0 -7
  1625. package/lib/mjs/components/hidden/Hidden.d.ts +0 -26
  1626. package/lib/mjs/components/hidden/Hidden.form.d.ts +0 -3
  1627. package/lib/mjs/components/hidden/Hidden.form.js +0 -23
  1628. package/lib/mjs/components/hidden/Hidden.js +0 -55
  1629. package/lib/mjs/components/hidden/editForm/Hidden.edit.data.d.ts +0 -5
  1630. package/lib/mjs/components/hidden/editForm/Hidden.edit.data.js +0 -14
  1631. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.d.ts +0 -5
  1632. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +0 -42
  1633. package/lib/mjs/components/hidden/fixtures/comp1.d.ts +0 -18
  1634. package/lib/mjs/components/hidden/fixtures/comp1.js +0 -16
  1635. package/lib/mjs/components/hidden/fixtures/index.d.ts +0 -2
  1636. package/lib/mjs/components/hidden/fixtures/index.js +0 -2
  1637. package/lib/mjs/components/hidden/fixtures/values.d.ts +0 -2
  1638. package/lib/mjs/components/hidden/fixtures/values.js +0 -4
  1639. package/lib/mjs/components/html/HTML.d.ts +0 -18
  1640. package/lib/mjs/components/html/HTML.form.d.ts +0 -3
  1641. package/lib/mjs/components/html/HTML.form.js +0 -23
  1642. package/lib/mjs/components/html/HTML.js +0 -87
  1643. package/lib/mjs/components/html/editForm/HTML.edit.display.d.ts +0 -77
  1644. package/lib/mjs/components/html/editForm/HTML.edit.display.js +0 -98
  1645. package/lib/mjs/components/html/editForm/HTML.edit.logic.d.ts +0 -48
  1646. package/lib/mjs/components/html/editForm/HTML.edit.logic.js +0 -98
  1647. package/lib/mjs/components/html/fixtures/comp1.d.ts +0 -19
  1648. package/lib/mjs/components/html/fixtures/comp1.js +0 -20
  1649. package/lib/mjs/components/html/fixtures/comp2.d.ts +0 -21
  1650. package/lib/mjs/components/html/fixtures/comp2.js +0 -22
  1651. package/lib/mjs/components/html/fixtures/index.d.ts +0 -3
  1652. package/lib/mjs/components/html/fixtures/index.js +0 -3
  1653. package/lib/mjs/components/index.d.ts +0 -100
  1654. package/lib/mjs/components/index.js +0 -99
  1655. package/lib/mjs/components/number/Number.d.ts +0 -54
  1656. package/lib/mjs/components/number/Number.form.d.ts +0 -3
  1657. package/lib/mjs/components/number/Number.form.js +0 -20
  1658. package/lib/mjs/components/number/Number.js +0 -201
  1659. package/lib/mjs/components/number/editForm/Number.edit.data.d.ts +0 -18
  1660. package/lib/mjs/components/number/editForm/Number.edit.data.js +0 -30
  1661. package/lib/mjs/components/number/editForm/Number.edit.display.d.ts +0 -5
  1662. package/lib/mjs/components/number/editForm/Number.edit.display.js +0 -22
  1663. package/lib/mjs/components/number/editForm/Number.edit.validation.d.ts +0 -20
  1664. package/lib/mjs/components/number/editForm/Number.edit.validation.js +0 -44
  1665. package/lib/mjs/components/number/fixtures/comp1.d.ts +0 -33
  1666. package/lib/mjs/components/number/fixtures/comp1.js +0 -30
  1667. package/lib/mjs/components/number/fixtures/comp2.d.ts +0 -32
  1668. package/lib/mjs/components/number/fixtures/comp2.js +0 -29
  1669. package/lib/mjs/components/number/fixtures/comp3.d.ts +0 -14
  1670. package/lib/mjs/components/number/fixtures/comp3.js +0 -13
  1671. package/lib/mjs/components/number/fixtures/comp4.d.ts +0 -14
  1672. package/lib/mjs/components/number/fixtures/comp4.js +0 -13
  1673. package/lib/mjs/components/number/fixtures/comp5.d.ts +0 -20
  1674. package/lib/mjs/components/number/fixtures/comp5.js +0 -18
  1675. package/lib/mjs/components/number/fixtures/comp6.d.ts +0 -40
  1676. package/lib/mjs/components/number/fixtures/comp6.js +0 -25
  1677. package/lib/mjs/components/number/fixtures/comp7.d.ts +0 -15
  1678. package/lib/mjs/components/number/fixtures/comp7.js +0 -14
  1679. package/lib/mjs/components/number/fixtures/index.d.ts +0 -8
  1680. package/lib/mjs/components/number/fixtures/index.js +0 -8
  1681. package/lib/mjs/components/number/fixtures/values.d.ts +0 -2
  1682. package/lib/mjs/components/number/fixtures/values.js +0 -9
  1683. package/lib/mjs/components/panel/Panel.d.ts +0 -15
  1684. package/lib/mjs/components/panel/Panel.form.d.ts +0 -3
  1685. package/lib/mjs/components/panel/Panel.form.js +0 -15
  1686. package/lib/mjs/components/panel/Panel.js +0 -55
  1687. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.d.ts +0 -75
  1688. package/lib/mjs/components/panel/editForm/Panel.edit.conditional.js +0 -40
  1689. package/lib/mjs/components/panel/editForm/Panel.edit.display.d.ts +0 -228
  1690. package/lib/mjs/components/panel/editForm/Panel.edit.display.js +0 -208
  1691. package/lib/mjs/components/panel/fixtures/comp1.d.ts +0 -46
  1692. package/lib/mjs/components/panel/fixtures/comp1.js +0 -78
  1693. package/lib/mjs/components/panel/fixtures/comp2.d.ts +0 -80
  1694. package/lib/mjs/components/panel/fixtures/comp2.js +0 -67
  1695. package/lib/mjs/components/panel/fixtures/index.d.ts +0 -3
  1696. package/lib/mjs/components/panel/fixtures/index.js +0 -3
  1697. package/lib/mjs/components/password/Password.d.ts +0 -3
  1698. package/lib/mjs/components/password/Password.form.d.ts +0 -3
  1699. package/lib/mjs/components/password/Password.form.js +0 -20
  1700. package/lib/mjs/components/password/Password.js +0 -34
  1701. package/lib/mjs/components/password/editForm/Password.edit.data.d.ts +0 -18
  1702. package/lib/mjs/components/password/editForm/Password.edit.data.js +0 -46
  1703. package/lib/mjs/components/password/editForm/Password.edit.display.d.ts +0 -5
  1704. package/lib/mjs/components/password/editForm/Password.edit.display.js +0 -14
  1705. package/lib/mjs/components/password/editForm/Password.edit.validation.d.ts +0 -5
  1706. package/lib/mjs/components/password/editForm/Password.edit.validation.js +0 -14
  1707. package/lib/mjs/components/password/fixtures/comp1.d.ts +0 -22
  1708. package/lib/mjs/components/password/fixtures/comp1.js +0 -20
  1709. package/lib/mjs/components/password/fixtures/comp2.d.ts +0 -27
  1710. package/lib/mjs/components/password/fixtures/comp2.js +0 -27
  1711. package/lib/mjs/components/password/fixtures/index.d.ts +0 -3
  1712. package/lib/mjs/components/password/fixtures/index.js +0 -3
  1713. package/lib/mjs/components/password/fixtures/values.d.ts +0 -2
  1714. package/lib/mjs/components/password/fixtures/values.js +0 -4
  1715. package/lib/mjs/components/phonenumber/PhoneNumber.d.ts +0 -3
  1716. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +0 -3
  1717. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +0 -32
  1718. package/lib/mjs/components/phonenumber/PhoneNumber.js +0 -27
  1719. package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +0 -5
  1720. package/lib/mjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js +0 -22
  1721. package/lib/mjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
  1722. package/lib/mjs/components/phonenumber/fixtures/comp1.js +0 -25
  1723. package/lib/mjs/components/phonenumber/fixtures/index.d.ts +0 -2
  1724. package/lib/mjs/components/phonenumber/fixtures/index.js +0 -2
  1725. package/lib/mjs/components/phonenumber/fixtures/values.d.ts +0 -2
  1726. package/lib/mjs/components/phonenumber/fixtures/values.js +0 -4
  1727. package/lib/mjs/components/radio/Radio.d.ts +0 -65
  1728. package/lib/mjs/components/radio/Radio.form.d.ts +0 -3
  1729. package/lib/mjs/components/radio/Radio.form.js +0 -20
  1730. package/lib/mjs/components/radio/Radio.js +0 -372
  1731. package/lib/mjs/components/radio/editForm/Radio.edit.data.d.ts +0 -134
  1732. package/lib/mjs/components/radio/editForm/Radio.edit.data.js +0 -80
  1733. package/lib/mjs/components/radio/editForm/Radio.edit.display.d.ts +0 -40
  1734. package/lib/mjs/components/radio/editForm/Radio.edit.display.js +0 -32
  1735. package/lib/mjs/components/radio/editForm/Radio.edit.validation.d.ts +0 -18
  1736. package/lib/mjs/components/radio/editForm/Radio.edit.validation.js +0 -18
  1737. package/lib/mjs/components/radio/fixtures/comp1.d.ts +0 -28
  1738. package/lib/mjs/components/radio/fixtures/comp1.js +0 -40
  1739. package/lib/mjs/components/radio/fixtures/comp2.d.ts +0 -85
  1740. package/lib/mjs/components/radio/fixtures/comp2.js +0 -84
  1741. package/lib/mjs/components/radio/fixtures/comp3.d.ts +0 -85
  1742. package/lib/mjs/components/radio/fixtures/comp3.js +0 -88
  1743. package/lib/mjs/components/radio/fixtures/comp4.d.ts +0 -19
  1744. package/lib/mjs/components/radio/fixtures/comp4.js +0 -25
  1745. package/lib/mjs/components/radio/fixtures/comp5.d.ts +0 -39
  1746. package/lib/mjs/components/radio/fixtures/comp5.js +0 -33
  1747. package/lib/mjs/components/radio/fixtures/comp6.d.ts +0 -38
  1748. package/lib/mjs/components/radio/fixtures/comp6.js +0 -31
  1749. package/lib/mjs/components/radio/fixtures/comp7.d.ts +0 -23
  1750. package/lib/mjs/components/radio/fixtures/comp7.js +0 -19
  1751. package/lib/mjs/components/radio/fixtures/comp8.d.ts +0 -118
  1752. package/lib/mjs/components/radio/fixtures/comp8.js +0 -111
  1753. package/lib/mjs/components/radio/fixtures/comp9.d.ts +0 -35
  1754. package/lib/mjs/components/radio/fixtures/comp9.js +0 -30
  1755. package/lib/mjs/components/radio/fixtures/index.d.ts +0 -10
  1756. package/lib/mjs/components/radio/fixtures/index.js +0 -10
  1757. package/lib/mjs/components/radio/fixtures/values.d.ts +0 -2
  1758. package/lib/mjs/components/radio/fixtures/values.js +0 -5
  1759. package/lib/mjs/components/recaptcha/ReCaptcha.d.ts +0 -23
  1760. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +0 -3
  1761. package/lib/mjs/components/recaptcha/ReCaptcha.form.js +0 -26
  1762. package/lib/mjs/components/recaptcha/ReCaptcha.js +0 -139
  1763. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.d.ts +0 -44
  1764. package/lib/mjs/components/recaptcha/editForm/ReCaptcha.edit.display.js +0 -106
  1765. package/lib/mjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
  1766. package/lib/mjs/components/recaptcha/fixtures/comp1.js +0 -7
  1767. package/lib/mjs/components/recaptcha/fixtures/index.d.ts +0 -2
  1768. package/lib/mjs/components/recaptcha/fixtures/index.js +0 -2
  1769. package/lib/mjs/components/resource/Resource.d.ts +0 -10
  1770. package/lib/mjs/components/resource/Resource.form.d.ts +0 -3
  1771. package/lib/mjs/components/resource/Resource.form.js +0 -10
  1772. package/lib/mjs/components/resource/Resource.js +0 -33
  1773. package/lib/mjs/components/resource/editForm/Resource.edit.display.d.ts +0 -173
  1774. package/lib/mjs/components/resource/editForm/Resource.edit.display.js +0 -100
  1775. package/lib/mjs/components/resource/fixtures/comp1.d.ts +0 -30
  1776. package/lib/mjs/components/resource/fixtures/comp1.js +0 -28
  1777. package/lib/mjs/components/resource/fixtures/comp2.d.ts +0 -35
  1778. package/lib/mjs/components/resource/fixtures/comp2.js +0 -29
  1779. package/lib/mjs/components/resource/fixtures/index.d.ts +0 -3
  1780. package/lib/mjs/components/resource/fixtures/index.js +0 -3
  1781. package/lib/mjs/components/select/Select.d.ts +0 -145
  1782. package/lib/mjs/components/select/Select.form.d.ts +0 -3
  1783. package/lib/mjs/components/select/Select.form.js +0 -20
  1784. package/lib/mjs/components/select/Select.js +0 -1491
  1785. package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +0 -1039
  1786. package/lib/mjs/components/select/editForm/Select.edit.data.js +0 -627
  1787. package/lib/mjs/components/select/editForm/Select.edit.display.d.ts +0 -27
  1788. package/lib/mjs/components/select/editForm/Select.edit.display.js +0 -26
  1789. package/lib/mjs/components/select/editForm/Select.edit.validation.d.ts +0 -30
  1790. package/lib/mjs/components/select/editForm/Select.edit.validation.js +0 -33
  1791. package/lib/mjs/components/select/fixtures/comp1.d.ts +0 -40
  1792. package/lib/mjs/components/select/fixtures/comp1.js +0 -64
  1793. package/lib/mjs/components/select/fixtures/comp10.d.ts +0 -41
  1794. package/lib/mjs/components/select/fixtures/comp10.js +0 -30
  1795. package/lib/mjs/components/select/fixtures/comp11.d.ts +0 -28
  1796. package/lib/mjs/components/select/fixtures/comp11.js +0 -22
  1797. package/lib/mjs/components/select/fixtures/comp12.d.ts +0 -53
  1798. package/lib/mjs/components/select/fixtures/comp12.js +0 -27
  1799. package/lib/mjs/components/select/fixtures/comp13.d.ts +0 -28
  1800. package/lib/mjs/components/select/fixtures/comp13.js +0 -29
  1801. package/lib/mjs/components/select/fixtures/comp14.d.ts +0 -40
  1802. package/lib/mjs/components/select/fixtures/comp14.js +0 -25
  1803. package/lib/mjs/components/select/fixtures/comp15.d.ts +0 -50
  1804. package/lib/mjs/components/select/fixtures/comp15.js +0 -39
  1805. package/lib/mjs/components/select/fixtures/comp16.d.ts +0 -34
  1806. package/lib/mjs/components/select/fixtures/comp16.js +0 -31
  1807. package/lib/mjs/components/select/fixtures/comp17.d.ts +0 -51
  1808. package/lib/mjs/components/select/fixtures/comp17.js +0 -41
  1809. package/lib/mjs/components/select/fixtures/comp18.d.ts +0 -49
  1810. package/lib/mjs/components/select/fixtures/comp18.js +0 -40
  1811. package/lib/mjs/components/select/fixtures/comp19.d.ts +0 -23
  1812. package/lib/mjs/components/select/fixtures/comp19.js +0 -34
  1813. package/lib/mjs/components/select/fixtures/comp2.d.ts +0 -41
  1814. package/lib/mjs/components/select/fixtures/comp2.js +0 -65
  1815. package/lib/mjs/components/select/fixtures/comp3.d.ts +0 -35
  1816. package/lib/mjs/components/select/fixtures/comp3.js +0 -206
  1817. package/lib/mjs/components/select/fixtures/comp4.d.ts +0 -103
  1818. package/lib/mjs/components/select/fixtures/comp4.js +0 -104
  1819. package/lib/mjs/components/select/fixtures/comp5.d.ts +0 -21
  1820. package/lib/mjs/components/select/fixtures/comp5.js +0 -26
  1821. package/lib/mjs/components/select/fixtures/comp6.d.ts +0 -20
  1822. package/lib/mjs/components/select/fixtures/comp6.js +0 -28
  1823. package/lib/mjs/components/select/fixtures/comp7.d.ts +0 -63
  1824. package/lib/mjs/components/select/fixtures/comp7.js +0 -44
  1825. package/lib/mjs/components/select/fixtures/comp8.d.ts +0 -72
  1826. package/lib/mjs/components/select/fixtures/comp8.js +0 -35
  1827. package/lib/mjs/components/select/fixtures/comp9.d.ts +0 -88
  1828. package/lib/mjs/components/select/fixtures/comp9.js +0 -65
  1829. package/lib/mjs/components/select/fixtures/index.d.ts +0 -20
  1830. package/lib/mjs/components/select/fixtures/index.js +0 -20
  1831. package/lib/mjs/components/select/fixtures/values.d.ts +0 -2
  1832. package/lib/mjs/components/select/fixtures/values.js +0 -5
  1833. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +0 -52
  1834. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +0 -3
  1835. package/lib/mjs/components/selectboxes/SelectBoxes.form.js +0 -19
  1836. package/lib/mjs/components/selectboxes/SelectBoxes.js +0 -255
  1837. package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +0 -9
  1838. package/lib/mjs/components/selectboxes/editForm/SelectBoxes.edit.validation.js +0 -34
  1839. package/lib/mjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
  1840. package/lib/mjs/components/selectboxes/fixtures/comp1.js +0 -52
  1841. package/lib/mjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
  1842. package/lib/mjs/components/selectboxes/fixtures/comp2.js +0 -52
  1843. package/lib/mjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
  1844. package/lib/mjs/components/selectboxes/fixtures/comp3.js +0 -19
  1845. package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
  1846. package/lib/mjs/components/selectboxes/fixtures/comp4.js +0 -79
  1847. package/lib/mjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
  1848. package/lib/mjs/components/selectboxes/fixtures/comp5.js +0 -31
  1849. package/lib/mjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
  1850. package/lib/mjs/components/selectboxes/fixtures/comp6.js +0 -13
  1851. package/lib/mjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
  1852. package/lib/mjs/components/selectboxes/fixtures/comp7.js +0 -29
  1853. package/lib/mjs/components/selectboxes/fixtures/index.d.ts +0 -8
  1854. package/lib/mjs/components/selectboxes/fixtures/index.js +0 -8
  1855. package/lib/mjs/components/selectboxes/fixtures/values.d.ts +0 -6
  1856. package/lib/mjs/components/selectboxes/fixtures/values.js +0 -22
  1857. package/lib/mjs/components/signature/Signature.d.ts +0 -46
  1858. package/lib/mjs/components/signature/Signature.form.d.ts +0 -3
  1859. package/lib/mjs/components/signature/Signature.form.js +0 -20
  1860. package/lib/mjs/components/signature/Signature.js +0 -255
  1861. package/lib/mjs/components/signature/editForm/Signature.edit.data.d.ts +0 -5
  1862. package/lib/mjs/components/signature/editForm/Signature.edit.data.js +0 -14
  1863. package/lib/mjs/components/signature/editForm/Signature.edit.display.d.ts +0 -51
  1864. package/lib/mjs/components/signature/editForm/Signature.edit.display.js +0 -69
  1865. package/lib/mjs/components/signature/editForm/Signature.edit.validation.d.ts +0 -5
  1866. package/lib/mjs/components/signature/editForm/Signature.edit.validation.js +0 -10
  1867. package/lib/mjs/components/signature/fixtures/comp1.d.ts +0 -30
  1868. package/lib/mjs/components/signature/fixtures/comp1.js +0 -28
  1869. package/lib/mjs/components/signature/fixtures/index.d.ts +0 -2
  1870. package/lib/mjs/components/signature/fixtures/index.js +0 -2
  1871. package/lib/mjs/components/signature/fixtures/values.d.ts +0 -2
  1872. package/lib/mjs/components/signature/fixtures/values.js +0 -5
  1873. package/lib/mjs/components/survey/Survey.d.ts +0 -37
  1874. package/lib/mjs/components/survey/Survey.form.d.ts +0 -3
  1875. package/lib/mjs/components/survey/Survey.form.js +0 -20
  1876. package/lib/mjs/components/survey/Survey.js +0 -153
  1877. package/lib/mjs/components/survey/editForm/Survey.edit.data.d.ts +0 -44
  1878. package/lib/mjs/components/survey/editForm/Survey.edit.data.js +0 -70
  1879. package/lib/mjs/components/survey/editForm/Survey.edit.display.d.ts +0 -5
  1880. package/lib/mjs/components/survey/editForm/Survey.edit.display.js +0 -6
  1881. package/lib/mjs/components/survey/editForm/Survey.edit.validation.d.ts +0 -5
  1882. package/lib/mjs/components/survey/editForm/Survey.edit.validation.js +0 -6
  1883. package/lib/mjs/components/survey/fixtures/comp1.d.ts +0 -31
  1884. package/lib/mjs/components/survey/fixtures/comp1.js +0 -53
  1885. package/lib/mjs/components/survey/fixtures/comp2.d.ts +0 -31
  1886. package/lib/mjs/components/survey/fixtures/comp2.js +0 -53
  1887. package/lib/mjs/components/survey/fixtures/index.d.ts +0 -3
  1888. package/lib/mjs/components/survey/fixtures/index.js +0 -3
  1889. package/lib/mjs/components/survey/fixtures/values.d.ts +0 -5
  1890. package/lib/mjs/components/survey/fixtures/values.js +0 -10
  1891. package/lib/mjs/components/table/Table.d.ts +0 -23
  1892. package/lib/mjs/components/table/Table.form.d.ts +0 -3
  1893. package/lib/mjs/components/table/Table.form.js +0 -10
  1894. package/lib/mjs/components/table/Table.js +0 -169
  1895. package/lib/mjs/components/table/editForm/Table.edit.display.d.ts +0 -55
  1896. package/lib/mjs/components/table/editForm/Table.edit.display.js +0 -109
  1897. package/lib/mjs/components/table/fixtures/comp1.d.ts +0 -53
  1898. package/lib/mjs/components/table/fixtures/comp1.js +0 -235
  1899. package/lib/mjs/components/table/fixtures/index.d.ts +0 -2
  1900. package/lib/mjs/components/table/fixtures/index.js +0 -2
  1901. package/lib/mjs/components/tabs/Tabs.d.ts +0 -30
  1902. package/lib/mjs/components/tabs/Tabs.form.d.ts +0 -3
  1903. package/lib/mjs/components/tabs/Tabs.form.js +0 -10
  1904. package/lib/mjs/components/tabs/Tabs.js +0 -201
  1905. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.d.ts +0 -49
  1906. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +0 -66
  1907. package/lib/mjs/components/tabs/fixtures/comp1.d.ts +0 -23
  1908. package/lib/mjs/components/tabs/fixtures/comp1.js +0 -31
  1909. package/lib/mjs/components/tabs/fixtures/index.d.ts +0 -2
  1910. package/lib/mjs/components/tabs/fixtures/index.js +0 -2
  1911. package/lib/mjs/components/tags/Tags.d.ts +0 -41
  1912. package/lib/mjs/components/tags/Tags.form.d.ts +0 -3
  1913. package/lib/mjs/components/tags/Tags.form.js +0 -10
  1914. package/lib/mjs/components/tags/Tags.js +0 -171
  1915. package/lib/mjs/components/tags/editForm/Tags.edit.data.d.ts +0 -51
  1916. package/lib/mjs/components/tags/editForm/Tags.edit.data.js +0 -37
  1917. package/lib/mjs/components/tags/fixtures/comp1.d.ts +0 -20
  1918. package/lib/mjs/components/tags/fixtures/comp1.js +0 -18
  1919. package/lib/mjs/components/tags/fixtures/comp2.d.ts +0 -10
  1920. package/lib/mjs/components/tags/fixtures/comp2.js +0 -9
  1921. package/lib/mjs/components/tags/fixtures/comp3.d.ts +0 -23
  1922. package/lib/mjs/components/tags/fixtures/comp3.js +0 -18
  1923. package/lib/mjs/components/tags/fixtures/comp4.d.ts +0 -9
  1924. package/lib/mjs/components/tags/fixtures/comp4.js +0 -8
  1925. package/lib/mjs/components/tags/fixtures/comp5.d.ts +0 -24
  1926. package/lib/mjs/components/tags/fixtures/comp5.js +0 -22
  1927. package/lib/mjs/components/tags/fixtures/comp6.d.ts +0 -17
  1928. package/lib/mjs/components/tags/fixtures/comp6.js +0 -18
  1929. package/lib/mjs/components/tags/fixtures/index.d.ts +0 -7
  1930. package/lib/mjs/components/tags/fixtures/index.js +0 -7
  1931. package/lib/mjs/components/tags/fixtures/values.d.ts +0 -2
  1932. package/lib/mjs/components/tags/fixtures/values.js +0 -4
  1933. package/lib/mjs/components/textarea/TextArea.d.ts +0 -37
  1934. package/lib/mjs/components/textarea/TextArea.form.d.ts +0 -3
  1935. package/lib/mjs/components/textarea/TextArea.form.js +0 -15
  1936. package/lib/mjs/components/textarea/TextArea.js +0 -529
  1937. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.d.ts +0 -355
  1938. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +0 -258
  1939. package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.d.ts +0 -10
  1940. package/lib/mjs/components/textarea/editForm/TextArea.edit.validation.js +0 -20
  1941. package/lib/mjs/components/textarea/fixtures/comp1.d.ts +0 -31
  1942. package/lib/mjs/components/textarea/fixtures/comp1.js +0 -29
  1943. package/lib/mjs/components/textarea/fixtures/comp2.d.ts +0 -29
  1944. package/lib/mjs/components/textarea/fixtures/comp2.js +0 -27
  1945. package/lib/mjs/components/textarea/fixtures/comp3.d.ts +0 -27
  1946. package/lib/mjs/components/textarea/fixtures/comp3.js +0 -27
  1947. package/lib/mjs/components/textarea/fixtures/comp4.d.ts +0 -30
  1948. package/lib/mjs/components/textarea/fixtures/comp4.js +0 -25
  1949. package/lib/mjs/components/textarea/fixtures/index.d.ts +0 -5
  1950. package/lib/mjs/components/textarea/fixtures/index.js +0 -5
  1951. package/lib/mjs/components/textarea/fixtures/values.d.ts +0 -2
  1952. package/lib/mjs/components/textarea/fixtures/values.js +0 -4
  1953. package/lib/mjs/components/textfield/TextField.d.ts +0 -60
  1954. package/lib/mjs/components/textfield/TextField.form.d.ts +0 -3
  1955. package/lib/mjs/components/textfield/TextField.form.js +0 -20
  1956. package/lib/mjs/components/textfield/TextField.js +0 -229
  1957. package/lib/mjs/components/textfield/editForm/TextField.edit.data.d.ts +0 -46
  1958. package/lib/mjs/components/textfield/editForm/TextField.edit.data.js +0 -56
  1959. package/lib/mjs/components/textfield/editForm/TextField.edit.display.d.ts +0 -248
  1960. package/lib/mjs/components/textfield/editForm/TextField.edit.display.js +0 -203
  1961. package/lib/mjs/components/textfield/editForm/TextField.edit.validation.d.ts +0 -10
  1962. package/lib/mjs/components/textfield/editForm/TextField.edit.validation.js +0 -47
  1963. package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
  1964. package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -46
  1965. package/lib/mjs/components/textfield/fixtures/comp1.d.ts +0 -33
  1966. package/lib/mjs/components/textfield/fixtures/comp1.js +0 -31
  1967. package/lib/mjs/components/textfield/fixtures/comp2.d.ts +0 -33
  1968. package/lib/mjs/components/textfield/fixtures/comp2.js +0 -31
  1969. package/lib/mjs/components/textfield/fixtures/comp3.d.ts +0 -33
  1970. package/lib/mjs/components/textfield/fixtures/comp3.js +0 -31
  1971. package/lib/mjs/components/textfield/fixtures/comp4.d.ts +0 -23
  1972. package/lib/mjs/components/textfield/fixtures/comp4.js +0 -25
  1973. package/lib/mjs/components/textfield/fixtures/comp5.d.ts +0 -12
  1974. package/lib/mjs/components/textfield/fixtures/comp5.js +0 -11
  1975. package/lib/mjs/components/textfield/fixtures/comp6.d.ts +0 -25
  1976. package/lib/mjs/components/textfield/fixtures/comp6.js +0 -19
  1977. package/lib/mjs/components/textfield/fixtures/comp7.d.ts +0 -37
  1978. package/lib/mjs/components/textfield/fixtures/comp7.js +0 -36
  1979. package/lib/mjs/components/textfield/fixtures/index.d.ts +0 -9
  1980. package/lib/mjs/components/textfield/fixtures/index.js +0 -9
  1981. package/lib/mjs/components/textfield/fixtures/values.d.ts +0 -2
  1982. package/lib/mjs/components/textfield/fixtures/values.js +0 -5
  1983. package/lib/mjs/components/time/Time.d.ts +0 -27
  1984. package/lib/mjs/components/time/Time.form.d.ts +0 -3
  1985. package/lib/mjs/components/time/Time.form.js +0 -15
  1986. package/lib/mjs/components/time/Time.js +0 -153
  1987. package/lib/mjs/components/time/editForm/Time.edit.data.d.ts +0 -10
  1988. package/lib/mjs/components/time/editForm/Time.edit.data.js +0 -11
  1989. package/lib/mjs/components/time/editForm/Time.edit.display.d.ts +0 -52
  1990. package/lib/mjs/components/time/editForm/Time.edit.display.js +0 -40
  1991. package/lib/mjs/components/time/fixtures/comp1.d.ts +0 -24
  1992. package/lib/mjs/components/time/fixtures/comp1.js +0 -22
  1993. package/lib/mjs/components/time/fixtures/comp2.d.ts +0 -10
  1994. package/lib/mjs/components/time/fixtures/comp2.js +0 -9
  1995. package/lib/mjs/components/time/fixtures/comp3.d.ts +0 -15
  1996. package/lib/mjs/components/time/fixtures/comp3.js +0 -16
  1997. package/lib/mjs/components/time/fixtures/index.d.ts +0 -6
  1998. package/lib/mjs/components/time/fixtures/index.js +0 -6
  1999. package/lib/mjs/components/time/fixtures/timeForm.d.ts +0 -47
  2000. package/lib/mjs/components/time/fixtures/timeForm.js +0 -50
  2001. package/lib/mjs/components/time/fixtures/timeForm2.d.ts +0 -38
  2002. package/lib/mjs/components/time/fixtures/timeForm2.js +0 -42
  2003. package/lib/mjs/components/time/fixtures/values.d.ts +0 -2
  2004. package/lib/mjs/components/time/fixtures/values.js +0 -5
  2005. package/lib/mjs/components/tree/Node.d.ts +0 -55
  2006. package/lib/mjs/components/tree/Node.js +0 -179
  2007. package/lib/mjs/components/tree/Tree.d.ts +0 -48
  2008. package/lib/mjs/components/tree/Tree.form.d.ts +0 -3
  2009. package/lib/mjs/components/tree/Tree.form.js +0 -15
  2010. package/lib/mjs/components/tree/Tree.js +0 -384
  2011. package/lib/mjs/components/tree/editForm/Tree.edit.data.d.ts +0 -5
  2012. package/lib/mjs/components/tree/editForm/Tree.edit.data.js +0 -7
  2013. package/lib/mjs/components/tree/editForm/Tree.edit.display.d.ts +0 -9
  2014. package/lib/mjs/components/tree/editForm/Tree.edit.display.js +0 -10
  2015. package/lib/mjs/components/tree/fixtures/comp1.d.ts +0 -23
  2016. package/lib/mjs/components/tree/fixtures/comp1.js +0 -22
  2017. package/lib/mjs/components/tree/fixtures/comp2.d.ts +0 -116
  2018. package/lib/mjs/components/tree/fixtures/comp2.js +0 -80
  2019. package/lib/mjs/components/tree/fixtures/comp3.d.ts +0 -24
  2020. package/lib/mjs/components/tree/fixtures/comp3.js +0 -23
  2021. package/lib/mjs/components/tree/fixtures/comp4.d.ts +0 -42
  2022. package/lib/mjs/components/tree/fixtures/comp4.js +0 -45
  2023. package/lib/mjs/components/tree/fixtures/index.d.ts +0 -5
  2024. package/lib/mjs/components/tree/fixtures/index.js +0 -5
  2025. package/lib/mjs/components/unknown/Unknown.d.ts +0 -28
  2026. package/lib/mjs/components/unknown/Unknown.form.d.ts +0 -34
  2027. package/lib/mjs/components/unknown/Unknown.form.js +0 -19
  2028. package/lib/mjs/components/unknown/Unknown.js +0 -24
  2029. package/lib/mjs/components/unknown/editForm/Unknown.edit.display.d.ts +0 -24
  2030. package/lib/mjs/components/unknown/editForm/Unknown.edit.display.js +0 -25
  2031. package/lib/mjs/components/unknown/fixtures/comp1.d.ts +0 -7
  2032. package/lib/mjs/components/unknown/fixtures/comp1.js +0 -6
  2033. package/lib/mjs/components/unknown/fixtures/index.d.ts +0 -2
  2034. package/lib/mjs/components/unknown/fixtures/index.js +0 -2
  2035. package/lib/mjs/components/url/Url.d.ts +0 -3
  2036. package/lib/mjs/components/url/Url.form.d.ts +0 -3
  2037. package/lib/mjs/components/url/Url.form.js +0 -20
  2038. package/lib/mjs/components/url/Url.js +0 -33
  2039. package/lib/mjs/components/url/editForm/Url.edit.data.d.ts +0 -5
  2040. package/lib/mjs/components/url/editForm/Url.edit.data.js +0 -6
  2041. package/lib/mjs/components/url/editForm/Url.edit.display.d.ts +0 -5
  2042. package/lib/mjs/components/url/editForm/Url.edit.display.js +0 -18
  2043. package/lib/mjs/components/url/editForm/Url.edit.validation.d.ts +0 -5
  2044. package/lib/mjs/components/url/editForm/Url.edit.validation.js +0 -10
  2045. package/lib/mjs/components/url/fixtures/comp1.d.ts +0 -26
  2046. package/lib/mjs/components/url/fixtures/comp1.js +0 -24
  2047. package/lib/mjs/components/url/fixtures/comp2.d.ts +0 -26
  2048. package/lib/mjs/components/url/fixtures/comp2.js +0 -21
  2049. package/lib/mjs/components/url/fixtures/index.d.ts +0 -3
  2050. package/lib/mjs/components/url/fixtures/index.js +0 -3
  2051. package/lib/mjs/components/url/fixtures/values.d.ts +0 -2
  2052. package/lib/mjs/components/url/fixtures/values.js +0 -4
  2053. package/lib/mjs/components/well/Well.d.ts +0 -15
  2054. package/lib/mjs/components/well/Well.form.d.ts +0 -3
  2055. package/lib/mjs/components/well/Well.form.js +0 -10
  2056. package/lib/mjs/components/well/Well.js +0 -39
  2057. package/lib/mjs/components/well/editForm/Well.edit.display.d.ts +0 -5
  2058. package/lib/mjs/components/well/editForm/Well.edit.display.js +0 -30
  2059. package/lib/mjs/components/well/fixtures/comp1.d.ts +0 -43
  2060. package/lib/mjs/components/well/fixtures/comp1.js +0 -75
  2061. package/lib/mjs/components/well/fixtures/index.d.ts +0 -2
  2062. package/lib/mjs/components/well/fixtures/index.js +0 -2
  2063. package/lib/mjs/displays/Displays.d.ts +0 -18
  2064. package/lib/mjs/displays/Displays.js +0 -24
  2065. package/lib/mjs/displays/index.d.ts +0 -2
  2066. package/lib/mjs/displays/index.js +0 -2
  2067. package/lib/mjs/formio.embed.d.ts +0 -2
  2068. package/lib/mjs/formio.embed.js +0 -97
  2069. package/lib/mjs/formio.form.d.ts +0 -23
  2070. package/lib/mjs/formio.form.js +0 -146
  2071. package/lib/mjs/i18n.d.ts +0 -13
  2072. package/lib/mjs/i18n.js +0 -14
  2073. package/lib/mjs/index.d.ts +0 -4
  2074. package/lib/mjs/index.js +0 -13
  2075. package/lib/mjs/licenses/Licenses.d.ts +0 -7
  2076. package/lib/mjs/licenses/Licenses.js +0 -17
  2077. package/lib/mjs/licenses/index.d.ts +0 -2
  2078. package/lib/mjs/licenses/index.js +0 -2
  2079. package/lib/mjs/package.json +0 -3
  2080. package/lib/mjs/pdf.image.d.ts +0 -2
  2081. package/lib/mjs/pdf.image.js +0 -94
  2082. package/lib/mjs/providers/Providers.d.ts +0 -84
  2083. package/lib/mjs/providers/Providers.js +0 -29
  2084. package/lib/mjs/providers/address/AddressProvider.d.ts +0 -17
  2085. package/lib/mjs/providers/address/AddressProvider.js +0 -54
  2086. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +0 -12
  2087. package/lib/mjs/providers/address/AzureAddressProvider.js +0 -27
  2088. package/lib/mjs/providers/address/CustomAddressProvider.d.ts +0 -7
  2089. package/lib/mjs/providers/address/CustomAddressProvider.js +0 -22
  2090. package/lib/mjs/providers/address/GoogleAddressProvider.d.ts +0 -18
  2091. package/lib/mjs/providers/address/GoogleAddressProvider.js +0 -109
  2092. package/lib/mjs/providers/address/NominatimAddressProvider.d.ts +0 -11
  2093. package/lib/mjs/providers/address/NominatimAddressProvider.js +0 -27
  2094. package/lib/mjs/providers/address/index.d.ts +0 -6
  2095. package/lib/mjs/providers/address/index.js +0 -10
  2096. package/lib/mjs/providers/auth/index.d.ts +0 -2
  2097. package/lib/mjs/providers/auth/index.js +0 -1
  2098. package/lib/mjs/providers/index.d.ts +0 -2
  2099. package/lib/mjs/providers/index.js +0 -2
  2100. package/lib/mjs/providers/processor/fileProcessor.d.ts +0 -2
  2101. package/lib/mjs/providers/processor/fileProcessor.js +0 -38
  2102. package/lib/mjs/providers/storage/azure.d.ts +0 -17
  2103. package/lib/mjs/providers/storage/azure.js +0 -30
  2104. package/lib/mjs/providers/storage/base64.d.ts +0 -10
  2105. package/lib/mjs/providers/storage/base64.js +0 -29
  2106. package/lib/mjs/providers/storage/dropbox.d.ts +0 -8
  2107. package/lib/mjs/providers/storage/dropbox.js +0 -55
  2108. package/lib/mjs/providers/storage/googleDrive.d.ts +0 -9
  2109. package/lib/mjs/providers/storage/googleDrive.js +0 -58
  2110. package/lib/mjs/providers/storage/index.d.ts +0 -15
  2111. package/lib/mjs/providers/storage/index.js +0 -14
  2112. package/lib/mjs/providers/storage/indexeddb.d.ts +0 -11
  2113. package/lib/mjs/providers/storage/indexeddb.js +0 -118
  2114. package/lib/mjs/providers/storage/s3.d.ts +0 -18
  2115. package/lib/mjs/providers/storage/s3.js +0 -48
  2116. package/lib/mjs/providers/storage/uploadAdapter.d.ts +0 -1
  2117. package/lib/mjs/providers/storage/uploadAdapter.js +0 -54
  2118. package/lib/mjs/providers/storage/url.d.ts +0 -11
  2119. package/lib/mjs/providers/storage/url.js +0 -140
  2120. package/lib/mjs/providers/storage/xhr.d.ts +0 -7
  2121. package/lib/mjs/providers/storage/xhr.js +0 -93
  2122. package/lib/mjs/templates/Templates.d.ts +0 -11
  2123. package/lib/mjs/templates/Templates.js +0 -41
  2124. package/lib/mjs/templates/index.d.ts +0 -229
  2125. package/lib/mjs/templates/index.js +0 -4
  2126. package/lib/mjs/translations/en.d.ts +0 -66
  2127. package/lib/mjs/translations/en.js +0 -65
  2128. package/lib/mjs/utils/ChoicesWrapper.d.ts +0 -38
  2129. package/lib/mjs/utils/ChoicesWrapper.js +0 -188
  2130. package/lib/mjs/utils/Evaluator.d.ts +0 -4
  2131. package/lib/mjs/utils/Evaluator.js +0 -64
  2132. package/lib/mjs/utils/builder.d.ts +0 -22
  2133. package/lib/mjs/utils/builder.js +0 -79
  2134. package/lib/mjs/utils/calendarUtils.d.ts +0 -41
  2135. package/lib/mjs/utils/calendarUtils.js +0 -128
  2136. package/lib/mjs/utils/conditionOperators/ConditionOperator.d.ts +0 -7
  2137. package/lib/mjs/utils/conditionOperators/ConditionOperator.js +0 -23
  2138. package/lib/mjs/utils/conditionOperators/DateGreaterThan.d.ts +0 -13
  2139. package/lib/mjs/utils/conditionOperators/DateGreaterThan.js +0 -31
  2140. package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.d.ts +0 -4
  2141. package/lib/mjs/utils/conditionOperators/DateGreaterThanOrEqual.js +0 -12
  2142. package/lib/mjs/utils/conditionOperators/DateLessThan.d.ts +0 -4
  2143. package/lib/mjs/utils/conditionOperators/DateLessThan.js +0 -12
  2144. package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.d.ts +0 -4
  2145. package/lib/mjs/utils/conditionOperators/DateLessThanOrEqual.js +0 -12
  2146. package/lib/mjs/utils/conditionOperators/EndsWith.d.ts +0 -7
  2147. package/lib/mjs/utils/conditionOperators/EndsWith.js +0 -13
  2148. package/lib/mjs/utils/conditionOperators/GreaterThan.d.ts +0 -7
  2149. package/lib/mjs/utils/conditionOperators/GreaterThan.js +0 -13
  2150. package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +0 -7
  2151. package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.js +0 -13
  2152. package/lib/mjs/utils/conditionOperators/Includes.d.ts +0 -7
  2153. package/lib/mjs/utils/conditionOperators/Includes.js +0 -13
  2154. package/lib/mjs/utils/conditionOperators/IsDateEqual.d.ts +0 -4
  2155. package/lib/mjs/utils/conditionOperators/IsDateEqual.js +0 -12
  2156. package/lib/mjs/utils/conditionOperators/IsEmptyValue.d.ts +0 -9
  2157. package/lib/mjs/utils/conditionOperators/IsEmptyValue.js +0 -24
  2158. package/lib/mjs/utils/conditionOperators/IsEqualTo.d.ts +0 -7
  2159. package/lib/mjs/utils/conditionOperators/IsEqualTo.js +0 -24
  2160. package/lib/mjs/utils/conditionOperators/IsNotDateEqual.d.ts +0 -4
  2161. package/lib/mjs/utils/conditionOperators/IsNotDateEqual.js +0 -12
  2162. package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.d.ts +0 -4
  2163. package/lib/mjs/utils/conditionOperators/IsNotEmptyValue.js +0 -12
  2164. package/lib/mjs/utils/conditionOperators/IsNotEqualTo.d.ts +0 -7
  2165. package/lib/mjs/utils/conditionOperators/IsNotEqualTo.js +0 -13
  2166. package/lib/mjs/utils/conditionOperators/LessThan.d.ts +0 -7
  2167. package/lib/mjs/utils/conditionOperators/LessThan.js +0 -13
  2168. package/lib/mjs/utils/conditionOperators/LessThanOrEqual.d.ts +0 -7
  2169. package/lib/mjs/utils/conditionOperators/LessThanOrEqual.js +0 -13
  2170. package/lib/mjs/utils/conditionOperators/NotIncludes.d.ts +0 -4
  2171. package/lib/mjs/utils/conditionOperators/NotIncludes.js +0 -12
  2172. package/lib/mjs/utils/conditionOperators/StartsWith.d.ts +0 -7
  2173. package/lib/mjs/utils/conditionOperators/StartsWith.js +0 -13
  2174. package/lib/mjs/utils/conditionOperators/index.d.ts +0 -7
  2175. package/lib/mjs/utils/conditionOperators/index.js +0 -39
  2176. package/lib/mjs/utils/formUtils.d.ts +0 -173
  2177. package/lib/mjs/utils/formUtils.js +0 -560
  2178. package/lib/mjs/utils/i18n.d.ts +0 -16
  2179. package/lib/mjs/utils/i18n.js +0 -81
  2180. package/lib/mjs/utils/index.d.ts +0 -2
  2181. package/lib/mjs/utils/index.js +0 -5
  2182. package/lib/mjs/utils/jsonlogic/operators.d.ts +0 -1
  2183. package/lib/mjs/utils/jsonlogic/operators.js +0 -262
  2184. package/lib/mjs/utils/utils.d.ts +0 -374
  2185. package/lib/mjs/utils/utils.js +0 -1386
  2186. package/lib/mjs/validator/Rules.d.ts +0 -53
  2187. package/lib/mjs/validator/Rules.js +0 -17
  2188. package/lib/mjs/validator/Validator.d.ts +0 -228
  2189. package/lib/mjs/validator/Validator.js +0 -1103
  2190. package/lib/mjs/validator/conjunctions/index.d.ts +0 -7
  2191. package/lib/mjs/validator/conjunctions/index.js +0 -16
  2192. package/lib/mjs/validator/operators/index.d.ts +0 -7
  2193. package/lib/mjs/validator/operators/index.js +0 -16
  2194. package/lib/mjs/validator/quickRules/index.d.ts +0 -7
  2195. package/lib/mjs/validator/quickRules/index.js +0 -16
  2196. package/lib/mjs/validator/rules/Custom.d.ts +0 -5
  2197. package/lib/mjs/validator/rules/Custom.js +0 -21
  2198. package/lib/mjs/validator/rules/Date.d.ts +0 -5
  2199. package/lib/mjs/validator/rules/Date.js +0 -16
  2200. package/lib/mjs/validator/rules/Day.d.ts +0 -5
  2201. package/lib/mjs/validator/rules/Day.js +0 -49
  2202. package/lib/mjs/validator/rules/Email.d.ts +0 -5
  2203. package/lib/mjs/validator/rules/Email.js +0 -15
  2204. package/lib/mjs/validator/rules/JSON.d.ts +0 -5
  2205. package/lib/mjs/validator/rules/JSON.js +0 -20
  2206. package/lib/mjs/validator/rules/Mask.d.ts +0 -5
  2207. package/lib/mjs/validator/rules/Mask.js +0 -23
  2208. package/lib/mjs/validator/rules/Max.d.ts +0 -5
  2209. package/lib/mjs/validator/rules/Max.js +0 -12
  2210. package/lib/mjs/validator/rules/MaxDate.d.ts +0 -5
  2211. package/lib/mjs/validator/rules/MaxDate.js +0 -25
  2212. package/lib/mjs/validator/rules/MaxLength.d.ts +0 -5
  2213. package/lib/mjs/validator/rules/MaxLength.js +0 -11
  2214. package/lib/mjs/validator/rules/MaxWords.d.ts +0 -5
  2215. package/lib/mjs/validator/rules/MaxWords.js +0 -11
  2216. package/lib/mjs/validator/rules/MaxYear.d.ts +0 -5
  2217. package/lib/mjs/validator/rules/MaxYear.js +0 -13
  2218. package/lib/mjs/validator/rules/Min.d.ts +0 -5
  2219. package/lib/mjs/validator/rules/Min.js +0 -12
  2220. package/lib/mjs/validator/rules/MinDate.d.ts +0 -5
  2221. package/lib/mjs/validator/rules/MinDate.js +0 -21
  2222. package/lib/mjs/validator/rules/MinLength.d.ts +0 -5
  2223. package/lib/mjs/validator/rules/MinLength.js +0 -11
  2224. package/lib/mjs/validator/rules/MinWords.d.ts +0 -5
  2225. package/lib/mjs/validator/rules/MinWords.js +0 -11
  2226. package/lib/mjs/validator/rules/MinYear.d.ts +0 -5
  2227. package/lib/mjs/validator/rules/MinYear.js +0 -13
  2228. package/lib/mjs/validator/rules/Pattern.d.ts +0 -5
  2229. package/lib/mjs/validator/rules/Pattern.js +0 -11
  2230. package/lib/mjs/validator/rules/Required.d.ts +0 -5
  2231. package/lib/mjs/validator/rules/Required.js +0 -8
  2232. package/lib/mjs/validator/rules/Rule.d.ts +0 -7
  2233. package/lib/mjs/validator/rules/Rule.js +0 -9
  2234. package/lib/mjs/validator/rules/Select.d.ts +0 -5
  2235. package/lib/mjs/validator/rules/Select.js +0 -86
  2236. package/lib/mjs/validator/rules/Time.d.ts +0 -5
  2237. package/lib/mjs/validator/rules/Time.js +0 -10
  2238. package/lib/mjs/validator/rules/Unique.d.ts +0 -5
  2239. package/lib/mjs/validator/rules/Unique.js +0 -60
  2240. package/lib/mjs/validator/rules/Url.d.ts +0 -5
  2241. package/lib/mjs/validator/rules/Url.js +0 -14
  2242. package/lib/mjs/validator/rules/index.d.ts +0 -47
  2243. package/lib/mjs/validator/rules/index.js +0 -46
  2244. package/lib/mjs/validator/transformers/index.d.ts +0 -7
  2245. package/lib/mjs/validator/transformers/index.js +0 -16
  2246. package/lib/mjs/validator/valueSources/index.d.ts +0 -7
  2247. package/lib/mjs/validator/valueSources/index.js +0 -16
  2248. package/lib/mjs/widgets/CalendarWidget.d.ts +0 -97
  2249. package/lib/mjs/widgets/CalendarWidget.js +0 -457
  2250. package/lib/mjs/widgets/InputWidget.d.ts +0 -24
  2251. package/lib/mjs/widgets/InputWidget.js +0 -68
  2252. package/lib/mjs/widgets/index.d.ts +0 -7
  2253. package/lib/mjs/widgets/index.js +0 -6
@@ -1,3164 +0,0 @@
1
- /* globals Quill, ClassicEditor, CKEDITOR */
2
- import { conformToMask } from '@formio/vanilla-text-mask';
3
- import tippy from 'tippy.js';
4
- import _ from 'lodash';
5
- import isMobile from 'ismobilejs';
6
- import { Formio } from '../../../Formio';
7
- import * as FormioUtils from '../../../utils/utils';
8
- import Validator from '../../../validator/Validator';
9
- import { fastCloneDeep, boolValue, getComponentPath, isInsideScopingComponent, currentTimezone } from '../../../utils/utils';
10
- import Element from '../../../Element';
11
- import ComponentModal from '../componentModal/ComponentModal';
12
- import Widgets from '../../../widgets';
13
- import Addons from '../../../addons';
14
- import { getFormioUploadAdapterPlugin } from '../../../providers/storage/uploadAdapter';
15
- import enTranslation from '../../../translations/en';
16
- import Templates from '../../../templates/Templates';
17
- const isIEBrowser = FormioUtils.getBrowserInfo().ie;
18
- /**
19
- * This is the Component class
20
- which all elements within the FormioForm derive from.
21
- */
22
- export default class Component extends Element {
23
- static schema(...sources) {
24
- return _.merge({
25
- /**
26
- * Determines if this component provides an input.
27
- */
28
- input: true,
29
- /**
30
- * The data key for this component (how the data is stored in the database).
31
- */
32
- key: '',
33
- /**
34
- * The input placeholder for this component.
35
- */
36
- placeholder: '',
37
- /**
38
- * The input prefix
39
- */
40
- prefix: '',
41
- /**
42
- * The custom CSS class to provide to this component.
43
- */
44
- customClass: '',
45
- /**
46
- * The input suffix.
47
- */
48
- suffix: '',
49
- /**
50
- * If this component should allow an array of values to be captured.
51
- */
52
- multiple: false,
53
- /**
54
- * The default value of this component.
55
- */
56
- defaultValue: null,
57
- /**
58
- * If the data of this component should be protected (no GET api requests can see the data)
59
- */
60
- protected: false,
61
- /**
62
- * Validate if the value of this component should be unique within the form.
63
- */
64
- unique: false,
65
- /**
66
- * If the value of this component should be persisted within the backend api database.
67
- */
68
- persistent: true,
69
- /**
70
- * Determines if the component should be within the form, but not visible.
71
- */
72
- hidden: false,
73
- /**
74
- * If the component should be cleared when hidden.
75
- */
76
- clearOnHide: true,
77
- /**
78
- * This will refresh this component options when this field changes.
79
- */
80
- refreshOn: '',
81
- /**
82
- * This will redraw the component when this field changes.
83
- */
84
- redrawOn: '',
85
- /**
86
- * If this component should be included as a column within a submission table.
87
- */
88
- tableView: false,
89
- /**
90
- * If this component should be rendering in modal.
91
- */
92
- modalEdit: false,
93
- /**
94
- * The input label provided to this component.
95
- */
96
- label: '',
97
- dataGridLabel: false,
98
- labelPosition: 'top',
99
- description: '',
100
- errorLabel: '',
101
- tooltip: '',
102
- hideLabel: false,
103
- tabindex: '',
104
- disabled: false,
105
- autofocus: false,
106
- dbIndex: false,
107
- customDefaultValue: '',
108
- calculateValue: '',
109
- calculateServer: false,
110
- widget: null,
111
- /**
112
- * Attributes that will be assigned to the input elements of this component.
113
- */
114
- attributes: {},
115
- /**
116
- * This will perform the validation on either "change" or "blur" of the input element.
117
- */
118
- validateOn: 'change',
119
- /**
120
- * The validation criteria for this component.
121
- */
122
- validate: {
123
- /**
124
- * If this component is required.
125
- */
126
- required: false,
127
- /**
128
- * Custom JavaScript validation.
129
- */
130
- custom: '',
131
- /**
132
- * If the custom validation should remain private (only the backend will see it and execute it).
133
- */
134
- customPrivate: false,
135
- /**
136
- * If this component should implement a strict date validation if the Calendar widget is implemented.
137
- */
138
- strictDateValidation: false,
139
- multiple: false,
140
- unique: false
141
- },
142
- /**
143
- * The simple conditional settings for a component.
144
- */
145
- conditional: {
146
- show: null,
147
- when: null,
148
- eq: ''
149
- },
150
- overlay: {
151
- style: '',
152
- left: '',
153
- top: '',
154
- width: '',
155
- height: '',
156
- },
157
- allowCalculateOverride: false,
158
- encrypted: false,
159
- showCharCount: false,
160
- showWordCount: false,
161
- properties: {},
162
- allowMultipleMasks: false,
163
- addons: [],
164
- }, ...sources);
165
- }
166
- /**
167
- * Return the validator as part of the component.
168
- *
169
- * @return {ValidationChecker}
170
- * @constructor
171
- */
172
- static get Validator() {
173
- return Validator;
174
- }
175
- /**
176
- * Return the simple condition settings as part of the component.
177
- *
178
- * @return {Object}
179
- *
180
- */
181
- static get conditionOperatorsSettings() {
182
- return {
183
- operators: ['isEqual', 'isNotEqual', 'isEmpty', 'isNotEmpty'],
184
- valueComponent() {
185
- return { type: 'textfield' };
186
- }
187
- };
188
- }
189
- /**
190
- * Return the array of possible types of component value absed on its schema.
191
- *
192
- * @param schema
193
- * @return {Array}
194
- *
195
- */
196
- static savedValueTypes(schema) {
197
- schema = schema || {};
198
- return FormioUtils.getComponentSavedTypes(schema) || [FormioUtils.componentValueTypes.any];
199
- }
200
- /**
201
- * Provides a table view for this component. Override if you wish to do something different than using getView
202
- * method of your instance.
203
- *
204
- * @param value
205
- * @param options
206
- */
207
- /* eslint-disable no-unused-vars */
208
- static tableView(value, options) { }
209
- /* eslint-enable no-unused-vars */
210
- /**
211
- * Initialize a new Component.
212
- *
213
- * @param {Object} component - The component JSON you wish to initialize.
214
- * @param {Object} options - The options for this component.
215
- * @param {Object} data - The global data submission object this component will belong.
216
- */
217
- /* eslint-disable max-statements */
218
- constructor(component, options, data) {
219
- super(Object.assign({
220
- renderMode: 'form',
221
- attachMode: 'full',
222
- noDefaults: false
223
- }, options || {}));
224
- // Restore the component id.
225
- if (component && component.id) {
226
- this.id = component.id;
227
- }
228
- /**
229
- * Determines if this component has a condition assigned to it.
230
- * @type {null}
231
- * @private
232
- */
233
- this._hasCondition = null;
234
- /**
235
- * References to dom elements
236
- */
237
- this.refs = {};
238
- // Allow global override for any component JSON.
239
- if (component &&
240
- this.options.components &&
241
- this.options.components[component.type]) {
242
- _.merge(component, this.options.components[component.type]);
243
- }
244
- /**
245
- * Set the validator instance.
246
- */
247
- this.validator = Validator;
248
- /**
249
- * The data path to this specific component instance.
250
- *
251
- * @type {string}
252
- */
253
- this.path = '';
254
- /**
255
- * The Form.io component JSON schema.
256
- * @type {*}
257
- */
258
- this.component = this.mergeSchema(component || {});
259
- // Add the id to the component.
260
- this.component.id = this.id;
261
- this.afterComponentAssign();
262
- // Save off the original component to be used in logic.
263
- this.originalComponent = fastCloneDeep(this.component);
264
- /**
265
- * If the component has been attached
266
- */
267
- this.attached = false;
268
- /**
269
- * If the component has been rendered
270
- */
271
- this.rendered = false;
272
- /**
273
- * The data object in which this component resides.
274
- * @type {*}
275
- */
276
- this._data = data || {};
277
- /**
278
- * The existing error that this component has.
279
- * @type {string}
280
- */
281
- this.error = '';
282
- /**
283
- * Tool tip text after processing
284
- * @type {string}
285
- */
286
- this.tooltip = '';
287
- /**
288
- * The row path of this component.
289
- * @type {number}
290
- */
291
- this.row = this.options.row;
292
- /**
293
- * Determines if this component is disabled, or not.
294
- *
295
- * @type {boolean}
296
- */
297
- this._disabled = boolValue(this.component.disabled) ? this.component.disabled : false;
298
- /**
299
- * Points to the root component, usually the FormComponent.
300
- *
301
- * @type {Component}
302
- */
303
- this.root = this.options.root;
304
- this.localRoot = this.options.localRoot;
305
- /**
306
- * If this input has been input and provided value.
307
- *
308
- * @type {boolean}
309
- */
310
- this.pristine = true;
311
- /**
312
- * Points to the parent component.
313
- *
314
- * @type {Component}
315
- */
316
- this.parent = this.options.parent;
317
- this.options.name = this.options.name || 'data';
318
- /**
319
- * The validators that are assigned to this component.
320
- * @type {[string]}
321
- */
322
- this.validators = ['required', 'minLength', 'maxLength', 'minWords', 'maxWords', 'custom', 'pattern', 'json', 'mask'];
323
- this._path = '';
324
- // Nested forms don't have parents so we need to pass their path in.
325
- this._parentPath = this.options.parentPath || '';
326
- // Needs for Nextgen Rules Engine
327
- this.resetCaches();
328
- /**
329
- * Determines if this component is visible, or not.
330
- */
331
- this._parentVisible = this.options.hasOwnProperty('parentVisible') ? this.options.parentVisible : true;
332
- this._visible = this._parentVisible && this.conditionallyVisible(null, data);
333
- this._parentDisabled = false;
334
- /**
335
- * Used to trigger a new change in this component.
336
- * @type {function} - Call to trigger a change in this component.
337
- */
338
- let changes = [];
339
- let lastChanged = null;
340
- let triggerArgs = [];
341
- const _triggerChange = _.debounce((...args) => {
342
- if (this.root) {
343
- this.root.changing = false;
344
- }
345
- triggerArgs = [];
346
- if (!args[1] && lastChanged) {
347
- // Set the changed component if one isn't provided.
348
- args[1] = lastChanged;
349
- }
350
- if (_.isEmpty(args[0]) && lastChanged) {
351
- // Set the flags if it is empty and lastChanged exists.
352
- args[0] = lastChanged.flags;
353
- }
354
- lastChanged = null;
355
- args[3] = changes;
356
- const retVal = this.onChange(...args);
357
- changes = [];
358
- return retVal;
359
- }, 100);
360
- this.triggerChange = (...args) => {
361
- if (args[1]) {
362
- // Make sure that during the debounce that we always track lastChanged component, even if they
363
- // don't provide one later.
364
- lastChanged = args[1];
365
- changes.push(lastChanged);
366
- }
367
- if (this.root) {
368
- this.root.changing = true;
369
- }
370
- if (args.length) {
371
- triggerArgs = args;
372
- }
373
- return _triggerChange(...triggerArgs);
374
- };
375
- /**
376
- * Used to trigger a redraw event within this component.
377
- *
378
- * @type {Function}
379
- */
380
- this.triggerRedraw = _.debounce(this.redraw.bind(this), 100);
381
- /**
382
- * list of attached tooltips
383
- * @type {Array}
384
- */
385
- this.tooltips = [];
386
- /**
387
- * List of attached addons
388
- * @type {Array}
389
- */
390
- this.addons = [];
391
- // To force this component to be invalid.
392
- this.invalid = false;
393
- if (this.component) {
394
- this.type = this.component.type;
395
- if (this.allowData && this.key) {
396
- this.options.name += `[${this.key}]`;
397
- // If component is visible or not set to clear on hide, set the default value.
398
- if (this.visible || !this.component.clearOnHide) {
399
- if (!this.hasValue()) {
400
- if (this.shouldAddDefaultValue) {
401
- this.dataValue = this.defaultValue;
402
- }
403
- }
404
- else {
405
- // Ensure the dataValue is set.
406
- /* eslint-disable no-self-assign */
407
- this.dataValue = this.dataValue;
408
- /* eslint-enable no-self-assign */
409
- }
410
- }
411
- }
412
- /**
413
- * The element information for creating the input element.
414
- * @type {*}
415
- */
416
- this.info = this.elementInfo();
417
- }
418
- // Allow anyone to hook into the component creation.
419
- this.hook('component');
420
- if (!this.options.skipInit) {
421
- this.init();
422
- }
423
- }
424
- /* eslint-enable max-statements */
425
- get data() {
426
- return this._data;
427
- }
428
- set data(value) {
429
- this._data = value;
430
- }
431
- mergeSchema(component = {}) {
432
- return _.defaultsDeep(component, this.defaultSchema);
433
- }
434
- // Allow componets to notify when ready.
435
- get ready() {
436
- return Promise.resolve(this);
437
- }
438
- get isPDFReadOnlyMode() {
439
- return this.parent &&
440
- this.parent.form &&
441
- (this.parent.form.display === 'pdf') &&
442
- this.options.readOnly;
443
- }
444
- get labelInfo() {
445
- const label = {};
446
- label.hidden = this.labelIsHidden();
447
- label.className = '';
448
- label.labelPosition = this.component.labelPosition;
449
- label.tooltipClass = `${this.iconClass('question-sign')} text-muted`;
450
- const isPDFReadOnlyMode = this.isPDFReadOnlyMode;
451
- if (this.hasInput && this.component.validate && boolValue(this.component.validate.required) && !isPDFReadOnlyMode) {
452
- label.className += ' field-required';
453
- }
454
- if (label.hidden) {
455
- label.className += ' control-label--hidden';
456
- }
457
- if (this.info.attr.id) {
458
- label.for = this.info.attr.id;
459
- }
460
- return label;
461
- }
462
- init() {
463
- this.disabled = this.shouldDisabled;
464
- this._visible = this.conditionallyVisible(null, null);
465
- if (this.component.addons?.length) {
466
- this.component.addons.forEach((addon) => this.createAddon(addon));
467
- }
468
- }
469
- afterComponentAssign() {
470
- //implement in extended classes
471
- }
472
- createAddon(addonConfiguration) {
473
- const name = addonConfiguration.name;
474
- if (!name) {
475
- return;
476
- }
477
- const settings = addonConfiguration.settings?.data || {};
478
- const Addon = Addons[name.value];
479
- let addon = null;
480
- if (Addon) {
481
- const supportedComponents = Addon.info.supportedComponents;
482
- const supportsThisComponentType = !supportedComponents?.length ||
483
- supportedComponents.indexOf(this.component.type) !== -1;
484
- if (supportsThisComponentType) {
485
- addon = new Addon(settings, this);
486
- this.addons.push(addon);
487
- }
488
- else {
489
- console.warn(`Addon ${name.label} does not support component of type ${this.component.type}.`);
490
- }
491
- }
492
- return addon;
493
- }
494
- teardown() {
495
- if (this.element) {
496
- delete this.element.component;
497
- delete this.element;
498
- }
499
- delete this._currentForm;
500
- delete this.parent;
501
- delete this.root;
502
- delete this.triggerChange;
503
- delete this.triggerRedraw;
504
- if (this.options) {
505
- delete this.options.root;
506
- delete this.options.parent;
507
- delete this.options.i18next;
508
- }
509
- super.teardown();
510
- }
511
- destroy(all = false) {
512
- super.destroy(all);
513
- this.detach();
514
- this.addons.forEach((addon) => addon.destroy());
515
- if (all) {
516
- this.teardown();
517
- }
518
- }
519
- get shouldDisabled() {
520
- return this.options.readOnly || this.component.disabled || (this.options.hasOwnProperty('disabled') && this.options.disabled[this.key]);
521
- }
522
- get isInputComponent() {
523
- return !this.component.hasOwnProperty('input') || this.component.input;
524
- }
525
- get allowData() {
526
- return this.hasInput;
527
- }
528
- get hasInput() {
529
- return this.isInputComponent || (this.refs.input && this.refs.input.length);
530
- }
531
- get defaultSchema() {
532
- return Component.schema();
533
- }
534
- get key() {
535
- return _.get(this.component, 'key', '');
536
- }
537
- set parentVisible(value) {
538
- this._parentVisible = value;
539
- }
540
- get parentVisible() {
541
- return this._parentVisible;
542
- }
543
- set parentDisabled(value) {
544
- this._parentDisabled = value;
545
- }
546
- get parentDisabled() {
547
- return this._parentDisabled;
548
- }
549
- shouldForceVisibility(component, visibility) {
550
- if (!this.options[visibility]) {
551
- return false;
552
- }
553
- if (!component) {
554
- component = this.component;
555
- }
556
- if (_.isArray(this.options[visibility])) {
557
- return this.options[visibility].includes(component.key);
558
- }
559
- return this.options[visibility][component.key];
560
- }
561
- shouldForceHide(component) {
562
- return this.shouldForceVisibility(component, 'hide');
563
- }
564
- shouldForceShow(component) {
565
- return this.shouldForceVisibility(component, 'show');
566
- }
567
- /**
568
- *
569
- * @param value {boolean}
570
- */
571
- set visible(value) {
572
- if (this._visible !== value) {
573
- // Skip if this component is set to visible and is supposed to be hidden.
574
- if (value && this.shouldForceHide()) {
575
- return;
576
- }
577
- // Skip if this component is set to hidden and is supposed to be shown.
578
- if (!value && this.shouldForceShow()) {
579
- return;
580
- }
581
- this._visible = value;
582
- this.clearOnHide();
583
- this.redraw();
584
- }
585
- }
586
- /**
587
- *
588
- * @returns {boolean}
589
- */
590
- get visible() {
591
- // Show only if visibility changes or if we are in builder mode or if hidden fields should be shown.
592
- if (this.builderMode || this.previewMode || this.options.showHiddenFields) {
593
- return true;
594
- }
595
- if (this.shouldForceHide()) {
596
- return false;
597
- }
598
- if (this.shouldForceShow()) {
599
- return true;
600
- }
601
- return this._visible && this._parentVisible;
602
- }
603
- get currentForm() {
604
- return this._currentForm;
605
- }
606
- set currentForm(instance) {
607
- this._currentForm = instance;
608
- }
609
- get fullMode() {
610
- return this.options.attachMode === 'full';
611
- }
612
- get builderMode() {
613
- return this.options.attachMode === 'builder';
614
- }
615
- get calculatedPath() {
616
- console.error('component.calculatedPath was deprecated, use component.path instead.');
617
- return this.path;
618
- }
619
- get labelPosition() {
620
- return this.component.labelPosition;
621
- }
622
- get labelWidth() {
623
- const width = this.component.labelWidth;
624
- return width >= 0 ? width : 30;
625
- }
626
- get labelMargin() {
627
- const margin = this.component.labelMargin;
628
- return margin >= 0 ? margin : 3;
629
- }
630
- get isAdvancedLabel() {
631
- return [
632
- 'left-left',
633
- 'left-right',
634
- 'right-left',
635
- 'right-right'
636
- ].includes(this.labelPosition);
637
- }
638
- get labelPositions() {
639
- return this.labelPosition.split('-');
640
- }
641
- get skipInEmail() {
642
- return false;
643
- }
644
- rightDirection(direction) {
645
- if (this.options.condensedMode) {
646
- return false;
647
- }
648
- return direction === 'right';
649
- }
650
- getLabelInfo(isCondensed = false) {
651
- const isRightPosition = this.rightDirection(this.labelPositions[0]);
652
- const isLeftPosition = this.labelPositions[0] === 'left' || isCondensed;
653
- const isRightAlign = this.rightDirection(this.labelPositions[1]);
654
- let contentMargin = '';
655
- if (this.component.hideLabel) {
656
- const margin = this.labelWidth + this.labelMargin;
657
- contentMargin = isRightPosition ? `margin-right: ${margin}%` : '';
658
- contentMargin = isLeftPosition ? `margin-left: ${margin}%` : '';
659
- }
660
- const labelStyles = `
661
- flex: ${this.labelWidth};
662
- ${isRightPosition ? 'margin-left' : 'margin-right'}: ${this.labelMargin}%;
663
- `;
664
- const contentStyles = `
665
- flex: ${100 - this.labelWidth - this.labelMargin};
666
- ${contentMargin};
667
- ${this.component.hideLabel ? `max-width: ${100 - this.labelWidth - this.labelMargin}` : ''};
668
- `;
669
- return {
670
- isRightPosition,
671
- isRightAlign,
672
- labelStyles,
673
- contentStyles
674
- };
675
- }
676
- /**
677
- * Returns only the schema that is different from the default.
678
- *
679
- * @param schema
680
- * @param defaultSchema
681
- */
682
- getModifiedSchema(schema, defaultSchema, recursion) {
683
- const modified = {};
684
- if (!defaultSchema) {
685
- return schema;
686
- }
687
- _.each(schema, (val, key) => {
688
- if (!_.isArray(val) && _.isObject(val) && defaultSchema.hasOwnProperty(key)) {
689
- const subModified = this.getModifiedSchema(val, defaultSchema[key], true);
690
- if (!_.isEmpty(subModified)) {
691
- modified[key] = subModified;
692
- }
693
- }
694
- else if (_.isArray(val)) {
695
- if (val.length !== 0 && !_.isEqual(val, defaultSchema[key])) {
696
- modified[key] = val;
697
- }
698
- }
699
- else if ((!recursion && (key === 'type')) ||
700
- (!recursion && (key === 'key')) ||
701
- (!recursion && (key === 'label')) ||
702
- (!recursion && (key === 'input')) ||
703
- (!recursion && (key === 'tableView')) ||
704
- (val !== '' && !defaultSchema.hasOwnProperty(key)) ||
705
- (val !== '' && val !== defaultSchema[key]) ||
706
- (defaultSchema[key] && val !== defaultSchema[key])) {
707
- modified[key] = val;
708
- }
709
- });
710
- return modified;
711
- }
712
- /**
713
- * Returns the JSON schema for this component.
714
- */
715
- get schema() {
716
- return fastCloneDeep(this.getModifiedSchema(_.omit(this.component, 'id'), this.defaultSchema));
717
- }
718
- /**
719
- * Returns true if component is inside DataGrid
720
- */
721
- get isInDataGrid() {
722
- return this.inDataGrid;
723
- }
724
- /**
725
- * Translate a text using the i18n system.
726
- *
727
- * @param {string} text - The i18n identifier.
728
- * @param {Object} params - The i18n parameters to use for translation.
729
- */
730
- t(text, params = {}, ...args) {
731
- if (!text) {
732
- return '';
733
- }
734
- // Use _userInput: true to ignore translations from defaults
735
- if (text in enTranslation && params._userInput) {
736
- return text;
737
- }
738
- params.data = this.rootValue;
739
- params.row = this.data;
740
- params.component = this.component;
741
- return super.t(text, params, ...args);
742
- }
743
- labelIsHidden() {
744
- return !this.component.label ||
745
- ((!this.isInDataGrid && this.component.hideLabel) ||
746
- (this.isInDataGrid && !this.component.dataGridLabel) ||
747
- this.options.inputsOnly) && !this.builderMode;
748
- }
749
- transform(type, value) {
750
- const frameworkTemplates = this.options.template ? Templates.templates[this.options.template] : Templates.current;
751
- return frameworkTemplates.hasOwnProperty('transform')
752
- ? frameworkTemplates.transform(type, value, this)
753
- : (type, value) => value;
754
- }
755
- getTemplate(names, modes) {
756
- modes = Array.isArray(modes) ? modes : [modes];
757
- names = Array.isArray(names) ? names : [names];
758
- if (!modes.includes('form')) {
759
- modes.push('form');
760
- }
761
- let result = null;
762
- if (this.options.templates) {
763
- result = this.checkTemplate(this.options.templates, names, modes);
764
- if (result) {
765
- return result;
766
- }
767
- }
768
- const frameworkTemplates = this.options.template ? Templates.templates[this.options.template] : Templates.current;
769
- result = this.checkTemplate(frameworkTemplates, names, modes);
770
- if (result) {
771
- return result;
772
- }
773
- // Default back to bootstrap if not defined.
774
- const name = names[names.length - 1];
775
- const templatesByName = Templates.defaultTemplates[name];
776
- if (!templatesByName) {
777
- return `Unknown template: ${name}`;
778
- }
779
- const templateByMode = this.checkTemplateMode(templatesByName, modes);
780
- if (templateByMode) {
781
- return templateByMode;
782
- }
783
- return templatesByName.form;
784
- }
785
- checkTemplate(templates, names, modes) {
786
- for (const name of names) {
787
- const templatesByName = templates[name];
788
- if (templatesByName) {
789
- const templateByMode = this.checkTemplateMode(templatesByName, modes);
790
- if (templateByMode) {
791
- return templateByMode;
792
- }
793
- }
794
- }
795
- return null;
796
- }
797
- checkTemplateMode(templatesByName, modes) {
798
- for (const mode of modes) {
799
- const templateByMode = templatesByName[mode];
800
- if (templateByMode) {
801
- return templateByMode;
802
- }
803
- }
804
- return null;
805
- }
806
- getFormattedAttribute(attr) {
807
- return attr ? this.t(attr, { _userInput: true }).replace(/"/g, '"') : '';
808
- }
809
- getFormattedTooltip(tooltipValue) {
810
- const tooltip = this.interpolate(tooltipValue || '').replace(/(?:\r\n|\r|\n)/g, '<br />');
811
- return this.getFormattedAttribute(tooltip);
812
- }
813
- isHtmlRenderMode() {
814
- return this.options.renderMode === 'html';
815
- }
816
- renderTemplate(name, data = {}, modeOption) {
817
- // Need to make this fall back to form if renderMode is not found similar to how we search templates.
818
- const mode = modeOption || this.options.renderMode || 'form';
819
- data.component = this.component;
820
- data.self = this;
821
- data.options = this.options;
822
- data.readOnly = this.options.readOnly;
823
- data.iconClass = this.iconClass.bind(this);
824
- data.size = this.size.bind(this);
825
- data.t = this.t.bind(this);
826
- data.transform = this.transform.bind(this);
827
- data.id = data.id || this.id;
828
- data.key = data.key || this.key;
829
- data.value = data.value || this.dataValue;
830
- data.disabled = this.disabled;
831
- data.builder = this.builderMode;
832
- data.render = (...args) => {
833
- console.warn(`Form.io 'render' template function is deprecated.
834
- If you need to render template (template A) inside of another template (template B),
835
- pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B`);
836
- return this.renderTemplate(...args);
837
- };
838
- data.label = data.labelInfo || this.labelInfo;
839
- data.tooltip = this.getFormattedTooltip(this.component.tooltip);
840
- // Allow more specific template names
841
- const names = [
842
- `${name}-${this.component.type}-${this.key}`,
843
- `${name}-${this.component.type}`,
844
- `${name}-${this.key}`,
845
- `${name}`,
846
- ];
847
- // Allow template alters.
848
- return this.hook(`render${name.charAt(0).toUpperCase() + name.substring(1, name.length)}`, this.interpolate(this.getTemplate(names, mode), data), data, mode);
849
- }
850
- /**
851
- * Sanitize an html string.
852
- *
853
- * @param string
854
- * @returns {*}
855
- */
856
- sanitize(dirty, forceSanitize, options) {
857
- // No need to sanitize when generating PDF'S since no users interact with the form.
858
- if ((!this.shouldSanitizeValue && !forceSanitize) || ((this.options.pdf) && !forceSanitize)) {
859
- return dirty;
860
- }
861
- return FormioUtils.sanitize(dirty, {
862
- sanitizeConfig: _.merge(this.options?.sanitizeConfig || {}, options || {}),
863
- });
864
- }
865
- /**
866
- * Render a template string into html.
867
- *
868
- * @param template
869
- * @param data
870
- * @param actions
871
- *
872
- * @return {HTMLElement|String} - The created element or an empty string if template is not specified.
873
- */
874
- renderString(template, data) {
875
- if (!template) {
876
- return '';
877
- }
878
- // Interpolate the template and populate
879
- return this.interpolate(template, data);
880
- }
881
- performInputMapping(input) {
882
- return input;
883
- }
884
- get widget() {
885
- const settings = this.component.widget;
886
- if (settings && this.root?.shadowRoot) {
887
- settings.shadowRoot = this.root.shadowRoot;
888
- }
889
- const widget = settings && Widgets[settings.type] ? new Widgets[settings.type](settings, this.component, this) : null;
890
- return widget;
891
- }
892
- getBrowserLanguage() {
893
- const nav = window.navigator;
894
- const browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'];
895
- let language;
896
- // support for HTML 5.1 "navigator.languages"
897
- if (Array.isArray(nav.languages)) {
898
- for (let i = 0; i < nav.languages.length; i++) {
899
- language = nav.languages[i];
900
- if (language && language.length) {
901
- return language.split(';')[0];
902
- }
903
- }
904
- }
905
- // support for other well known properties in browsers
906
- for (let i = 0; i < browserLanguagePropertyKeys.length; i++) {
907
- language = nav[browserLanguagePropertyKeys[i]];
908
- if (language && language.length) {
909
- return language.split(';')[0];
910
- }
911
- }
912
- return null;
913
- }
914
- /**
915
- * Called before a next and previous page is triggered allowing the components
916
- * to perform special functions.
917
- *
918
- * @return {*}
919
- */
920
- beforePage() {
921
- return Promise.resolve(true);
922
- }
923
- beforeNext() {
924
- return this.beforePage(true);
925
- }
926
- /**
927
- * Called before a submission is triggered allowing the components
928
- * to perform special async functions.
929
- *
930
- * @return {*}
931
- */
932
- beforeSubmit() {
933
- return Promise.resolve(true);
934
- }
935
- /**
936
- * Return the submission timezone.
937
- *
938
- * @return {*}
939
- */
940
- get submissionTimezone() {
941
- this.options.submissionTimezone = this.options.submissionTimezone || _.get(this.root, 'options.submissionTimezone');
942
- return this.options.submissionTimezone;
943
- }
944
- get timezone() {
945
- return this.getTimezone(this.component);
946
- }
947
- getTimezone(settings) {
948
- if (settings.timezone) {
949
- return settings.timezone;
950
- }
951
- if (settings.displayInTimezone === 'utc') {
952
- return 'UTC';
953
- }
954
- const submissionTimezone = this.submissionTimezone;
955
- if (submissionTimezone &&
956
- ((settings.displayInTimezone === 'submission') ||
957
- ((this.options.pdf || this.options.server) && (settings.displayInTimezone === 'viewer')))) {
958
- return submissionTimezone;
959
- }
960
- // Return current timezone if none are provided.
961
- return currentTimezone();
962
- }
963
- loadRefs(element, refs) {
964
- for (const ref in refs) {
965
- const refType = refs[ref];
966
- const isString = typeof refType === 'string';
967
- const selector = isString && refType.includes('scope') ? `:scope > [ref="${ref}"]` : `[ref="${ref}"]`;
968
- if (isString && refType.startsWith('single')) {
969
- this.refs[ref] = element.querySelector(selector);
970
- }
971
- else {
972
- this.refs[ref] = element.querySelectorAll(selector);
973
- }
974
- }
975
- }
976
- setOpenModalElement(template) {
977
- this.componentModal.setOpenModalElement(template || this.getModalPreviewTemplate());
978
- }
979
- getModalPreviewTemplate() {
980
- const dataValue = this.component.type === 'password' ? this.dataValue.replace(/./g, '•') : this.dataValue;
981
- const message = this.error ? {
982
- level: 'error',
983
- message: this.error.message,
984
- } : '';
985
- let modalLabel;
986
- if (this.hasInput && this.component.validate?.required && !this.isPDFReadOnlyMode) {
987
- modalLabel = { className: 'field-required' };
988
- }
989
- return this.renderTemplate('modalPreview', {
990
- previewText: this.getValueAsString(dataValue, { modalPreview: true }) || this.t('Click to set value'),
991
- messages: message && this.renderTemplate('message', message),
992
- labelInfo: modalLabel,
993
- });
994
- }
995
- build(element) {
996
- element = element || this.element;
997
- this.empty(element);
998
- this.setContent(element, this.render());
999
- return this.attach(element);
1000
- }
1001
- get hasModalSaveButton() {
1002
- return true;
1003
- }
1004
- render(children = `Unknown component: ${this.component.type}`, topLevel = false) {
1005
- const isVisible = this.visible;
1006
- this.rendered = true;
1007
- if (!this.builderMode && !this.previewMode && this.component.modalEdit) {
1008
- return ComponentModal.render(this, {
1009
- visible: isVisible,
1010
- showSaveButton: this.hasModalSaveButton,
1011
- id: this.id,
1012
- classes: this.className,
1013
- styles: this.customStyle,
1014
- children
1015
- }, topLevel);
1016
- }
1017
- else {
1018
- return this.renderTemplate('component', {
1019
- visible: isVisible,
1020
- id: this.id,
1021
- classes: this.className,
1022
- styles: this.customStyle,
1023
- children
1024
- }, topLevel);
1025
- }
1026
- }
1027
- attachTooltips(toolTipsRefs) {
1028
- toolTipsRefs?.forEach((tooltip, index) => {
1029
- if (tooltip) {
1030
- const tooltipAttribute = tooltip.getAttribute('data-tooltip');
1031
- const tooltipDataTitle = tooltip.getAttribute('data-title');
1032
- const tooltipText = this.interpolate(tooltipDataTitle || tooltipAttribute)
1033
- .replace(/(?:\r\n|\r|\n)/g, '<br />');
1034
- this.tooltips[index] = tippy(tooltip, {
1035
- allowHTML: true,
1036
- trigger: 'mouseenter click focus',
1037
- placement: 'right',
1038
- zIndex: 10000,
1039
- interactive: true,
1040
- content: this.t(tooltipText, { _userInput: true }),
1041
- });
1042
- }
1043
- });
1044
- }
1045
- createComponentModal(element, modalShouldBeOpened, currentValue) {
1046
- return new ComponentModal(this, element, modalShouldBeOpened, currentValue);
1047
- }
1048
- attach(element) {
1049
- if (!this.builderMode && !this.previewMode && this.component.modalEdit) {
1050
- const modalShouldBeOpened = this.componentModal ? this.componentModal.isOpened : false;
1051
- const currentValue = modalShouldBeOpened ? this.componentModal.currentValue : this.dataValue;
1052
- const openModalTemplate = this.componentModal && modalShouldBeOpened
1053
- ? this.componentModal.openModalTemplate
1054
- : null;
1055
- this.componentModal = this.createComponentModal(element, modalShouldBeOpened, currentValue);
1056
- this.setOpenModalElement(openModalTemplate);
1057
- }
1058
- this.attached = true;
1059
- this.setElement(element);
1060
- element.component = this;
1061
- // If this already has an id, get it from the dom. If SSR, it could be different from the initiated id.
1062
- if (this.element.id) {
1063
- this.id = this.element.id;
1064
- this.component.id = this.id;
1065
- }
1066
- this.loadRefs(element, {
1067
- messageContainer: 'single',
1068
- tooltip: 'multiple'
1069
- });
1070
- this.attachTooltips(this.refs.tooltip);
1071
- // Attach logic.
1072
- this.attachLogic();
1073
- this.autofocus();
1074
- // Allow global attach.
1075
- this.hook('attachComponent', element, this);
1076
- // Allow attach per component type.
1077
- const type = this.component.type;
1078
- if (type) {
1079
- this.hook(`attach${type.charAt(0).toUpperCase() + type.substring(1, type.length)}`, element, this);
1080
- }
1081
- this.restoreFocus();
1082
- this.addons.forEach((addon) => addon.attach(element));
1083
- return Promise.resolve();
1084
- }
1085
- restoreFocus() {
1086
- const isFocused = this.root?.focusedComponent?.path === this.path;
1087
- if (isFocused) {
1088
- this.loadRefs(this.element, { input: 'multiple' });
1089
- this.focus(this.root.currentSelection?.index);
1090
- this.restoreCaretPosition();
1091
- }
1092
- }
1093
- addShortcut(element, shortcut) {
1094
- // Avoid infinite recursion.
1095
- if (!element || !this.root || (this.root === this)) {
1096
- return;
1097
- }
1098
- if (!shortcut) {
1099
- shortcut = this.component.shortcut;
1100
- }
1101
- this.root.addShortcut(element, shortcut);
1102
- }
1103
- removeShortcut(element, shortcut) {
1104
- // Avoid infinite recursion.
1105
- if (!element || (this.root === this)) {
1106
- return;
1107
- }
1108
- if (!shortcut) {
1109
- shortcut = this.component.shortcut;
1110
- }
1111
- this.root.removeShortcut(element, shortcut);
1112
- }
1113
- /**
1114
- * Remove all event handlers.
1115
- */
1116
- detach() {
1117
- // First iterate through each ref and delete the component so there are no dangling component references.
1118
- _.each(this.refs, (ref) => {
1119
- if (typeof ref === NodeList) {
1120
- ref.forEach((elem) => {
1121
- delete elem.component;
1122
- });
1123
- }
1124
- else if (ref) {
1125
- delete ref.component;
1126
- }
1127
- });
1128
- this.refs = {};
1129
- this.removeEventListeners();
1130
- this.detachLogic();
1131
- if (this.tooltip) {
1132
- this.tooltip.destroy();
1133
- }
1134
- }
1135
- checkRefresh(refreshData, changed, flags) {
1136
- const changePath = _.get(changed, 'instance.path', false);
1137
- // Don't let components change themselves.
1138
- if (changePath && this.path === changePath) {
1139
- return;
1140
- }
1141
- if (refreshData === 'data') {
1142
- this.refresh(this.data, changed, flags);
1143
- }
1144
- else if ((changePath && getComponentPath(changed.instance) === refreshData) && changed && changed.instance &&
1145
- // Make sure the changed component is not in a different "context". Solves issues where refreshOn being set
1146
- // in fields inside EditGrids could alter their state from other rows (which is bad).
1147
- this.inContext(changed.instance)) {
1148
- this.refresh(changed.value, changed, flags);
1149
- }
1150
- }
1151
- checkRefreshOn(changes, flags = {}) {
1152
- changes = changes || [];
1153
- if (flags.noRefresh) {
1154
- return;
1155
- }
1156
- if (!changes.length && flags.changed) {
1157
- changes = [flags.changed];
1158
- }
1159
- const refreshOn = flags.fromBlur ? this.component.refreshOnBlur : this.component.refreshOn || this.component.redrawOn;
1160
- // If they wish to refresh on a value, then add that here.
1161
- if (refreshOn) {
1162
- if (Array.isArray(refreshOn)) {
1163
- refreshOn.forEach(refreshData => changes.forEach(changed => this.checkRefresh(refreshData, changed, flags)));
1164
- }
1165
- else {
1166
- changes.forEach(changed => this.checkRefresh(refreshOn, changed, flags));
1167
- }
1168
- }
1169
- }
1170
- /**
1171
- * Refreshes the component with a new value.
1172
- *
1173
- * @param value
1174
- */
1175
- refresh(value) {
1176
- if (this.hasOwnProperty('refreshOnValue')) {
1177
- this.refreshOnChanged = !_.isEqual(value, this.refreshOnValue);
1178
- }
1179
- else {
1180
- this.refreshOnChanged = true;
1181
- }
1182
- this.refreshOnValue = fastCloneDeep(value);
1183
- if (this.refreshOnChanged) {
1184
- if (this.component.clearOnRefresh) {
1185
- this.setValue(null);
1186
- }
1187
- this.triggerRedraw();
1188
- }
1189
- }
1190
- /**
1191
- * Checks to see if a separate component is in the "context" of this component. This is determined by first checking
1192
- * if they share the same "data" object. It will then walk up the parent tree and compare its parents data objects
1193
- * with the components data and returns true if they are in the same context.
1194
- *
1195
- * Different rows of the same EditGrid, for example, are in different contexts.
1196
- *
1197
- * @param component
1198
- */
1199
- inContext(component) {
1200
- if (component.data === this.data) {
1201
- return true;
1202
- }
1203
- let parent = this.parent;
1204
- while (parent) {
1205
- if (parent.data === component.data) {
1206
- return true;
1207
- }
1208
- parent = parent.parent;
1209
- }
1210
- return false;
1211
- }
1212
- get viewOnly() {
1213
- return this.options.readOnly && this.options.viewAsHtml;
1214
- }
1215
- setElement(element) {
1216
- if (this.element) {
1217
- delete this.element.component;
1218
- delete this.element;
1219
- }
1220
- this.element = element;
1221
- }
1222
- createViewOnlyElement() {
1223
- this.setElement(this.ce('dl', {
1224
- id: this.id
1225
- }));
1226
- if (this.element) {
1227
- // Ensure you can get the component info from the element.
1228
- this.element.component = this;
1229
- }
1230
- return this.element;
1231
- }
1232
- get defaultViewOnlyValue() {
1233
- return '-';
1234
- }
1235
- /**
1236
- * Uses the widget to determine the output string.
1237
- *
1238
- * @param value
1239
- * @return {*}
1240
- */
1241
- getWidgetValueAsString(value, options) {
1242
- const noInputWidget = !this.refs.input || !this.refs.input[0] || !this.refs.input[0].widget;
1243
- if (!value || noInputWidget) {
1244
- if (!this.widget || !value) {
1245
- return value;
1246
- }
1247
- else {
1248
- return this.widget.getValueAsString(value);
1249
- }
1250
- }
1251
- if (Array.isArray(value)) {
1252
- const values = [];
1253
- value.forEach((val, index) => {
1254
- const widget = this.refs.input[index] && this.refs.input[index].widget;
1255
- if (widget) {
1256
- values.push(widget.getValueAsString(val, options));
1257
- }
1258
- });
1259
- return values;
1260
- }
1261
- const widget = this.refs.input[0].widget;
1262
- return widget.getValueAsString(value, options);
1263
- }
1264
- getValueAsString(value, options) {
1265
- if (!value) {
1266
- return '';
1267
- }
1268
- value = this.getWidgetValueAsString(value, options);
1269
- if (Array.isArray(value)) {
1270
- return value.join(', ');
1271
- }
1272
- if (_.isPlainObject(value)) {
1273
- return JSON.stringify(value);
1274
- }
1275
- if (value === null || value === undefined) {
1276
- return '';
1277
- }
1278
- const stringValue = value.toString();
1279
- return this.sanitize(stringValue);
1280
- }
1281
- getView(value, options) {
1282
- if (this.component.protected) {
1283
- return '--- PROTECTED ---';
1284
- }
1285
- return this.getValueAsString(value, options);
1286
- }
1287
- updateItems(...args) {
1288
- this.restoreValue();
1289
- this.onChange(...args);
1290
- }
1291
- /**
1292
- * @param {*} data
1293
- * @param {boolean} [forceUseValue=false] - if true, return 'value' property of the data
1294
- * @return {*}
1295
- */
1296
- itemValue(data, forceUseValue = false) {
1297
- if (_.isObject(data) && !_.isArray(data)) {
1298
- if (this.valueProperty) {
1299
- return _.get(data, this.valueProperty);
1300
- }
1301
- if (forceUseValue) {
1302
- return data.value;
1303
- }
1304
- }
1305
- return data;
1306
- }
1307
- itemValueForHTMLMode(value) {
1308
- if (Array.isArray(value)) {
1309
- const values = value.map(item => Array.isArray(item) ? this.itemValueForHTMLMode(item) : this.itemValue(item));
1310
- return values.join(', ');
1311
- }
1312
- return this.itemValue(value);
1313
- }
1314
- createModal(element, attr, confirm) {
1315
- const dialog = this.ce('div', attr || {});
1316
- this.setContent(dialog, this.renderTemplate('dialog'));
1317
- // Add refs to dialog, not "this".
1318
- dialog.refs = {};
1319
- this.loadRefs.call(dialog, dialog, {
1320
- dialogOverlay: 'single',
1321
- dialogContents: 'single',
1322
- dialogClose: 'single',
1323
- });
1324
- dialog.refs.dialogContents.appendChild(element);
1325
- document.body.appendChild(dialog);
1326
- document.body.classList.add('modal-open');
1327
- dialog.close = () => {
1328
- document.body.classList.remove('modal-open');
1329
- dialog.dispatchEvent(new CustomEvent('close'));
1330
- };
1331
- this.addEventListener(dialog, 'close', () => this.removeChildFrom(dialog, document.body));
1332
- const close = (event) => {
1333
- event.preventDefault();
1334
- dialog.close();
1335
- };
1336
- const handleCloseClick = (e) => {
1337
- if (confirm) {
1338
- confirm().then(() => close(e))
1339
- .catch(() => { });
1340
- }
1341
- else {
1342
- close(e);
1343
- }
1344
- };
1345
- this.addEventListener(dialog.refs.dialogOverlay, 'click', handleCloseClick);
1346
- this.addEventListener(dialog.refs.dialogClose, 'click', handleCloseClick);
1347
- return dialog;
1348
- }
1349
- get optimizeRedraw() {
1350
- if (this.options.optimizeRedraw && this.element && !this.visible) {
1351
- this.addClass(this.element, 'formio-removed');
1352
- return true;
1353
- }
1354
- return false;
1355
- }
1356
- /**
1357
- * Retrieves the CSS class name of this component.
1358
- * @returns {string} - The class name of this component.
1359
- */
1360
- get className() {
1361
- let className = this.hasInput ? `${this.transform('class', 'form-group')} has-feedback ` : '';
1362
- className += `formio-component formio-component-${this.component.type} `;
1363
- // TODO: find proper way to avoid overriding of default type-based component styles
1364
- if (this.key && this.key !== 'form') {
1365
- className += `formio-component-${this.key} `;
1366
- }
1367
- if (this.component.multiple) {
1368
- className += 'formio-component-multiple ';
1369
- }
1370
- if (this.component.customClass) {
1371
- className += this.component.customClass;
1372
- }
1373
- if (this.hasInput && this.component.validate && boolValue(this.component.validate.required)) {
1374
- className += ' required';
1375
- }
1376
- if (this.labelIsHidden()) {
1377
- className += ' formio-component-label-hidden';
1378
- }
1379
- if (!this.visible) {
1380
- className += ' formio-hidden';
1381
- }
1382
- return className;
1383
- }
1384
- /**
1385
- * Build the custom style from the layout values
1386
- * @return {string} - The custom style
1387
- */
1388
- get customStyle() {
1389
- let customCSS = '';
1390
- _.each(this.component.style, (value, key) => {
1391
- if (value !== '') {
1392
- customCSS += `${key}:${value};`;
1393
- }
1394
- });
1395
- return customCSS;
1396
- }
1397
- static get serverConditionSettings() {
1398
- return Component.conditionOperatorsSettings;
1399
- }
1400
- get isMobile() {
1401
- return isMobile();
1402
- }
1403
- /**
1404
- * Returns the outside wrapping element of this component.
1405
- * @returns {HTMLElement}
1406
- */
1407
- getElement() {
1408
- return this.element;
1409
- }
1410
- /**
1411
- * Create an evaluation context for all script executions and interpolations.
1412
- *
1413
- * @param additional
1414
- * @return {*}
1415
- */
1416
- evalContext(additional) {
1417
- return super.evalContext(Object.assign({
1418
- component: this.component,
1419
- row: this.data,
1420
- rowIndex: this.rowIndex,
1421
- data: this.rootValue,
1422
- iconClass: this.iconClass.bind(this),
1423
- // Bind the translate function to the data context of any interpolated string.
1424
- // It is useful to translate strings in different scenarions (eg: custom edit grid templates, custom error messages etc.)
1425
- // and desirable to be publicly available rather than calling the internal {instance.t} function in the template string.
1426
- t: this.t.bind(this),
1427
- submission: (this.root ? this.root._submission : {
1428
- data: this.rootValue
1429
- }),
1430
- form: this.root ? this.root._form : {},
1431
- options: this.options,
1432
- }, additional));
1433
- }
1434
- /**
1435
- * Sets the pristine flag for this component.
1436
- *
1437
- * @param pristine {boolean} - TRUE to make pristine, FALSE not pristine.
1438
- */
1439
- setPristine(pristine) {
1440
- this.pristine = pristine;
1441
- }
1442
- get isPristine() {
1443
- return this.pristine;
1444
- }
1445
- setDirty(dirty) {
1446
- this.dirty = dirty;
1447
- }
1448
- get isDirty() {
1449
- return this.dirty;
1450
- }
1451
- /**
1452
- * Removes a value out of the data array and rebuild the rows.
1453
- * @param {number} index - The index of the data element to remove.
1454
- */
1455
- removeValue(index) {
1456
- this.splice(index);
1457
- this.redraw();
1458
- this.restoreValue();
1459
- this.triggerRootChange();
1460
- }
1461
- iconClass(name, spinning) {
1462
- const iconset = this.options.iconset || Templates.current.defaultIconset || 'fa';
1463
- return Templates.current.hasOwnProperty('iconClass')
1464
- ? Templates.current.iconClass(iconset, name, spinning)
1465
- : this.options.iconset === 'fa' ? Templates.defaultTemplates.iconClass(iconset, name, spinning) : name;
1466
- }
1467
- size(size) {
1468
- return Templates.current.hasOwnProperty('size')
1469
- ? Templates.current.size(size)
1470
- : size;
1471
- }
1472
- /**
1473
- * The readible name for this component.
1474
- * @returns {string} - The name of the component.
1475
- */
1476
- get name() {
1477
- return this.t(this.component.label || this.component.placeholder || this.key, { _userInput: true });
1478
- }
1479
- /**
1480
- * Returns the error label for this component.
1481
- * @return {*}
1482
- */
1483
- get errorLabel() {
1484
- return this.t(this.component.errorLabel
1485
- || this.component.label
1486
- || this.component.placeholder
1487
- || this.key);
1488
- }
1489
- /**
1490
- * Get the error message provided a certain type of error.
1491
- * @param type
1492
- * @return {*}
1493
- */
1494
- errorMessage(type) {
1495
- return (this.component.errors && this.component.errors[type]) ? this.component.errors[type] : type;
1496
- }
1497
- setContent(element, content, forceSanitize, sanitizeOptions) {
1498
- if (element instanceof HTMLElement) {
1499
- element.innerHTML = this.sanitize(content, forceSanitize, sanitizeOptions);
1500
- return true;
1501
- }
1502
- return false;
1503
- }
1504
- restoreCaretPosition() {
1505
- if (this.root?.currentSelection) {
1506
- if (this.refs.input?.length) {
1507
- const { selection, index } = this.root.currentSelection;
1508
- let input = this.refs.input[index];
1509
- const isInputRangeSelectable = (i) => /text|search|password|tel|url/i.test(i?.type || '');
1510
- if (input) {
1511
- if (isInputRangeSelectable(input)) {
1512
- input.setSelectionRange(...selection);
1513
- }
1514
- }
1515
- else {
1516
- input = this.refs.input[this.refs.input.length];
1517
- const lastCharacter = input.value?.length || 0;
1518
- if (isInputRangeSelectable(input)) {
1519
- input.setSelectionRange(lastCharacter, lastCharacter);
1520
- }
1521
- }
1522
- }
1523
- }
1524
- }
1525
- redraw() {
1526
- // Don't bother if we have not built yet.
1527
- if (!this.element || !this.element.parentNode || this.optimizeRedraw) {
1528
- // Return a non-resolving promise.
1529
- return Promise.resolve();
1530
- }
1531
- this.detach();
1532
- this.emit('redraw');
1533
- // Since we are going to replace the element, we need to know it's position so we can find it in the parent's children.
1534
- const parent = this.element.parentNode;
1535
- const index = Array.prototype.indexOf.call(parent.children, this.element);
1536
- this.element.outerHTML = this.sanitize(this.render());
1537
- this.setElement(parent.children[index]);
1538
- return this.attach(this.element);
1539
- }
1540
- rebuild() {
1541
- this.destroy();
1542
- this.init();
1543
- this.visible = this.conditionallyVisible(null, null);
1544
- return this.redraw();
1545
- }
1546
- removeEventListeners() {
1547
- super.removeEventListeners();
1548
- this.tooltips.forEach(tooltip => tooltip.destroy());
1549
- this.tooltips = [];
1550
- }
1551
- hasClass(element, className) {
1552
- if (!element) {
1553
- return;
1554
- }
1555
- return super.hasClass(element, this.transform('class', className));
1556
- }
1557
- addClass(element, className) {
1558
- if (!element) {
1559
- return;
1560
- }
1561
- return super.addClass(element, this.transform('class', className));
1562
- }
1563
- removeClass(element, className) {
1564
- if (!element) {
1565
- return;
1566
- }
1567
- return super.removeClass(element, this.transform('class', className));
1568
- }
1569
- /**
1570
- * Determines if this component has a condition defined.
1571
- *
1572
- * @return {null}
1573
- */
1574
- hasCondition() {
1575
- if (this._hasCondition !== null) {
1576
- return this._hasCondition;
1577
- }
1578
- this._hasCondition = FormioUtils.hasCondition(this.component);
1579
- return this._hasCondition;
1580
- }
1581
- /**
1582
- * Check if this component is conditionally visible.
1583
- *
1584
- * @param data
1585
- * @return {boolean}
1586
- */
1587
- conditionallyVisible(data, row) {
1588
- data = data || this.rootValue;
1589
- row = row || this.data;
1590
- if (this.builderMode || this.previewMode || !this.hasCondition()) {
1591
- return !this.component.hidden;
1592
- }
1593
- data = data || (this.root ? this.root.data : {});
1594
- return this.checkCondition(row, data);
1595
- }
1596
- /**
1597
- * Checks the condition of this component.
1598
- *
1599
- * TODO: Switch row and data parameters to be consistent with other methods.
1600
- *
1601
- * @param row - The row contextual data.
1602
- * @param data - The global data object.
1603
- * @return {boolean} - True if the condition applies to this component.
1604
- */
1605
- checkCondition(row, data) {
1606
- return FormioUtils.checkCondition(this.component, row || this.data, data || this.rootValue, this.root ? this.root._form : {}, this);
1607
- }
1608
- /**
1609
- * Check for conditionals and hide/show the element based on those conditions.
1610
- */
1611
- checkComponentConditions(data, flags, row) {
1612
- data = data || this.rootValue;
1613
- flags = flags || {};
1614
- row = row || this.data;
1615
- if (!this.builderMode & !this.previewMode && this.fieldLogic(data, row)) {
1616
- this.redraw();
1617
- }
1618
- // Check advanced conditions
1619
- const visible = this.conditionallyVisible(data, row);
1620
- if (this.visible !== visible) {
1621
- this.visible = visible;
1622
- }
1623
- return visible;
1624
- }
1625
- /**
1626
- * Checks conditions for this component and any sub components.
1627
- * @param args
1628
- * @return {boolean}
1629
- */
1630
- checkConditions(data, flags, row) {
1631
- data = data || this.rootValue;
1632
- flags = flags || {};
1633
- row = row || this.data;
1634
- return this.checkComponentConditions(data, flags, row);
1635
- }
1636
- get logic() {
1637
- return this.component.logic || [];
1638
- }
1639
- /**
1640
- * Check all triggers and apply necessary actions.
1641
- *
1642
- * @param data
1643
- */
1644
- fieldLogic(data, row) {
1645
- data = data || this.rootValue;
1646
- row = row || this.data;
1647
- const logics = this.logic;
1648
- // If there aren't logic, don't go further.
1649
- if (logics.length === 0) {
1650
- return;
1651
- }
1652
- const newComponent = fastCloneDeep(this.originalComponent);
1653
- let changed = logics.reduce((changed, logic) => {
1654
- const result = FormioUtils.checkTrigger(newComponent, logic.trigger, row, data, this.root ? this.root._form : {}, this);
1655
- return (result ? this.applyActions(newComponent, logic.actions, result, row, data) : false) || changed;
1656
- }, false);
1657
- // If component definition changed, replace and mark as changed.
1658
- if (!_.isEqual(this.component, newComponent)) {
1659
- this.component = newComponent;
1660
- changed = true;
1661
- const disabled = this.shouldDisabled;
1662
- // Change disabled state if it has changed
1663
- if (this.disabled !== disabled) {
1664
- this.disabled = disabled;
1665
- }
1666
- }
1667
- return changed;
1668
- }
1669
- isIE() {
1670
- if (typeof window === 'undefined') {
1671
- return false;
1672
- }
1673
- const userAgent = window.navigator.userAgent;
1674
- const msie = userAgent.indexOf('MSIE ');
1675
- if (msie > 0) {
1676
- // IE 10 or older => return version number
1677
- return parseInt(userAgent.substring(msie + 5, userAgent.indexOf('.', msie)), 10);
1678
- }
1679
- const trident = userAgent.indexOf('Trident/');
1680
- if (trident > 0) {
1681
- // IE 11 => return version number
1682
- const rv = userAgent.indexOf('rv:');
1683
- return parseInt(userAgent.substring(rv + 3, userAgent.indexOf('.', rv)), 10);
1684
- }
1685
- const edge = userAgent.indexOf('Edge/');
1686
- if (edge > 0) {
1687
- // IE 12 (aka Edge) => return version number
1688
- return parseInt(userAgent.substring(edge + 5, userAgent.indexOf('.', edge)), 10);
1689
- }
1690
- // other browser
1691
- return false;
1692
- }
1693
- defineActionValue(action, argsObject) {
1694
- return this.evaluate(action.value, argsObject, 'value');
1695
- }
1696
- applyActions(newComponent, actions, result, row, data) {
1697
- data = data || this.rootValue;
1698
- row = row || this.data;
1699
- return actions.reduce((changed, action) => {
1700
- switch (action.type) {
1701
- case 'property': {
1702
- FormioUtils.setActionProperty(newComponent, action, result, row, data, this);
1703
- const property = action.property.value;
1704
- if (!_.isEqual(_.get(this.component, property), _.get(newComponent, property))) {
1705
- changed = true;
1706
- }
1707
- break;
1708
- }
1709
- case 'value': {
1710
- const oldValue = this.getValue();
1711
- const newValue = this.defineActionValue(action, {
1712
- value: _.clone(oldValue),
1713
- data,
1714
- row,
1715
- component: newComponent,
1716
- result,
1717
- });
1718
- if (!_.isEqual(oldValue, newValue) && !(this.component.clearOnHide && !this.visible)) {
1719
- this.setValue(newValue);
1720
- if (this.viewOnly) {
1721
- this.dataValue = newValue;
1722
- }
1723
- changed = true;
1724
- }
1725
- break;
1726
- }
1727
- case 'mergeComponentSchema': {
1728
- const schema = this.evaluate(action.schemaDefinition, {
1729
- value: _.clone(this.getValue()),
1730
- data,
1731
- row,
1732
- component: newComponent,
1733
- result,
1734
- }, 'schema');
1735
- _.assign(newComponent, schema);
1736
- if (!_.isEqual(this.component, newComponent)) {
1737
- changed = true;
1738
- }
1739
- break;
1740
- }
1741
- case 'customAction': {
1742
- const oldValue = this.getValue();
1743
- const newValue = this.evaluate(action.customAction, {
1744
- value: _.clone(oldValue),
1745
- data,
1746
- row,
1747
- input: oldValue,
1748
- component: newComponent,
1749
- result,
1750
- }, 'value');
1751
- if (!_.isEqual(oldValue, newValue) && !(this.component.clearOnHide && !this.visible)) {
1752
- this.setValue(newValue);
1753
- if (this.viewOnly) {
1754
- this.dataValue = newValue;
1755
- }
1756
- changed = true;
1757
- }
1758
- break;
1759
- }
1760
- }
1761
- return changed;
1762
- }, false);
1763
- }
1764
- // Deprecated
1765
- addInputError(message, dirty, elements) {
1766
- this.addMessages(message);
1767
- this.setErrorClasses(elements, dirty, !!message);
1768
- }
1769
- // Deprecated
1770
- removeInputError(elements) {
1771
- this.setErrorClasses(elements, true, false);
1772
- }
1773
- /**
1774
- * Add a new input error to this element.
1775
- *
1776
- * @param message
1777
- * @param dirty
1778
- */
1779
- addMessages(messages) {
1780
- if (!messages) {
1781
- return;
1782
- }
1783
- // Standardize on array of objects for message.
1784
- if (typeof messages === 'string') {
1785
- messages = {
1786
- messages,
1787
- level: 'error',
1788
- };
1789
- }
1790
- if (!Array.isArray(messages)) {
1791
- messages = [messages];
1792
- }
1793
- messages = _.uniqBy(messages, message => message.message);
1794
- if (this.refs.messageContainer) {
1795
- this.setContent(this.refs.messageContainer, messages.map((message) => {
1796
- if (message.message && typeof message.message === 'string') {
1797
- message.message = message.message.replaceAll('<', '&lt;').replaceAll('>', '&gt;');
1798
- }
1799
- return this.renderTemplate('message', message);
1800
- }).join(''));
1801
- }
1802
- }
1803
- setErrorClasses(elements, dirty, hasErrors, hasMessages, element = this.element) {
1804
- this.clearErrorClasses();
1805
- elements.forEach((element) => {
1806
- this.setElementInvalid(this.performInputMapping(element), false);
1807
- });
1808
- this.setInputWidgetErrorClasses(elements, hasErrors);
1809
- if (hasErrors) {
1810
- // Add error classes
1811
- elements.forEach((input) => {
1812
- this.setElementInvalid(this.performInputMapping(input), true);
1813
- });
1814
- if (dirty && this.options.highlightErrors) {
1815
- this.addClass(element, this.options.componentErrorClass);
1816
- }
1817
- else {
1818
- this.addClass(element, 'has-error');
1819
- }
1820
- }
1821
- if (hasMessages) {
1822
- this.addClass(element, 'has-message');
1823
- }
1824
- }
1825
- setElementInvalid(element, invalid) {
1826
- if (!element)
1827
- return;
1828
- if (invalid) {
1829
- this.addClass(element, 'is-invalid');
1830
- }
1831
- else {
1832
- this.removeClass(element, 'is-invalid');
1833
- }
1834
- element.setAttribute('aria-invalid', invalid ? 'true' : 'false');
1835
- }
1836
- clearOnHide() {
1837
- // clearOnHide defaults to true for old forms (without the value set) so only trigger if the value is false.
1838
- if (
1839
- // if change happens inside EditGrid's row, it doesn't trigger change on the root level, so rootPristine will be true
1840
- (!this.rootPristine || this.options.server || isInsideScopingComponent(this)) &&
1841
- this.component.clearOnHide !== false &&
1842
- !this.options.readOnly &&
1843
- !this.options.showHiddenFields) {
1844
- if (!this.visible) {
1845
- this.deleteValue();
1846
- }
1847
- else if (!this.hasValue() && this.shouldAddDefaultValue) {
1848
- // If shown, ensure the default is set.
1849
- this.setValue(this.defaultValue, {
1850
- noUpdateEvent: true
1851
- });
1852
- }
1853
- }
1854
- }
1855
- triggerRootChange(...args) {
1856
- if (this.options.onChange) {
1857
- this.options.onChange(...args);
1858
- }
1859
- else if (this.root) {
1860
- this.root.triggerChange(...args);
1861
- }
1862
- }
1863
- onChange(flags, fromRoot) {
1864
- flags = flags || {};
1865
- if (flags.modified) {
1866
- if (!flags.noPristineChangeOnModified) {
1867
- this.pristine = false;
1868
- }
1869
- this.addClass(this.getElement(), 'formio-modified');
1870
- }
1871
- // If we are supposed to validate on blur, then don't trigger validation yet.
1872
- if (this.component.validateOn === 'blur' && !this.errors.length) {
1873
- flags.noValidate = true;
1874
- }
1875
- if (this.component.onChange) {
1876
- this.evaluate(this.component.onChange, {
1877
- flags
1878
- });
1879
- }
1880
- // Set the changed variable.
1881
- const changed = {
1882
- instance: this,
1883
- component: this.component,
1884
- value: this.dataValue,
1885
- flags: flags
1886
- };
1887
- // Emit the change.
1888
- this.emit('componentChange', changed);
1889
- // Do not propogate the modified flag.
1890
- let modified = false;
1891
- if (flags.modified) {
1892
- modified = true;
1893
- delete flags.modified;
1894
- }
1895
- // Bubble this change up to the top.
1896
- if (!fromRoot) {
1897
- this.triggerRootChange(flags, changed, modified);
1898
- }
1899
- return changed;
1900
- }
1901
- get wysiwygDefault() {
1902
- return {
1903
- quill: {
1904
- theme: 'snow',
1905
- placeholder: this.t(this.component.placeholder, { _userInput: true }),
1906
- modules: {
1907
- toolbar: [
1908
- [{ 'size': ['small', false, 'large', 'huge'] }],
1909
- [{ 'header': [1, 2, 3, 4, 5, 6, false] }],
1910
- [{ 'font': [] }],
1911
- ['bold', 'italic', 'underline', 'strike', { 'script': 'sub' }, { 'script': 'super' }, 'clean'],
1912
- [{ 'color': [] }, { 'background': [] }],
1913
- [{ 'list': 'ordered' }, { 'list': 'bullet' }, { 'indent': '-1' }, { 'indent': '+1' }, { 'align': [] }],
1914
- ['blockquote', 'code-block'],
1915
- ['link', 'image', 'video', 'formula', 'source']
1916
- ]
1917
- }
1918
- },
1919
- ace: {
1920
- theme: 'ace/theme/xcode',
1921
- maxLines: 12,
1922
- minLines: 12,
1923
- tabSize: 2,
1924
- mode: 'ace/mode/javascript',
1925
- placeholder: this.t(this.component.placeholder, { _userInput: true })
1926
- },
1927
- ckeditor: {
1928
- image: {
1929
- toolbar: [
1930
- 'imageTextAlternative',
1931
- '|',
1932
- 'imageStyle:full',
1933
- 'imageStyle:alignLeft',
1934
- 'imageStyle:alignCenter',
1935
- 'imageStyle:alignRight'
1936
- ],
1937
- styles: [
1938
- 'full',
1939
- 'alignLeft',
1940
- 'alignCenter',
1941
- 'alignRight'
1942
- ]
1943
- },
1944
- extraPlugins: []
1945
- },
1946
- default: {}
1947
- };
1948
- }
1949
- addCKE(element, settings, onChange) {
1950
- settings = _.isEmpty(settings) ? {} : settings;
1951
- settings.base64Upload = this.component.isUploadEnabled ? false : true;
1952
- settings.mediaEmbed = { previewsInData: true };
1953
- settings = _.merge(this.wysiwygDefault.ckeditor, _.get(this.options, 'editors.ckeditor.settings', {}), settings);
1954
- if (this.component.isUploadEnabled) {
1955
- settings.extraPlugins.push(getFormioUploadAdapterPlugin(this.fileService, this));
1956
- }
1957
- return Formio.requireLibrary('ckeditor', isIEBrowser ? 'CKEDITOR' : 'ClassicEditor', _.get(this.options, 'editors.ckeditor.src', `${Formio.cdn.ckeditor}/ckeditor.js`), true)
1958
- .then(() => {
1959
- if (!element.parentNode) {
1960
- return Promise.reject();
1961
- }
1962
- if (isIEBrowser) {
1963
- const editor = CKEDITOR.replace(element);
1964
- editor.on('change', () => onChange(editor.getData()));
1965
- return Promise.resolve(editor);
1966
- }
1967
- else {
1968
- return ClassicEditor.create(element, settings).then(editor => {
1969
- editor.model.document.on('change', () => onChange(editor.data.get()));
1970
- return editor;
1971
- });
1972
- }
1973
- });
1974
- }
1975
- addQuill(element, settings, onChange) {
1976
- settings = _.isEmpty(settings) ? this.wysiwygDefault.quill : settings;
1977
- settings = _.merge(this.wysiwygDefault.quill, _.get(this.options, 'editors.quill.settings', {}), settings);
1978
- settings = {
1979
- ...settings,
1980
- modules: {
1981
- table: true,
1982
- ...settings.modules
1983
- }
1984
- };
1985
- // Lazy load the quill css.
1986
- Formio.requireLibrary(`quill-css-${settings.theme}`, 'Quill', [
1987
- { type: 'styles', src: `${Formio.cdn.quill}/quill.${settings.theme}.css` }
1988
- ], true);
1989
- // Lazy load the quill library.
1990
- return Formio.requireLibrary('quill', 'Quill', _.get(this.options, 'editors.quill.src', `${Formio.cdn.quill}/quill.min.js`), true)
1991
- .then(() => {
1992
- return Formio.requireLibrary('quill-table', 'Quill', `${Formio.cdn.baseUrl}/quill/quill-table.js`, true)
1993
- .then(() => {
1994
- if (!element.parentNode) {
1995
- return Promise.reject();
1996
- }
1997
- this.quill = new Quill(element, isIEBrowser ? { ...settings, modules: {} } : settings);
1998
- /** This block of code adds the [source] capabilities. See https://codepen.io/anon/pen/ZyEjrQ **/
1999
- const txtArea = document.createElement('textarea');
2000
- txtArea.setAttribute('class', 'quill-source-code');
2001
- this.quill.addContainer('ql-custom').appendChild(txtArea);
2002
- const qlSource = element.parentNode.querySelector('.ql-source');
2003
- if (qlSource) {
2004
- this.addEventListener(qlSource, 'click', (event) => {
2005
- event.preventDefault();
2006
- if (txtArea.style.display === 'inherit') {
2007
- this.quill.setContents(this.quill.clipboard.convert({ html: txtArea.value }));
2008
- }
2009
- txtArea.style.display = (txtArea.style.display === 'none') ? 'inherit' : 'none';
2010
- });
2011
- }
2012
- /** END CODEBLOCK **/
2013
- // Make sure to select cursor when they click on the element.
2014
- this.addEventListener(element, 'click', () => this.quill.focus());
2015
- // Allows users to skip toolbar items when tabbing though form
2016
- const elm = document.querySelectorAll('.ql-formats > button');
2017
- for (let i = 0; i < elm.length; i++) {
2018
- elm[i].setAttribute('tabindex', '-1');
2019
- }
2020
- this.quill.on('text-change', () => {
2021
- txtArea.value = this.quill.root.innerHTML;
2022
- onChange(txtArea);
2023
- });
2024
- return this.quill;
2025
- });
2026
- });
2027
- }
2028
- get shouldSanitizeValue() {
2029
- // Sanitize value if sanitizing for thw whole content is turned off
2030
- return (this.options?.sanitize !== false);
2031
- }
2032
- addAce(element, settings, onChange) {
2033
- if (!settings || (settings.theme === 'snow')) {
2034
- const mode = settings ? settings.mode : '';
2035
- settings = {};
2036
- if (mode) {
2037
- settings.mode = mode;
2038
- }
2039
- }
2040
- settings = _.merge(this.wysiwygDefault.ace, _.get(this.options, 'editors.ace.settings', {}), settings || {});
2041
- return Formio.requireLibrary('ace', 'ace', _.get(this.options, 'editors.ace.src', `${Formio.cdn.ace}/ace.js`), true)
2042
- .then((editor) => {
2043
- editor = editor.edit(element);
2044
- editor.removeAllListeners('change');
2045
- editor.setOptions(settings);
2046
- editor.getSession().setMode(settings.mode);
2047
- editor.on('change', () => onChange(editor.getValue()));
2048
- if (settings.isUseWorkerDisabled) {
2049
- editor.session.setUseWorker(false);
2050
- }
2051
- return editor;
2052
- });
2053
- }
2054
- get tree() {
2055
- return this.component.tree || false;
2056
- }
2057
- /**
2058
- * The empty value for this component.
2059
- *
2060
- * @return {null}
2061
- */
2062
- get emptyValue() {
2063
- return null;
2064
- }
2065
- /**
2066
- * Returns if this component has a value set.
2067
- *
2068
- */
2069
- hasValue(data) {
2070
- return !_.isUndefined(_.get(data || this.data, this.key));
2071
- }
2072
- /**
2073
- * Get the data value at the root level.
2074
- *
2075
- * @return {*}
2076
- */
2077
- get rootValue() {
2078
- return this.root ? this.root.data : this.data;
2079
- }
2080
- get rootPristine() {
2081
- return _.get(this, 'root.pristine', false);
2082
- }
2083
- /**
2084
- * Get the static value of this component.
2085
- * @return {*}
2086
- */
2087
- get dataValue() {
2088
- if (!this.key ||
2089
- (!this.visible && this.component.clearOnHide && !this.rootPristine)) {
2090
- return this.emptyValue;
2091
- }
2092
- if (!this.hasValue() && this.shouldAddDefaultValue) {
2093
- const empty = this.component.multiple ? [] : this.emptyValue;
2094
- if (!this.rootPristine) {
2095
- this.dataValue = empty;
2096
- }
2097
- return empty;
2098
- }
2099
- return _.get(this._data, this.key);
2100
- }
2101
- /**
2102
- * Sets the static value of this component.
2103
- *
2104
- * @param value
2105
- */
2106
- set dataValue(value) {
2107
- if (!this.allowData ||
2108
- !this.key ||
2109
- (!this.visible && this.component.clearOnHide && !this.rootPristine)) {
2110
- return;
2111
- }
2112
- if ((value !== null) && (value !== undefined)) {
2113
- value = this.hook('setDataValue', value, this.key, this._data);
2114
- }
2115
- if ((value === null) || (value === undefined)) {
2116
- this.unset();
2117
- return;
2118
- }
2119
- _.set(this._data, this.key, value);
2120
- return;
2121
- }
2122
- /**
2123
- * Splice a value from the dataValue.
2124
- *
2125
- * @param index
2126
- */
2127
- splice(index, flags = {}) {
2128
- if (this.hasValue()) {
2129
- const dataValue = this.dataValue || [];
2130
- if (_.isArray(dataValue) && dataValue.hasOwnProperty(index)) {
2131
- dataValue.splice(index, 1);
2132
- this.dataValue = dataValue;
2133
- this.triggerChange(flags);
2134
- }
2135
- }
2136
- }
2137
- unset() {
2138
- _.unset(this._data, this.key);
2139
- }
2140
- /**
2141
- * Deletes the value of the component.
2142
- */
2143
- deleteValue() {
2144
- this.setValue(null, {
2145
- noUpdateEvent: true,
2146
- noDefault: true
2147
- });
2148
- this.unset();
2149
- }
2150
- getCustomDefaultValue(defaultValue) {
2151
- if (this.component.customDefaultValue && !this.options.preview) {
2152
- defaultValue = this.evaluate(this.component.customDefaultValue, { value: '' }, 'value');
2153
- }
2154
- return defaultValue;
2155
- }
2156
- get shouldAddDefaultValue() {
2157
- return !this.options.noDefaults || (this.component.defaultValue && !this.isEmpty(this.component.defaultValue)) || this.component.customDefaultValue;
2158
- }
2159
- get defaultValue() {
2160
- let defaultValue = this.emptyValue;
2161
- if (this.component.defaultValue) {
2162
- defaultValue = this.component.defaultValue;
2163
- }
2164
- defaultValue = this.getCustomDefaultValue(defaultValue);
2165
- const checkMask = (value) => {
2166
- if (typeof value === 'string') {
2167
- const placeholderChar = this.placeholderChar;
2168
- value = conformToMask(value, this.defaultMask, { placeholderChar }).conformedValue;
2169
- if (!FormioUtils.matchInputMask(value, this.defaultMask)) {
2170
- value = '';
2171
- }
2172
- }
2173
- else {
2174
- value = '';
2175
- }
2176
- return value;
2177
- };
2178
- if (this.defaultMask) {
2179
- if (Array.isArray(defaultValue)) {
2180
- defaultValue = defaultValue.map(checkMask);
2181
- }
2182
- else {
2183
- defaultValue = checkMask(defaultValue);
2184
- }
2185
- }
2186
- // Clone so that it creates a new instance.
2187
- return _.cloneDeep(defaultValue);
2188
- }
2189
- /**
2190
- * Get the input value of this component.
2191
- *
2192
- * @return {*}
2193
- */
2194
- getValue() {
2195
- if (!this.hasInput || this.viewOnly || !this.refs.input || !this.refs.input.length) {
2196
- return this.dataValue;
2197
- }
2198
- const values = [];
2199
- for (const i in this.refs.input) {
2200
- if (this.refs.input.hasOwnProperty(i)) {
2201
- if (!this.component.multiple) {
2202
- return this.getValueAt(i);
2203
- }
2204
- values.push(this.getValueAt(i));
2205
- }
2206
- }
2207
- if (values.length === 0 && !this.component.multiple) {
2208
- return '';
2209
- }
2210
- return values;
2211
- }
2212
- /**
2213
- * Get the value at a specific index.
2214
- *
2215
- * @param index
2216
- * @returns {*}
2217
- */
2218
- getValueAt(index) {
2219
- const input = this.performInputMapping(this.refs.input[index]);
2220
- return input ? input.value : undefined;
2221
- }
2222
- /**
2223
- * Set the value of this component.
2224
- *
2225
- * @param value
2226
- * @param flags
2227
- *
2228
- * @return {boolean} - If the value changed.
2229
- */
2230
- setValue(value, flags = {}) {
2231
- const changed = this.updateValue(value, flags);
2232
- value = this.dataValue;
2233
- if (!this.hasInput) {
2234
- return changed;
2235
- }
2236
- const isArray = Array.isArray(value);
2237
- const valueInput = this.refs.fileLink || this.refs.input;
2238
- if (isArray &&
2239
- Array.isArray(this.defaultValue) &&
2240
- this.refs.hasOwnProperty('input') &&
2241
- valueInput &&
2242
- (valueInput.length !== value.length) &&
2243
- this.visible) {
2244
- this.redraw();
2245
- }
2246
- if (this.isHtmlRenderMode() && flags && flags.fromSubmission && changed) {
2247
- this.redraw();
2248
- return changed;
2249
- }
2250
- for (const i in this.refs.input) {
2251
- if (this.refs.input.hasOwnProperty(i)) {
2252
- this.setValueAt(i, isArray ? value[i] : value, flags);
2253
- }
2254
- }
2255
- return changed;
2256
- }
2257
- /**
2258
- * Set the value at a specific index.
2259
- *
2260
- * @param index
2261
- * @param value
2262
- */
2263
- setValueAt(index, value, flags = {}) {
2264
- if (!flags.noDefault && (value === null || value === undefined) && !this.component.multiple) {
2265
- value = this.defaultValue;
2266
- }
2267
- const input = this.performInputMapping(this.refs.input[index]);
2268
- const valueMaskInput = this.refs.valueMaskInput;
2269
- if (valueMaskInput?.mask) {
2270
- valueMaskInput.mask.textMaskInputElement.update(value);
2271
- }
2272
- if (input.mask) {
2273
- input.mask.textMaskInputElement.update(value);
2274
- }
2275
- else if (input.widget && input.widget.setValue) {
2276
- input.widget.setValue(value);
2277
- }
2278
- else {
2279
- input.value = value;
2280
- }
2281
- }
2282
- get hasSetValue() {
2283
- return this.hasValue() && !this.isEmpty(this.dataValue);
2284
- }
2285
- setDefaultValue() {
2286
- if (this.defaultValue && this.shouldAddDefaultValue) {
2287
- const defaultValue = (this.component.multiple && !this.dataValue.length) ? [] : this.defaultValue;
2288
- this.setValue(defaultValue, {
2289
- noUpdateEvent: true
2290
- });
2291
- }
2292
- }
2293
- /**
2294
- * Restore the value of a control.
2295
- */
2296
- restoreValue() {
2297
- if (this.hasSetValue) {
2298
- this.setValue(this.dataValue, {
2299
- noUpdateEvent: true
2300
- });
2301
- }
2302
- else {
2303
- this.setDefaultValue();
2304
- }
2305
- }
2306
- /**
2307
- * Normalize values coming into updateValue.
2308
- *
2309
- * @param value
2310
- * @return {*}
2311
- */
2312
- normalizeValue(value) {
2313
- if (this.component.multiple && !Array.isArray(value)) {
2314
- value = value ? [value] : [];
2315
- }
2316
- return value;
2317
- }
2318
- /**
2319
- * Update a value of this component.
2320
- *
2321
- * @param flags
2322
- */
2323
- updateComponentValue(value, flags = {}) {
2324
- let newValue = (!flags.resetValue && (value === undefined || value === null)) ? this.getValue() : value;
2325
- newValue = this.normalizeValue(newValue, flags);
2326
- const oldValue = this.dataValue;
2327
- let changed = ((newValue !== undefined) ? this.hasChanged(newValue, oldValue) : false);
2328
- if (changed) {
2329
- this.dataValue = newValue;
2330
- changed = this.dataValue !== oldValue;
2331
- this.updateOnChange(flags, changed);
2332
- }
2333
- if (this.componentModal && flags && flags.fromSubmission) {
2334
- this.componentModal.setValue(value);
2335
- }
2336
- return changed;
2337
- }
2338
- /**
2339
- * Updates the value of this component plus all sub-components.
2340
- *
2341
- * @param args
2342
- * @return {boolean}
2343
- */
2344
- updateValue(...args) {
2345
- return this.updateComponentValue(...args);
2346
- }
2347
- getIcon(name, content, styles, ref = 'icon') {
2348
- return this.renderTemplate('icon', {
2349
- className: this.iconClass(name),
2350
- ref,
2351
- styles,
2352
- content
2353
- });
2354
- }
2355
- /**
2356
- * Resets the value of this component.
2357
- */
2358
- resetValue() {
2359
- this.unset();
2360
- this.setValue(this.emptyValue, {
2361
- noUpdateEvent: true,
2362
- noValidate: true,
2363
- resetValue: true
2364
- });
2365
- }
2366
- /**
2367
- * Determine if the value of this component has changed.
2368
- *
2369
- * @param newValue
2370
- * @param oldValue
2371
- * @return {boolean}
2372
- */
2373
- hasChanged(newValue, oldValue) {
2374
- if (((newValue === undefined) || (newValue === null)) &&
2375
- ((oldValue === undefined) || (oldValue === null) || this.isEmpty(oldValue))) {
2376
- return false;
2377
- }
2378
- // If we do not have a value and are getting set to anything other than undefined or null, then we changed.
2379
- if (newValue !== undefined &&
2380
- newValue !== null &&
2381
- this.allowData &&
2382
- !this.hasValue()) {
2383
- return true;
2384
- }
2385
- return !_.isEqual(newValue, oldValue);
2386
- }
2387
- /**
2388
- * Update the value on change.
2389
- *
2390
- * @param flags
2391
- */
2392
- updateOnChange(flags = {}, changed = false) {
2393
- if (!flags.noUpdateEvent && changed) {
2394
- this.triggerChange(flags);
2395
- return true;
2396
- }
2397
- return false;
2398
- }
2399
- /**
2400
- * Perform a calculated value operation.
2401
- *
2402
- * @param data - The global data object.
2403
- *
2404
- * @return {boolean} - If the value changed during calculation.
2405
- */
2406
- convertNumberOrBoolToString(value) {
2407
- if (typeof value === 'number' || typeof value === 'boolean') {
2408
- return value.toString();
2409
- }
2410
- return value;
2411
- }
2412
- doValueCalculation(dataValue, data, row) {
2413
- return this.evaluate(this.component.calculateValue, {
2414
- value: dataValue,
2415
- data,
2416
- row: row || this.data,
2417
- submission: this.root?._submission || {
2418
- data: this.rootValue
2419
- }
2420
- }, 'value');
2421
- }
2422
- /* eslint-disable max-statements */
2423
- calculateComponentValue(data, flags, row) {
2424
- // Skip value calculation for the component if we don't have entire form data set
2425
- if (_.isUndefined(_.get(this, 'root.data'))) {
2426
- return false;
2427
- }
2428
- // If no calculated value or
2429
- // hidden and set to clearOnHide (Don't calculate a value for a hidden field set to clear when hidden)
2430
- const { clearOnHide } = this.component;
2431
- const shouldBeCleared = !this.visible && clearOnHide;
2432
- const allowOverride = _.get(this.component, 'allowCalculateOverride', false);
2433
- // Handle all cases when calculated values should not fire.
2434
- if ((this.options.readOnly && !this.options.pdf && !this.component.calculateValue) ||
2435
- !(this.component.calculateValue || this.component.calculateValueVariable) ||
2436
- shouldBeCleared ||
2437
- (this.options.server && !this.component.calculateServer) ||
2438
- (flags.dataSourceInitialLoading && allowOverride)) {
2439
- return false;
2440
- }
2441
- const dataValue = this.dataValue;
2442
- // Calculate the new value.
2443
- let calculatedValue = this.doValueCalculation(dataValue, data, row, flags);
2444
- if (this.options.readOnly && dataValue && !calculatedValue) {
2445
- return false;
2446
- }
2447
- if (_.isNil(calculatedValue)) {
2448
- calculatedValue = this.emptyValue;
2449
- }
2450
- const changed = !_.isEqual(dataValue, calculatedValue);
2451
- // Do not override calculations on server if they have calculateServer set.
2452
- if (allowOverride) {
2453
- // The value is considered locked if it is not empty and comes from a submission value.
2454
- const fromSubmission = (flags.fromSubmission && this.component.persistent === true);
2455
- if (this.isEmpty(dataValue)) {
2456
- // Reset the calculation lock if ever the data is cleared.
2457
- this.calculationLocked = false;
2458
- }
2459
- else if (this.calculationLocked || fromSubmission) {
2460
- this.calculationLocked = true;
2461
- return false;
2462
- }
2463
- const firstPass = (this.calculatedValue === undefined);
2464
- if (firstPass) {
2465
- this.calculatedValue = null;
2466
- }
2467
- const newCalculatedValue = this.normalizeValue(this.convertNumberOrBoolToString(calculatedValue));
2468
- const previousCalculatedValue = this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue));
2469
- const normalizedDataValue = this.normalizeValue(this.convertNumberOrBoolToString(dataValue));
2470
- const calculationChanged = !_.isEqual(previousCalculatedValue, newCalculatedValue);
2471
- const previousChanged = !_.isEqual(normalizedDataValue, previousCalculatedValue);
2472
- if (calculationChanged && previousChanged && !firstPass) {
2473
- return false;
2474
- }
2475
- // Check to ensure that the calculated value is different than the previously calculated value.
2476
- if (previousCalculatedValue && previousChanged && !calculationChanged) {
2477
- return false;
2478
- }
2479
- if (flags.isReordered || !calculationChanged) {
2480
- return false;
2481
- }
2482
- if (fromSubmission) {
2483
- // If we set value from submission and it differs from calculated one, set the calculated value to prevent overriding dataValue in the next pass
2484
- this.calculatedValue = calculatedValue;
2485
- return false;
2486
- }
2487
- // If this is the firstPass, and the dataValue is different than to the calculatedValue.
2488
- if (firstPass && !this.isEmpty(dataValue) && changed && calculationChanged) {
2489
- // Return that we have a change so it will perform another pass.
2490
- return true;
2491
- }
2492
- }
2493
- this.calculatedValue = calculatedValue;
2494
- if (changed) {
2495
- if (!flags.noPristineChangeOnModified) {
2496
- this.pristine = false;
2497
- }
2498
- flags.triggeredComponentId = this.id;
2499
- return this.setValue(calculatedValue, flags);
2500
- }
2501
- return false;
2502
- }
2503
- /* eslint-enable max-statements */
2504
- /**
2505
- * Performs calculations in this component plus any child components.
2506
- *
2507
- * @param args
2508
- * @return {boolean}
2509
- */
2510
- calculateValue(data, flags, row) {
2511
- data = data || this.rootValue;
2512
- flags = flags || {};
2513
- row = row || this.data;
2514
- return this.calculateComponentValue(data, flags, row);
2515
- }
2516
- /**
2517
- * Get this component's label text.
2518
- *
2519
- */
2520
- get label() {
2521
- return this.component.label;
2522
- }
2523
- /**
2524
- * Set this component's label text and render it.
2525
- *
2526
- * @param value - The new label text.
2527
- */
2528
- set label(value) {
2529
- this.component.label = value;
2530
- if (this.labelElement) {
2531
- this.labelElement.innerText = value;
2532
- }
2533
- }
2534
- /**
2535
- * Get FormioForm element at the root of this component tree.
2536
- *
2537
- */
2538
- getRoot() {
2539
- return this.root;
2540
- }
2541
- /**
2542
- * Returns the invalid message, or empty string if the component is valid.
2543
- *
2544
- * @param data
2545
- * @param dirty
2546
- * @return {*}
2547
- */
2548
- invalidMessage(data, dirty, ignoreCondition, row) {
2549
- if (!ignoreCondition && !this.checkCondition(row, data)) {
2550
- return '';
2551
- }
2552
- // See if this is forced invalid.
2553
- if (this.invalid) {
2554
- return this.invalid;
2555
- }
2556
- // No need to check for errors if there is no input or if it is pristine.
2557
- if (!this.hasInput || (!dirty && this.pristine)) {
2558
- return '';
2559
- }
2560
- return _.map(Validator.checkComponent(this, data), 'message').join('\n\n');
2561
- }
2562
- /**
2563
- * Returns if the component is valid or not.
2564
- *
2565
- * @param data
2566
- * @param dirty
2567
- * @return {boolean}
2568
- */
2569
- isValid(data, dirty) {
2570
- return !this.invalidMessage(data, dirty);
2571
- }
2572
- setComponentValidity(messages, dirty, silentCheck) {
2573
- const hasErrors = !!messages.filter(message => message.level === 'error' && !message.fromServer).length;
2574
- if (messages.length && (!silentCheck || this.error) && (!this.isEmpty(this.defaultValue) || dirty || !this.pristine)) {
2575
- this.setCustomValidity(messages, dirty);
2576
- }
2577
- else if (!silentCheck) {
2578
- this.setCustomValidity('');
2579
- }
2580
- return !hasErrors;
2581
- }
2582
- /**
2583
- * Checks the validity of this component and sets the error message if it is invalid.
2584
- *
2585
- * @param data
2586
- * @param dirty
2587
- * @param row
2588
- * @return {boolean}
2589
- */
2590
- checkComponentValidity(data, dirty, row, options = {}) {
2591
- data = data || this.rootValue;
2592
- row = row || this.data;
2593
- const { async = false, silentCheck = false } = options;
2594
- if (this.shouldSkipValidation(data, dirty, row)) {
2595
- this.setCustomValidity('');
2596
- return async ? Promise.resolve(true) : true;
2597
- }
2598
- const check = Validator.checkComponent(this, data, row, true, async);
2599
- let validations = check;
2600
- if (this.serverErrors?.length) {
2601
- validations = check.concat(this.serverErrors);
2602
- }
2603
- return async ?
2604
- validations.then((messages) => this.setComponentValidity(messages, dirty, silentCheck)) :
2605
- this.setComponentValidity(validations, dirty, silentCheck);
2606
- }
2607
- checkValidity(data, dirty, row, silentCheck) {
2608
- data = data || this.rootValue;
2609
- row = row || this.data;
2610
- const isValid = this.checkComponentValidity(data, dirty, row, { silentCheck });
2611
- this.checkModal();
2612
- return isValid;
2613
- }
2614
- checkAsyncValidity(data, dirty, row, silentCheck) {
2615
- return Promise.resolve(this.checkComponentValidity(data, dirty, row, { async: true, silentCheck }));
2616
- }
2617
- /**
2618
- * Check the conditions, calculations, and validity of a single component and triggers an update if
2619
- * something changed.
2620
- *
2621
- * @param data - The root data of the change event.
2622
- * @param flags - The flags from this change event.
2623
- *
2624
- * @return boolean - If component is valid or not.
2625
- */
2626
- checkData(data, flags, row) {
2627
- data = data || this.rootValue;
2628
- flags = flags || {};
2629
- row = row || this.data;
2630
- // Needs for Nextgen Rules Engine
2631
- this.resetCaches();
2632
- // Do not trigger refresh if change was triggered on blur event since components with Refresh on Blur have their own listeners
2633
- if (!flags.fromBlur) {
2634
- this.checkRefreshOn(flags.changes, flags);
2635
- }
2636
- if (flags.noCheck) {
2637
- return true;
2638
- }
2639
- this.checkComponentConditions(data, flags, row);
2640
- if (this.id !== flags.triggeredComponentId) {
2641
- this.calculateComponentValue(data, flags, row);
2642
- }
2643
- if (flags.noValidate && !flags.validateOnInit && !flags.fromIframe) {
2644
- if (flags.fromSubmission && this.rootPristine && this.pristine && this.error && flags.changed) {
2645
- this.checkComponentValidity(data, !!this.options.alwaysDirty, row, true);
2646
- }
2647
- return true;
2648
- }
2649
- let isDirty = false;
2650
- // We need to set dirty if they explicitly set noValidate to false.
2651
- if (this.options.alwaysDirty || flags.dirty) {
2652
- isDirty = true;
2653
- }
2654
- // See if they explicitely set the values with setSubmission.
2655
- if (flags.fromSubmission && this.hasValue(data)) {
2656
- isDirty = true;
2657
- }
2658
- this.setDirty(isDirty);
2659
- if (this.component.validateOn === 'blur' && flags.fromSubmission) {
2660
- return true;
2661
- }
2662
- const isValid = this.checkComponentValidity(data, isDirty, row, flags);
2663
- this.checkModal();
2664
- return isValid;
2665
- }
2666
- checkModal(isValid = true, dirty = false) {
2667
- if (!this.component.modalEdit || !this.componentModal) {
2668
- return;
2669
- }
2670
- if (dirty && !isValid) {
2671
- this.setErrorClasses([this.refs.openModal], dirty, !isValid, !!this.errors.length, this.refs.openModalWrapper);
2672
- }
2673
- else {
2674
- this.clearErrorClasses(this.refs.openModalWrapper);
2675
- }
2676
- }
2677
- get validationValue() {
2678
- return this.dataValue;
2679
- }
2680
- isEmpty(value = this.dataValue) {
2681
- const isEmptyArray = (_.isArray(value) && value.length === 1) ? _.isEqual(value[0], this.emptyValue) : false;
2682
- return value == null || value.length === 0 || _.isEqual(value, this.emptyValue) || isEmptyArray;
2683
- }
2684
- isEqual(valueA, valueB = this.dataValue) {
2685
- return (this.isEmpty(valueA) && this.isEmpty(valueB)) || _.isEqual(valueA, valueB);
2686
- }
2687
- /**
2688
- * Check if a component is eligible for multiple validation
2689
- *
2690
- * @return {boolean}
2691
- */
2692
- validateMultiple() {
2693
- return true;
2694
- }
2695
- get errors() {
2696
- return this.error ? [this.error] : [];
2697
- }
2698
- clearErrorClasses(element = this.element) {
2699
- this.removeClass(element, this.options.componentErrorClass);
2700
- this.removeClass(element, 'alert alert-danger');
2701
- this.removeClass(element, 'has-error');
2702
- this.removeClass(element, 'has-message');
2703
- }
2704
- setInputWidgetErrorClasses(inputRefs, hasErrors) {
2705
- if (!this.isInputComponent || !this.component.widget || !inputRefs?.length) {
2706
- return;
2707
- }
2708
- inputRefs.forEach((input) => {
2709
- if (input?.widget && input.widget.setErrorClasses) {
2710
- input.widget.setErrorClasses(hasErrors);
2711
- }
2712
- });
2713
- }
2714
- addFocusBlurEvents(element) {
2715
- this.addEventListener(element, 'focus', () => {
2716
- if (this.root.focusedComponent !== this) {
2717
- if (this.root.pendingBlur) {
2718
- this.root.pendingBlur();
2719
- }
2720
- this.root.focusedComponent = this;
2721
- this.emit('focus', this);
2722
- }
2723
- else if (this.root.focusedComponent === this && this.root.pendingBlur) {
2724
- this.root.pendingBlur.cancel();
2725
- this.root.pendingBlur = null;
2726
- }
2727
- });
2728
- this.addEventListener(element, 'blur', () => {
2729
- this.root.pendingBlur = FormioUtils.delay(() => {
2730
- this.emit('blur', this);
2731
- if (this.component.validateOn === 'blur') {
2732
- this.root.triggerChange({ fromBlur: true }, {
2733
- instance: this,
2734
- component: this.component,
2735
- value: this.dataValue,
2736
- flags: { fromBlur: true }
2737
- });
2738
- }
2739
- this.root.focusedComponent = null;
2740
- this.root.pendingBlur = null;
2741
- });
2742
- });
2743
- }
2744
- setCustomValidity(messages, dirty, external) {
2745
- const inputRefs = this.isInputComponent ? this.refs.input || [] : null;
2746
- if (typeof messages === 'string' && messages) {
2747
- messages = {
2748
- level: 'error',
2749
- message: messages,
2750
- };
2751
- }
2752
- if (!Array.isArray(messages)) {
2753
- if (messages) {
2754
- messages = [messages];
2755
- }
2756
- else {
2757
- messages = [];
2758
- }
2759
- }
2760
- const hasErrors = !!messages.filter(message => message.level === 'error').length;
2761
- let invalidInputRefs = inputRefs;
2762
- if (this.component.multiple) {
2763
- const inputRefsArray = Array.from(inputRefs);
2764
- inputRefsArray.forEach((input) => {
2765
- this.setElementInvalid(this.performInputMapping(input), false);
2766
- });
2767
- this.setInputWidgetErrorClasses(inputRefsArray, false);
2768
- invalidInputRefs = inputRefsArray.filter((ref) => {
2769
- return messages.some?.((msg) => {
2770
- return msg?.context?.input === ref;
2771
- });
2772
- });
2773
- }
2774
- if (messages.length) {
2775
- if (this.refs.messageContainer) {
2776
- this.empty(this.refs.messageContainer);
2777
- }
2778
- this.error = {
2779
- component: this.component,
2780
- message: messages[0].message,
2781
- messages,
2782
- external: !!external,
2783
- };
2784
- this.emit('componentError', this.error);
2785
- this.addMessages(messages, dirty, invalidInputRefs);
2786
- if (invalidInputRefs) {
2787
- this.setErrorClasses(invalidInputRefs, dirty, hasErrors, !!messages.length);
2788
- }
2789
- }
2790
- else if (!this.error || (this.error && this.error.external === !!external)) {
2791
- if (this.refs.messageContainer) {
2792
- this.empty(this.refs.messageContainer);
2793
- }
2794
- if (this.refs.modalMessageContainer) {
2795
- this.empty(this.refs.modalMessageContainer);
2796
- }
2797
- this.error = null;
2798
- if (invalidInputRefs) {
2799
- this.setErrorClasses(invalidInputRefs, dirty, hasErrors, !!messages.length);
2800
- }
2801
- this.clearErrorClasses();
2802
- }
2803
- // if (!this.refs.input) {
2804
- // return;
2805
- // }
2806
- // this.refs.input.forEach(input => {
2807
- // input = this.performInputMapping(input);
2808
- // if (typeof input.setCustomValidity === 'function') {
2809
- // input.setCustomValidity(message, dirty);
2810
- // }
2811
- // });
2812
- }
2813
- /**
2814
- * Determines if the value of this component is hidden from the user as if it is coming from the server, but is
2815
- * protected.
2816
- *
2817
- * @return {boolean|*}
2818
- */
2819
- isValueHidden() {
2820
- if (this.component.protected && this.root.editing) {
2821
- return false;
2822
- }
2823
- if (!this.root || !this.root.hasOwnProperty('editing')) {
2824
- return false;
2825
- }
2826
- if (!this.root || !this.root.editing) {
2827
- return false;
2828
- }
2829
- return (this.component.protected || !this.component.persistent || (this.component.persistent === 'client-only'));
2830
- }
2831
- shouldSkipValidation(data, dirty, row) {
2832
- const rules = [
2833
- // Do not check custom validation for empty data if it is not required
2834
- () => this.component.validate.custom && !this.dataValue && !this.component.validate.required,
2835
- // Force valid if component is read-only
2836
- () => this.options.readOnly,
2837
- // Do not check validations if component is not an input component.
2838
- () => !this.hasInput,
2839
- // Check to see if we are editing and if so, check component persistence.
2840
- () => this.isValueHidden(),
2841
- // Force valid if component is hidden.
2842
- () => !this.visible,
2843
- // Force valid if component is conditionally hidden.
2844
- () => !this.checkCondition(row, data)
2845
- ];
2846
- return rules.some(pred => pred());
2847
- }
2848
- // Maintain reverse compatibility.
2849
- whenReady() {
2850
- console.warn('The whenReady() method has been deprecated. Please use the dataReady property instead.');
2851
- return this.dataReady;
2852
- }
2853
- get dataReady() {
2854
- return Promise.resolve();
2855
- }
2856
- /**
2857
- * Prints out the value of this component as a string value.
2858
- */
2859
- asString(value) {
2860
- value = value || this.getValue();
2861
- return (Array.isArray(value) ? value : [value]).map(_.toString).join(', ');
2862
- }
2863
- /**
2864
- * Return if the component is disabled.
2865
- * @return {boolean}
2866
- */
2867
- get disabled() {
2868
- return this._disabled || this.parentDisabled;
2869
- }
2870
- /**
2871
- * Disable this component.
2872
- *
2873
- * @param {boolean} disabled
2874
- */
2875
- set disabled(disabled) {
2876
- this._disabled = disabled;
2877
- }
2878
- setDisabled(element, disabled) {
2879
- if (!element) {
2880
- return;
2881
- }
2882
- element.disabled = disabled;
2883
- if (disabled) {
2884
- element.setAttribute('disabled', 'disabled');
2885
- }
2886
- else {
2887
- element.removeAttribute('disabled');
2888
- }
2889
- }
2890
- setLoading(element, loading) {
2891
- if (!element || (element.loading === loading)) {
2892
- return;
2893
- }
2894
- element.loading = loading;
2895
- if (!element.loader && loading) {
2896
- element.loader = this.ce('i', {
2897
- class: `${this.iconClass('refresh', true)} button-icon-right`
2898
- });
2899
- }
2900
- if (element.loader) {
2901
- if (loading) {
2902
- this.appendTo(element.loader, element);
2903
- }
2904
- else {
2905
- this.removeChildFrom(element.loader, element);
2906
- }
2907
- }
2908
- }
2909
- selectOptions(select, tag, options, defaultValue) {
2910
- _.each(options, (option) => {
2911
- const attrs = {
2912
- value: option.value
2913
- };
2914
- if (defaultValue !== undefined && (option.value === defaultValue)) {
2915
- attrs.selected = 'selected';
2916
- }
2917
- const optionElement = this.ce('option', attrs);
2918
- optionElement.appendChild(this.text(option.label));
2919
- select.appendChild(optionElement);
2920
- });
2921
- }
2922
- setSelectValue(select, value) {
2923
- const options = select.querySelectorAll('option');
2924
- _.each(options, (option) => {
2925
- if (option.value === value) {
2926
- option.setAttribute('selected', 'selected');
2927
- }
2928
- else {
2929
- option.removeAttribute('selected');
2930
- }
2931
- });
2932
- if (select.onchange) {
2933
- select.onchange();
2934
- }
2935
- if (select.onselect) {
2936
- select.onselect();
2937
- }
2938
- }
2939
- getRelativePath(path) {
2940
- const keyPart = `.${this.key}`;
2941
- const thisPath = this.isInputComponent ? this.path
2942
- : this.path.slice(0).replace(keyPart, '');
2943
- return path.replace(thisPath, '');
2944
- }
2945
- clear() {
2946
- this.detach();
2947
- this.empty(this.getElement());
2948
- }
2949
- append(element) {
2950
- this.appendTo(element, this.element);
2951
- }
2952
- prepend(element) {
2953
- this.prependTo(element, this.element);
2954
- }
2955
- removeChild(element) {
2956
- this.removeChildFrom(element, this.element);
2957
- }
2958
- detachLogic() {
2959
- this.logic.forEach(logic => {
2960
- if (logic.trigger.type === 'event') {
2961
- const event = this.interpolate(logic.trigger.event);
2962
- this.off(event); // only applies to callbacks on this component
2963
- }
2964
- });
2965
- }
2966
- attachLogic() {
2967
- // Do not attach logic during builder mode.
2968
- if (this.builderMode) {
2969
- return;
2970
- }
2971
- this.logic.forEach((logic) => {
2972
- if (logic.trigger.type === 'event') {
2973
- const event = this.interpolate(logic.trigger.event);
2974
- this.on(event, (...args) => {
2975
- const newComponent = fastCloneDeep(this.originalComponent);
2976
- if (this.applyActions(newComponent, logic.actions, args)) {
2977
- // If component definition changed, replace it.
2978
- if (!_.isEqual(this.component, newComponent)) {
2979
- this.component = newComponent;
2980
- const visible = this.conditionallyVisible(null, null);
2981
- const disabled = this.shouldDisabled;
2982
- // Change states which won't be recalculated during redrawing
2983
- if (this.visible !== visible) {
2984
- this.visible = visible;
2985
- }
2986
- if (this.disabled !== disabled) {
2987
- this.disabled = disabled;
2988
- }
2989
- this.redraw();
2990
- }
2991
- }
2992
- }, true);
2993
- }
2994
- });
2995
- }
2996
- /**
2997
- * Get the element information.
2998
- */
2999
- elementInfo() {
3000
- const attributes = {
3001
- name: this.options.name,
3002
- type: this.component.inputType || 'text',
3003
- class: 'form-control',
3004
- lang: this.options.language
3005
- };
3006
- if (this.component.placeholder) {
3007
- attributes.placeholder = this.t(this.component.placeholder, { _userInput: true });
3008
- }
3009
- if (this.component.tabindex) {
3010
- attributes.tabindex = this.component.tabindex;
3011
- }
3012
- if (this.disabled) {
3013
- attributes.disabled = 'disabled';
3014
- }
3015
- _.defaults(attributes, this.component.attributes);
3016
- return {
3017
- type: 'input',
3018
- component: this.component,
3019
- changeEvent: 'change',
3020
- attr: attributes
3021
- };
3022
- }
3023
- autofocus() {
3024
- const hasAutofocus = this.component.autofocus && !this.builderMode && !this.options.preview;
3025
- if (hasAutofocus) {
3026
- this.on('render', () => this.focus(), true);
3027
- }
3028
- }
3029
- scrollIntoView(element = this.element) {
3030
- if (!element) {
3031
- return;
3032
- }
3033
- const { left, top } = element.getBoundingClientRect();
3034
- window.scrollTo(left + window.scrollX, top + window.scrollY);
3035
- }
3036
- focus(index) {
3037
- if ('beforeFocus' in this.parent) {
3038
- this.parent.beforeFocus(this);
3039
- }
3040
- if (this.refs.input?.length) {
3041
- const focusingInput = typeof index === 'number' && this.refs.input[index]
3042
- ? this.refs.input[index]
3043
- : this.refs.input[this.refs.input.length - 1];
3044
- if (this.component.widget?.type === 'calendar') {
3045
- const sibling = focusingInput.nextSibling;
3046
- if (sibling) {
3047
- sibling.focus();
3048
- }
3049
- }
3050
- else {
3051
- focusingInput.focus();
3052
- }
3053
- }
3054
- if (this.refs.openModal) {
3055
- this.refs.openModal.focus();
3056
- }
3057
- if (this.parent.refs.openModal) {
3058
- this.parent.refs.openModal.focus();
3059
- }
3060
- }
3061
- /**
3062
- * Get `Formio` instance for working with files
3063
- */
3064
- get fileService() {
3065
- if (this.options.fileService) {
3066
- return this.options.fileService;
3067
- }
3068
- if (this.options.formio) {
3069
- return this.options.formio;
3070
- }
3071
- if (this.root && this.root.formio) {
3072
- return this.root.formio;
3073
- }
3074
- const formio = new Formio();
3075
- // If a form is loaded, then make sure to set the correct formUrl.
3076
- if (this.root && this.root._form && this.root._form._id) {
3077
- formio.formUrl = `${formio.projectUrl}/form/${this.root._form._id}`;
3078
- }
3079
- return formio;
3080
- }
3081
- resetCaches() { }
3082
- get previewMode() {
3083
- return false;
3084
- }
3085
- }
3086
- Component.externalLibraries = {};
3087
- Component.requireLibrary = function (name, property, src, polling) {
3088
- if (!Component.externalLibraries.hasOwnProperty(name)) {
3089
- Component.externalLibraries[name] = {};
3090
- Component.externalLibraries[name].ready = new Promise((resolve, reject) => {
3091
- Component.externalLibraries[name].resolve = resolve;
3092
- Component.externalLibraries[name].reject = reject;
3093
- });
3094
- const callbackName = `${name}Callback`;
3095
- if (!polling && !window[callbackName]) {
3096
- window[callbackName] = function () {
3097
- this.resolve();
3098
- }.bind(Component.externalLibraries[name]);
3099
- }
3100
- // See if the plugin already exists.
3101
- const plugin = _.get(window, property);
3102
- if (plugin) {
3103
- Component.externalLibraries[name].resolve(plugin);
3104
- }
3105
- else {
3106
- src = Array.isArray(src) ? src : [src];
3107
- src.forEach((lib) => {
3108
- let attrs = {};
3109
- let elementType = '';
3110
- if (typeof lib === 'string') {
3111
- lib = {
3112
- type: 'script',
3113
- src: lib
3114
- };
3115
- }
3116
- switch (lib.type) {
3117
- case 'script':
3118
- elementType = 'script';
3119
- attrs = {
3120
- src: lib.src,
3121
- type: 'text/javascript',
3122
- defer: true,
3123
- async: true
3124
- };
3125
- break;
3126
- case 'styles':
3127
- elementType = 'link';
3128
- attrs = {
3129
- href: lib.src,
3130
- rel: 'stylesheet'
3131
- };
3132
- break;
3133
- }
3134
- // Add the script to the top page.
3135
- const script = document.createElement(elementType);
3136
- for (const attr in attrs) {
3137
- script.setAttribute(attr, attrs[attr]);
3138
- }
3139
- document.getElementsByTagName('head')[0].appendChild(script);
3140
- });
3141
- // if no callback is provided, then check periodically for the script.
3142
- if (polling) {
3143
- setTimeout(function checkLibrary() {
3144
- const plugin = _.get(window, property);
3145
- if (plugin) {
3146
- Component.externalLibraries[name].resolve(plugin);
3147
- }
3148
- else {
3149
- // check again after 200 ms.
3150
- setTimeout(checkLibrary, 200);
3151
- }
3152
- }, 200);
3153
- }
3154
- }
3155
- }
3156
- return Component.externalLibraries[name].ready;
3157
- };
3158
- Component.libraryReady = function (name) {
3159
- if (Component.externalLibraries.hasOwnProperty(name) &&
3160
- Component.externalLibraries[name].ready) {
3161
- return Component.externalLibraries[name].ready;
3162
- }
3163
- return Promise.reject(`${name} library was not required.`);
3164
- };