@formio/js 5.0.0-dev.5813.012c686 → 5.0.0-dev.5815.e20a0d6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1157) hide show
  1. package/Changelog.md +1 -0
  2. package/dist/formio.form.js +4 -4
  3. package/dist/formio.form.min.js +1 -1
  4. package/dist/formio.full.js +5 -5
  5. package/dist/formio.full.min.js +1 -1
  6. package/dist/formio.utils.js +1 -1
  7. package/lib/cjs/Wizard.js +1 -1
  8. package/lib/cjs/components/_classes/component/Component.d.ts +1 -1
  9. package/lib/cjs/components/_classes/component/Component.js +2 -2
  10. package/lib/cjs/components/select/Select.d.ts +1 -0
  11. package/lib/cjs/components/select/Select.js +23 -20
  12. package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +36 -2
  13. package/lib/cjs/components/select/editForm/Select.edit.data.js +29 -10
  14. package/lib/cjs/utils/utils.d.ts +8 -0
  15. package/lib/cjs/utils/utils.js +13 -0
  16. package/lib/mjs/Wizard.js +1 -1
  17. package/lib/mjs/components/_classes/component/Component.d.ts +1 -1
  18. package/lib/mjs/components/_classes/component/Component.js +2 -2
  19. package/lib/mjs/components/select/Select.d.ts +1 -0
  20. package/lib/mjs/components/select/Select.js +23 -20
  21. package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +36 -2
  22. package/lib/mjs/components/select/editForm/Select.edit.data.js +27 -8
  23. package/lib/mjs/utils/utils.d.ts +8 -0
  24. package/lib/mjs/utils/utils.js +13 -0
  25. package/package.json +20 -4
  26. package/lib/cjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
  27. package/lib/cjs/components/_classes/component/fixtures/comp1.js +0 -33
  28. package/lib/cjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
  29. package/lib/cjs/components/_classes/component/fixtures/comp2.js +0 -33
  30. package/lib/cjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
  31. package/lib/cjs/components/_classes/component/fixtures/comp3.js +0 -14
  32. package/lib/cjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
  33. package/lib/cjs/components/_classes/component/fixtures/comp4.js +0 -18
  34. package/lib/cjs/components/_classes/component/fixtures/comp5.d.ts +0 -26
  35. package/lib/cjs/components/_classes/component/fixtures/comp5.js +0 -26
  36. package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +0 -77
  37. package/lib/cjs/components/_classes/component/fixtures/comp6.js +0 -59
  38. package/lib/cjs/components/_classes/component/fixtures/comp7.d.ts +0 -84
  39. package/lib/cjs/components/_classes/component/fixtures/comp7.js +0 -86
  40. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +0 -8
  41. package/lib/cjs/components/_classes/component/fixtures/index.js +0 -20
  42. package/lib/cjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
  43. package/lib/cjs/components/_classes/nested/fixtures/comp1.js +0 -16
  44. package/lib/cjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
  45. package/lib/cjs/components/_classes/nested/fixtures/comp2.js +0 -227
  46. package/lib/cjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
  47. package/lib/cjs/components/_classes/nested/fixtures/comp3.js +0 -29
  48. package/lib/cjs/components/_classes/nested/fixtures/index.d.ts +0 -3
  49. package/lib/cjs/components/_classes/nested/fixtures/index.js +0 -12
  50. package/lib/cjs/components/address/fixtures/comp1.d.ts +0 -34
  51. package/lib/cjs/components/address/fixtures/comp1.js +0 -71
  52. package/lib/cjs/components/address/fixtures/comp2.d.ts +0 -62
  53. package/lib/cjs/components/address/fixtures/comp2.js +0 -103
  54. package/lib/cjs/components/address/fixtures/comp3.d.ts +0 -44
  55. package/lib/cjs/components/address/fixtures/comp3.js +0 -85
  56. package/lib/cjs/components/address/fixtures/comp4.d.ts +0 -56
  57. package/lib/cjs/components/address/fixtures/comp4.js +0 -93
  58. package/lib/cjs/components/address/fixtures/index.d.ts +0 -5
  59. package/lib/cjs/components/address/fixtures/index.js +0 -14
  60. package/lib/cjs/components/address/fixtures/values.d.ts +0 -22
  61. package/lib/cjs/components/address/fixtures/values.js +0 -19
  62. package/lib/cjs/components/button/fixtures/comp1.d.ts +0 -15
  63. package/lib/cjs/components/button/fixtures/comp1.js +0 -16
  64. package/lib/cjs/components/button/fixtures/comp2.d.ts +0 -25
  65. package/lib/cjs/components/button/fixtures/comp2.js +0 -57
  66. package/lib/cjs/components/button/fixtures/comp3.d.ts +0 -113
  67. package/lib/cjs/components/button/fixtures/comp3.js +0 -84
  68. package/lib/cjs/components/button/fixtures/index.d.ts +0 -4
  69. package/lib/cjs/components/button/fixtures/index.js +0 -12
  70. package/lib/cjs/components/button/fixtures/values.d.ts +0 -2
  71. package/lib/cjs/components/button/fixtures/values.js +0 -6
  72. package/lib/cjs/components/checkbox/fixtures/comp1.d.ts +0 -24
  73. package/lib/cjs/components/checkbox/fixtures/comp1.js +0 -24
  74. package/lib/cjs/components/checkbox/fixtures/comp2.d.ts +0 -12
  75. package/lib/cjs/components/checkbox/fixtures/comp2.js +0 -13
  76. package/lib/cjs/components/checkbox/fixtures/comp3.d.ts +0 -15
  77. package/lib/cjs/components/checkbox/fixtures/comp3.js +0 -16
  78. package/lib/cjs/components/checkbox/fixtures/comp4.d.ts +0 -48
  79. package/lib/cjs/components/checkbox/fixtures/comp4.js +0 -39
  80. package/lib/cjs/components/checkbox/fixtures/comp5.d.ts +0 -34
  81. package/lib/cjs/components/checkbox/fixtures/comp5.js +0 -55
  82. package/lib/cjs/components/checkbox/fixtures/comp6.d.ts +0 -32
  83. package/lib/cjs/components/checkbox/fixtures/comp6.js +0 -30
  84. package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
  85. package/lib/cjs/components/checkbox/fixtures/customDefaultComponent.js +0 -25
  86. package/lib/cjs/components/checkbox/fixtures/index.d.ts +0 -8
  87. package/lib/cjs/components/checkbox/fixtures/index.js +0 -20
  88. package/lib/cjs/components/checkbox/fixtures/values.d.ts +0 -2
  89. package/lib/cjs/components/checkbox/fixtures/values.js +0 -6
  90. package/lib/cjs/components/columns/fixtures/comp1.d.ts +0 -45
  91. package/lib/cjs/components/columns/fixtures/comp1.js +0 -85
  92. package/lib/cjs/components/columns/fixtures/comp2.d.ts +0 -24
  93. package/lib/cjs/components/columns/fixtures/comp2.js +0 -127
  94. package/lib/cjs/components/columns/fixtures/comp3.d.ts +0 -45
  95. package/lib/cjs/components/columns/fixtures/comp3.js +0 -53
  96. package/lib/cjs/components/columns/fixtures/index.d.ts +0 -4
  97. package/lib/cjs/components/columns/fixtures/index.js +0 -12
  98. package/lib/cjs/components/container/fixtures/comp1.d.ts +0 -49
  99. package/lib/cjs/components/container/fixtures/comp1.js +0 -82
  100. package/lib/cjs/components/container/fixtures/comp2.d.ts +0 -30
  101. package/lib/cjs/components/container/fixtures/comp2.js +0 -34
  102. package/lib/cjs/components/container/fixtures/comp3.d.ts +0 -77
  103. package/lib/cjs/components/container/fixtures/comp3.js +0 -57
  104. package/lib/cjs/components/container/fixtures/comp4.d.ts +0 -44
  105. package/lib/cjs/components/container/fixtures/comp4.js +0 -45
  106. package/lib/cjs/components/container/fixtures/index.d.ts +0 -5
  107. package/lib/cjs/components/container/fixtures/index.js +0 -14
  108. package/lib/cjs/components/content/fixtures/comp1.d.ts +0 -13
  109. package/lib/cjs/components/content/fixtures/comp1.js +0 -14
  110. package/lib/cjs/components/content/fixtures/index.d.ts +0 -2
  111. package/lib/cjs/components/content/fixtures/index.js +0 -8
  112. package/lib/cjs/components/currency/fixtures/comp1.d.ts +0 -31
  113. package/lib/cjs/components/currency/fixtures/comp1.js +0 -31
  114. package/lib/cjs/components/currency/fixtures/comp2.d.ts +0 -20
  115. package/lib/cjs/components/currency/fixtures/comp2.js +0 -20
  116. package/lib/cjs/components/currency/fixtures/comp3.d.ts +0 -13
  117. package/lib/cjs/components/currency/fixtures/comp3.js +0 -14
  118. package/lib/cjs/components/currency/fixtures/comp4.d.ts +0 -17
  119. package/lib/cjs/components/currency/fixtures/comp4.js +0 -20
  120. package/lib/cjs/components/currency/fixtures/index.d.ts +0 -5
  121. package/lib/cjs/components/currency/fixtures/index.js +0 -14
  122. package/lib/cjs/components/currency/fixtures/values.d.ts +0 -2
  123. package/lib/cjs/components/currency/fixtures/values.js +0 -8
  124. package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
  125. package/lib/cjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -42
  126. package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
  127. package/lib/cjs/components/datagrid/fixtures/comp-on-blur-validation.js +0 -1
  128. package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
  129. package/lib/cjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -81
  130. package/lib/cjs/components/datagrid/fixtures/comp-with-allow-calculate-override.d.ts +0 -54
  131. package/lib/cjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +0 -68
  132. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +0 -29
  133. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +0 -36
  134. package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
  135. package/lib/cjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -75
  136. package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -202
  137. package/lib/cjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -178
  138. package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
  139. package/lib/cjs/components/datagrid/fixtures/comp-with-def-value.js +0 -69
  140. package/lib/cjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
  141. package/lib/cjs/components/datagrid/fixtures/comp-with-logic.js +0 -180
  142. package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.d.ts +0 -100
  143. package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.js +0 -139
  144. package/lib/cjs/components/datagrid/fixtures/comp1.d.ts +0 -93
  145. package/lib/cjs/components/datagrid/fixtures/comp1.js +0 -115
  146. package/lib/cjs/components/datagrid/fixtures/comp10.d.ts +0 -81
  147. package/lib/cjs/components/datagrid/fixtures/comp10.js +0 -87
  148. package/lib/cjs/components/datagrid/fixtures/comp11.d.ts +0 -50
  149. package/lib/cjs/components/datagrid/fixtures/comp11.js +0 -55
  150. package/lib/cjs/components/datagrid/fixtures/comp2.d.ts +0 -18
  151. package/lib/cjs/components/datagrid/fixtures/comp2.js +0 -29
  152. package/lib/cjs/components/datagrid/fixtures/comp3.d.ts +0 -14
  153. package/lib/cjs/components/datagrid/fixtures/comp3.js +0 -23
  154. package/lib/cjs/components/datagrid/fixtures/comp4.d.ts +0 -27
  155. package/lib/cjs/components/datagrid/fixtures/comp4.js +0 -28
  156. package/lib/cjs/components/datagrid/fixtures/comp5.d.ts +0 -67
  157. package/lib/cjs/components/datagrid/fixtures/comp5.js +0 -77
  158. package/lib/cjs/components/datagrid/fixtures/comp6.d.ts +0 -567
  159. package/lib/cjs/components/datagrid/fixtures/comp6.js +0 -296
  160. package/lib/cjs/components/datagrid/fixtures/comp7.d.ts +0 -28
  161. package/lib/cjs/components/datagrid/fixtures/comp7.js +0 -35
  162. package/lib/cjs/components/datagrid/fixtures/comp8.d.ts +0 -35
  163. package/lib/cjs/components/datagrid/fixtures/comp8.js +0 -37
  164. package/lib/cjs/components/datagrid/fixtures/comp9.d.ts +0 -41
  165. package/lib/cjs/components/datagrid/fixtures/comp9.js +0 -44
  166. package/lib/cjs/components/datagrid/fixtures/index.d.ts +0 -22
  167. package/lib/cjs/components/datagrid/fixtures/index.js +0 -48
  168. package/lib/cjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.d.ts +0 -54
  169. package/lib/cjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +0 -104
  170. package/lib/cjs/components/datamap/fixtures/comp1.d.ts +0 -18
  171. package/lib/cjs/components/datamap/fixtures/comp1.js +0 -15
  172. package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
  173. package/lib/cjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -85
  174. package/lib/cjs/components/datamap/fixtures/index.d.ts +0 -3
  175. package/lib/cjs/components/datamap/fixtures/index.js +0 -10
  176. package/lib/cjs/components/datetime/fixtures/comp1.d.ts +0 -45
  177. package/lib/cjs/components/datetime/fixtures/comp1.js +0 -44
  178. package/lib/cjs/components/datetime/fixtures/comp10.d.ts +0 -102
  179. package/lib/cjs/components/datetime/fixtures/comp10.js +0 -86
  180. package/lib/cjs/components/datetime/fixtures/comp11.d.ts +0 -58
  181. package/lib/cjs/components/datetime/fixtures/comp11.js +0 -55
  182. package/lib/cjs/components/datetime/fixtures/comp12.d.ts +0 -57
  183. package/lib/cjs/components/datetime/fixtures/comp12.js +0 -55
  184. package/lib/cjs/components/datetime/fixtures/comp13.d.ts +0 -126
  185. package/lib/cjs/components/datetime/fixtures/comp13.js +0 -118
  186. package/lib/cjs/components/datetime/fixtures/comp14.d.ts +0 -35
  187. package/lib/cjs/components/datetime/fixtures/comp14.js +0 -38
  188. package/lib/cjs/components/datetime/fixtures/comp2.d.ts +0 -42
  189. package/lib/cjs/components/datetime/fixtures/comp2.js +0 -43
  190. package/lib/cjs/components/datetime/fixtures/comp3.d.ts +0 -51
  191. package/lib/cjs/components/datetime/fixtures/comp3.js +0 -40
  192. package/lib/cjs/components/datetime/fixtures/comp5.d.ts +0 -57
  193. package/lib/cjs/components/datetime/fixtures/comp5.js +0 -48
  194. package/lib/cjs/components/datetime/fixtures/comp6.d.ts +0 -55
  195. package/lib/cjs/components/datetime/fixtures/comp6.js +0 -49
  196. package/lib/cjs/components/datetime/fixtures/comp7.d.ts +0 -59
  197. package/lib/cjs/components/datetime/fixtures/comp7.js +0 -53
  198. package/lib/cjs/components/datetime/fixtures/comp8.d.ts +0 -59
  199. package/lib/cjs/components/datetime/fixtures/comp8.js +0 -52
  200. package/lib/cjs/components/datetime/fixtures/comp9.d.ts +0 -64
  201. package/lib/cjs/components/datetime/fixtures/comp9.js +0 -95
  202. package/lib/cjs/components/datetime/fixtures/index.d.ts +0 -14
  203. package/lib/cjs/components/datetime/fixtures/index.js +0 -32
  204. package/lib/cjs/components/datetime/fixtures/values.d.ts +0 -2
  205. package/lib/cjs/components/datetime/fixtures/values.js +0 -6
  206. package/lib/cjs/components/day/fixtures/comp1.d.ts +0 -46
  207. package/lib/cjs/components/day/fixtures/comp1.js +0 -39
  208. package/lib/cjs/components/day/fixtures/comp2.d.ts +0 -46
  209. package/lib/cjs/components/day/fixtures/comp2.js +0 -39
  210. package/lib/cjs/components/day/fixtures/comp3.d.ts +0 -48
  211. package/lib/cjs/components/day/fixtures/comp3.js +0 -41
  212. package/lib/cjs/components/day/fixtures/comp4.d.ts +0 -53
  213. package/lib/cjs/components/day/fixtures/comp4.js +0 -56
  214. package/lib/cjs/components/day/fixtures/comp5.d.ts +0 -29
  215. package/lib/cjs/components/day/fixtures/comp5.js +0 -32
  216. package/lib/cjs/components/day/fixtures/comp6.d.ts +0 -81
  217. package/lib/cjs/components/day/fixtures/comp6.js +0 -76
  218. package/lib/cjs/components/day/fixtures/comp7.d.ts +0 -109
  219. package/lib/cjs/components/day/fixtures/comp7.js +0 -109
  220. package/lib/cjs/components/day/fixtures/comp8.d.ts +0 -41
  221. package/lib/cjs/components/day/fixtures/comp8.js +0 -40
  222. package/lib/cjs/components/day/fixtures/index.d.ts +0 -9
  223. package/lib/cjs/components/day/fixtures/index.js +0 -22
  224. package/lib/cjs/components/day/fixtures/values.d.ts +0 -2
  225. package/lib/cjs/components/day/fixtures/values.js +0 -6
  226. package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
  227. package/lib/cjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -36
  228. package/lib/cjs/components/editgrid/fixtures/comp-test-events.d.ts +0 -54
  229. package/lib/cjs/components/editgrid/fixtures/comp-test-events.js +0 -54
  230. package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
  231. package/lib/cjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -220
  232. package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -79
  233. package/lib/cjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -84
  234. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
  235. package/lib/cjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -227
  236. package/lib/cjs/components/editgrid/fixtures/comp1.d.ts +0 -89
  237. package/lib/cjs/components/editgrid/fixtures/comp1.js +0 -128
  238. package/lib/cjs/components/editgrid/fixtures/comp10.d.ts +0 -49
  239. package/lib/cjs/components/editgrid/fixtures/comp10.js +0 -48
  240. package/lib/cjs/components/editgrid/fixtures/comp11.d.ts +0 -53
  241. package/lib/cjs/components/editgrid/fixtures/comp11.js +0 -50
  242. package/lib/cjs/components/editgrid/fixtures/comp12.d.ts +0 -58
  243. package/lib/cjs/components/editgrid/fixtures/comp12.js +0 -50
  244. package/lib/cjs/components/editgrid/fixtures/comp13.d.ts +0 -64
  245. package/lib/cjs/components/editgrid/fixtures/comp13.js +0 -64
  246. package/lib/cjs/components/editgrid/fixtures/comp14.d.ts +0 -88
  247. package/lib/cjs/components/editgrid/fixtures/comp14.js +0 -84
  248. package/lib/cjs/components/editgrid/fixtures/comp15.d.ts +0 -54
  249. package/lib/cjs/components/editgrid/fixtures/comp15.js +0 -51
  250. package/lib/cjs/components/editgrid/fixtures/comp16.d.ts +0 -52
  251. package/lib/cjs/components/editgrid/fixtures/comp16.js +0 -71
  252. package/lib/cjs/components/editgrid/fixtures/comp17.d.ts +0 -80
  253. package/lib/cjs/components/editgrid/fixtures/comp17.js +0 -99
  254. package/lib/cjs/components/editgrid/fixtures/comp18.d.ts +0 -38
  255. package/lib/cjs/components/editgrid/fixtures/comp18.js +0 -74
  256. package/lib/cjs/components/editgrid/fixtures/comp2.d.ts +0 -112
  257. package/lib/cjs/components/editgrid/fixtures/comp2.js +0 -114
  258. package/lib/cjs/components/editgrid/fixtures/comp3.d.ts +0 -27
  259. package/lib/cjs/components/editgrid/fixtures/comp3.js +0 -28
  260. package/lib/cjs/components/editgrid/fixtures/comp4.d.ts +0 -23
  261. package/lib/cjs/components/editgrid/fixtures/comp4.js +0 -24
  262. package/lib/cjs/components/editgrid/fixtures/comp5.d.ts +0 -19
  263. package/lib/cjs/components/editgrid/fixtures/comp5.js +0 -22
  264. package/lib/cjs/components/editgrid/fixtures/comp6.d.ts +0 -50
  265. package/lib/cjs/components/editgrid/fixtures/comp6.js +0 -58
  266. package/lib/cjs/components/editgrid/fixtures/comp7.d.ts +0 -129
  267. package/lib/cjs/components/editgrid/fixtures/comp7.js +0 -123
  268. package/lib/cjs/components/editgrid/fixtures/comp8.d.ts +0 -148
  269. package/lib/cjs/components/editgrid/fixtures/comp8.js +0 -156
  270. package/lib/cjs/components/editgrid/fixtures/comp9.d.ts +0 -86
  271. package/lib/cjs/components/editgrid/fixtures/comp9.js +0 -62
  272. package/lib/cjs/components/editgrid/fixtures/formsWithEditGridAndConditions.d.ts +0 -919
  273. package/lib/cjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +0 -923
  274. package/lib/cjs/components/editgrid/fixtures/index.d.ts +0 -23
  275. package/lib/cjs/components/editgrid/fixtures/index.js +0 -50
  276. package/lib/cjs/components/email/fixtures/comp1.d.ts +0 -26
  277. package/lib/cjs/components/email/fixtures/comp1.js +0 -26
  278. package/lib/cjs/components/email/fixtures/comp2.d.ts +0 -23
  279. package/lib/cjs/components/email/fixtures/comp2.js +0 -13
  280. package/lib/cjs/components/email/fixtures/index.d.ts +0 -3
  281. package/lib/cjs/components/email/fixtures/index.js +0 -10
  282. package/lib/cjs/components/email/fixtures/values.d.ts +0 -2
  283. package/lib/cjs/components/email/fixtures/values.js +0 -6
  284. package/lib/cjs/components/fieldset/fixtures/comp1.d.ts +0 -46
  285. package/lib/cjs/components/fieldset/fixtures/comp1.js +0 -81
  286. package/lib/cjs/components/fieldset/fixtures/index.d.ts +0 -2
  287. package/lib/cjs/components/fieldset/fixtures/index.js +0 -8
  288. package/lib/cjs/components/file/fixtures/comp1.d.ts +0 -15
  289. package/lib/cjs/components/file/fixtures/comp1.js +0 -18
  290. package/lib/cjs/components/file/fixtures/comp2.d.ts +0 -35
  291. package/lib/cjs/components/file/fixtures/comp2.js +0 -31
  292. package/lib/cjs/components/file/fixtures/comp3.d.ts +0 -29
  293. package/lib/cjs/components/file/fixtures/comp3.js +0 -31
  294. package/lib/cjs/components/file/fixtures/index.d.ts +0 -3
  295. package/lib/cjs/components/file/fixtures/index.js +0 -10
  296. package/lib/cjs/components/file/fixtures/values.d.ts +0 -10
  297. package/lib/cjs/components/file/fixtures/values.js +0 -15
  298. package/lib/cjs/components/form/fixtures/comp1.d.ts +0 -45
  299. package/lib/cjs/components/form/fixtures/comp1.js +0 -80
  300. package/lib/cjs/components/form/fixtures/comp2.d.ts +0 -14
  301. package/lib/cjs/components/form/fixtures/comp2.js +0 -15
  302. package/lib/cjs/components/form/fixtures/comp3.d.ts +0 -187
  303. package/lib/cjs/components/form/fixtures/comp3.js +0 -170
  304. package/lib/cjs/components/form/fixtures/comp4.d.ts +0 -107
  305. package/lib/cjs/components/form/fixtures/comp4.js +0 -91
  306. package/lib/cjs/components/form/fixtures/comp5.d.ts +0 -42
  307. package/lib/cjs/components/form/fixtures/comp5.js +0 -45
  308. package/lib/cjs/components/form/fixtures/comp6.d.ts +0 -74
  309. package/lib/cjs/components/form/fixtures/comp6.js +0 -94
  310. package/lib/cjs/components/form/fixtures/comp7.d.ts +0 -36
  311. package/lib/cjs/components/form/fixtures/comp7.js +0 -37
  312. package/lib/cjs/components/form/fixtures/comp8.d.ts +0 -26
  313. package/lib/cjs/components/form/fixtures/comp8.js +0 -29
  314. package/lib/cjs/components/form/fixtures/formModalEdit.d.ts +0 -42
  315. package/lib/cjs/components/form/fixtures/formModalEdit.js +0 -51
  316. package/lib/cjs/components/form/fixtures/index.d.ts +0 -11
  317. package/lib/cjs/components/form/fixtures/index.js +0 -26
  318. package/lib/cjs/components/form/fixtures/nestedWizardForm.d.ts +0 -771
  319. package/lib/cjs/components/form/fixtures/nestedWizardForm.js +0 -765
  320. package/lib/cjs/components/form/fixtures/values.d.ts +0 -6
  321. package/lib/cjs/components/form/fixtures/values.js +0 -9
  322. package/lib/cjs/components/hidden/fixtures/comp1.d.ts +0 -18
  323. package/lib/cjs/components/hidden/fixtures/comp1.js +0 -18
  324. package/lib/cjs/components/hidden/fixtures/index.d.ts +0 -2
  325. package/lib/cjs/components/hidden/fixtures/index.js +0 -8
  326. package/lib/cjs/components/hidden/fixtures/values.d.ts +0 -2
  327. package/lib/cjs/components/hidden/fixtures/values.js +0 -6
  328. package/lib/cjs/components/html/fixtures/comp1.d.ts +0 -19
  329. package/lib/cjs/components/html/fixtures/comp1.js +0 -22
  330. package/lib/cjs/components/html/fixtures/comp2.d.ts +0 -21
  331. package/lib/cjs/components/html/fixtures/comp2.js +0 -24
  332. package/lib/cjs/components/html/fixtures/comp3.d.ts +0 -42
  333. package/lib/cjs/components/html/fixtures/comp3.js +0 -40
  334. package/lib/cjs/components/html/fixtures/index.d.ts +0 -4
  335. package/lib/cjs/components/html/fixtures/index.js +0 -12
  336. package/lib/cjs/components/number/fixtures/comp1.d.ts +0 -33
  337. package/lib/cjs/components/number/fixtures/comp1.js +0 -32
  338. package/lib/cjs/components/number/fixtures/comp10.d.ts +0 -18
  339. package/lib/cjs/components/number/fixtures/comp10.js +0 -21
  340. package/lib/cjs/components/number/fixtures/comp2.d.ts +0 -32
  341. package/lib/cjs/components/number/fixtures/comp2.js +0 -31
  342. package/lib/cjs/components/number/fixtures/comp3.d.ts +0 -14
  343. package/lib/cjs/components/number/fixtures/comp3.js +0 -15
  344. package/lib/cjs/components/number/fixtures/comp4.d.ts +0 -14
  345. package/lib/cjs/components/number/fixtures/comp4.js +0 -15
  346. package/lib/cjs/components/number/fixtures/comp5.d.ts +0 -20
  347. package/lib/cjs/components/number/fixtures/comp5.js +0 -20
  348. package/lib/cjs/components/number/fixtures/comp6.d.ts +0 -40
  349. package/lib/cjs/components/number/fixtures/comp6.js +0 -27
  350. package/lib/cjs/components/number/fixtures/comp7.d.ts +0 -15
  351. package/lib/cjs/components/number/fixtures/comp7.js +0 -16
  352. package/lib/cjs/components/number/fixtures/comp8.d.ts +0 -32
  353. package/lib/cjs/components/number/fixtures/comp8.js +0 -28
  354. package/lib/cjs/components/number/fixtures/comp9.d.ts +0 -18
  355. package/lib/cjs/components/number/fixtures/comp9.js +0 -21
  356. package/lib/cjs/components/number/fixtures/index.d.ts +0 -11
  357. package/lib/cjs/components/number/fixtures/index.js +0 -26
  358. package/lib/cjs/components/number/fixtures/values.d.ts +0 -2
  359. package/lib/cjs/components/number/fixtures/values.js +0 -11
  360. package/lib/cjs/components/panel/fixtures/comp1.d.ts +0 -46
  361. package/lib/cjs/components/panel/fixtures/comp1.js +0 -80
  362. package/lib/cjs/components/panel/fixtures/comp2.d.ts +0 -80
  363. package/lib/cjs/components/panel/fixtures/comp2.js +0 -69
  364. package/lib/cjs/components/panel/fixtures/index.d.ts +0 -3
  365. package/lib/cjs/components/panel/fixtures/index.js +0 -10
  366. package/lib/cjs/components/password/fixtures/comp1.d.ts +0 -22
  367. package/lib/cjs/components/password/fixtures/comp1.js +0 -22
  368. package/lib/cjs/components/password/fixtures/comp2.d.ts +0 -27
  369. package/lib/cjs/components/password/fixtures/comp2.js +0 -29
  370. package/lib/cjs/components/password/fixtures/index.d.ts +0 -3
  371. package/lib/cjs/components/password/fixtures/index.js +0 -10
  372. package/lib/cjs/components/password/fixtures/values.d.ts +0 -2
  373. package/lib/cjs/components/password/fixtures/values.js +0 -6
  374. package/lib/cjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
  375. package/lib/cjs/components/phonenumber/fixtures/comp1.js +0 -27
  376. package/lib/cjs/components/phonenumber/fixtures/comp2.d.ts +0 -16
  377. package/lib/cjs/components/phonenumber/fixtures/comp2.js +0 -25
  378. package/lib/cjs/components/phonenumber/fixtures/index.d.ts +0 -3
  379. package/lib/cjs/components/phonenumber/fixtures/index.js +0 -10
  380. package/lib/cjs/components/phonenumber/fixtures/values.d.ts +0 -2
  381. package/lib/cjs/components/phonenumber/fixtures/values.js +0 -6
  382. package/lib/cjs/components/radio/fixtures/comp1.d.ts +0 -28
  383. package/lib/cjs/components/radio/fixtures/comp1.js +0 -42
  384. package/lib/cjs/components/radio/fixtures/comp10.d.ts +0 -15
  385. package/lib/cjs/components/radio/fixtures/comp10.js +0 -23
  386. package/lib/cjs/components/radio/fixtures/comp11.d.ts +0 -35
  387. package/lib/cjs/components/radio/fixtures/comp11.js +0 -85
  388. package/lib/cjs/components/radio/fixtures/comp12.d.ts +0 -29
  389. package/lib/cjs/components/radio/fixtures/comp12.js +0 -36
  390. package/lib/cjs/components/radio/fixtures/comp2.d.ts +0 -85
  391. package/lib/cjs/components/radio/fixtures/comp2.js +0 -86
  392. package/lib/cjs/components/radio/fixtures/comp3.d.ts +0 -85
  393. package/lib/cjs/components/radio/fixtures/comp3.js +0 -90
  394. package/lib/cjs/components/radio/fixtures/comp4.d.ts +0 -19
  395. package/lib/cjs/components/radio/fixtures/comp4.js +0 -27
  396. package/lib/cjs/components/radio/fixtures/comp5.d.ts +0 -39
  397. package/lib/cjs/components/radio/fixtures/comp5.js +0 -35
  398. package/lib/cjs/components/radio/fixtures/comp6.d.ts +0 -38
  399. package/lib/cjs/components/radio/fixtures/comp6.js +0 -33
  400. package/lib/cjs/components/radio/fixtures/comp7.d.ts +0 -23
  401. package/lib/cjs/components/radio/fixtures/comp7.js +0 -21
  402. package/lib/cjs/components/radio/fixtures/comp8.d.ts +0 -118
  403. package/lib/cjs/components/radio/fixtures/comp8.js +0 -113
  404. package/lib/cjs/components/radio/fixtures/comp9.d.ts +0 -35
  405. package/lib/cjs/components/radio/fixtures/comp9.js +0 -32
  406. package/lib/cjs/components/radio/fixtures/index.d.ts +0 -13
  407. package/lib/cjs/components/radio/fixtures/index.js +0 -30
  408. package/lib/cjs/components/radio/fixtures/values.d.ts +0 -2
  409. package/lib/cjs/components/radio/fixtures/values.js +0 -7
  410. package/lib/cjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
  411. package/lib/cjs/components/recaptcha/fixtures/comp1.js +0 -9
  412. package/lib/cjs/components/recaptcha/fixtures/index.d.ts +0 -2
  413. package/lib/cjs/components/recaptcha/fixtures/index.js +0 -8
  414. package/lib/cjs/components/select/fixtures/comp1.d.ts +0 -40
  415. package/lib/cjs/components/select/fixtures/comp1.js +0 -66
  416. package/lib/cjs/components/select/fixtures/comp10.d.ts +0 -41
  417. package/lib/cjs/components/select/fixtures/comp10.js +0 -32
  418. package/lib/cjs/components/select/fixtures/comp11.d.ts +0 -28
  419. package/lib/cjs/components/select/fixtures/comp11.js +0 -24
  420. package/lib/cjs/components/select/fixtures/comp12.d.ts +0 -53
  421. package/lib/cjs/components/select/fixtures/comp12.js +0 -29
  422. package/lib/cjs/components/select/fixtures/comp13.d.ts +0 -28
  423. package/lib/cjs/components/select/fixtures/comp13.js +0 -31
  424. package/lib/cjs/components/select/fixtures/comp14.d.ts +0 -40
  425. package/lib/cjs/components/select/fixtures/comp14.js +0 -27
  426. package/lib/cjs/components/select/fixtures/comp15.d.ts +0 -50
  427. package/lib/cjs/components/select/fixtures/comp15.js +0 -41
  428. package/lib/cjs/components/select/fixtures/comp16.d.ts +0 -34
  429. package/lib/cjs/components/select/fixtures/comp16.js +0 -33
  430. package/lib/cjs/components/select/fixtures/comp17.d.ts +0 -51
  431. package/lib/cjs/components/select/fixtures/comp17.js +0 -43
  432. package/lib/cjs/components/select/fixtures/comp18.d.ts +0 -49
  433. package/lib/cjs/components/select/fixtures/comp18.js +0 -42
  434. package/lib/cjs/components/select/fixtures/comp19.d.ts +0 -23
  435. package/lib/cjs/components/select/fixtures/comp19.js +0 -36
  436. package/lib/cjs/components/select/fixtures/comp2.d.ts +0 -41
  437. package/lib/cjs/components/select/fixtures/comp2.js +0 -67
  438. package/lib/cjs/components/select/fixtures/comp20.d.ts +0 -36
  439. package/lib/cjs/components/select/fixtures/comp20.js +0 -46
  440. package/lib/cjs/components/select/fixtures/comp21.d.ts +0 -87
  441. package/lib/cjs/components/select/fixtures/comp21.js +0 -106
  442. package/lib/cjs/components/select/fixtures/comp22.d.ts +0 -51
  443. package/lib/cjs/components/select/fixtures/comp22.js +0 -43
  444. package/lib/cjs/components/select/fixtures/comp23.d.ts +0 -58
  445. package/lib/cjs/components/select/fixtures/comp23.js +0 -49
  446. package/lib/cjs/components/select/fixtures/comp24.d.ts +0 -47
  447. package/lib/cjs/components/select/fixtures/comp24.js +0 -40
  448. package/lib/cjs/components/select/fixtures/comp25.d.ts +0 -59
  449. package/lib/cjs/components/select/fixtures/comp25.js +0 -66
  450. package/lib/cjs/components/select/fixtures/comp26.d.ts +0 -44
  451. package/lib/cjs/components/select/fixtures/comp26.js +0 -59
  452. package/lib/cjs/components/select/fixtures/comp27.d.ts +0 -18
  453. package/lib/cjs/components/select/fixtures/comp27.js +0 -19
  454. package/lib/cjs/components/select/fixtures/comp3.d.ts +0 -35
  455. package/lib/cjs/components/select/fixtures/comp3.js +0 -209
  456. package/lib/cjs/components/select/fixtures/comp4.d.ts +0 -106
  457. package/lib/cjs/components/select/fixtures/comp4.js +0 -110
  458. package/lib/cjs/components/select/fixtures/comp5.d.ts +0 -21
  459. package/lib/cjs/components/select/fixtures/comp5.js +0 -28
  460. package/lib/cjs/components/select/fixtures/comp6.d.ts +0 -20
  461. package/lib/cjs/components/select/fixtures/comp6.js +0 -30
  462. package/lib/cjs/components/select/fixtures/comp7.d.ts +0 -63
  463. package/lib/cjs/components/select/fixtures/comp7.js +0 -46
  464. package/lib/cjs/components/select/fixtures/comp8.d.ts +0 -72
  465. package/lib/cjs/components/select/fixtures/comp8.js +0 -37
  466. package/lib/cjs/components/select/fixtures/comp9.d.ts +0 -88
  467. package/lib/cjs/components/select/fixtures/comp9.js +0 -67
  468. package/lib/cjs/components/select/fixtures/index.d.ts +0 -28
  469. package/lib/cjs/components/select/fixtures/index.js +0 -61
  470. package/lib/cjs/components/select/fixtures/values.d.ts +0 -2
  471. package/lib/cjs/components/select/fixtures/values.js +0 -7
  472. package/lib/cjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
  473. package/lib/cjs/components/selectboxes/fixtures/comp1.js +0 -54
  474. package/lib/cjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
  475. package/lib/cjs/components/selectboxes/fixtures/comp2.js +0 -54
  476. package/lib/cjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
  477. package/lib/cjs/components/selectboxes/fixtures/comp3.js +0 -21
  478. package/lib/cjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
  479. package/lib/cjs/components/selectboxes/fixtures/comp4.js +0 -81
  480. package/lib/cjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
  481. package/lib/cjs/components/selectboxes/fixtures/comp5.js +0 -33
  482. package/lib/cjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
  483. package/lib/cjs/components/selectboxes/fixtures/comp6.js +0 -15
  484. package/lib/cjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
  485. package/lib/cjs/components/selectboxes/fixtures/comp7.js +0 -31
  486. package/lib/cjs/components/selectboxes/fixtures/index.d.ts +0 -8
  487. package/lib/cjs/components/selectboxes/fixtures/index.js +0 -20
  488. package/lib/cjs/components/selectboxes/fixtures/values.d.ts +0 -6
  489. package/lib/cjs/components/selectboxes/fixtures/values.js +0 -24
  490. package/lib/cjs/components/signature/fixtures/comp1.d.ts +0 -30
  491. package/lib/cjs/components/signature/fixtures/comp1.js +0 -30
  492. package/lib/cjs/components/signature/fixtures/index.d.ts +0 -2
  493. package/lib/cjs/components/signature/fixtures/index.js +0 -8
  494. package/lib/cjs/components/signature/fixtures/values.d.ts +0 -2
  495. package/lib/cjs/components/signature/fixtures/values.js +0 -7
  496. package/lib/cjs/components/survey/fixtures/comp1.d.ts +0 -31
  497. package/lib/cjs/components/survey/fixtures/comp1.js +0 -55
  498. package/lib/cjs/components/survey/fixtures/comp2.d.ts +0 -31
  499. package/lib/cjs/components/survey/fixtures/comp2.js +0 -55
  500. package/lib/cjs/components/survey/fixtures/index.d.ts +0 -3
  501. package/lib/cjs/components/survey/fixtures/index.js +0 -10
  502. package/lib/cjs/components/survey/fixtures/values.d.ts +0 -5
  503. package/lib/cjs/components/survey/fixtures/values.js +0 -12
  504. package/lib/cjs/components/table/fixtures/comp1.d.ts +0 -53
  505. package/lib/cjs/components/table/fixtures/comp1.js +0 -237
  506. package/lib/cjs/components/table/fixtures/index.d.ts +0 -2
  507. package/lib/cjs/components/table/fixtures/index.js +0 -8
  508. package/lib/cjs/components/tabs/fixtures/comp1.d.ts +0 -23
  509. package/lib/cjs/components/tabs/fixtures/comp1.js +0 -33
  510. package/lib/cjs/components/tabs/fixtures/index.d.ts +0 -2
  511. package/lib/cjs/components/tabs/fixtures/index.js +0 -8
  512. package/lib/cjs/components/tags/fixtures/comp1.d.ts +0 -20
  513. package/lib/cjs/components/tags/fixtures/comp1.js +0 -20
  514. package/lib/cjs/components/tags/fixtures/comp2.d.ts +0 -10
  515. package/lib/cjs/components/tags/fixtures/comp2.js +0 -11
  516. package/lib/cjs/components/tags/fixtures/comp3.d.ts +0 -23
  517. package/lib/cjs/components/tags/fixtures/comp3.js +0 -20
  518. package/lib/cjs/components/tags/fixtures/comp4.d.ts +0 -9
  519. package/lib/cjs/components/tags/fixtures/comp4.js +0 -10
  520. package/lib/cjs/components/tags/fixtures/comp5.d.ts +0 -24
  521. package/lib/cjs/components/tags/fixtures/comp5.js +0 -24
  522. package/lib/cjs/components/tags/fixtures/comp6.d.ts +0 -17
  523. package/lib/cjs/components/tags/fixtures/comp6.js +0 -20
  524. package/lib/cjs/components/tags/fixtures/index.d.ts +0 -7
  525. package/lib/cjs/components/tags/fixtures/index.js +0 -18
  526. package/lib/cjs/components/tags/fixtures/values.d.ts +0 -2
  527. package/lib/cjs/components/tags/fixtures/values.js +0 -6
  528. package/lib/cjs/components/textarea/fixtures/comp1.d.ts +0 -31
  529. package/lib/cjs/components/textarea/fixtures/comp1.js +0 -31
  530. package/lib/cjs/components/textarea/fixtures/comp2.d.ts +0 -29
  531. package/lib/cjs/components/textarea/fixtures/comp2.js +0 -29
  532. package/lib/cjs/components/textarea/fixtures/comp3.d.ts +0 -27
  533. package/lib/cjs/components/textarea/fixtures/comp3.js +0 -29
  534. package/lib/cjs/components/textarea/fixtures/comp4.d.ts +0 -30
  535. package/lib/cjs/components/textarea/fixtures/comp4.js +0 -27
  536. package/lib/cjs/components/textarea/fixtures/index.d.ts +0 -5
  537. package/lib/cjs/components/textarea/fixtures/index.js +0 -14
  538. package/lib/cjs/components/textarea/fixtures/values.d.ts +0 -2
  539. package/lib/cjs/components/textarea/fixtures/values.js +0 -6
  540. package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
  541. package/lib/cjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -48
  542. package/lib/cjs/components/textfield/fixtures/comp1.d.ts +0 -33
  543. package/lib/cjs/components/textfield/fixtures/comp1.js +0 -33
  544. package/lib/cjs/components/textfield/fixtures/comp2.d.ts +0 -33
  545. package/lib/cjs/components/textfield/fixtures/comp2.js +0 -33
  546. package/lib/cjs/components/textfield/fixtures/comp3.d.ts +0 -33
  547. package/lib/cjs/components/textfield/fixtures/comp3.js +0 -33
  548. package/lib/cjs/components/textfield/fixtures/comp4.d.ts +0 -23
  549. package/lib/cjs/components/textfield/fixtures/comp4.js +0 -27
  550. package/lib/cjs/components/textfield/fixtures/comp5.d.ts +0 -12
  551. package/lib/cjs/components/textfield/fixtures/comp5.js +0 -13
  552. package/lib/cjs/components/textfield/fixtures/comp6.d.ts +0 -25
  553. package/lib/cjs/components/textfield/fixtures/comp6.js +0 -21
  554. package/lib/cjs/components/textfield/fixtures/comp7.d.ts +0 -37
  555. package/lib/cjs/components/textfield/fixtures/comp7.js +0 -38
  556. package/lib/cjs/components/textfield/fixtures/index.d.ts +0 -9
  557. package/lib/cjs/components/textfield/fixtures/index.js +0 -22
  558. package/lib/cjs/components/textfield/fixtures/values.d.ts +0 -2
  559. package/lib/cjs/components/textfield/fixtures/values.js +0 -7
  560. package/lib/cjs/components/time/fixtures/comp1.d.ts +0 -24
  561. package/lib/cjs/components/time/fixtures/comp1.js +0 -24
  562. package/lib/cjs/components/time/fixtures/comp2.d.ts +0 -10
  563. package/lib/cjs/components/time/fixtures/comp2.js +0 -11
  564. package/lib/cjs/components/time/fixtures/comp3.d.ts +0 -15
  565. package/lib/cjs/components/time/fixtures/comp3.js +0 -18
  566. package/lib/cjs/components/time/fixtures/comp4.d.ts +0 -166
  567. package/lib/cjs/components/time/fixtures/comp4.js +0 -171
  568. package/lib/cjs/components/time/fixtures/index.d.ts +0 -7
  569. package/lib/cjs/components/time/fixtures/index.js +0 -18
  570. package/lib/cjs/components/time/fixtures/timeForm.d.ts +0 -47
  571. package/lib/cjs/components/time/fixtures/timeForm.js +0 -52
  572. package/lib/cjs/components/time/fixtures/timeForm2.d.ts +0 -38
  573. package/lib/cjs/components/time/fixtures/timeForm2.js +0 -44
  574. package/lib/cjs/components/time/fixtures/values.d.ts +0 -2
  575. package/lib/cjs/components/time/fixtures/values.js +0 -7
  576. package/lib/cjs/components/unknown/fixtures/comp1.d.ts +0 -7
  577. package/lib/cjs/components/unknown/fixtures/comp1.js +0 -8
  578. package/lib/cjs/components/unknown/fixtures/index.d.ts +0 -2
  579. package/lib/cjs/components/unknown/fixtures/index.js +0 -8
  580. package/lib/cjs/components/url/fixtures/comp1.d.ts +0 -26
  581. package/lib/cjs/components/url/fixtures/comp1.js +0 -26
  582. package/lib/cjs/components/url/fixtures/comp2.d.ts +0 -26
  583. package/lib/cjs/components/url/fixtures/comp2.js +0 -23
  584. package/lib/cjs/components/url/fixtures/index.d.ts +0 -3
  585. package/lib/cjs/components/url/fixtures/index.js +0 -10
  586. package/lib/cjs/components/url/fixtures/values.d.ts +0 -2
  587. package/lib/cjs/components/url/fixtures/values.js +0 -6
  588. package/lib/cjs/components/well/fixtures/comp1.d.ts +0 -43
  589. package/lib/cjs/components/well/fixtures/comp1.js +0 -77
  590. package/lib/cjs/components/well/fixtures/index.d.ts +0 -2
  591. package/lib/cjs/components/well/fixtures/index.js +0 -8
  592. package/lib/mjs/components/_classes/component/fixtures/comp1.d.ts +0 -33
  593. package/lib/mjs/components/_classes/component/fixtures/comp1.js +0 -31
  594. package/lib/mjs/components/_classes/component/fixtures/comp2.d.ts +0 -33
  595. package/lib/mjs/components/_classes/component/fixtures/comp2.js +0 -31
  596. package/lib/mjs/components/_classes/component/fixtures/comp3.d.ts +0 -14
  597. package/lib/mjs/components/_classes/component/fixtures/comp3.js +0 -12
  598. package/lib/mjs/components/_classes/component/fixtures/comp4.d.ts +0 -17
  599. package/lib/mjs/components/_classes/component/fixtures/comp4.js +0 -16
  600. package/lib/mjs/components/_classes/component/fixtures/comp5.d.ts +0 -26
  601. package/lib/mjs/components/_classes/component/fixtures/comp5.js +0 -24
  602. package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +0 -77
  603. package/lib/mjs/components/_classes/component/fixtures/comp6.js +0 -57
  604. package/lib/mjs/components/_classes/component/fixtures/comp7.d.ts +0 -84
  605. package/lib/mjs/components/_classes/component/fixtures/comp7.js +0 -84
  606. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +0 -8
  607. package/lib/mjs/components/_classes/component/fixtures/index.js +0 -8
  608. package/lib/mjs/components/_classes/nested/fixtures/comp1.d.ts +0 -8
  609. package/lib/mjs/components/_classes/nested/fixtures/comp1.js +0 -14
  610. package/lib/mjs/components/_classes/nested/fixtures/comp2.d.ts +0 -236
  611. package/lib/mjs/components/_classes/nested/fixtures/comp2.js +0 -225
  612. package/lib/mjs/components/_classes/nested/fixtures/comp3.d.ts +0 -26
  613. package/lib/mjs/components/_classes/nested/fixtures/comp3.js +0 -27
  614. package/lib/mjs/components/_classes/nested/fixtures/index.d.ts +0 -3
  615. package/lib/mjs/components/_classes/nested/fixtures/index.js +0 -3
  616. package/lib/mjs/components/address/fixtures/comp1.d.ts +0 -34
  617. package/lib/mjs/components/address/fixtures/comp1.js +0 -69
  618. package/lib/mjs/components/address/fixtures/comp2.d.ts +0 -62
  619. package/lib/mjs/components/address/fixtures/comp2.js +0 -101
  620. package/lib/mjs/components/address/fixtures/comp3.d.ts +0 -44
  621. package/lib/mjs/components/address/fixtures/comp3.js +0 -83
  622. package/lib/mjs/components/address/fixtures/comp4.d.ts +0 -56
  623. package/lib/mjs/components/address/fixtures/comp4.js +0 -91
  624. package/lib/mjs/components/address/fixtures/index.d.ts +0 -5
  625. package/lib/mjs/components/address/fixtures/index.js +0 -5
  626. package/lib/mjs/components/address/fixtures/values.d.ts +0 -22
  627. package/lib/mjs/components/address/fixtures/values.js +0 -17
  628. package/lib/mjs/components/button/fixtures/comp1.d.ts +0 -15
  629. package/lib/mjs/components/button/fixtures/comp1.js +0 -14
  630. package/lib/mjs/components/button/fixtures/comp2.d.ts +0 -25
  631. package/lib/mjs/components/button/fixtures/comp2.js +0 -55
  632. package/lib/mjs/components/button/fixtures/comp3.d.ts +0 -113
  633. package/lib/mjs/components/button/fixtures/comp3.js +0 -82
  634. package/lib/mjs/components/button/fixtures/index.d.ts +0 -4
  635. package/lib/mjs/components/button/fixtures/index.js +0 -4
  636. package/lib/mjs/components/button/fixtures/values.d.ts +0 -2
  637. package/lib/mjs/components/button/fixtures/values.js +0 -4
  638. package/lib/mjs/components/checkbox/fixtures/comp1.d.ts +0 -24
  639. package/lib/mjs/components/checkbox/fixtures/comp1.js +0 -22
  640. package/lib/mjs/components/checkbox/fixtures/comp2.d.ts +0 -12
  641. package/lib/mjs/components/checkbox/fixtures/comp2.js +0 -11
  642. package/lib/mjs/components/checkbox/fixtures/comp3.d.ts +0 -15
  643. package/lib/mjs/components/checkbox/fixtures/comp3.js +0 -14
  644. package/lib/mjs/components/checkbox/fixtures/comp4.d.ts +0 -48
  645. package/lib/mjs/components/checkbox/fixtures/comp4.js +0 -37
  646. package/lib/mjs/components/checkbox/fixtures/comp5.d.ts +0 -34
  647. package/lib/mjs/components/checkbox/fixtures/comp5.js +0 -53
  648. package/lib/mjs/components/checkbox/fixtures/comp6.d.ts +0 -32
  649. package/lib/mjs/components/checkbox/fixtures/comp6.js +0 -28
  650. package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.d.ts +0 -25
  651. package/lib/mjs/components/checkbox/fixtures/customDefaultComponent.js +0 -23
  652. package/lib/mjs/components/checkbox/fixtures/index.d.ts +0 -8
  653. package/lib/mjs/components/checkbox/fixtures/index.js +0 -8
  654. package/lib/mjs/components/checkbox/fixtures/values.d.ts +0 -2
  655. package/lib/mjs/components/checkbox/fixtures/values.js +0 -4
  656. package/lib/mjs/components/columns/fixtures/comp1.d.ts +0 -45
  657. package/lib/mjs/components/columns/fixtures/comp1.js +0 -83
  658. package/lib/mjs/components/columns/fixtures/comp2.d.ts +0 -24
  659. package/lib/mjs/components/columns/fixtures/comp2.js +0 -125
  660. package/lib/mjs/components/columns/fixtures/comp3.d.ts +0 -45
  661. package/lib/mjs/components/columns/fixtures/comp3.js +0 -51
  662. package/lib/mjs/components/columns/fixtures/index.d.ts +0 -4
  663. package/lib/mjs/components/columns/fixtures/index.js +0 -4
  664. package/lib/mjs/components/container/fixtures/comp1.d.ts +0 -49
  665. package/lib/mjs/components/container/fixtures/comp1.js +0 -80
  666. package/lib/mjs/components/container/fixtures/comp2.d.ts +0 -30
  667. package/lib/mjs/components/container/fixtures/comp2.js +0 -32
  668. package/lib/mjs/components/container/fixtures/comp3.d.ts +0 -77
  669. package/lib/mjs/components/container/fixtures/comp3.js +0 -55
  670. package/lib/mjs/components/container/fixtures/comp4.d.ts +0 -44
  671. package/lib/mjs/components/container/fixtures/comp4.js +0 -43
  672. package/lib/mjs/components/container/fixtures/index.d.ts +0 -5
  673. package/lib/mjs/components/container/fixtures/index.js +0 -5
  674. package/lib/mjs/components/content/fixtures/comp1.d.ts +0 -13
  675. package/lib/mjs/components/content/fixtures/comp1.js +0 -12
  676. package/lib/mjs/components/content/fixtures/index.d.ts +0 -2
  677. package/lib/mjs/components/content/fixtures/index.js +0 -2
  678. package/lib/mjs/components/currency/fixtures/comp1.d.ts +0 -31
  679. package/lib/mjs/components/currency/fixtures/comp1.js +0 -29
  680. package/lib/mjs/components/currency/fixtures/comp2.d.ts +0 -20
  681. package/lib/mjs/components/currency/fixtures/comp2.js +0 -18
  682. package/lib/mjs/components/currency/fixtures/comp3.d.ts +0 -13
  683. package/lib/mjs/components/currency/fixtures/comp3.js +0 -12
  684. package/lib/mjs/components/currency/fixtures/comp4.d.ts +0 -17
  685. package/lib/mjs/components/currency/fixtures/comp4.js +0 -18
  686. package/lib/mjs/components/currency/fixtures/index.d.ts +0 -5
  687. package/lib/mjs/components/currency/fixtures/index.js +0 -5
  688. package/lib/mjs/components/currency/fixtures/values.d.ts +0 -2
  689. package/lib/mjs/components/currency/fixtures/values.js +0 -6
  690. package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.d.ts +0 -37
  691. package/lib/mjs/components/datagrid/fixtures/comp-modal-with-required-fields.js +0 -40
  692. package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.d.ts +0 -0
  693. package/lib/mjs/components/datagrid/fixtures/comp-on-blur-validation.js +0 -1
  694. package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.d.ts +0 -63
  695. package/lib/mjs/components/datagrid/fixtures/comp-row-groups-with-def-value.js +0 -79
  696. package/lib/mjs/components/datagrid/fixtures/comp-with-allow-calculate-override.d.ts +0 -54
  697. package/lib/mjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +0 -66
  698. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +0 -29
  699. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +0 -34
  700. package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.d.ts +0 -76
  701. package/lib/mjs/components/datagrid/fixtures/comp-with-collapsible-groups.js +0 -73
  702. package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.d.ts +0 -202
  703. package/lib/mjs/components/datagrid/fixtures/comp-with-conditional-components-and-validations.js +0 -176
  704. package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.d.ts +0 -61
  705. package/lib/mjs/components/datagrid/fixtures/comp-with-def-value.js +0 -67
  706. package/lib/mjs/components/datagrid/fixtures/comp-with-logic.d.ts +0 -165
  707. package/lib/mjs/components/datagrid/fixtures/comp-with-logic.js +0 -178
  708. package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.d.ts +0 -100
  709. package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.js +0 -137
  710. package/lib/mjs/components/datagrid/fixtures/comp1.d.ts +0 -93
  711. package/lib/mjs/components/datagrid/fixtures/comp1.js +0 -113
  712. package/lib/mjs/components/datagrid/fixtures/comp10.d.ts +0 -81
  713. package/lib/mjs/components/datagrid/fixtures/comp10.js +0 -85
  714. package/lib/mjs/components/datagrid/fixtures/comp11.d.ts +0 -50
  715. package/lib/mjs/components/datagrid/fixtures/comp11.js +0 -53
  716. package/lib/mjs/components/datagrid/fixtures/comp2.d.ts +0 -18
  717. package/lib/mjs/components/datagrid/fixtures/comp2.js +0 -27
  718. package/lib/mjs/components/datagrid/fixtures/comp3.d.ts +0 -14
  719. package/lib/mjs/components/datagrid/fixtures/comp3.js +0 -21
  720. package/lib/mjs/components/datagrid/fixtures/comp4.d.ts +0 -27
  721. package/lib/mjs/components/datagrid/fixtures/comp4.js +0 -26
  722. package/lib/mjs/components/datagrid/fixtures/comp5.d.ts +0 -67
  723. package/lib/mjs/components/datagrid/fixtures/comp5.js +0 -75
  724. package/lib/mjs/components/datagrid/fixtures/comp6.d.ts +0 -567
  725. package/lib/mjs/components/datagrid/fixtures/comp6.js +0 -294
  726. package/lib/mjs/components/datagrid/fixtures/comp7.d.ts +0 -28
  727. package/lib/mjs/components/datagrid/fixtures/comp7.js +0 -33
  728. package/lib/mjs/components/datagrid/fixtures/comp8.d.ts +0 -35
  729. package/lib/mjs/components/datagrid/fixtures/comp8.js +0 -35
  730. package/lib/mjs/components/datagrid/fixtures/comp9.d.ts +0 -41
  731. package/lib/mjs/components/datagrid/fixtures/comp9.js +0 -42
  732. package/lib/mjs/components/datagrid/fixtures/index.d.ts +0 -22
  733. package/lib/mjs/components/datagrid/fixtures/index.js +0 -22
  734. package/lib/mjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.d.ts +0 -54
  735. package/lib/mjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +0 -102
  736. package/lib/mjs/components/datamap/fixtures/comp1.d.ts +0 -18
  737. package/lib/mjs/components/datamap/fixtures/comp1.js +0 -13
  738. package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.d.ts +0 -87
  739. package/lib/mjs/components/datamap/fixtures/formWithConditionalPanel.js +0 -83
  740. package/lib/mjs/components/datamap/fixtures/index.d.ts +0 -3
  741. package/lib/mjs/components/datamap/fixtures/index.js +0 -3
  742. package/lib/mjs/components/datetime/fixtures/comp1.d.ts +0 -45
  743. package/lib/mjs/components/datetime/fixtures/comp1.js +0 -42
  744. package/lib/mjs/components/datetime/fixtures/comp10.d.ts +0 -102
  745. package/lib/mjs/components/datetime/fixtures/comp10.js +0 -84
  746. package/lib/mjs/components/datetime/fixtures/comp11.d.ts +0 -58
  747. package/lib/mjs/components/datetime/fixtures/comp11.js +0 -53
  748. package/lib/mjs/components/datetime/fixtures/comp12.d.ts +0 -57
  749. package/lib/mjs/components/datetime/fixtures/comp12.js +0 -53
  750. package/lib/mjs/components/datetime/fixtures/comp13.d.ts +0 -126
  751. package/lib/mjs/components/datetime/fixtures/comp13.js +0 -116
  752. package/lib/mjs/components/datetime/fixtures/comp14.d.ts +0 -35
  753. package/lib/mjs/components/datetime/fixtures/comp14.js +0 -36
  754. package/lib/mjs/components/datetime/fixtures/comp2.d.ts +0 -42
  755. package/lib/mjs/components/datetime/fixtures/comp2.js +0 -41
  756. package/lib/mjs/components/datetime/fixtures/comp3.d.ts +0 -51
  757. package/lib/mjs/components/datetime/fixtures/comp3.js +0 -38
  758. package/lib/mjs/components/datetime/fixtures/comp5.d.ts +0 -57
  759. package/lib/mjs/components/datetime/fixtures/comp5.js +0 -46
  760. package/lib/mjs/components/datetime/fixtures/comp6.d.ts +0 -55
  761. package/lib/mjs/components/datetime/fixtures/comp6.js +0 -47
  762. package/lib/mjs/components/datetime/fixtures/comp7.d.ts +0 -59
  763. package/lib/mjs/components/datetime/fixtures/comp7.js +0 -51
  764. package/lib/mjs/components/datetime/fixtures/comp8.d.ts +0 -59
  765. package/lib/mjs/components/datetime/fixtures/comp8.js +0 -50
  766. package/lib/mjs/components/datetime/fixtures/comp9.d.ts +0 -64
  767. package/lib/mjs/components/datetime/fixtures/comp9.js +0 -93
  768. package/lib/mjs/components/datetime/fixtures/index.d.ts +0 -14
  769. package/lib/mjs/components/datetime/fixtures/index.js +0 -14
  770. package/lib/mjs/components/datetime/fixtures/values.d.ts +0 -2
  771. package/lib/mjs/components/datetime/fixtures/values.js +0 -4
  772. package/lib/mjs/components/day/fixtures/comp1.d.ts +0 -46
  773. package/lib/mjs/components/day/fixtures/comp1.js +0 -37
  774. package/lib/mjs/components/day/fixtures/comp2.d.ts +0 -46
  775. package/lib/mjs/components/day/fixtures/comp2.js +0 -37
  776. package/lib/mjs/components/day/fixtures/comp3.d.ts +0 -48
  777. package/lib/mjs/components/day/fixtures/comp3.js +0 -39
  778. package/lib/mjs/components/day/fixtures/comp4.d.ts +0 -53
  779. package/lib/mjs/components/day/fixtures/comp4.js +0 -54
  780. package/lib/mjs/components/day/fixtures/comp5.d.ts +0 -29
  781. package/lib/mjs/components/day/fixtures/comp5.js +0 -30
  782. package/lib/mjs/components/day/fixtures/comp6.d.ts +0 -81
  783. package/lib/mjs/components/day/fixtures/comp6.js +0 -74
  784. package/lib/mjs/components/day/fixtures/comp7.d.ts +0 -109
  785. package/lib/mjs/components/day/fixtures/comp7.js +0 -107
  786. package/lib/mjs/components/day/fixtures/comp8.d.ts +0 -41
  787. package/lib/mjs/components/day/fixtures/comp8.js +0 -38
  788. package/lib/mjs/components/day/fixtures/index.d.ts +0 -9
  789. package/lib/mjs/components/day/fixtures/index.js +0 -9
  790. package/lib/mjs/components/day/fixtures/values.d.ts +0 -2
  791. package/lib/mjs/components/day/fixtures/values.js +0 -4
  792. package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.d.ts +0 -34
  793. package/lib/mjs/components/editgrid/fixtures/comp-openWhenEmpty.js +0 -34
  794. package/lib/mjs/components/editgrid/fixtures/comp-test-events.d.ts +0 -54
  795. package/lib/mjs/components/editgrid/fixtures/comp-test-events.js +0 -52
  796. package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.d.ts +0 -327
  797. package/lib/mjs/components/editgrid/fixtures/comp-with-basic-components.js +0 -218
  798. package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.d.ts +0 -79
  799. package/lib/mjs/components/editgrid/fixtures/comp-with-conditions-and-openWhenEmpty.js +0 -82
  800. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.d.ts +0 -190
  801. package/lib/mjs/components/editgrid/fixtures/comp-with-custom-default-value.js +0 -225
  802. package/lib/mjs/components/editgrid/fixtures/comp1.d.ts +0 -89
  803. package/lib/mjs/components/editgrid/fixtures/comp1.js +0 -126
  804. package/lib/mjs/components/editgrid/fixtures/comp10.d.ts +0 -49
  805. package/lib/mjs/components/editgrid/fixtures/comp10.js +0 -46
  806. package/lib/mjs/components/editgrid/fixtures/comp11.d.ts +0 -53
  807. package/lib/mjs/components/editgrid/fixtures/comp11.js +0 -48
  808. package/lib/mjs/components/editgrid/fixtures/comp12.d.ts +0 -58
  809. package/lib/mjs/components/editgrid/fixtures/comp12.js +0 -48
  810. package/lib/mjs/components/editgrid/fixtures/comp13.d.ts +0 -64
  811. package/lib/mjs/components/editgrid/fixtures/comp13.js +0 -62
  812. package/lib/mjs/components/editgrid/fixtures/comp14.d.ts +0 -88
  813. package/lib/mjs/components/editgrid/fixtures/comp14.js +0 -82
  814. package/lib/mjs/components/editgrid/fixtures/comp15.d.ts +0 -54
  815. package/lib/mjs/components/editgrid/fixtures/comp15.js +0 -49
  816. package/lib/mjs/components/editgrid/fixtures/comp16.d.ts +0 -52
  817. package/lib/mjs/components/editgrid/fixtures/comp16.js +0 -69
  818. package/lib/mjs/components/editgrid/fixtures/comp17.d.ts +0 -80
  819. package/lib/mjs/components/editgrid/fixtures/comp17.js +0 -97
  820. package/lib/mjs/components/editgrid/fixtures/comp18.d.ts +0 -38
  821. package/lib/mjs/components/editgrid/fixtures/comp18.js +0 -72
  822. package/lib/mjs/components/editgrid/fixtures/comp2.d.ts +0 -112
  823. package/lib/mjs/components/editgrid/fixtures/comp2.js +0 -112
  824. package/lib/mjs/components/editgrid/fixtures/comp3.d.ts +0 -27
  825. package/lib/mjs/components/editgrid/fixtures/comp3.js +0 -26
  826. package/lib/mjs/components/editgrid/fixtures/comp4.d.ts +0 -23
  827. package/lib/mjs/components/editgrid/fixtures/comp4.js +0 -22
  828. package/lib/mjs/components/editgrid/fixtures/comp5.d.ts +0 -19
  829. package/lib/mjs/components/editgrid/fixtures/comp5.js +0 -20
  830. package/lib/mjs/components/editgrid/fixtures/comp6.d.ts +0 -50
  831. package/lib/mjs/components/editgrid/fixtures/comp6.js +0 -56
  832. package/lib/mjs/components/editgrid/fixtures/comp7.d.ts +0 -129
  833. package/lib/mjs/components/editgrid/fixtures/comp7.js +0 -121
  834. package/lib/mjs/components/editgrid/fixtures/comp8.d.ts +0 -148
  835. package/lib/mjs/components/editgrid/fixtures/comp8.js +0 -154
  836. package/lib/mjs/components/editgrid/fixtures/comp9.d.ts +0 -86
  837. package/lib/mjs/components/editgrid/fixtures/comp9.js +0 -60
  838. package/lib/mjs/components/editgrid/fixtures/formsWithEditGridAndConditions.d.ts +0 -919
  839. package/lib/mjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +0 -921
  840. package/lib/mjs/components/editgrid/fixtures/index.d.ts +0 -23
  841. package/lib/mjs/components/editgrid/fixtures/index.js +0 -23
  842. package/lib/mjs/components/email/fixtures/comp1.d.ts +0 -26
  843. package/lib/mjs/components/email/fixtures/comp1.js +0 -24
  844. package/lib/mjs/components/email/fixtures/comp2.d.ts +0 -23
  845. package/lib/mjs/components/email/fixtures/comp2.js +0 -11
  846. package/lib/mjs/components/email/fixtures/index.d.ts +0 -3
  847. package/lib/mjs/components/email/fixtures/index.js +0 -3
  848. package/lib/mjs/components/email/fixtures/values.d.ts +0 -2
  849. package/lib/mjs/components/email/fixtures/values.js +0 -4
  850. package/lib/mjs/components/fieldset/fixtures/comp1.d.ts +0 -46
  851. package/lib/mjs/components/fieldset/fixtures/comp1.js +0 -79
  852. package/lib/mjs/components/fieldset/fixtures/index.d.ts +0 -2
  853. package/lib/mjs/components/fieldset/fixtures/index.js +0 -2
  854. package/lib/mjs/components/file/fixtures/comp1.d.ts +0 -15
  855. package/lib/mjs/components/file/fixtures/comp1.js +0 -16
  856. package/lib/mjs/components/file/fixtures/comp2.d.ts +0 -35
  857. package/lib/mjs/components/file/fixtures/comp2.js +0 -29
  858. package/lib/mjs/components/file/fixtures/comp3.d.ts +0 -29
  859. package/lib/mjs/components/file/fixtures/comp3.js +0 -29
  860. package/lib/mjs/components/file/fixtures/index.d.ts +0 -3
  861. package/lib/mjs/components/file/fixtures/index.js +0 -3
  862. package/lib/mjs/components/file/fixtures/values.d.ts +0 -10
  863. package/lib/mjs/components/file/fixtures/values.js +0 -13
  864. package/lib/mjs/components/form/fixtures/comp1.d.ts +0 -45
  865. package/lib/mjs/components/form/fixtures/comp1.js +0 -78
  866. package/lib/mjs/components/form/fixtures/comp2.d.ts +0 -14
  867. package/lib/mjs/components/form/fixtures/comp2.js +0 -13
  868. package/lib/mjs/components/form/fixtures/comp3.d.ts +0 -187
  869. package/lib/mjs/components/form/fixtures/comp3.js +0 -168
  870. package/lib/mjs/components/form/fixtures/comp4.d.ts +0 -107
  871. package/lib/mjs/components/form/fixtures/comp4.js +0 -89
  872. package/lib/mjs/components/form/fixtures/comp5.d.ts +0 -42
  873. package/lib/mjs/components/form/fixtures/comp5.js +0 -43
  874. package/lib/mjs/components/form/fixtures/comp6.d.ts +0 -74
  875. package/lib/mjs/components/form/fixtures/comp6.js +0 -92
  876. package/lib/mjs/components/form/fixtures/comp7.d.ts +0 -36
  877. package/lib/mjs/components/form/fixtures/comp7.js +0 -35
  878. package/lib/mjs/components/form/fixtures/comp8.d.ts +0 -26
  879. package/lib/mjs/components/form/fixtures/comp8.js +0 -27
  880. package/lib/mjs/components/form/fixtures/formModalEdit.d.ts +0 -42
  881. package/lib/mjs/components/form/fixtures/formModalEdit.js +0 -49
  882. package/lib/mjs/components/form/fixtures/index.d.ts +0 -11
  883. package/lib/mjs/components/form/fixtures/index.js +0 -11
  884. package/lib/mjs/components/form/fixtures/nestedWizardForm.d.ts +0 -771
  885. package/lib/mjs/components/form/fixtures/nestedWizardForm.js +0 -763
  886. package/lib/mjs/components/form/fixtures/values.d.ts +0 -6
  887. package/lib/mjs/components/form/fixtures/values.js +0 -7
  888. package/lib/mjs/components/hidden/fixtures/comp1.d.ts +0 -18
  889. package/lib/mjs/components/hidden/fixtures/comp1.js +0 -16
  890. package/lib/mjs/components/hidden/fixtures/index.d.ts +0 -2
  891. package/lib/mjs/components/hidden/fixtures/index.js +0 -2
  892. package/lib/mjs/components/hidden/fixtures/values.d.ts +0 -2
  893. package/lib/mjs/components/hidden/fixtures/values.js +0 -4
  894. package/lib/mjs/components/html/fixtures/comp1.d.ts +0 -19
  895. package/lib/mjs/components/html/fixtures/comp1.js +0 -20
  896. package/lib/mjs/components/html/fixtures/comp2.d.ts +0 -21
  897. package/lib/mjs/components/html/fixtures/comp2.js +0 -22
  898. package/lib/mjs/components/html/fixtures/comp3.d.ts +0 -42
  899. package/lib/mjs/components/html/fixtures/comp3.js +0 -38
  900. package/lib/mjs/components/html/fixtures/index.d.ts +0 -4
  901. package/lib/mjs/components/html/fixtures/index.js +0 -4
  902. package/lib/mjs/components/number/fixtures/comp1.d.ts +0 -33
  903. package/lib/mjs/components/number/fixtures/comp1.js +0 -30
  904. package/lib/mjs/components/number/fixtures/comp10.d.ts +0 -18
  905. package/lib/mjs/components/number/fixtures/comp10.js +0 -19
  906. package/lib/mjs/components/number/fixtures/comp2.d.ts +0 -32
  907. package/lib/mjs/components/number/fixtures/comp2.js +0 -29
  908. package/lib/mjs/components/number/fixtures/comp3.d.ts +0 -14
  909. package/lib/mjs/components/number/fixtures/comp3.js +0 -13
  910. package/lib/mjs/components/number/fixtures/comp4.d.ts +0 -14
  911. package/lib/mjs/components/number/fixtures/comp4.js +0 -13
  912. package/lib/mjs/components/number/fixtures/comp5.d.ts +0 -20
  913. package/lib/mjs/components/number/fixtures/comp5.js +0 -18
  914. package/lib/mjs/components/number/fixtures/comp6.d.ts +0 -40
  915. package/lib/mjs/components/number/fixtures/comp6.js +0 -25
  916. package/lib/mjs/components/number/fixtures/comp7.d.ts +0 -15
  917. package/lib/mjs/components/number/fixtures/comp7.js +0 -14
  918. package/lib/mjs/components/number/fixtures/comp8.d.ts +0 -32
  919. package/lib/mjs/components/number/fixtures/comp8.js +0 -26
  920. package/lib/mjs/components/number/fixtures/comp9.d.ts +0 -18
  921. package/lib/mjs/components/number/fixtures/comp9.js +0 -19
  922. package/lib/mjs/components/number/fixtures/index.d.ts +0 -11
  923. package/lib/mjs/components/number/fixtures/index.js +0 -11
  924. package/lib/mjs/components/number/fixtures/values.d.ts +0 -2
  925. package/lib/mjs/components/number/fixtures/values.js +0 -9
  926. package/lib/mjs/components/panel/fixtures/comp1.d.ts +0 -46
  927. package/lib/mjs/components/panel/fixtures/comp1.js +0 -78
  928. package/lib/mjs/components/panel/fixtures/comp2.d.ts +0 -80
  929. package/lib/mjs/components/panel/fixtures/comp2.js +0 -67
  930. package/lib/mjs/components/panel/fixtures/index.d.ts +0 -3
  931. package/lib/mjs/components/panel/fixtures/index.js +0 -3
  932. package/lib/mjs/components/password/fixtures/comp1.d.ts +0 -22
  933. package/lib/mjs/components/password/fixtures/comp1.js +0 -20
  934. package/lib/mjs/components/password/fixtures/comp2.d.ts +0 -27
  935. package/lib/mjs/components/password/fixtures/comp2.js +0 -27
  936. package/lib/mjs/components/password/fixtures/index.d.ts +0 -3
  937. package/lib/mjs/components/password/fixtures/index.js +0 -3
  938. package/lib/mjs/components/password/fixtures/values.d.ts +0 -2
  939. package/lib/mjs/components/password/fixtures/values.js +0 -4
  940. package/lib/mjs/components/phonenumber/fixtures/comp1.d.ts +0 -27
  941. package/lib/mjs/components/phonenumber/fixtures/comp1.js +0 -25
  942. package/lib/mjs/components/phonenumber/fixtures/comp2.d.ts +0 -16
  943. package/lib/mjs/components/phonenumber/fixtures/comp2.js +0 -23
  944. package/lib/mjs/components/phonenumber/fixtures/index.d.ts +0 -3
  945. package/lib/mjs/components/phonenumber/fixtures/index.js +0 -3
  946. package/lib/mjs/components/phonenumber/fixtures/values.d.ts +0 -2
  947. package/lib/mjs/components/phonenumber/fixtures/values.js +0 -4
  948. package/lib/mjs/components/radio/fixtures/comp1.d.ts +0 -28
  949. package/lib/mjs/components/radio/fixtures/comp1.js +0 -40
  950. package/lib/mjs/components/radio/fixtures/comp10.d.ts +0 -15
  951. package/lib/mjs/components/radio/fixtures/comp10.js +0 -21
  952. package/lib/mjs/components/radio/fixtures/comp11.d.ts +0 -35
  953. package/lib/mjs/components/radio/fixtures/comp11.js +0 -83
  954. package/lib/mjs/components/radio/fixtures/comp12.d.ts +0 -29
  955. package/lib/mjs/components/radio/fixtures/comp12.js +0 -34
  956. package/lib/mjs/components/radio/fixtures/comp2.d.ts +0 -85
  957. package/lib/mjs/components/radio/fixtures/comp2.js +0 -84
  958. package/lib/mjs/components/radio/fixtures/comp3.d.ts +0 -85
  959. package/lib/mjs/components/radio/fixtures/comp3.js +0 -88
  960. package/lib/mjs/components/radio/fixtures/comp4.d.ts +0 -19
  961. package/lib/mjs/components/radio/fixtures/comp4.js +0 -25
  962. package/lib/mjs/components/radio/fixtures/comp5.d.ts +0 -39
  963. package/lib/mjs/components/radio/fixtures/comp5.js +0 -33
  964. package/lib/mjs/components/radio/fixtures/comp6.d.ts +0 -38
  965. package/lib/mjs/components/radio/fixtures/comp6.js +0 -31
  966. package/lib/mjs/components/radio/fixtures/comp7.d.ts +0 -23
  967. package/lib/mjs/components/radio/fixtures/comp7.js +0 -19
  968. package/lib/mjs/components/radio/fixtures/comp8.d.ts +0 -118
  969. package/lib/mjs/components/radio/fixtures/comp8.js +0 -111
  970. package/lib/mjs/components/radio/fixtures/comp9.d.ts +0 -35
  971. package/lib/mjs/components/radio/fixtures/comp9.js +0 -30
  972. package/lib/mjs/components/radio/fixtures/index.d.ts +0 -13
  973. package/lib/mjs/components/radio/fixtures/index.js +0 -13
  974. package/lib/mjs/components/radio/fixtures/values.d.ts +0 -2
  975. package/lib/mjs/components/radio/fixtures/values.js +0 -5
  976. package/lib/mjs/components/recaptcha/fixtures/comp1.d.ts +0 -8
  977. package/lib/mjs/components/recaptcha/fixtures/comp1.js +0 -7
  978. package/lib/mjs/components/recaptcha/fixtures/index.d.ts +0 -2
  979. package/lib/mjs/components/recaptcha/fixtures/index.js +0 -2
  980. package/lib/mjs/components/select/fixtures/comp1.d.ts +0 -40
  981. package/lib/mjs/components/select/fixtures/comp1.js +0 -64
  982. package/lib/mjs/components/select/fixtures/comp10.d.ts +0 -41
  983. package/lib/mjs/components/select/fixtures/comp10.js +0 -30
  984. package/lib/mjs/components/select/fixtures/comp11.d.ts +0 -28
  985. package/lib/mjs/components/select/fixtures/comp11.js +0 -22
  986. package/lib/mjs/components/select/fixtures/comp12.d.ts +0 -53
  987. package/lib/mjs/components/select/fixtures/comp12.js +0 -27
  988. package/lib/mjs/components/select/fixtures/comp13.d.ts +0 -28
  989. package/lib/mjs/components/select/fixtures/comp13.js +0 -29
  990. package/lib/mjs/components/select/fixtures/comp14.d.ts +0 -40
  991. package/lib/mjs/components/select/fixtures/comp14.js +0 -25
  992. package/lib/mjs/components/select/fixtures/comp15.d.ts +0 -50
  993. package/lib/mjs/components/select/fixtures/comp15.js +0 -39
  994. package/lib/mjs/components/select/fixtures/comp16.d.ts +0 -34
  995. package/lib/mjs/components/select/fixtures/comp16.js +0 -31
  996. package/lib/mjs/components/select/fixtures/comp17.d.ts +0 -51
  997. package/lib/mjs/components/select/fixtures/comp17.js +0 -41
  998. package/lib/mjs/components/select/fixtures/comp18.d.ts +0 -49
  999. package/lib/mjs/components/select/fixtures/comp18.js +0 -40
  1000. package/lib/mjs/components/select/fixtures/comp19.d.ts +0 -23
  1001. package/lib/mjs/components/select/fixtures/comp19.js +0 -34
  1002. package/lib/mjs/components/select/fixtures/comp2.d.ts +0 -41
  1003. package/lib/mjs/components/select/fixtures/comp2.js +0 -65
  1004. package/lib/mjs/components/select/fixtures/comp20.d.ts +0 -36
  1005. package/lib/mjs/components/select/fixtures/comp20.js +0 -44
  1006. package/lib/mjs/components/select/fixtures/comp21.d.ts +0 -87
  1007. package/lib/mjs/components/select/fixtures/comp21.js +0 -104
  1008. package/lib/mjs/components/select/fixtures/comp22.d.ts +0 -51
  1009. package/lib/mjs/components/select/fixtures/comp22.js +0 -41
  1010. package/lib/mjs/components/select/fixtures/comp23.d.ts +0 -58
  1011. package/lib/mjs/components/select/fixtures/comp23.js +0 -47
  1012. package/lib/mjs/components/select/fixtures/comp24.d.ts +0 -47
  1013. package/lib/mjs/components/select/fixtures/comp24.js +0 -38
  1014. package/lib/mjs/components/select/fixtures/comp25.d.ts +0 -59
  1015. package/lib/mjs/components/select/fixtures/comp25.js +0 -64
  1016. package/lib/mjs/components/select/fixtures/comp26.d.ts +0 -44
  1017. package/lib/mjs/components/select/fixtures/comp26.js +0 -57
  1018. package/lib/mjs/components/select/fixtures/comp27.d.ts +0 -18
  1019. package/lib/mjs/components/select/fixtures/comp27.js +0 -17
  1020. package/lib/mjs/components/select/fixtures/comp3.d.ts +0 -35
  1021. package/lib/mjs/components/select/fixtures/comp3.js +0 -206
  1022. package/lib/mjs/components/select/fixtures/comp4.d.ts +0 -106
  1023. package/lib/mjs/components/select/fixtures/comp4.js +0 -108
  1024. package/lib/mjs/components/select/fixtures/comp5.d.ts +0 -21
  1025. package/lib/mjs/components/select/fixtures/comp5.js +0 -26
  1026. package/lib/mjs/components/select/fixtures/comp6.d.ts +0 -20
  1027. package/lib/mjs/components/select/fixtures/comp6.js +0 -28
  1028. package/lib/mjs/components/select/fixtures/comp7.d.ts +0 -63
  1029. package/lib/mjs/components/select/fixtures/comp7.js +0 -44
  1030. package/lib/mjs/components/select/fixtures/comp8.d.ts +0 -72
  1031. package/lib/mjs/components/select/fixtures/comp8.js +0 -35
  1032. package/lib/mjs/components/select/fixtures/comp9.d.ts +0 -88
  1033. package/lib/mjs/components/select/fixtures/comp9.js +0 -65
  1034. package/lib/mjs/components/select/fixtures/index.d.ts +0 -28
  1035. package/lib/mjs/components/select/fixtures/index.js +0 -28
  1036. package/lib/mjs/components/select/fixtures/values.d.ts +0 -2
  1037. package/lib/mjs/components/select/fixtures/values.js +0 -5
  1038. package/lib/mjs/components/selectboxes/fixtures/comp1.d.ts +0 -24
  1039. package/lib/mjs/components/selectboxes/fixtures/comp1.js +0 -52
  1040. package/lib/mjs/components/selectboxes/fixtures/comp2.d.ts +0 -24
  1041. package/lib/mjs/components/selectboxes/fixtures/comp2.js +0 -52
  1042. package/lib/mjs/components/selectboxes/fixtures/comp3.d.ts +0 -23
  1043. package/lib/mjs/components/selectboxes/fixtures/comp3.js +0 -19
  1044. package/lib/mjs/components/selectboxes/fixtures/comp4.d.ts +0 -66
  1045. package/lib/mjs/components/selectboxes/fixtures/comp4.js +0 -79
  1046. package/lib/mjs/components/selectboxes/fixtures/comp5.d.ts +0 -37
  1047. package/lib/mjs/components/selectboxes/fixtures/comp5.js +0 -31
  1048. package/lib/mjs/components/selectboxes/fixtures/comp6.d.ts +0 -14
  1049. package/lib/mjs/components/selectboxes/fixtures/comp6.js +0 -13
  1050. package/lib/mjs/components/selectboxes/fixtures/comp7.d.ts +0 -18
  1051. package/lib/mjs/components/selectboxes/fixtures/comp7.js +0 -29
  1052. package/lib/mjs/components/selectboxes/fixtures/index.d.ts +0 -8
  1053. package/lib/mjs/components/selectboxes/fixtures/index.js +0 -8
  1054. package/lib/mjs/components/selectboxes/fixtures/values.d.ts +0 -6
  1055. package/lib/mjs/components/selectboxes/fixtures/values.js +0 -22
  1056. package/lib/mjs/components/signature/fixtures/comp1.d.ts +0 -30
  1057. package/lib/mjs/components/signature/fixtures/comp1.js +0 -28
  1058. package/lib/mjs/components/signature/fixtures/index.d.ts +0 -2
  1059. package/lib/mjs/components/signature/fixtures/index.js +0 -2
  1060. package/lib/mjs/components/signature/fixtures/values.d.ts +0 -2
  1061. package/lib/mjs/components/signature/fixtures/values.js +0 -5
  1062. package/lib/mjs/components/survey/fixtures/comp1.d.ts +0 -31
  1063. package/lib/mjs/components/survey/fixtures/comp1.js +0 -53
  1064. package/lib/mjs/components/survey/fixtures/comp2.d.ts +0 -31
  1065. package/lib/mjs/components/survey/fixtures/comp2.js +0 -53
  1066. package/lib/mjs/components/survey/fixtures/index.d.ts +0 -3
  1067. package/lib/mjs/components/survey/fixtures/index.js +0 -3
  1068. package/lib/mjs/components/survey/fixtures/values.d.ts +0 -5
  1069. package/lib/mjs/components/survey/fixtures/values.js +0 -10
  1070. package/lib/mjs/components/table/fixtures/comp1.d.ts +0 -53
  1071. package/lib/mjs/components/table/fixtures/comp1.js +0 -235
  1072. package/lib/mjs/components/table/fixtures/index.d.ts +0 -2
  1073. package/lib/mjs/components/table/fixtures/index.js +0 -2
  1074. package/lib/mjs/components/tabs/fixtures/comp1.d.ts +0 -23
  1075. package/lib/mjs/components/tabs/fixtures/comp1.js +0 -31
  1076. package/lib/mjs/components/tabs/fixtures/index.d.ts +0 -2
  1077. package/lib/mjs/components/tabs/fixtures/index.js +0 -2
  1078. package/lib/mjs/components/tags/fixtures/comp1.d.ts +0 -20
  1079. package/lib/mjs/components/tags/fixtures/comp1.js +0 -18
  1080. package/lib/mjs/components/tags/fixtures/comp2.d.ts +0 -10
  1081. package/lib/mjs/components/tags/fixtures/comp2.js +0 -9
  1082. package/lib/mjs/components/tags/fixtures/comp3.d.ts +0 -23
  1083. package/lib/mjs/components/tags/fixtures/comp3.js +0 -18
  1084. package/lib/mjs/components/tags/fixtures/comp4.d.ts +0 -9
  1085. package/lib/mjs/components/tags/fixtures/comp4.js +0 -8
  1086. package/lib/mjs/components/tags/fixtures/comp5.d.ts +0 -24
  1087. package/lib/mjs/components/tags/fixtures/comp5.js +0 -22
  1088. package/lib/mjs/components/tags/fixtures/comp6.d.ts +0 -17
  1089. package/lib/mjs/components/tags/fixtures/comp6.js +0 -18
  1090. package/lib/mjs/components/tags/fixtures/index.d.ts +0 -7
  1091. package/lib/mjs/components/tags/fixtures/index.js +0 -7
  1092. package/lib/mjs/components/tags/fixtures/values.d.ts +0 -2
  1093. package/lib/mjs/components/tags/fixtures/values.js +0 -4
  1094. package/lib/mjs/components/textarea/fixtures/comp1.d.ts +0 -31
  1095. package/lib/mjs/components/textarea/fixtures/comp1.js +0 -29
  1096. package/lib/mjs/components/textarea/fixtures/comp2.d.ts +0 -29
  1097. package/lib/mjs/components/textarea/fixtures/comp2.js +0 -27
  1098. package/lib/mjs/components/textarea/fixtures/comp3.d.ts +0 -27
  1099. package/lib/mjs/components/textarea/fixtures/comp3.js +0 -27
  1100. package/lib/mjs/components/textarea/fixtures/comp4.d.ts +0 -30
  1101. package/lib/mjs/components/textarea/fixtures/comp4.js +0 -25
  1102. package/lib/mjs/components/textarea/fixtures/index.d.ts +0 -5
  1103. package/lib/mjs/components/textarea/fixtures/index.js +0 -5
  1104. package/lib/mjs/components/textarea/fixtures/values.d.ts +0 -2
  1105. package/lib/mjs/components/textarea/fixtures/values.js +0 -4
  1106. package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.d.ts +0 -47
  1107. package/lib/mjs/components/textfield/fixtures/comp-with-display-and-value-masks.js +0 -46
  1108. package/lib/mjs/components/textfield/fixtures/comp1.d.ts +0 -33
  1109. package/lib/mjs/components/textfield/fixtures/comp1.js +0 -31
  1110. package/lib/mjs/components/textfield/fixtures/comp2.d.ts +0 -33
  1111. package/lib/mjs/components/textfield/fixtures/comp2.js +0 -31
  1112. package/lib/mjs/components/textfield/fixtures/comp3.d.ts +0 -33
  1113. package/lib/mjs/components/textfield/fixtures/comp3.js +0 -31
  1114. package/lib/mjs/components/textfield/fixtures/comp4.d.ts +0 -23
  1115. package/lib/mjs/components/textfield/fixtures/comp4.js +0 -25
  1116. package/lib/mjs/components/textfield/fixtures/comp5.d.ts +0 -12
  1117. package/lib/mjs/components/textfield/fixtures/comp5.js +0 -11
  1118. package/lib/mjs/components/textfield/fixtures/comp6.d.ts +0 -25
  1119. package/lib/mjs/components/textfield/fixtures/comp6.js +0 -19
  1120. package/lib/mjs/components/textfield/fixtures/comp7.d.ts +0 -37
  1121. package/lib/mjs/components/textfield/fixtures/comp7.js +0 -36
  1122. package/lib/mjs/components/textfield/fixtures/index.d.ts +0 -9
  1123. package/lib/mjs/components/textfield/fixtures/index.js +0 -9
  1124. package/lib/mjs/components/textfield/fixtures/values.d.ts +0 -2
  1125. package/lib/mjs/components/textfield/fixtures/values.js +0 -5
  1126. package/lib/mjs/components/time/fixtures/comp1.d.ts +0 -24
  1127. package/lib/mjs/components/time/fixtures/comp1.js +0 -22
  1128. package/lib/mjs/components/time/fixtures/comp2.d.ts +0 -10
  1129. package/lib/mjs/components/time/fixtures/comp2.js +0 -9
  1130. package/lib/mjs/components/time/fixtures/comp3.d.ts +0 -15
  1131. package/lib/mjs/components/time/fixtures/comp3.js +0 -16
  1132. package/lib/mjs/components/time/fixtures/comp4.d.ts +0 -166
  1133. package/lib/mjs/components/time/fixtures/comp4.js +0 -169
  1134. package/lib/mjs/components/time/fixtures/index.d.ts +0 -7
  1135. package/lib/mjs/components/time/fixtures/index.js +0 -7
  1136. package/lib/mjs/components/time/fixtures/timeForm.d.ts +0 -47
  1137. package/lib/mjs/components/time/fixtures/timeForm.js +0 -50
  1138. package/lib/mjs/components/time/fixtures/timeForm2.d.ts +0 -38
  1139. package/lib/mjs/components/time/fixtures/timeForm2.js +0 -42
  1140. package/lib/mjs/components/time/fixtures/values.d.ts +0 -2
  1141. package/lib/mjs/components/time/fixtures/values.js +0 -5
  1142. package/lib/mjs/components/unknown/fixtures/comp1.d.ts +0 -7
  1143. package/lib/mjs/components/unknown/fixtures/comp1.js +0 -6
  1144. package/lib/mjs/components/unknown/fixtures/index.d.ts +0 -2
  1145. package/lib/mjs/components/unknown/fixtures/index.js +0 -2
  1146. package/lib/mjs/components/url/fixtures/comp1.d.ts +0 -26
  1147. package/lib/mjs/components/url/fixtures/comp1.js +0 -24
  1148. package/lib/mjs/components/url/fixtures/comp2.d.ts +0 -26
  1149. package/lib/mjs/components/url/fixtures/comp2.js +0 -21
  1150. package/lib/mjs/components/url/fixtures/index.d.ts +0 -3
  1151. package/lib/mjs/components/url/fixtures/index.js +0 -3
  1152. package/lib/mjs/components/url/fixtures/values.d.ts +0 -2
  1153. package/lib/mjs/components/url/fixtures/values.js +0 -4
  1154. package/lib/mjs/components/well/fixtures/comp1.d.ts +0 -43
  1155. package/lib/mjs/components/well/fixtures/comp1.js +0 -75
  1156. package/lib/mjs/components/well/fixtures/index.d.ts +0 -2
  1157. package/lib/mjs/components/well/fixtures/index.js +0 -2
@@ -3521,7 +3521,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
3521
3521
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
3522
3522
 
3523
3523
  "use strict";
3524
- eval("\n/* global jQuery */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToMoment = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.momentDate = exports.loadZones = exports.shouldLoadZones = exports.zonesLoaded = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.removeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getScriptPlugin = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = exports.moment = exports.ConditionOperators = exports.jsonLogic = void 0;\nexports.isSelectResourceWithObjectValue = exports.getItemTemplateKeys = exports.interpolateErrors = exports.getComponentSavedTypes = exports.componentValueTypes = exports._ = exports.getFocusableElements = exports.isInsideScopingComponent = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.isChildOf = exports.getArrayFromComponentPath = exports.isInputComponent = exports.interpolate = exports.Evaluator = exports.fastCloneDeep = exports.sanitize = exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = exports.observeOverload = exports.withSwitch = void 0;\nconst lodash_1 = __importDefault(__webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\"));\nexports._ = lodash_1.default;\nconst json_logic_js_1 = __importDefault(__webpack_require__(/*! json-logic-js */ \"./node_modules/json-logic-js/logic.js\"));\nexports.jsonLogic = json_logic_js_1.default;\nconst moment_timezone_1 = __importDefault(__webpack_require__(/*! moment-timezone/moment-timezone */ \"./node_modules/moment-timezone/moment-timezone.js\"));\nexports.moment = moment_timezone_1.default;\nconst jstimezonedetect_1 = __importDefault(__webpack_require__(/*! jstimezonedetect */ \"./node_modules/jstimezonedetect/dist/jstz.min.js\"));\nconst operators_1 = __webpack_require__(/*! ./jsonlogic/operators */ \"./lib/cjs/utils/jsonlogic/operators.js\");\nconst dompurify_1 = __importDefault(__webpack_require__(/*! dompurify */ \"./node_modules/dompurify/dist/purify.js\"));\nconst formUtils_1 = __webpack_require__(/*! ./formUtils */ \"./lib/cjs/utils/formUtils.js\");\nconst Evaluator_1 = __webpack_require__(/*! ./Evaluator */ \"./lib/cjs/utils/Evaluator.js\");\nObject.defineProperty(exports, \"Evaluator\", ({ enumerable: true, get: function () { return Evaluator_1.Evaluator; } }));\nconst conditionOperators_1 = __importDefault(__webpack_require__(/*! ./conditionOperators */ \"./lib/cjs/utils/conditionOperators/index.js\"));\nexports.ConditionOperators = conditionOperators_1.default;\nconst interpolate = Evaluator_1.Evaluator.interpolate;\nexports.interpolate = interpolate;\n__exportStar(__webpack_require__(/*! ./formUtils */ \"./lib/cjs/utils/formUtils.js\"), exports);\n// Configure JsonLogic\noperators_1.lodashOperators.forEach((name) => json_logic_js_1.default.add_operation(`_${name}`, lodash_1.default[name]));\n// Retrieve Any Date\njson_logic_js_1.default.add_operation('getDate', (date) => {\n return (0, moment_timezone_1.default)(date).toISOString();\n});\n// Set Relative Minimum Date\njson_logic_js_1.default.add_operation('relativeMinDate', (relativeMinDate) => {\n return (0, moment_timezone_1.default)().subtract(relativeMinDate, 'days').toISOString();\n});\n// Set Relative Maximum Date\njson_logic_js_1.default.add_operation('relativeMaxDate', (relativeMaxDate) => {\n return (0, moment_timezone_1.default)().add(relativeMaxDate, 'days').toISOString();\n});\n/**\n * Sets the path to the component and parent schema.\n * @param {import('@formio/core').Component} component - The component to set the path for.\n */\nfunction setPathToComponentAndPerentSchema(component) {\n component.path = getComponentPath(component);\n const dataParent = getDataParentComponent(component);\n if (dataParent && typeof dataParent === 'object') {\n dataParent.path = getComponentPath(dataParent);\n }\n}\n/**\n * Evaluate a method.\n * @param {Function|string|object} func - The function to evaluate.\n * @param {*} args - A map of arguments to pass to the function.\n * @param {string} ret - The name of the \"return\" variable in the script.\n * @param {boolean} interpolate - True if the script should be interpolated before being executed.\n * @param {import('@formio/core').EvaluatorOptions} options - The evaluator options.\n * @returns {*} - The result of the evaluation.\n */\nfunction evaluate(func, args, ret, interpolate, options = {}) {\n return Evaluator_1.Evaluator.evaluate(func, args, ret, interpolate, undefined, options);\n}\nexports.evaluate = evaluate;\n/**\n * Returns a random compoennt ID.\n * @returns {string} - A random component ID.\n */\nfunction getRandomComponentId() {\n return `e${Math.random().toString(36).substring(7)}`;\n}\nexports.getRandomComponentId = getRandomComponentId;\n/**\n * Get a property value of an element.\n * @param {CSSStyleDeclaration} style - The style element to get the property value from.\n * @param {string} prop - The property to get the value for.\n * @returns {number} - The value of the property.\n */\nfunction getPropertyValue(style, prop) {\n let value = style.getPropertyValue(prop);\n value = value ? value.replace(/[^0-9.]/g, '') : '0';\n return parseFloat(value);\n}\nexports.getPropertyValue = getPropertyValue;\n/**\n * Get an elements bounding rectagle.\n * @param {HTMLElement} element - A DOM element to get the bounding rectangle for.\n * @returns {{x: number, y: number, width: number, height: number}} - The bounding rectangle.\n */\nfunction getElementRect(element) {\n const style = window.getComputedStyle(element, null);\n return {\n x: getPropertyValue(style, 'left'),\n y: getPropertyValue(style, 'top'),\n width: getPropertyValue(style, 'width'),\n height: getPropertyValue(style, 'height')\n };\n}\nexports.getElementRect = getElementRect;\n/**\n * Get non HTMLElement property in the window object\n * @param {string} property - The window property to fetch the script plugin from.\n * @returns {any | undefined} - The HTML Element property on the window object.\n */\nfunction getScriptPlugin(property) {\n const obj = window[property];\n if (typeof HTMLElement === 'object' ? obj instanceof HTMLElement : //DOM2\n obj && typeof obj === 'object' && true && obj.nodeType === 1 && typeof obj.nodeName === 'string') {\n return undefined;\n }\n return obj;\n}\nexports.getScriptPlugin = getScriptPlugin;\n/**\n * Determines the boolean value of a setting.\n * @param {string|boolean} value - A string or boolean value to convert to boolean.\n * @returns {boolean} - The boolean value of the setting.\n */\nfunction boolValue(value) {\n if (lodash_1.default.isBoolean(value)) {\n return value;\n }\n else if (lodash_1.default.isString(value)) {\n return (value.toLowerCase() === 'true');\n }\n else {\n return !!value;\n }\n}\nexports.boolValue = boolValue;\n/**\n * Check to see if an ID is a mongoID.\n * @param {string} text - The text to check if it is a mongoID.\n * @returns {boolean} - TRUE if the text is a mongoID; FALSE otherwise.\n */\nfunction isMongoId(text) {\n return !!text.toString().match(/^[0-9a-fA-F]{24}$/);\n}\nexports.isMongoId = isMongoId;\n/**\n * Checks the calculated value for a provided component and data.\n * @param {import('@formio/core').Component} component - The component to check for the calculated value.\n * @param {import('@formio/core').Submission} submission - A submission object.\n * @param {*} rowData - The contextual row data for the component.\n */\nfunction checkCalculated(component, submission, rowData) {\n // Process calculated value stuff if present.\n if (component.calculateValue) {\n lodash_1.default.set(rowData, component.key, evaluate(component.calculateValue, {\n value: undefined,\n data: submission ? submission.data : rowData,\n row: rowData,\n util: this,\n component\n }, 'value'));\n }\n}\nexports.checkCalculated = checkCalculated;\n/**\n * Check if a simple conditional evaluates to true.\n * @param {import('@formio/core').Component} component - The component to check for the conditional.\n * @param {import('@formio/core').SimpleConditional} condition - The condition to check.\n * @param {*} row - The row data for the component.\n * @param {*} data - The full submission data.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The instance of the component.\n * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.\n */\nfunction getConditionalPathsRecursive(conditionPaths, data) {\n let currentGlobalIndex = 0;\n const conditionalPathsArray = [];\n const getConditionalPaths = (data, currentPath = '', localIndex = 0) => {\n currentPath = currentPath.replace(/^\\.+|\\.+$/g, '');\n const currentLocalIndex = localIndex;\n const currentData = lodash_1.default.get(data, currentPath);\n if (Array.isArray(currentData) && currentData.filter(Boolean).length > 0) {\n if (currentData.some(element => typeof element !== 'object')) {\n return;\n }\n const hasInnerDataArray = currentData.find(x => Array.isArray(x[conditionPaths[currentLocalIndex]]));\n if (hasInnerDataArray) {\n currentData.forEach((_, indexOutside) => {\n const innerCompDataPath = `${currentPath}[${indexOutside}].${conditionPaths[currentLocalIndex]}`;\n getConditionalPaths(data, innerCompDataPath, currentLocalIndex + 1);\n });\n }\n else {\n currentData.forEach((x, index) => {\n if (!lodash_1.default.isNil(x[conditionPaths[currentLocalIndex]])) {\n const compDataPath = `${currentPath}[${index}].${conditionPaths[currentLocalIndex]}`;\n conditionalPathsArray.push(compDataPath);\n }\n });\n }\n }\n else {\n if (!conditionPaths[currentGlobalIndex]) {\n return;\n }\n currentGlobalIndex = currentGlobalIndex + 1;\n getConditionalPaths(data, `${currentPath}.${conditionPaths[currentGlobalIndex - 1]}`, currentGlobalIndex);\n }\n };\n getConditionalPaths(data);\n return conditionalPathsArray;\n}\nfunction checkSimpleConditional(component, condition, row, data, instance) {\n if (condition.when) {\n const value = getComponentActualValue(condition.when, data, row);\n const eq = String(condition.eq);\n const show = String(condition.show);\n // Special check for selectboxes component.\n if (lodash_1.default.isObject(value) && lodash_1.default.has(value, condition.eq)) {\n return String(value[condition.eq]) === show;\n }\n // FOR-179 - Check for multiple values.\n if (Array.isArray(value) && value.map(String).includes(eq)) {\n return show === 'true';\n }\n return (String(value) === eq) === (show === 'true');\n }\n else {\n const { conditions = [], conjunction = 'all', show = true } = condition;\n if (!conditions.length) {\n return true;\n }\n const conditionsResult = lodash_1.default.map(conditions, (cond) => {\n var _a, _b;\n const { value: comparedValue, operator, component: conditionComponentPath } = cond;\n if (!conditionComponentPath) {\n return true;\n }\n const splittedConditionPath = conditionComponentPath.split('.');\n const conditionalPaths = ((_a = instance === null || instance === void 0 ? void 0 : instance.parent) === null || _a === void 0 ? void 0 : _a.type) === 'datagrid' || ((_b = instance === null || instance === void 0 ? void 0 : instance.parent) === null || _b === void 0 ? void 0 : _b.type) === 'editgrid' ? [] : getConditionalPathsRecursive(splittedConditionPath, data);\n if (conditionalPaths.length > 0) {\n return conditionalPaths.map((path) => {\n const value = getComponentActualValue(path, data, row);\n const ConditionOperator = conditionOperators_1.default[operator];\n return ConditionOperator\n ? new ConditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })\n : true;\n });\n }\n else {\n const value = getComponentActualValue(conditionComponentPath, data, row);\n const СonditionOperator = conditionOperators_1.default[operator];\n return СonditionOperator\n ? new СonditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })\n : true;\n }\n });\n let result = false;\n switch (conjunction) {\n case 'any':\n result = lodash_1.default.some(conditionsResult.flat(), res => !!res);\n break;\n default:\n result = lodash_1.default.every(conditionsResult.flat(), res => !!res);\n }\n return show ? result : !result;\n }\n}\nexports.checkSimpleConditional = checkSimpleConditional;\n/**\n * Returns a components normalized value.\n * @param {string} compPath - The full path to the component.\n * @param {*} data - The data object to get the value from.\n * @param {*} row - The contextual row data for the component.\n * @returns {*} - The normalized value of the component.\n */\nfunction getComponentActualValue(compPath, data, row) {\n let value = null;\n if (row) {\n value = (0, formUtils_1.getValue)({ data: row }, compPath);\n }\n if (data && lodash_1.default.isNil(value)) {\n value = (0, formUtils_1.getValue)({ data }, compPath);\n }\n // FOR-400 - Fix issue where falsey values were being evaluated as show=true\n if (lodash_1.default.isNil(value) || (lodash_1.default.isObject(value) && lodash_1.default.isEmpty(value))) {\n value = '';\n }\n return value;\n}\nexports.getComponentActualValue = getComponentActualValue;\n/**\n * Check custom javascript conditional.\n * @param {import('@formio/core').Component} component - The component to check for the conditional.\n * @param {string} custom - The custom conditional string to evaluate.\n * @param {*} row - The row data for the component.\n * @param {*} data - The full submission data.\n * @param {import('@formio/core').Form} form - The form object.\n * @param {string} variable - The variable name for the result of the custom conditional.\n * @param {*} onError - A custom return if there is an error or the value is null from the evaluation.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.\n * @returns {*} - The result of the evaulation.\n */\nfunction checkCustomConditional(component, custom, row, data, form, variable, onError, instance) {\n if (typeof custom === 'string') {\n custom = `var ${variable} = true; ${custom}; return ${variable};`;\n }\n const value = (instance && instance.evaluate) ?\n instance.evaluate(custom, { row, data, form }) :\n evaluate(custom, { row, data, form });\n if (value === null) {\n return onError;\n }\n return value;\n}\nexports.checkCustomConditional = checkCustomConditional;\n/**\n * Check a component for JSON conditionals.\n * @param {import('@formio/core').Component} component - The component\n * @param {import('@formio/core').JSONConditional} json - The json conditional to check.\n * @param {*} row - The contextual row data for the component.\n * @param {*} data - The full submission data.\n * @param {import('@formio/core').Form} form - The Form JSON of the form.\n * @param {*} onError - Custom return value if there is an error.\n * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.\n */\nfunction checkJsonConditional(component, json, row, data, form, onError) {\n try {\n return json_logic_js_1.default.apply(json, {\n data,\n row,\n form,\n _: lodash_1.default,\n });\n }\n catch (err) {\n console.warn(`An error occurred in jsonLogic advanced condition for ${component.key}`, err);\n return onError;\n }\n}\nexports.checkJsonConditional = checkJsonConditional;\n/**\n * Returns the contextual row data for a component.\n * @param {import('@formio/core').Component} component - The component to get the row data for.\n * @param {*} row - The row data for the component.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.\n * @param {*} conditional - The component conditional.\n * @returns {*} - The contextual row data for the component.\n */\nfunction getRow(component, row, instance, conditional) {\n var _a;\n const condition = conditional || component.conditional;\n // If no component's instance passed (happens only in 6.x server), calculate its path based on the schema\n if (!instance) {\n instance = lodash_1.default.cloneDeep(component);\n setPathToComponentAndPerentSchema(instance);\n }\n const dataParent = getDataParentComponent(instance);\n const parentPath = dataParent ? getComponentPath(dataParent) : null;\n const isTriggerCondtionComponentPath = condition.when || !condition.conditions\n ? (_a = condition.when) === null || _a === void 0 ? void 0 : _a.startsWith(parentPath)\n : lodash_1.default.some(condition.conditions, cond => cond.component.startsWith(parentPath));\n if (dataParent && isTriggerCondtionComponentPath) {\n const newRow = {};\n lodash_1.default.set(newRow, parentPath, row);\n row = newRow;\n }\n return row;\n}\n/**\n * Checks the conditions for a provided component and data.\n * @param {import('@formio/core').Component} component - The component to check for the condition.\n * @param {*} row - The data within a row\n * @param {*} data - The full submission data.\n * @param {import('@formio/core').Form} form - The form object.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.\n * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.\n */\nfunction checkCondition(component, row, data, form, instance) {\n const { customConditional, conditional } = component;\n if (customConditional) {\n return checkCustomConditional(component, customConditional, row, data, form, 'show', true, instance);\n }\n else if (conditional && (conditional.when || lodash_1.default.some(conditional.conditions || [], condition => condition.component && condition.operator))) {\n row = getRow(component, row, instance);\n return checkSimpleConditional(component, conditional, row, data, instance);\n }\n else if (conditional && conditional.json) {\n return checkJsonConditional(component, conditional.json, row, data, form, true);\n }\n // Default to show.\n return true;\n}\nexports.checkCondition = checkCondition;\n/**\n * Test a trigger on a component.\n * @param {import('@formio/core').Component} component - The component to test the trigger against.\n * @param {import('@formio/core').LogicTrigger} trigger - The trigger configuration.\n * @param {import('@formio/core').DataObject} row - The contextual row data.\n * @param {import('@formio/core').DataObject} data - The root data object.\n * @param {import('@formio/core').Form} form - The form object.\n * @param {any} instance - The component that is performing the trigger.\n * @returns {boolean} - TRUE if the trigger should fire; FALSE otherwise.\n */\nfunction checkTrigger(component, trigger, row, data, form, instance) {\n // If trigger is empty, don't fire it\n if (!trigger || !trigger[trigger.type]) {\n return false;\n }\n switch (trigger.type) {\n case 'simple':\n row = getRow(component, row, instance, trigger.simple);\n return checkSimpleConditional(component, trigger.simple, row, data, instance);\n case 'javascript':\n return checkCustomConditional(component, trigger.javascript, row, data, form, 'result', false, instance);\n case 'json':\n return checkJsonConditional(component, trigger.json, row, data, form, false);\n }\n // If none of the types matched, don't fire the trigger.\n return false;\n}\nexports.checkTrigger = checkTrigger;\n/**\n * Sets a property on a component via an executed Logic action.\n * @param {import('@formio/core').Component} component - The component to set the property on.\n * @param {import('@formio/core').LogicAction} action - The action to perform on the component.\n * @param {string} result - The name of the variable in the evaulation to use as the result.\n * @param {import('@formio/core').DataObject} row - The contextual row data.\n * @param {import('@formio/core').DataObject} data - The full submission data.\n * @param {any} instance - The component instance.\n * @returns {import('@formio/core').Component} - The modified component.\n */\nfunction setActionProperty(component, action, result, row, data, instance) {\n const property = action.property.value;\n switch (action.property.type) {\n case 'boolean': {\n const currentValue = lodash_1.default.get(component, property, false).toString();\n const newValue = action.state.toString();\n if (currentValue !== newValue) {\n lodash_1.default.set(component, property, newValue === 'true');\n }\n break;\n }\n case 'string': {\n const evalData = {\n data,\n row,\n component,\n result,\n };\n const textValue = action.property.component ? action[action.property.component] : action.text;\n const currentValue = lodash_1.default.get(component, property, '');\n const newValue = (instance && instance.interpolate)\n ? instance.interpolate(textValue, evalData)\n : Evaluator_1.Evaluator.interpolate(textValue, evalData);\n if (newValue !== currentValue) {\n lodash_1.default.set(component, property, newValue);\n }\n break;\n }\n }\n return component;\n}\nexports.setActionProperty = setActionProperty;\n/**\n * Removes HTML tags from string e.g. <div>Hello World</div> => Hello World\n * @param {string} str - The string to remove HTML tags from.\n * @returns {string} - The string without HTML tags.\n */\nfunction removeHTML(str) {\n const doc = new window.DOMParser().parseFromString(str, 'text/html');\n return (doc.body.textContent || '').trim();\n}\nexports.removeHTML = removeHTML;\n/**\n * Unescape HTML characters like &lt, &gt, &amp and etc.\n * @param {string} str - The string to unescape.\n * @returns {string} - The unescaped string.\n */\nfunction unescapeHTML(str) {\n if (typeof window === 'undefined' || !('DOMParser' in window)) {\n return str;\n }\n const elem = document.createElement('textarea');\n elem.innerHTML = str;\n return elem.value;\n}\nexports.unescapeHTML = unescapeHTML;\n/**\n * Make HTML element from string\n * @param {string} str - The string to convert to an HTML element.\n * @param {string} selector - The selector to use to get the element once it is created.\n * @returns {HTMLElement} - The HTML element that was created.\n */\nfunction convertStringToHTMLElement(str, selector) {\n const doc = new window.DOMParser().parseFromString(str, 'text/html');\n return doc.body.querySelector(selector);\n}\nexports.convertStringToHTMLElement = convertStringToHTMLElement;\n/**\n * Make a filename guaranteed to be unique.\n * @param {string} name - The original name of the file.\n * @param {string} template - The template to use for the unique name.\n * @param {object} evalContext - The context to use for the evaluation.\n * @returns {string} - A unique filename.\n */\nfunction uniqueName(name, template, evalContext) {\n template = template || '{{fileName}}-{{guid}}';\n //include guid in template anyway, to prevent overwriting issue if filename matches existing file\n if (!template.includes('{{guid}}')) {\n template = `${template}-{{guid}}`;\n }\n const parts = name.split('.');\n let fileName = parts.slice(0, parts.length - 1).join('.');\n const extension = parts.length > 1\n ? `.${lodash_1.default.last(parts)}`\n : '';\n //allow only 100 characters from original name to avoid issues with filename length restrictions\n fileName = fileName.substr(0, 100);\n evalContext = Object.assign(evalContext || {}, {\n fileName,\n guid: guid()\n });\n //only letters, numbers, dots, dashes, underscores and spaces are allowed. Anything else will be replaced with dash\n const uniqueName = `${Evaluator_1.Evaluator.interpolate(template, evalContext)}${extension}`.replace(/[^0-9a-zA-Z.\\-_ ]/g, '-');\n return uniqueName;\n}\nexports.uniqueName = uniqueName;\n/**\n * Returns a GUID\n * @returns {string} - A GUID.\n */\nfunction guid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = Math.random() * 16 | 0;\n const v = c === 'x'\n ? r\n : (r & 0x3 | 0x8);\n return v.toString(16);\n });\n}\nexports.guid = guid;\n/**\n * Return a translated date setting.\n * @param {string|Date} date - The date to translate.\n * @returns {(null|Date)} - The translated date.\n */\nfunction getDateSetting(date) {\n if (lodash_1.default.isNil(date) || lodash_1.default.isNaN(date) || date === '') {\n return null;\n }\n if (date instanceof Date) {\n return date;\n }\n else if (typeof date.toDate === 'function') {\n return date.isValid() ? date.toDate() : null;\n }\n let dateSetting = ((typeof date !== 'string') || (date.indexOf('moment(') === -1)) ? (0, moment_timezone_1.default)(date) : null;\n if (dateSetting && dateSetting.isValid()) {\n return dateSetting.toDate();\n }\n dateSetting = null;\n try {\n const value = Evaluator_1.Evaluator.evaluator(`return ${date};`, 'moment')(moment_timezone_1.default);\n if (typeof value === 'string') {\n dateSetting = (0, moment_timezone_1.default)(value);\n }\n else if (typeof value.toDate === 'function') {\n dateSetting = (0, moment_timezone_1.default)(value.toDate().toUTCString());\n }\n else if (value instanceof Date) {\n dateSetting = (0, moment_timezone_1.default)(value);\n }\n }\n catch (e) {\n return null;\n }\n if (!dateSetting) {\n return null;\n }\n // Ensure this is a date.\n if (!dateSetting.isValid()) {\n return null;\n }\n return dateSetting.toDate();\n}\nexports.getDateSetting = getDateSetting;\n/**\n * Returns true if the date is a valid date. False otherwise.\n * @param {Date|string} date - The date to check for validity.\n * @returns {boolean} - TRUE if the date is valid; FALSE otherwise.\n */\nfunction isValidDate(date) {\n return lodash_1.default.isDate(date) && !lodash_1.default.isNaN(date.getDate());\n}\nexports.isValidDate = isValidDate;\n/**\n * Get the current timezone string.\n * @returns {string} - The current timezone.\n */\nfunction currentTimezone() {\n if (moment_timezone_1.default.currentTimezone) {\n return moment_timezone_1.default.currentTimezone;\n }\n moment_timezone_1.default.currentTimezone = jstimezonedetect_1.default.determine().name();\n return moment_timezone_1.default.currentTimezone;\n}\nexports.currentTimezone = currentTimezone;\n/**\n * Get an offset date provided a date object and timezone object.\n * @param {Date} date - The date to offset.\n * @param {string} timezone - The timezone to offset the date to.\n * @returns {Date} - The offset date.\n */\nfunction offsetDate(date, timezone) {\n if (timezone === 'UTC') {\n return {\n date: new Date(date.getTime() + (date.getTimezoneOffset() * 60000)),\n abbr: 'UTC'\n };\n }\n const dateMoment = (0, moment_timezone_1.default)(date).tz(timezone);\n return {\n date: new Date(date.getTime() + ((dateMoment.utcOffset() + date.getTimezoneOffset()) * 60000)),\n abbr: dateMoment.format('z')\n };\n}\nexports.offsetDate = offsetDate;\n/**\n * Returns if the zones are loaded.\n * @returns {boolean} - TRUE if the zones are loaded; FALSE otherwise.\n */\nfunction zonesLoaded() {\n return moment_timezone_1.default.zonesLoaded;\n}\nexports.zonesLoaded = zonesLoaded;\n/**\n * Returns if we should load the zones.\n * @param {string} timezone - The timezone to check if we should load the zones.\n * @returns {boolean} - TRUE if we should load the zones; FALSE otherwise.\n */\nfunction shouldLoadZones(timezone) {\n if (timezone === currentTimezone() || timezone === 'UTC') {\n return false;\n }\n return true;\n}\nexports.shouldLoadZones = shouldLoadZones;\n/**\n * Externally load the timezone data.\n * @param {string} url - The URL to load the timezone data from.\n * @param {string} timezone - The timezone to load.\n * @returns {Promise<any> | *} - Resolves when the zones for this timezone are loaded.\n */\nfunction loadZones(url, timezone) {\n if (timezone && !shouldLoadZones(timezone)) {\n // Return non-resolving promise.\n return new Promise(lodash_1.default.noop);\n }\n if (moment_timezone_1.default.zonesPromise) {\n return moment_timezone_1.default.zonesPromise;\n }\n return moment_timezone_1.default.zonesPromise = fetch(url)\n .then(resp => resp.json().then(zones => {\n moment_timezone_1.default.tz.load(zones);\n moment_timezone_1.default.zonesLoaded = true;\n // Trigger a global event that the timezones have finished loading.\n if (document && document.createEvent && document.body && document.body.dispatchEvent) {\n var event = document.createEvent('Event');\n event.initEvent('zonesLoaded', true, true);\n document.body.dispatchEvent(event);\n }\n }));\n}\nexports.loadZones = loadZones;\n/**\n * Get the moment date object for translating dates with timezones.\n * @param {string|Date} value - The value to convert into a moment date.\n * @param {string} format - The format to convert the date to.\n * @param {string} timezone - The timezone to convert the date to.\n * @returns {Date} - The moment date object.\n */\nfunction momentDate(value, format, timezone) {\n const momentDate = (0, moment_timezone_1.default)(value);\n if (!timezone) {\n return momentDate;\n }\n if (timezone === 'UTC') {\n timezone = 'Etc/UTC';\n }\n if ((timezone !== currentTimezone() || (format && format.match(/\\s(z$|z\\s)/))) && moment_timezone_1.default.zonesLoaded) {\n return momentDate.tz(timezone);\n }\n return momentDate;\n}\nexports.momentDate = momentDate;\n/**\n * Format a date provided a value, format, and timezone object.\n * @param {string} timezonesUrl - The URL to load the timezone data from.\n * @param {string|Date} value - The value to format.\n * @param {string} format - The format to format the date to.\n * @param {string} timezone - The timezone to format the date to.\n * @param {string} flatPickrInputFormat - The format to use for flatpickr input.\n * @returns {string} - The formatted date.\n */\nfunction formatDate(timezonesUrl, value, format, timezone, flatPickrInputFormat) {\n const momentDate = (0, moment_timezone_1.default)(value, flatPickrInputFormat || undefined);\n if (timezone === currentTimezone()) {\n // See if our format contains a \"z\" timezone character.\n if (format.match(/\\s(z$|z\\s)/)) {\n loadZones(timezonesUrl);\n if (moment_timezone_1.default.zonesLoaded) {\n return momentDate.tz(timezone).format(convertFormatToMoment(format));\n }\n else {\n return momentDate.format(convertFormatToMoment(format.replace(/\\s(z$|z\\s)/, '')));\n }\n }\n // Return the standard format.\n return momentDate.format(convertFormatToMoment(format));\n }\n if (timezone === 'UTC') {\n const offset = offsetDate(momentDate.toDate(), 'UTC');\n return `${(0, moment_timezone_1.default)(offset.date).format(convertFormatToMoment(format))} UTC`;\n }\n // Load the zones since we need timezone information.\n loadZones(timezonesUrl);\n if (moment_timezone_1.default.zonesLoaded && timezone) {\n return momentDate.tz(timezone).format(`${convertFormatToMoment(format)} z`);\n }\n else {\n return momentDate.format(convertFormatToMoment(format));\n }\n}\nexports.formatDate = formatDate;\n/**\n * Pass a format function to format within a timezone.\n * @param {string} timezonesUrl - The URL to load the timezone data from.\n * @param {Function} formatFn - The format function to use.\n * @param {Date|string} date - The date to format.\n * @param {string} format - The format to format the date to.\n * @param {string} timezone - The timezone to format the date to.\n * @returns {string} - The formatted date.\n */\nfunction formatOffset(timezonesUrl, formatFn, date, format, timezone) {\n if (timezone === currentTimezone()) {\n return formatFn(date, format);\n }\n if (timezone === 'UTC') {\n return `${formatFn(offsetDate(date, 'UTC').date, format)} UTC`;\n }\n // Load the zones since we need timezone information.\n loadZones(timezonesUrl);\n if (moment_timezone_1.default.zonesLoaded) {\n const offset = offsetDate(date, timezone);\n return `${formatFn(offset.date, format)} ${offset.abbr}`;\n }\n else {\n return formatFn(date, format);\n }\n}\nexports.formatOffset = formatOffset;\n/**\n * Returns the local date format information.\n * @param {Intl.LocalesArgument} locale - The locale to get the date format for.\n * @returns {object} - The local date format information.\n */\nfunction getLocaleDateFormatInfo(locale) {\n const formatInfo = {};\n const day = 21;\n const exampleDate = new Date(2017, 11, day);\n const localDateString = exampleDate.toLocaleDateString(locale);\n formatInfo.dayFirst = localDateString.slice(0, 2) === day.toString();\n return formatInfo;\n}\nexports.getLocaleDateFormatInfo = getLocaleDateFormatInfo;\n/**\n * Convert the format from the angular-datepicker module to flatpickr format.\n * @param {string} format - The format to convert.\n * @returns {string} - The converted format.\n */\nfunction convertFormatToFlatpickr(format) {\n return format\n // Remove the Z timezone offset, not supported by flatpickr.\n .replace(/Z/g, '')\n // Year conversion.\n .replace(/y/g, 'Y')\n .replace('YYYY', 'Y')\n .replace('YY', 'y')\n // Month conversion.\n .replace('MMMM', 'F')\n .replace(/M/g, 'n')\n .replace('nnn', 'M')\n .replace('nn', 'm')\n // Day in month.\n .replace(/d/g, 'j')\n .replace(/jj/g, 'd')\n // Day in week.\n .replace('EEEE', 'l')\n .replace('EEE', 'D')\n // Hours, minutes, seconds\n .replace('HH', 'H')\n .replace('hh', 'G')\n .replace('mm', 'i')\n .replace('ss', 'S')\n .replace(/a/g, 'K');\n}\nexports.convertFormatToFlatpickr = convertFormatToFlatpickr;\n/**\n * Convert the format from the angular-datepicker module to moment format.\n * @param {string} format - The format to convert.\n * @returns {string} - The converted format.\n */\nfunction convertFormatToMoment(format) {\n return format\n // Year conversion.\n .replace(/y/g, 'Y')\n // Day in month.\n .replace(/d/g, 'D')\n // Day in week.\n .replace(/E/g, 'd')\n // AM/PM marker\n .replace(/a/g, 'A')\n // Unix Timestamp\n .replace(/U/g, 'X');\n}\nexports.convertFormatToMoment = convertFormatToMoment;\n/**\n * Convert the format from the angular-datepicker module to mask format.\n * @param {string} format - The format to convert.\n * @returns {string} - The converted format.\n */\nfunction convertFormatToMask(format) {\n return format\n // Long month replacement.\n .replace(/M{4}/g, 'MM')\n // Initial short month conversion.\n .replace(/M{3}/g, '***')\n // Short month conversion if input as text.\n .replace(/e/g, 'Q')\n // Month number conversion.\n .replace(/W/g, '99')\n // Year conversion.\n .replace(/[ydhmswHMG]/g, '9')\n // AM/PM conversion.\n .replace(/a/g, 'AA');\n}\nexports.convertFormatToMask = convertFormatToMask;\n/**\n * Returns an input mask that is compatible with the input mask library.\n * @param {string} mask - The Form.io input mask.\n * @param {string} placeholderChar - Char which is used as a placeholder.\n * @returns {Array} - The input mask for the mask library.\n */\nfunction getInputMask(mask, placeholderChar) {\n if (mask instanceof Array) {\n return mask;\n }\n const maskArray = [];\n maskArray.numeric = true;\n for (let i = 0; i < mask.length; i++) {\n switch (mask[i]) {\n case '9':\n maskArray.push(/\\d/);\n break;\n case 'A':\n maskArray.numeric = false;\n maskArray.push(/[a-zA-Z]/);\n break;\n case 'a':\n maskArray.numeric = false;\n maskArray.push(/[a-z]/);\n break;\n case '*':\n maskArray.numeric = false;\n maskArray.push(/[a-zA-Z0-9]/);\n break;\n // If char which is used inside mask placeholder was used in the mask, replace it with space to prevent errors\n case placeholderChar:\n maskArray.numeric = false;\n maskArray.push(' ');\n break;\n default:\n maskArray.numeric = false;\n maskArray.push(mask[i]);\n break;\n }\n }\n return maskArray;\n}\nexports.getInputMask = getInputMask;\n/**\n * Unmasks a value using the provided mask and placeholder characters.\n * @param {string} value - The value to unmask.\n * @param {string} mask - The mask to use for unmasking.\n * @param {string} placeholderChar - The placeholder character to use for unmasking.\n * @returns {string} - The unmasked value.\n */\nfunction unmaskValue(value, mask, placeholderChar) {\n if (!mask || !value || value.length > mask.length) {\n return value;\n }\n let unmaskedValue = value.split('');\n for (let i = 0; i < mask.length; i++) {\n const char = value[i] || '';\n const charPart = mask[i];\n if (!lodash_1.default.isRegExp(charPart) && char === charPart) {\n unmaskedValue[i] = '';\n }\n }\n unmaskedValue = unmaskedValue.join('').replace(placeholderChar, '');\n return unmaskedValue;\n}\nexports.unmaskValue = unmaskValue;\n/**\n * Returns true if the value matches the input mask format.\n * @param {string} value - The value to check.\n * @param {string} inputMask - The input mask to check against.\n * @returns {boolean} - TRUE if the value matches the input mask; FALSE otherwise.\n */\nfunction matchInputMask(value, inputMask) {\n if (!inputMask) {\n return true;\n }\n // If value is longer than mask, it isn't valid.\n if (value.length > inputMask.length) {\n return false;\n }\n for (let i = 0; i < inputMask.length; i++) {\n const char = value[i] || '';\n const charPart = inputMask[i];\n if (!(lodash_1.default.isRegExp(charPart) && charPart.test(char) || charPart === char)) {\n return false;\n }\n }\n return true;\n}\nexports.matchInputMask = matchInputMask;\n/**\n * Returns the number separators (i.e. 1,000) for the provided language.\n * @param {string} lang - The language code to get the number separators for.\n * @returns {{delimiter: string, decimalSeparator: string}} - The number separators.\n */\nfunction getNumberSeparators(lang = 'en') {\n const formattedNumberString = (12345.6789).toLocaleString(lang);\n const delimeters = formattedNumberString.match(/..(.)...(.)../);\n if (!delimeters) {\n return {\n delimiter: ',',\n decimalSeparator: '.'\n };\n }\n return {\n delimiter: (delimeters.length > 1) ? delimeters[1] : ',',\n decimalSeparator: (delimeters.length > 2) ? delimeters[2] : '.',\n };\n}\nexports.getNumberSeparators = getNumberSeparators;\n/**\n * Returns the number for the maximum amount of decimal places for a number.\n * @param {import('@formio/core').Component} component - The component to check for decimal limits.\n * @param {number} defaultLimit - The default limit to use if none is provided in the component.\n * @returns {number} - The number of decimal places allowed.\n */\nfunction getNumberDecimalLimit(component, defaultLimit) {\n if (lodash_1.default.has(component, 'decimalLimit')) {\n return lodash_1.default.get(component, 'decimalLimit');\n }\n // Determine the decimal limit. Defaults to 20 but can be overridden by validate.step or decimalLimit settings.\n let decimalLimit = defaultLimit || 20;\n const step = lodash_1.default.get(component, 'validate.step', 'any');\n if (step !== 'any') {\n const parts = step.toString().split('.');\n if (parts.length > 1) {\n decimalLimit = parts[1].length;\n }\n }\n return decimalLimit;\n}\nexports.getNumberDecimalLimit = getNumberDecimalLimit;\n/**\n * Returns the currency affixes for a specific language.\n * @param {object} arg0 - The arguments object.\n * @param {string} arg0.currency - The currency code to get the affixes for.\n * @param {number} arg0.decimalLimit - The number of decimal places to use.\n * @param {string} arg0.decimalSeparator - The decimal separator to use.\n * @param {string} arg0.lang - The language code to use.\n * @returns {{prefix: string, suffix: string}} - The currency affixes.\n */\nfunction getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, lang, }) {\n // Get the prefix and suffix from the localized string.\n let regex = `(.*)?${(100).toLocaleString(lang)}`;\n if (decimalLimit) {\n regex += `${decimalSeparator === '.' ? '\\\\.' : decimalSeparator}${(0).toLocaleString(lang)}{${decimalLimit}}`;\n }\n regex += '(.*)?';\n const parts = (100).toLocaleString(lang, {\n style: 'currency',\n currency: currency ? currency : 'USD',\n useGrouping: true,\n maximumFractionDigits: decimalLimit || 0,\n minimumFractionDigits: decimalLimit || 0\n }).replace('.', decimalSeparator).match(new RegExp(regex));\n return {\n prefix: (parts === null || parts === void 0 ? void 0 : parts[1]) || '',\n suffix: (parts === null || parts === void 0 ? void 0 : parts[2]) || ''\n };\n}\nexports.getCurrencyAffixes = getCurrencyAffixes;\n/**\n * Fetch the field data provided a component.\n * @param {import('@formio/core').DataObject} data - The data object to fetch the field data from.\n * @param {import('@formio/core').Component} component - The component to fetch the field data for.\n * @returns {*} - The field data.\n */\nfunction fieldData(data, component) {\n if (!data) {\n return '';\n }\n if (!component || !component.key) {\n return data;\n }\n if (component.key.includes('.')) {\n let value = data;\n const parts = component.key.split('.');\n let key = '';\n for (let i = 0; i < parts.length; i++) {\n key = parts[i];\n // Handle nested resources\n if (value.hasOwnProperty('_id')) {\n value = value.data;\n }\n // Return if the key is not found on the value.\n if (!value.hasOwnProperty(key)) {\n return;\n }\n // Convert old single field data in submissions to multiple\n if (key === parts[parts.length - 1] && component.multiple && !Array.isArray(value[key])) {\n value[key] = [value[key]];\n }\n // Set the value of this key.\n value = value[key];\n }\n return value;\n }\n else {\n // Convert old single field data in submissions to multiple\n if (component.multiple && !Array.isArray(data[component.key])) {\n data[component.key] = [data[component.key]];\n }\n // Fix for checkbox type radio submission values in tableView\n if (component.type === 'checkbox' && component.inputType === 'radio') {\n return data[component.name] === component.value;\n }\n return data[component.key];\n }\n}\nexports.fieldData = fieldData;\n/**\n * Delays function execution with possibility to execute function synchronously or cancel it.\n * @param {Function} fn - Function to delay\n * @param {number} delay - Delay time\n * @param {...any} args - Arguments to pass to the function\n * @returns {*} - Function to cancel the delay\n */\nfunction delay(fn, delay = 0, ...args) {\n const timer = setTimeout(fn, delay, ...args);\n /**\n *\n */\n function cancel() {\n clearTimeout(timer);\n }\n /**\n * Execute the function early.\n * @returns {*} - The result of the function.\n */\n function earlyCall() {\n cancel();\n return fn(...args);\n }\n earlyCall.timer = timer;\n earlyCall.cancel = cancel;\n return earlyCall;\n}\nexports.delay = delay;\n/**\n * Iterate the given key to make it unique.\n * @param {string} key\n * Modify the component key to be unique.\n * @returns {string}\n * The new component key.\n */\nfunction iterateKey(key) {\n if (!key.match(/(\\d+)$/)) {\n return `${key}1`;\n }\n return key.replace(/(\\d+)$/, function (suffix) {\n return Number(suffix) + 1;\n });\n}\nexports.iterateKey = iterateKey;\n/**\n * Determines a unique key within a map provided the base key.\n * @param {Record<string, string>} map - The map to check for uniqueness.\n * @param {string} base - The base path of the key.\n * @returns {string} - The unique key.\n */\nfunction uniqueKey(map, base) {\n let newKey = base;\n while (map.hasOwnProperty(newKey)) {\n newKey = iterateKey(newKey);\n }\n return newKey;\n}\nexports.uniqueKey = uniqueKey;\n/**\n * Determines the major version number of bootstrap.\n * @param {object} options - The options to check for bootstrap version.\n * @param {string} options.bootstrap - The bootstrap version to use.\n * @returns {number} - The bootstrap version.\n */\nfunction bootstrapVersion(options) {\n if (options.bootstrap) {\n return options.bootstrap;\n }\n if ((typeof jQuery === 'function') && (typeof jQuery().collapse === 'function')) {\n return parseInt(jQuery.fn.collapse.Constructor.VERSION.split('.')[0], 10);\n }\n if (window.bootstrap && window.bootstrap.Collapse) {\n return parseInt(window.bootstrap.Collapse.VERSION.split('.')[0], 10);\n }\n return 0;\n}\nexports.bootstrapVersion = bootstrapVersion;\n/**\n * Retrun provided argument.\n * If argument is a function, returns the result of a function call.\n * @param {Function|any} e - The argument to check if a function and call if so.\n * @returns {any} - Either the result of the function call (e) or e if it is not a function.\n */\nfunction unfold(e) {\n if (typeof e === 'function') {\n return e();\n }\n return e;\n}\nexports.unfold = unfold;\n/**\n * Map values through unfold and return first non-nil value.\n * @param {Array<T>} collection - The collection to map through unfold.;\n * @returns {T} - The first non-nil value.\n */\nexports.firstNonNil = lodash_1.default.flow([\n lodash_1.default.partialRight(lodash_1.default.map, unfold),\n lodash_1.default.partialRight(lodash_1.default.find, v => !lodash_1.default.isUndefined(v))\n]);\n/**\n * Create enclosed state. Returns functions to getting and cycling between states.\n * @param {*} a - initial state.\n * @param {*} b - next state.\n * @returns {Functions[]} -- [get, toggle];\n */\nfunction withSwitch(a, b) {\n let state = a;\n let next = b;\n /**\n * Returns the state of the switch.\n * @returns {*} - The current state.\n */\n function get() {\n return state;\n }\n /**\n * Toggles the state of the switch.\n */\n function toggle() {\n const prev = state;\n state = next;\n next = prev;\n }\n return [get, toggle];\n}\nexports.withSwitch = withSwitch;\n/**\n * Create a function that will call the provided function only the provided limit.\n * @param {Function} callback - The callback to call.\n * @param {object} options - The options to use.\n * @param {number} options.limit - The limit to call the callback.\n * @param {number} options.delay - The delay to wait before resetting the call count.\n * @returns {Function} - The function that will call the callback only the provided limit.\n */\nfunction observeOverload(callback, options = {}) {\n const { limit = 50, delay = 500 } = options;\n let callCount = 0;\n let timeoutID = 0;\n const reset = () => callCount = 0;\n return () => {\n if (timeoutID !== 0) {\n clearTimeout(timeoutID);\n timeoutID = 0;\n }\n timeoutID = setTimeout(reset, delay);\n callCount += 1;\n if (callCount >= limit) {\n clearTimeout(timeoutID);\n reset();\n return callback();\n }\n };\n}\nexports.observeOverload = observeOverload;\n/**\n * Returns the components that are provided within an evaluation context.\n * @param {any} context - The evaluation context to get the components from.\n * @param {boolean} excludeNested - Exclude nested components.\n * @param {Array<string>} excludedTypes - The types of components to exclude.\n * @returns {Array} - The components within the evaluation context.\n */\nfunction getContextComponents(context, excludeNested, excludedTypes = []) {\n const values = [];\n context.utils.eachComponent(context.instance.options.editForm.components, (component, path) => {\n const addToContextComponents = excludeNested ? !component.tree : true;\n if (component.key !== context.data.key && addToContextComponents && !lodash_1.default.includes(excludedTypes, component.type)) {\n values.push({\n label: `${component.label || component.key} (${path})`,\n value: path,\n });\n }\n });\n return values;\n}\nexports.getContextComponents = getContextComponents;\n/**\n * Returns the button components that are within an evaluation context.\n * @param {any} context - The evaluation context to get the components from.\n * @returns {Array} - The button components within the evaluation context.\n */\nfunction getContextButtons(context) {\n const values = [];\n context.utils.eachComponent(context.instance.options.editForm.components, (component) => {\n if (component.type === 'button') {\n values.push({\n label: `${component.key} (${component.label})`,\n value: component.key,\n });\n }\n });\n return values;\n}\nexports.getContextButtons = getContextButtons;\n// Tags that could be in text, that should be ommited or handled in a special way\nconst inTextTags = ['#text', 'A', 'B', 'EM', 'I', 'SMALL', 'STRONG', 'SUB', 'SUP', 'INS', 'DEL', 'MARK', 'CODE'];\n/**\n * Helper function for 'translateHTMLTemplate'. Translates text value of the passed html element.\n * @param {HTMLElement} elem - The element to translate.\n * @param {Function} translate - The translation function.\n * @returns {string} - Translated element template.\n */\nfunction translateElemValue(elem, translate) {\n if (!elem.innerText) {\n return elem.innerHTML;\n }\n const elemValue = elem.innerText.replace(Evaluator_1.Evaluator.templateSettings.interpolate, '').replace(/\\s\\s+/g, ' ').trim();\n const translatedValue = translate(elemValue);\n if (elemValue !== translatedValue) {\n const links = elem.innerHTML.match(/<a[^>]*>(.*?)<\\/a>/g);\n if (links && links.length) {\n if (links.length === 1 && links[0].length === elem.innerHTML.length) {\n return elem.innerHTML.replace(elemValue, translatedValue);\n }\n const translatedLinks = links.map(link => {\n const linkElem = document.createElement('a');\n linkElem.innerHTML = link;\n return translateElemValue(linkElem, translate);\n });\n return `${translatedValue} (${translatedLinks.join(', ')})`;\n }\n else {\n return elem.innerText.replace(elemValue, translatedValue);\n }\n }\n else {\n return elem.innerHTML;\n }\n}\n/**\n * Helper function for 'translateHTMLTemplate'. Goes deep through html tag children and calls function to translate their text values.\n * @param {HTMLElement} tag - The tag to translate.\n * @param {Function} translate - The translation function.\n * @returns {void}\n */\nfunction translateDeepTag(tag, translate) {\n const children = tag.children.length && [...tag.children];\n const shouldTranslateEntireContent = children && children.every(child => child.children.length === 0\n && inTextTags.some(tag => child.nodeName === tag));\n if (!children || shouldTranslateEntireContent) {\n tag.innerHTML = translateElemValue(tag, translate);\n }\n else {\n children.forEach(child => translateDeepTag(child, translate));\n }\n}\n/**\n * Translates text values in html template.\n * @param {string} template - The template to translate.\n * @param {Function} translate - The translation function.\n * @returns {string} - Html template with translated values.\n */\nfunction translateHTMLTemplate(template, translate) {\n const isHTML = /<[^>]*>/.test(template);\n if (!isHTML) {\n return translate(template);\n }\n const tempElem = document.createElement('div');\n tempElem.innerHTML = template;\n if (tempElem.innerText && tempElem.children.length) {\n translateDeepTag(tempElem, translate);\n return tempElem.innerHTML;\n }\n return template;\n}\nexports.translateHTMLTemplate = translateHTMLTemplate;\n/**\n * Sanitize an html string.\n * @param {string} string - The string to sanitize.\n * @param {any} options - The options to use for sanitization.\n * @returns {string} - The sanitized html string.\n */\nfunction sanitize(string, options) {\n if (typeof dompurify_1.default.sanitize !== 'function') {\n return string;\n }\n // Dompurify configuration\n const sanitizeOptions = {\n ADD_ATTR: ['ref', 'target'],\n USE_PROFILES: { html: true }\n };\n // Use profiles\n if (options.sanitizeConfig && options.sanitizeConfig.useProfiles) {\n Object.keys(options.sanitizeConfig.useProfiles).forEach(key => {\n sanitizeOptions.USE_PROFILES[key] = options.sanitizeConfig.useProfiles[key];\n });\n }\n // Add attrs\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addAttr) && options.sanitizeConfig.addAttr.length > 0) {\n options.sanitizeConfig.addAttr.forEach((attr) => {\n sanitizeOptions.ADD_ATTR.push(attr);\n });\n }\n // Add tags\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addTags) && options.sanitizeConfig.addTags.length > 0) {\n sanitizeOptions.ADD_TAGS = options.sanitizeConfig.addTags;\n }\n // Allow tags\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.allowedTags) && options.sanitizeConfig.allowedTags.length > 0) {\n sanitizeOptions.ALLOWED_TAGS = options.sanitizeConfig.allowedTags;\n }\n // Allow attributes\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.allowedAttrs) && options.sanitizeConfig.allowedAttrs.length > 0) {\n sanitizeOptions.ALLOWED_ATTR = options.sanitizeConfig.allowedAttrs;\n }\n // Allowd URI Regex\n if (options.sanitizeConfig && options.sanitizeConfig.allowedUriRegex) {\n const allowedUriRegex = options.sanitizeConfig.allowedUriRegex;\n sanitizeOptions.ALLOWED_URI_REGEXP = lodash_1.default.isString(allowedUriRegex) ? new RegExp(allowedUriRegex) : allowedUriRegex;\n }\n // Allow to extend the existing array of elements that are safe for URI-like values\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addUriSafeAttr) && options.sanitizeConfig.addUriSafeAttr.length > 0) {\n sanitizeOptions.ADD_URI_SAFE_ATTR = options.sanitizeConfig.addUriSafeAttr;\n }\n return dompurify_1.default.sanitize(string, sanitizeOptions);\n}\nexports.sanitize = sanitize;\n/**\n * Fast cloneDeep for JSON objects only.\n * @param {any} obj - The object to perform a fast clone deep against.\n * @returns {any} - The cloned object.\n */\nfunction fastCloneDeep(obj) {\n return obj ? JSON.parse(JSON.stringify(obj)) : obj;\n}\nexports.fastCloneDeep = fastCloneDeep;\n/**\n * Returns if the component is an input component.\n * @param {import('@formio/core').Component} componentJson - The JSON of a component.\n * @returns {bool} - TRUE if the component is an input component; FALSE otherwise.\n */\nfunction isInputComponent(componentJson) {\n if (componentJson.input === false || componentJson.input === true) {\n return componentJson.input;\n }\n switch (componentJson.type) {\n case 'htmlelement':\n case 'content':\n case 'columns':\n case 'fieldset':\n case 'panel':\n case 'table':\n case 'tabs':\n case 'well':\n case 'button':\n return false;\n default:\n return true;\n }\n}\nexports.isInputComponent = isInputComponent;\n/**\n * Takes a component path, and returns a component path array.\n * @param {string} pathStr - The path string to convert to an array.\n * @returns {Arryay<number>} - The array of paths.\n */\nfunction getArrayFromComponentPath(pathStr) {\n if (!pathStr || !lodash_1.default.isString(pathStr)) {\n if (!lodash_1.default.isArray(pathStr)) {\n return [pathStr];\n }\n return pathStr;\n }\n return pathStr.replace(/[[\\]]/g, '.')\n .replace(/\\.\\./g, '.')\n .replace(/(^\\.)|(\\.$)/g, '')\n .split('.')\n .map(part => lodash_1.default.defaultTo(lodash_1.default.toNumber(part), part));\n}\nexports.getArrayFromComponentPath = getArrayFromComponentPath;\n/**\n * Returns true if the component is a child of the parent.\n * @param {any} child - The child component to check.\n * @param {any} parent - The parent component to check.\n * @returns {boolean} - TRUE if the child is a child of the parent; FALSE otherwise.\n */\nfunction isChildOf(child, parent) {\n while (child && child.parent) {\n if (child.parent === parent) {\n return true;\n }\n child = child.parent;\n }\n return false;\n}\nexports.isChildOf = isChildOf;\n/**\n * Takes an array of component path indexes, and returns a string version of that array.\n * @param {Array<number>} path - The path array to convert to a string.\n * @returns {string} - The string version of the path.\n */\nfunction getStringFromComponentPath(path) {\n if (!lodash_1.default.isArray(path)) {\n return path;\n }\n let strPath = '';\n path.forEach((part, i) => {\n if (lodash_1.default.isNumber(part)) {\n strPath += `[${part}]`;\n }\n else {\n strPath += i === 0 ? part : `.${part}`;\n }\n });\n return strPath;\n}\nexports.getStringFromComponentPath = getStringFromComponentPath;\n/**\n * Takes a number and rounds it to the provided precision amount.\n * @param {number} number - The number to round.\n * @param {number} precision - The precision to round the number to.\n * @returns {string} - The rounded number.\n */\nfunction round(number, precision) {\n if (lodash_1.default.isNumber(number)) {\n return number.toFixed(precision);\n }\n return number.toString();\n}\nexports.round = round;\n/**\n * Check for Internet Explorer browser version\n * @returns {(number|null)} - The IE browser version or null if not IE\n */\nfunction getIEBrowserVersion() {\n const { ie, version } = getBrowserInfo();\n return ie ? version : null;\n}\nexports.getIEBrowserVersion = getIEBrowserVersion;\n/**\n * Get browser name and version (modified from 'jquery-browser-plugin')\n * @returns {object} -- {{browser name, version, isWebkit?}}\n * Possible browser names: chrome, safari, ie, edge, opera, mozilla, yabrowser\n */\nfunction getBrowserInfo() {\n const browser = {};\n if (typeof window === 'undefined') {\n return browser;\n }\n const ua = window.navigator.userAgent.toLowerCase();\n const match = /(edge|edg)\\/([\\w.]+)/.exec(ua) ||\n /(opr)[/]([\\w.]+)/.exec(ua) ||\n /(yabrowser)[ /]([\\w.]+)/.exec(ua) ||\n /(chrome)[ /]([\\w.]+)/.exec(ua) ||\n /(iemobile)[/]([\\w.]+)/.exec(ua) ||\n /(version)(applewebkit)[ /]([\\w.]+).*(safari)[ /]([\\w.]+)/.exec(ua) ||\n /(webkit)[ /]([\\w.]+).*(version)[ /]([\\w.]+).*(safari)[ /]([\\w.]+)/.exec(ua) ||\n /(webkit)[ /]([\\w.]+)/.exec(ua) ||\n /(opera)(?:.*version|)[ /]([\\w.]+)/.exec(ua) ||\n /(msie) ([\\w.]+)/.exec(ua) ||\n ua.indexOf('trident') >= 0 && /(rv)(?::| )([\\w.]+)/.exec(ua) ||\n ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(ua) ||\n [];\n const matched = {\n browser: match[5] || match[3] || match[1] || '',\n version: match[4] || match[2] || '0'\n };\n if (matched.browser) {\n browser[matched.browser] = true;\n browser.version = parseInt(matched.version, 10);\n }\n // Chrome, Opera 15+, Safari and Yandex.Browser are webkit based browsers\n if (browser.chrome || browser.opr || browser.safari || browser.edg || browser.yabrowser) {\n browser.isWebkit = true;\n }\n // IE11 has a new token so we will assign it ie to avoid breaking changes\n if (browser.rv || browser.iemobile) {\n browser.ie = true;\n }\n // Edge has a new token since it became webkit based\n if (browser.edg) {\n browser.edge = true;\n }\n // Opera 15+ are identified as opr\n if (browser.opr) {\n browser.opera = true;\n }\n return browser;\n}\nexports.getBrowserInfo = getBrowserInfo;\n/**\n * Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.\n * @param {string} path - The path to remove the indicies from.\n * @returns {string} - The path without the indicies.\n */\nfunction getComponentPathWithoutIndicies(path = '') {\n return path.replace(/\\[\\d+\\]/, '');\n}\nexports.getComponentPathWithoutIndicies = getComponentPathWithoutIndicies;\n/**\n * Returns a path to the component which based on its schema\n * @param {import('@formio/core').Component} component - Component containing link to its parent's schema in the 'parent' property\n * @param {string} path - Path to the component\n * @returns {string} - Path to the component\n */\nfunction getComponentPath(component, path = '') {\n var _a;\n if (!component || !component.key || ((_a = component === null || component === void 0 ? void 0 : component._form) === null || _a === void 0 ? void 0 : _a.display) === 'wizard') { // unlike the Webform, the Wizard has the key and it is a duplicate of the panel key\n return path;\n }\n path = component.isInputComponent || component.input === true ? `${component.key}${path ? '.' : ''}${path}` : path;\n return getComponentPath(component.parent, path);\n}\nexports.getComponentPath = getComponentPath;\n/**\n * Returns a parent component of the passed component instance skipping all the Layout components\n * @param {Component} componentInstance - The component to check for the parent.\n * @returns {Component|undefined} - The parent data component.\n */\nfunction getDataParentComponent(componentInstance) {\n if (!componentInstance) {\n return;\n }\n const { parent } = componentInstance;\n if (parent && (parent.isInputComponent || parent.input)) {\n return parent;\n }\n else {\n return getDataParentComponent(parent);\n }\n}\nexports.getDataParentComponent = getDataParentComponent;\n/**\n * Returns whether the value is a promise\n * @param {any} value - The value to check\n * @returns {boolean} - TRUE if the value is a promise; FALSE otherwise\n */\nfunction isPromise(value) {\n return value\n && value.then\n && typeof value.then === 'function'\n && Object.prototype.toString.call(value) === '[object Promise]';\n}\nexports.isPromise = isPromise;\n/**\n * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its\n * changes by itself, e.g. EditGrid)\n * @param {Component} componentInstance - The component to check for the scoping parent.\n * @param {boolean} firstPass - Whether it is the first pass of the function\n * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise\n */\nfunction isInsideScopingComponent(componentInstance, firstPass = true) {\n if (!firstPass && (componentInstance === null || componentInstance === void 0 ? void 0 : componentInstance.hasScopedChildren)) {\n return true;\n }\n const dataParent = getDataParentComponent(componentInstance);\n if (dataParent === null || dataParent === void 0 ? void 0 : dataParent.hasScopedChildren) {\n return true;\n }\n else if (dataParent === null || dataParent === void 0 ? void 0 : dataParent.parent) {\n return isInsideScopingComponent(dataParent.parent, false);\n }\n return false;\n}\nexports.isInsideScopingComponent = isInsideScopingComponent;\n/**\n * Returns all the focusable elements within the provided dom element.\n * @param {HTMLElement} element - The element to get the focusable elements from.\n * @returns {NodeList<HTMLElement>} - The focusable elements within the provided element.\n */\nfunction getFocusableElements(element) {\n const focusableSelector = `button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]`;\n return element.querySelectorAll(focusableSelector);\n}\nexports.getFocusableElements = getFocusableElements;\nexports.componentValueTypes = {\n number: 'number',\n string: 'string',\n boolean: 'boolean',\n array: 'array',\n object: 'object',\n date: 'date',\n any: 'any',\n};\n/**\n * Returns the saved types for the component\n * @param {import('@formio/core').Component} fullSchema - The component schema\n * @returns {Array<string>|null} - The saved types for the component\n */\nfunction getComponentSavedTypes(fullSchema) {\n const schema = fullSchema || {};\n if (schema.persistent !== true) {\n return [];\n }\n if (schema.multiple) {\n return [exports.componentValueTypes.array];\n }\n return null;\n}\nexports.getComponentSavedTypes = getComponentSavedTypes;\n/**\n * Interpolates @formio/core errors so that they are compatible with the renderer\n * @param {Component} component - The component to interpolate the errors for\n * @param {FieldError[]} errors - The errors to interpolate\n * @param {Function} interpolateFn - The interpolation function\n * @returns {[]} - The interpolated errors\n */\nconst interpolateErrors = (component, errors, interpolateFn) => {\n return errors.map((error) => {\n error.component = component;\n const { errorKeyOrMessage, context } = error;\n const toInterpolate = component.errors && component.errors[errorKeyOrMessage] ? component.errors[errorKeyOrMessage] : errorKeyOrMessage;\n return Object.assign(Object.assign({}, error), { message: unescapeHTML(interpolateFn(toInterpolate, context)), context: Object.assign({}, context) });\n });\n};\nexports.interpolateErrors = interpolateErrors;\n/**\n * Returns the template keys inside the template code.\n * @param {string} template - The template to get the keys from.\n * @returns {Array<string>} - The keys inside the template.\n */\nfunction getItemTemplateKeys(template) {\n const templateKeys = [];\n if (!template) {\n return templateKeys;\n }\n const keys = template.match(/({{\\s*(.*?)\\s*}})/g);\n if (keys) {\n keys.forEach((key) => {\n const propKey = key.match(/{{\\s*item\\.(.*?)\\s*}}/);\n if (propKey && propKey.length > 1) {\n templateKeys.push(propKey[1]);\n }\n });\n }\n return templateKeys;\n}\nexports.getItemTemplateKeys = getItemTemplateKeys;\n/**\n * Returns if the component is a select resource with an object for its value.\n * @param {import('@formio/core').Component} comp - The component to check.\n * @returns {boolean} - TRUE if the component is a select resource with an object for its value; FALSE otherwise.\n */\nfunction isSelectResourceWithObjectValue(comp = {}) {\n const { reference, dataSrc, valueProperty } = comp;\n return reference || (dataSrc === 'resource' && (!valueProperty || valueProperty === 'data'));\n}\nexports.isSelectResourceWithObjectValue = isSelectResourceWithObjectValue;\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/utils/utils.js?");
3524
+ eval("\n/* global jQuery */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToMoment = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.momentDate = exports.loadZones = exports.shouldLoadZones = exports.zonesLoaded = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.removeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getScriptPlugin = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = exports.moment = exports.ConditionOperators = exports.jsonLogic = void 0;\nexports.isSelectResourceWithObjectValue = exports.getItemTemplateKeys = exports.interpolateErrors = exports.getComponentSavedTypes = exports.componentValueTypes = exports._ = exports.getFocusableElements = exports.isInsideScopingComponent = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.isChildOf = exports.getArrayFromComponentPath = exports.isInputComponent = exports.interpolate = exports.Evaluator = exports.fastCloneDeep = exports.sanitize = exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = exports.observeOverload = exports.withSwitch = void 0;\nconst lodash_1 = __importDefault(__webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\"));\nexports._ = lodash_1.default;\nconst json_logic_js_1 = __importDefault(__webpack_require__(/*! json-logic-js */ \"./node_modules/json-logic-js/logic.js\"));\nexports.jsonLogic = json_logic_js_1.default;\nconst moment_timezone_1 = __importDefault(__webpack_require__(/*! moment-timezone/moment-timezone */ \"./node_modules/moment-timezone/moment-timezone.js\"));\nexports.moment = moment_timezone_1.default;\nconst jstimezonedetect_1 = __importDefault(__webpack_require__(/*! jstimezonedetect */ \"./node_modules/jstimezonedetect/dist/jstz.min.js\"));\nconst operators_1 = __webpack_require__(/*! ./jsonlogic/operators */ \"./lib/cjs/utils/jsonlogic/operators.js\");\nconst dompurify_1 = __importDefault(__webpack_require__(/*! dompurify */ \"./node_modules/dompurify/dist/purify.js\"));\nconst formUtils_1 = __webpack_require__(/*! ./formUtils */ \"./lib/cjs/utils/formUtils.js\");\nconst Evaluator_1 = __webpack_require__(/*! ./Evaluator */ \"./lib/cjs/utils/Evaluator.js\");\nObject.defineProperty(exports, \"Evaluator\", ({ enumerable: true, get: function () { return Evaluator_1.Evaluator; } }));\nconst conditionOperators_1 = __importDefault(__webpack_require__(/*! ./conditionOperators */ \"./lib/cjs/utils/conditionOperators/index.js\"));\nexports.ConditionOperators = conditionOperators_1.default;\nconst interpolate = Evaluator_1.Evaluator.interpolate;\nexports.interpolate = interpolate;\n__exportStar(__webpack_require__(/*! ./formUtils */ \"./lib/cjs/utils/formUtils.js\"), exports);\n// Configure JsonLogic\noperators_1.lodashOperators.forEach((name) => json_logic_js_1.default.add_operation(`_${name}`, lodash_1.default[name]));\n// Retrieve Any Date\njson_logic_js_1.default.add_operation('getDate', (date) => {\n return (0, moment_timezone_1.default)(date).toISOString();\n});\n// Set Relative Minimum Date\njson_logic_js_1.default.add_operation('relativeMinDate', (relativeMinDate) => {\n return (0, moment_timezone_1.default)().subtract(relativeMinDate, 'days').toISOString();\n});\n// Set Relative Maximum Date\njson_logic_js_1.default.add_operation('relativeMaxDate', (relativeMaxDate) => {\n return (0, moment_timezone_1.default)().add(relativeMaxDate, 'days').toISOString();\n});\n/**\n * Sets the path to the component and parent schema.\n * @param {import('@formio/core').Component} component - The component to set the path for.\n */\nfunction setPathToComponentAndPerentSchema(component) {\n component.path = getComponentPath(component);\n const dataParent = getDataParentComponent(component);\n if (dataParent && typeof dataParent === 'object') {\n dataParent.path = getComponentPath(dataParent);\n }\n}\n/**\n * Evaluate a method.\n * @param {Function|string|object} func - The function to evaluate.\n * @param {*} args - A map of arguments to pass to the function.\n * @param {string} ret - The name of the \"return\" variable in the script.\n * @param {boolean} interpolate - True if the script should be interpolated before being executed.\n * @param {import('@formio/core').EvaluatorOptions} options - The evaluator options.\n * @returns {*} - The result of the evaluation.\n */\nfunction evaluate(func, args, ret, interpolate, options = {}) {\n return Evaluator_1.Evaluator.evaluate(func, args, ret, interpolate, undefined, options);\n}\nexports.evaluate = evaluate;\n/**\n * Returns a random compoennt ID.\n * @returns {string} - A random component ID.\n */\nfunction getRandomComponentId() {\n return `e${Math.random().toString(36).substring(7)}`;\n}\nexports.getRandomComponentId = getRandomComponentId;\n/**\n * Get a property value of an element.\n * @param {CSSStyleDeclaration} style - The style element to get the property value from.\n * @param {string} prop - The property to get the value for.\n * @returns {number} - The value of the property.\n */\nfunction getPropertyValue(style, prop) {\n let value = style.getPropertyValue(prop);\n value = value ? value.replace(/[^0-9.]/g, '') : '0';\n return parseFloat(value);\n}\nexports.getPropertyValue = getPropertyValue;\n/**\n * Get an elements bounding rectagle.\n * @param {HTMLElement} element - A DOM element to get the bounding rectangle for.\n * @returns {{x: number, y: number, width: number, height: number}} - The bounding rectangle.\n */\nfunction getElementRect(element) {\n const style = window.getComputedStyle(element, null);\n return {\n x: getPropertyValue(style, 'left'),\n y: getPropertyValue(style, 'top'),\n width: getPropertyValue(style, 'width'),\n height: getPropertyValue(style, 'height')\n };\n}\nexports.getElementRect = getElementRect;\n/**\n * Get non HTMLElement property in the window object\n * @param {string} property - The window property to fetch the script plugin from.\n * @returns {any | undefined} - The HTML Element property on the window object.\n */\nfunction getScriptPlugin(property) {\n const obj = window[property];\n if (typeof HTMLElement === 'object' ? obj instanceof HTMLElement : //DOM2\n obj && typeof obj === 'object' && true && obj.nodeType === 1 && typeof obj.nodeName === 'string') {\n return undefined;\n }\n return obj;\n}\nexports.getScriptPlugin = getScriptPlugin;\n/**\n * Determines the boolean value of a setting.\n * @param {string|boolean} value - A string or boolean value to convert to boolean.\n * @returns {boolean} - The boolean value of the setting.\n */\nfunction boolValue(value) {\n if (lodash_1.default.isBoolean(value)) {\n return value;\n }\n else if (lodash_1.default.isString(value)) {\n return (value.toLowerCase() === 'true');\n }\n else {\n return !!value;\n }\n}\nexports.boolValue = boolValue;\n/**\n * Check to see if an ID is a mongoID.\n * @param {string} text - The text to check if it is a mongoID.\n * @returns {boolean} - TRUE if the text is a mongoID; FALSE otherwise.\n */\nfunction isMongoId(text) {\n return !!text.toString().match(/^[0-9a-fA-F]{24}$/);\n}\nexports.isMongoId = isMongoId;\n/**\n * Checks the calculated value for a provided component and data.\n * @param {import('@formio/core').Component} component - The component to check for the calculated value.\n * @param {import('@formio/core').Submission} submission - A submission object.\n * @param {*} rowData - The contextual row data for the component.\n */\nfunction checkCalculated(component, submission, rowData) {\n // Process calculated value stuff if present.\n if (component.calculateValue) {\n lodash_1.default.set(rowData, component.key, evaluate(component.calculateValue, {\n value: undefined,\n data: submission ? submission.data : rowData,\n row: rowData,\n util: this,\n component\n }, 'value'));\n }\n}\nexports.checkCalculated = checkCalculated;\n/**\n * Check if a simple conditional evaluates to true.\n * @param {import('@formio/core').Component} component - The component to check for the conditional.\n * @param {import('@formio/core').SimpleConditional} condition - The condition to check.\n * @param {*} row - The row data for the component.\n * @param {*} data - The full submission data.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The instance of the component.\n * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.\n */\n/**\n *\n * @param conditionPaths\n * @param data\n */\nfunction getConditionalPathsRecursive(conditionPaths, data) {\n let currentGlobalIndex = 0;\n const conditionalPathsArray = [];\n const getConditionalPaths = (data, currentPath = '', localIndex = 0) => {\n currentPath = currentPath.replace(/^\\.+|\\.+$/g, '');\n const currentLocalIndex = localIndex;\n const currentData = lodash_1.default.get(data, currentPath);\n if (Array.isArray(currentData) && currentData.filter(Boolean).length > 0) {\n if (currentData.some(element => typeof element !== 'object')) {\n return;\n }\n const hasInnerDataArray = currentData.find(x => Array.isArray(x[conditionPaths[currentLocalIndex]]));\n if (hasInnerDataArray) {\n currentData.forEach((_, indexOutside) => {\n const innerCompDataPath = `${currentPath}[${indexOutside}].${conditionPaths[currentLocalIndex]}`;\n getConditionalPaths(data, innerCompDataPath, currentLocalIndex + 1);\n });\n }\n else {\n currentData.forEach((x, index) => {\n if (!lodash_1.default.isNil(x[conditionPaths[currentLocalIndex]])) {\n const compDataPath = `${currentPath}[${index}].${conditionPaths[currentLocalIndex]}`;\n conditionalPathsArray.push(compDataPath);\n }\n });\n }\n }\n else {\n if (!conditionPaths[currentGlobalIndex]) {\n return;\n }\n currentGlobalIndex = currentGlobalIndex + 1;\n getConditionalPaths(data, `${currentPath}.${conditionPaths[currentGlobalIndex - 1]}`, currentGlobalIndex);\n }\n };\n getConditionalPaths(data);\n return conditionalPathsArray;\n}\n/**\n *\n * @param component\n * @param condition\n * @param row\n * @param data\n * @param instance\n */\nfunction checkSimpleConditional(component, condition, row, data, instance) {\n if (condition.when) {\n const value = getComponentActualValue(condition.when, data, row);\n const eq = String(condition.eq);\n const show = String(condition.show);\n // Special check for selectboxes component.\n if (lodash_1.default.isObject(value) && lodash_1.default.has(value, condition.eq)) {\n return String(value[condition.eq]) === show;\n }\n // FOR-179 - Check for multiple values.\n if (Array.isArray(value) && value.map(String).includes(eq)) {\n return show === 'true';\n }\n return (String(value) === eq) === (show === 'true');\n }\n else {\n const { conditions = [], conjunction = 'all', show = true } = condition;\n if (!conditions.length) {\n return true;\n }\n const conditionsResult = lodash_1.default.map(conditions, (cond) => {\n var _a, _b;\n const { value: comparedValue, operator, component: conditionComponentPath } = cond;\n if (!conditionComponentPath) {\n return true;\n }\n const splittedConditionPath = conditionComponentPath.split('.');\n const conditionalPaths = ((_a = instance === null || instance === void 0 ? void 0 : instance.parent) === null || _a === void 0 ? void 0 : _a.type) === 'datagrid' || ((_b = instance === null || instance === void 0 ? void 0 : instance.parent) === null || _b === void 0 ? void 0 : _b.type) === 'editgrid' ? [] : getConditionalPathsRecursive(splittedConditionPath, data);\n if (conditionalPaths.length > 0) {\n return conditionalPaths.map((path) => {\n const value = getComponentActualValue(path, data, row);\n const ConditionOperator = conditionOperators_1.default[operator];\n return ConditionOperator\n ? new ConditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })\n : true;\n });\n }\n else {\n const value = getComponentActualValue(conditionComponentPath, data, row);\n const СonditionOperator = conditionOperators_1.default[operator];\n return СonditionOperator\n ? new СonditionOperator().getResult({ value, comparedValue, instance, component, conditionComponentPath })\n : true;\n }\n });\n let result = false;\n switch (conjunction) {\n case 'any':\n result = lodash_1.default.some(conditionsResult.flat(), res => !!res);\n break;\n default:\n result = lodash_1.default.every(conditionsResult.flat(), res => !!res);\n }\n return show ? result : !result;\n }\n}\nexports.checkSimpleConditional = checkSimpleConditional;\n/**\n * Returns a components normalized value.\n * @param {string} compPath - The full path to the component.\n * @param {*} data - The data object to get the value from.\n * @param {*} row - The contextual row data for the component.\n * @returns {*} - The normalized value of the component.\n */\nfunction getComponentActualValue(compPath, data, row) {\n let value = null;\n if (row) {\n value = (0, formUtils_1.getValue)({ data: row }, compPath);\n }\n if (data && lodash_1.default.isNil(value)) {\n value = (0, formUtils_1.getValue)({ data }, compPath);\n }\n // FOR-400 - Fix issue where falsey values were being evaluated as show=true\n if (lodash_1.default.isNil(value) || (lodash_1.default.isObject(value) && lodash_1.default.isEmpty(value))) {\n value = '';\n }\n return value;\n}\nexports.getComponentActualValue = getComponentActualValue;\n/**\n * Check custom javascript conditional.\n * @param {import('@formio/core').Component} component - The component to check for the conditional.\n * @param {string} custom - The custom conditional string to evaluate.\n * @param {*} row - The row data for the component.\n * @param {*} data - The full submission data.\n * @param {import('@formio/core').Form} form - The form object.\n * @param {string} variable - The variable name for the result of the custom conditional.\n * @param {*} onError - A custom return if there is an error or the value is null from the evaluation.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.\n * @returns {*} - The result of the evaulation.\n */\nfunction checkCustomConditional(component, custom, row, data, form, variable, onError, instance) {\n if (typeof custom === 'string') {\n custom = `var ${variable} = true; ${custom}; return ${variable};`;\n }\n const value = (instance && instance.evaluate) ?\n instance.evaluate(custom, { row, data, form }) :\n evaluate(custom, { row, data, form });\n if (value === null) {\n return onError;\n }\n return value;\n}\nexports.checkCustomConditional = checkCustomConditional;\n/**\n * Check a component for JSON conditionals.\n * @param {import('@formio/core').Component} component - The component\n * @param {import('@formio/core').JSONConditional} json - The json conditional to check.\n * @param {*} row - The contextual row data for the component.\n * @param {*} data - The full submission data.\n * @param {import('@formio/core').Form} form - The Form JSON of the form.\n * @param {*} onError - Custom return value if there is an error.\n * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.\n */\nfunction checkJsonConditional(component, json, row, data, form, onError) {\n try {\n return json_logic_js_1.default.apply(json, {\n data,\n row,\n form,\n _: lodash_1.default,\n });\n }\n catch (err) {\n console.warn(`An error occurred in jsonLogic advanced condition for ${component.key}`, err);\n return onError;\n }\n}\nexports.checkJsonConditional = checkJsonConditional;\n/**\n * Returns the contextual row data for a component.\n * @param {import('@formio/core').Component} component - The component to get the row data for.\n * @param {*} row - The row data for the component.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.\n * @param {*} conditional - The component conditional.\n * @returns {*} - The contextual row data for the component.\n */\nfunction getRow(component, row, instance, conditional) {\n var _a;\n const condition = conditional || component.conditional;\n // If no component's instance passed (happens only in 6.x server), calculate its path based on the schema\n if (!instance) {\n instance = lodash_1.default.cloneDeep(component);\n setPathToComponentAndPerentSchema(instance);\n }\n const dataParent = getDataParentComponent(instance);\n const parentPath = dataParent ? getComponentPath(dataParent) : null;\n const isTriggerCondtionComponentPath = condition.when || !condition.conditions\n ? (_a = condition.when) === null || _a === void 0 ? void 0 : _a.startsWith(parentPath)\n : lodash_1.default.some(condition.conditions, cond => cond.component.startsWith(parentPath));\n if (dataParent && isTriggerCondtionComponentPath) {\n const newRow = {};\n lodash_1.default.set(newRow, parentPath, row);\n row = newRow;\n }\n return row;\n}\n/**\n * Checks the conditions for a provided component and data.\n * @param {import('@formio/core').Component} component - The component to check for the condition.\n * @param {*} row - The data within a row\n * @param {*} data - The full submission data.\n * @param {import('@formio/core').Form} form - The form object.\n * @param {import('../../src/components/_classes/component/Component').Component} instance - The component instance.\n * @returns {boolean} - TRUE if the condition is true; FALSE otherwise.\n */\nfunction checkCondition(component, row, data, form, instance) {\n const { customConditional, conditional } = component;\n if (customConditional) {\n return checkCustomConditional(component, customConditional, row, data, form, 'show', true, instance);\n }\n else if (conditional && (conditional.when || lodash_1.default.some(conditional.conditions || [], condition => condition.component && condition.operator))) {\n row = getRow(component, row, instance);\n return checkSimpleConditional(component, conditional, row, data, instance);\n }\n else if (conditional && conditional.json) {\n return checkJsonConditional(component, conditional.json, row, data, form, true);\n }\n // Default to show.\n return true;\n}\nexports.checkCondition = checkCondition;\n/**\n * Test a trigger on a component.\n * @param {import('@formio/core').Component} component - The component to test the trigger against.\n * @param {import('@formio/core').LogicTrigger} trigger - The trigger configuration.\n * @param {import('@formio/core').DataObject} row - The contextual row data.\n * @param {import('@formio/core').DataObject} data - The root data object.\n * @param {import('@formio/core').Form} form - The form object.\n * @param {any} instance - The component that is performing the trigger.\n * @returns {boolean} - TRUE if the trigger should fire; FALSE otherwise.\n */\nfunction checkTrigger(component, trigger, row, data, form, instance) {\n // If trigger is empty, don't fire it\n if (!trigger || !trigger[trigger.type]) {\n return false;\n }\n switch (trigger.type) {\n case 'simple':\n row = getRow(component, row, instance, trigger.simple);\n return checkSimpleConditional(component, trigger.simple, row, data, instance);\n case 'javascript':\n return checkCustomConditional(component, trigger.javascript, row, data, form, 'result', false, instance);\n case 'json':\n return checkJsonConditional(component, trigger.json, row, data, form, false);\n }\n // If none of the types matched, don't fire the trigger.\n return false;\n}\nexports.checkTrigger = checkTrigger;\n/**\n * Sets a property on a component via an executed Logic action.\n * @param {import('@formio/core').Component} component - The component to set the property on.\n * @param {import('@formio/core').LogicAction} action - The action to perform on the component.\n * @param {string} result - The name of the variable in the evaulation to use as the result.\n * @param {import('@formio/core').DataObject} row - The contextual row data.\n * @param {import('@formio/core').DataObject} data - The full submission data.\n * @param {any} instance - The component instance.\n * @returns {import('@formio/core').Component} - The modified component.\n */\nfunction setActionProperty(component, action, result, row, data, instance) {\n const property = action.property.value;\n switch (action.property.type) {\n case 'boolean': {\n const currentValue = lodash_1.default.get(component, property, false).toString();\n const newValue = action.state.toString();\n if (currentValue !== newValue) {\n lodash_1.default.set(component, property, newValue === 'true');\n }\n break;\n }\n case 'string': {\n const evalData = {\n data,\n row,\n component,\n result,\n };\n const textValue = action.property.component ? action[action.property.component] : action.text;\n const currentValue = lodash_1.default.get(component, property, '');\n const newValue = (instance && instance.interpolate)\n ? instance.interpolate(textValue, evalData)\n : Evaluator_1.Evaluator.interpolate(textValue, evalData);\n if (newValue !== currentValue) {\n lodash_1.default.set(component, property, newValue);\n }\n break;\n }\n }\n return component;\n}\nexports.setActionProperty = setActionProperty;\n/**\n * Removes HTML tags from string e.g. <div>Hello World</div> => Hello World\n * @param {string} str - The string to remove HTML tags from.\n * @returns {string} - The string without HTML tags.\n */\nfunction removeHTML(str) {\n const doc = new window.DOMParser().parseFromString(str, 'text/html');\n return (doc.body.textContent || '').trim();\n}\nexports.removeHTML = removeHTML;\n/**\n * Unescape HTML characters like &lt, &gt, &amp and etc.\n * @param {string} str - The string to unescape.\n * @returns {string} - The unescaped string.\n */\nfunction unescapeHTML(str) {\n if (typeof window === 'undefined' || !('DOMParser' in window)) {\n return str;\n }\n const elem = document.createElement('textarea');\n elem.innerHTML = str;\n return elem.value;\n}\nexports.unescapeHTML = unescapeHTML;\n/**\n * Make HTML element from string\n * @param {string} str - The string to convert to an HTML element.\n * @param {string} selector - The selector to use to get the element once it is created.\n * @returns {HTMLElement} - The HTML element that was created.\n */\nfunction convertStringToHTMLElement(str, selector) {\n const doc = new window.DOMParser().parseFromString(str, 'text/html');\n return doc.body.querySelector(selector);\n}\nexports.convertStringToHTMLElement = convertStringToHTMLElement;\n/**\n * Make a filename guaranteed to be unique.\n * @param {string} name - The original name of the file.\n * @param {string} template - The template to use for the unique name.\n * @param {object} evalContext - The context to use for the evaluation.\n * @returns {string} - A unique filename.\n */\nfunction uniqueName(name, template, evalContext) {\n template = template || '{{fileName}}-{{guid}}';\n //include guid in template anyway, to prevent overwriting issue if filename matches existing file\n if (!template.includes('{{guid}}')) {\n template = `${template}-{{guid}}`;\n }\n const parts = name.split('.');\n let fileName = parts.slice(0, parts.length - 1).join('.');\n const extension = parts.length > 1\n ? `.${lodash_1.default.last(parts)}`\n : '';\n //allow only 100 characters from original name to avoid issues with filename length restrictions\n fileName = fileName.substr(0, 100);\n evalContext = Object.assign(evalContext || {}, {\n fileName,\n guid: guid()\n });\n //only letters, numbers, dots, dashes, underscores and spaces are allowed. Anything else will be replaced with dash\n const uniqueName = `${Evaluator_1.Evaluator.interpolate(template, evalContext)}${extension}`.replace(/[^0-9a-zA-Z.\\-_ ]/g, '-');\n return uniqueName;\n}\nexports.uniqueName = uniqueName;\n/**\n * Returns a GUID\n * @returns {string} - A GUID.\n */\nfunction guid() {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {\n const r = Math.random() * 16 | 0;\n const v = c === 'x'\n ? r\n : (r & 0x3 | 0x8);\n return v.toString(16);\n });\n}\nexports.guid = guid;\n/**\n * Return a translated date setting.\n * @param {string|Date} date - The date to translate.\n * @returns {(null|Date)} - The translated date.\n */\nfunction getDateSetting(date) {\n if (lodash_1.default.isNil(date) || lodash_1.default.isNaN(date) || date === '') {\n return null;\n }\n if (date instanceof Date) {\n return date;\n }\n else if (typeof date.toDate === 'function') {\n return date.isValid() ? date.toDate() : null;\n }\n let dateSetting = ((typeof date !== 'string') || (date.indexOf('moment(') === -1)) ? (0, moment_timezone_1.default)(date) : null;\n if (dateSetting && dateSetting.isValid()) {\n return dateSetting.toDate();\n }\n dateSetting = null;\n try {\n const value = Evaluator_1.Evaluator.evaluator(`return ${date};`, 'moment')(moment_timezone_1.default);\n if (typeof value === 'string') {\n dateSetting = (0, moment_timezone_1.default)(value);\n }\n else if (typeof value.toDate === 'function') {\n dateSetting = (0, moment_timezone_1.default)(value.toDate().toUTCString());\n }\n else if (value instanceof Date) {\n dateSetting = (0, moment_timezone_1.default)(value);\n }\n }\n catch (e) {\n return null;\n }\n if (!dateSetting) {\n return null;\n }\n // Ensure this is a date.\n if (!dateSetting.isValid()) {\n return null;\n }\n return dateSetting.toDate();\n}\nexports.getDateSetting = getDateSetting;\n/**\n * Returns true if the date is a valid date. False otherwise.\n * @param {Date|string} date - The date to check for validity.\n * @returns {boolean} - TRUE if the date is valid; FALSE otherwise.\n */\nfunction isValidDate(date) {\n return lodash_1.default.isDate(date) && !lodash_1.default.isNaN(date.getDate());\n}\nexports.isValidDate = isValidDate;\n/**\n * Get the current timezone string.\n * @returns {string} - The current timezone.\n */\nfunction currentTimezone() {\n if (moment_timezone_1.default.currentTimezone) {\n return moment_timezone_1.default.currentTimezone;\n }\n moment_timezone_1.default.currentTimezone = jstimezonedetect_1.default.determine().name();\n return moment_timezone_1.default.currentTimezone;\n}\nexports.currentTimezone = currentTimezone;\n/**\n * Get an offset date provided a date object and timezone object.\n * @param {Date} date - The date to offset.\n * @param {string} timezone - The timezone to offset the date to.\n * @returns {Date} - The offset date.\n */\nfunction offsetDate(date, timezone) {\n if (timezone === 'UTC') {\n return {\n date: new Date(date.getTime() + (date.getTimezoneOffset() * 60000)),\n abbr: 'UTC'\n };\n }\n const dateMoment = (0, moment_timezone_1.default)(date).tz(timezone);\n return {\n date: new Date(date.getTime() + ((dateMoment.utcOffset() + date.getTimezoneOffset()) * 60000)),\n abbr: dateMoment.format('z')\n };\n}\nexports.offsetDate = offsetDate;\n/**\n * Returns if the zones are loaded.\n * @returns {boolean} - TRUE if the zones are loaded; FALSE otherwise.\n */\nfunction zonesLoaded() {\n return moment_timezone_1.default.zonesLoaded;\n}\nexports.zonesLoaded = zonesLoaded;\n/**\n * Returns if we should load the zones.\n * @param {string} timezone - The timezone to check if we should load the zones.\n * @returns {boolean} - TRUE if we should load the zones; FALSE otherwise.\n */\nfunction shouldLoadZones(timezone) {\n if (timezone === currentTimezone() || timezone === 'UTC') {\n return false;\n }\n return true;\n}\nexports.shouldLoadZones = shouldLoadZones;\n/**\n * Externally load the timezone data.\n * @param {string} url - The URL to load the timezone data from.\n * @param {string} timezone - The timezone to load.\n * @returns {Promise<any> | *} - Resolves when the zones for this timezone are loaded.\n */\nfunction loadZones(url, timezone) {\n if (timezone && !shouldLoadZones(timezone)) {\n // Return non-resolving promise.\n return new Promise(lodash_1.default.noop);\n }\n if (moment_timezone_1.default.zonesPromise) {\n return moment_timezone_1.default.zonesPromise;\n }\n return moment_timezone_1.default.zonesPromise = fetch(url)\n .then(resp => resp.json().then(zones => {\n moment_timezone_1.default.tz.load(zones);\n moment_timezone_1.default.zonesLoaded = true;\n // Trigger a global event that the timezones have finished loading.\n if (document && document.createEvent && document.body && document.body.dispatchEvent) {\n var event = document.createEvent('Event');\n event.initEvent('zonesLoaded', true, true);\n document.body.dispatchEvent(event);\n }\n }));\n}\nexports.loadZones = loadZones;\n/**\n * Get the moment date object for translating dates with timezones.\n * @param {string|Date} value - The value to convert into a moment date.\n * @param {string} format - The format to convert the date to.\n * @param {string} timezone - The timezone to convert the date to.\n * @returns {Date} - The moment date object.\n */\nfunction momentDate(value, format, timezone) {\n const momentDate = (0, moment_timezone_1.default)(value);\n if (!timezone) {\n return momentDate;\n }\n if (timezone === 'UTC') {\n timezone = 'Etc/UTC';\n }\n if ((timezone !== currentTimezone() || (format && format.match(/\\s(z$|z\\s)/))) && moment_timezone_1.default.zonesLoaded) {\n return momentDate.tz(timezone);\n }\n return momentDate;\n}\nexports.momentDate = momentDate;\n/**\n * Format a date provided a value, format, and timezone object.\n * @param {string} timezonesUrl - The URL to load the timezone data from.\n * @param {string|Date} value - The value to format.\n * @param {string} format - The format to format the date to.\n * @param {string} timezone - The timezone to format the date to.\n * @param {string} flatPickrInputFormat - The format to use for flatpickr input.\n * @returns {string} - The formatted date.\n */\nfunction formatDate(timezonesUrl, value, format, timezone, flatPickrInputFormat) {\n const momentDate = (0, moment_timezone_1.default)(value, flatPickrInputFormat || undefined);\n if (timezone === currentTimezone()) {\n // See if our format contains a \"z\" timezone character.\n if (format.match(/\\s(z$|z\\s)/)) {\n loadZones(timezonesUrl);\n if (moment_timezone_1.default.zonesLoaded) {\n return momentDate.tz(timezone).format(convertFormatToMoment(format));\n }\n else {\n return momentDate.format(convertFormatToMoment(format.replace(/\\s(z$|z\\s)/, '')));\n }\n }\n // Return the standard format.\n return momentDate.format(convertFormatToMoment(format));\n }\n if (timezone === 'UTC') {\n const offset = offsetDate(momentDate.toDate(), 'UTC');\n return `${(0, moment_timezone_1.default)(offset.date).format(convertFormatToMoment(format))} UTC`;\n }\n // Load the zones since we need timezone information.\n loadZones(timezonesUrl);\n if (moment_timezone_1.default.zonesLoaded && timezone) {\n return momentDate.tz(timezone).format(`${convertFormatToMoment(format)} z`);\n }\n else {\n return momentDate.format(convertFormatToMoment(format));\n }\n}\nexports.formatDate = formatDate;\n/**\n * Pass a format function to format within a timezone.\n * @param {string} timezonesUrl - The URL to load the timezone data from.\n * @param {Function} formatFn - The format function to use.\n * @param {Date|string} date - The date to format.\n * @param {string} format - The format to format the date to.\n * @param {string} timezone - The timezone to format the date to.\n * @returns {string} - The formatted date.\n */\nfunction formatOffset(timezonesUrl, formatFn, date, format, timezone) {\n if (timezone === currentTimezone()) {\n return formatFn(date, format);\n }\n if (timezone === 'UTC') {\n return `${formatFn(offsetDate(date, 'UTC').date, format)} UTC`;\n }\n // Load the zones since we need timezone information.\n loadZones(timezonesUrl);\n if (moment_timezone_1.default.zonesLoaded) {\n const offset = offsetDate(date, timezone);\n return `${formatFn(offset.date, format)} ${offset.abbr}`;\n }\n else {\n return formatFn(date, format);\n }\n}\nexports.formatOffset = formatOffset;\n/**\n * Returns the local date format information.\n * @param {Intl.LocalesArgument} locale - The locale to get the date format for.\n * @returns {object} - The local date format information.\n */\nfunction getLocaleDateFormatInfo(locale) {\n const formatInfo = {};\n const day = 21;\n const exampleDate = new Date(2017, 11, day);\n const localDateString = exampleDate.toLocaleDateString(locale);\n formatInfo.dayFirst = localDateString.slice(0, 2) === day.toString();\n return formatInfo;\n}\nexports.getLocaleDateFormatInfo = getLocaleDateFormatInfo;\n/**\n * Convert the format from the angular-datepicker module to flatpickr format.\n * @param {string} format - The format to convert.\n * @returns {string} - The converted format.\n */\nfunction convertFormatToFlatpickr(format) {\n return format\n // Remove the Z timezone offset, not supported by flatpickr.\n .replace(/Z/g, '')\n // Year conversion.\n .replace(/y/g, 'Y')\n .replace('YYYY', 'Y')\n .replace('YY', 'y')\n // Month conversion.\n .replace('MMMM', 'F')\n .replace(/M/g, 'n')\n .replace('nnn', 'M')\n .replace('nn', 'm')\n // Day in month.\n .replace(/d/g, 'j')\n .replace(/jj/g, 'd')\n // Day in week.\n .replace('EEEE', 'l')\n .replace('EEE', 'D')\n // Hours, minutes, seconds\n .replace('HH', 'H')\n .replace('hh', 'G')\n .replace('mm', 'i')\n .replace('ss', 'S')\n .replace(/a/g, 'K');\n}\nexports.convertFormatToFlatpickr = convertFormatToFlatpickr;\n/**\n * Convert the format from the angular-datepicker module to moment format.\n * @param {string} format - The format to convert.\n * @returns {string} - The converted format.\n */\nfunction convertFormatToMoment(format) {\n return format\n // Year conversion.\n .replace(/y/g, 'Y')\n // Day in month.\n .replace(/d/g, 'D')\n // Day in week.\n .replace(/E/g, 'd')\n // AM/PM marker\n .replace(/a/g, 'A')\n // Unix Timestamp\n .replace(/U/g, 'X');\n}\nexports.convertFormatToMoment = convertFormatToMoment;\n/**\n * Convert the format from the angular-datepicker module to mask format.\n * @param {string} format - The format to convert.\n * @returns {string} - The converted format.\n */\nfunction convertFormatToMask(format) {\n return format\n // Long month replacement.\n .replace(/M{4}/g, 'MM')\n // Initial short month conversion.\n .replace(/M{3}/g, '***')\n // Short month conversion if input as text.\n .replace(/e/g, 'Q')\n // Month number conversion.\n .replace(/W/g, '99')\n // Year conversion.\n .replace(/[ydhmswHMG]/g, '9')\n // AM/PM conversion.\n .replace(/a/g, 'AA');\n}\nexports.convertFormatToMask = convertFormatToMask;\n/**\n * Returns an input mask that is compatible with the input mask library.\n * @param {string} mask - The Form.io input mask.\n * @param {string} placeholderChar - Char which is used as a placeholder.\n * @returns {Array} - The input mask for the mask library.\n */\nfunction getInputMask(mask, placeholderChar) {\n if (mask instanceof Array) {\n return mask;\n }\n const maskArray = [];\n maskArray.numeric = true;\n for (let i = 0; i < mask.length; i++) {\n switch (mask[i]) {\n case '9':\n maskArray.push(/\\d/);\n break;\n case 'A':\n maskArray.numeric = false;\n maskArray.push(/[a-zA-Z]/);\n break;\n case 'a':\n maskArray.numeric = false;\n maskArray.push(/[a-z]/);\n break;\n case '*':\n maskArray.numeric = false;\n maskArray.push(/[a-zA-Z0-9]/);\n break;\n // If char which is used inside mask placeholder was used in the mask, replace it with space to prevent errors\n case placeholderChar:\n maskArray.numeric = false;\n maskArray.push(' ');\n break;\n default:\n maskArray.numeric = false;\n maskArray.push(mask[i]);\n break;\n }\n }\n return maskArray;\n}\nexports.getInputMask = getInputMask;\n/**\n * Unmasks a value using the provided mask and placeholder characters.\n * @param {string} value - The value to unmask.\n * @param {string} mask - The mask to use for unmasking.\n * @param {string} placeholderChar - The placeholder character to use for unmasking.\n * @returns {string} - The unmasked value.\n */\nfunction unmaskValue(value, mask, placeholderChar) {\n if (!mask || !value || value.length > mask.length) {\n return value;\n }\n let unmaskedValue = value.split('');\n for (let i = 0; i < mask.length; i++) {\n const char = value[i] || '';\n const charPart = mask[i];\n if (!lodash_1.default.isRegExp(charPart) && char === charPart) {\n unmaskedValue[i] = '';\n }\n }\n unmaskedValue = unmaskedValue.join('').replace(placeholderChar, '');\n return unmaskedValue;\n}\nexports.unmaskValue = unmaskValue;\n/**\n * Returns true if the value matches the input mask format.\n * @param {string} value - The value to check.\n * @param {string} inputMask - The input mask to check against.\n * @returns {boolean} - TRUE if the value matches the input mask; FALSE otherwise.\n */\nfunction matchInputMask(value, inputMask) {\n if (!inputMask) {\n return true;\n }\n // If value is longer than mask, it isn't valid.\n if (value.length > inputMask.length) {\n return false;\n }\n for (let i = 0; i < inputMask.length; i++) {\n const char = value[i] || '';\n const charPart = inputMask[i];\n if (!(lodash_1.default.isRegExp(charPart) && charPart.test(char) || charPart === char)) {\n return false;\n }\n }\n return true;\n}\nexports.matchInputMask = matchInputMask;\n/**\n * Returns the number separators (i.e. 1,000) for the provided language.\n * @param {string} lang - The language code to get the number separators for.\n * @returns {{delimiter: string, decimalSeparator: string}} - The number separators.\n */\nfunction getNumberSeparators(lang = 'en') {\n const formattedNumberString = (12345.6789).toLocaleString(lang);\n const delimeters = formattedNumberString.match(/..(.)...(.)../);\n if (!delimeters) {\n return {\n delimiter: ',',\n decimalSeparator: '.'\n };\n }\n return {\n delimiter: (delimeters.length > 1) ? delimeters[1] : ',',\n decimalSeparator: (delimeters.length > 2) ? delimeters[2] : '.',\n };\n}\nexports.getNumberSeparators = getNumberSeparators;\n/**\n * Returns the number for the maximum amount of decimal places for a number.\n * @param {import('@formio/core').Component} component - The component to check for decimal limits.\n * @param {number} defaultLimit - The default limit to use if none is provided in the component.\n * @returns {number} - The number of decimal places allowed.\n */\nfunction getNumberDecimalLimit(component, defaultLimit) {\n if (lodash_1.default.has(component, 'decimalLimit')) {\n return lodash_1.default.get(component, 'decimalLimit');\n }\n // Determine the decimal limit. Defaults to 20 but can be overridden by validate.step or decimalLimit settings.\n let decimalLimit = defaultLimit || 20;\n const step = lodash_1.default.get(component, 'validate.step', 'any');\n if (step !== 'any') {\n const parts = step.toString().split('.');\n if (parts.length > 1) {\n decimalLimit = parts[1].length;\n }\n }\n return decimalLimit;\n}\nexports.getNumberDecimalLimit = getNumberDecimalLimit;\n/**\n * Returns the currency affixes for a specific language.\n * @param {object} arg0 - The arguments object.\n * @param {string} arg0.currency - The currency code to get the affixes for.\n * @param {number} arg0.decimalLimit - The number of decimal places to use.\n * @param {string} arg0.decimalSeparator - The decimal separator to use.\n * @param {string} arg0.lang - The language code to use.\n * @returns {{prefix: string, suffix: string}} - The currency affixes.\n */\nfunction getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, lang, }) {\n // Get the prefix and suffix from the localized string.\n let regex = `(.*)?${(100).toLocaleString(lang)}`;\n if (decimalLimit) {\n regex += `${decimalSeparator === '.' ? '\\\\.' : decimalSeparator}${(0).toLocaleString(lang)}{${decimalLimit}}`;\n }\n regex += '(.*)?';\n const parts = (100).toLocaleString(lang, {\n style: 'currency',\n currency: currency ? currency : 'USD',\n useGrouping: true,\n maximumFractionDigits: decimalLimit || 0,\n minimumFractionDigits: decimalLimit || 0\n }).replace('.', decimalSeparator).match(new RegExp(regex));\n return {\n prefix: (parts === null || parts === void 0 ? void 0 : parts[1]) || '',\n suffix: (parts === null || parts === void 0 ? void 0 : parts[2]) || ''\n };\n}\nexports.getCurrencyAffixes = getCurrencyAffixes;\n/**\n * Fetch the field data provided a component.\n * @param {import('@formio/core').DataObject} data - The data object to fetch the field data from.\n * @param {import('@formio/core').Component} component - The component to fetch the field data for.\n * @returns {*} - The field data.\n */\nfunction fieldData(data, component) {\n if (!data) {\n return '';\n }\n if (!component || !component.key) {\n return data;\n }\n if (component.key.includes('.')) {\n let value = data;\n const parts = component.key.split('.');\n let key = '';\n for (let i = 0; i < parts.length; i++) {\n key = parts[i];\n // Handle nested resources\n if (value.hasOwnProperty('_id')) {\n value = value.data;\n }\n // Return if the key is not found on the value.\n if (!value.hasOwnProperty(key)) {\n return;\n }\n // Convert old single field data in submissions to multiple\n if (key === parts[parts.length - 1] && component.multiple && !Array.isArray(value[key])) {\n value[key] = [value[key]];\n }\n // Set the value of this key.\n value = value[key];\n }\n return value;\n }\n else {\n // Convert old single field data in submissions to multiple\n if (component.multiple && !Array.isArray(data[component.key])) {\n data[component.key] = [data[component.key]];\n }\n // Fix for checkbox type radio submission values in tableView\n if (component.type === 'checkbox' && component.inputType === 'radio') {\n return data[component.name] === component.value;\n }\n return data[component.key];\n }\n}\nexports.fieldData = fieldData;\n/**\n * Delays function execution with possibility to execute function synchronously or cancel it.\n * @param {Function} fn - Function to delay\n * @param {number} delay - Delay time\n * @param {...any} args - Arguments to pass to the function\n * @returns {*} - Function to cancel the delay\n */\nfunction delay(fn, delay = 0, ...args) {\n const timer = setTimeout(fn, delay, ...args);\n /**\n *\n */\n function cancel() {\n clearTimeout(timer);\n }\n /**\n * Execute the function early.\n * @returns {*} - The result of the function.\n */\n function earlyCall() {\n cancel();\n return fn(...args);\n }\n earlyCall.timer = timer;\n earlyCall.cancel = cancel;\n return earlyCall;\n}\nexports.delay = delay;\n/**\n * Iterate the given key to make it unique.\n * @param {string} key\n * Modify the component key to be unique.\n * @returns {string}\n * The new component key.\n */\nfunction iterateKey(key) {\n if (!key.match(/(\\d+)$/)) {\n return `${key}1`;\n }\n return key.replace(/(\\d+)$/, function (suffix) {\n return Number(suffix) + 1;\n });\n}\nexports.iterateKey = iterateKey;\n/**\n * Determines a unique key within a map provided the base key.\n * @param {Record<string, string>} map - The map to check for uniqueness.\n * @param {string} base - The base path of the key.\n * @returns {string} - The unique key.\n */\nfunction uniqueKey(map, base) {\n let newKey = base;\n while (map.hasOwnProperty(newKey)) {\n newKey = iterateKey(newKey);\n }\n return newKey;\n}\nexports.uniqueKey = uniqueKey;\n/**\n * Determines the major version number of bootstrap.\n * @param {object} options - The options to check for bootstrap version.\n * @param {string} options.bootstrap - The bootstrap version to use.\n * @returns {number} - The bootstrap version.\n */\nfunction bootstrapVersion(options) {\n if (options.bootstrap) {\n return options.bootstrap;\n }\n if ((typeof jQuery === 'function') && (typeof jQuery().collapse === 'function')) {\n return parseInt(jQuery.fn.collapse.Constructor.VERSION.split('.')[0], 10);\n }\n if (window.bootstrap && window.bootstrap.Collapse) {\n return parseInt(window.bootstrap.Collapse.VERSION.split('.')[0], 10);\n }\n return 0;\n}\nexports.bootstrapVersion = bootstrapVersion;\n/**\n * Retrun provided argument.\n * If argument is a function, returns the result of a function call.\n * @param {Function|any} e - The argument to check if a function and call if so.\n * @returns {any} - Either the result of the function call (e) or e if it is not a function.\n */\nfunction unfold(e) {\n if (typeof e === 'function') {\n return e();\n }\n return e;\n}\nexports.unfold = unfold;\n/**\n * Map values through unfold and return first non-nil value.\n * @param {Array<T>} collection - The collection to map through unfold.;\n * @returns {T} - The first non-nil value.\n */\nexports.firstNonNil = lodash_1.default.flow([\n lodash_1.default.partialRight(lodash_1.default.map, unfold),\n lodash_1.default.partialRight(lodash_1.default.find, v => !lodash_1.default.isUndefined(v))\n]);\n/**\n * Create enclosed state. Returns functions to getting and cycling between states.\n * @param {*} a - initial state.\n * @param {*} b - next state.\n * @returns {Functions[]} -- [get, toggle];\n */\nfunction withSwitch(a, b) {\n let state = a;\n let next = b;\n /**\n * Returns the state of the switch.\n * @returns {*} - The current state.\n */\n function get() {\n return state;\n }\n /**\n * Toggles the state of the switch.\n */\n function toggle() {\n const prev = state;\n state = next;\n next = prev;\n }\n return [get, toggle];\n}\nexports.withSwitch = withSwitch;\n/**\n * Create a function that will call the provided function only the provided limit.\n * @param {Function} callback - The callback to call.\n * @param {object} options - The options to use.\n * @param {number} options.limit - The limit to call the callback.\n * @param {number} options.delay - The delay to wait before resetting the call count.\n * @returns {Function} - The function that will call the callback only the provided limit.\n */\nfunction observeOverload(callback, options = {}) {\n const { limit = 50, delay = 500 } = options;\n let callCount = 0;\n let timeoutID = 0;\n const reset = () => callCount = 0;\n return () => {\n if (timeoutID !== 0) {\n clearTimeout(timeoutID);\n timeoutID = 0;\n }\n timeoutID = setTimeout(reset, delay);\n callCount += 1;\n if (callCount >= limit) {\n clearTimeout(timeoutID);\n reset();\n return callback();\n }\n };\n}\nexports.observeOverload = observeOverload;\n/**\n * Returns the components that are provided within an evaluation context.\n * @param {any} context - The evaluation context to get the components from.\n * @param {boolean} excludeNested - Exclude nested components.\n * @param {Array<string>} excludedTypes - The types of components to exclude.\n * @returns {Array} - The components within the evaluation context.\n */\nfunction getContextComponents(context, excludeNested, excludedTypes = []) {\n const values = [];\n context.utils.eachComponent(context.instance.options.editForm.components, (component, path) => {\n const addToContextComponents = excludeNested ? !component.tree : true;\n if (component.key !== context.data.key && addToContextComponents && !lodash_1.default.includes(excludedTypes, component.type)) {\n values.push({\n label: `${component.label || component.key} (${path})`,\n value: path,\n });\n }\n });\n return values;\n}\nexports.getContextComponents = getContextComponents;\n/**\n * Returns the button components that are within an evaluation context.\n * @param {any} context - The evaluation context to get the components from.\n * @returns {Array} - The button components within the evaluation context.\n */\nfunction getContextButtons(context) {\n const values = [];\n context.utils.eachComponent(context.instance.options.editForm.components, (component) => {\n if (component.type === 'button') {\n values.push({\n label: `${component.key} (${component.label})`,\n value: component.key,\n });\n }\n });\n return values;\n}\nexports.getContextButtons = getContextButtons;\n// Tags that could be in text, that should be ommited or handled in a special way\nconst inTextTags = ['#text', 'A', 'B', 'EM', 'I', 'SMALL', 'STRONG', 'SUB', 'SUP', 'INS', 'DEL', 'MARK', 'CODE'];\n/**\n * Helper function for 'translateHTMLTemplate'. Translates text value of the passed html element.\n * @param {HTMLElement} elem - The element to translate.\n * @param {Function} translate - The translation function.\n * @returns {string} - Translated element template.\n */\nfunction translateElemValue(elem, translate) {\n if (!elem.innerText) {\n return elem.innerHTML;\n }\n const elemValue = elem.innerText.replace(Evaluator_1.Evaluator.templateSettings.interpolate, '').replace(/\\s\\s+/g, ' ').trim();\n const translatedValue = translate(elemValue);\n if (elemValue !== translatedValue) {\n const links = elem.innerHTML.match(/<a[^>]*>(.*?)<\\/a>/g);\n if (links && links.length) {\n if (links.length === 1 && links[0].length === elem.innerHTML.length) {\n return elem.innerHTML.replace(elemValue, translatedValue);\n }\n const translatedLinks = links.map(link => {\n const linkElem = document.createElement('a');\n linkElem.innerHTML = link;\n return translateElemValue(linkElem, translate);\n });\n return `${translatedValue} (${translatedLinks.join(', ')})`;\n }\n else {\n return elem.innerText.replace(elemValue, translatedValue);\n }\n }\n else {\n return elem.innerHTML;\n }\n}\n/**\n * Helper function for 'translateHTMLTemplate'. Goes deep through html tag children and calls function to translate their text values.\n * @param {HTMLElement} tag - The tag to translate.\n * @param {Function} translate - The translation function.\n * @returns {void}\n */\nfunction translateDeepTag(tag, translate) {\n const children = tag.children.length && [...tag.children];\n const shouldTranslateEntireContent = children && children.every(child => child.children.length === 0\n && inTextTags.some(tag => child.nodeName === tag));\n if (!children || shouldTranslateEntireContent) {\n tag.innerHTML = translateElemValue(tag, translate);\n }\n else {\n children.forEach(child => translateDeepTag(child, translate));\n }\n}\n/**\n * Translates text values in html template.\n * @param {string} template - The template to translate.\n * @param {Function} translate - The translation function.\n * @returns {string} - Html template with translated values.\n */\nfunction translateHTMLTemplate(template, translate) {\n const isHTML = /<[^>]*>/.test(template);\n if (!isHTML) {\n return translate(template);\n }\n const tempElem = document.createElement('div');\n tempElem.innerHTML = template;\n if (tempElem.innerText && tempElem.children.length) {\n translateDeepTag(tempElem, translate);\n return tempElem.innerHTML;\n }\n return template;\n}\nexports.translateHTMLTemplate = translateHTMLTemplate;\n/**\n * Sanitize an html string.\n * @param {string} string - The string to sanitize.\n * @param {any} options - The options to use for sanitization.\n * @returns {string} - The sanitized html string.\n */\nfunction sanitize(string, options) {\n if (typeof dompurify_1.default.sanitize !== 'function') {\n return string;\n }\n // Dompurify configuration\n const sanitizeOptions = {\n ADD_ATTR: ['ref', 'target'],\n USE_PROFILES: { html: true }\n };\n // Use profiles\n if (options.sanitizeConfig && options.sanitizeConfig.useProfiles) {\n Object.keys(options.sanitizeConfig.useProfiles).forEach(key => {\n sanitizeOptions.USE_PROFILES[key] = options.sanitizeConfig.useProfiles[key];\n });\n }\n // Add attrs\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addAttr) && options.sanitizeConfig.addAttr.length > 0) {\n options.sanitizeConfig.addAttr.forEach((attr) => {\n sanitizeOptions.ADD_ATTR.push(attr);\n });\n }\n // Add tags\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addTags) && options.sanitizeConfig.addTags.length > 0) {\n sanitizeOptions.ADD_TAGS = options.sanitizeConfig.addTags;\n }\n // Allow tags\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.allowedTags) && options.sanitizeConfig.allowedTags.length > 0) {\n sanitizeOptions.ALLOWED_TAGS = options.sanitizeConfig.allowedTags;\n }\n // Allow attributes\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.allowedAttrs) && options.sanitizeConfig.allowedAttrs.length > 0) {\n sanitizeOptions.ALLOWED_ATTR = options.sanitizeConfig.allowedAttrs;\n }\n // Allowd URI Regex\n if (options.sanitizeConfig && options.sanitizeConfig.allowedUriRegex) {\n const allowedUriRegex = options.sanitizeConfig.allowedUriRegex;\n sanitizeOptions.ALLOWED_URI_REGEXP = lodash_1.default.isString(allowedUriRegex) ? new RegExp(allowedUriRegex) : allowedUriRegex;\n }\n // Allow to extend the existing array of elements that are safe for URI-like values\n if (options.sanitizeConfig && Array.isArray(options.sanitizeConfig.addUriSafeAttr) && options.sanitizeConfig.addUriSafeAttr.length > 0) {\n sanitizeOptions.ADD_URI_SAFE_ATTR = options.sanitizeConfig.addUriSafeAttr;\n }\n return dompurify_1.default.sanitize(string, sanitizeOptions);\n}\nexports.sanitize = sanitize;\n/**\n * Fast cloneDeep for JSON objects only.\n * @param {any} obj - The object to perform a fast clone deep against.\n * @returns {any} - The cloned object.\n */\nfunction fastCloneDeep(obj) {\n return obj ? JSON.parse(JSON.stringify(obj)) : obj;\n}\nexports.fastCloneDeep = fastCloneDeep;\n/**\n * Returns if the component is an input component.\n * @param {import('@formio/core').Component} componentJson - The JSON of a component.\n * @returns {bool} - TRUE if the component is an input component; FALSE otherwise.\n */\nfunction isInputComponent(componentJson) {\n if (componentJson.input === false || componentJson.input === true) {\n return componentJson.input;\n }\n switch (componentJson.type) {\n case 'htmlelement':\n case 'content':\n case 'columns':\n case 'fieldset':\n case 'panel':\n case 'table':\n case 'tabs':\n case 'well':\n case 'button':\n return false;\n default:\n return true;\n }\n}\nexports.isInputComponent = isInputComponent;\n/**\n * Takes a component path, and returns a component path array.\n * @param {string} pathStr - The path string to convert to an array.\n * @returns {Arryay<number>} - The array of paths.\n */\nfunction getArrayFromComponentPath(pathStr) {\n if (!pathStr || !lodash_1.default.isString(pathStr)) {\n if (!lodash_1.default.isArray(pathStr)) {\n return [pathStr];\n }\n return pathStr;\n }\n return pathStr.replace(/[[\\]]/g, '.')\n .replace(/\\.\\./g, '.')\n .replace(/(^\\.)|(\\.$)/g, '')\n .split('.')\n .map(part => lodash_1.default.defaultTo(lodash_1.default.toNumber(part), part));\n}\nexports.getArrayFromComponentPath = getArrayFromComponentPath;\n/**\n * Returns true if the component is a child of the parent.\n * @param {any} child - The child component to check.\n * @param {any} parent - The parent component to check.\n * @returns {boolean} - TRUE if the child is a child of the parent; FALSE otherwise.\n */\nfunction isChildOf(child, parent) {\n while (child && child.parent) {\n if (child.parent === parent) {\n return true;\n }\n child = child.parent;\n }\n return false;\n}\nexports.isChildOf = isChildOf;\n/**\n * Takes an array of component path indexes, and returns a string version of that array.\n * @param {Array<number>} path - The path array to convert to a string.\n * @returns {string} - The string version of the path.\n */\nfunction getStringFromComponentPath(path) {\n if (!lodash_1.default.isArray(path)) {\n return path;\n }\n let strPath = '';\n path.forEach((part, i) => {\n if (lodash_1.default.isNumber(part)) {\n strPath += `[${part}]`;\n }\n else {\n strPath += i === 0 ? part : `.${part}`;\n }\n });\n return strPath;\n}\nexports.getStringFromComponentPath = getStringFromComponentPath;\n/**\n * Takes a number and rounds it to the provided precision amount.\n * @param {number} number - The number to round.\n * @param {number} precision - The precision to round the number to.\n * @returns {string} - The rounded number.\n */\nfunction round(number, precision) {\n if (lodash_1.default.isNumber(number)) {\n return number.toFixed(precision);\n }\n return number.toString();\n}\nexports.round = round;\n/**\n * Check for Internet Explorer browser version\n * @returns {(number|null)} - The IE browser version or null if not IE\n */\nfunction getIEBrowserVersion() {\n const { ie, version } = getBrowserInfo();\n return ie ? version : null;\n}\nexports.getIEBrowserVersion = getIEBrowserVersion;\n/**\n * Get browser name and version (modified from 'jquery-browser-plugin')\n * @returns {object} -- {{browser name, version, isWebkit?}}\n * Possible browser names: chrome, safari, ie, edge, opera, mozilla, yabrowser\n */\nfunction getBrowserInfo() {\n const browser = {};\n if (typeof window === 'undefined') {\n return browser;\n }\n const ua = window.navigator.userAgent.toLowerCase();\n const match = /(edge|edg)\\/([\\w.]+)/.exec(ua) ||\n /(opr)[/]([\\w.]+)/.exec(ua) ||\n /(yabrowser)[ /]([\\w.]+)/.exec(ua) ||\n /(chrome)[ /]([\\w.]+)/.exec(ua) ||\n /(iemobile)[/]([\\w.]+)/.exec(ua) ||\n /(version)(applewebkit)[ /]([\\w.]+).*(safari)[ /]([\\w.]+)/.exec(ua) ||\n /(webkit)[ /]([\\w.]+).*(version)[ /]([\\w.]+).*(safari)[ /]([\\w.]+)/.exec(ua) ||\n /(webkit)[ /]([\\w.]+)/.exec(ua) ||\n /(opera)(?:.*version|)[ /]([\\w.]+)/.exec(ua) ||\n /(msie) ([\\w.]+)/.exec(ua) ||\n ua.indexOf('trident') >= 0 && /(rv)(?::| )([\\w.]+)/.exec(ua) ||\n ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(ua) ||\n [];\n const matched = {\n browser: match[5] || match[3] || match[1] || '',\n version: match[4] || match[2] || '0'\n };\n if (matched.browser) {\n browser[matched.browser] = true;\n browser.version = parseInt(matched.version, 10);\n }\n // Chrome, Opera 15+, Safari and Yandex.Browser are webkit based browsers\n if (browser.chrome || browser.opr || browser.safari || browser.edg || browser.yabrowser) {\n browser.isWebkit = true;\n }\n // IE11 has a new token so we will assign it ie to avoid breaking changes\n if (browser.rv || browser.iemobile) {\n browser.ie = true;\n }\n // Edge has a new token since it became webkit based\n if (browser.edg) {\n browser.edge = true;\n }\n // Opera 15+ are identified as opr\n if (browser.opr) {\n browser.opera = true;\n }\n return browser;\n}\nexports.getBrowserInfo = getBrowserInfo;\n/**\n * Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.\n * @param {string} path - The path to remove the indicies from.\n * @returns {string} - The path without the indicies.\n */\nfunction getComponentPathWithoutIndicies(path = '') {\n return path.replace(/\\[\\d+\\]/, '');\n}\nexports.getComponentPathWithoutIndicies = getComponentPathWithoutIndicies;\n/**\n * Returns a path to the component which based on its schema\n * @param {import('@formio/core').Component} component - Component containing link to its parent's schema in the 'parent' property\n * @param {string} path - Path to the component\n * @returns {string} - Path to the component\n */\nfunction getComponentPath(component, path = '') {\n var _a;\n if (!component || !component.key || ((_a = component === null || component === void 0 ? void 0 : component._form) === null || _a === void 0 ? void 0 : _a.display) === 'wizard') { // unlike the Webform, the Wizard has the key and it is a duplicate of the panel key\n return path;\n }\n path = component.isInputComponent || component.input === true ? `${component.key}${path ? '.' : ''}${path}` : path;\n return getComponentPath(component.parent, path);\n}\nexports.getComponentPath = getComponentPath;\n/**\n * Returns a parent component of the passed component instance skipping all the Layout components\n * @param {Component} componentInstance - The component to check for the parent.\n * @returns {Component|undefined} - The parent data component.\n */\nfunction getDataParentComponent(componentInstance) {\n if (!componentInstance) {\n return;\n }\n const { parent } = componentInstance;\n if (parent && (parent.isInputComponent || parent.input)) {\n return parent;\n }\n else {\n return getDataParentComponent(parent);\n }\n}\nexports.getDataParentComponent = getDataParentComponent;\n/**\n * Returns whether the value is a promise\n * @param {any} value - The value to check\n * @returns {boolean} - TRUE if the value is a promise; FALSE otherwise\n */\nfunction isPromise(value) {\n return value\n && value.then\n && typeof value.then === 'function'\n && Object.prototype.toString.call(value) === '[object Promise]';\n}\nexports.isPromise = isPromise;\n/**\n * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its\n * changes by itself, e.g. EditGrid)\n * @param {Component} componentInstance - The component to check for the scoping parent.\n * @param {boolean} firstPass - Whether it is the first pass of the function\n * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise\n */\nfunction isInsideScopingComponent(componentInstance, firstPass = true) {\n if (!firstPass && (componentInstance === null || componentInstance === void 0 ? void 0 : componentInstance.hasScopedChildren)) {\n return true;\n }\n const dataParent = getDataParentComponent(componentInstance);\n if (dataParent === null || dataParent === void 0 ? void 0 : dataParent.hasScopedChildren) {\n return true;\n }\n else if (dataParent === null || dataParent === void 0 ? void 0 : dataParent.parent) {\n return isInsideScopingComponent(dataParent.parent, false);\n }\n return false;\n}\nexports.isInsideScopingComponent = isInsideScopingComponent;\n/**\n * Returns all the focusable elements within the provided dom element.\n * @param {HTMLElement} element - The element to get the focusable elements from.\n * @returns {NodeList<HTMLElement>} - The focusable elements within the provided element.\n */\nfunction getFocusableElements(element) {\n const focusableSelector = `button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]`;\n return element.querySelectorAll(focusableSelector);\n}\nexports.getFocusableElements = getFocusableElements;\nexports.componentValueTypes = {\n number: 'number',\n string: 'string',\n boolean: 'boolean',\n array: 'array',\n object: 'object',\n date: 'date',\n any: 'any',\n};\n/**\n * Returns the saved types for the component\n * @param {import('@formio/core').Component} fullSchema - The component schema\n * @returns {Array<string>|null} - The saved types for the component\n */\nfunction getComponentSavedTypes(fullSchema) {\n const schema = fullSchema || {};\n if (schema.persistent !== true) {\n return [];\n }\n if (schema.multiple) {\n return [exports.componentValueTypes.array];\n }\n return null;\n}\nexports.getComponentSavedTypes = getComponentSavedTypes;\n/**\n * Interpolates @formio/core errors so that they are compatible with the renderer\n * @param {Component} component - The component to interpolate the errors for\n * @param {FieldError[]} errors - The errors to interpolate\n * @param {Function} interpolateFn - The interpolation function\n * @returns {[]} - The interpolated errors\n */\nconst interpolateErrors = (component, errors, interpolateFn) => {\n return errors.map((error) => {\n error.component = component;\n const { errorKeyOrMessage, context } = error;\n const toInterpolate = component.errors && component.errors[errorKeyOrMessage] ? component.errors[errorKeyOrMessage] : errorKeyOrMessage;\n return Object.assign(Object.assign({}, error), { message: unescapeHTML(interpolateFn(toInterpolate, context)), context: Object.assign({}, context) });\n });\n};\nexports.interpolateErrors = interpolateErrors;\n/**\n * Returns the template keys inside the template code.\n * @param {string} template - The template to get the keys from.\n * @returns {Array<string>} - The keys inside the template.\n */\nfunction getItemTemplateKeys(template) {\n const templateKeys = [];\n if (!template) {\n return templateKeys;\n }\n const keys = template.match(/({{\\s*(.*?)\\s*}})/g);\n if (keys) {\n keys.forEach((key) => {\n const propKey = key.match(/{{\\s*item\\.(.*?)\\s*}}/);\n if (propKey && propKey.length > 1) {\n templateKeys.push(propKey[1]);\n }\n });\n }\n return templateKeys;\n}\nexports.getItemTemplateKeys = getItemTemplateKeys;\n/**\n * Returns if the component is a select resource with an object for its value.\n * @param {import('@formio/core').Component} comp - The component to check.\n * @returns {boolean} - TRUE if the component is a select resource with an object for its value; FALSE otherwise.\n */\nfunction isSelectResourceWithObjectValue(comp = {}) {\n const { reference, dataSrc, valueProperty } = comp;\n return reference || (dataSrc === 'resource' && (!valueProperty || valueProperty === 'data'));\n}\nexports.isSelectResourceWithObjectValue = isSelectResourceWithObjectValue;\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/utils/utils.js?");
3525
3525
 
3526
3526
  /***/ }),
3527
3527
 
package/lib/cjs/Wizard.js CHANGED
@@ -715,7 +715,7 @@ class Wizard extends Webform_1.default {
715
715
  }
716
716
  else {
717
717
  this.currentPage.components.forEach((comp) => comp.setPristine(false));
718
- this.scrollIntoView(this.element);
718
+ this.scrollIntoView(this.element, true);
719
719
  return Promise.reject(this.showErrors(errors, true));
720
720
  }
721
721
  }
@@ -1075,7 +1075,7 @@ declare class Component extends Element {
1075
1075
  */
1076
1076
  elementInfo(): any;
1077
1077
  autofocus(): void;
1078
- scrollIntoView(element?: any): void;
1078
+ scrollIntoView(element: any, verticalOnly: any): void;
1079
1079
  focus(index: any): void;
1080
1080
  /**
1081
1081
  * Get `Formio` instance for working with files
@@ -3453,12 +3453,12 @@ class Component extends Element_1.default {
3453
3453
  this.on('render', () => this.focus(), true);
3454
3454
  }
3455
3455
  }
3456
- scrollIntoView(element = this.element) {
3456
+ scrollIntoView(element = this.element, verticalOnly) {
3457
3457
  if (!element) {
3458
3458
  return;
3459
3459
  }
3460
3460
  const { left, top } = element.getBoundingClientRect();
3461
- window.scrollTo(left + window.scrollX, top + window.scrollY);
3461
+ window.scrollTo(verticalOnly ? window.scrollX : left + window.scrollX, top + window.scrollY);
3462
3462
  }
3463
3463
  focus(index) {
3464
3464
  var _a, _b, _c;
@@ -136,6 +136,7 @@ export default class SelectComponent extends ListComponent {
136
136
  normalizeSingleValue(value: any): any;
137
137
  setMetadata(value: any): any;
138
138
  updateValue(value: any, flags: any): boolean;
139
+ undoValueTyping(value: any): any;
139
140
  setValue(value: any, flags?: {}): boolean;
140
141
  lazyLoadInit: boolean | undefined;
141
142
  isInitApiCallNeeded(hasValue: any): any;
@@ -237,10 +237,9 @@ class SelectComponent extends ListComponent_1.default {
237
237
  }
238
238
  selectValueAndLabel(data) {
239
239
  const value = this.getOptionValue((this.isEntireObjectDisplay() && !this.itemValue(data)) ? data : this.itemValue(data));
240
- const readOnlyResourceLabelData = this.options.readOnly && (this.component.dataSrc === 'resource' || this.component.dataSrc === 'url') && this.selectData;
241
240
  return {
242
241
  value,
243
- label: this.itemTemplate((this.isEntireObjectDisplay() && !lodash_1.default.isObject(data.data)) ? { data: data } : readOnlyResourceLabelData || data, value)
242
+ label: this.itemTemplate((this.isEntireObjectDisplay() && !lodash_1.default.isObject(data.data)) ? { data: data } : data, value)
244
243
  };
245
244
  }
246
245
  itemTemplate(data, value) {
@@ -257,8 +256,7 @@ class SelectComponent extends ListComponent_1.default {
257
256
  const value = (typeof itemLabel === 'string') ? this.t(itemLabel, { _userInput: true }) : itemLabel;
258
257
  return this.sanitize(value, this.shouldSanitizeValue);
259
258
  }
260
- if (this.component.multiple
261
- && lodash_1.default.isArray(this.dataValue) ? this.dataValue.find((val) => this.normalizeSingleValue(value) === val) : (this.dataValue === value)) {
259
+ if (this.component.multiple && lodash_1.default.isArray(this.dataValue) ? this.dataValue.find((val) => this.normalizeSingleValue(value) === val) : (this.dataValue === this.normalizeSingleValue(value))) {
262
260
  const selectData = this.selectData;
263
261
  if (selectData) {
264
262
  const templateValue = this.component.reference && (value === null || value === void 0 ? void 0 : value._id) ? value._id.toString() : value;
@@ -1260,6 +1258,23 @@ class SelectComponent extends ListComponent_1.default {
1260
1258
  }
1261
1259
  return changed;
1262
1260
  }
1261
+ undoValueTyping(value) {
1262
+ let untypedValue = value;
1263
+ if (this.component.multiple && Array.isArray(value)) {
1264
+ untypedValue = value.map(v => {
1265
+ if (typeof v === 'boolean' || typeof v === 'number') {
1266
+ return v.toString();
1267
+ }
1268
+ return v;
1269
+ });
1270
+ }
1271
+ else {
1272
+ if (typeof value === 'boolean' || typeof value === 'number') {
1273
+ untypedValue = value.toString();
1274
+ }
1275
+ }
1276
+ return untypedValue;
1277
+ }
1263
1278
  setValue(value, flags = {}) {
1264
1279
  const previousValue = this.dataValue;
1265
1280
  const changed = this.updateValue(value, flags);
@@ -1270,19 +1285,7 @@ class SelectComponent extends ListComponent_1.default {
1270
1285
  const hasPreviousValue = !this.isEmpty(previousValue);
1271
1286
  const hasValue = !this.isEmpty(value);
1272
1287
  // Undo typing when searching to set the value.
1273
- if (this.component.multiple && Array.isArray(value)) {
1274
- value = value.map(value => {
1275
- if (typeof value === 'boolean' || typeof value === 'number') {
1276
- return value.toString();
1277
- }
1278
- return value;
1279
- });
1280
- }
1281
- else {
1282
- if (typeof value === 'boolean' || typeof value === 'number') {
1283
- value = value.toString();
1284
- }
1285
- }
1288
+ value = this.undoValueTyping(value);
1286
1289
  if (this.isHtmlRenderMode() && flags && flags.fromSubmission && changed) {
1287
1290
  this.itemsLoaded.then(() => {
1288
1291
  this.redraw();
@@ -1481,9 +1484,9 @@ class SelectComponent extends ListComponent_1.default {
1481
1484
  asString(value, options = {}) {
1482
1485
  var _a;
1483
1486
  value = value !== null && value !== void 0 ? value : this.getValue();
1484
- if (options.modalPreview && this.selectData) {
1485
- const { label } = this.selectValueAndLabel(value);
1486
- return label;
1487
+ if (options.modalPreview) {
1488
+ const template = this.itemTemplate(value, value);
1489
+ return template;
1487
1490
  }
1488
1491
  //need to convert values to strings to be able to compare values with available options that are strings
1489
1492
  const convertToString = (data, valueProperty) => {
@@ -1102,13 +1102,47 @@ declare const _default: ({
1102
1102
  conditional: {
1103
1103
  json: {
1104
1104
  and: ({
1105
- '!==': ({
1105
+ var: string;
1106
+ '==='?: undefined;
1107
+ '!=='?: undefined;
1108
+ or?: undefined;
1109
+ } | {
1110
+ '===': (boolean | {
1106
1111
  var: string;
1107
- } | null)[];
1112
+ })[];
1113
+ var?: undefined;
1114
+ '!=='?: undefined;
1115
+ or?: undefined;
1108
1116
  } | {
1109
1117
  '!==': (string | {
1110
1118
  var: string;
1111
1119
  })[];
1120
+ var?: undefined;
1121
+ '==='?: undefined;
1122
+ or?: undefined;
1123
+ } | {
1124
+ or: ({
1125
+ '===': (string | {
1126
+ var: string;
1127
+ })[];
1128
+ and?: undefined;
1129
+ } | {
1130
+ and: ({
1131
+ '===': (string | {
1132
+ var: string;
1133
+ })[];
1134
+ '!=='?: undefined;
1135
+ } | {
1136
+ '!==': (string | {
1137
+ var: string;
1138
+ })[];
1139
+ '==='?: undefined;
1140
+ })[];
1141
+ '==='?: undefined;
1142
+ })[];
1143
+ var?: undefined;
1144
+ '==='?: undefined;
1145
+ '!=='?: undefined;
1112
1146
  })[];
1113
1147
  '==='?: undefined;
1114
1148
  in?: undefined;
@@ -31,18 +31,22 @@ const calculateSelectData = (context) => {
31
31
  const setSelectData = (context) => {
32
32
  // Wait before downloadedResources will be set
33
33
  setTimeout(() => {
34
- var _a;
34
+ var _a, _b;
35
35
  const { instance, data } = context;
36
- const selectDataComponent = instance === null || instance === void 0 ? void 0 : instance.root.getComponent('selectData');
36
+ const selectDataComponent = (_a = instance === null || instance === void 0 ? void 0 : instance.root) === null || _a === void 0 ? void 0 : _a.getComponent('selectData');
37
+ // clear selectData if conditions are not met or clearing default value
38
+ if (selectDataComponent && (!selectDataComponent.visible || !data.defaultValue)) {
39
+ selectDataComponent.setValue(null, { resetValue: true });
40
+ return;
41
+ }
37
42
  // nothing can set if don't have downloaded resources
38
- if (!selectDataComponent || !instance.getValue() || !((_a = instance.downloadedResources) === null || _a === void 0 ? void 0 : _a.length)) {
43
+ if (!selectDataComponent || !instance.getValue() || !((_b = instance.downloadedResources) === null || _b === void 0 ? void 0 : _b.length)) {
39
44
  return;
40
45
  }
41
- // if valueProperty is not provided, we have entire object
42
46
  const shouldCalculateUrlData = data.dataSrc === 'url' && data.data.url && data.valueProperty;
43
47
  const shouldCalculateResourceData = data.dataSrc === 'resource' && data.data.resource && data.valueProperty;
44
- const newValue = shouldCalculateUrlData || shouldCalculateResourceData ? calculateSelectData(context) : undefined;
45
- selectDataComponent.setValue(newValue);
48
+ const newValue = shouldCalculateUrlData || shouldCalculateResourceData ? calculateSelectData(context) : null;
49
+ selectDataComponent.setValue(newValue, { resetValue: newValue === null });
46
50
  }, 0);
47
51
  };
48
52
  exports.default = [
@@ -684,10 +688,25 @@ exports.default = [
684
688
  {
685
689
  key: 'selectData',
686
690
  conditional: {
687
- json: { 'and': [
688
- { '!==': [{ var: 'data.valueProperty' }, null] },
689
- { '!==': [{ var: 'data.valueProperty' }, ''] },
690
- ] },
691
+ json: {
692
+ and: [
693
+ { var: 'data.valueProperty' },
694
+ { '===': [{ var: 'data.lazyLoad' }, true] },
695
+ { '!==': [{ var: 'data.widget' }, 'html5'] },
696
+ {
697
+ or: [
698
+ { '===': [{ var: 'data.dataSrc' }, 'url'] },
699
+ {
700
+ and: [
701
+ { '===': [{ var: 'data.dataSrc' }, 'resource'] },
702
+ // 'data' means entire object from resource will be used
703
+ { '!==': [{ var: 'data.valueProperty' }, 'data'] },
704
+ ],
705
+ }
706
+ ]
707
+ }
708
+ ]
709
+ },
691
710
  },
692
711
  },
693
712
  {
@@ -56,6 +56,14 @@ export function isMongoId(text: string): boolean;
56
56
  * @param {*} rowData - The contextual row data for the component.
57
57
  */
58
58
  export function checkCalculated(component: import('@formio/core').Component, submission: import('@formio/core').Submission, rowData: any): void;
59
+ /**
60
+ *
61
+ * @param component
62
+ * @param condition
63
+ * @param row
64
+ * @param data
65
+ * @param instance
66
+ */
59
67
  export function checkSimpleConditional(component: any, condition: any, row: any, data: any, instance: any): boolean;
60
68
  /**
61
69
  * Returns a components normalized value.