primereact 8.7.2 → 8.7.3

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 (566) hide show
  1. package/accordion/accordion.cjs.js +56 -57
  2. package/accordion/accordion.cjs.min.js +1 -1
  3. package/accordion/accordion.esm.js +56 -57
  4. package/accordion/accordion.esm.min.js +1 -1
  5. package/accordion/accordion.js +56 -57
  6. package/accordion/accordion.min.js +1 -1
  7. package/api/api.cjs.js +30 -68
  8. package/api/api.cjs.min.js +1 -1
  9. package/api/api.esm.js +30 -68
  10. package/api/api.esm.min.js +1 -1
  11. package/api/api.js +30 -68
  12. package/api/api.min.js +1 -1
  13. package/autocomplete/autocomplete.cjs.js +82 -154
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +82 -154
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +82 -154
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/avatar.cjs.js +86 -14
  20. package/avatar/avatar.cjs.min.js +1 -1
  21. package/avatar/avatar.d.ts +5 -4
  22. package/avatar/avatar.esm.js +86 -14
  23. package/avatar/avatar.esm.min.js +1 -1
  24. package/avatar/avatar.js +86 -14
  25. package/avatar/avatar.min.js +1 -1
  26. package/avatargroup/avatargroup.cjs.js +0 -2
  27. package/avatargroup/avatargroup.esm.js +0 -2
  28. package/avatargroup/avatargroup.js +0 -2
  29. package/badge/badge.cjs.js +27 -3
  30. package/badge/badge.cjs.min.js +1 -1
  31. package/badge/badge.esm.js +27 -3
  32. package/badge/badge.esm.min.js +1 -1
  33. package/badge/badge.js +27 -3
  34. package/badge/badge.min.js +1 -1
  35. package/blockui/blockui.cjs.js +40 -54
  36. package/blockui/blockui.cjs.min.js +1 -1
  37. package/blockui/blockui.d.ts +5 -3
  38. package/blockui/blockui.esm.js +40 -54
  39. package/blockui/blockui.esm.min.js +1 -1
  40. package/blockui/blockui.js +40 -54
  41. package/blockui/blockui.min.js +1 -1
  42. package/breadcrumb/breadcrumb.cjs.js +6 -29
  43. package/breadcrumb/breadcrumb.esm.js +6 -29
  44. package/breadcrumb/breadcrumb.js +6 -29
  45. package/button/button.cjs.js +29 -11
  46. package/button/button.cjs.min.js +1 -1
  47. package/button/button.esm.js +29 -11
  48. package/button/button.esm.min.js +1 -1
  49. package/button/button.js +29 -11
  50. package/button/button.min.js +1 -1
  51. package/calendar/calendar.cjs.js +186 -664
  52. package/calendar/calendar.cjs.min.js +1 -1
  53. package/calendar/calendar.d.ts +6 -4
  54. package/calendar/calendar.esm.js +186 -664
  55. package/calendar/calendar.esm.min.js +1 -1
  56. package/calendar/calendar.js +186 -664
  57. package/calendar/calendar.min.js +1 -1
  58. package/captcha/captcha.cjs.js +0 -15
  59. package/captcha/captcha.esm.js +0 -15
  60. package/captcha/captcha.js +0 -15
  61. package/card/card.cjs.js +0 -6
  62. package/card/card.esm.js +0 -6
  63. package/card/card.js +0 -6
  64. package/carousel/carousel.cjs.js +42 -130
  65. package/carousel/carousel.cjs.min.js +1 -1
  66. package/carousel/carousel.esm.js +42 -130
  67. package/carousel/carousel.esm.min.js +1 -1
  68. package/carousel/carousel.js +42 -130
  69. package/carousel/carousel.min.js +1 -1
  70. package/cascadeselect/cascadeselect.cjs.js +47 -132
  71. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  72. package/cascadeselect/cascadeselect.esm.js +47 -132
  73. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  74. package/cascadeselect/cascadeselect.js +47 -132
  75. package/cascadeselect/cascadeselect.min.js +1 -1
  76. package/chart/chart.cjs.js +6 -7
  77. package/chart/chart.cjs.min.js +1 -1
  78. package/chart/chart.esm.js +6 -7
  79. package/chart/chart.esm.min.js +1 -1
  80. package/chart/chart.js +6 -7
  81. package/chart/chart.min.js +1 -1
  82. package/checkbox/checkbox.cjs.js +26 -40
  83. package/checkbox/checkbox.cjs.min.js +1 -1
  84. package/checkbox/checkbox.esm.js +26 -40
  85. package/checkbox/checkbox.esm.min.js +1 -1
  86. package/checkbox/checkbox.js +26 -40
  87. package/checkbox/checkbox.min.css +1 -1
  88. package/checkbox/checkbox.min.js +1 -1
  89. package/chip/chip.cjs.js +26 -41
  90. package/chip/chip.cjs.min.js +1 -1
  91. package/chip/chip.esm.js +26 -41
  92. package/chip/chip.esm.min.js +1 -1
  93. package/chip/chip.js +26 -41
  94. package/chip/chip.min.js +1 -1
  95. package/chips/chips.cjs.js +29 -72
  96. package/chips/chips.cjs.min.js +1 -1
  97. package/chips/chips.esm.js +29 -72
  98. package/chips/chips.esm.min.js +1 -1
  99. package/chips/chips.js +29 -72
  100. package/chips/chips.min.js +1 -1
  101. package/colorpicker/colorpicker.cjs.js +75 -143
  102. package/colorpicker/colorpicker.cjs.min.js +1 -1
  103. package/colorpicker/colorpicker.d.ts +8 -6
  104. package/colorpicker/colorpicker.esm.js +75 -143
  105. package/colorpicker/colorpicker.esm.min.js +1 -1
  106. package/colorpicker/colorpicker.js +75 -143
  107. package/colorpicker/colorpicker.min.js +1 -1
  108. package/confirmdialog/confirmdialog.cjs.js +60 -60
  109. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  110. package/confirmdialog/confirmdialog.esm.js +60 -60
  111. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  112. package/confirmdialog/confirmdialog.js +60 -60
  113. package/confirmdialog/confirmdialog.min.js +1 -1
  114. package/confirmpopup/confirmpopup.cjs.js +74 -94
  115. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  116. package/confirmpopup/confirmpopup.esm.js +74 -94
  117. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  118. package/confirmpopup/confirmpopup.js +74 -94
  119. package/confirmpopup/confirmpopup.min.js +1 -1
  120. package/contextmenu/contextmenu.cjs.js +75 -120
  121. package/contextmenu/contextmenu.cjs.min.js +1 -1
  122. package/contextmenu/contextmenu.esm.js +75 -120
  123. package/contextmenu/contextmenu.esm.min.js +1 -1
  124. package/contextmenu/contextmenu.js +75 -120
  125. package/contextmenu/contextmenu.min.js +1 -1
  126. package/core/core.js +970 -2021
  127. package/core/core.min.js +15 -15
  128. package/csstransition/csstransition.cjs.js +27 -13
  129. package/csstransition/csstransition.cjs.min.js +1 -1
  130. package/csstransition/csstransition.esm.js +27 -13
  131. package/csstransition/csstransition.esm.min.js +1 -1
  132. package/csstransition/csstransition.js +27 -13
  133. package/csstransition/csstransition.min.js +1 -1
  134. package/datascroller/datascroller.cjs.js +32 -64
  135. package/datascroller/datascroller.cjs.min.js +1 -1
  136. package/datascroller/datascroller.esm.js +32 -64
  137. package/datascroller/datascroller.esm.min.js +1 -1
  138. package/datascroller/datascroller.js +32 -64
  139. package/datascroller/datascroller.min.js +1 -1
  140. package/datatable/datatable.cjs.js +318 -1077
  141. package/datatable/datatable.cjs.min.js +1 -1
  142. package/datatable/datatable.d.ts +6 -1
  143. package/datatable/datatable.esm.js +318 -1077
  144. package/datatable/datatable.esm.min.js +1 -1
  145. package/datatable/datatable.js +318 -1077
  146. package/datatable/datatable.min.js +1 -1
  147. package/dataview/dataview.cjs.js +56 -68
  148. package/dataview/dataview.cjs.min.js +1 -1
  149. package/dataview/dataview.esm.js +56 -68
  150. package/dataview/dataview.esm.min.js +1 -1
  151. package/dataview/dataview.js +56 -68
  152. package/dataview/dataview.min.js +1 -1
  153. package/deferredcontent/deferredcontent.cjs.js +37 -46
  154. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  155. package/deferredcontent/deferredcontent.esm.js +37 -46
  156. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  157. package/deferredcontent/deferredcontent.js +37 -46
  158. package/deferredcontent/deferredcontent.min.js +1 -1
  159. package/dialog/dialog.cjs.js +89 -175
  160. package/dialog/dialog.cjs.min.js +1 -1
  161. package/dialog/dialog.esm.js +89 -175
  162. package/dialog/dialog.esm.min.js +1 -1
  163. package/dialog/dialog.js +89 -175
  164. package/dialog/dialog.min.css +1 -1
  165. package/dialog/dialog.min.js +1 -1
  166. package/divider/divider.cjs.js +0 -2
  167. package/divider/divider.esm.js +0 -2
  168. package/divider/divider.js +0 -2
  169. package/dock/dock.cjs.js +31 -53
  170. package/dock/dock.cjs.min.js +1 -1
  171. package/dock/dock.esm.js +31 -53
  172. package/dock/dock.esm.min.js +1 -1
  173. package/dock/dock.js +31 -53
  174. package/dock/dock.min.js +1 -1
  175. package/dropdown/dropdown.cjs.js +72 -199
  176. package/dropdown/dropdown.cjs.min.js +1 -1
  177. package/dropdown/dropdown.d.ts +39 -38
  178. package/dropdown/dropdown.esm.js +72 -199
  179. package/dropdown/dropdown.esm.min.js +1 -1
  180. package/dropdown/dropdown.js +72 -199
  181. package/dropdown/dropdown.min.js +1 -1
  182. package/editor/editor.cjs.js +31 -22
  183. package/editor/editor.cjs.min.js +1 -1
  184. package/editor/editor.esm.js +31 -22
  185. package/editor/editor.esm.min.js +1 -1
  186. package/editor/editor.js +31 -22
  187. package/editor/editor.min.js +1 -1
  188. package/fieldset/fieldset.cjs.js +29 -51
  189. package/fieldset/fieldset.cjs.min.js +1 -1
  190. package/fieldset/fieldset.esm.js +29 -51
  191. package/fieldset/fieldset.esm.min.js +1 -1
  192. package/fieldset/fieldset.js +29 -51
  193. package/fieldset/fieldset.min.js +1 -1
  194. package/fileupload/fileupload.cjs.js +45 -128
  195. package/fileupload/fileupload.cjs.min.js +1 -1
  196. package/fileupload/fileupload.esm.js +45 -128
  197. package/fileupload/fileupload.esm.min.js +1 -1
  198. package/fileupload/fileupload.js +45 -128
  199. package/fileupload/fileupload.min.js +1 -1
  200. package/galleria/galleria.cjs.js +54 -165
  201. package/galleria/galleria.cjs.min.js +1 -1
  202. package/galleria/galleria.esm.js +54 -165
  203. package/galleria/galleria.esm.min.js +1 -1
  204. package/galleria/galleria.js +54 -165
  205. package/galleria/galleria.min.js +1 -1
  206. package/gmap/gmap.cjs.js +2 -23
  207. package/gmap/gmap.esm.js +2 -23
  208. package/gmap/gmap.js +2 -23
  209. package/hooks/hooks.cjs.js +102 -131
  210. package/hooks/hooks.cjs.min.js +1 -1
  211. package/hooks/hooks.esm.js +102 -131
  212. package/hooks/hooks.esm.min.js +1 -1
  213. package/hooks/hooks.js +102 -131
  214. package/hooks/hooks.min.js +1 -1
  215. package/image/image.cjs.js +41 -67
  216. package/image/image.cjs.min.js +1 -1
  217. package/image/image.d.ts +1 -1
  218. package/image/image.esm.js +41 -67
  219. package/image/image.esm.min.js +1 -1
  220. package/image/image.js +41 -67
  221. package/image/image.min.js +1 -1
  222. package/inplace/inplace.cjs.js +26 -45
  223. package/inplace/inplace.cjs.min.js +1 -1
  224. package/inplace/inplace.esm.js +26 -45
  225. package/inplace/inplace.esm.min.js +1 -1
  226. package/inplace/inplace.js +26 -45
  227. package/inplace/inplace.min.js +1 -1
  228. package/inputmask/inputmask.cjs.js +16 -108
  229. package/inputmask/inputmask.d.ts +1 -1
  230. package/inputmask/inputmask.esm.js +16 -108
  231. package/inputmask/inputmask.js +16 -108
  232. package/inputnumber/inputnumber.cjs.js +82 -234
  233. package/inputnumber/inputnumber.cjs.min.js +1 -1
  234. package/inputnumber/inputnumber.d.ts +1 -1
  235. package/inputnumber/inputnumber.esm.js +82 -234
  236. package/inputnumber/inputnumber.esm.min.js +1 -1
  237. package/inputnumber/inputnumber.js +82 -234
  238. package/inputnumber/inputnumber.min.js +1 -1
  239. package/inputswitch/inputswitch.cjs.js +26 -37
  240. package/inputswitch/inputswitch.cjs.min.js +1 -1
  241. package/inputswitch/inputswitch.esm.js +26 -37
  242. package/inputswitch/inputswitch.esm.min.js +1 -1
  243. package/inputswitch/inputswitch.js +26 -37
  244. package/inputswitch/inputswitch.min.js +1 -1
  245. package/inputtext/inputtext.cjs.js +0 -11
  246. package/inputtext/inputtext.d.ts +1 -3
  247. package/inputtext/inputtext.esm.js +0 -11
  248. package/inputtext/inputtext.js +0 -11
  249. package/inputtextarea/inputtextarea.cjs.js +0 -20
  250. package/inputtextarea/inputtextarea.d.ts +1 -3
  251. package/inputtextarea/inputtextarea.esm.js +0 -20
  252. package/inputtextarea/inputtextarea.js +0 -20
  253. package/keyfilter/keyfilter.cjs.js +4 -15
  254. package/keyfilter/keyfilter.esm.js +4 -15
  255. package/keyfilter/keyfilter.js +4 -15
  256. package/knob/knob.cjs.js +74 -106
  257. package/knob/knob.cjs.min.js +1 -1
  258. package/knob/knob.esm.js +74 -106
  259. package/knob/knob.esm.min.js +1 -1
  260. package/knob/knob.js +74 -106
  261. package/knob/knob.min.js +1 -1
  262. package/listbox/listbox.cjs.js +94 -125
  263. package/listbox/listbox.cjs.min.js +1 -1
  264. package/listbox/listbox.d.ts +6 -0
  265. package/listbox/listbox.esm.js +95 -126
  266. package/listbox/listbox.esm.min.js +1 -1
  267. package/listbox/listbox.js +94 -125
  268. package/listbox/listbox.min.js +1 -1
  269. package/megamenu/megamenu.cjs.js +36 -99
  270. package/megamenu/megamenu.cjs.min.js +1 -1
  271. package/megamenu/megamenu.esm.js +36 -99
  272. package/megamenu/megamenu.esm.min.js +1 -1
  273. package/megamenu/megamenu.js +36 -99
  274. package/megamenu/megamenu.min.js +1 -1
  275. package/mention/mention.cjs.js +82 -138
  276. package/mention/mention.cjs.min.js +1 -1
  277. package/mention/mention.d.ts +1 -1
  278. package/mention/mention.esm.js +82 -138
  279. package/mention/mention.esm.min.js +1 -1
  280. package/mention/mention.js +82 -138
  281. package/mention/mention.min.js +1 -1
  282. package/menu/menu.cjs.js +38 -72
  283. package/menu/menu.cjs.min.js +1 -1
  284. package/menu/menu.esm.js +38 -72
  285. package/menu/menu.esm.min.js +1 -1
  286. package/menu/menu.js +38 -72
  287. package/menu/menu.min.css +1 -1
  288. package/menu/menu.min.js +1 -1
  289. package/menubar/menubar.cjs.js +49 -99
  290. package/menubar/menubar.cjs.min.js +1 -1
  291. package/menubar/menubar.esm.js +49 -99
  292. package/menubar/menubar.esm.min.js +1 -1
  293. package/menubar/menubar.js +49 -99
  294. package/menubar/menubar.min.js +1 -1
  295. package/message/message.cjs.js +0 -7
  296. package/message/message.esm.js +0 -7
  297. package/message/message.js +0 -7
  298. package/messages/messages.cjs.js +39 -67
  299. package/messages/messages.cjs.min.js +1 -1
  300. package/messages/messages.esm.js +39 -67
  301. package/messages/messages.esm.min.js +1 -1
  302. package/messages/messages.js +39 -67
  303. package/messages/messages.min.js +1 -1
  304. package/multiselect/multiselect.cjs.js +137 -210
  305. package/multiselect/multiselect.cjs.min.js +1 -1
  306. package/multiselect/multiselect.d.ts +46 -41
  307. package/multiselect/multiselect.esm.js +137 -210
  308. package/multiselect/multiselect.esm.min.js +1 -1
  309. package/multiselect/multiselect.js +137 -210
  310. package/multiselect/multiselect.min.css +1 -1
  311. package/multiselect/multiselect.min.js +1 -1
  312. package/multistatecheckbox/multistatecheckbox.cjs.js +58 -53
  313. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  314. package/multistatecheckbox/multistatecheckbox.esm.js +58 -53
  315. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  316. package/multistatecheckbox/multistatecheckbox.js +58 -53
  317. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  318. package/orderlist/orderlist.cjs.js +38 -103
  319. package/orderlist/orderlist.cjs.min.js +1 -1
  320. package/orderlist/orderlist.esm.js +38 -103
  321. package/orderlist/orderlist.esm.min.js +1 -1
  322. package/orderlist/orderlist.js +38 -103
  323. package/orderlist/orderlist.min.css +1 -1
  324. package/orderlist/orderlist.min.js +1 -1
  325. package/organizationchart/organizationchart.cjs.js +26 -52
  326. package/organizationchart/organizationchart.cjs.min.js +1 -1
  327. package/organizationchart/organizationchart.esm.js +26 -52
  328. package/organizationchart/organizationchart.esm.min.js +1 -1
  329. package/organizationchart/organizationchart.js +26 -52
  330. package/organizationchart/organizationchart.min.js +1 -1
  331. package/overlaypanel/overlaypanel.cjs.js +40 -79
  332. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  333. package/overlaypanel/overlaypanel.esm.js +40 -79
  334. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  335. package/overlaypanel/overlaypanel.js +40 -79
  336. package/overlaypanel/overlaypanel.min.css +1 -1
  337. package/overlaypanel/overlaypanel.min.js +1 -1
  338. package/package.json +1 -1
  339. package/paginator/paginator.cjs.js +46 -87
  340. package/paginator/paginator.cjs.min.js +1 -1
  341. package/paginator/paginator.esm.js +46 -87
  342. package/paginator/paginator.esm.min.js +1 -1
  343. package/paginator/paginator.js +46 -87
  344. package/paginator/paginator.min.js +1 -1
  345. package/panel/panel.cjs.js +29 -50
  346. package/panel/panel.cjs.min.js +1 -1
  347. package/panel/panel.esm.js +29 -50
  348. package/panel/panel.esm.min.js +1 -1
  349. package/panel/panel.js +29 -50
  350. package/panel/panel.min.js +1 -1
  351. package/panelmenu/panelmenu.cjs.js +35 -81
  352. package/panelmenu/panelmenu.cjs.min.js +1 -1
  353. package/panelmenu/panelmenu.esm.js +35 -81
  354. package/panelmenu/panelmenu.esm.min.js +1 -1
  355. package/panelmenu/panelmenu.js +35 -81
  356. package/panelmenu/panelmenu.min.js +1 -1
  357. package/password/password.cjs.js +54 -107
  358. package/password/password.cjs.min.js +1 -1
  359. package/password/password.d.ts +1 -1
  360. package/password/password.esm.js +54 -107
  361. package/password/password.esm.min.js +1 -1
  362. package/password/password.js +54 -107
  363. package/password/password.min.js +1 -1
  364. package/picklist/picklist.cjs.js +48 -159
  365. package/picklist/picklist.cjs.min.js +1 -1
  366. package/picklist/picklist.esm.js +48 -159
  367. package/picklist/picklist.esm.min.js +1 -1
  368. package/picklist/picklist.js +48 -159
  369. package/picklist/picklist.min.js +1 -1
  370. package/portal/portal.cjs.js +26 -31
  371. package/portal/portal.cjs.min.js +1 -1
  372. package/portal/portal.esm.js +26 -31
  373. package/portal/portal.esm.min.js +1 -1
  374. package/portal/portal.js +26 -31
  375. package/portal/portal.min.js +1 -1
  376. package/primereact.all.cjs.js +2246 -7336
  377. package/primereact.all.cjs.min.js +1 -1
  378. package/primereact.all.esm.js +2246 -7336
  379. package/primereact.all.esm.min.js +1 -1
  380. package/primereact.all.js +2246 -7336
  381. package/primereact.all.min.js +1 -1
  382. package/progressbar/progressbar.cjs.js +0 -7
  383. package/progressbar/progressbar.esm.js +0 -7
  384. package/progressbar/progressbar.js +0 -7
  385. package/progressspinner/progressspinner.cjs.js +0 -2
  386. package/progressspinner/progressspinner.esm.js +0 -2
  387. package/progressspinner/progressspinner.js +0 -2
  388. package/radiobutton/radiobutton.cjs.js +30 -40
  389. package/radiobutton/radiobutton.cjs.min.js +1 -1
  390. package/radiobutton/radiobutton.esm.js +30 -40
  391. package/radiobutton/radiobutton.esm.min.js +1 -1
  392. package/radiobutton/radiobutton.js +30 -40
  393. package/radiobutton/radiobutton.min.js +1 -1
  394. package/rating/rating.cjs.js +27 -14
  395. package/rating/rating.cjs.min.js +1 -1
  396. package/rating/rating.esm.js +27 -14
  397. package/rating/rating.esm.min.js +1 -1
  398. package/rating/rating.js +27 -14
  399. package/rating/rating.min.js +1 -1
  400. package/resources/primereact.css +47 -1
  401. package/resources/primereact.min.css +1 -1
  402. package/ripple/ripple.cjs.js +0 -12
  403. package/ripple/ripple.esm.js +0 -12
  404. package/ripple/ripple.js +0 -12
  405. package/row/row.cjs.js +0 -2
  406. package/row/row.esm.js +0 -2
  407. package/row/row.js +0 -2
  408. package/scrollpanel/scrollpanel.cjs.js +2 -16
  409. package/scrollpanel/scrollpanel.esm.js +2 -16
  410. package/scrollpanel/scrollpanel.js +2 -16
  411. package/scrolltop/scrolltop.cjs.js +44 -57
  412. package/scrolltop/scrolltop.cjs.min.js +1 -1
  413. package/scrolltop/scrolltop.esm.js +44 -57
  414. package/scrolltop/scrolltop.esm.min.js +1 -1
  415. package/scrolltop/scrolltop.js +44 -57
  416. package/scrolltop/scrolltop.min.js +1 -1
  417. package/selectbutton/selectbutton.cjs.js +26 -53
  418. package/selectbutton/selectbutton.cjs.min.js +1 -1
  419. package/selectbutton/selectbutton.esm.js +26 -53
  420. package/selectbutton/selectbutton.esm.min.js +1 -1
  421. package/selectbutton/selectbutton.js +26 -53
  422. package/selectbutton/selectbutton.min.js +1 -1
  423. package/sidebar/sidebar.cjs.js +52 -83
  424. package/sidebar/sidebar.cjs.min.js +1 -1
  425. package/sidebar/sidebar.esm.js +52 -83
  426. package/sidebar/sidebar.esm.min.js +1 -1
  427. package/sidebar/sidebar.js +52 -83
  428. package/sidebar/sidebar.min.css +1 -1
  429. package/sidebar/sidebar.min.js +1 -1
  430. package/skeleton/skeleton.cjs.js +0 -2
  431. package/skeleton/skeleton.esm.js +0 -2
  432. package/skeleton/skeleton.js +0 -2
  433. package/slidemenu/slidemenu.cjs.js +73 -87
  434. package/slidemenu/slidemenu.cjs.min.js +1 -1
  435. package/slidemenu/slidemenu.esm.js +73 -87
  436. package/slidemenu/slidemenu.esm.min.js +1 -1
  437. package/slidemenu/slidemenu.js +73 -87
  438. package/slidemenu/slidemenu.min.js +1 -1
  439. package/slider/slider.cjs.js +61 -96
  440. package/slider/slider.cjs.min.js +1 -1
  441. package/slider/slider.esm.js +61 -96
  442. package/slider/slider.esm.min.js +1 -1
  443. package/slider/slider.js +61 -96
  444. package/slider/slider.min.js +1 -1
  445. package/speeddial/speeddial.cjs.js +70 -89
  446. package/speeddial/speeddial.cjs.min.js +1 -1
  447. package/speeddial/speeddial.esm.js +70 -89
  448. package/speeddial/speeddial.esm.min.js +1 -1
  449. package/speeddial/speeddial.js +70 -89
  450. package/speeddial/speeddial.min.js +1 -1
  451. package/splitbutton/splitbutton.cjs.js +46 -80
  452. package/splitbutton/splitbutton.cjs.min.js +1 -1
  453. package/splitbutton/splitbutton.esm.js +46 -80
  454. package/splitbutton/splitbutton.esm.min.js +1 -1
  455. package/splitbutton/splitbutton.js +46 -80
  456. package/splitbutton/splitbutton.min.js +1 -1
  457. package/splitter/splitter.cjs.js +72 -85
  458. package/splitter/splitter.cjs.min.js +1 -1
  459. package/splitter/splitter.esm.js +72 -85
  460. package/splitter/splitter.esm.min.js +1 -1
  461. package/splitter/splitter.js +72 -85
  462. package/splitter/splitter.min.js +1 -1
  463. package/steps/steps.cjs.js +0 -14
  464. package/steps/steps.esm.js +0 -14
  465. package/steps/steps.js +0 -14
  466. package/styleclass/styleclass.cjs.js +75 -111
  467. package/styleclass/styleclass.cjs.min.js +1 -1
  468. package/styleclass/styleclass.esm.js +75 -111
  469. package/styleclass/styleclass.esm.min.js +1 -1
  470. package/styleclass/styleclass.js +75 -111
  471. package/styleclass/styleclass.min.js +1 -1
  472. package/tabmenu/tabmenu.cjs.js +33 -54
  473. package/tabmenu/tabmenu.cjs.min.js +1 -1
  474. package/tabmenu/tabmenu.esm.js +33 -54
  475. package/tabmenu/tabmenu.esm.min.js +1 -1
  476. package/tabmenu/tabmenu.js +33 -54
  477. package/tabmenu/tabmenu.min.js +1 -1
  478. package/tabview/tabview.cjs.js +83 -102
  479. package/tabview/tabview.cjs.min.js +1 -1
  480. package/tabview/tabview.esm.js +83 -102
  481. package/tabview/tabview.esm.min.js +1 -1
  482. package/tabview/tabview.js +83 -102
  483. package/tabview/tabview.min.js +1 -1
  484. package/tag/tag.cjs.js +27 -4
  485. package/tag/tag.cjs.min.js +1 -1
  486. package/tag/tag.esm.js +27 -4
  487. package/tag/tag.esm.min.js +1 -1
  488. package/tag/tag.js +27 -4
  489. package/tag/tag.min.js +1 -1
  490. package/terminal/terminal.cjs.js +37 -63
  491. package/terminal/terminal.cjs.min.js +1 -1
  492. package/terminal/terminal.esm.js +37 -63
  493. package/terminal/terminal.esm.min.js +1 -1
  494. package/terminal/terminal.js +37 -63
  495. package/terminal/terminal.min.js +1 -1
  496. package/tieredmenu/tieredmenu.cjs.js +65 -110
  497. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  498. package/tieredmenu/tieredmenu.esm.js +65 -110
  499. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  500. package/tieredmenu/tieredmenu.js +65 -110
  501. package/tieredmenu/tieredmenu.min.js +1 -1
  502. package/timeline/timeline.cjs.js +27 -7
  503. package/timeline/timeline.cjs.min.js +1 -1
  504. package/timeline/timeline.esm.js +27 -7
  505. package/timeline/timeline.esm.min.js +1 -1
  506. package/timeline/timeline.js +27 -7
  507. package/timeline/timeline.min.js +1 -1
  508. package/toast/toast.cjs.js +81 -99
  509. package/toast/toast.cjs.min.js +1 -1
  510. package/toast/toast.esm.js +81 -99
  511. package/toast/toast.esm.min.js +1 -1
  512. package/toast/toast.js +81 -99
  513. package/toast/toast.min.js +1 -1
  514. package/togglebutton/togglebutton.cjs.js +0 -7
  515. package/togglebutton/togglebutton.esm.js +0 -7
  516. package/togglebutton/togglebutton.js +0 -7
  517. package/toolbar/toolbar.cjs.js +0 -2
  518. package/toolbar/toolbar.esm.js +0 -2
  519. package/toolbar/toolbar.js +0 -2
  520. package/tooltip/tooltip.cjs.js +111 -164
  521. package/tooltip/tooltip.cjs.min.js +1 -1
  522. package/tooltip/tooltip.esm.js +111 -164
  523. package/tooltip/tooltip.esm.min.js +1 -1
  524. package/tooltip/tooltip.js +111 -164
  525. package/tooltip/tooltip.min.css +1 -1
  526. package/tooltip/tooltip.min.js +1 -1
  527. package/tooltip/tooltipoptions.d.ts +13 -13
  528. package/tree/tree.cjs.js +68 -223
  529. package/tree/tree.cjs.min.js +1 -1
  530. package/tree/tree.esm.js +68 -223
  531. package/tree/tree.esm.min.js +1 -1
  532. package/tree/tree.js +68 -223
  533. package/tree/tree.min.js +1 -1
  534. package/treenode/treenode.d.ts +1 -0
  535. package/treeselect/treeselect.cjs.js +117 -167
  536. package/treeselect/treeselect.cjs.min.js +1 -1
  537. package/treeselect/treeselect.d.ts +30 -29
  538. package/treeselect/treeselect.esm.js +117 -167
  539. package/treeselect/treeselect.esm.min.js +1 -1
  540. package/treeselect/treeselect.js +117 -167
  541. package/treeselect/treeselect.min.js +1 -1
  542. package/treetable/treetable.cjs.js +140 -460
  543. package/treetable/treetable.cjs.min.js +1 -1
  544. package/treetable/treetable.esm.js +140 -460
  545. package/treetable/treetable.esm.min.js +1 -1
  546. package/treetable/treetable.js +140 -460
  547. package/treetable/treetable.min.js +1 -1
  548. package/tristatecheckbox/tristatecheckbox.cjs.js +29 -39
  549. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  550. package/tristatecheckbox/tristatecheckbox.esm.js +29 -39
  551. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  552. package/tristatecheckbox/tristatecheckbox.js +29 -39
  553. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  554. package/utils/utils.cjs.js +110 -328
  555. package/utils/utils.cjs.min.js +1 -1
  556. package/utils/utils.esm.js +110 -328
  557. package/utils/utils.esm.min.js +1 -1
  558. package/utils/utils.js +110 -328
  559. package/utils/utils.min.js +1 -1
  560. package/virtualscroller/virtualscroller.cjs.js +108 -204
  561. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  562. package/virtualscroller/virtualscroller.esm.js +108 -204
  563. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  564. package/virtualscroller/virtualscroller.js +108 -204
  565. package/virtualscroller/virtualscroller.min.js +1 -1
  566. package/web-types.json +152 -38
@@ -9,20 +9,45 @@ function _extends() {
9
9
  _extends = Object.assign ? Object.assign.bind() : function (target) {
10
10
  for (var i = 1; i < arguments.length; i++) {
11
11
  var source = arguments[i];
12
-
13
12
  for (var key in source) {
14
13
  if (Object.prototype.hasOwnProperty.call(source, key)) {
15
14
  target[key] = source[key];
16
15
  }
17
16
  }
18
17
  }
19
-
20
18
  return target;
21
19
  };
22
20
  return _extends.apply(this, arguments);
23
21
  }
24
22
 
23
+ function _typeof(obj) {
24
+ "@babel/helpers - typeof";
25
+
26
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
27
+ return typeof obj;
28
+ } : function (obj) {
29
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
30
+ }, _typeof(obj);
31
+ }
32
+
33
+ function _toPrimitive(input, hint) {
34
+ if (_typeof(input) !== "object" || input === null) return input;
35
+ var prim = input[Symbol.toPrimitive];
36
+ if (prim !== undefined) {
37
+ var res = prim.call(input, hint || "default");
38
+ if (_typeof(res) !== "object") return res;
39
+ throw new TypeError("@@toPrimitive must return a primitive value.");
40
+ }
41
+ return (hint === "string" ? String : Number)(input);
42
+ }
43
+
44
+ function _toPropertyKey(arg) {
45
+ var key = _toPrimitive(arg, "string");
46
+ return _typeof(key) === "symbol" ? key : String(key);
47
+ }
48
+
25
49
  function _defineProperty(obj, key, value) {
50
+ key = _toPropertyKey(key);
26
51
  if (key in obj) {
27
52
  Object.defineProperty(obj, key, {
28
53
  value: value,
@@ -33,17 +58,14 @@ function _defineProperty(obj, key, value) {
33
58
  } else {
34
59
  obj[key] = value;
35
60
  }
36
-
37
61
  return obj;
38
62
  }
39
63
 
40
64
  function _arrayLikeToArray(arr, len) {
41
65
  if (len == null || len > arr.length) len = arr.length;
42
-
43
66
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
44
67
  arr2[i] = arr[i];
45
68
  }
46
-
47
69
  return arr2;
48
70
  }
49
71
 
@@ -77,33 +99,33 @@ function _arrayWithHoles(arr) {
77
99
  }
78
100
 
79
101
  function _iterableToArrayLimit(arr, i) {
80
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
81
-
82
- if (_i == null) return;
83
- var _arr = [];
84
- var _n = true;
85
- var _d = false;
86
-
87
- var _s, _e;
88
-
89
- try {
90
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
91
- _arr.push(_s.value);
92
-
93
- if (i && _arr.length === i) break;
94
- }
95
- } catch (err) {
96
- _d = true;
97
- _e = err;
98
- } finally {
102
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
103
+ if (null != _i) {
104
+ var _s,
105
+ _e,
106
+ _x,
107
+ _r,
108
+ _arr = [],
109
+ _n = !0,
110
+ _d = !1;
99
111
  try {
100
- if (!_n && _i["return"] != null) _i["return"]();
112
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
113
+ if (Object(_i) !== _i) return;
114
+ _n = !1;
115
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
116
+ ;
117
+ }
118
+ } catch (err) {
119
+ _d = !0, _e = err;
101
120
  } finally {
102
- if (_d) throw _e;
121
+ try {
122
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
123
+ } finally {
124
+ if (_d) throw _e;
125
+ }
103
126
  }
127
+ return _arr;
104
128
  }
105
-
106
- return _arr;
107
129
  }
108
130
 
109
131
  function _nonIterableRest() {
@@ -115,14 +137,12 @@ function _slicedToArray(arr, i) {
115
137
  }
116
138
 
117
139
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
118
-
119
140
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
120
141
  var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
121
142
  var _React$useState = React.useState(false),
122
- _React$useState2 = _slicedToArray(_React$useState, 2),
123
- focusedState = _React$useState2[0],
124
- setFocusedState = _React$useState2[1];
125
-
143
+ _React$useState2 = _slicedToArray(_React$useState, 2),
144
+ focusedState = _React$useState2[0],
145
+ setFocusedState = _React$useState2[1];
126
146
  var elementRef = React.useRef(null);
127
147
  var inputRef = React.useRef(null);
128
148
  var timer = React.useRef(null);
@@ -132,28 +152,18 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
132
152
  var prefixChar = React.useRef(null);
133
153
  var suffixChar = React.useRef(null);
134
154
  var isSpecialChar = React.useRef(null);
135
-
136
155
  var _numeral = React.useRef(null);
137
-
138
156
  var _group = React.useRef(null);
139
-
140
157
  var _minusSign = React.useRef(null);
141
-
142
158
  var _currency = React.useRef(null);
143
-
144
159
  var _decimal = React.useRef(null);
145
-
146
160
  var _suffix = React.useRef(null);
147
-
148
161
  var _prefix = React.useRef(null);
149
-
150
162
  var _index = React.useRef(null);
151
-
152
163
  var stacked = props.showButtons && props.buttonLayout === 'stacked';
153
164
  var horizontal = props.showButtons && props.buttonLayout === 'horizontal';
154
165
  var vertical = props.showButtons && props.buttonLayout === 'vertical';
155
166
  var inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
156
-
157
167
  var getOptions = function getOptions() {
158
168
  return {
159
169
  localeMatcher: props.localeMatcher,
@@ -165,14 +175,11 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
165
175
  maximumFractionDigits: props.maxFractionDigits
166
176
  };
167
177
  };
168
-
169
178
  var constructParser = function constructParser() {
170
179
  numberFormat.current = new Intl.NumberFormat(props.locale, getOptions());
171
-
172
180
  var numerals = _toConsumableArray(new Intl.NumberFormat(props.locale, {
173
181
  useGrouping: false
174
182
  }).format(9876543210)).reverse();
175
-
176
183
  var index = new Map(numerals.map(function (d, i) {
177
184
  return [d, i];
178
185
  }));
@@ -183,23 +190,19 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
183
190
  _decimal.current = getDecimalExpression();
184
191
  _suffix.current = getSuffixExpression();
185
192
  _prefix.current = getPrefixExpression();
186
-
187
193
  _index.current = function (d) {
188
194
  return index.get(d);
189
195
  };
190
196
  };
191
-
192
197
  var escapeRegExp = function escapeRegExp(text) {
193
198
  return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
194
199
  };
195
-
196
200
  var getDecimalExpression = function getDecimalExpression() {
197
201
  var formatter = new Intl.NumberFormat(props.locale, _objectSpread(_objectSpread({}, getOptions()), {}, {
198
202
  useGrouping: false
199
203
  }));
200
204
  return new RegExp("[".concat(formatter.format(1.1).replace(_currency.current, '').trim().replace(_numeral.current, ''), "]"), 'g');
201
205
  };
202
-
203
206
  var getGroupingExpression = function getGroupingExpression() {
204
207
  var formatter = new Intl.NumberFormat(props.locale, {
205
208
  useGrouping: true
@@ -207,14 +210,12 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
207
210
  groupChar.current = formatter.format(1000000).trim().replace(_numeral.current, '').charAt(0);
208
211
  return new RegExp("[".concat(groupChar.current, "]"), 'g');
209
212
  };
210
-
211
213
  var getMinusSignExpression = function getMinusSignExpression() {
212
214
  var formatter = new Intl.NumberFormat(props.locale, {
213
215
  useGrouping: false
214
216
  });
215
217
  return new RegExp("[".concat(formatter.format(-1).trim().replace(_numeral.current, ''), "]"), 'g');
216
218
  };
217
-
218
219
  var getCurrencyExpression = function getCurrencyExpression() {
219
220
  if (props.currency) {
220
221
  var formatter = new Intl.NumberFormat(props.locale, {
@@ -226,10 +227,8 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
226
227
  });
227
228
  return new RegExp("[".concat(formatter.format(1).replace(/\s/g, '').replace(_numeral.current, '').replace(_group.current, ''), "]"), 'g');
228
229
  }
229
-
230
230
  return new RegExp("[]", 'g');
231
231
  };
232
-
233
232
  var getPrefixExpression = function getPrefixExpression() {
234
233
  if (props.prefix) {
235
234
  prefixChar.current = props.prefix;
@@ -241,10 +240,8 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
241
240
  });
242
241
  prefixChar.current = formatter.format(1).split('1')[0];
243
242
  }
244
-
245
243
  return new RegExp("".concat(escapeRegExp(prefixChar.current || '')), 'g');
246
244
  };
247
-
248
245
  var getSuffixExpression = function getSuffixExpression() {
249
246
  if (props.suffix) {
250
247
  suffixChar.current = props.suffix;
@@ -258,52 +255,40 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
258
255
  });
259
256
  suffixChar.current = formatter.format(1).split('1')[1];
260
257
  }
261
-
262
258
  return new RegExp("".concat(escapeRegExp(suffixChar.current || '')), 'g');
263
259
  };
264
-
265
260
  var formatValue = function formatValue(value) {
266
261
  if (value != null) {
267
262
  if (value === '-') {
268
263
  // Minus sign
269
264
  return value;
270
265
  }
271
-
272
266
  if (props.format) {
273
267
  var formatter = new Intl.NumberFormat(props.locale, getOptions());
274
-
275
268
  var _formattedValue = formatter.format(value);
276
-
277
269
  if (props.prefix) {
278
270
  _formattedValue = props.prefix + _formattedValue;
279
271
  }
280
-
281
272
  if (props.suffix) {
282
273
  _formattedValue = _formattedValue + props.suffix;
283
274
  }
284
-
285
275
  return _formattedValue;
286
276
  }
287
-
288
277
  return value.toString();
289
278
  }
290
-
291
279
  return '';
292
280
  };
293
-
294
281
  var parseValue = function parseValue(text) {
295
282
  var filteredText = text.replace(_suffix.current, '').replace(_prefix.current, '').trim().replace(/\s/g, '').replace(_currency.current, '').replace(_group.current, '').replace(_minusSign.current, '-').replace(_decimal.current, '.').replace(_numeral.current, _index.current);
296
-
297
283
  if (filteredText) {
298
- if (filteredText === '-') // Minus sign
284
+ if (filteredText === '-')
285
+ // Minus sign
299
286
  return filteredText;
300
287
  var parsedValue = +filteredText;
301
288
  return isNaN(parsedValue) ? null : parsedValue;
302
289
  }
303
-
304
290
  return null;
305
291
  };
306
-
307
292
  var repeat = function repeat(event, interval, dir) {
308
293
  var i = interval || 500;
309
294
  clearTimer();
@@ -312,31 +297,27 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
312
297
  }, i);
313
298
  spin(event, dir);
314
299
  };
315
-
316
300
  var spin = function spin(event, dir) {
317
301
  if (inputRef.current) {
318
302
  var step = props.step * dir;
319
303
  var currentValue = parseValue(inputRef.current.value) || 0;
320
304
  var newValue = validateValue(currentValue + step);
321
-
322
305
  if (props.maxLength && props.maxLength < formatValue(newValue).length) {
323
306
  return;
324
- } // touch devices trigger the keyboard to display because of setSelectionRange
325
-
307
+ }
326
308
 
309
+ // touch devices trigger the keyboard to display because of setSelectionRange
327
310
  !DomHandler.isTouchDevice() && updateInput(newValue, null, 'spin');
328
311
  updateModel(event, newValue);
329
312
  handleOnChange(event, currentValue, newValue);
330
313
  }
331
314
  };
332
-
333
315
  var onUpButtonTouchStart = function onUpButtonTouchStart(event) {
334
316
  if (!props.disabled && !props.readOnly) {
335
317
  repeat(event, null, 1);
336
318
  event.preventDefault();
337
319
  }
338
320
  };
339
-
340
321
  var onUpButtonMouseDown = function onUpButtonMouseDown(event) {
341
322
  if (!props.disabled && !props.readOnly) {
342
323
  props.autoFocus && DomHandler.focus(inputRef.current, props.autoFocus);
@@ -344,52 +325,42 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
344
325
  event.preventDefault();
345
326
  }
346
327
  };
347
-
348
328
  var onUpButtonTouchEnd = function onUpButtonTouchEnd() {
349
329
  if (!props.disabled && !props.readOnly) {
350
330
  clearTimer();
351
- event.preventDefault();
352
331
  }
353
332
  };
354
-
355
333
  var onUpButtonMouseUp = function onUpButtonMouseUp() {
356
334
  if (!props.disabled && !props.readOnly) {
357
335
  clearTimer();
358
336
  }
359
337
  };
360
-
361
338
  var onUpButtonMouseLeave = function onUpButtonMouseLeave() {
362
339
  if (!props.disabled && !props.readOnly) {
363
340
  clearTimer();
364
341
  }
365
342
  };
366
-
367
343
  var onUpButtonKeyUp = function onUpButtonKeyUp() {
368
344
  if (!props.disabled && !props.readOnly) {
369
345
  clearTimer();
370
346
  }
371
347
  };
372
-
373
348
  var onUpButtonKeyDown = function onUpButtonKeyDown(event) {
374
349
  if (!props.disabled && !props.readOnly && (event.keyCode === 32 || event.keyCode === 13)) {
375
350
  repeat(event, null, 1);
376
351
  }
377
352
  };
378
-
379
353
  var onDownButtonTouchStart = function onDownButtonTouchStart(event) {
380
354
  if (!props.disabled && !props.readOnly) {
381
355
  repeat(event, null, -1);
382
356
  event.preventDefault();
383
357
  }
384
358
  };
385
-
386
359
  var onDownButtonTouchEnd = function onDownButtonTouchEnd() {
387
360
  if (!props.disabled && !props.readOnly) {
388
361
  clearTimer();
389
- event.preventDefault();
390
362
  }
391
363
  };
392
-
393
364
  var onDownButtonMouseDown = function onDownButtonMouseDown(event) {
394
365
  if (!props.disabled && !props.readOnly) {
395
366
  props.autoFocus && DomHandler.focus(inputRef.current, props.autoFocus);
@@ -397,94 +368,79 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
397
368
  event.preventDefault();
398
369
  }
399
370
  };
400
-
401
371
  var onDownButtonMouseUp = function onDownButtonMouseUp() {
402
372
  if (!props.disabled && !props.readOnly) {
403
373
  clearTimer();
404
374
  }
405
375
  };
406
-
407
376
  var onDownButtonMouseLeave = function onDownButtonMouseLeave() {
408
377
  if (!props.disabled && !props.readOnly) {
409
378
  clearTimer();
410
379
  }
411
380
  };
412
-
413
381
  var onDownButtonKeyUp = function onDownButtonKeyUp() {
414
382
  if (!props.disabled && !props.readOnly) {
415
383
  clearTimer();
416
384
  }
417
385
  };
418
-
419
386
  var onDownButtonKeyDown = function onDownButtonKeyDown(event) {
420
387
  if (!props.disabled && !props.readOnly && (event.keyCode === 32 || event.keyCode === 13)) {
421
388
  repeat(event, null, -1);
422
389
  }
423
390
  };
424
-
425
391
  var onInput = function onInput(event) {
426
392
  if (props.disabled || props.readOnly) {
427
393
  return;
428
394
  }
429
-
430
395
  if (isSpecialChar.current) {
431
396
  event.target.value = lastValue.current;
432
397
  }
433
-
434
398
  isSpecialChar.current = false;
435
399
  };
436
-
437
400
  var onInputKeyDown = function onInputKeyDown(event) {
438
401
  if (props.disabled || props.readOnly) {
439
402
  return;
440
403
  }
441
-
442
404
  lastValue.current = event.target.value;
443
-
444
405
  if (event.shiftKey || event.altKey) {
445
406
  isSpecialChar.current = true;
446
407
  return;
447
408
  }
448
-
449
409
  var selectionStart = event.target.selectionStart;
450
410
  var selectionEnd = event.target.selectionEnd;
451
411
  var inputValue = event.target.value;
452
412
  var newValueStr = null;
453
-
454
413
  if (event.altKey) {
455
414
  event.preventDefault();
456
415
  }
457
-
458
416
  switch (event.which) {
459
417
  //up
460
418
  case 38:
461
419
  spin(event, 1);
462
420
  event.preventDefault();
463
421
  break;
464
- //down
465
422
 
423
+ //down
466
424
  case 40:
467
425
  spin(event, -1);
468
426
  event.preventDefault();
469
427
  break;
470
- //left
471
428
 
429
+ //left
472
430
  case 37:
473
431
  if (!isNumeralChar(inputValue.charAt(selectionStart - 1))) {
474
432
  event.preventDefault();
475
433
  }
476
-
477
434
  break;
478
- //right
479
435
 
436
+ //right
480
437
  case 39:
481
438
  if (!isNumeralChar(inputValue.charAt(selectionStart))) {
482
439
  event.preventDefault();
483
440
  }
484
-
485
441
  break;
486
- //enter and tab
487
442
 
443
+ //enter and tab
488
444
  case 13:
489
445
  case 9:
490
446
  newValueStr = validateValue(parseValue(inputValue));
@@ -492,27 +448,22 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
492
448
  inputRef.current.setAttribute('aria-valuenow', newValueStr);
493
449
  updateModel(event, newValueStr);
494
450
  break;
495
- //backspace
496
451
 
452
+ //backspace
497
453
  case 8:
498
454
  event.preventDefault();
499
-
500
455
  if (selectionStart === selectionEnd) {
501
456
  var deleteChar = inputValue.charAt(selectionStart - 1);
502
-
503
457
  var _getDecimalCharIndexe = getDecimalCharIndexes(inputValue),
504
- decimalCharIndex = _getDecimalCharIndexe.decimalCharIndex,
505
- decimalCharIndexWithoutPrefix = _getDecimalCharIndexe.decimalCharIndexWithoutPrefix;
506
-
458
+ decimalCharIndex = _getDecimalCharIndexe.decimalCharIndex,
459
+ decimalCharIndexWithoutPrefix = _getDecimalCharIndexe.decimalCharIndexWithoutPrefix;
507
460
  if (isNumeralChar(deleteChar)) {
508
461
  var decimalLength = getDecimalLength(inputValue);
509
-
510
462
  if (_group.current.test(deleteChar)) {
511
463
  _group.current.lastIndex = 0;
512
464
  newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
513
465
  } else if (_decimal.current.test(deleteChar)) {
514
466
  _decimal.current.lastIndex = 0;
515
-
516
467
  if (decimalLength) {
517
468
  inputRef.current.setSelectionRange(selectionStart - 1, selectionStart - 1);
518
469
  } else {
@@ -528,35 +479,28 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
528
479
  newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
529
480
  }
530
481
  }
531
-
532
482
  updateValue(event, newValueStr, null, 'delete-single');
533
483
  } else {
534
484
  newValueStr = deleteRange(inputValue, selectionStart, selectionEnd);
535
485
  updateValue(event, newValueStr, null, 'delete-range');
536
486
  }
537
-
538
487
  break;
539
- // del
540
488
 
489
+ // del
541
490
  case 46:
542
491
  event.preventDefault();
543
-
544
492
  if (selectionStart === selectionEnd) {
545
493
  var _deleteChar = inputValue.charAt(selectionStart);
546
-
547
494
  var _getDecimalCharIndexe2 = getDecimalCharIndexes(inputValue),
548
- _decimalCharIndex = _getDecimalCharIndexe2.decimalCharIndex,
549
- _decimalCharIndexWithoutPrefix = _getDecimalCharIndexe2.decimalCharIndexWithoutPrefix;
550
-
495
+ _decimalCharIndex = _getDecimalCharIndexe2.decimalCharIndex,
496
+ _decimalCharIndexWithoutPrefix = _getDecimalCharIndexe2.decimalCharIndexWithoutPrefix;
551
497
  if (isNumeralChar(_deleteChar)) {
552
498
  var _decimalLength = getDecimalLength(inputValue);
553
-
554
499
  if (_group.current.test(_deleteChar)) {
555
500
  _group.current.lastIndex = 0;
556
501
  newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
557
502
  } else if (_decimal.current.test(_deleteChar)) {
558
503
  _decimal.current.lastIndex = 0;
559
-
560
504
  if (_decimalLength) {
561
505
  inputRef.current.setSelectionRange(selectionStart + 1, selectionStart + 1);
562
506
  } else {
@@ -564,7 +508,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
564
508
  }
565
509
  } else if (_decimalCharIndex > 0 && selectionStart > _decimalCharIndex) {
566
510
  var _insertedText = isDecimalMode() && (props.minFractionDigits || 0) < _decimalLength ? '' : '0';
567
-
568
511
  newValueStr = inputValue.slice(0, selectionStart) + _insertedText + inputValue.slice(selectionStart + 1);
569
512
  } else if (_decimalCharIndexWithoutPrefix === 1) {
570
513
  newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
@@ -573,39 +516,29 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
573
516
  newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
574
517
  }
575
518
  }
576
-
577
519
  updateValue(event, newValueStr, null, 'delete-back-single');
578
520
  } else {
579
521
  newValueStr = deleteRange(inputValue, selectionStart, selectionEnd);
580
522
  updateValue(event, newValueStr, null, 'delete-range');
581
523
  }
582
-
583
524
  break;
584
525
  }
585
-
586
526
  if (props.onKeyDown) {
587
527
  props.onKeyDown(event);
588
528
  }
589
529
  };
590
-
591
530
  var onInputKeyPress = function onInputKeyPress(event) {
592
531
  if (props.disabled || props.readOnly) {
593
532
  return;
594
533
  }
595
-
596
534
  var code = event.which || event.keyCode;
597
-
598
535
  if (code !== 13) {
599
536
  // to submit a form
600
537
  event.preventDefault();
601
538
  }
602
-
603
539
  var _char = String.fromCharCode(code);
604
-
605
540
  var _isDecimalSign = isDecimalSign(_char);
606
-
607
541
  var _isMinusSign = isMinusSign(_char);
608
-
609
542
  if (48 <= code && code <= 57 || _isMinusSign || _isDecimalSign) {
610
543
  insert(event, _char, {
611
544
  isDecimalSign: _isDecimalSign,
@@ -613,51 +546,39 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
613
546
  });
614
547
  }
615
548
  };
616
-
617
549
  var onPaste = function onPaste(event) {
618
550
  event.preventDefault();
619
-
620
551
  if (props.disabled || props.readOnly) {
621
552
  return;
622
553
  }
623
-
624
554
  var data = (event.clipboardData || window['clipboardData']).getData('Text');
625
-
626
555
  if (data) {
627
556
  var filteredData = parseValue(data);
628
-
629
557
  if (filteredData != null) {
630
558
  insert(event, filteredData.toString());
631
559
  }
632
560
  }
633
561
  };
634
-
635
562
  var allowMinusSign = function allowMinusSign() {
636
563
  return props.min === null || props.min < 0;
637
564
  };
638
-
639
565
  var isMinusSign = function isMinusSign(_char2) {
640
566
  if (_minusSign.current.test(_char2) || _char2 === '-') {
641
567
  _minusSign.current.lastIndex = 0;
642
568
  return true;
643
569
  }
644
-
645
570
  return false;
646
571
  };
647
-
648
572
  var isDecimalSign = function isDecimalSign(_char3) {
649
573
  if (_decimal.current.test(_char3)) {
650
574
  _decimal.current.lastIndex = 0;
651
575
  return true;
652
576
  }
653
-
654
577
  return false;
655
578
  };
656
-
657
579
  var isDecimalMode = function isDecimalMode() {
658
580
  return props.mode === 'decimal';
659
581
  };
660
-
661
582
  var getDecimalCharIndexes = function getDecimalCharIndexes(val) {
662
583
  var decimalCharIndex = val.search(_decimal.current);
663
584
  _decimal.current.lastIndex = 0;
@@ -669,7 +590,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
669
590
  decimalCharIndexWithoutPrefix: decimalCharIndexWithoutPrefix
670
591
  };
671
592
  };
672
-
673
593
  var getCharIndexes = function getCharIndexes(val) {
674
594
  var decimalCharIndex = val.search(_decimal.current);
675
595
  _decimal.current.lastIndex = 0;
@@ -686,7 +606,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
686
606
  currencyCharIndex: currencyCharIndex
687
607
  };
688
608
  };
689
-
690
609
  var insert = function insert(event, text) {
691
610
  var sign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
692
611
  isDecimalSign: false,
@@ -694,31 +613,24 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
694
613
  };
695
614
  var minusCharIndexOnText = text.search(_minusSign.current);
696
615
  _minusSign.current.lastIndex = 0;
697
-
698
616
  if (!allowMinusSign() && minusCharIndexOnText !== -1) {
699
617
  return;
700
618
  }
701
-
702
619
  var selectionStart = inputRef.current.selectionStart;
703
620
  var selectionEnd = inputRef.current.selectionEnd;
704
621
  var inputValue = inputRef.current.value.trim();
705
-
706
622
  var _getCharIndexes = getCharIndexes(inputValue),
707
- decimalCharIndex = _getCharIndexes.decimalCharIndex,
708
- minusCharIndex = _getCharIndexes.minusCharIndex,
709
- suffixCharIndex = _getCharIndexes.suffixCharIndex,
710
- currencyCharIndex = _getCharIndexes.currencyCharIndex;
711
-
623
+ decimalCharIndex = _getCharIndexes.decimalCharIndex,
624
+ minusCharIndex = _getCharIndexes.minusCharIndex,
625
+ suffixCharIndex = _getCharIndexes.suffixCharIndex,
626
+ currencyCharIndex = _getCharIndexes.currencyCharIndex;
712
627
  var newValueStr;
713
-
714
628
  if (sign.isMinusSign) {
715
629
  if (selectionStart === 0) {
716
630
  newValueStr = inputValue;
717
-
718
631
  if (minusCharIndex === -1 || selectionEnd !== 0) {
719
632
  newValueStr = insertText(inputValue, text, 0, selectionEnd);
720
633
  }
721
-
722
634
  updateValue(event, newValueStr, text, 'insert');
723
635
  }
724
636
  } else if (sign.isDecimalSign) {
@@ -734,7 +646,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
734
646
  } else {
735
647
  var maxFractionDigits = numberFormat.current.resolvedOptions().maximumFractionDigits;
736
648
  var operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
737
-
738
649
  if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
739
650
  if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
740
651
  var charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
@@ -747,10 +658,8 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
747
658
  }
748
659
  }
749
660
  };
750
-
751
661
  var insertText = function insertText(value, text, start, end) {
752
662
  var textSplit = text === '.' ? text : text.split('.');
753
-
754
663
  if (textSplit.length === 2) {
755
664
  var decimalCharIndex = value.slice(start, end).search(_decimal.current);
756
665
  _decimal.current.lastIndex = 0;
@@ -758,42 +667,38 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
758
667
  } else if (end - start === value.length) {
759
668
  return formatValue(text);
760
669
  } else if (start === 0) {
761
- return text + value.slice(end);
670
+ var suffix = ObjectUtils.isLetter(value[end]) ? end - 1 : end;
671
+ return text + value.slice(suffix);
762
672
  } else if (end === value.length) {
763
673
  return value.slice(0, start) + text;
764
674
  } else {
765
675
  return value.slice(0, start) + text + value.slice(end);
766
676
  }
767
677
  };
768
-
769
678
  var deleteRange = function deleteRange(value, start, end) {
770
679
  var newValueStr;
771
680
  if (end - start === value.length) newValueStr = '';else if (start === 0) newValueStr = value.slice(end);else if (end === value.length) newValueStr = value.slice(0, start);else newValueStr = value.slice(0, start) + value.slice(end);
772
681
  return newValueStr;
773
682
  };
774
-
775
683
  var initCursor = function initCursor() {
776
684
  var selectionStart = inputRef.current.selectionStart;
777
685
  var inputValue = inputRef.current.value;
778
686
  var valueLength = inputValue.length;
779
- var index = null; // remove prefix
687
+ var index = null;
780
688
 
689
+ // remove prefix
781
690
  var prefixLength = (prefixChar.current || '').length;
782
691
  inputValue = inputValue.replace(_prefix.current, '');
783
692
  selectionStart = selectionStart - prefixLength;
784
-
785
693
  var _char4 = inputValue.charAt(selectionStart);
786
-
787
694
  if (isNumeralChar(_char4)) {
788
695
  return selectionStart + prefixLength;
789
- } //left
790
-
696
+ }
791
697
 
698
+ //left
792
699
  var i = selectionStart - 1;
793
-
794
700
  while (i >= 0) {
795
701
  _char4 = inputValue.charAt(i);
796
-
797
702
  if (isNumeralChar(_char4)) {
798
703
  index = i + prefixLength;
799
704
  break;
@@ -801,15 +706,12 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
801
706
  i--;
802
707
  }
803
708
  }
804
-
805
709
  if (index !== null) {
806
710
  inputRef.current.setSelectionRange(index + 1, index + 1);
807
711
  } else {
808
712
  i = selectionStart;
809
-
810
713
  while (i < valueLength) {
811
714
  _char4 = inputValue.charAt(i);
812
-
813
715
  if (isNumeralChar(_char4)) {
814
716
  index = i + prefixLength;
815
717
  break;
@@ -817,19 +719,15 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
817
719
  i++;
818
720
  }
819
721
  }
820
-
821
722
  if (index !== null) {
822
723
  inputRef.current.setSelectionRange(index, index);
823
724
  }
824
725
  }
825
-
826
726
  return index || 0;
827
727
  };
828
-
829
728
  var onInputClick = function onInputClick() {
830
729
  initCursor();
831
730
  };
832
-
833
731
  var isNumeralChar = function isNumeralChar(_char5) {
834
732
  if (_char5.length === 1 && (_numeral.current.test(_char5) || _decimal.current.test(_char5) || _group.current.test(_char5) || _minusSign.current.test(_char5))) {
835
733
  resetRegex();
@@ -838,29 +736,24 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
838
736
  return false;
839
737
  }
840
738
  };
841
-
842
739
  var resetRegex = function resetRegex() {
843
740
  _numeral.current.lastIndex = 0;
844
741
  _decimal.current.lastIndex = 0;
845
742
  _group.current.lastIndex = 0;
846
743
  _minusSign.current.lastIndex = 0;
847
744
  };
848
-
849
745
  var updateValue = function updateValue(event, valueStr, insertedValueStr, operation) {
850
746
  var currentValue = inputRef.current.value;
851
747
  var newValue = null;
852
-
853
748
  if (valueStr != null) {
854
749
  newValue = evaluateEmpty(parseValue(valueStr));
855
750
  updateInput(newValue, insertedValueStr, operation, valueStr);
856
751
  handleOnChange(event, currentValue, newValue);
857
752
  }
858
753
  };
859
-
860
754
  var evaluateEmpty = function evaluateEmpty(newValue) {
861
755
  return !newValue && !props.allowEmpty ? props.min || 0 : newValue;
862
756
  };
863
-
864
757
  var handleOnChange = function handleOnChange(event, currentValue, newValue) {
865
758
  if (props.onChange && isValueChanged(currentValue, newValue)) {
866
759
  props.onChange({
@@ -869,55 +762,43 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
869
762
  });
870
763
  }
871
764
  };
872
-
873
765
  var isValueChanged = function isValueChanged(currentValue, newValue) {
874
766
  if (newValue === null && currentValue !== null) {
875
767
  return true;
876
768
  }
877
-
878
769
  if (newValue != null) {
879
770
  var parsedCurrentValue = typeof currentValue === 'string' ? parseValue(currentValue) : currentValue;
880
771
  return newValue !== parsedCurrentValue;
881
772
  }
882
-
883
773
  return false;
884
774
  };
885
-
886
775
  var validateValue = function validateValue(value) {
887
776
  if (value === '-') {
888
777
  return null;
889
778
  }
890
-
891
779
  return validateValueByLimit(value);
892
780
  };
893
-
894
781
  var validateValueByLimit = function validateValueByLimit(value) {
895
782
  if (ObjectUtils.isEmpty(value)) {
896
783
  return null;
897
784
  }
898
-
899
785
  if (props.min !== null && value < props.min) {
900
786
  return props.min;
901
787
  }
902
-
903
788
  if (props.max !== null && value > props.max) {
904
789
  return props.max;
905
790
  }
906
-
907
791
  return value;
908
792
  };
909
-
910
793
  var updateInput = function updateInput(value, insertedValueStr, operation, valueStr) {
911
794
  insertedValueStr = insertedValueStr || '';
912
795
  var inputEl = inputRef.current;
913
796
  var inputValue = inputEl.value;
914
797
  var newValue = formatValue(value);
915
798
  var currentLength = inputValue.length;
916
-
917
799
  if (newValue !== valueStr) {
918
800
  newValue = concatValues(newValue, valueStr);
919
801
  }
920
-
921
802
  if (currentLength === 0) {
922
803
  inputEl.value = newValue;
923
804
  inputEl.setSelectionRange(0, 0);
@@ -927,14 +808,11 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
927
808
  } else {
928
809
  var selectionStart = inputEl.selectionStart;
929
810
  var _selectionEnd = inputEl.selectionEnd;
930
-
931
811
  if (props.maxLength && props.maxLength < newValue.length) {
932
812
  return;
933
813
  }
934
-
935
814
  inputEl.value = newValue;
936
815
  var newLength = newValue.length;
937
-
938
816
  if (operation === 'range-insert') {
939
817
  var startValue = parseValue((inputValue || '').slice(0, selectionStart));
940
818
  var startValueStr = startValue !== null ? startValue.toString() : '';
@@ -952,73 +830,56 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
952
830
  var prevChar = inputValue.charAt(_selectionEnd - 1);
953
831
  var nextChar = inputValue.charAt(_selectionEnd);
954
832
  var diff = currentLength - newLength;
955
-
956
833
  var isGroupChar = _group.current.test(nextChar);
957
-
958
834
  if (isGroupChar && diff === 1) {
959
835
  _selectionEnd += 1;
960
836
  } else if (!isGroupChar && isNumeralChar(prevChar)) {
961
837
  _selectionEnd += -1 * diff + 1;
962
838
  }
963
-
964
839
  _group.current.lastIndex = 0;
965
840
  inputEl.setSelectionRange(_selectionEnd, _selectionEnd);
966
841
  } else if (inputValue === '-' && operation === 'insert') {
967
842
  inputEl.setSelectionRange(0, 0);
968
-
969
843
  var _index2 = initCursor();
970
-
971
844
  var _selectionEnd2 = _index2 + insertedValueStr.length + 1;
972
-
973
845
  inputEl.setSelectionRange(_selectionEnd2, _selectionEnd2);
974
846
  } else {
975
847
  _selectionEnd = _selectionEnd + (newLength - currentLength);
976
848
  inputEl.setSelectionRange(_selectionEnd, _selectionEnd);
977
849
  }
978
850
  }
979
-
980
851
  inputEl.setAttribute('aria-valuenow', value);
981
852
  };
982
-
983
853
  var updateInputValue = function updateInputValue(newValue) {
984
854
  newValue = evaluateEmpty(newValue);
985
855
  var inputEl = inputRef.current;
986
856
  var value = inputEl.value;
987
-
988
857
  var _formattedValue = formattedValue(newValue);
989
-
990
858
  if (value !== _formattedValue) {
991
859
  inputEl.value = _formattedValue;
992
860
  inputEl.setAttribute('aria-valuenow', newValue);
993
861
  }
994
862
  };
995
-
996
863
  var formattedValue = function formattedValue(val) {
997
864
  return formatValue(evaluateEmpty(val));
998
865
  };
999
-
1000
866
  var concatValues = function concatValues(val1, val2) {
1001
867
  if (val1 && val2) {
1002
868
  var decimalCharIndex = val2.search(_decimal.current);
1003
869
  _decimal.current.lastIndex = 0;
1004
870
  return decimalCharIndex !== -1 ? val1.split(_decimal.current)[0] + val2.slice(decimalCharIndex) : val1;
1005
871
  }
1006
-
1007
872
  return val1;
1008
873
  };
1009
-
1010
874
  var getDecimalLength = function getDecimalLength(value) {
1011
875
  if (value) {
1012
876
  var valueSplit = value.split(_decimal.current);
1013
-
1014
877
  if (valueSplit.length === 2) {
1015
878
  return valueSplit[1].replace(_suffix.current, '').trim().replace(/\s/g, '').replace(_currency.current, '').length;
1016
879
  }
1017
880
  }
1018
-
1019
881
  return 0;
1020
882
  };
1021
-
1022
883
  var updateModel = function updateModel(event, value) {
1023
884
  if (props.onValueChange) {
1024
885
  props.onValueChange({
@@ -1034,47 +895,42 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1034
895
  });
1035
896
  }
1036
897
  };
1037
-
1038
898
  var onInputFocus = function onInputFocus(event) {
1039
899
  setFocusedState(true);
1040
900
  props.onFocus && props.onFocus(event);
901
+ if ((props.suffix || props.currency || props.prefix) && inputRef.current) {
902
+ // GitHub #1866 Cursor must be placed before/after symbol or arrow keys don't work
903
+ var selectionEnd = initCursor();
904
+ inputRef.current.setSelectionRange(selectionEnd, selectionEnd);
905
+ }
1041
906
  };
1042
-
1043
907
  var onInputBlur = function onInputBlur(event) {
1044
908
  setFocusedState(false);
1045
-
1046
909
  if (inputRef.current) {
1047
910
  var currentValue = inputRef.current.value;
1048
-
1049
911
  if (isValueChanged(currentValue, props.value)) {
1050
912
  var newValue = validateValue(parseValue(currentValue));
1051
913
  updateInputValue(newValue);
1052
914
  updateModel(event, newValue);
1053
915
  }
1054
916
  }
1055
-
1056
917
  props.onBlur && props.onBlur(event);
1057
918
  };
1058
-
1059
919
  var clearTimer = function clearTimer() {
1060
920
  if (timer.current) {
1061
921
  clearInterval(timer.current);
1062
922
  }
1063
923
  };
1064
-
1065
924
  var changeValue = function changeValue() {
1066
925
  updateInputValue(validateValueByLimit(props.value));
1067
926
  var newValue = validateValue(props.value);
1068
-
1069
927
  if (props.value !== null && props.value !== newValue) {
1070
928
  updateModel(null, newValue);
1071
929
  }
1072
930
  };
1073
-
1074
931
  var getFormatter = function getFormatter() {
1075
932
  return numberFormat.current;
1076
933
  };
1077
-
1078
934
  React.useImperativeHandle(ref, function () {
1079
935
  return {
1080
936
  props: props,
@@ -1093,7 +949,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1093
949
  useMountEffect(function () {
1094
950
  constructParser();
1095
951
  var newValue = validateValue(props.value);
1096
-
1097
952
  if (props.value !== null && props.value !== newValue) {
1098
953
  updateModel(null, newValue);
1099
954
  }
@@ -1105,7 +960,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1105
960
  useUpdateEffect(function () {
1106
961
  changeValue();
1107
962
  }, [props.value]);
1108
-
1109
963
  var createInputElement = function createInputElement() {
1110
964
  var className = classNames('p-inputnumber-input', props.inputClassName);
1111
965
  var valueToRender = formattedValue(props.value);
@@ -1142,7 +996,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1142
996
  "aria-valuenow": props.value
1143
997
  }, ariaProps, dataProps));
1144
998
  };
1145
-
1146
999
  var createUpButton = function createUpButton() {
1147
1000
  var className = classNames('p-inputnumber-button p-inputnumber-button-up p-button p-button-icon-only p-component', {
1148
1001
  'p-disabled': props.disabled
@@ -1164,7 +1017,6 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1164
1017
  className: icon
1165
1018
  }), /*#__PURE__*/React.createElement(Ripple, null));
1166
1019
  };
1167
-
1168
1020
  var createDownButton = function createDownButton() {
1169
1021
  var className = classNames('p-inputnumber-button p-inputnumber-button-down p-button p-button-icon-only p-component', {
1170
1022
  'p-disabled': props.disabled
@@ -1186,20 +1038,16 @@ var InputNumber = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
1186
1038
  className: icon
1187
1039
  }), /*#__PURE__*/React.createElement(Ripple, null));
1188
1040
  };
1189
-
1190
1041
  var createButtonGroup = function createButtonGroup() {
1191
1042
  var upButton = props.showButtons && createUpButton();
1192
1043
  var downButton = props.showButtons && createDownButton();
1193
-
1194
1044
  if (stacked) {
1195
1045
  return /*#__PURE__*/React.createElement("span", {
1196
1046
  className: "p-inputnumber-button-group"
1197
1047
  }, upButton, downButton);
1198
1048
  }
1199
-
1200
1049
  return /*#__PURE__*/React.createElement(React.Fragment, null, upButton, downButton);
1201
1050
  };
1202
-
1203
1051
  var hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
1204
1052
  var otherProps = ObjectUtils.findDiffKeys(props, InputNumber.defaultProps);
1205
1053
  var dataProps = ObjectUtils.reduceKeys(otherProps, DomHandler.DATA_PROPS);