@syncfusion/ej2-inputs 25.2.5 → 26.1.35

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 (394) hide show
  1. package/.eslintrc.json +3 -2
  2. package/README.md +13 -0
  3. package/dist/ej2-inputs.min.js +2 -2
  4. package/dist/ej2-inputs.umd.min.js +2 -2
  5. package/dist/ej2-inputs.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-inputs.es2015.js +1091 -449
  7. package/dist/es6/ej2-inputs.es2015.js.map +1 -1
  8. package/dist/es6/ej2-inputs.es5.js +1051 -389
  9. package/dist/es6/ej2-inputs.es5.js.map +1 -1
  10. package/dist/global/ej2-inputs.min.js +2 -2
  11. package/dist/global/ej2-inputs.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/otp-input.d.ts +4 -0
  14. package/otp-input.js +4 -0
  15. package/package.json +10 -10
  16. package/src/form-validator/form-validator.d.ts +6 -3
  17. package/src/form-validator/form-validator.js +31 -27
  18. package/src/index.d.ts +1 -0
  19. package/src/index.js +1 -0
  20. package/src/input/input.d.ts +2 -2
  21. package/src/input/input.js +63 -56
  22. package/src/maskedtextbox/base/mask-base.d.ts +1 -1
  23. package/src/maskedtextbox/base/mask-base.js +1 -1
  24. package/src/maskedtextbox/maskedtextbox/maskedtextbox-model.d.ts +2 -2
  25. package/src/maskedtextbox/maskedtextbox/maskedtextbox.d.ts +1 -2
  26. package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +6 -7
  27. package/src/numerictextbox/numerictextbox.d.ts +2 -3
  28. package/src/numerictextbox/numerictextbox.js +14 -18
  29. package/src/otp-input/index.d.ts +5 -0
  30. package/src/otp-input/index.js +4 -0
  31. package/src/otp-input/otp-input-model.d.ts +142 -0
  32. package/src/otp-input/otp-input.d.ts +313 -0
  33. package/src/otp-input/otp-input.js +651 -0
  34. package/src/rating/rating.d.ts +0 -2
  35. package/src/rating/rating.js +4 -4
  36. package/src/slider/slider-model.d.ts +11 -6
  37. package/src/slider/slider.d.ts +21 -8
  38. package/src/slider/slider.js +191 -101
  39. package/src/textarea/textarea-model.d.ts +8 -2
  40. package/src/textarea/textarea.d.ts +9 -4
  41. package/src/textarea/textarea.js +17 -21
  42. package/src/textbox/textbox.d.ts +1 -2
  43. package/src/textbox/textbox.js +16 -11
  44. package/src/uploader/uploader.d.ts +1 -3
  45. package/src/uploader/uploader.js +27 -47
  46. package/styles/bootstrap-dark.css +1041 -1031
  47. package/styles/bootstrap-dark.scss +35 -11
  48. package/styles/bootstrap.css +1040 -1027
  49. package/styles/bootstrap.scss +35 -11
  50. package/styles/bootstrap4.css +1097 -1080
  51. package/styles/bootstrap4.scss +35 -11
  52. package/styles/bootstrap5-dark.css +1236 -1219
  53. package/styles/bootstrap5-dark.scss +35 -11
  54. package/styles/bootstrap5.css +1236 -1219
  55. package/styles/bootstrap5.scss +35 -11
  56. package/styles/color-picker/_bds-definition.scss +11 -1
  57. package/styles/color-picker/_bootstrap-dark-definition.scss +0 -3
  58. package/styles/color-picker/_bootstrap5-definition.scss +0 -1
  59. package/styles/color-picker/_bootstrap5.3-definition.scss +132 -0
  60. package/styles/color-picker/_fabric-dark-definition.scss +0 -3
  61. package/styles/color-picker/_fluent-definition.scss +0 -1
  62. package/styles/color-picker/_fluent2-definition.scss +143 -0
  63. package/styles/color-picker/_fusionnew-definition.scss +0 -1
  64. package/styles/color-picker/_highcontrast-light-definition.scss +0 -3
  65. package/styles/color-picker/_layout.scss +69 -34
  66. package/styles/color-picker/_material-dark-definition.scss +0 -3
  67. package/styles/color-picker/_material3-definition.scss +0 -1
  68. package/styles/color-picker/_tailwind-definition.scss +0 -1
  69. package/styles/color-picker/_theme.scss +13 -2
  70. package/styles/color-picker/bootstrap-dark.css +54 -20
  71. package/styles/color-picker/bootstrap.css +54 -20
  72. package/styles/color-picker/bootstrap4.css +60 -23
  73. package/styles/color-picker/bootstrap5-dark.css +58 -22
  74. package/styles/color-picker/bootstrap5.css +58 -22
  75. package/styles/color-picker/fabric-dark.css +54 -20
  76. package/styles/color-picker/fabric.css +54 -20
  77. package/styles/color-picker/fluent-dark.css +54 -20
  78. package/styles/color-picker/fluent.css +54 -20
  79. package/styles/color-picker/fluent2.css +2025 -0
  80. package/styles/color-picker/fluent2.scss +11 -0
  81. package/styles/color-picker/highcontrast-light.css +54 -20
  82. package/styles/color-picker/highcontrast.css +54 -20
  83. package/styles/color-picker/icons/_bootstrap5.3.scss +9 -0
  84. package/styles/color-picker/icons/_fluent2.scss +9 -0
  85. package/styles/color-picker/material-dark.css +63 -21
  86. package/styles/color-picker/material.css +77 -23
  87. package/styles/color-picker/material3-dark.css +92 -29
  88. package/styles/color-picker/material3.css +92 -29
  89. package/styles/color-picker/tailwind-dark.css +54 -21
  90. package/styles/color-picker/tailwind.css +54 -21
  91. package/styles/data-form/_bootstrap5.3-definition.scss +41 -0
  92. package/styles/data-form/_fluent2-definition.scss +41 -0
  93. package/styles/data-form/_layout.scss +1 -4
  94. package/styles/data-form/_material3-definition.scss +0 -7
  95. package/styles/data-form/bootstrap-dark.css +47 -59
  96. package/styles/data-form/bootstrap.css +47 -59
  97. package/styles/data-form/bootstrap4.css +47 -59
  98. package/styles/data-form/bootstrap5-dark.css +47 -59
  99. package/styles/data-form/bootstrap5.css +47 -59
  100. package/styles/data-form/fabric-dark.css +47 -59
  101. package/styles/data-form/fabric.css +47 -59
  102. package/styles/data-form/fluent-dark.css +47 -59
  103. package/styles/data-form/fluent.css +47 -59
  104. package/styles/data-form/fluent2.css +1266 -0
  105. package/styles/data-form/fluent2.scss +3 -0
  106. package/styles/data-form/highcontrast-light.css +47 -59
  107. package/styles/data-form/highcontrast.css +47 -59
  108. package/styles/data-form/material-dark.css +47 -59
  109. package/styles/data-form/material.css +47 -59
  110. package/styles/data-form/material3-dark.css +48 -60
  111. package/styles/data-form/material3.css +48 -60
  112. package/styles/data-form/tailwind-dark.css +47 -59
  113. package/styles/data-form/tailwind.css +47 -59
  114. package/styles/fabric-dark.css +1015 -988
  115. package/styles/fabric-dark.scss +35 -11
  116. package/styles/fabric.css +1015 -988
  117. package/styles/fabric.scss +35 -11
  118. package/styles/fluent-dark.css +1081 -1044
  119. package/styles/fluent-dark.scss +35 -11
  120. package/styles/fluent.css +1081 -1044
  121. package/styles/fluent.scss +35 -11
  122. package/styles/fluent2.css +13375 -0
  123. package/styles/fluent2.scss +35 -0
  124. package/styles/highcontrast-light.css +1099 -1179
  125. package/styles/highcontrast-light.scss +35 -11
  126. package/styles/highcontrast.css +1096 -1176
  127. package/styles/highcontrast.scss +35 -11
  128. package/styles/input/_bds-definition.scss +2 -2
  129. package/styles/input/_bootstrap5.3-definition.scss +336 -0
  130. package/styles/input/_fluent2-definition.scss +769 -0
  131. package/styles/input/_layout.scss +1242 -1939
  132. package/styles/input/_material-dark-definition.scss +4 -3
  133. package/styles/input/_material-definition.scss +4 -3
  134. package/styles/input/_material3-definition.scss +4 -9
  135. package/styles/input/_theme.scss +929 -1794
  136. package/styles/input/bootstrap-dark.css +489 -773
  137. package/styles/input/bootstrap.css +489 -773
  138. package/styles/input/bootstrap4.css +484 -770
  139. package/styles/input/bootstrap5-dark.css +488 -787
  140. package/styles/input/bootstrap5.css +488 -787
  141. package/styles/input/fabric-dark.css +466 -740
  142. package/styles/input/fabric.css +466 -740
  143. package/styles/input/fluent-dark.css +494 -775
  144. package/styles/input/fluent.css +494 -775
  145. package/styles/input/fluent2.css +10185 -0
  146. package/styles/input/fluent2.scss +4 -0
  147. package/styles/input/highcontrast-light.css +530 -914
  148. package/styles/input/highcontrast.css +530 -914
  149. package/styles/input/icons/_bootstrap5.3.scss +17 -0
  150. package/styles/input/icons/_fluent2.scss +17 -0
  151. package/styles/input/material-dark.css +1883 -2791
  152. package/styles/input/material.css +1895 -2791
  153. package/styles/input/material3-dark.css +1883 -2773
  154. package/styles/input/material3.css +1883 -2773
  155. package/styles/input/tailwind-dark.css +464 -749
  156. package/styles/input/tailwind.css +464 -749
  157. package/styles/maskedtextbox/_bootstrap5.3-definition.scss +7 -0
  158. package/styles/maskedtextbox/_fluent2-definition.scss +7 -0
  159. package/styles/maskedtextbox/_theme.scss +1 -6
  160. package/styles/maskedtextbox/bootstrap-dark.css +1 -4
  161. package/styles/maskedtextbox/bootstrap4.css +1 -4
  162. package/styles/maskedtextbox/bootstrap5-dark.css +1 -4
  163. package/styles/maskedtextbox/bootstrap5.css +1 -4
  164. package/styles/maskedtextbox/fabric-dark.css +1 -4
  165. package/styles/maskedtextbox/fabric.css +1 -4
  166. package/styles/maskedtextbox/fluent2.css +1244 -0
  167. package/styles/maskedtextbox/fluent2.scss +4 -0
  168. package/styles/maskedtextbox/highcontrast-light.css +1 -4
  169. package/styles/maskedtextbox/highcontrast.css +1 -4
  170. package/styles/maskedtextbox/material-dark.css +10 -5
  171. package/styles/maskedtextbox/material.css +24 -7
  172. package/styles/maskedtextbox/material3-dark.css +25 -8
  173. package/styles/maskedtextbox/material3.css +25 -8
  174. package/styles/maskedtextbox/tailwind-dark.css +1 -4
  175. package/styles/maskedtextbox/tailwind.css +1 -4
  176. package/styles/material-dark.css +2497 -3126
  177. package/styles/material-dark.scss +35 -11
  178. package/styles/material.css +2395 -3052
  179. package/styles/material.scss +35 -11
  180. package/styles/material3-dark.css +2656 -3265
  181. package/styles/material3-dark.scss +35 -11
  182. package/styles/material3.css +2656 -3265
  183. package/styles/material3.scss +35 -11
  184. package/styles/numerictextbox/_bootstrap5.3-definition.scss +3 -0
  185. package/styles/numerictextbox/_fluent2-definition.scss +3 -0
  186. package/styles/numerictextbox/bootstrap-dark.css +2 -1
  187. package/styles/numerictextbox/bootstrap.css +2 -1
  188. package/styles/numerictextbox/fluent2.css +1261 -0
  189. package/styles/numerictextbox/fluent2.scss +5 -0
  190. package/styles/numerictextbox/icons/_bootstrap5.3.scss +11 -0
  191. package/styles/numerictextbox/icons/_fluent2.scss +11 -0
  192. package/styles/numerictextbox/material-dark.css +9 -1
  193. package/styles/numerictextbox/material.css +23 -3
  194. package/styles/numerictextbox/material3-dark.css +24 -4
  195. package/styles/numerictextbox/material3.css +24 -4
  196. package/styles/otp-input/_all.scss +2 -0
  197. package/styles/otp-input/_bds-definition.scss +58 -0
  198. package/styles/otp-input/_bootstrap-dark-definition.scss +58 -0
  199. package/styles/otp-input/_bootstrap-definition.scss +58 -0
  200. package/styles/otp-input/_bootstrap4-definition.scss +58 -0
  201. package/styles/otp-input/_bootstrap5-dark-definition.scss +1 -0
  202. package/styles/otp-input/_bootstrap5-definition.scss +58 -0
  203. package/styles/otp-input/_bootstrap5.3-definition.scss +58 -0
  204. package/styles/otp-input/_fabric-dark-definition.scss +58 -0
  205. package/styles/otp-input/_fabric-definition.scss +58 -0
  206. package/styles/otp-input/_fluent-dark-definition.scss +1 -0
  207. package/styles/otp-input/_fluent-definition.scss +58 -0
  208. package/styles/otp-input/_fluent2-definition.scss +58 -0
  209. package/styles/otp-input/_fusionnew-definition.scss +58 -0
  210. package/styles/otp-input/_highcontrast-definition.scss +58 -0
  211. package/styles/otp-input/_highcontrast-light-definition.scss +58 -0
  212. package/styles/otp-input/_layout.scss +158 -0
  213. package/styles/otp-input/_material-dark-definition.scss +58 -0
  214. package/styles/otp-input/_material-definition.scss +58 -0
  215. package/styles/otp-input/_material3-dark-definition.scss +1 -0
  216. package/styles/otp-input/_material3-definition.scss +58 -0
  217. package/styles/otp-input/_tailwind-dark-definition.scss +1 -0
  218. package/styles/otp-input/_tailwind-definition.scss +58 -0
  219. package/styles/otp-input/_theme.scss +67 -0
  220. package/styles/otp-input/bootstrap-dark.css +225 -0
  221. package/styles/otp-input/bootstrap-dark.scss +3 -0
  222. package/styles/otp-input/bootstrap.css +225 -0
  223. package/styles/otp-input/bootstrap.scss +3 -0
  224. package/styles/otp-input/bootstrap4.css +225 -0
  225. package/styles/otp-input/bootstrap4.scss +3 -0
  226. package/styles/otp-input/bootstrap5-dark.css +225 -0
  227. package/styles/otp-input/bootstrap5-dark.scss +3 -0
  228. package/styles/otp-input/bootstrap5.css +225 -0
  229. package/styles/otp-input/bootstrap5.scss +3 -0
  230. package/styles/otp-input/fabric-dark.css +225 -0
  231. package/styles/otp-input/fabric-dark.scss +3 -0
  232. package/styles/otp-input/fabric.css +225 -0
  233. package/styles/otp-input/fabric.scss +3 -0
  234. package/styles/otp-input/fluent-dark.css +225 -0
  235. package/styles/otp-input/fluent-dark.scss +3 -0
  236. package/styles/otp-input/fluent.css +225 -0
  237. package/styles/otp-input/fluent.scss +3 -0
  238. package/styles/otp-input/fluent2.css +1259 -0
  239. package/styles/otp-input/fluent2.scss +3 -0
  240. package/styles/otp-input/highcontrast-light.css +225 -0
  241. package/styles/otp-input/highcontrast-light.scss +3 -0
  242. package/styles/otp-input/highcontrast.css +225 -0
  243. package/styles/otp-input/highcontrast.scss +3 -0
  244. package/styles/otp-input/material-dark.css +225 -0
  245. package/styles/otp-input/material-dark.scss +3 -0
  246. package/styles/otp-input/material.css +225 -0
  247. package/styles/otp-input/material.scss +3 -0
  248. package/styles/otp-input/material3-dark.css +280 -0
  249. package/styles/otp-input/material3-dark.scss +4 -0
  250. package/styles/otp-input/material3.css +336 -0
  251. package/styles/otp-input/material3.scss +4 -0
  252. package/styles/otp-input/tailwind-dark.css +225 -0
  253. package/styles/otp-input/tailwind-dark.scss +3 -0
  254. package/styles/otp-input/tailwind.css +225 -0
  255. package/styles/otp-input/tailwind.scss +3 -0
  256. package/styles/rating/_bds-definition.scss +2 -2
  257. package/styles/rating/_bootstrap-dark-definition.scss +2 -2
  258. package/styles/rating/_bootstrap-definition.scss +2 -2
  259. package/styles/rating/_bootstrap4-definition.scss +2 -2
  260. package/styles/rating/_bootstrap5-definition.scss +2 -2
  261. package/styles/rating/_bootstrap5.3-definition.scss +47 -0
  262. package/styles/rating/_fabric-dark-definition.scss +2 -2
  263. package/styles/rating/_fabric-definition.scss +2 -2
  264. package/styles/rating/_fluent-definition.scss +2 -2
  265. package/styles/rating/_fluent2-definition.scss +47 -0
  266. package/styles/rating/_fusionnew-definition.scss +2 -2
  267. package/styles/rating/_highcontrast-definition.scss +2 -2
  268. package/styles/rating/_highcontrast-light-definition.scss +2 -2
  269. package/styles/rating/_layout.scss +22 -46
  270. package/styles/rating/_material-dark-definition.scss +2 -2
  271. package/styles/rating/_material-definition.scss +2 -2
  272. package/styles/rating/_material3-definition.scss +2 -2
  273. package/styles/rating/_tailwind-definition.scss +2 -2
  274. package/styles/rating/_theme.scss +1 -1
  275. package/styles/rating/bootstrap-dark.css +35 -9
  276. package/styles/rating/bootstrap.css +35 -9
  277. package/styles/rating/bootstrap4.css +35 -9
  278. package/styles/rating/bootstrap5-dark.css +35 -9
  279. package/styles/rating/bootstrap5.css +35 -9
  280. package/styles/rating/fabric-dark.css +35 -9
  281. package/styles/rating/fabric.css +35 -9
  282. package/styles/rating/fluent-dark.css +35 -9
  283. package/styles/rating/fluent.css +35 -9
  284. package/styles/rating/fluent2.css +1349 -0
  285. package/styles/rating/fluent2.scss +4 -0
  286. package/styles/rating/highcontrast-light.css +35 -9
  287. package/styles/rating/highcontrast.css +35 -9
  288. package/styles/rating/material-dark.css +35 -9
  289. package/styles/rating/material.css +35 -9
  290. package/styles/rating/material3-dark.css +35 -10
  291. package/styles/rating/material3.css +35 -10
  292. package/styles/rating/tailwind-dark.css +34 -9
  293. package/styles/rating/tailwind.css +34 -9
  294. package/styles/signature/_bootstrap5.3-definition.scss +3 -0
  295. package/styles/signature/_fluent2-definition.scss +3 -0
  296. package/styles/signature/fluent2.css +1043 -0
  297. package/styles/signature/fluent2.scss +3 -0
  298. package/styles/signature/material3-dark.css +1 -1
  299. package/styles/signature/material3.css +1 -1
  300. package/styles/slider/_bds-definition.scss +1 -0
  301. package/styles/slider/_bootstrap-dark-definition.scss +1 -0
  302. package/styles/slider/_bootstrap-definition.scss +1 -0
  303. package/styles/slider/_bootstrap4-definition.scss +1 -1
  304. package/styles/slider/_bootstrap5-definition.scss +1 -0
  305. package/styles/slider/_bootstrap5.3-definition.scss +91 -0
  306. package/styles/slider/_fluent-definition.scss +2 -0
  307. package/styles/slider/_fluent2-definition.scss +102 -0
  308. package/styles/slider/_highcontrast-definition.scss +1 -2
  309. package/styles/slider/_layout.scss +1623 -1986
  310. package/styles/slider/_material-dark-definition.scss +2 -2
  311. package/styles/slider/_material-definition.scss +4 -4
  312. package/styles/slider/_material3-definition.scss +1 -4
  313. package/styles/slider/_tailwind-definition.scss +1 -0
  314. package/styles/slider/_theme.scss +92 -120
  315. package/styles/slider/bootstrap-dark.css +132 -140
  316. package/styles/slider/bootstrap.css +132 -140
  317. package/styles/slider/bootstrap4.css +192 -193
  318. package/styles/slider/bootstrap5-dark.css +284 -270
  319. package/styles/slider/bootstrap5.css +284 -270
  320. package/styles/slider/fabric-dark.css +131 -131
  321. package/styles/slider/fabric.css +131 -131
  322. package/styles/slider/fluent-dark.css +170 -155
  323. package/styles/slider/fluent.css +170 -155
  324. package/styles/slider/fluent2.css +1642 -0
  325. package/styles/slider/fluent2.scss +5 -0
  326. package/styles/slider/highcontrast-light.css +157 -154
  327. package/styles/slider/highcontrast.css +155 -152
  328. package/styles/slider/material-dark.css +306 -298
  329. package/styles/slider/material.css +304 -296
  330. package/styles/slider/material3-dark.css +577 -535
  331. package/styles/slider/material3.css +577 -535
  332. package/styles/slider/tailwind-dark.css +256 -267
  333. package/styles/slider/tailwind.css +256 -267
  334. package/styles/tailwind-dark.css +1203 -1201
  335. package/styles/tailwind-dark.scss +35 -11
  336. package/styles/tailwind.css +1205 -1203
  337. package/styles/tailwind.scss +35 -11
  338. package/styles/textarea/_bootstrap5.3-definition.scss +1 -0
  339. package/styles/textarea/_fluent2-definition.scss +1 -0
  340. package/styles/textarea/_layout.scss +1 -1
  341. package/styles/textarea/bootstrap-dark.css +3 -2
  342. package/styles/textarea/bootstrap.css +3 -2
  343. package/styles/textarea/bootstrap4.css +3 -2
  344. package/styles/textarea/bootstrap5-dark.css +3 -2
  345. package/styles/textarea/bootstrap5.css +3 -2
  346. package/styles/textarea/fabric-dark.css +3 -2
  347. package/styles/textarea/fabric.css +3 -2
  348. package/styles/textarea/fluent-dark.css +3 -2
  349. package/styles/textarea/fluent.css +3 -2
  350. package/styles/textarea/fluent2.css +1247 -0
  351. package/styles/textarea/fluent2.scss +5 -0
  352. package/styles/textarea/highcontrast-light.css +3 -2
  353. package/styles/textarea/highcontrast.css +3 -2
  354. package/styles/textarea/material-dark.css +12 -3
  355. package/styles/textarea/material.css +26 -5
  356. package/styles/textarea/material3-dark.css +27 -6
  357. package/styles/textarea/material3.css +27 -6
  358. package/styles/textarea/tailwind-dark.css +3 -2
  359. package/styles/textarea/tailwind.css +3 -2
  360. package/styles/textbox/_bootstrap5.3-definition.scss +4 -0
  361. package/styles/textbox/_fluent2-definition.scss +4 -0
  362. package/styles/textbox/fluent2.css +1241 -0
  363. package/styles/textbox/fluent2.scss +4 -0
  364. package/styles/textbox/material-dark.css +9 -1
  365. package/styles/textbox/material.css +23 -3
  366. package/styles/textbox/material3-dark.css +24 -4
  367. package/styles/textbox/material3.css +24 -4
  368. package/styles/uploader/_bootstrap5.3-definition.scss +216 -0
  369. package/styles/uploader/_fluent2-definition.scss +232 -0
  370. package/styles/uploader/_layout.scss +5 -2
  371. package/styles/uploader/_material3-definition.scss +0 -24
  372. package/styles/uploader/_theme.scss +7 -4
  373. package/styles/uploader/bootstrap-dark.css +47 -12
  374. package/styles/uploader/bootstrap.css +47 -12
  375. package/styles/uploader/bootstrap4.css +47 -12
  376. package/styles/uploader/bootstrap5-dark.css +47 -12
  377. package/styles/uploader/bootstrap5.css +47 -12
  378. package/styles/uploader/fabric-dark.css +47 -12
  379. package/styles/uploader/fabric.css +47 -12
  380. package/styles/uploader/fluent-dark.css +47 -12
  381. package/styles/uploader/fluent.css +47 -12
  382. package/styles/uploader/fluent2.css +1880 -0
  383. package/styles/uploader/fluent2.scss +6 -0
  384. package/styles/uploader/highcontrast-light.css +47 -12
  385. package/styles/uploader/highcontrast.css +47 -12
  386. package/styles/uploader/icons/_bootstrap5.3.scss +34 -0
  387. package/styles/uploader/icons/_fluent2.scss +34 -0
  388. package/styles/uploader/material-dark.css +47 -12
  389. package/styles/uploader/material.css +47 -12
  390. package/styles/uploader/material3-dark.css +49 -13
  391. package/styles/uploader/material3.css +49 -13
  392. package/styles/uploader/tailwind-dark.css +49 -13
  393. package/styles/uploader/tailwind.css +49 -13
  394. package/CHANGELOG.md +0 -1307
@@ -1,6 +1,6 @@
1
- import { Ajax, Animation, Base, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getInstance, getNumericObject, getUniqueID, getValue, initializeCSPTemplate, isNullOrUndefined, merge, onIntlChange, remove, removeClass, rippleEffect, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
2
- import { Popup, Tooltip, createSpinner, getZindexPartial, hideSpinner, isCollide, showSpinner } from '@syncfusion/ej2-popups';
3
- import { Deferred, SplitButton, getModel } from '@syncfusion/ej2-splitbuttons';
1
+ import { isNullOrUndefined, createElement, addClass, attributes, removeClass, formatUnit, remove, detach, classList, closest, getValue, setValue, L10n, getUniqueID, Internationalization, EventHandler, Browser, merge, getNumericObject, Property, Event, NotifyPropertyChanges, Component, extend, ChildProperty, setStyleAttribute, SanitizeHtmlHelper, initializeCSPTemplate, Collection, Complex, onIntlChange, select, selectAll, Base, KeyboardEvents, Ajax, append, Animation, compile, rippleEffect, getInstance } from '@syncfusion/ej2-base';
2
+ import { Tooltip, getZindexPartial, createSpinner, showSpinner, hideSpinner, isCollide, Popup } from '@syncfusion/ej2-popups';
3
+ import { SplitButton, Deferred, getModel } from '@syncfusion/ej2-splitbuttons';
4
4
 
5
5
  /* eslint-disable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */
6
6
  var CLASSNAMES = {
@@ -79,7 +79,6 @@ var Input;
79
79
  validateInputType(inputObject.container, args.element);
80
80
  inputObject = setPropertyValue(args, inputObject);
81
81
  createSpanElement(inputObject.container, makeElement);
82
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
83
82
  return inputObject;
84
83
  }
85
84
  Input.createInput = createInput;
@@ -116,27 +115,27 @@ var Input;
116
115
  args.element.addEventListener('focus', focusHandler);
117
116
  args.element.addEventListener('blur', blurHandler);
118
117
  args.element.addEventListener('input', inputHandler);
119
- args.element.__eventHandlers["inputFocusHandler"] = { focusHandler: focusHandler };
120
- args.element.__eventHandlers["inputBlurHandler"] = { blurHandler: blurHandler };
121
- args.element.__eventHandlers["inputHandler"] = { inputHandler: inputHandler };
118
+ args.element.__eventHandlers['inputFocusHandler'] = { focusHandler: focusHandler };
119
+ args.element.__eventHandlers['inputBlurHandler'] = { blurHandler: blurHandler };
120
+ args.element.__eventHandlers['inputHandler'] = { inputHandler: inputHandler };
122
121
  }
123
122
  Input.bindInitialEvent = bindInitialEvent;
124
123
  function unbindInitialEvent(args) {
125
124
  if (!isNullOrUndefined(args.element)) {
126
125
  if (!isNullOrUndefined(args.element.__eventHandlers)) {
127
- if (!isNullOrUndefined(args.element.__eventHandlers["inputFocusHandler"])
128
- && !isNullOrUndefined(args.element.__eventHandlers["inputBlurHandler"])
129
- && !isNullOrUndefined(args.element.__eventHandlers["inputHandler"])) {
130
- var focusHandler_1 = args.element.__eventHandlers["inputFocusHandler"].focusHandler;
131
- var blurHandler_1 = args.element.__eventHandlers["inputBlurHandler"].blurHandler;
132
- var inputHandler_1 = args.element.__eventHandlers["inputHandler"].inputHandler;
126
+ if (!isNullOrUndefined(args.element.__eventHandlers['inputFocusHandler'])
127
+ && !isNullOrUndefined(args.element.__eventHandlers['inputBlurHandler'])
128
+ && !isNullOrUndefined(args.element.__eventHandlers['inputHandler'])) {
129
+ var focusHandler_1 = args.element.__eventHandlers['inputFocusHandler'].focusHandler;
130
+ var blurHandler_1 = args.element.__eventHandlers['inputBlurHandler'].blurHandler;
131
+ var inputHandler_1 = args.element.__eventHandlers['inputHandler'].inputHandler;
133
132
  args.element.removeEventListener('focus', focusHandler_1);
134
133
  args.element.removeEventListener('blur', blurHandler_1);
135
134
  args.element.removeEventListener('input', inputHandler_1);
136
135
  // Clean up stored bound functions
137
- delete args.element.__eventHandlers["inputFocusHandler"];
138
- delete args.element.__eventHandlers["inputBlurHandler"];
139
- delete args.element.__eventHandlers["inputHandler"];
136
+ delete args.element.__eventHandlers['inputFocusHandler'];
137
+ delete args.element.__eventHandlers['inputBlurHandler'];
138
+ delete args.element.__eventHandlers['inputHandler'];
140
139
  }
141
140
  }
142
141
  }
@@ -261,8 +260,8 @@ var Input;
261
260
  args.element.addEventListener('input', inputFloatHandler);
262
261
  args.element.addEventListener('blur', blurFloatHandler);
263
262
  // Store the event handler functions to remove them later
264
- args.element.__eventHandlers["floatInputHandler"] = { inputFloatHandler: inputFloatHandler };
265
- args.element.__eventHandlers["floatBlurHandler"] = { blurFloatHandler: blurFloatHandler };
263
+ args.element.__eventHandlers['floatInputHandler'] = { inputFloatHandler: inputFloatHandler };
264
+ args.element.__eventHandlers['floatBlurHandler'] = { blurFloatHandler: blurFloatHandler };
266
265
  }
267
266
  else {
268
267
  unWireFloatLabelEvents(args);
@@ -272,17 +271,18 @@ var Input;
272
271
  }
273
272
  }
274
273
  function unWireFloatLabelEvents(args) {
275
- if (!isNullOrUndefined(args.element) && !isNullOrUndefined(args.element.__eventHandlers)
276
- && !isNullOrUndefined(args.element.__eventHandlers["floatInputHandler"])
277
- && !isNullOrUndefined(args.element.__eventHandlers["floatBlurHandler"])) {
278
- var inputFloatHandler = args.element.__eventHandlers["floatInputHandler"].inputFloatHandler;
279
- var blurFloatHandler = args.element.__eventHandlers["floatBlurHandler"].blurFloatHandler;
274
+ if (!isNullOrUndefined(args.element) &&
275
+ !isNullOrUndefined(args.element.__eventHandlers)
276
+ && !isNullOrUndefined(args.element.__eventHandlers['floatInputHandler'])
277
+ && !isNullOrUndefined(args.element.__eventHandlers['floatBlurHandler'])) {
278
+ var inputFloatHandler = args.element.__eventHandlers['floatInputHandler'].inputFloatHandler;
279
+ var blurFloatHandler = args.element.__eventHandlers['floatBlurHandler'].blurFloatHandler;
280
280
  // Remove the event listeners using the defined functions
281
281
  args.element.removeEventListener('input', inputFloatHandler);
282
282
  args.element.removeEventListener('blur', blurFloatHandler);
283
283
  // Clean up stored event handler functions
284
- delete args.element.__eventHandlers["floatInputHandler"];
285
- delete args.element.__eventHandlers["floatBlurHandler"];
284
+ delete args.element.__eventHandlers['floatInputHandler'];
285
+ delete args.element.__eventHandlers['floatBlurHandler'];
286
286
  }
287
287
  }
288
288
  function checkFloatLabelType(type, container) {
@@ -368,7 +368,7 @@ var Input;
368
368
  baseElement.insertAdjacentElement('afterend', button);
369
369
  }
370
370
  addClass([button], CLASSNAMES.CLEARICONHIDE);
371
- wireClearBtnEvents(element, button, container);
371
+ wireClearBtnEvents(element, button);
372
372
  button.setAttribute('aria-label', 'close');
373
373
  return button;
374
374
  }
@@ -401,7 +401,7 @@ var Input;
401
401
  if (isBindClearAction === undefined || isBindClearAction) {
402
402
  var clickHandlerEvent = function (e) { return clickHandler(e, element, button); };
403
403
  button.addEventListener('click', clickHandlerEvent);
404
- element.__eventHandlers["clearClickHandler"] = { clickHandlerEvent: clickHandlerEvent };
404
+ element.__eventHandlers['clearClickHandler'] = { clickHandlerEvent: clickHandlerEvent };
405
405
  }
406
406
  var inputHandlerEvent = function () { return inputHandler(element, button); };
407
407
  var focusHandlerEvent = function () { return focusHandler(element, button); };
@@ -410,35 +410,36 @@ var Input;
410
410
  element.addEventListener('focus', focusHandlerEvent);
411
411
  element.addEventListener('blur', blurHandlerEvent);
412
412
  // Store the bound functions to remove them later
413
- element.__eventHandlers["clearInputHandler"] = { inputHandlerEvent: inputHandlerEvent };
414
- element.__eventHandlers["clearFocusHandler"] = { focusHandlerEvent: focusHandlerEvent };
415
- element.__eventHandlers["clearBlurHandler"] = { blurHandlerEvent: blurHandlerEvent };
413
+ element.__eventHandlers['clearInputHandler'] = { inputHandlerEvent: inputHandlerEvent };
414
+ element.__eventHandlers['clearFocusHandler'] = { focusHandlerEvent: focusHandlerEvent };
415
+ element.__eventHandlers['clearBlurHandler'] = { blurHandlerEvent: blurHandlerEvent };
416
416
  }
417
417
  Input.wireClearBtnEvents = wireClearBtnEvents;
418
418
  function unWireClearBtnEvents(element, button) {
419
- if (!isNullOrUndefined(element) && !isNullOrUndefined(element.__eventHandlers)) {
420
- if (!isNullOrUndefined(element.__eventHandlers["clearClickHandler"])) {
421
- var clickHandlerEvent = element.__eventHandlers["clearClickHandler"].clickHandlerEvent;
419
+ if (!isNullOrUndefined(element) &&
420
+ !isNullOrUndefined(element.__eventHandlers)) {
421
+ if (!isNullOrUndefined(element.__eventHandlers['clearClickHandler'])) {
422
+ var clickHandlerEvent = element.__eventHandlers['clearClickHandler'].clickHandlerEvent;
422
423
  if (isBindClearAction === undefined || isBindClearAction) {
423
424
  if (!isNullOrUndefined(button)) {
424
425
  button.removeEventListener('click', clickHandlerEvent);
425
426
  }
426
427
  }
427
- delete element.__eventHandlers["clearClickHandler"];
428
- }
429
- if (!isNullOrUndefined(element.__eventHandlers["clearInputHandler"])
430
- && !isNullOrUndefined(element.__eventHandlers["clearFocusHandler"])
431
- && !isNullOrUndefined(element.__eventHandlers["clearBlurHandler"])) {
432
- var inputHandlerEvent = element.__eventHandlers["clearInputHandler"].inputHandlerEvent;
433
- var focusHandlerEvent = element.__eventHandlers["clearFocusHandler"].focusHandlerEvent;
434
- var blurHandlerEvent = element.__eventHandlers["clearBlurHandler"].blurHandlerEvent;
428
+ delete element.__eventHandlers['clearClickHandler'];
429
+ }
430
+ if (!isNullOrUndefined(element.__eventHandlers['clearInputHandler'])
431
+ && !isNullOrUndefined(element.__eventHandlers['clearFocusHandler'])
432
+ && !isNullOrUndefined(element.__eventHandlers['clearBlurHandler'])) {
433
+ var inputHandlerEvent = element.__eventHandlers['clearInputHandler'].inputHandlerEvent;
434
+ var focusHandlerEvent = element.__eventHandlers['clearFocusHandler'].focusHandlerEvent;
435
+ var blurHandlerEvent = element.__eventHandlers['clearBlurHandler'].blurHandlerEvent;
435
436
  element.removeEventListener('input', inputHandlerEvent);
436
437
  element.removeEventListener('focus', focusHandlerEvent);
437
438
  element.removeEventListener('blur', blurHandlerEvent);
438
439
  // Clean up stored Event functions
439
- delete element.__eventHandlers["clearInputHandler"];
440
- delete element.__eventHandlers["clearFocusHandler"];
441
- delete element.__eventHandlers["clearBlurHandler"];
440
+ delete element.__eventHandlers['clearInputHandler'];
441
+ delete element.__eventHandlers['clearFocusHandler'];
442
+ delete element.__eventHandlers['clearBlurHandler'];
442
443
  }
443
444
  }
444
445
  }
@@ -458,7 +459,6 @@ var Input;
458
459
  if (!isNullOrUndefined(args.element)) {
459
460
  delete args.element.__eventHandlers;
460
461
  }
461
-
462
462
  }
463
463
  Input.destroy = destroy;
464
464
  function validateLabel(element, floatLabelType) {
@@ -505,7 +505,7 @@ var Input;
505
505
  * @param {string} floatLabelType - Specify the float label type of the input element.
506
506
  * @param {boolean} clearButton - Boolean value to specify whether the clear icon is enabled / disabled on the input.
507
507
  */
508
- function setValue$$1(value, element, floatLabelType, clearButton) {
508
+ function setValue(value, element, floatLabelType, clearButton) {
509
509
  element.value = value;
510
510
  if (floatLabelType !== 'Never') {
511
511
  calculateWidth(element, element.parentElement);
@@ -529,7 +529,7 @@ var Input;
529
529
  }
530
530
  checkInputValue(floatLabelType, element);
531
531
  }
532
- Input.setValue = setValue$$1;
532
+ Input.setValue = setValue;
533
533
  /**
534
534
  * Sets the single or multiple cssClass to wrapper of input element.
535
535
  * ```
@@ -607,13 +607,25 @@ var Input;
607
607
  var parentElement = getParentNode(element);
608
608
  if (parentElement.classList.contains(CLASSNAMES.FLOATINPUT)) {
609
609
  if (!isNullOrUndefined(placeholder) && placeholder !== '') {
610
- parentElement.getElementsByClassName('e-float-text-content')[0] ? parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].children[0].textContent = placeholder : parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = placeholder;
610
+ var floatTextContent = parentElement.getElementsByClassName('e-float-text-content')[0];
611
+ if (floatTextContent) {
612
+ floatTextContent.children[0].textContent = placeholder;
613
+ }
614
+ else {
615
+ parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = placeholder;
616
+ }
611
617
  parentElement.classList.remove(CLASSNAMES.NOFLOATLABEL);
612
618
  element.removeAttribute('placeholder');
613
619
  }
614
620
  else {
615
621
  parentElement.classList.add(CLASSNAMES.NOFLOATLABEL);
616
- parentElement.getElementsByClassName('e-float-text-content')[0] ? parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].children[0].textContent = '' : parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = '';
622
+ var floatTextContent = parentElement.getElementsByClassName('e-float-text-content')[0];
623
+ if (floatTextContent) {
624
+ floatTextContent.children[0].textContent = '';
625
+ }
626
+ else {
627
+ parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = '';
628
+ }
617
629
  }
618
630
  }
619
631
  else {
@@ -843,7 +855,7 @@ var Input;
843
855
  * E.g : Input.createSpanElement(inputObject, makeElement);
844
856
  * ```
845
857
  *
846
- * @param {InputObject} inputObject
858
+ * @param {Element} inputObject
847
859
  * - Element which is need to get the label
848
860
  * @param {createElementParams} makeElement
849
861
  * - Element which is need to create the span
@@ -870,7 +882,7 @@ var Input;
870
882
  */
871
883
  function setRipple(isRipple, inputObj) {
872
884
  for (var i = 0; i < inputObj.length; i++) {
873
- _internalRipple(isRipple, inputObj[parseInt(i.toString())].container);
885
+ _internalRipple(isRipple, inputObj[parseInt(i.toString(), 10)].container);
874
886
  }
875
887
  }
876
888
  Input.setRipple = setRipple;
@@ -881,14 +893,14 @@ var Input;
881
893
  container.querySelectorAll('.e-input-group-icon') : argsButton;
882
894
  if (isRipple && buttons.length > 0) {
883
895
  for (var index = 0; index < buttons.length; index++) {
884
- buttons[parseInt(index.toString())].addEventListener('mousedown', _onMouseDownRipple, false);
885
- buttons[parseInt(index.toString())].addEventListener('mouseup', _onMouseUpRipple, false);
896
+ buttons[parseInt(index.toString(), 10)].addEventListener('mousedown', _onMouseDownRipple, false);
897
+ buttons[parseInt(index.toString(), 10)].addEventListener('mouseup', _onMouseUpRipple, false);
886
898
  }
887
899
  }
888
900
  else if (buttons.length > 0) {
889
901
  for (var index = 0; index < buttons.length; index++) {
890
- buttons[parseInt(index.toString())].removeEventListener('mousedown', _onMouseDownRipple);
891
- buttons[parseInt(index.toString())].removeEventListener('mouseup', _onMouseUpRipple);
902
+ buttons[parseInt(index.toString(), 10)].removeEventListener('mousedown', _onMouseDownRipple, this);
903
+ buttons[parseInt(index.toString(), 10)].removeEventListener('mouseup', _onMouseUpRipple, this);
892
904
  }
893
905
  }
894
906
  }
@@ -914,8 +926,7 @@ var Input;
914
926
  return true;
915
927
  }
916
928
  function _onMouseDownRipple() {
917
- // eslint-disable-next-line @typescript-eslint/no-this-alias
918
- var ele = this;
929
+ var ele = this;
919
930
  var parentEle = this.parentElement;
920
931
  while (!parentEle.classList.contains('e-input-group')) {
921
932
  parentEle = parentEle.parentElement;
@@ -923,8 +934,7 @@ var Input;
923
934
  _onMouseRipple(parentEle, ele);
924
935
  }
925
936
  function _onMouseUpRipple() {
926
- // eslint-disable-next-line @typescript-eslint/no-this-alias
927
- var ele = this;
937
+ var ele = this;
928
938
  setTimeout(function () {
929
939
  ele.classList.remove('e-input-btn-ripple');
930
940
  }, 500);
@@ -946,9 +956,7 @@ var Input;
946
956
  * @param {HTMLElement} container - The container on which created span element is going to append.
947
957
  * @param {HTMLElement} input - The inputElement on which created span element is going to prepend.
948
958
  */
949
- /* eslint-disable @typescript-eslint/indent */
950
959
  function addIcon(position, icons, container, input, internalCreate) {
951
- /* eslint-enable @typescript-eslint/indent */
952
960
  var result = typeof (icons) === 'string' ? icons.split(',')
953
961
  : icons;
954
962
  if (position.toLowerCase() === 'append') {
@@ -979,9 +987,7 @@ var Input;
979
987
  * @param {HTMLElement} container - The container on which created span element is going to append.
980
988
  * @param {HTMLElement} inputElement - The inputElement on which created span element is going to prepend.
981
989
  */
982
- /* eslint-disable @typescript-eslint/indent */
983
990
  function prependSpan(iconClass, container, inputElement, internalCreateElement) {
984
- /* eslint-enable @typescript-eslint/indent */
985
991
  var makeElement = !isNullOrUndefined(internalCreateElement) ? internalCreateElement : createElement;
986
992
  var button = createIconEle(iconClass, makeElement);
987
993
  container.classList.add('e-float-icon-left');
@@ -992,7 +998,7 @@ var Input;
992
998
  var result = container.querySelectorAll(inputElement.tagName + ' ~ *');
993
999
  innerWrapper.appendChild(inputElement);
994
1000
  for (var i = 0; i < result.length; i++) {
995
- var element = result[parseInt(i.toString())];
1001
+ var element = result[parseInt(i.toString(), 10)];
996
1002
  var parentElement = innerWrapper.parentElement;
997
1003
  if (!(element.classList.contains('e-float-line')) || (!(parentElement && parentElement.classList.contains('e-filled')) && parentElement)) {
998
1004
  innerWrapper.appendChild(element);
@@ -1144,9 +1150,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1144
1150
  */
1145
1151
  function NumericTextBox(options, element) {
1146
1152
  var _this = _super.call(this, options, element) || this;
1147
- _this.isVue = false;
1148
1153
  _this.preventChange = false;
1149
- _this.isAngular = false;
1150
1154
  _this.isDynamicChange = false;
1151
1155
  _this.numericOptions = options;
1152
1156
  return _this;
@@ -1245,6 +1249,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1245
1249
  if (this.element.hasAttribute('data-val')) {
1246
1250
  this.element.setAttribute('data-val', 'false');
1247
1251
  }
1252
+ if (!this.element.hasAttribute('aria-labelledby') && !this.element.hasAttribute('placeholder')) {
1253
+ this.element.setAttribute('aria-label', 'numerictextbox');
1254
+ }
1248
1255
  if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
1249
1256
  this.enabled = false;
1250
1257
  }
@@ -1252,9 +1259,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1252
1259
  }
1253
1260
  };
1254
1261
  NumericTextBox.prototype.checkAttributes = function (isDynamic) {
1255
- var attributes$$1 = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) :
1262
+ var attributes = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) :
1256
1263
  ['value', 'min', 'max', 'step', 'disabled', 'readonly', 'style', 'name', 'placeholder'];
1257
- for (var _i = 0, attributes_1 = attributes$$1; _i < attributes_1.length; _i++) {
1264
+ for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {
1258
1265
  var prop = attributes_1[_i];
1259
1266
  if (!isNullOrUndefined(this.element.getAttribute(prop))) {
1260
1267
  switch (prop) {
@@ -1709,16 +1716,14 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1709
1716
  }
1710
1717
  if (_this.element.selectionStart > 0) {
1711
1718
  if ((_this.element.value[_this.element.selectionStart - 1].charCodeAt(0) === 45) && _this.element.selectionStart > 1) {
1712
- if (isNullOrUndefined(_this.prevVal)) {
1713
- // eslint-disable-next-line no-self-assign
1714
- _this.element.value = _this.element.value;
1715
- }
1716
- else {
1719
+ if (!isNullOrUndefined(_this.prevVal)) {
1717
1720
  _this.element.value = _this.prevVal;
1718
1721
  }
1719
1722
  _this.element.setSelectionRange(_this.element.selectionStart, _this.element.selectionStart);
1720
1723
  }
1721
- if (_this.element.value[_this.element.selectionStart - 1] === decimalSeparator && _this.decimals === 0 && _this.validateDecimalOnType) {
1724
+ if (_this.element.value[_this.element.selectionStart - 1] === decimalSeparator &&
1725
+ _this.decimals === 0 &&
1726
+ _this.validateDecimalOnType) {
1722
1727
  _this.element.value = _this.element.value.substring(0, prevPos) +
1723
1728
  _this.element.value.substring(currentPos, _this.element.value.length);
1724
1729
  }
@@ -1747,8 +1752,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1747
1752
  }
1748
1753
  };
1749
1754
  NumericTextBox.prototype.inputHandler = function (event) {
1750
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-this-alias
1751
- var numerictextboxObj = this;
1755
+ var numerictextboxObj = this;
1752
1756
  if (!this.enabled || this.readonly) {
1753
1757
  return;
1754
1758
  }
@@ -1771,7 +1775,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1771
1775
  var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
1772
1776
  //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
1773
1777
  var nonZeroRegex = new RegExp('[^0-9]+$');
1774
- if (nonZeroRegex.test(this.element.value) || ((this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) && this.element.value[this.element.value.length - 1] === '0')) {
1778
+ if (nonZeroRegex.test(this.element.value) ||
1779
+ ((this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) &&
1780
+ this.element.value[this.element.value.length - 1] === '0')) {
1775
1781
  current = this.value;
1776
1782
  }
1777
1783
  var eventArgs = {
@@ -1795,7 +1801,6 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1795
1801
  event.preventDefault();
1796
1802
  this.action(DECREMENT, event);
1797
1803
  break;
1798
- default: break;
1799
1804
  }
1800
1805
  }
1801
1806
  };
@@ -2083,8 +2088,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2083
2088
  if (!this.getElementData(event)) {
2084
2089
  return;
2085
2090
  }
2086
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2087
- var result = this.getElementData(event);
2091
+ this.getElementData(event);
2088
2092
  var target = event.currentTarget;
2089
2093
  var action = (target.classList.contains(SPINUP)) ? INCREMENT : DECREMENT;
2090
2094
  EventHandler.add(target, 'mouseleave', this.mouseUpClick, this);
@@ -2231,15 +2235,14 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2231
2235
  }, this.clearButton);
2232
2236
  _super.prototype.destroy.call(this);
2233
2237
  };
2234
- /* eslint-disable valid-jsdoc, jsdoc/require-returns */
2235
2238
  /**
2236
2239
  * Returns the value of NumericTextBox with the format applied to the NumericTextBox.
2237
2240
  *
2241
+ * @returns {string} - Returns the formatted value of the NumericTextBox.
2238
2242
  */
2239
2243
  NumericTextBox.prototype.getText = function () {
2240
2244
  return this.element.value;
2241
2245
  };
2242
- /* eslint-enable valid-jsdoc, jsdoc/require-returns */
2243
2246
  /**
2244
2247
  * Sets the focus to widget for interaction.
2245
2248
  *
@@ -2262,17 +2265,15 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2262
2265
  removeClass([this.container], [NUMERIC_FOCUS]);
2263
2266
  }
2264
2267
  };
2265
- /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
2266
2268
  /**
2267
2269
  * Gets the properties to be maintained in the persisted state.
2268
2270
  *
2269
- * @returns {string}
2271
+ * @returns {string} - Returns the persisted data.
2270
2272
  */
2271
2273
  NumericTextBox.prototype.getPersistData = function () {
2272
2274
  var keyEntity = ['value'];
2273
2275
  return this.addOnPersist(keyEntity);
2274
2276
  };
2275
- /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
2276
2277
  /**
2277
2278
  * Calls internally if any of the property value is changed.
2278
2279
  *
@@ -2488,14 +2489,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2488
2489
  return NumericTextBox;
2489
2490
  }(Component));
2490
2491
 
2491
- /**
2492
- * NumericTextBox modules
2493
- */
2494
-
2495
2492
  /* eslint-disable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */
2496
- /**
2497
- * MaskedTextBox base module
2498
- */
2499
2493
  var ERROR$1 = 'e-error';
2500
2494
  var INPUTGROUP = 'e-input-group';
2501
2495
  var FLOATINPUT = 'e-float-input';
@@ -2654,8 +2648,8 @@ function unwireEvents() {
2654
2648
  EventHandler.remove(this.element, 'focus', maskInputFocusHandler);
2655
2649
  EventHandler.remove(this.element, 'blur', maskInputBlurHandler);
2656
2650
  EventHandler.remove(this.element, 'paste', maskInputPasteHandler);
2657
- EventHandler.remove(this.element, 'drop', maskInputDropHandler);
2658
2651
  EventHandler.remove(this.element, 'cut', maskInputCutHandler);
2652
+ EventHandler.remove(this.element, 'drop', maskInputDropHandler);
2659
2653
  EventHandler.remove(this.element, 'mousedown', maskInputMouseDownHandler);
2660
2654
  EventHandler.remove(this.element, 'mouseup', maskInputMouseUpHandler);
2661
2655
  if (this.formElement) {
@@ -3644,13 +3638,8 @@ var MaskUndo = /** @__PURE__ @class */ (function () {
3644
3638
  }
3645
3639
  return MaskUndo;
3646
3640
  }());
3647
-
3648
3641
  /* eslint-enable valid-jsdoc, jsdoc/require-jsdoc, jsdoc/require-returns, jsdoc/require-param */
3649
3642
 
3650
- /**
3651
- * MaskedTextbox base modules
3652
- */
3653
-
3654
3643
  var __extends$1 = (undefined && undefined.__extends) || (function () {
3655
3644
  var extendStatics = function (d, b) {
3656
3645
  extendStatics = Object.setPrototypeOf ||
@@ -3699,7 +3688,6 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3699
3688
  function MaskedTextBox(options, element) {
3700
3689
  var _this = _super.call(this, options, element) || this;
3701
3690
  _this.initInputValue = '';
3702
- _this.isAngular = false;
3703
3691
  _this.preventChange = false;
3704
3692
  _this.isClicked = false;
3705
3693
  _this.maskOptions = options;
@@ -3775,7 +3763,6 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3775
3763
  var keyEntity = ['value'];
3776
3764
  return this.addOnPersist(keyEntity);
3777
3765
  };
3778
- /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
3779
3766
  /**
3780
3767
  * Initializes the component rendering.
3781
3768
  *
@@ -3807,9 +3794,12 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3807
3794
  if (this.element.getAttribute('value') || this.value) {
3808
3795
  this.element.setAttribute('value', this.element.value);
3809
3796
  }
3810
- if (!isNullOrUndefined(closest(this.element, "fieldset")) && closest(this.element, "fieldset").disabled) {
3797
+ if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
3811
3798
  this.enabled = false;
3812
3799
  }
3800
+ if (!this.element.hasAttribute('aria-labelledby') && !this.element.hasAttribute('placeholder')) {
3801
+ this.element.setAttribute('aria-label', 'maskedtextbox');
3802
+ }
3813
3803
  this.renderComplete();
3814
3804
  }
3815
3805
  };
@@ -3903,9 +3893,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3903
3893
  }
3904
3894
  };
3905
3895
  MaskedTextBox.prototype.checkHtmlAttributes = function (isDynamic) {
3906
- var attributes$$1 = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes)
3896
+ var attributes = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes)
3907
3897
  : ['placeholder', 'disabled', 'value', 'readonly'];
3908
- for (var _i = 0, attributes_1 = attributes$$1; _i < attributes_1.length; _i++) {
3898
+ for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {
3909
3899
  var key = attributes_1[_i];
3910
3900
  if (!isNullOrUndefined(this.element.getAttribute(key))) {
3911
3901
  switch (key) {
@@ -3973,7 +3963,7 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
3973
3963
  if (this.placeholder && !this.isFocus) {
3974
3964
  this.setMaskPlaceholder(false, false);
3975
3965
  }
3976
- if (this.value === "" && oldProp.value != null) {
3966
+ if (this.value === '' && oldProp.value != null) {
3977
3967
  this.element.selectionStart = 0;
3978
3968
  this.element.selectionEnd = 0;
3979
3969
  }
@@ -4052,17 +4042,15 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4052
4042
  this.resetMaskedTextBox();
4053
4043
  setMaskValue.call(this, strippedVal);
4054
4044
  };
4055
- /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
4056
4045
  /**
4057
4046
  * Gets the value of the MaskedTextBox with the masked format.
4058
4047
  * By using `value` property, you can get the raw value of maskedtextbox without literals and prompt characters.
4059
4048
  *
4060
- * @returns {string}
4049
+ * @returns {string} Returns the value with the masked format.
4061
4050
  */
4062
4051
  MaskedTextBox.prototype.getMaskedValue = function () {
4063
4052
  return unstrippedValue.call(this, this.element);
4064
4053
  };
4065
- /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
4066
4054
  /**
4067
4055
  * Sets the focus to widget for interaction.
4068
4056
  *
@@ -4179,18 +4167,6 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4179
4167
  return MaskedTextBox;
4180
4168
  }(Component));
4181
4169
 
4182
- /**
4183
- * MaskedTextbox modules
4184
- */
4185
-
4186
- /**
4187
- * MaskedTextbox modules
4188
- */
4189
-
4190
- /**
4191
- * Input box Component
4192
- */
4193
-
4194
4170
  var __extends$2 = (undefined && undefined.__extends) || (function () {
4195
4171
  var extendStatics = function (d, b) {
4196
4172
  extendStatics = Object.setPrototypeOf ||
@@ -4410,7 +4386,6 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4410
4386
  return _this;
4411
4387
  }
4412
4388
  Slider.prototype.preRender = function () {
4413
- // eslint-disable-next-line
4414
4389
  var localeText = { incrementTitle: 'Increase', decrementTitle: 'Decrease' };
4415
4390
  this.l10n = new L10n('slider', localeText, this.locale);
4416
4391
  this.isElementFocused = false;
@@ -4489,6 +4464,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4489
4464
  /**
4490
4465
  * To Initialize the control rendering
4491
4466
  *
4467
+ * @returns {void}
4492
4468
  * @private
4493
4469
  */
4494
4470
  Slider.prototype.render = function () {
@@ -4499,7 +4475,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4499
4475
  this.setZindex();
4500
4476
  this.renderComplete();
4501
4477
  if (this.element.tagName === 'EJS-SLIDER') {
4502
- if (this.getTheme(this.sliderContainer) == 'none') {
4478
+ if (this.getTheme(this.sliderContainer) === 'none') {
4503
4479
  setTimeout(function () {
4504
4480
  _this.refresh();
4505
4481
  }, 0);
@@ -4551,6 +4527,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4551
4527
  /**
4552
4528
  * Initialize the rendering
4553
4529
  *
4530
+ * @returns {void}
4554
4531
  * @private
4555
4532
  */
4556
4533
  Slider.prototype.initRender = function () {
@@ -4570,7 +4547,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4570
4547
  this.setOrientClass();
4571
4548
  this.hiddenInput = (this.createElement('input', {
4572
4549
  attrs: {
4573
- type: 'hidden', value: (isNullOrUndefined(this.value) ? this.min.toString() : this.value.toString()),
4550
+ type: 'hidden', value: (isNullOrUndefined(this.value) ? (isNullOrUndefined(this.min) ? '0' : this.min.toString()) : this.value.toString()),
4574
4551
  name: this.element.getAttribute('name') || this.element.getAttribute('id') ||
4575
4552
  '_' + (Math.random() * 1000).toFixed(0) + 'slider', class: classNames.sliderHiddenInput
4576
4553
  }
@@ -4585,7 +4562,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4585
4562
  this.rangeValueUpdate();
4586
4563
  }
4587
4564
  else {
4588
- this.value = isNullOrUndefined(this.value) ? parseFloat(formatUnit(this.min.toString())) : this.value;
4565
+ this.value = isNullOrUndefined(this.value) ? (isNullOrUndefined(this.min) ? 0 : parseFloat(formatUnit(this.min.toString()))) : this.value;
4589
4566
  }
4590
4567
  this.previousVal = this.type !== 'Range' ? this.checkHandleValue(parseFloat(formatUnit(this.value.toString()))) :
4591
4568
  [this.checkHandleValue(parseFloat(formatUnit(this.value[0].toString()))),
@@ -4628,6 +4605,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4628
4605
  this.isTailwind = this.getTheme(this.sliderContainer) === 'tailwind' || this.getTheme(this.sliderContainer) === 'tailwind-dark';
4629
4606
  this.isBootstrap5 = this.getTheme(this.sliderContainer) === 'bootstrap5';
4630
4607
  this.isFluent = this.getTheme(this.sliderContainer) === 'FluentUI';
4608
+ this.isFluent2 = this.getTheme(this.sliderContainer) === 'fluent2';
4631
4609
  this.isMaterialTooltip = (this.isMaterial || this.isMaterial3) && this.type !== 'Range' && this.tooltip.isVisible;
4632
4610
  };
4633
4611
  Slider.prototype.createRangeBar = function () {
@@ -4689,7 +4667,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4689
4667
  }
4690
4668
  if (this.type !== 'Range') {
4691
4669
  attributes(element, {
4692
- 'aria-valuemin': min.toString(), 'aria-valuemax': max.toString()
4670
+ 'aria-valuemin': isNullOrUndefined(min) ? '0' : min.toString(), 'aria-valuemax': (isNullOrUndefined(max) ? '100' : max.toString())
4693
4671
  });
4694
4672
  }
4695
4673
  else {
@@ -4835,8 +4813,12 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4835
4813
  }
4836
4814
  };
4837
4815
  Slider.prototype.setEnableRTL = function () {
4838
- this.enableRtl && this.orientation !== 'Vertical' ? addClass([this.sliderContainer], classNames.rtl) :
4816
+ if (this.enableRtl && this.orientation !== 'Vertical') {
4817
+ addClass([this.sliderContainer], classNames.rtl);
4818
+ }
4819
+ else {
4839
4820
  removeClass([this.sliderContainer], classNames.rtl);
4821
+ }
4840
4822
  var preDir = (this.orientation !== 'Vertical') ? this.horDir : this.verDir;
4841
4823
  if (this.enableRtl) {
4842
4824
  this.horDir = 'right';
@@ -4894,8 +4876,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
4894
4876
  }
4895
4877
  };
4896
4878
  Slider.prototype.setTooltipContent = function () {
4897
- var content;
4898
- content = this.formatContent(this.tooltipFormatInfo, false);
4879
+ var content = this.formatContent(this.tooltipFormatInfo, false);
4899
4880
  var contentTemp = function () {
4900
4881
  return content;
4901
4882
  };
@@ -5074,12 +5055,14 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5074
5055
  this.tooltipElement.style.transform = this.getTooltipTransformProperties(this.previousTooltipClass).rotate;
5075
5056
  }
5076
5057
  if (this.type === 'Default') {
5077
- setTimeout(function () { if (_this.tooltipElement)
5078
- _this.tooltipElement.style.transition = _this.transition.handle; }, 2500);
5058
+ setTimeout(function () { if (_this.tooltipElement) {
5059
+ _this.tooltipElement.style.transition = _this.transition.handle;
5060
+ } }, 2500);
5079
5061
  }
5080
5062
  else {
5081
- setTimeout(function () { if (_this.tooltipElement)
5082
- _this.tooltipElement.style.transition = 'none'; }, 2500);
5063
+ setTimeout(function () { if (_this.tooltipElement) {
5064
+ _this.tooltipElement.style.transition = 'none';
5065
+ } }, 2500);
5083
5066
  }
5084
5067
  }
5085
5068
  };
@@ -5098,8 +5081,9 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5098
5081
  this.tooltipElement.classList.remove(classNames.materialTooltipOpen);
5099
5082
  this.setTooltipTransform();
5100
5083
  this.tooltipTarget = undefined;
5101
- setTimeout(function () { if (_this.tooltipElement)
5102
- _this.tooltipElement.style.transition = 'none'; }, 2500);
5084
+ setTimeout(function () { if (_this.tooltipElement) {
5085
+ _this.tooltipElement.style.transition = 'none';
5086
+ } }, 2500);
5103
5087
  }
5104
5088
  };
5105
5089
  Slider.prototype.checkTooltipPosition = function (args) {
@@ -5125,8 +5109,9 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5125
5109
  };
5126
5110
  Slider.prototype.setTooltipTransform = function () {
5127
5111
  var transformProperties = this.getTooltipTransformProperties(this.previousTooltipClass);
5128
- if (isNullOrUndefined(this.tooltipElement))
5112
+ if (isNullOrUndefined(this.tooltipElement)) {
5129
5113
  return;
5114
+ }
5130
5115
  if (this.tooltipElement.firstElementChild.innerText.length > 4) {
5131
5116
  this.tooltipElement.style.transform = transformProperties.translate + " scale(0.01)";
5132
5117
  }
@@ -5136,7 +5121,8 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5136
5121
  };
5137
5122
  Slider.prototype.renderTooltip = function () {
5138
5123
  this.tooltipObj = new Tooltip({
5139
- showTipPointer: this.isBootstrap || this.isMaterial || this.isMaterial3 || this.isBootstrap4 || this.isTailwind || this.isBootstrap5 || this.isFluent,
5124
+ showTipPointer: this.isBootstrap || this.isMaterial || this.isMaterial3 ||
5125
+ this.isBootstrap4 || this.isTailwind || this.isBootstrap5 || this.isFluent || this.isFluent2,
5140
5126
  cssClass: classNames.sliderTooltip,
5141
5127
  height: (this.isMaterial || this.isMaterial3) ? 30 : 'auto',
5142
5128
  animation: { open: { effect: 'None' }, close: { effect: 'FadeOut', duration: 500 } },
@@ -5208,13 +5194,21 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5208
5194
  var value;
5209
5195
  if (args.target.parentElement.classList.contains(classNames.firstButton)
5210
5196
  || args.target.classList.contains(classNames.firstButton)) {
5211
- enabledRTL ? (value = this.add(hVal, parseFloat(this.step.toString()), true)) :
5212
- (value = this.add(hVal, parseFloat(this.step.toString()), false));
5197
+ if (enabledRTL) {
5198
+ value = this.add(hVal, parseFloat(this.step.toString()), true);
5199
+ }
5200
+ else {
5201
+ value = this.add(hVal, parseFloat(this.step.toString()), false);
5202
+ }
5213
5203
  }
5214
5204
  else if (args.target.parentElement.classList.contains(classNames.secondButton)
5215
5205
  || (args.target.classList.contains(classNames.secondButton))) {
5216
- enabledRTL ? (value = this.add(hVal, parseFloat(this.step.toString()), false)) :
5217
- (value = this.add(hVal, parseFloat(this.step.toString()), true));
5206
+ if (enabledRTL) {
5207
+ value = this.add(hVal, parseFloat(this.step.toString()), false);
5208
+ }
5209
+ else {
5210
+ value = this.add(hVal, parseFloat(this.step.toString()), true);
5211
+ }
5218
5212
  }
5219
5213
  if (this.limits.enabled) {
5220
5214
  value = this.getLimitCorrectedValues(value);
@@ -5265,7 +5259,6 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5265
5259
  }
5266
5260
  return tickCount;
5267
5261
  };
5268
- // tslint:disable-next-line:max-func-body-length
5269
5262
  Slider.prototype.renderScale = function () {
5270
5263
  var orien = this.orientation === 'Vertical' ? 'v' : 'h';
5271
5264
  this.noOfDecimals = this.numberOfDecimals(this.step);
@@ -5279,8 +5272,12 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5279
5272
  }
5280
5273
  var smallStep = this.ticks.smallStep;
5281
5274
  if (!this.ticks.showSmallTicks) {
5282
- this.ticks.largeStep > 0 ? (smallStep = this.ticks.largeStep) :
5283
- (smallStep = (parseFloat(formatUnit(this.max))) - (parseFloat(formatUnit(this.min))));
5275
+ if (this.ticks.largeStep > 0) {
5276
+ smallStep = this.ticks.largeStep;
5277
+ }
5278
+ else {
5279
+ smallStep = (parseFloat(formatUnit(this.max))) - (parseFloat(formatUnit(this.min)));
5280
+ }
5284
5281
  }
5285
5282
  else if (smallStep <= 0) {
5286
5283
  smallStep = parseFloat(formatUnit(this.step));
@@ -5351,7 +5348,12 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5351
5348
  if (islargeTick) {
5352
5349
  li.classList.add(classNames.large);
5353
5350
  }
5354
- (orien === 'h') ? (li.style.width = tickWidth + '%') : (li.style.height = tickWidth + '%');
5351
+ if (orien === 'h') {
5352
+ li.style.width = tickWidth + '%';
5353
+ }
5354
+ else {
5355
+ li.style.height = tickWidth + '%';
5356
+ }
5355
5357
  var repeat = islargeTick ? (this.ticks.placement === 'Both' ? 2 : 1) : 0;
5356
5358
  if (islargeTick) {
5357
5359
  for (var j = 0; j < repeat; j++) {
@@ -5415,7 +5417,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5415
5417
  });
5416
5418
  li.appendChild(span);
5417
5419
  if (isNullOrUndefined(this.customValues)) {
5418
- this.formatTicksValue(li, start, span, tickWidth);
5420
+ this.formatTicksValue(li, start, span);
5419
5421
  }
5420
5422
  else {
5421
5423
  if (this.enableHtmlSanitizer) {
@@ -5426,7 +5428,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5426
5428
  }
5427
5429
  }
5428
5430
  };
5429
- Slider.prototype.formatTicksValue = function (li, start, spanElement, tickWidth) {
5431
+ Slider.prototype.formatTicksValue = function (li, start, spanElement) {
5430
5432
  var _this = this;
5431
5433
  var tickText = this.formatNumber(start);
5432
5434
  var text = !isNullOrUndefined(this.ticks) && !isNullOrUndefined(this.ticks.format) ?
@@ -5446,16 +5448,21 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5446
5448
  };
5447
5449
  Slider.prototype.scaleAlignment = function () {
5448
5450
  this.tickValuePosition();
5449
- var orien = this.orientation === 'Vertical' ? 'v' : 'h';
5450
5451
  if (this.orientation === 'Vertical') {
5451
- (this.element.getBoundingClientRect().width <= 15) ?
5452
- this.sliderContainer.classList.add(classNames.sliderSmallSize) :
5452
+ if (this.element.getBoundingClientRect().width <= 15) {
5453
+ this.sliderContainer.classList.add(classNames.sliderSmallSize);
5454
+ }
5455
+ else {
5453
5456
  this.sliderContainer.classList.remove(classNames.sliderSmallSize);
5457
+ }
5454
5458
  }
5455
5459
  else {
5456
- (this.element.getBoundingClientRect().height <= 15) ?
5457
- this.sliderContainer.classList.add(classNames.sliderSmallSize) :
5460
+ if (this.element.getBoundingClientRect().height <= 15) {
5461
+ this.sliderContainer.classList.add(classNames.sliderSmallSize);
5462
+ }
5463
+ else {
5458
5464
  this.sliderContainer.classList.remove(classNames.sliderSmallSize);
5465
+ }
5459
5466
  }
5460
5467
  };
5461
5468
  Slider.prototype.tickValuePosition = function () {
@@ -5549,13 +5556,22 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5549
5556
  attributes(element, { 'aria-valuenow': valuenow, 'aria-valuetext': text });
5550
5557
  }
5551
5558
  else {
5552
- // eslint-disable-next-line
5553
- (!this.enableRtl) ? ((element === this.firstHandle) ?
5554
- attributes(element, { 'aria-valuenow': valuenow.split(' - ')[0], 'aria-valuetext': ariaValueText[0] }) :
5555
- attributes(element, { 'aria-valuenow': valuenow.split(' - ')[1], 'aria-valuetext': ariaValueText[1] })) :
5556
- ((element === this.firstHandle) ?
5557
- attributes(element, { 'aria-valuenow': valuenow.split(' - ')[1], 'aria-valuetext': ariaValueText[1] }) :
5558
- attributes(element, { 'aria-valuenow': valuenow.split(' - ')[0], 'aria-valuetext': ariaValueText[0] }));
5559
+ if (!this.enableRtl) {
5560
+ if (element === this.firstHandle) {
5561
+ attributes(element, { 'aria-valuenow': valuenow.split(' - ')[0], 'aria-valuetext': ariaValueText[0] });
5562
+ }
5563
+ else {
5564
+ attributes(element, { 'aria-valuenow': valuenow.split(' - ')[1], 'aria-valuetext': ariaValueText[1] });
5565
+ }
5566
+ }
5567
+ else {
5568
+ if (element === this.firstHandle) {
5569
+ attributes(element, { 'aria-valuenow': valuenow.split(' - ')[1], 'aria-valuetext': ariaValueText[1] });
5570
+ }
5571
+ else {
5572
+ attributes(element, { 'aria-valuenow': valuenow.split(' - ')[0], 'aria-valuetext': ariaValueText[0] });
5573
+ }
5574
+ }
5559
5575
  }
5560
5576
  };
5561
5577
  Slider.prototype.handleValueUpdate = function () {
@@ -5600,27 +5616,39 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5600
5616
  var hVal = this.handleValueUpdate();
5601
5617
  if ((args.keyCode === 40) || (args.keyCode === 37)
5602
5618
  || args.currentTarget.classList.contains(classNames.firstButton)) {
5603
- // eslint-disable-next-line
5604
- enabledRTL ? (value = this.add(hVal, parseFloat(this.step.toString()), true)) :
5605
- (value = this.add(hVal, parseFloat(this.step.toString()), false));
5619
+ if (enabledRTL) {
5620
+ value = this.add(hVal, parseFloat(this.step.toString()), true);
5621
+ }
5622
+ else {
5623
+ value = this.add(hVal, parseFloat(this.step.toString()), false);
5624
+ }
5606
5625
  }
5607
5626
  else if ((args.keyCode === 38) || (args.keyCode === 39) ||
5608
5627
  args.currentTarget.classList.contains(classNames.secondButton)) {
5609
- // eslint-disable-next-line
5610
- enabledRTL ? (value = this.add(hVal, parseFloat(this.step.toString()), false)) :
5611
- (value = this.add(hVal, parseFloat(this.step.toString()), true));
5628
+ if (enabledRTL) {
5629
+ value = this.add(hVal, parseFloat(this.step.toString()), false);
5630
+ }
5631
+ else {
5632
+ value = this.add(hVal, parseFloat(this.step.toString()), true);
5633
+ }
5612
5634
  }
5613
5635
  else if ((args.keyCode === 33
5614
5636
  || args.currentTarget.classList.contains(classNames.firstButton))) {
5615
- // eslint-disable-next-line
5616
- enabledRTL ? (value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), false)) :
5617
- (value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), true));
5637
+ if (enabledRTL) {
5638
+ value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), false);
5639
+ }
5640
+ else {
5641
+ value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), true);
5642
+ }
5618
5643
  }
5619
5644
  else if ((args.keyCode === 34) ||
5620
5645
  args.currentTarget.classList.contains(classNames.secondButton)) {
5621
- // eslint-disable-next-line
5622
- enabledRTL ? (value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), true)) :
5623
- (value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), false));
5646
+ if (enabledRTL) {
5647
+ value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), true);
5648
+ }
5649
+ else {
5650
+ value = this.add(hVal, parseFloat(this.ticks.largeStep.toString()), false);
5651
+ }
5624
5652
  }
5625
5653
  else if ((args.keyCode === 36)) {
5626
5654
  value = parseFloat(this.min < this.max ? this.min.toString() : this.max.toString());
@@ -5648,13 +5676,20 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5648
5676
  };
5649
5677
  Slider.prototype.tooltipToggle = function (target) {
5650
5678
  if (this.isMaterialTooltip) {
5651
- // eslint-disable-next-line
5652
- !this.tooltipElement.classList.contains(classNames.materialTooltipOpen) ?
5653
- this.openMaterialTooltip() : this.refreshTooltip(this.firstHandle);
5679
+ if (!this.tooltipElement.classList.contains(classNames.materialTooltipOpen)) {
5680
+ this.openMaterialTooltip();
5681
+ }
5682
+ else {
5683
+ this.refreshTooltip(this.firstHandle);
5684
+ }
5654
5685
  }
5655
5686
  else {
5656
- // eslint-disable-next-line
5657
- !this.tooltipElement ? this.openTooltip(target) : this.refreshTooltip(target);
5687
+ if (!this.tooltipElement) {
5688
+ this.openTooltip(target);
5689
+ }
5690
+ else {
5691
+ this.refreshTooltip(target);
5692
+ }
5658
5693
  }
5659
5694
  };
5660
5695
  Slider.prototype.buttonUp = function (args) {
@@ -5668,14 +5703,21 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5668
5703
  Slider.prototype.setRangeBar = function () {
5669
5704
  if (this.orientation === 'Horizontal' && !isNullOrUndefined(this.rangeBar)) {
5670
5705
  if (this.type === 'MinRange') {
5671
- // eslint-disable-next-line
5672
- this.enableRtl ? (this.rangeBar.style.right = '0px') : (this.rangeBar.style.left = '0px');
5706
+ if (this.enableRtl) {
5707
+ this.rangeBar.style.right = '0px';
5708
+ }
5709
+ else {
5710
+ this.rangeBar.style.left = '0px';
5711
+ }
5673
5712
  setStyleAttribute(this.rangeBar, { 'width': isNullOrUndefined(this.handlePos1) ? 0 : this.handlePos1 + 'px' });
5674
5713
  }
5675
5714
  else {
5676
- // eslint-disable-next-line
5677
- this.enableRtl ? (this.rangeBar.style.right =
5678
- this.handlePos1 + 'px') : (this.rangeBar.style.left = this.handlePos1 + 'px');
5715
+ if (this.enableRtl) {
5716
+ this.rangeBar.style.right = this.handlePos1 + 'px';
5717
+ }
5718
+ else {
5719
+ this.rangeBar.style.left = this.handlePos1 + 'px';
5720
+ }
5679
5721
  setStyleAttribute(this.rangeBar, { 'width': this.handlePos2 - this.handlePos1 + 'px' });
5680
5722
  }
5681
5723
  }
@@ -5779,10 +5821,9 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5779
5821
  this.checkHandleValue(parseFloat(this.value.toString()));
5780
5822
  this.handlePos1 = this.checkHandlePosition(this.handleVal1);
5781
5823
  this.preHandlePos1 = this.handlePos1;
5782
- // eslint-disable-next-line
5783
- isNullOrUndefined(this.activeHandle) ? (this.type === 'Range' ? this.activeHandle = 2 : this.activeHandle = 1) :
5784
- // eslint-disable-next-line no-self-assign
5785
- this.activeHandle = this.activeHandle;
5824
+ if (isNullOrUndefined(this.activeHandle)) {
5825
+ this.activeHandle = this.type === 'Range' ? 2 : 1;
5826
+ }
5786
5827
  if (this.type === 'Default' || this.type === 'MinRange') {
5787
5828
  if (this.limits.enabled) {
5788
5829
  var values = this.getLimitValueAndPosition(this.handleVal1, this.limits.minStart, this.limits.minEnd);
@@ -5842,10 +5883,16 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5842
5883
  }
5843
5884
  this.handleStart();
5844
5885
  handle.forEach(function (handle) {
5886
+ if (isNullOrUndefined(handle)) {
5887
+ return;
5888
+ }
5845
5889
  if (_this.orientation === 'Horizontal') {
5846
- // eslint-disable-next-line
5847
- _this.enableRtl ? (handle.style.right =
5848
- pos + "px") : (handle.style.left = pos + "px");
5890
+ if (_this.enableRtl) {
5891
+ handle.style.right = pos + "px";
5892
+ }
5893
+ else {
5894
+ handle.style.left = pos + "px";
5895
+ }
5849
5896
  }
5850
5897
  else {
5851
5898
  handle.style.bottom = pos + "px";
@@ -5997,12 +6044,13 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
5997
6044
  /**
5998
6045
  * It is used to reposition slider.
5999
6046
  *
6000
- * @returns void
6047
+ * @returns {void}
6001
6048
  */
6002
6049
  Slider.prototype.reposition = function () {
6003
6050
  var _this = this;
6004
- if (!isNullOrUndefined(this.firstHandle))
6051
+ if (!isNullOrUndefined(this.firstHandle)) {
6005
6052
  this.firstHandle.style.transition = 'none';
6053
+ }
6006
6054
  if (this.type !== 'Default' && !isNullOrUndefined(this.rangeBar)) {
6007
6055
  this.rangeBar.style.transition = 'none';
6008
6056
  }
@@ -6014,26 +6062,38 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6014
6062
  this.handlePos2 = this.checkHandlePosition(this.handleVal2);
6015
6063
  }
6016
6064
  if (this.orientation === 'Horizontal') {
6017
- // eslint-disable-next-line
6018
- this.enableRtl ? this.firstHandle.style.right =
6019
- this.handlePos1 + "px" : this.firstHandle.style.left = this.handlePos1 + "px";
6065
+ if (this.enableRtl) {
6066
+ this.firstHandle.style.right = this.handlePos1 + "px";
6067
+ }
6068
+ else {
6069
+ this.firstHandle.style.left = this.handlePos1 + "px";
6070
+ }
6020
6071
  if (this.isMaterialTooltip && !isNullOrUndefined(this.materialHandle)) {
6021
- // eslint-disable-next-line
6022
- this.enableRtl ? this.materialHandle.style.right =
6023
- this.handlePos1 + "px" : this.materialHandle.style.left = this.handlePos1 + "px";
6072
+ if (this.enableRtl) {
6073
+ this.materialHandle.style.right = this.handlePos1 + "px";
6074
+ }
6075
+ else {
6076
+ this.materialHandle.style.left = this.handlePos1 + "px";
6077
+ }
6024
6078
  }
6025
6079
  if (this.type === 'MinRange' && !isNullOrUndefined(this.rangeBar)) {
6026
- // eslint-disable-next-line
6027
- this.enableRtl ? (this.rangeBar.style.right = '0px') : (this.rangeBar.style.left = '0px');
6080
+ if (this.enableRtl) {
6081
+ this.rangeBar.style.right = '0px';
6082
+ }
6083
+ else {
6084
+ this.rangeBar.style.left = '0px';
6085
+ }
6028
6086
  setStyleAttribute(this.rangeBar, { 'width': isNullOrUndefined(this.handlePos1) ? 0 : this.handlePos1 + 'px' });
6029
6087
  }
6030
6088
  else if (this.type === 'Range' && !isNullOrUndefined(this.secondHandle) && !isNullOrUndefined(this.rangeBar)) {
6031
- // eslint-disable-next-line
6032
- this.enableRtl ? this.secondHandle.style.right =
6033
- this.handlePos2 + "px" : this.secondHandle.style.left = this.handlePos2 + "px";
6034
- // eslint-disable-next-line
6035
- this.enableRtl ? (this.rangeBar.style.right =
6036
- this.handlePos1 + 'px') : (this.rangeBar.style.left = this.handlePos1 + 'px');
6089
+ if (this.enableRtl) {
6090
+ this.secondHandle.style.right = this.handlePos2 + "px";
6091
+ this.rangeBar.style.right = this.handlePos1 + 'px';
6092
+ }
6093
+ else {
6094
+ this.secondHandle.style.left = this.handlePos2 + "px";
6095
+ this.rangeBar.style.left = this.handlePos1 + 'px';
6096
+ }
6037
6097
  setStyleAttribute(this.rangeBar, { 'width': this.handlePos2 - this.handlePos1 + 'px' });
6038
6098
  }
6039
6099
  }
@@ -6063,8 +6123,9 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6063
6123
  this.handleStart();
6064
6124
  if (!this.tooltip.isVisible) {
6065
6125
  setTimeout(function () {
6066
- if (!isNullOrUndefined(_this.firstHandle))
6126
+ if (!isNullOrUndefined(_this.firstHandle)) {
6067
6127
  _this.firstHandle.style.transition = _this.scaleTransform;
6128
+ }
6068
6129
  if (_this.type === 'Range' && !isNullOrUndefined(_this.secondHandle)) {
6069
6130
  _this.secondHandle.style.transition = _this.scaleTransform;
6070
6131
  }
@@ -6110,7 +6171,6 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6110
6171
  this.setHandlePosition(null);
6111
6172
  }
6112
6173
  };
6113
- // eslint-disable-next-line
6114
6174
  Slider.prototype.tempStartEnd = function () {
6115
6175
  if (this.min > this.max) {
6116
6176
  return {
@@ -6125,7 +6185,6 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6125
6185
  };
6126
6186
  }
6127
6187
  };
6128
- // eslint-disable-next-line
6129
6188
  Slider.prototype.xyToPosition = function (position) {
6130
6189
  var pos;
6131
6190
  if (this.min === this.max) {
@@ -6176,8 +6235,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6176
6235
  return value;
6177
6236
  };
6178
6237
  Slider.prototype.add = function (a, b, addition) {
6179
- var precision;
6180
- var x = Math.pow(10, precision || 3);
6238
+ var x = Math.pow(10, 3);
6181
6239
  var val;
6182
6240
  if (addition) {
6183
6241
  val = (Math.round(a * x) + Math.round(b * x)) / x;
@@ -6201,7 +6259,6 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6201
6259
  };
6202
6260
  Slider.prototype.sliderBarClick = function (evt) {
6203
6261
  evt.preventDefault();
6204
- // eslint-disable-next-line
6205
6262
  var pos;
6206
6263
  if (evt.type === 'mousedown' || evt.type === 'mouseup' || evt.type === 'click') {
6207
6264
  pos = { x: evt.clientX, y: evt.clientY };
@@ -6254,7 +6311,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6254
6311
  var eventX = evt.clientX, eventY = evt.clientY;
6255
6312
  behindElement = document.elementFromPoint(eventX, eventY);
6256
6313
  }
6257
- if (evt.target === handle && behindElement != handle) {
6314
+ if (evt.target === handle && behindElement !== handle) {
6258
6315
  if ((this.isMaterial || this.isMaterial3) && !this.tooltip.isVisible &&
6259
6316
  !this.getHandle().classList.contains(classNames.sliderTabHandle)) {
6260
6317
  this.materialChange();
@@ -6276,7 +6333,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6276
6333
  if (this.isMaterialTooltip) {
6277
6334
  this.initialTooltip = false;
6278
6335
  }
6279
- if (evt.target != handle) {
6336
+ if (evt.target !== handle) {
6280
6337
  this.changeEvent('changed', evt);
6281
6338
  }
6282
6339
  if (this.type !== 'Default') {
@@ -6672,8 +6729,13 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6672
6729
  }
6673
6730
  }
6674
6731
  if (this.type === 'Range') {
6675
- (event.target.previousSibling).classList.contains(classNames.sliderHandle) ?
6676
- this.activeHandle = 2 : this.activeHandle = 1;
6732
+ var previousSibling = event.target.previousSibling;
6733
+ if (previousSibling && previousSibling.classList.contains(classNames.sliderHandle)) {
6734
+ this.activeHandle = 2;
6735
+ }
6736
+ else {
6737
+ this.activeHandle = 1;
6738
+ }
6677
6739
  }
6678
6740
  this.getHandle().focus();
6679
6741
  this.tooltipToggle(this.getHandle());
@@ -6843,6 +6905,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6843
6905
  /**
6844
6906
  * Get the properties to be maintained in the persisted state.
6845
6907
  *
6908
+ * @returns {string} - Returns the string
6846
6909
  * @private
6847
6910
  */
6848
6911
  Slider.prototype.getPersistData = function () {
@@ -6854,7 +6917,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6854
6917
  * Also it removes the attributes and classes.
6855
6918
  *
6856
6919
  * @method destroy
6857
- * @return {void}
6920
+ * @returns {void}
6858
6921
  */
6859
6922
  Slider.prototype.destroy = function () {
6860
6923
  _super.prototype.destroy.call(this);
@@ -6865,7 +6928,9 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6865
6928
  if (this.type === 'Range') {
6866
6929
  this.secondHandle.removeAttribute('aria-orientation');
6867
6930
  }
6868
- this.sliderContainer.parentNode.insertBefore(this.element, this.sliderContainer);
6931
+ if (this.sliderContainer.parentNode) {
6932
+ this.sliderContainer.parentNode.insertBefore(this.element, this.sliderContainer);
6933
+ }
6869
6934
  detach(this.sliderContainer);
6870
6935
  if (this.tooltip.isVisible) {
6871
6936
  this.tooltipObj.destroy();
@@ -6893,9 +6958,11 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
6893
6958
  /**
6894
6959
  * Calls internally if any of the property value is changed.
6895
6960
  *
6961
+ * @param {SliderModel} newProp - Specifies the new properties
6962
+ * @param {SliderModel} oldProp - Specifies the old properties
6963
+ * @returns {void}
6896
6964
  * @private
6897
6965
  */
6898
- // tslint:disable-next-line
6899
6966
  Slider.prototype.onPropertyChanged = function (newProp, oldProp) {
6900
6967
  var _this = this;
6901
6968
  for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
@@ -7055,8 +7122,9 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
7055
7122
  if (!this.isMaterial && !this.isMaterial3 && !isNullOrUndefined(this.ticks) && this.ticks.placement === 'Both') {
7056
7123
  this.element.style.zIndex = (this.zIndex + 2) + '';
7057
7124
  }
7058
- if (!isNullOrUndefined(this.firstHandle))
7125
+ if (!isNullOrUndefined(this.firstHandle)) {
7059
7126
  this.firstHandle.style.zIndex = (this.zIndex + 3) + '';
7127
+ }
7060
7128
  if (this.type === 'Range' && !isNullOrUndefined(this.secondHandle)) {
7061
7129
  this.secondHandle.style.zIndex = (this.zIndex + 4) + '';
7062
7130
  }
@@ -7090,7 +7158,8 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
7090
7158
  trackClassName = classNames.sliderHorizantalColor;
7091
7159
  if (this.enableRtl) {
7092
7160
  if (isNullOrUndefined(this.customValues)) {
7093
- trackPosition = this.checkHandlePosition(this.max) - this.checkHandlePosition(this.colorRange[i].end);
7161
+ trackPosition =
7162
+ this.checkHandlePosition(this.max) - this.checkHandlePosition(this.colorRange[i].end);
7094
7163
  }
7095
7164
  else {
7096
7165
  trackPosition = this.checkHandlePosition(this.customValues.length - this.colorRange[i].end - 1);
@@ -7117,6 +7186,7 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
7117
7186
  /**
7118
7187
  * Gets the component name
7119
7188
  *
7189
+ * @returns {string} - Returns the string
7120
7190
  * @private
7121
7191
  */
7122
7192
  Slider.prototype.getModuleName = function () {
@@ -7200,10 +7270,6 @@ var Slider = /** @__PURE__ @class */ (function (_super) {
7200
7270
  return Slider;
7201
7271
  }(Component));
7202
7272
 
7203
- /**
7204
- * Slider modules
7205
- */
7206
-
7207
7273
  var __extends$3 = (undefined && undefined.__extends) || (function () {
7208
7274
  var extendStatics = function (d, b) {
7209
7275
  extendStatics = Object.setPrototypeOf ||
@@ -7226,7 +7292,6 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
7226
7292
  /**
7227
7293
  * global declarations
7228
7294
  */
7229
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
7230
7295
  var regex = {
7231
7296
  /* eslint-disable no-useless-escape */
7232
7297
  EMAIL: new RegExp('^[A-Za-z0-9._%+-]{1,}@[A-Za-z0-9._%+-]{1,}([.]{1}[a-zA-Z0-9]{2,}' +
@@ -7373,20 +7438,19 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7373
7438
  }
7374
7439
  else if (!isNullOrUndefined(this.rules["" + name] && rules)) {
7375
7440
  for (var i = 0; i < rules.length; i++) {
7376
- delete this.rules["" + name][rules[parseInt(i.toString())]];
7441
+ delete this.rules["" + name][rules[parseInt(i.toString(), 10)]];
7377
7442
  }
7378
7443
  }
7379
7444
  else {
7380
7445
  return;
7381
7446
  }
7382
7447
  };
7383
- /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
7384
7448
  /**
7385
7449
  * Validate the current form values using defined rules.
7386
7450
  * Returns `true` when the form is valid otherwise `false`
7387
7451
  *
7388
7452
  * @param {string} selected - Optional parameter to validate specified element.
7389
- * @returns {boolean}
7453
+ * @returns {boolean} - Returns form validation status.
7390
7454
  */
7391
7455
  FormValidator.prototype.validate = function (selected) {
7392
7456
  var rules = Object.keys(this.rules);
@@ -7406,7 +7470,6 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7406
7470
  return this.errorRules.length === 0;
7407
7471
  }
7408
7472
  };
7409
- /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
7410
7473
  /**
7411
7474
  * Reset the value of all the fields in form.
7412
7475
  *
@@ -7416,18 +7479,16 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7416
7479
  this.element.reset();
7417
7480
  this.clearForm();
7418
7481
  };
7419
- /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
7420
7482
  /**
7421
7483
  * Get input element by name.
7422
7484
  *
7423
7485
  * @param {string} name - Input element name attribute value.
7424
- * @returns {HTMLInputElement}
7486
+ * @returns {HTMLInputElement} - Returns the input element.
7425
7487
  */
7426
7488
  FormValidator.prototype.getInputElement = function (name) {
7427
7489
  this.inputElement = (select('[name="' + name + '"]', this.element));
7428
7490
  return this.inputElement;
7429
7491
  };
7430
- /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
7431
7492
  /**
7432
7493
  * Destroy the form validator object and error elements.
7433
7494
  *
@@ -7484,9 +7545,9 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7484
7545
  };
7485
7546
  /**
7486
7547
  * @param {any} args - Specifies the culture name.
7548
+ * @returns {void}
7487
7549
  * @private
7488
7550
  */
7489
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
7490
7551
  FormValidator.prototype.afterLocalization = function (args) {
7491
7552
  this.locale = args.locale;
7492
7553
  this.localeFunc();
@@ -7511,10 +7572,12 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7511
7572
  input.removeAttribute('aria-invalid');
7512
7573
  var inputParent = input.parentElement;
7513
7574
  var grandParent = inputParent.parentElement;
7514
- if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || (input.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7575
+ if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
7576
+ (input.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7515
7577
  inputParent.classList.remove(this.errorClass);
7516
7578
  }
7517
- else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {
7579
+ else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') ||
7580
+ grandParent.classList.contains('e-wrapper'))) {
7518
7581
  grandParent.classList.remove(this.errorClass);
7519
7582
  }
7520
7583
  else {
@@ -7525,10 +7588,12 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7525
7588
  this.getErrorElement(input.name);
7526
7589
  this.hideMessage(input.name);
7527
7590
  }
7528
- if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || (input.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7591
+ if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
7592
+ (input.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7529
7593
  inputParent.classList.remove(this.validClass);
7530
7594
  }
7531
- else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {
7595
+ else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') ||
7596
+ grandParent.classList.contains('e-wrapper'))) {
7532
7597
  grandParent.classList.remove(this.validClass);
7533
7598
  }
7534
7599
  else {
@@ -7783,11 +7848,13 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7783
7848
  this.inputElement.setAttribute('aria-describedby', this.inputElement.id + '-info');
7784
7849
  var inputParent = this.inputElement.parentElement;
7785
7850
  var grandParent = inputParent.parentElement;
7786
- if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || (this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7851
+ if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
7852
+ (this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7787
7853
  inputParent.classList.add(this.errorClass);
7788
7854
  inputParent.classList.remove(this.validClass);
7789
7855
  }
7790
- else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {
7856
+ else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') ||
7857
+ grandParent.classList.contains('e-wrapper'))) {
7791
7858
  grandParent.classList.add(this.errorClass);
7792
7859
  grandParent.classList.remove(this.validClass);
7793
7860
  }
@@ -7803,11 +7870,13 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7803
7870
  }
7804
7871
  eventArgs.errorElement = this.infoElement;
7805
7872
  eventArgs.status = 'failure';
7806
- if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || (this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7873
+ if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
7874
+ (this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7807
7875
  inputParent.classList.add(this.errorClass);
7808
7876
  inputParent.classList.remove(this.validClass);
7809
7877
  }
7810
- else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') || grandParent.classList.contains('e-wrapper'))) {
7878
+ else if ((grandParent != null) && (grandParent.classList.contains('e-control-wrapper') ||
7879
+ grandParent.classList.contains('e-wrapper'))) {
7811
7880
  grandParent.classList.add(this.errorClass);
7812
7881
  grandParent.classList.remove(this.validClass);
7813
7882
  }
@@ -7876,8 +7945,8 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7876
7945
  var formats = message.match(/{(\d)}/g);
7877
7946
  if (!isNullOrUndefined(formats)) {
7878
7947
  for (var i = 0; i < formats.length; i++) {
7879
- var value = ruleValue instanceof Array ? ruleValue[parseInt(i.toString())] : ruleValue;
7880
- message = message.replace(formats[parseInt(i.toString())], value);
7948
+ var value = ruleValue instanceof Array ? ruleValue[parseInt(i.toString(), 10)] : ruleValue;
7949
+ message = message.replace(formats[parseInt(i.toString(), 10)], value);
7881
7950
  }
7882
7951
  }
7883
7952
  return message;
@@ -7939,7 +8008,7 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7939
8008
  // Remove existing rule from errorRules object
7940
8009
  FormValidator.prototype.removeErrorRules = function (name) {
7941
8010
  for (var i = 0; i < this.errorRules.length; i++) {
7942
- var rule = this.errorRules[parseInt(i.toString())];
8011
+ var rule = this.errorRules[parseInt(i.toString(), 10)];
7943
8012
  if (rule.name === name) {
7944
8013
  this.errorRules.splice(i, 1);
7945
8014
  }
@@ -7958,7 +8027,8 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7958
8027
  this.removeErrorRules(name);
7959
8028
  var inputParent = this.inputElement.parentElement;
7960
8029
  var grandParent = inputParent.parentElement;
7961
- if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') || (this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
8030
+ if (inputParent.classList.contains('e-control-wrapper') || inputParent.classList.contains('e-wrapper') ||
8031
+ (this.inputElement.classList.contains('e-input') && inputParent.classList.contains('e-input-group'))) {
7962
8032
  inputParent.classList.add(this.validClass);
7963
8033
  inputParent.classList.remove(this.errorClass);
7964
8034
  }
@@ -7981,7 +8051,7 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
7981
8051
  this.hideMessage(name);
7982
8052
  }
7983
8053
  };
7984
- // Return boolean result if the input have chekcable or submit types
8054
+ // Return boolean result if the input have checkable or submit types
7985
8055
  FormValidator.isCheckable = function (input) {
7986
8056
  var inputType = input.getAttribute('type');
7987
8057
  return inputType && (inputType === 'checkbox' || inputType === 'radio' || inputType === 'submit');
@@ -8014,10 +8084,10 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
8014
8084
  return regex.DIGITS.test(option.value);
8015
8085
  },
8016
8086
  maxLength: function (option) {
8017
- return option.value.length <= option.param;
8087
+ return option.value.length <= Number(option.param);
8018
8088
  },
8019
8089
  minLength: function (option) {
8020
- return option.value.length >= option.param;
8090
+ return option.value.length >= Number(option.param);
8021
8091
  },
8022
8092
  rangeLength: function (option) {
8023
8093
  var param = option.param;
@@ -8041,7 +8111,7 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
8041
8111
  max: function (option) {
8042
8112
  if (!isNaN(Number(option.value))) {
8043
8113
  // Maximum rule validation for number
8044
- return +option.value <= option.param;
8114
+ return +option.value <= +option.param;
8045
8115
  }
8046
8116
  // Maximum rule validation for date
8047
8117
  return new Date(option.value).getTime() <= new Date(JSON.parse(JSON.stringify(option.param))).getTime();
@@ -8049,11 +8119,11 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
8049
8119
  min: function (option) {
8050
8120
  if (!isNaN(Number(option.value))) {
8051
8121
  // Minimum rule validation for number
8052
- return +option.value >= option.param;
8122
+ return +option.value >= +option.param;
8053
8123
  }
8054
8124
  else if ((option.value).indexOf(',') !== -1) {
8055
8125
  var uNum = (option.value).replace(/,/g, '');
8056
- return parseFloat(uNum) >= option.param;
8126
+ return parseFloat(uNum) >= Number(option.param); // Convert option.param to a number
8057
8127
  }
8058
8128
  else {
8059
8129
  // Minimum rule validation for date
@@ -8124,10 +8194,6 @@ var FormValidator = /** @__PURE__ @class */ (function (_super) {
8124
8194
  return FormValidator;
8125
8195
  }(Base));
8126
8196
 
8127
- /**
8128
- * Input box Component
8129
- */
8130
-
8131
8197
  var __extends$4 = (undefined && undefined.__extends) || (function () {
8132
8198
  var extendStatics = function (d, b) {
8133
8199
  extendStatics = Object.setPrototypeOf ||
@@ -8147,7 +8213,6 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
8147
8213
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
8148
8214
  return c > 3 && r && Object.defineProperty(target, key, r), r;
8149
8215
  };
8150
- /* eslint-disable @typescript-eslint/no-explicit-any */
8151
8216
  var CONTROL_WRAPPER = 'e-upload e-control-wrapper';
8152
8217
  var INPUT_WRAPPER = 'e-file-select';
8153
8218
  var DROP_AREA = 'e-file-drop';
@@ -8284,7 +8349,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8284
8349
  _this.newFileRef = 0;
8285
8350
  _this.isFirstFileOnSelection = false;
8286
8351
  _this.dragCounter = 0;
8287
- _this.isAngular = false;
8288
8352
  /**
8289
8353
  * Get the file item(li) which are shown in file list.
8290
8354
  *
@@ -8348,8 +8412,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8348
8412
  this.updateDirectoryAttributes();
8349
8413
  break;
8350
8414
  case 'template':
8351
- var ejInstance = getValue('ej2_instances', this.element);
8352
- if (ejInstance[0].isReact) {
8415
+ if (this.isReact) {
8353
8416
  this.reRenderFileList();
8354
8417
  }
8355
8418
  else {
@@ -9293,10 +9356,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9293
9356
  }
9294
9357
  return false;
9295
9358
  };
9296
- /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
9297
9359
  /* istanbul ignore next */
9298
9360
  Uploader.prototype.traverseFileTree = function (item, event) {
9299
- /* eslint-enable @typescript-eslint/explicit-module-boundary-types */
9300
9361
  if (item.isFile) {
9301
9362
  this.filesEntries.push(item);
9302
9363
  }
@@ -9416,8 +9477,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9416
9477
  if (this.enableHtmlSanitizer) {
9417
9478
  for (var i = 0; i < fileData.length; i++) {
9418
9479
  var sanitizeFile = SanitizeHtmlHelper.beforeSanitize();
9419
- var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[parseInt(i.toString())].name);
9420
- var currentFileName = fileData[parseInt(i.toString())].name;
9480
+ var sanitizeFileName = SanitizeHtmlHelper.serializeValue(sanitizeFile, fileData[parseInt(i.toString(), 10)].name);
9481
+ var currentFileName = fileData[parseInt(i.toString(), 10)].name;
9421
9482
  var isUTF8 = false;
9422
9483
  for (var i_1 = 0; i_1 < currentFileName.length; i_1++) {
9423
9484
  if (currentFileName.charCodeAt(i_1) > 127) {
@@ -9427,13 +9488,13 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9427
9488
  }
9428
9489
  var htmlTagRegex = /<([a-z][a-z0-9]*)\b[^>]*>(.*?)<\/\1>/i;
9429
9490
  var hasHTMLString = htmlTagRegex.test(currentFileName);
9430
- if ((sanitizeFileName !== fileData[parseInt(i.toString())].name) && !(isUTF8 && !hasHTMLString)) {
9431
- var encodedFileName = targetFiles[parseInt(i.toString())].name.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
9491
+ if ((sanitizeFileName !== fileData[parseInt(i.toString(), 10)].name) && !(isUTF8 && !hasHTMLString)) {
9492
+ var encodedFileName = targetFiles[parseInt(i.toString(), 10)].name.replace(/[\u00A0-\u9999<>\\&]/g, function (i) {
9432
9493
  return '&#' + i.charCodeAt(0) + ';';
9433
9494
  });
9434
- fileData[parseInt(i.toString())].name = encodedFileName;
9435
- fileData[parseInt(i.toString())].status = this.localizedTexts('invalidFileName');
9436
- fileData[parseInt(i.toString())].statusCode = '0';
9495
+ fileData[parseInt(i.toString(), 10)].name = encodedFileName;
9496
+ fileData[parseInt(i.toString(), 10)].status = this.localizedTexts('invalidFileName');
9497
+ fileData[parseInt(i.toString(), 10)].statusCode = '0';
9437
9498
  }
9438
9499
  }
9439
9500
  }
@@ -9444,9 +9505,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9444
9505
  _this._internalRenderSelect(eventArgs, fileData);
9445
9506
  });
9446
9507
  };
9447
- Uploader.prototype.updateInitialFileDetails = function (args,
9448
- // eslint-disable-next-line @typescript-eslint/indent
9449
- targetFiles, file, i, fileData, directory, paste) {
9508
+ Uploader.prototype.updateInitialFileDetails = function (args, targetFiles, file, i, fileData, directory, paste) {
9450
9509
  var fileName = directory ? targetFiles[i].path.substring(1, targetFiles[i].path.length) : paste ?
9451
9510
  getUniqueID(file.name.substring(0, file.name.lastIndexOf('.'))) + '.' + this.getFileType(file.name) :
9452
9511
  this.directoryUpload ? targetFiles[i].webkitRelativePath : file.name;
@@ -9591,7 +9650,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9591
9650
  allowedExtensions.push(extension.trim().toLocaleLowerCase());
9592
9651
  }
9593
9652
  for (var i = 0; i < files.length; i++) {
9594
- var checkFileType = files[i].type.indexOf(".") !== -1 ? files[i].type.replace(".", "") : files[i].type;
9653
+ var checkFileType = files[i].type.indexOf('.') !== -1 ?
9654
+ files[i].type.replace('.', '') : files[i].type;
9595
9655
  if (allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1) {
9596
9656
  files[i].status = this.localizedTexts('invalidFileType');
9597
9657
  files[i].statusCode = '0';
@@ -9619,7 +9679,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9619
9679
  Uploader.prototype.isPreLoadFile = function (fileData) {
9620
9680
  var isPreload = false;
9621
9681
  for (var i = 0; i < this.files.length; i++) {
9622
- if (this.files[i].name === fileData.name.slice(0, fileData.name.lastIndexOf('.')) && this.files[i].type === fileData.type) {
9682
+ if (this.files[i].name === fileData.name.slice(0, fileData.name.lastIndexOf('.')) &&
9683
+ this.files[i].type === fileData.type) {
9623
9684
  isPreload = true;
9624
9685
  }
9625
9686
  }
@@ -9868,7 +9929,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9868
9929
  this.fileList.push(fileList);
9869
9930
  this.renderReactTemplates();
9870
9931
  };
9871
- /* eslint-disable valid-jsdoc, jsdoc/require-param */
9872
9932
  /**
9873
9933
  * Create the file list for specified files data.
9874
9934
  *
@@ -9880,7 +9940,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9880
9940
  this.internalCreateFileList(fileData);
9881
9941
  };
9882
9942
  Uploader.prototype.internalCreateFileList = function (fileData) {
9883
- /* eslint-enable valid-jsdoc, jsdoc/require-param */
9884
9943
  this.createParentUL();
9885
9944
  if (this.template !== '' && !isNullOrUndefined(this.template)) {
9886
9945
  if (this.isFormUpload()) {
@@ -10032,7 +10091,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10032
10091
  if (!isNullOrUndefined(li) && !li.classList.contains(UPLOAD_SUCCESS)) {
10033
10092
  filterFiles.push(files[i]);
10034
10093
  }
10035
- else if (!this.showFileList && files[i].status !== "File uploaded successfully") {
10094
+ else if (!this.showFileList && files[i].status !== 'File uploaded successfully') {
10036
10095
  filterFiles.push(files[i]);
10037
10096
  }
10038
10097
  }
@@ -10357,7 +10416,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10357
10416
  for (var selectFileIndex = 0; selectFileIndex < selectedFiles.length; selectFileIndex++) {
10358
10417
  var selectedFileData = selectedFiles[selectFileIndex];
10359
10418
  for (var fileDataIndex = 0; fileDataIndex < this.filesData.length; fileDataIndex++) {
10360
- if (this.filesData[fileDataIndex].name === selectedFileData.name && this.filesData[fileDataIndex].status === selectedFileData.status) {
10419
+ if (this.filesData[fileDataIndex].name === selectedFileData.name &&
10420
+ this.filesData[fileDataIndex].status === selectedFileData.status) {
10361
10421
  matchFiles[matchFilesIndex] = this.filesData[fileDataIndex];
10362
10422
  ++matchFilesIndex;
10363
10423
  }
@@ -10468,9 +10528,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10468
10528
  }
10469
10529
  };
10470
10530
  Uploader.prototype.checkHTMLAttributes = function (isDynamic) {
10471
- var attributes$$1 = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) :
10531
+ var attributes = isDynamic ? isNullOrUndefined(this.htmlAttributes) ? [] : Object.keys(this.htmlAttributes) :
10472
10532
  ['accept', 'multiple', 'disabled'];
10473
- for (var _i = 0, attributes_1 = attributes$$1; _i < attributes_1.length; _i++) {
10533
+ for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {
10474
10534
  var prop = attributes_1[_i];
10475
10535
  if (!isNullOrUndefined(this.element.getAttribute(prop))) {
10476
10536
  switch (prop) {
@@ -10690,13 +10750,17 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10690
10750
  this.updateStatus(metaData.file, this.localizedTexts('fileUploadCancel'), '5');
10691
10751
  this.updateProgressBarClasses(liElement, UPLOAD_FAILED);
10692
10752
  this.removeProgressbar(liElement, 'failure');
10693
- (deleteIcon && deleteIcon.classList.remove(ABORT_ICON));
10694
- (deleteIcon && deleteIcon.classList.add(REMOVE_ICON));
10695
- (deleteIcon && deleteIcon.setAttribute('title', this.localizedTexts('remove')));
10753
+ if (deleteIcon) {
10754
+ deleteIcon.classList.remove(ABORT_ICON);
10755
+ deleteIcon.classList.add(REMOVE_ICON);
10756
+ deleteIcon.setAttribute('title', this.localizedTexts('remove'));
10757
+ }
10696
10758
  var pauseIcon = liElement.querySelector('.' + PAUSE_UPLOAD);
10697
- (pauseIcon && pauseIcon.classList.add(RETRY_ICON));
10698
- (pauseIcon && pauseIcon.classList.remove(PAUSE_UPLOAD));
10699
- (pauseIcon && pauseIcon.setAttribute('title', this.localizedTexts('retry')));
10759
+ if (pauseIcon) {
10760
+ pauseIcon.classList.add(RETRY_ICON);
10761
+ pauseIcon.classList.remove(PAUSE_UPLOAD);
10762
+ pauseIcon.setAttribute('title', this.localizedTexts('retry'));
10763
+ }
10700
10764
  if (!isNullOrUndefined(liElement) && !isNullOrUndefined(deleteIcon)
10701
10765
  && !isNullOrUndefined(liElement.querySelector('.e-spinner-pane'))) {
10702
10766
  hideSpinner(spinnerTarget);
@@ -10979,13 +11043,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10979
11043
  }, false);
10980
11044
  }
10981
11045
  };
10982
- /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
10983
11046
  /**
10984
11047
  * It is used to convert bytes value into kilobytes or megabytes depending on the size based
10985
11048
  * on [binary prefix](https://en.wikipedia.org/wiki/Binary_prefix).
10986
11049
  *
10987
11050
  * @param { number } bytes - Specifies the file size in bytes.
10988
- * @returns {string}
11051
+ * @returns {string} - Returns the file size.
10989
11052
  */
10990
11053
  Uploader.prototype.bytesToSize = function (bytes) {
10991
11054
  var i = -1;
@@ -11028,7 +11091,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11028
11091
  }
11029
11092
  return sortedFilesData;
11030
11093
  };
11031
- /* eslint-enable valid-jsdoc, jsdoc/require-returns-description */
11032
11094
  /**
11033
11095
  * Removes the component from the DOM and detaches all its related event handlers. Also it removes the attributes and classes.
11034
11096
  *
@@ -11049,8 +11111,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11049
11111
  }
11050
11112
  this.element.removeAttribute('accept');
11051
11113
  this.setInitialAttributes();
11052
- var attributes$$1 = ['aria-label', 'directory', 'webkitdirectory', 'tabindex'];
11053
- for (var _i = 0, attributes_2 = attributes$$1; _i < attributes_2.length; _i++) {
11114
+ var attributes = ['aria-label', 'directory', 'webkitdirectory', 'tabindex'];
11115
+ for (var _i = 0, attributes_2 = attributes; _i < attributes_2.length; _i++) {
11054
11116
  var key = attributes_2[_i];
11055
11117
  this.element.removeAttribute(key);
11056
11118
  }
@@ -11158,20 +11220,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11158
11220
  this.fileStreams[fileCount] = file;
11159
11221
  return fileCount;
11160
11222
  };
11161
- /* eslint-disable @typescript-eslint/no-unused-vars */
11162
- /* istanbul ignore next */
11163
- Uploader.prototype.getFileInfo = function (index, ele) {
11164
- /* eslint-enable @typescript-eslint/no-unused-vars */
11165
- var files = this.filesData;
11166
- if (!files || files.length === 0) {
11167
- return null;
11168
- }
11169
- var file = files[index];
11170
- if (!file) {
11171
- return null;
11172
- }
11173
- return this.filesData[index];
11174
- };
11175
11223
  Uploader.prototype.uploadFiles = function (files, custom) {
11176
11224
  var selectedFiles = [];
11177
11225
  if (this.asyncSettings.saveUrl === '' || isNullOrUndefined(this.asyncSettings.saveUrl)) {
@@ -11659,13 +11707,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11659
11707
  ], Uploader);
11660
11708
  return Uploader;
11661
11709
  }(Component));
11662
-
11663
11710
  /* eslint-enable @typescript-eslint/no-explicit-any */
11664
11711
 
11665
- /**
11666
- * Uploader modules
11667
- */
11668
-
11669
11712
  var __extends$5 = (undefined && undefined.__extends) || (function () {
11670
11713
  var extendStatics = function (d, b) {
11671
11714
  extendStatics = Object.setPrototypeOf ||
@@ -11685,7 +11728,6 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
11685
11728
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11686
11729
  return c > 3 && r && Object.defineProperty(target, key, r), r;
11687
11730
  };
11688
- /* eslint-disable prefer-spread */
11689
11731
  var APPLY = 'e-apply';
11690
11732
  var CANCEL = 'e-cancel';
11691
11733
  var CURRENT = 'e-current';
@@ -12729,7 +12771,6 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12729
12771
  if (this.element.parentElement && this.element.parentElement.parentElement && this.element.parentElement.parentElement.classList.contains('e-ie-ddb-popup')) {
12730
12772
  this.refreshImageEditorPopupPos();
12731
12773
  }
12732
-
12733
12774
  this.wireEvents();
12734
12775
  this.trigger('onModeSwitch', { element: this.container, mode: 'Palette' });
12735
12776
  };
@@ -12870,7 +12911,6 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
12870
12911
  if (this.element.parentElement && this.element.parentElement.parentElement && this.element.parentElement.parentElement.classList.contains('e-ie-ddb-popup')) {
12871
12912
  this.refreshImageEditorPopupPos();
12872
12913
  }
12873
-
12874
12914
  this.wireEvents();
12875
12915
  this.trigger('onModeSwitch', { element: this.container, mode: 'Picker' });
12876
12916
  };
@@ -13637,10 +13677,6 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
13637
13677
  return ColorPicker;
13638
13678
  }(Component));
13639
13679
 
13640
- /**
13641
- * ColorPicker modules
13642
- */
13643
-
13644
13680
  var __extends$6 = (undefined && undefined.__extends) || (function () {
13645
13681
  var extendStatics = function (d, b) {
13646
13682
  extendStatics = Object.setPrototypeOf ||
@@ -13684,11 +13720,9 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13684
13720
  function TextBox(options, element) {
13685
13721
  var _this = _super.call(this, options, element) || this;
13686
13722
  _this.previousValue = null;
13687
- _this.isAngular = false;
13688
13723
  _this.isHiddenInput = false;
13689
13724
  _this.isForm = false;
13690
13725
  _this.inputPreviousValue = null;
13691
- _this.isVue = false;
13692
13726
  _this.textboxOptions = options;
13693
13727
  return _this;
13694
13728
  }
@@ -13744,7 +13778,12 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13744
13778
  this.updateHTMLAttributesToElement();
13745
13779
  this.updateHTMLAttributesToWrapper();
13746
13780
  this.checkAttributes(true);
13747
- this.multiline && !isNullOrUndefined(this.textarea) ? Input.validateInputType(this.textboxWrapper.container, this.textarea) : Input.validateInputType(this.textboxWrapper.container, this.element);
13781
+ if (this.multiline && !isNullOrUndefined(this.textarea)) {
13782
+ Input.validateInputType(this.textboxWrapper.container, this.textarea);
13783
+ }
13784
+ else {
13785
+ Input.validateInputType(this.textboxWrapper.container, this.element);
13786
+ }
13748
13787
  }
13749
13788
  break;
13750
13789
  case 'readonly':
@@ -13835,7 +13874,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13835
13874
  if (this.element.tagName !== 'TEXTAREA') {
13836
13875
  this.element.setAttribute('type', this.type);
13837
13876
  }
13838
- if (this.type === 'text') {
13877
+ if (this.type === 'text' || (this.element.tagName === 'INPUT' && this.multiline && this.isReact)) {
13839
13878
  this.element.setAttribute('role', 'textbox');
13840
13879
  }
13841
13880
  this.globalize = new Internationalization(this.locale);
@@ -13973,13 +14012,17 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13973
14012
  if (!isNullOrUndefined(closest(this.element, 'fieldset')) && closest(this.element, 'fieldset').disabled) {
13974
14013
  this.enabled = false;
13975
14014
  }
14015
+ if (!this.element.hasAttribute('aria-labelledby') && !this.element.hasAttribute('placeholder')) {
14016
+ this.element.setAttribute('aria-label', 'textbox');
14017
+ }
13976
14018
  this.renderComplete();
13977
14019
  };
13978
14020
  TextBox.prototype.updateHTMLAttributesToWrapper = function () {
13979
14021
  Input.updateHTMLAttributesToWrapper(this.htmlAttributes, this.textboxWrapper.container);
13980
14022
  };
13981
14023
  TextBox.prototype.updateHTMLAttributesToElement = function () {
13982
- Input.updateHTMLAttributesToElement(this.htmlAttributes, this.respectiveElement ? this.respectiveElement : (this.multiline && !isNullOrUndefined(this.textarea) ? this.textarea : this.element));
14024
+ Input.updateHTMLAttributesToElement(this.htmlAttributes, this.respectiveElement ? this.respectiveElement :
14025
+ (this.multiline && !isNullOrUndefined(this.textarea) ? this.textarea : this.element));
13983
14026
  };
13984
14027
  TextBox.prototype.setInitialValue = function () {
13985
14028
  if (!this.isAngular) {
@@ -14063,13 +14106,12 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14063
14106
  this.trigger('blur', eventArgs);
14064
14107
  };
14065
14108
  TextBox.prototype.keydownHandler = function (args) {
14066
- if ((args.keyCode === 13 || args.keyCode === 9) && !((this.previousValue === null || this.previousValue === "") && (this.value === null || this.value === "") && this.respectiveElement.value === "")) {
14109
+ if ((args.keyCode === 13 || args.keyCode === 9) && !((this.previousValue === null || this.previousValue === '') && (this.value === null || this.value === '') && this.respectiveElement.value === '')) {
14067
14110
  this.setProperties({ value: this.respectiveElement.value }, true);
14068
14111
  }
14069
14112
  };
14070
14113
  TextBox.prototype.inputHandler = function (args) {
14071
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-this-alias
14072
- var textboxObj = this;
14114
+ var textboxObj = this;
14073
14115
  var eventArgs = {
14074
14116
  event: args,
14075
14117
  value: this.respectiveElement.value,
@@ -14090,7 +14132,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14090
14132
  };
14091
14133
  TextBox.prototype.changeHandler = function (args) {
14092
14134
  this.setProperties({ value: this.respectiveElement.value }, true);
14093
- if (this.previousValue != this.value) {
14135
+ if (this.previousValue !== this.value) {
14094
14136
  this.raiseChangeEvent(args, true);
14095
14137
  }
14096
14138
  args.stopPropagation();
@@ -14205,24 +14247,23 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14205
14247
  TextBox.prototype.addIcon = function (position, icons) {
14206
14248
  Input.addIcon(position, icons, this.textboxWrapper.container, this.respectiveElement, this.createElement);
14207
14249
  };
14208
- /* eslint-disable valid-jsdoc, jsdoc/require-returns */
14209
14250
  /**
14210
14251
  * Gets the properties to be maintained in the persisted state.
14211
14252
  *
14253
+ * @returns {string} Returns the persisted data.
14212
14254
  */
14213
14255
  TextBox.prototype.getPersistData = function () {
14214
14256
  var keyEntity = ['value'];
14215
14257
  return this.addOnPersist(keyEntity);
14216
14258
  };
14217
- /* eslint-enable valid-jsdoc, jsdoc/require-returns */
14218
14259
  /**
14219
14260
  * Adding the multiple attributes as key-value pair to the TextBox element.
14220
14261
  *
14221
14262
  * @param {string} attributes - Specifies the attributes to be add to TextBox element.
14222
14263
  * @returns {void}
14223
14264
  */
14224
- TextBox.prototype.addAttributes = function (attributes$$1) {
14225
- for (var _i = 0, _a = Object.keys(attributes$$1); _i < _a.length; _i++) {
14265
+ TextBox.prototype.addAttributes = function (attributes) {
14266
+ for (var _i = 0, _a = Object.keys(attributes); _i < _a.length; _i++) {
14226
14267
  var key = _a[_i];
14227
14268
  if (key === 'disabled') {
14228
14269
  this.setProperties({ enabled: false }, true);
@@ -14233,17 +14274,17 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14233
14274
  Input.setReadonly(this.readonly, this.respectiveElement);
14234
14275
  }
14235
14276
  else if (key === 'class') {
14236
- this.respectiveElement.classList.add(attributes$$1["" + key]);
14277
+ this.respectiveElement.classList.add(attributes["" + key]);
14237
14278
  }
14238
14279
  else if (key === 'placeholder') {
14239
- this.setProperties({ placeholder: attributes$$1["" + key] }, true);
14280
+ this.setProperties({ placeholder: attributes["" + key] }, true);
14240
14281
  Input.setPlaceholder(this.placeholder, this.respectiveElement);
14241
14282
  }
14242
14283
  else if (key === 'rows' && this.respectiveElement.tagName === 'TEXTAREA') {
14243
- this.respectiveElement.setAttribute(key, attributes$$1["" + key]);
14284
+ this.respectiveElement.setAttribute(key, attributes["" + key]);
14244
14285
  }
14245
14286
  else {
14246
- this.respectiveElement.setAttribute(key, attributes$$1["" + key]);
14287
+ this.respectiveElement.setAttribute(key, attributes["" + key]);
14247
14288
  }
14248
14289
  }
14249
14290
  };
@@ -14253,8 +14294,8 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14253
14294
  * @param { string[] } attributes - Specifies the attributes name to be removed from TextBox element.
14254
14295
  * @returns {void}
14255
14296
  */
14256
- TextBox.prototype.removeAttributes = function (attributes$$1) {
14257
- for (var _i = 0, attributes_1 = attributes$$1; _i < attributes_1.length; _i++) {
14297
+ TextBox.prototype.removeAttributes = function (attributes) {
14298
+ for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {
14258
14299
  var key = attributes_1[_i];
14259
14300
  if (key === 'disabled') {
14260
14301
  this.setProperties({ enabled: true }, true);
@@ -14366,10 +14407,6 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14366
14407
  return TextBox;
14367
14408
  }(Component));
14368
14409
 
14369
- /**
14370
- * Uploader modules
14371
- */
14372
-
14373
14410
  var __extends$7 = (undefined && undefined.__extends) || (function () {
14374
14411
  var extendStatics = function (d, b) {
14375
14412
  extendStatics = Object.setPrototypeOf ||
@@ -14402,8 +14439,6 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14402
14439
  _this.previousValue = null;
14403
14440
  _this.isForm = false;
14404
14441
  _this.inputPreviousValue = null;
14405
- _this.isAngular = false;
14406
- _this.isVue = false;
14407
14442
  _this.textareaOptions = options;
14408
14443
  return _this;
14409
14444
  }
@@ -14507,14 +14542,14 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14507
14542
  this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
14508
14543
  Input.setPlaceholder(this.placeholder, this.element);
14509
14544
  break;
14510
- case 'rowsCount':
14511
- if (this.rowsCount) {
14512
- this.element.setAttribute('rows', this.rowsCount.toString());
14545
+ case 'rows':
14546
+ if (this.rows) {
14547
+ this.element.setAttribute('rows', this.rows.toString());
14513
14548
  }
14514
14549
  break;
14515
- case 'columnsCount':
14516
- if (this.columnsCount) {
14517
- this.element.setAttribute('cols', this.columnsCount.toString());
14550
+ case 'cols':
14551
+ if (this.cols) {
14552
+ this.element.setAttribute('cols', this.cols.toString());
14518
14553
  if (this.width == null) {
14519
14554
  this.textareaWrapper.container.classList.add(AUTO_WIDTH);
14520
14555
  }
@@ -14591,11 +14626,11 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14591
14626
  if (!this.element.hasAttribute('name')) {
14592
14627
  this.element.setAttribute('name', this.element.getAttribute('id'));
14593
14628
  }
14594
- if (this.rowsCount) {
14595
- this.element.setAttribute('rows', this.rowsCount.toString());
14629
+ if (this.rows) {
14630
+ this.element.setAttribute('rows', this.rows.toString());
14596
14631
  }
14597
- if (this.columnsCount) {
14598
- this.element.setAttribute('cols', this.columnsCount.toString());
14632
+ if (this.cols) {
14633
+ this.element.setAttribute('cols', this.cols.toString());
14599
14634
  }
14600
14635
  if (this.maxLength) {
14601
14636
  this.element.setAttribute('maxlength', this.maxLength.toString());
@@ -14651,10 +14686,10 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14651
14686
  TextArea.prototype.getModuleName = function () {
14652
14687
  return 'textarea';
14653
14688
  };
14654
- /* eslint-disable valid-jsdoc, jsdoc/require-returns */
14655
14689
  /**
14656
14690
  * Gets the properties to be maintained in the persisted state.
14657
14691
  *
14692
+ * @returns {string} - Returns the string value.
14658
14693
  */
14659
14694
  TextArea.prototype.getPersistData = function () {
14660
14695
  var keyEntity = ['value'];
@@ -14736,12 +14771,12 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14736
14771
  detach(this.textareaWrapper.container);
14737
14772
  }
14738
14773
  this.textareaWrapper = null;
14739
- this.formElement = null;
14740
14774
  Input.destroy({
14741
14775
  element: this.element,
14742
14776
  floatLabelType: this.floatLabelType,
14743
14777
  properties: this.properties
14744
14778
  }, this.clearButton);
14779
+ this.formElement = null;
14745
14780
  _super.prototype.destroy.call(this);
14746
14781
  };
14747
14782
  TextArea.prototype.focusHandler = function (args) {
@@ -14770,8 +14805,7 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14770
14805
  }
14771
14806
  };
14772
14807
  TextArea.prototype.inputHandler = function (args) {
14773
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-this-alias
14774
- var textareaObj = this;
14808
+ var textareaObj = this;
14775
14809
  var eventArgs = {
14776
14810
  event: args,
14777
14811
  value: this.element.value,
@@ -14848,15 +14882,14 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14848
14882
  element.dispatchEvent(keyupEvent);
14849
14883
  }
14850
14884
  };
14851
- /* eslint-enable valid-jsdoc, jsdoc/require-returns */
14852
14885
  /**
14853
14886
  * Adding the multiple attributes as key-value pair to the TextArea element.
14854
14887
  *
14855
14888
  * @param {string} attributes - Specifies the attributes to be add to TextArea element.
14856
14889
  * @returns {void}
14857
14890
  */
14858
- TextArea.prototype.addAttributes = function (attributes$$1) {
14859
- for (var _i = 0, _a = Object.keys(attributes$$1); _i < _a.length; _i++) {
14891
+ TextArea.prototype.addAttributes = function (attributes) {
14892
+ for (var _i = 0, _a = Object.keys(attributes); _i < _a.length; _i++) {
14860
14893
  var key = _a[_i];
14861
14894
  if (key === 'disabled') {
14862
14895
  this.setProperties({ enabled: false }, true);
@@ -14867,14 +14900,14 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14867
14900
  Input.setReadonly(this.readonly, this.element);
14868
14901
  }
14869
14902
  else if (key === 'class') {
14870
- this.element.classList.add(attributes$$1["" + key]);
14903
+ this.element.classList.add(attributes["" + key]);
14871
14904
  }
14872
14905
  else if (key === 'placeholder') {
14873
- this.setProperties({ placeholder: attributes$$1["" + key] }, true);
14906
+ this.setProperties({ placeholder: attributes["" + key] }, true);
14874
14907
  Input.setPlaceholder(this.placeholder, this.element);
14875
14908
  }
14876
14909
  else {
14877
- this.element.setAttribute(key, attributes$$1["" + key]);
14910
+ this.element.setAttribute(key, attributes["" + key]);
14878
14911
  }
14879
14912
  }
14880
14913
  };
@@ -14884,8 +14917,8 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14884
14917
  * @param { string[] } attributes - Specifies the attributes name to be removed from TextArea element.
14885
14918
  * @returns {void}
14886
14919
  */
14887
- TextArea.prototype.removeAttributes = function (attributes$$1) {
14888
- for (var _i = 0, attributes_1 = attributes$$1; _i < attributes_1.length; _i++) {
14920
+ TextArea.prototype.removeAttributes = function (attributes) {
14921
+ for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {
14889
14922
  var key = attributes_1[_i];
14890
14923
  if (key === 'disabled') {
14891
14924
  this.setProperties({ enabled: true }, true);
@@ -14940,7 +14973,7 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
14940
14973
  * @returns {void}
14941
14974
  */
14942
14975
  TextArea.prototype.setWrapperWidth = function () {
14943
- if (this.enabled && ((this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') || (this.columnsCount || this.element.getAttribute('cols')))) {
14976
+ if (this.enabled && ((this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') || (this.cols || this.element.getAttribute('cols')))) {
14944
14977
  if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') {
14945
14978
  if (this.textareaWrapper.container.style.width) {
14946
14979
  this.setElementWidth(this.textareaWrapper.container.style.width);
@@ -15028,17 +15061,17 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
15028
15061
  Property(null)
15029
15062
  ], TextArea.prototype, "width", void 0);
15030
15063
  __decorate$7([
15031
- Property('Vertical')
15064
+ Property('Both')
15032
15065
  ], TextArea.prototype, "resizeMode", void 0);
15033
15066
  __decorate$7([
15034
15067
  Property(null)
15035
15068
  ], TextArea.prototype, "maxLength", void 0);
15036
15069
  __decorate$7([
15037
15070
  Property(null)
15038
- ], TextArea.prototype, "columnsCount", void 0);
15071
+ ], TextArea.prototype, "cols", void 0);
15039
15072
  __decorate$7([
15040
15073
  Property(null)
15041
- ], TextArea.prototype, "rowsCount", void 0);
15074
+ ], TextArea.prototype, "rows", void 0);
15042
15075
  __decorate$7([
15043
15076
  Event()
15044
15077
  ], TextArea.prototype, "created", void 0);
@@ -15063,11 +15096,7 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
15063
15096
  return TextArea;
15064
15097
  }(Component));
15065
15098
 
15066
- /**
15067
- * Uploader modules
15068
- */
15069
-
15070
- var __extends$9 = (undefined && undefined.__extends) || (function () {
15099
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
15071
15100
  var extendStatics = function (d, b) {
15072
15101
  extendStatics = Object.setPrototypeOf ||
15073
15102
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15081,7 +15110,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
15081
15110
  };
15082
15111
  })();
15083
15112
  var SignatureBase = /** @__PURE__ @class */ (function (_super) {
15084
- __extends$9(SignatureBase, _super);
15113
+ __extends$8(SignatureBase, _super);
15085
15114
  function SignatureBase() {
15086
15115
  var _this = _super !== null && _super.apply(this, arguments) || this;
15087
15116
  /* minDistance(distance between the two point) was calaculated for smoothness.*/
@@ -15366,7 +15395,6 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
15366
15395
  if (isNullOrUndefined(this.pointColl)) {
15367
15396
  return;
15368
15397
  }
15369
-
15370
15398
  var canDrawCurve = this.pointColl.length > 2;
15371
15399
  var point = this.pointColl[0];
15372
15400
  if (!canDrawCurve && point) {
@@ -16057,7 +16085,7 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
16057
16085
  return SignatureBase;
16058
16086
  }(Component));
16059
16087
 
16060
- var __extends$8 = (undefined && undefined.__extends) || (function () {
16088
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
16061
16089
  var extendStatics = function (d, b) {
16062
16090
  extendStatics = Object.setPrototypeOf ||
16063
16091
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -16092,7 +16120,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
16092
16120
  * ```
16093
16121
  */
16094
16122
  var Signature = /** @__PURE__ @class */ (function (_super) {
16095
- __extends$8(Signature, _super);
16123
+ __extends$9(Signature, _super);
16096
16124
  /**
16097
16125
  * Constructor for creating the widget.
16098
16126
  *
@@ -16227,11 +16255,7 @@ var Signature = /** @__PURE__ @class */ (function (_super) {
16227
16255
  return Signature;
16228
16256
  }(SignatureBase));
16229
16257
 
16230
- /**
16231
- * Signature modules
16232
- */
16233
-
16234
- var __extends$10 = (undefined && undefined.__extends) || (function () {
16258
+ var __extends$a = (undefined && undefined.__extends) || (function () {
16235
16259
  var extendStatics = function (d, b) {
16236
16260
  extendStatics = Object.setPrototypeOf ||
16237
16261
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -16326,7 +16350,7 @@ var PrecisionType;
16326
16350
  * ```
16327
16351
  */
16328
16352
  var Rating = /** @__PURE__ @class */ (function (_super) {
16329
- __extends$10(Rating, _super);
16353
+ __extends$a(Rating, _super);
16330
16354
  /**
16331
16355
  * Constructor for creating the widget
16332
16356
  *
@@ -16414,10 +16438,10 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
16414
16438
  };
16415
16439
  Rating.prototype.touchMoveHandler = function (e) {
16416
16440
  if (!this.isTouchSelected) {
16417
- this.wrapper.classList.add("e-rating-touch");
16441
+ this.wrapper.classList.add('e-rating-touch');
16418
16442
  this.isTouchSelected = true;
16419
16443
  }
16420
- this.wrapper.classList.add("e-touch-select");
16444
+ this.wrapper.classList.add('e-touch-select');
16421
16445
  var rect = this.ratingItemList.getBoundingClientRect();
16422
16446
  var x = e.touches[0].clientX - rect.x;
16423
16447
  var currValue = (x / rect.width) * this.itemsCount;
@@ -16448,7 +16472,7 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
16448
16472
  };
16449
16473
  Rating.prototype.touchEndHandler = function () {
16450
16474
  this.closeRatingTooltip();
16451
- this.wrapper.classList.remove("e-touch-select");
16475
+ this.wrapper.classList.remove('e-touch-select');
16452
16476
  };
16453
16477
  Rating.prototype.updateTemplateFunction = function () {
16454
16478
  this.emptyTemplateFunction = this.emptyTemplate ? this.getTemplateString(this.emptyTemplate) : null;
@@ -16736,7 +16760,7 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
16736
16760
  };
16737
16761
  Rating.prototype.mouseMoveHandler = function (index, e) {
16738
16762
  if (this.isTouchSelected) {
16739
- this.wrapper.classList.remove("e-rating-touch");
16763
+ this.wrapper.classList.remove('e-rating-touch');
16740
16764
  this.isTouchSelected = false;
16741
16765
  }
16742
16766
  var currValue = this.calculateCurrentValue(index, e);
@@ -17077,17 +17101,655 @@ var Rating = /** @__PURE__ @class */ (function (_super) {
17077
17101
  return Rating;
17078
17102
  }(Component));
17079
17103
 
17104
+ var __extends$b = (undefined && undefined.__extends) || (function () {
17105
+ var extendStatics = function (d, b) {
17106
+ extendStatics = Object.setPrototypeOf ||
17107
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
17108
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17109
+ return extendStatics(d, b);
17110
+ };
17111
+ return function (d, b) {
17112
+ extendStatics(d, b);
17113
+ function __() { this.constructor = d; }
17114
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
17115
+ };
17116
+ })();
17117
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
17118
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
17119
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17120
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
17121
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17122
+ };
17123
+ var INPUTFIELD = 'e-otp-input-field';
17124
+ var RTL$3 = 'e-rtl';
17080
17125
  /**
17081
- * Rating modules
17126
+ * Specifies the type of input for the Otp (One-Time Password) input component.
17082
17127
  */
17083
-
17128
+ var OtpInputType;
17129
+ (function (OtpInputType) {
17130
+ /**
17131
+ * Specifies the type of input to be number for the Otp input.
17132
+ */
17133
+ OtpInputType["Number"] = "number";
17134
+ /**
17135
+ * Specifies the type of input to be text for the Otp input.
17136
+ */
17137
+ OtpInputType["Text"] = "text";
17138
+ /**
17139
+ * Specifies the type of input to be password for the Otp input.
17140
+ */
17141
+ OtpInputType["Password"] = "password";
17142
+ })(OtpInputType || (OtpInputType = {}));
17084
17143
  /**
17085
- * Signature base modules
17144
+ * Specifies the style variant for the Otp (One-Time Password) input component.
17086
17145
  */
17087
-
17146
+ var OtpInputStyle;
17147
+ (function (OtpInputStyle) {
17148
+ /**
17149
+ * Specifies the style of the Otp input to be outlined.
17150
+ */
17151
+ OtpInputStyle["Outlined"] = "outlined";
17152
+ /**
17153
+ * Specifies the style of the Otp input to be underlined.
17154
+ */
17155
+ OtpInputStyle["Underlined"] = "underlined";
17156
+ /**
17157
+ * Specifies the style of the Otp input to be filled.
17158
+ */
17159
+ OtpInputStyle["Filled"] = "filled";
17160
+ })(OtpInputStyle || (OtpInputStyle = {}));
17088
17161
  /**
17089
- * NumericTextBox all modules
17162
+ * Represents the Otp component that allows the user to enter the otp values.
17163
+ * ```html
17164
+ * <div id='OTPInput'></div>
17165
+ * ```
17166
+ * ```typescript
17167
+ * <script>
17168
+ * var OtpinputObj = new OtpInput();
17169
+ * OtpinputObj.appendTo('#OTPInput');
17170
+ * </script>
17171
+ * ```
17090
17172
  */
17173
+ var OtpInput = /** @__PURE__ @class */ (function (_super) {
17174
+ __extends$b(OtpInput, _super);
17175
+ function OtpInput(options, element) {
17176
+ var _this = _super.call(this, options, element) || this;
17177
+ /* Private variables */
17178
+ _this.inputs = [];
17179
+ _this.previousValue = '';
17180
+ _this.separatorElements = [];
17181
+ _this.shouldFireFocus = true;
17182
+ _this.shouldFireBlur = true;
17183
+ _this.isFocusInCalled = false;
17184
+ _this.isFocusOutCalled = false;
17185
+ return _this;
17186
+ }
17187
+ OtpInput.prototype.preRender = function () {
17188
+ if (!this.element.id) {
17189
+ this.element.id = getUniqueID('e-' + this.getModuleName());
17190
+ }
17191
+ };
17192
+ OtpInput.prototype.render = function () {
17193
+ this.initialize();
17194
+ };
17195
+ OtpInput.prototype.initialize = function () {
17196
+ attributes(this.element, { 'role': 'group' });
17197
+ this.renderInputs();
17198
+ this.renderSeparator(1, this.inputs.length);
17199
+ this.addPlaceHolder();
17200
+ this.updateCssClass(this.cssClass);
17201
+ this.updateVariantClass();
17202
+ this.updateAriaLabel(this.ariaLabels);
17203
+ this.setElementAttributes(this.htmlAttributes, this.element);
17204
+ if (this.enableRtl) {
17205
+ this.element.classList.add(RTL$3);
17206
+ }
17207
+ this.previousValue = this.value.toString();
17208
+ };
17209
+ OtpInput.prototype.renderInputs = function () {
17210
+ this.hiddenInputEle = this.createElement('input', {
17211
+ id: 'otpInput_hidden',
17212
+ attrs: {
17213
+ name: this.element.id,
17214
+ type: 'hidden',
17215
+ value: this.type === 'number' ? this.value.toString().replace(/\D/g, '') : this.value.toString(),
17216
+ autoComplete: 'off'
17217
+ }
17218
+ });
17219
+ this.element.appendChild(this.hiddenInputEle);
17220
+ for (var i = 0; i < this.length; i++) {
17221
+ this.createOtpInput(i);
17222
+ }
17223
+ };
17224
+ OtpInput.prototype.createOtpInput = function (index) {
17225
+ var valueContainer = this.getDefaultValue();
17226
+ var inputValue = '';
17227
+ if (valueContainer) {
17228
+ if (this.type === 'number') {
17229
+ var valueAtIndex = valueContainer[parseInt(index.toString(), 10)];
17230
+ if (!isNaN(Number(valueAtIndex))) {
17231
+ inputValue = valueAtIndex;
17232
+ }
17233
+ }
17234
+ else {
17235
+ inputValue = valueContainer[parseInt(index.toString(), 10)] || '';
17236
+ }
17237
+ }
17238
+ var inputEle = this.createElement('input', {
17239
+ id: this.element.id + "-" + (index + 1),
17240
+ className: INPUTFIELD + ' ' + 'e-input',
17241
+ attrs: {
17242
+ maxlength: '1',
17243
+ type: this.type,
17244
+ inputmode: (this.type === 'number' ? 'numeric' : 'text')
17245
+ }
17246
+ });
17247
+ if (this.disabled) {
17248
+ inputEle.setAttribute('disabled', 'disabled');
17249
+ }
17250
+ this.element.appendChild(inputEle);
17251
+ this.inputs.push(inputEle);
17252
+ if (inputValue) {
17253
+ inputEle.value = inputValue;
17254
+ }
17255
+ this.wireEvents(inputEle, index);
17256
+ };
17257
+ OtpInput.prototype.renderSeparator = function (index, length) {
17258
+ if (this.separator.length > 0) {
17259
+ for (var i = index; i < length; i++) {
17260
+ var separatorElement = this.createElement('span', {
17261
+ className: 'e-otp-separator'
17262
+ });
17263
+ separatorElement.textContent = this.separator;
17264
+ this.separatorElements.push(separatorElement);
17265
+ this.element.insertBefore(separatorElement, this.inputs[parseInt(i.toString(), 10)]);
17266
+ }
17267
+ }
17268
+ };
17269
+ OtpInput.prototype.updateSeparatorValue = function () {
17270
+ if (this.separator === '') {
17271
+ for (var i = 0; i < this.separatorElements.length; i++) {
17272
+ remove(this.separatorElements[parseInt(i.toString(), 10)]);
17273
+ }
17274
+ this.separatorElements = [];
17275
+ return;
17276
+ }
17277
+ for (var i = 0; i < this.separatorElements.length; i++) {
17278
+ this.separatorElements[parseInt(i.toString(), 10)].textContent = this.separator;
17279
+ }
17280
+ };
17281
+ OtpInput.prototype.addPlaceHolder = function () {
17282
+ for (var i = 0; i < this.inputs.length; i++) {
17283
+ this.setElementAttributes({ 'placeholder': this.placeholder.length === 1 || this.placeholder.length === 0 ? this.placeholder : this.placeholder.charAt(i) }, this.inputs[parseInt(i.toString(), 10)]);
17284
+ }
17285
+ };
17286
+ OtpInput.prototype.updateInputType = function (inputType) {
17287
+ this.inputs.forEach(function (input) {
17288
+ input.type = inputType;
17289
+ input.setAttribute('inputmode', (inputType === 'number' ? 'numeric' : 'text'));
17290
+ });
17291
+ };
17292
+ OtpInput.prototype.getDefaultValue = function () {
17293
+ var extractedValue = typeof this.value === 'number' ? this.value.toString() : this.value;
17294
+ // To remove the white space if present.
17295
+ var value = extractedValue.replace(/\s/g, '');
17296
+ if (value.length > 0) {
17297
+ return value.split('');
17298
+ }
17299
+ return undefined;
17300
+ };
17301
+ OtpInput.prototype.handleInputChange = function (index, event) {
17302
+ var currentInputElement = this.inputs[parseInt(index.toString(), 10)];
17303
+ if (currentInputElement && index < this.length - 1 && currentInputElement.value.length > 0) {
17304
+ var nextInputElement = this.inputs[parseInt(index.toString(), 10) + 1];
17305
+ this.shouldFireFocus = this.shouldFireBlur = false;
17306
+ nextInputElement.focus();
17307
+ if (nextInputElement && nextInputElement.value.length > 0) {
17308
+ nextInputElement.select();
17309
+ }
17310
+ }
17311
+ var target = event.target;
17312
+ if (target.value.length > 1) {
17313
+ target.value = target.value.slice(0, 1);
17314
+ }
17315
+ this.triggerInputEvent(event);
17316
+ this.triggerValuechanged(event, true);
17317
+ };
17318
+ OtpInput.prototype.handleKeyAction = function (index, event) {
17319
+ if (event.key.length > 1 && !((index === 0 && event.key === 'Backspace') ||
17320
+ (index === this.length - 1 && event.key === 'Delete'))) {
17321
+ this.shouldFireFocus = this.shouldFireBlur = false;
17322
+ }
17323
+ var currentInputElement = this.inputs[parseInt(index.toString(), 10)];
17324
+ var previousInputElement = this.inputs[parseInt(index.toString(), 10) - 1];
17325
+ var nextInputElement = this.inputs[parseInt(index.toString(), 10) + 1];
17326
+ if (event.key === 'Delete') {
17327
+ var value = '';
17328
+ if (currentInputElement.value.length > 0) {
17329
+ value = currentInputElement.value;
17330
+ currentInputElement.value = '';
17331
+ }
17332
+ else {
17333
+ if (index !== this.inputs.length - 1) {
17334
+ value = nextInputElement.value;
17335
+ nextInputElement.value = '';
17336
+ nextInputElement.focus();
17337
+ }
17338
+ }
17339
+ if (value.length > 0) {
17340
+ this.triggerInputEvent(event);
17341
+ }
17342
+ }
17343
+ else if (event.key === 'Backspace') {
17344
+ if (index !== 0 && currentInputElement.value.length === 0) {
17345
+ var previousValue = previousInputElement.value;
17346
+ previousInputElement.value = '';
17347
+ previousInputElement.focus();
17348
+ if (previousValue.length > 0) {
17349
+ this.triggerInputEvent(event);
17350
+ }
17351
+ }
17352
+ }
17353
+ else if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
17354
+ if (event.key === 'ArrowLeft') {
17355
+ if (index > 0) {
17356
+ previousInputElement.focus();
17357
+ previousInputElement.select();
17358
+ }
17359
+ }
17360
+ else {
17361
+ if (index < this.inputs.length - 1) {
17362
+ nextInputElement.focus();
17363
+ nextInputElement.select();
17364
+ }
17365
+ }
17366
+ event.preventDefault();
17367
+ }
17368
+ else if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {
17369
+ event.preventDefault();
17370
+ }
17371
+ else {
17372
+ if (event.key !== 'Tab' && !event.shiftKey && !event.ctrlKey) {
17373
+ if (this.type === 'number' && (/\D/.test(event.key.toLocaleLowerCase()))) {
17374
+ event.preventDefault();
17375
+ }
17376
+ }
17377
+ }
17378
+ };
17379
+ OtpInput.prototype.handleSelection = function (index) {
17380
+ var currentInputElement = this.inputs[parseInt(index.toString(), 10)];
17381
+ if (currentInputElement.value) {
17382
+ currentInputElement.select();
17383
+ }
17384
+ };
17385
+ OtpInput.prototype.handleFocus = function (index, event) {
17386
+ addClass([this.inputs[parseInt(index.toString(), 10)]], 'e-otp-input-focus');
17387
+ if (this.shouldFireFocus) {
17388
+ var eventArgs = {
17389
+ element: this.element,
17390
+ event: event,
17391
+ isInteracted: this.isFocusInCalled ? false : true,
17392
+ value: this.value
17393
+ };
17394
+ this.trigger('focus', eventArgs);
17395
+ }
17396
+ this.shouldFireFocus = true;
17397
+ };
17398
+ OtpInput.prototype.handleBlur = function (index, event) {
17399
+ removeClass([this.inputs[parseInt(index.toString(), 10)]], 'e-otp-input-focus');
17400
+ if (this.shouldFireBlur) {
17401
+ var eventArgs = {
17402
+ element: this.element,
17403
+ event: event,
17404
+ isInteracted: this.isFocusOutCalled ? false : true,
17405
+ value: this.value
17406
+ };
17407
+ this.trigger('blur', eventArgs);
17408
+ }
17409
+ this.shouldFireBlur = true;
17410
+ };
17411
+ OtpInput.prototype.handlePaste = function (index, event) {
17412
+ var clipboardData = event.clipboardData;
17413
+ if (clipboardData) {
17414
+ var pastedText = clipboardData.getData('text');
17415
+ var pastedValues = pastedText.split('');
17416
+ var pastedValueIndex = 0;
17417
+ for (var i = index; i < this.inputs.length; i++) {
17418
+ if (pastedValues.length > 0 && pastedValues[parseInt(pastedValueIndex.toString(), 10)]) {
17419
+ this.inputs[parseInt(i.toString(), 10)].value = pastedValues[parseInt(pastedValueIndex.toString(), 10)];
17420
+ pastedValueIndex++;
17421
+ this.updateValueProperty();
17422
+ }
17423
+ }
17424
+ this.focusIn();
17425
+ this.triggerValuechanged(event, true);
17426
+ }
17427
+ };
17428
+ OtpInput.prototype.triggerInputEvent = function (event) {
17429
+ var previousValue = this.value.toString();
17430
+ this.updateValueProperty();
17431
+ var inputEventArgs = {
17432
+ element: this.element,
17433
+ event: event,
17434
+ previousValue: previousValue,
17435
+ value: this.value.toString()
17436
+ };
17437
+ this.trigger('input', inputEventArgs);
17438
+ };
17439
+ OtpInput.prototype.triggerValuechanged = function (event, isInteracted) {
17440
+ if (this.length === this.value.toString().length) {
17441
+ if (this.previousValue !== this.value) {
17442
+ var eventArgs = {
17443
+ element: this.element,
17444
+ event: event,
17445
+ isInteracted: isInteracted ? isInteracted : false,
17446
+ previousValue: this.previousValue,
17447
+ value: this.value
17448
+ };
17449
+ this.trigger('valueChanged', eventArgs);
17450
+ this.previousValue = this.value.toString();
17451
+ }
17452
+ }
17453
+ };
17454
+ OtpInput.prototype.wireEvents = function (inputEle, index) {
17455
+ inputEle.addEventListener('focus', this.handleFocus.bind(this, index));
17456
+ inputEle.addEventListener('blur', this.handleBlur.bind(this, index));
17457
+ inputEle.addEventListener('input', this.handleInputChange.bind(this, index));
17458
+ inputEle.addEventListener('keydown', this.handleKeyAction.bind(this, index));
17459
+ inputEle.addEventListener('click', this.handleSelection.bind(this, index));
17460
+ inputEle.addEventListener('paste', this.handlePaste.bind(this, index));
17461
+ };
17462
+ OtpInput.prototype.unWireEvents = function () {
17463
+ for (var i = 0; i < this.inputs.length; i++) {
17464
+ var currentInputElement = this.inputs[parseInt(i.toString(), 10)];
17465
+ currentInputElement.removeEventListener('focus', this.handleFocus.bind(this, i));
17466
+ currentInputElement.removeEventListener('blur', this.handleBlur.bind(this, i));
17467
+ currentInputElement.removeEventListener('input', this.handleInputChange.bind(this, i));
17468
+ currentInputElement.removeEventListener('keydown', this.handleKeyAction.bind(this, i));
17469
+ currentInputElement.removeEventListener('click', this.handleSelection.bind(this, i));
17470
+ currentInputElement.removeEventListener('paste', this.handlePaste.bind(this, i));
17471
+ }
17472
+ };
17473
+ OtpInput.prototype.updateValueProperty = function () {
17474
+ var value = '';
17475
+ this.inputs.forEach(function (input) {
17476
+ value += input.value;
17477
+ });
17478
+ var prevOnChange = this.isProtectedOnChange;
17479
+ this.isProtectedOnChange = true;
17480
+ this.value = typeof this.value === 'number' ? parseInt(value, 10) : value;
17481
+ this.isProtectedOnChange = prevOnChange;
17482
+ this.hiddenInputEle.value = this.value.toString();
17483
+ };
17484
+ OtpInput.prototype.updateInputValue = function (previousValue) {
17485
+ var stringifiedValue = this.value.toString();
17486
+ for (var i = 0; i < this.inputs.length; i++) {
17487
+ var isValueChanged = previousValue.toString().charAt(i) !== stringifiedValue.charAt(i);
17488
+ if (isValueChanged) {
17489
+ this.inputs[parseInt(i.toString(), 10)].value = stringifiedValue.charAt(i);
17490
+ this.hiddenInputEle.value = stringifiedValue;
17491
+ }
17492
+ }
17493
+ this.focusIn();
17494
+ };
17495
+ OtpInput.prototype.updateCssClass = function (addCss, removeCss) {
17496
+ if (removeCss === void 0) { removeCss = ''; }
17497
+ var _a, _b;
17498
+ var cssClasses;
17499
+ if (removeCss) {
17500
+ cssClasses = removeCss.trim().split(' ');
17501
+ (_a = this.element.classList).remove.apply(_a, cssClasses);
17502
+ }
17503
+ if (addCss) {
17504
+ cssClasses = addCss.trim().split(' ');
17505
+ (_b = this.element.classList).add.apply(_b, cssClasses);
17506
+ }
17507
+ };
17508
+ OtpInput.prototype.updateVariantClass = function () {
17509
+ var variantClass = this.stylingMode.toLocaleLowerCase();
17510
+ variantClass = variantClass === 'outlined' ? 'outline' : variantClass;
17511
+ if (variantClass === 'underlined' || variantClass === 'filled' || variantClass === 'outline') {
17512
+ removeClass([this.element], ['e-underlined', 'e-filled', 'e-outline']);
17513
+ addClass([this.element], "e-" + variantClass);
17514
+ }
17515
+ };
17516
+ OtpInput.prototype.updateAriaLabel = function (customAriaLabel) {
17517
+ this.inputs.forEach(function (input, index) {
17518
+ var defaultLabel = "Enter Otp Character " + (index + 1);
17519
+ var ariaLabel = customAriaLabel && customAriaLabel.length > 0
17520
+ ? customAriaLabel[parseInt(index.toString(), 10)] || defaultLabel
17521
+ : defaultLabel;
17522
+ input.setAttribute('aria-label', ariaLabel);
17523
+ });
17524
+ };
17525
+ OtpInput.prototype.updateDisabledState = function () {
17526
+ var _this = this;
17527
+ this.inputs.forEach(function (input) {
17528
+ if (_this.disabled) {
17529
+ input.setAttribute('disabled', 'disabled');
17530
+ }
17531
+ else {
17532
+ input.removeAttribute('disabled');
17533
+ }
17534
+ });
17535
+ };
17536
+ OtpInput.prototype.setElementAttributes = function (htmlAttributes, element) {
17537
+ if (!isNullOrUndefined(htmlAttributes)) {
17538
+ for (var key in htmlAttributes) {
17539
+ if (key === 'class') {
17540
+ var elementClass = htmlAttributes['class'].replace(/\s+/g, ' ').trim();
17541
+ if (elementClass) {
17542
+ addClass([element], elementClass.split(' '));
17543
+ }
17544
+ }
17545
+ else if (key === 'name' && this.element.id === element.id) {
17546
+ this.hiddenInputEle.setAttribute(key, htmlAttributes["" + key]);
17547
+ }
17548
+ else {
17549
+ element.setAttribute(key, htmlAttributes["" + key]);
17550
+ }
17551
+ }
17552
+ }
17553
+ };
17554
+ OtpInput.prototype.handleLengthChange = function (currentValue, previousValue) {
17555
+ var isLengthAdded = (currentValue - previousValue) > 0;
17556
+ if (isLengthAdded) {
17557
+ for (var i = previousValue; i < currentValue; i++) {
17558
+ this.createOtpInput(i);
17559
+ }
17560
+ this.renderSeparator(previousValue, currentValue);
17561
+ this.addPlaceHolder();
17562
+ this.updateAriaLabel(this.ariaLabels);
17563
+ }
17564
+ else {
17565
+ if (currentValue >= 0 && this.inputs.length > 0) {
17566
+ for (var i = currentValue; i < this.inputs.length; i++) {
17567
+ remove(this.inputs[parseInt(i.toString(), 10)]);
17568
+ }
17569
+ this.inputs.splice(currentValue);
17570
+ if (this.separatorElements.length > 0) {
17571
+ // separator should be completely removed when length is 0 or 1;
17572
+ var index = currentValue === 0 ? 0 : currentValue - 1;
17573
+ for (var i = index; i < this.separatorElements.length; i++) {
17574
+ remove(this.separatorElements[parseInt(i.toString(), 10)]);
17575
+ }
17576
+ this.separatorElements.splice(index);
17577
+ }
17578
+ }
17579
+ }
17580
+ };
17581
+ /**
17582
+ * To get component name.
17583
+ *
17584
+ * @returns {string} - Module Name
17585
+ * @private
17586
+ */
17587
+ OtpInput.prototype.getModuleName = function () {
17588
+ return 'otpinput';
17589
+ };
17590
+ /**
17591
+ * To get the properties to be maintained in the persisted state.
17592
+ *
17593
+ * @returns {string} - Persist data
17594
+ */
17595
+ OtpInput.prototype.getPersistData = function () {
17596
+ return this.addOnPersist([]);
17597
+ };
17598
+ /**
17599
+ * Destroy the Otp input.
17600
+ *
17601
+ * @returns {void}
17602
+ */
17603
+ OtpInput.prototype.destroy = function () {
17604
+ _super.prototype.destroy.call(this);
17605
+ this.unWireEvents();
17606
+ for (var i = 0; i < this.inputs.length; i++) {
17607
+ remove(this.inputs[parseInt(i.toString(), 10)]);
17608
+ }
17609
+ for (var i = 0; i < this.separatorElements.length; i++) {
17610
+ remove(this.separatorElements[parseInt(i.toString(), 10)]);
17611
+ }
17612
+ remove(this.hiddenInputEle);
17613
+ removeClass([this.element], ['e-underlined', 'e-filled', 'e-outline', 'e-rtl']);
17614
+ if (this.cssClass) {
17615
+ removeClass([this.element], this.cssClass.trim().split(' '));
17616
+ }
17617
+ this.element.removeAttribute('role');
17618
+ this.inputs = [];
17619
+ this.separatorElements = [];
17620
+ this.hiddenInputEle = null;
17621
+ };
17622
+ /**
17623
+ * Sets the focus to the Otp input for interaction.
17624
+ *
17625
+ * @returns {void}
17626
+ */
17627
+ OtpInput.prototype.focusIn = function () {
17628
+ this.isFocusInCalled = true;
17629
+ var focusIndex = 0;
17630
+ this.inputs.forEach(function (input, index) {
17631
+ if (input.value.length > 0) {
17632
+ focusIndex = index;
17633
+ }
17634
+ });
17635
+ this.inputs[parseInt(focusIndex.toString(), 10)].focus();
17636
+ this.isFocusInCalled = false;
17637
+ };
17638
+ /**
17639
+ * Remove the focus from Otp input, if it is in focus state.
17640
+ *
17641
+ * @returns {void}
17642
+ */
17643
+ OtpInput.prototype.focusOut = function () {
17644
+ this.isFocusOutCalled = true;
17645
+ this.inputs.forEach(function (input) {
17646
+ input.blur();
17647
+ });
17648
+ this.isFocusOutCalled = false;
17649
+ };
17650
+ /**
17651
+ * Called internally if any of the property value changed.
17652
+ *
17653
+ * @param {OtpInputModel} newProp - Specifies new properties
17654
+ * @param {OtpInputModel} oldProp - Specifies old properties
17655
+ * @returns {void}
17656
+ * @private
17657
+ */
17658
+ OtpInput.prototype.onPropertyChanged = function (newProp, oldProp) {
17659
+ for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
17660
+ var prop = _a[_i];
17661
+ switch (prop) {
17662
+ case 'value':
17663
+ {
17664
+ this.updateInputValue(oldProp.value);
17665
+ this.triggerValuechanged();
17666
+ }
17667
+ break;
17668
+ case 'placeholder':
17669
+ this.addPlaceHolder();
17670
+ break;
17671
+ case 'disabled':
17672
+ this.updateDisabledState();
17673
+ break;
17674
+ case 'cssClass':
17675
+ this.updateCssClass(newProp.cssClass, oldProp.cssClass);
17676
+ break;
17677
+ case 'separator':
17678
+ if (oldProp.separator === '') {
17679
+ this.renderSeparator(1, this.inputs.length);
17680
+ }
17681
+ else {
17682
+ this.updateSeparatorValue();
17683
+ }
17684
+ break;
17685
+ case 'type':
17686
+ this.updateInputType(newProp.type);
17687
+ break;
17688
+ case 'stylingMode':
17689
+ this.updateVariantClass();
17690
+ break;
17691
+ case 'ariaLabels':
17692
+ this.updateAriaLabel(newProp.ariaLabels);
17693
+ break;
17694
+ case 'length':
17695
+ this.handleLengthChange(newProp.length, oldProp.length);
17696
+ break;
17697
+ case 'enableRtl':
17698
+ this.element.classList[this.enableRtl ? 'add' : 'remove'](RTL$3);
17699
+ break;
17700
+ }
17701
+ }
17702
+ };
17703
+ __decorate$a([
17704
+ Property(4)
17705
+ ], OtpInput.prototype, "length", void 0);
17706
+ __decorate$a([
17707
+ Property('')
17708
+ ], OtpInput.prototype, "value", void 0);
17709
+ __decorate$a([
17710
+ Property(OtpInputType.Number)
17711
+ ], OtpInput.prototype, "type", void 0);
17712
+ __decorate$a([
17713
+ Property('')
17714
+ ], OtpInput.prototype, "separator", void 0);
17715
+ __decorate$a([
17716
+ Property('')
17717
+ ], OtpInput.prototype, "placeholder", void 0);
17718
+ __decorate$a([
17719
+ Property(OtpInputStyle.Outlined)
17720
+ ], OtpInput.prototype, "stylingMode", void 0);
17721
+ __decorate$a([
17722
+ Property(false)
17723
+ ], OtpInput.prototype, "disabled", void 0);
17724
+ __decorate$a([
17725
+ Property('')
17726
+ ], OtpInput.prototype, "cssClass", void 0);
17727
+ __decorate$a([
17728
+ Property({})
17729
+ ], OtpInput.prototype, "htmlAttributes", void 0);
17730
+ __decorate$a([
17731
+ Property([])
17732
+ ], OtpInput.prototype, "ariaLabels", void 0);
17733
+ __decorate$a([
17734
+ Event()
17735
+ ], OtpInput.prototype, "created", void 0);
17736
+ __decorate$a([
17737
+ Event()
17738
+ ], OtpInput.prototype, "valueChanged", void 0);
17739
+ __decorate$a([
17740
+ Event()
17741
+ ], OtpInput.prototype, "focus", void 0);
17742
+ __decorate$a([
17743
+ Event()
17744
+ ], OtpInput.prototype, "blur", void 0);
17745
+ __decorate$a([
17746
+ Event()
17747
+ ], OtpInput.prototype, "input", void 0);
17748
+ OtpInput = __decorate$a([
17749
+ NotifyPropertyChanges
17750
+ ], OtpInput);
17751
+ return OtpInput;
17752
+ }(Component));
17091
17753
 
17092
- export { NumericTextBox, regularExpressions, createMask, applyMask, wireEvents, unwireEvents, bindClearEvent, unstrippedValue, strippedValue, maskInputMouseDownHandler, maskInputMouseUpHandler, maskInputFocusHandler, triggerFocus, escapeRegExp, maskInputBlurHandler, maskInputDropHandler, mobileRemoveFunction, setMaskValue, setElementValue, maskInput, getVal, getMaskedVal, MaskUndo, MaskedTextBox, containerAttributes, TEXTBOX_FOCUS, Input, TicksData, ColorRangeData, LimitData, TooltipData, Slider, regex, ErrorOption, FormValidator, FilesProp, ButtonsProps, AsyncSettings, Uploader, ColorPicker, TextBox, TextArea, Signature, LabelPosition, PrecisionType, Rating, SignatureBase };
17754
+ export { AsyncSettings, ButtonsProps, ColorPicker, ColorRangeData, ErrorOption, FilesProp, FormValidator, Input, LabelPosition, LimitData, MaskUndo, MaskedTextBox, NumericTextBox, OtpInput, OtpInputStyle, OtpInputType, PrecisionType, Rating, Signature, SignatureBase, Slider, TEXTBOX_FOCUS, TextArea, TextBox, TicksData, TooltipData, Uploader, applyMask, bindClearEvent, containerAttributes, createMask, escapeRegExp, getMaskedVal, getVal, maskInput, maskInputBlurHandler, maskInputDropHandler, maskInputFocusHandler, maskInputMouseDownHandler, maskInputMouseUpHandler, mobileRemoveFunction, regex, regularExpressions, setElementValue, setMaskValue, strippedValue, triggerFocus, unstrippedValue, unwireEvents, wireEvents };
17093
17755
  //# sourceMappingURL=ej2-inputs.es5.js.map