primereact 10.5.3 → 10.6.1

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 (502) hide show
  1. package/accordion/accordion.cjs.js +1 -0
  2. package/accordion/accordion.cjs.min.js +1 -1
  3. package/accordion/accordion.esm.js +1 -0
  4. package/accordion/accordion.esm.min.js +1 -1
  5. package/accordion/accordion.js +1 -0
  6. package/accordion/accordion.min.js +1 -1
  7. package/api/api.cjs.js +41 -9
  8. package/api/api.cjs.min.js +1 -1
  9. package/api/api.d.ts +1 -0
  10. package/api/api.esm.js +41 -9
  11. package/api/api.esm.min.js +1 -1
  12. package/api/api.js +41 -9
  13. package/api/api.min.js +1 -1
  14. package/autocomplete/autocomplete.cjs.js +51 -54
  15. package/autocomplete/autocomplete.cjs.min.js +1 -1
  16. package/autocomplete/autocomplete.esm.js +51 -54
  17. package/autocomplete/autocomplete.esm.min.js +1 -1
  18. package/autocomplete/autocomplete.js +51 -54
  19. package/autocomplete/autocomplete.min.js +1 -1
  20. package/buttongroup/buttongroup.cjs.js +66 -0
  21. package/buttongroup/buttongroup.cjs.min.js +1 -0
  22. package/buttongroup/buttongroup.d.ts +86 -0
  23. package/buttongroup/buttongroup.esm.js +42 -0
  24. package/buttongroup/buttongroup.esm.min.js +1 -0
  25. package/buttongroup/buttongroup.js +65 -0
  26. package/buttongroup/buttongroup.min.js +1 -0
  27. package/buttongroup/package.json +7 -0
  28. package/calendar/calendar.cjs.js +217 -162
  29. package/calendar/calendar.cjs.min.js +1 -1
  30. package/calendar/calendar.esm.js +217 -162
  31. package/calendar/calendar.esm.min.js +1 -1
  32. package/calendar/calendar.js +217 -162
  33. package/calendar/calendar.min.js +1 -1
  34. package/carousel/carousel.cjs.js +8 -8
  35. package/carousel/carousel.esm.js +8 -8
  36. package/carousel/carousel.js +8 -8
  37. package/cascadeselect/cascadeselect.cjs.js +6 -8
  38. package/cascadeselect/cascadeselect.esm.js +6 -8
  39. package/cascadeselect/cascadeselect.js +6 -8
  40. package/checkbox/checkbox.cjs.js +5 -6
  41. package/checkbox/checkbox.cjs.min.js +1 -1
  42. package/checkbox/checkbox.d.ts +1 -1
  43. package/checkbox/checkbox.esm.js +5 -6
  44. package/checkbox/checkbox.esm.min.js +1 -1
  45. package/checkbox/checkbox.js +5 -6
  46. package/checkbox/checkbox.min.js +1 -1
  47. package/chip/chip.cjs.js +1 -1
  48. package/chip/chip.cjs.min.js +1 -1
  49. package/chip/chip.esm.js +1 -1
  50. package/chip/chip.esm.min.js +1 -1
  51. package/chip/chip.js +1 -1
  52. package/chip/chip.min.js +1 -1
  53. package/chips/chips.cjs.js +8 -6
  54. package/chips/chips.cjs.min.js +1 -1
  55. package/chips/chips.esm.js +8 -6
  56. package/chips/chips.esm.min.js +1 -1
  57. package/chips/chips.js +8 -6
  58. package/chips/chips.min.js +1 -1
  59. package/colorpicker/colorpicker.cjs.js +8 -6
  60. package/colorpicker/colorpicker.cjs.min.js +1 -1
  61. package/colorpicker/colorpicker.esm.js +8 -6
  62. package/colorpicker/colorpicker.esm.min.js +1 -1
  63. package/colorpicker/colorpicker.js +8 -6
  64. package/colorpicker/colorpicker.min.js +1 -1
  65. package/column/column.d.ts +8 -52
  66. package/componentbase/componentbase.cjs.js +23 -11
  67. package/componentbase/componentbase.cjs.min.js +1 -1
  68. package/componentbase/componentbase.esm.js +23 -11
  69. package/componentbase/componentbase.esm.min.js +1 -1
  70. package/componentbase/componentbase.js +23 -11
  71. package/componentbase/componentbase.min.js +1 -1
  72. package/confirmpopup/confirmpopup.cjs.js +1 -1
  73. package/confirmpopup/confirmpopup.esm.js +1 -1
  74. package/confirmpopup/confirmpopup.js +1 -1
  75. package/contextmenu/contextmenu.cjs.js +8 -5
  76. package/contextmenu/contextmenu.cjs.min.js +1 -1
  77. package/contextmenu/contextmenu.esm.js +8 -5
  78. package/contextmenu/contextmenu.esm.min.js +1 -1
  79. package/contextmenu/contextmenu.js +8 -5
  80. package/contextmenu/contextmenu.min.js +1 -1
  81. package/core/core.js +969 -522
  82. package/core/core.min.js +10 -10
  83. package/csstransition/csstransition.cjs.js +17 -18
  84. package/csstransition/csstransition.esm.js +17 -18
  85. package/csstransition/csstransition.js +17 -18
  86. package/datascroller/datascroller.cjs.js +18 -20
  87. package/datascroller/datascroller.cjs.min.js +1 -1
  88. package/datascroller/datascroller.esm.js +18 -20
  89. package/datascroller/datascroller.esm.min.js +1 -1
  90. package/datascroller/datascroller.js +18 -20
  91. package/datascroller/datascroller.min.js +1 -1
  92. package/datatable/datatable.cjs.js +645 -376
  93. package/datatable/datatable.cjs.min.js +1 -1
  94. package/datatable/datatable.d.ts +5 -5
  95. package/datatable/datatable.esm.js +648 -379
  96. package/datatable/datatable.esm.min.js +1 -1
  97. package/datatable/datatable.js +646 -377
  98. package/datatable/datatable.min.js +1 -1
  99. package/dataview/dataview.cjs.js +1 -1
  100. package/dataview/dataview.cjs.min.js +1 -1
  101. package/dataview/dataview.esm.js +1 -1
  102. package/dataview/dataview.esm.min.js +1 -1
  103. package/dataview/dataview.js +1 -1
  104. package/dataview/dataview.min.js +1 -1
  105. package/deferredcontent/deferredcontent.cjs.js +3 -4
  106. package/deferredcontent/deferredcontent.esm.js +3 -4
  107. package/deferredcontent/deferredcontent.js +3 -4
  108. package/dialog/dialog.cjs.js +22 -17
  109. package/dialog/dialog.esm.js +22 -17
  110. package/dialog/dialog.js +22 -17
  111. package/dock/dock.cjs.js +13 -4
  112. package/dock/dock.cjs.min.js +1 -1
  113. package/dock/dock.esm.js +13 -4
  114. package/dock/dock.esm.min.js +1 -1
  115. package/dock/dock.js +13 -4
  116. package/dock/dock.min.js +1 -1
  117. package/dropdown/dropdown.cjs.js +66 -60
  118. package/dropdown/dropdown.cjs.min.js +1 -1
  119. package/dropdown/dropdown.d.ts +6 -1
  120. package/dropdown/dropdown.esm.js +66 -60
  121. package/dropdown/dropdown.esm.min.js +1 -1
  122. package/dropdown/dropdown.js +66 -60
  123. package/dropdown/dropdown.min.js +1 -1
  124. package/editor/editor.cjs.js +74 -75
  125. package/editor/editor.esm.js +74 -75
  126. package/editor/editor.js +74 -75
  127. package/fieldset/fieldset.cjs.js +1 -1
  128. package/fieldset/fieldset.cjs.min.js +1 -1
  129. package/fieldset/fieldset.esm.js +1 -1
  130. package/fieldset/fieldset.esm.min.js +1 -1
  131. package/fieldset/fieldset.js +1 -1
  132. package/fieldset/fieldset.min.js +1 -1
  133. package/fileupload/fileupload.cjs.js +21 -11
  134. package/fileupload/fileupload.cjs.min.js +1 -1
  135. package/fileupload/fileupload.esm.js +21 -11
  136. package/fileupload/fileupload.esm.min.js +1 -1
  137. package/fileupload/fileupload.js +21 -11
  138. package/fileupload/fileupload.min.js +1 -1
  139. package/floatlabel/floatlabel.cjs.js +67 -0
  140. package/floatlabel/floatlabel.cjs.min.js +1 -0
  141. package/floatlabel/floatlabel.d.ts +81 -0
  142. package/floatlabel/floatlabel.esm.js +43 -0
  143. package/floatlabel/floatlabel.esm.min.js +1 -0
  144. package/floatlabel/floatlabel.js +66 -0
  145. package/floatlabel/floatlabel.min.js +1 -0
  146. package/floatlabel/package.json +7 -0
  147. package/focustrap/focustrap.cjs.js +1 -1
  148. package/focustrap/focustrap.esm.js +1 -1
  149. package/focustrap/focustrap.js +1 -1
  150. package/galleria/galleria.cjs.js +4 -3
  151. package/galleria/galleria.cjs.min.js +1 -1
  152. package/galleria/galleria.esm.js +4 -3
  153. package/galleria/galleria.esm.min.js +1 -1
  154. package/galleria/galleria.js +4 -3
  155. package/galleria/galleria.min.js +1 -1
  156. package/hooks/hooks.cjs.js +32 -11
  157. package/hooks/hooks.esm.js +32 -11
  158. package/hooks/hooks.js +32 -11
  159. package/iconfield/iconfield.cjs.js +121 -0
  160. package/iconfield/iconfield.cjs.min.js +1 -0
  161. package/iconfield/iconfield.d.ts +95 -0
  162. package/iconfield/iconfield.esm.js +113 -0
  163. package/iconfield/iconfield.esm.min.js +1 -0
  164. package/iconfield/iconfield.js +120 -0
  165. package/iconfield/iconfield.min.js +1 -0
  166. package/image/image.cjs.js +7 -3
  167. package/image/image.esm.js +7 -3
  168. package/image/image.js +7 -3
  169. package/inplace/inplace.cjs.js +1 -1
  170. package/inplace/inplace.cjs.min.js +1 -1
  171. package/inplace/inplace.esm.js +1 -1
  172. package/inplace/inplace.esm.min.js +1 -1
  173. package/inplace/inplace.js +1 -1
  174. package/inplace/inplace.min.js +1 -1
  175. package/inputicon/inputicon.cjs.js +107 -0
  176. package/inputicon/inputicon.cjs.min.js +1 -0
  177. package/inputicon/inputicon.d.ts +78 -0
  178. package/inputicon/inputicon.esm.js +99 -0
  179. package/inputicon/inputicon.esm.min.js +1 -0
  180. package/inputicon/inputicon.js +106 -0
  181. package/inputicon/inputicon.min.js +1 -0
  182. package/inputmask/inputmask.cjs.js +56 -36
  183. package/inputmask/inputmask.esm.js +56 -36
  184. package/inputmask/inputmask.js +56 -36
  185. package/inputnumber/inputnumber.cjs.js +27 -17
  186. package/inputnumber/inputnumber.cjs.min.js +1 -1
  187. package/inputnumber/inputnumber.esm.js +27 -17
  188. package/inputnumber/inputnumber.esm.min.js +1 -1
  189. package/inputnumber/inputnumber.js +27 -17
  190. package/inputnumber/inputnumber.min.js +1 -1
  191. package/inputswitch/inputswitch.cjs.js +2 -2
  192. package/inputswitch/inputswitch.cjs.min.js +1 -1
  193. package/inputswitch/inputswitch.esm.js +2 -2
  194. package/inputswitch/inputswitch.esm.min.js +1 -1
  195. package/inputswitch/inputswitch.js +2 -2
  196. package/inputswitch/inputswitch.min.js +1 -1
  197. package/keyfilter/keyfilter.cjs.js +2 -2
  198. package/keyfilter/keyfilter.esm.js +2 -2
  199. package/keyfilter/keyfilter.js +2 -2
  200. package/knob/knob.cjs.js +14 -2
  201. package/knob/knob.esm.js +14 -2
  202. package/knob/knob.js +14 -2
  203. package/listbox/listbox.cjs.js +189 -67
  204. package/listbox/listbox.cjs.min.js +1 -1
  205. package/listbox/listbox.d.ts +17 -12
  206. package/listbox/listbox.esm.js +189 -67
  207. package/listbox/listbox.esm.min.js +1 -1
  208. package/listbox/listbox.js +189 -67
  209. package/listbox/listbox.min.js +1 -1
  210. package/megamenu/megamenu.cjs.js +94 -96
  211. package/megamenu/megamenu.cjs.min.js +1 -1
  212. package/megamenu/megamenu.esm.js +94 -96
  213. package/megamenu/megamenu.esm.min.js +1 -1
  214. package/megamenu/megamenu.js +94 -96
  215. package/megamenu/megamenu.min.js +1 -1
  216. package/mention/mention.cjs.js +4 -6
  217. package/mention/mention.esm.js +4 -6
  218. package/mention/mention.js +4 -6
  219. package/menu/menu.cjs.js +5 -2
  220. package/menu/menu.cjs.min.js +1 -1
  221. package/menu/menu.esm.js +5 -2
  222. package/menu/menu.esm.min.js +1 -1
  223. package/menu/menu.js +5 -2
  224. package/menu/menu.min.js +1 -1
  225. package/menubar/menubar.cjs.js +24 -23
  226. package/menubar/menubar.cjs.min.js +1 -1
  227. package/menubar/menubar.esm.js +24 -23
  228. package/menubar/menubar.esm.min.js +1 -1
  229. package/menubar/menubar.js +24 -23
  230. package/menubar/menubar.min.js +1 -1
  231. package/metergroup/metergroup.cjs.js +4 -5
  232. package/metergroup/metergroup.esm.js +4 -5
  233. package/metergroup/metergroup.js +4 -5
  234. package/multiselect/multiselect.cjs.js +203 -169
  235. package/multiselect/multiselect.cjs.min.js +1 -1
  236. package/multiselect/multiselect.d.ts +6 -1
  237. package/multiselect/multiselect.esm.js +203 -169
  238. package/multiselect/multiselect.esm.min.js +1 -1
  239. package/multiselect/multiselect.js +203 -169
  240. package/multiselect/multiselect.min.js +1 -1
  241. package/multistatecheckbox/multistatecheckbox.cjs.js +227 -28
  242. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  243. package/multistatecheckbox/multistatecheckbox.esm.js +228 -29
  244. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  245. package/multistatecheckbox/multistatecheckbox.js +228 -30
  246. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  247. package/orderlist/orderlist.cjs.js +75 -50
  248. package/orderlist/orderlist.cjs.min.js +1 -1
  249. package/orderlist/orderlist.d.ts +7 -2
  250. package/orderlist/orderlist.esm.js +75 -50
  251. package/orderlist/orderlist.esm.min.js +1 -1
  252. package/orderlist/orderlist.js +75 -50
  253. package/orderlist/orderlist.min.js +1 -1
  254. package/organizationchart/organizationchart.cjs.js +7 -3
  255. package/organizationchart/organizationchart.esm.js +7 -3
  256. package/organizationchart/organizationchart.js +7 -3
  257. package/overlaypanel/overlaypanel.cjs.js +2 -2
  258. package/overlaypanel/overlaypanel.esm.js +2 -2
  259. package/overlaypanel/overlaypanel.js +2 -2
  260. package/package.json +1 -1
  261. package/paginator/paginator.cjs.js +19 -20
  262. package/paginator/paginator.cjs.min.js +1 -1
  263. package/paginator/paginator.esm.js +19 -20
  264. package/paginator/paginator.esm.min.js +1 -1
  265. package/paginator/paginator.js +19 -20
  266. package/paginator/paginator.min.js +1 -1
  267. package/panelmenu/panelmenu.cjs.js +18 -9
  268. package/panelmenu/panelmenu.esm.js +18 -9
  269. package/panelmenu/panelmenu.js +18 -9
  270. package/passthrough/tailwind/index.cjs.js +4 -2
  271. package/passthrough/tailwind/index.esm.js +4 -2
  272. package/passthrough/tailwind/index.js +4 -2
  273. package/password/password.cjs.js +3 -5
  274. package/password/password.esm.js +3 -5
  275. package/password/password.js +3 -5
  276. package/picklist/picklist.cjs.js +40 -11
  277. package/picklist/picklist.cjs.min.js +1 -1
  278. package/picklist/picklist.d.ts +7 -2
  279. package/picklist/picklist.esm.js +40 -11
  280. package/picklist/picklist.esm.min.js +1 -1
  281. package/picklist/picklist.js +40 -11
  282. package/picklist/picklist.min.js +1 -1
  283. package/primereact.all.cjs.js +3576 -2762
  284. package/primereact.all.cjs.min.js +1 -1
  285. package/primereact.all.esm.js +3576 -2762
  286. package/primereact.all.esm.min.js +1 -1
  287. package/primereact.all.js +3576 -2762
  288. package/primereact.all.min.js +1 -1
  289. package/progressbar/progressbar.cjs.js +6 -1
  290. package/progressbar/progressbar.esm.js +6 -1
  291. package/progressbar/progressbar.js +6 -1
  292. package/radiobutton/radiobutton.cjs.js +10 -12
  293. package/radiobutton/radiobutton.cjs.min.js +1 -1
  294. package/radiobutton/radiobutton.esm.js +10 -12
  295. package/radiobutton/radiobutton.esm.min.js +1 -1
  296. package/radiobutton/radiobutton.js +10 -12
  297. package/radiobutton/radiobutton.min.js +1 -1
  298. package/rating/rating.cjs.js +4 -4
  299. package/rating/rating.cjs.min.js +1 -1
  300. package/rating/rating.esm.js +4 -4
  301. package/rating/rating.esm.min.js +1 -1
  302. package/rating/rating.js +4 -4
  303. package/rating/rating.min.js +1 -1
  304. package/resources/themes/arya-blue/theme.css +378 -63
  305. package/resources/themes/arya-green/theme.css +378 -63
  306. package/resources/themes/arya-orange/theme.css +378 -63
  307. package/resources/themes/bootstrap4-dark-blue/theme.css +388 -73
  308. package/resources/themes/bootstrap4-dark-purple/theme.css +966 -188
  309. package/resources/themes/bootstrap4-light-blue/theme.css +388 -73
  310. package/resources/themes/bootstrap4-light-purple/theme.css +966 -188
  311. package/resources/themes/fluent-light/theme.css +372 -63
  312. package/resources/themes/lara-dark-amber/theme.css +396 -151
  313. package/resources/themes/lara-dark-blue/theme.css +396 -151
  314. package/resources/themes/lara-dark-cyan/theme.css +396 -151
  315. package/resources/themes/lara-dark-green/theme.css +396 -151
  316. package/resources/themes/lara-dark-indigo/theme.css +396 -151
  317. package/resources/themes/lara-dark-pink/theme.css +396 -151
  318. package/resources/themes/lara-dark-teal/theme.css +396 -151
  319. package/resources/themes/lara-light-amber/theme.css +392 -151
  320. package/resources/themes/lara-light-blue/theme.css +392 -151
  321. package/resources/themes/lara-light-cyan/theme.css +392 -151
  322. package/resources/themes/lara-light-green/theme.css +392 -151
  323. package/resources/themes/lara-light-indigo/theme.css +392 -151
  324. package/resources/themes/lara-light-pink/theme.css +392 -151
  325. package/resources/themes/lara-light-teal/theme.css +392 -151
  326. package/resources/themes/luna-amber/theme.css +378 -63
  327. package/resources/themes/luna-blue/theme.css +378 -63
  328. package/resources/themes/luna-green/theme.css +378 -63
  329. package/resources/themes/luna-pink/theme.css +378 -63
  330. package/resources/themes/md-dark-deeppurple/theme.css +323 -202
  331. package/resources/themes/md-dark-indigo/theme.css +444 -189
  332. package/resources/themes/md-light-deeppurple/theme.css +323 -202
  333. package/resources/themes/md-light-indigo/theme.css +444 -202
  334. package/resources/themes/mdc-dark-deeppurple/theme.css +323 -202
  335. package/resources/themes/mdc-dark-indigo/theme.css +444 -202
  336. package/resources/themes/mdc-light-deeppurple/theme.css +323 -202
  337. package/resources/themes/mdc-light-indigo/theme.css +444 -202
  338. package/resources/themes/mira/theme.css +378 -63
  339. package/resources/themes/nano/theme.css +378 -63
  340. package/resources/themes/nova/theme.css +378 -63
  341. package/resources/themes/nova-accent/theme.css +378 -63
  342. package/resources/themes/nova-alt/theme.css +378 -63
  343. package/resources/themes/rhea/theme.css +378 -63
  344. package/resources/themes/saga-blue/theme.css +378 -63
  345. package/resources/themes/saga-green/theme.css +378 -63
  346. package/resources/themes/saga-orange/theme.css +378 -63
  347. package/resources/themes/soho-dark/theme.css +388 -73
  348. package/resources/themes/soho-light/theme.css +388 -73
  349. package/resources/themes/tailwind-light/theme.css +378 -63
  350. package/resources/themes/vela-blue/theme.css +378 -63
  351. package/resources/themes/vela-green/theme.css +378 -63
  352. package/resources/themes/vela-orange/theme.css +378 -63
  353. package/resources/themes/viva-dark/theme.css +389 -74
  354. package/resources/themes/viva-light/theme.css +389 -74
  355. package/ripple/ripple.cjs.js +3 -1
  356. package/ripple/ripple.esm.js +3 -1
  357. package/ripple/ripple.js +3 -1
  358. package/scrollpanel/scrollpanel.cjs.js +2 -2
  359. package/scrollpanel/scrollpanel.esm.js +2 -2
  360. package/scrollpanel/scrollpanel.js +2 -2
  361. package/scrolltop/scrolltop.cjs.js +6 -2
  362. package/scrolltop/scrolltop.esm.js +6 -2
  363. package/scrolltop/scrolltop.js +6 -2
  364. package/selectbutton/selectbutton.cjs.js +20 -11
  365. package/selectbutton/selectbutton.cjs.min.js +1 -1
  366. package/selectbutton/selectbutton.esm.js +20 -11
  367. package/selectbutton/selectbutton.esm.min.js +1 -1
  368. package/selectbutton/selectbutton.js +20 -11
  369. package/selectbutton/selectbutton.min.js +1 -1
  370. package/sidebar/sidebar.cjs.js +1 -1
  371. package/sidebar/sidebar.esm.js +1 -1
  372. package/sidebar/sidebar.js +1 -1
  373. package/slidemenu/slidemenu.cjs.js +1 -1
  374. package/slidemenu/slidemenu.esm.js +1 -1
  375. package/slidemenu/slidemenu.js +1 -1
  376. package/slider/slider.cjs.js +37 -10
  377. package/slider/slider.cjs.min.js +1 -1
  378. package/slider/slider.esm.js +37 -10
  379. package/slider/slider.esm.min.js +1 -1
  380. package/slider/slider.js +37 -10
  381. package/slider/slider.min.js +1 -1
  382. package/speeddial/speeddial.cjs.js +1 -0
  383. package/speeddial/speeddial.cjs.min.js +1 -1
  384. package/speeddial/speeddial.esm.js +1 -0
  385. package/speeddial/speeddial.esm.min.js +1 -1
  386. package/speeddial/speeddial.js +1 -0
  387. package/speeddial/speeddial.min.js +1 -1
  388. package/splitbutton/splitbutton.cjs.js +18 -17
  389. package/splitbutton/splitbutton.cjs.min.js +1 -1
  390. package/splitbutton/splitbutton.esm.js +18 -17
  391. package/splitbutton/splitbutton.esm.min.js +1 -1
  392. package/splitbutton/splitbutton.js +18 -17
  393. package/splitbutton/splitbutton.min.js +1 -1
  394. package/splitter/splitter.cjs.js +24 -7
  395. package/splitter/splitter.cjs.min.js +1 -1
  396. package/splitter/splitter.esm.js +24 -7
  397. package/splitter/splitter.esm.min.js +1 -1
  398. package/splitter/splitter.js +24 -7
  399. package/splitter/splitter.min.js +1 -1
  400. package/stepper/package.json +7 -0
  401. package/stepper/stepper.cjs.js +567 -0
  402. package/stepper/stepper.cjs.min.js +1 -0
  403. package/stepper/stepper.d.ts +137 -0
  404. package/stepper/stepper.esm.js +541 -0
  405. package/stepper/stepper.esm.min.js +1 -0
  406. package/stepper/stepper.js +565 -0
  407. package/stepper/stepper.min.js +1 -0
  408. package/stepperpanel/package.json +7 -0
  409. package/stepperpanel/stepperpanel.cjs.js +56 -0
  410. package/stepperpanel/stepperpanel.cjs.min.js +1 -0
  411. package/stepperpanel/stepperpanel.d.ts +158 -0
  412. package/stepperpanel/stepperpanel.esm.js +32 -0
  413. package/stepperpanel/stepperpanel.esm.min.js +1 -0
  414. package/stepperpanel/stepperpanel.js +57 -0
  415. package/stepperpanel/stepperpanel.min.js +1 -0
  416. package/steps/steps.cjs.js +1 -0
  417. package/steps/steps.cjs.min.js +1 -1
  418. package/steps/steps.esm.js +1 -0
  419. package/steps/steps.esm.min.js +1 -1
  420. package/steps/steps.js +1 -0
  421. package/steps/steps.min.js +1 -1
  422. package/styleclass/styleclass.cjs.js +5 -1
  423. package/styleclass/styleclass.esm.js +5 -1
  424. package/styleclass/styleclass.js +5 -1
  425. package/tabmenu/tabmenu.cjs.js +1 -0
  426. package/tabmenu/tabmenu.cjs.min.js +1 -1
  427. package/tabmenu/tabmenu.esm.js +1 -0
  428. package/tabmenu/tabmenu.esm.min.js +1 -1
  429. package/tabmenu/tabmenu.js +1 -0
  430. package/tabmenu/tabmenu.min.js +1 -1
  431. package/tabview/tabview.cjs.js +23 -18
  432. package/tabview/tabview.cjs.min.js +1 -1
  433. package/tabview/tabview.esm.js +23 -18
  434. package/tabview/tabview.esm.min.js +1 -1
  435. package/tabview/tabview.js +23 -18
  436. package/tabview/tabview.min.js +1 -1
  437. package/terminal/terminal.cjs.js +2 -1
  438. package/terminal/terminal.cjs.min.js +1 -1
  439. package/terminal/terminal.esm.js +2 -1
  440. package/terminal/terminal.esm.min.js +1 -1
  441. package/terminal/terminal.js +2 -1
  442. package/terminal/terminal.min.js +1 -1
  443. package/tieredmenu/tieredmenu.cjs.js +18 -17
  444. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  445. package/tieredmenu/tieredmenu.esm.js +18 -17
  446. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  447. package/tieredmenu/tieredmenu.js +18 -17
  448. package/tieredmenu/tieredmenu.min.js +1 -1
  449. package/toast/toast.cjs.js +1 -1
  450. package/toast/toast.esm.js +1 -1
  451. package/toast/toast.js +1 -1
  452. package/togglebutton/togglebutton.cjs.js +1 -1
  453. package/togglebutton/togglebutton.cjs.min.js +1 -1
  454. package/togglebutton/togglebutton.esm.js +1 -1
  455. package/togglebutton/togglebutton.esm.min.js +1 -1
  456. package/togglebutton/togglebutton.js +1 -1
  457. package/togglebutton/togglebutton.min.js +1 -1
  458. package/tooltip/tooltip.cjs.js +20 -17
  459. package/tooltip/tooltip.cjs.min.js +1 -1
  460. package/tooltip/tooltip.esm.js +20 -17
  461. package/tooltip/tooltip.esm.min.js +1 -1
  462. package/tooltip/tooltip.js +20 -17
  463. package/tooltip/tooltip.min.js +1 -1
  464. package/tree/tree.cjs.js +377 -148
  465. package/tree/tree.cjs.min.js +1 -1
  466. package/tree/tree.esm.js +378 -149
  467. package/tree/tree.esm.min.js +1 -1
  468. package/tree/tree.js +378 -150
  469. package/tree/tree.min.js +1 -1
  470. package/treeselect/treeselect.cjs.js +24 -17
  471. package/treeselect/treeselect.cjs.min.js +1 -1
  472. package/treeselect/treeselect.d.ts +2 -1
  473. package/treeselect/treeselect.esm.js +24 -17
  474. package/treeselect/treeselect.esm.min.js +1 -1
  475. package/treeselect/treeselect.js +24 -17
  476. package/treeselect/treeselect.min.js +1 -1
  477. package/treetable/treetable.cjs.js +492 -295
  478. package/treetable/treetable.cjs.min.js +1 -1
  479. package/treetable/treetable.d.ts +4 -4
  480. package/treetable/treetable.esm.js +494 -297
  481. package/treetable/treetable.esm.min.js +1 -1
  482. package/treetable/treetable.js +493 -296
  483. package/treetable/treetable.min.js +1 -1
  484. package/tristatecheckbox/tristatecheckbox.cjs.js +11 -5
  485. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  486. package/tristatecheckbox/tristatecheckbox.esm.js +11 -5
  487. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  488. package/tristatecheckbox/tristatecheckbox.js +11 -5
  489. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  490. package/utils/utils.cjs.js +262 -139
  491. package/utils/utils.cjs.min.js +1 -1
  492. package/utils/utils.esm.js +262 -139
  493. package/utils/utils.esm.min.js +1 -1
  494. package/utils/utils.js +262 -139
  495. package/utils/utils.min.js +1 -1
  496. package/virtualscroller/virtualscroller.cjs.js +46 -43
  497. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  498. package/virtualscroller/virtualscroller.esm.js +46 -43
  499. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  500. package/virtualscroller/virtualscroller.js +46 -43
  501. package/virtualscroller/virtualscroller.min.js +1 -1
  502. package/web-types.json +502 -33
@@ -602,7 +602,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
602
602
  }
603
603
  };
604
604
  var onPickerKeyDown = function onPickerKeyDown(event, type, direction) {
605
- if (event.code === 'Enter' || event.code === 'Space') {
605
+ if (event.key === 'Enter' || event.key === 'Space') {
606
606
  onTimePickerElementMouseDown(event, type, direction);
607
607
  event.preventDefault();
608
608
  return;
@@ -610,7 +610,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
610
610
  onContainerButtonKeydown(event);
611
611
  };
612
612
  var onPickerKeyUp = function onPickerKeyUp(event) {
613
- if (event.code === 'Enter' || event.code === 'Space') {
613
+ if (event.key === 'Enter' || event.key === 'Space') {
614
614
  onTimePickerElementMouseUp();
615
615
  event.preventDefault();
616
616
  return;
@@ -625,9 +625,15 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
625
625
  } else {
626
626
  var focusedIndex = focusableElements.indexOf(document.activeElement);
627
627
  if (event !== null && event !== void 0 && event.shiftKey) {
628
- if (focusedIndex === -1 || focusedIndex === 0) focusableElements[focusableElements.length - 1].focus();else focusableElements[focusedIndex - 1].focus();
628
+ if (focusedIndex === -1 || focusedIndex === 0) {
629
+ focusableElements[focusableElements.length - 1].focus();
630
+ } else {
631
+ focusableElements[focusedIndex - 1].focus();
632
+ }
633
+ } else if (focusedIndex === -1 || focusedIndex === focusableElements.length - 1) {
634
+ focusableElements[0].focus();
629
635
  } else {
630
- if (focusedIndex === -1 || focusedIndex === focusableElements.length - 1) focusableElements[0].focus();else focusableElements[focusedIndex + 1].focus();
636
+ focusableElements[focusedIndex + 1].focus();
631
637
  }
632
638
  }
633
639
  }
@@ -636,7 +642,11 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
636
642
  if (navigation.current) {
637
643
  if (navigation.current.button) {
638
644
  initFocusableCell();
639
- if (navigation.current.backward) previousButton.current.focus();else nextButton.current.focus();
645
+ if (navigation.current.backward) {
646
+ previousButton.current.focus();
647
+ } else {
648
+ nextButton.current.focus();
649
+ }
640
650
  } else {
641
651
  var cell;
642
652
  if (navigation.current.backward) {
@@ -865,16 +875,32 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
865
875
  }, interval || 500);
866
876
  switch (type) {
867
877
  case 0:
868
- if (direction === 1) incrementHour(event);else decrementHour(event);
878
+ if (direction === 1) {
879
+ incrementHour(event);
880
+ } else {
881
+ decrementHour(event);
882
+ }
869
883
  break;
870
884
  case 1:
871
- if (direction === 1) incrementMinute(event);else decrementMinute(event);
885
+ if (direction === 1) {
886
+ incrementMinute(event);
887
+ } else {
888
+ decrementMinute(event);
889
+ }
872
890
  break;
873
891
  case 2:
874
- if (direction === 1) incrementSecond(event);else decrementSecond(event);
892
+ if (direction === 1) {
893
+ incrementSecond(event);
894
+ } else {
895
+ decrementSecond(event);
896
+ }
875
897
  break;
876
898
  case 3:
877
- if (direction === 1) incrementMilliSecond(event);else decrementMilliSecond(event);
899
+ if (direction === 1) {
900
+ incrementMilliSecond(event);
901
+ } else {
902
+ decrementMilliSecond(event);
903
+ }
878
904
  break;
879
905
  }
880
906
  };
@@ -883,6 +909,12 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
883
909
  clearTimeout(timePickerTimer.current);
884
910
  }
885
911
  };
912
+ var roundMinutesToStep = function roundMinutesToStep(minutes) {
913
+ if (props.stepMinute) {
914
+ return Math.round(minutes / props.stepMinute) * props.stepMinute;
915
+ }
916
+ return minutes;
917
+ };
886
918
  var incrementHour = function incrementHour(event) {
887
919
  var currentTime = getCurrentDateTime();
888
920
  var currentHour = currentTime.getHours();
@@ -911,10 +943,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
911
943
  updateTime(event, newHour, props.maxDate.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
912
944
  }
913
945
  } else {
914
- updateTime(event, newHour, currentTime.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
946
+ updateTime(event, newHour, roundMinutesToStep(currentTime.getMinutes()), currentTime.getSeconds(), currentTime.getMilliseconds());
915
947
  }
916
948
  } else {
917
- updateTime(event, newHour, currentTime.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
949
+ updateTime(event, newHour, roundMinutesToStep(currentTime.getMinutes()), currentTime.getSeconds(), currentTime.getMilliseconds());
918
950
  }
919
951
  }
920
952
  event.preventDefault();
@@ -947,10 +979,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
947
979
  updateTime(event, newHour, props.minDate.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
948
980
  }
949
981
  } else {
950
- updateTime(event, newHour, currentTime.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
982
+ updateTime(event, newHour, roundMinutesToStep(currentTime.getMinutes()), currentTime.getSeconds(), currentTime.getMilliseconds());
951
983
  }
952
984
  } else {
953
- updateTime(event, newHour, currentTime.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
985
+ updateTime(event, newHour, roundMinutesToStep(currentTime.getMinutes()), currentTime.getSeconds(), currentTime.getMilliseconds());
954
986
  }
955
987
  }
956
988
  event.preventDefault();
@@ -1071,7 +1103,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1071
1103
  var currentTime = getCurrentDateTime();
1072
1104
  var currentHour = currentTime.getHours();
1073
1105
  var newHour = currentHour >= 12 ? currentHour - 12 : currentHour + 12;
1074
- if (validateHour(convertTo24Hour(newHour, !(currentHour > 11)), currentTime)) {
1106
+ if (validateHour(convertTo24Hour(newHour, currentHour > 11), currentTime)) {
1075
1107
  updateTime(event, newHour, currentTime.getMinutes(), currentTime.getSeconds(), currentTime.getMilliseconds());
1076
1108
  }
1077
1109
  event.preventDefault();
@@ -1439,7 +1471,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1439
1471
  }
1440
1472
  case 'Tab':
1441
1473
  {
1442
- if (!props.inline) trapFocus(event);
1474
+ if (!props.inline) {
1475
+ trapFocus(event);
1476
+ }
1443
1477
  break;
1444
1478
  }
1445
1479
  case 'Home':
@@ -1478,7 +1512,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1478
1512
  backward: true
1479
1513
  };
1480
1514
  navBackward(event);
1481
- } else navigateToMonth(groupIndex, true, event);
1515
+ } else {
1516
+ navigateToMonth(groupIndex, true, event);
1517
+ }
1482
1518
  event.preventDefault();
1483
1519
  break;
1484
1520
  }
@@ -1490,7 +1526,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1490
1526
  backward: false
1491
1527
  };
1492
1528
  navForward(event);
1493
- } else navigateToMonth(groupIndex, false, event);
1529
+ } else {
1530
+ navigateToMonth(groupIndex, false, event);
1531
+ }
1494
1532
  event.preventDefault();
1495
1533
  break;
1496
1534
  }
@@ -1510,18 +1548,16 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1510
1548
  focusCell.tabIndex = '0';
1511
1549
  focusCell.focus();
1512
1550
  }
1551
+ } else if (props.numberOfMonths === 1 || groupIndex === props.numberOfMonths - 1) {
1552
+ navigation.current = {
1553
+ backward: false
1554
+ };
1555
+ navForward(event);
1513
1556
  } else {
1514
- if (props.numberOfMonths === 1 || groupIndex === props.numberOfMonths - 1) {
1515
- navigation.current = {
1516
- backward: false
1517
- };
1518
- navForward(event);
1519
- } else {
1520
- var nextMonthContainer = overlayRef.current.children[groupIndex + 1];
1521
- var _focusCell6 = utils.DomHandler.findSingle(nextMonthContainer, 'table td span:not([data-p-disabled="true"])');
1522
- _focusCell6.tabIndex = '0';
1523
- _focusCell6.focus();
1524
- }
1557
+ var nextMonthContainer = overlayRef.current.children[groupIndex + 1];
1558
+ var _focusCell6 = utils.DomHandler.findSingle(nextMonthContainer, 'table td span:not([data-p-disabled="true"])');
1559
+ _focusCell6.tabIndex = '0';
1560
+ _focusCell6.focus();
1525
1561
  }
1526
1562
  };
1527
1563
  var onMonthCellKeydown = function onMonthCellKeydown(event, index) {
@@ -1576,7 +1612,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1576
1612
  }
1577
1613
  case 'PageUp':
1578
1614
  {
1579
- if (event.shiftKey) return;
1615
+ if (event.shiftKey) {
1616
+ return;
1617
+ }
1580
1618
  navigation.current = {
1581
1619
  backward: true
1582
1620
  };
@@ -1585,7 +1623,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1585
1623
  }
1586
1624
  case 'PageDown':
1587
1625
  {
1588
- if (event.shiftKey) return;
1626
+ if (event.shiftKey) {
1627
+ return;
1628
+ }
1589
1629
  navigation.current = {
1590
1630
  backward: false
1591
1631
  };
@@ -1596,7 +1636,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1596
1636
  case 'NumpadEnter':
1597
1637
  case 'Space':
1598
1638
  {
1599
- if (props.view !== 'month') viewChangedWithKeyDown.current = true;
1639
+ if (props.view !== 'month') {
1640
+ viewChangedWithKeyDown.current = true;
1641
+ }
1600
1642
  onMonthSelect(event, index);
1601
1643
  event.preventDefault();
1602
1644
  break;
@@ -1666,7 +1708,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1666
1708
  }
1667
1709
  case 'PageUp':
1668
1710
  {
1669
- if (event.shiftKey) return;
1711
+ if (event.shiftKey) {
1712
+ return;
1713
+ }
1670
1714
  navigation.current = {
1671
1715
  backward: true
1672
1716
  };
@@ -1675,7 +1719,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1675
1719
  }
1676
1720
  case 'PageDown':
1677
1721
  {
1678
- if (event.shiftKey) return;
1722
+ if (event.shiftKey) {
1723
+ return;
1724
+ }
1679
1725
  navigation.current = {
1680
1726
  backward: false
1681
1727
  };
@@ -1686,7 +1732,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1686
1732
  case 'NumpadEnter':
1687
1733
  case 'Space':
1688
1734
  {
1689
- if (props.view !== 'year') viewChangedWithKeyDown.current = true;
1735
+ if (props.view !== 'year') {
1736
+ viewChangedWithKeyDown.current = true;
1737
+ }
1690
1738
  onYearSelect(event, index);
1691
1739
  event.preventDefault();
1692
1740
  break;
@@ -1738,7 +1786,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1738
1786
  };
1739
1787
  var selectTime = function selectTime(date, timeMeta) {
1740
1788
  if (props.showTime) {
1741
- var hours, minutes, seconds, milliseconds;
1789
+ var hours;
1790
+ var minutes;
1791
+ var seconds;
1792
+ var milliseconds;
1742
1793
  if (timeMeta) {
1743
1794
  hours = timeMeta.hours;
1744
1795
  minutes = timeMeta.minutes;
@@ -1819,14 +1870,14 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1819
1870
  return _currentYear;
1820
1871
  };
1821
1872
  var switchToMonthView = function switchToMonthView(event) {
1822
- if (event && event.code && (event.code === 'Enter' || event.code === 'Space')) {
1873
+ if (event && event.code && (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space')) {
1823
1874
  viewChangedWithKeyDown.current = true;
1824
1875
  }
1825
1876
  setCurrentView('month');
1826
1877
  event.preventDefault();
1827
1878
  };
1828
1879
  var switchToYearView = function switchToYearView(event) {
1829
- if (event && event.code && (event.code === 'Enter' || event.code === 'Space')) {
1880
+ if (event && event.code && (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space')) {
1830
1881
  viewChangedWithKeyDown.current = true;
1831
1882
  }
1832
1883
  setCurrentView('year');
@@ -1882,10 +1933,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
1882
1933
  originalEvent: event,
1883
1934
  value: newValue,
1884
1935
  stopPropagation: function stopPropagation() {
1885
- event.stopPropagation();
1936
+ event === null || event === void 0 || event.stopPropagation();
1886
1937
  },
1887
1938
  preventDefault: function preventDefault() {
1888
- event.preventDefault();
1939
+ event === null || event === void 0 || event.preventDefault();
1889
1940
  },
1890
1941
  target: {
1891
1942
  name: props.name,
@@ -2076,7 +2127,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2076
2127
  return date;
2077
2128
  };
2078
2129
  var getPreviousMonthAndYear = function getPreviousMonthAndYear(month, year) {
2079
- var m, y;
2130
+ var m;
2131
+ var y;
2080
2132
  if (month === 0) {
2081
2133
  m = 11;
2082
2134
  y = year - 1;
@@ -2090,7 +2142,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2090
2142
  };
2091
2143
  };
2092
2144
  var getNextMonthAndYear = function getNextMonthAndYear(month, year) {
2093
- var m, y;
2145
+ var m;
2146
+ var y;
2094
2147
  if (month === 11) {
2095
2148
  m = 0;
2096
2149
  y = year + 1;
@@ -2311,9 +2364,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2311
2364
  }
2312
2365
  return selected;
2313
2366
  } else if (isRangeSelection()) {
2314
- if (props.value[1]) return isDateEquals(props.value[0], dateMeta) || isDateEquals(props.value[1], dateMeta) || isDateBetween(props.value[0], props.value[1], dateMeta);else {
2315
- return isDateEquals(props.value[0], dateMeta);
2367
+ if (props.value[1]) {
2368
+ return isDateEquals(props.value[0], dateMeta) || isDateEquals(props.value[1], dateMeta) || isDateBetween(props.value[0], props.value[1], dateMeta);
2316
2369
  }
2370
+ return isDateEquals(props.value[0], dateMeta);
2317
2371
  }
2318
2372
  } else {
2319
2373
  return false;
@@ -2329,9 +2383,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2329
2383
  return value.some(function (currentValue) {
2330
2384
  return currentValue.getMonth() === month && currentValue.getFullYear() === currentYear;
2331
2385
  });
2332
- } else {
2333
- return value.getMonth() === month && value.getFullYear() === currentYear;
2334
2386
  }
2387
+ return value.getMonth() === month && value.getFullYear() === currentYear;
2335
2388
  }
2336
2389
  return false;
2337
2390
  };
@@ -2342,9 +2395,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2342
2395
  return value.some(function (currentValue) {
2343
2396
  return currentValue.getFullYear() === year;
2344
2397
  });
2345
- } else {
2346
- return value.getFullYear() === year;
2347
2398
  }
2399
+ return value.getFullYear() === year;
2348
2400
  }
2349
2401
  return false;
2350
2402
  };
@@ -2352,7 +2404,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2352
2404
  return props.numberOfMonths > 1 || props.disabled;
2353
2405
  };
2354
2406
  var isDateEquals = function isDateEquals(value, dateMeta) {
2355
- if (value && value instanceof Date) return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;else return false;
2407
+ if (value && value instanceof Date) {
2408
+ return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
2409
+ }
2410
+ return false;
2356
2411
  };
2357
2412
  var isDateBetween = function isDateBetween(start, end, dateMeta) {
2358
2413
  var between = false;
@@ -2438,9 +2493,9 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2438
2493
  for (var i = 0; i < value.length; i++) {
2439
2494
  var selectedValue = value[i];
2440
2495
  var dateAsString = isValidDate(selectedValue) ? formatDateTime(selectedValue) : '';
2441
- formattedValue += dateAsString;
2496
+ formattedValue = formattedValue + dateAsString;
2442
2497
  if (i !== value.length - 1) {
2443
- formattedValue += ', ';
2498
+ formattedValue = formattedValue + ', ';
2444
2499
  }
2445
2500
  }
2446
2501
  } else if (isRangeSelection()) {
@@ -2449,7 +2504,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2449
2504
  var endDate = value[1];
2450
2505
  formattedValue = isValidDate(startDate) ? formatDateTime(startDate) : '';
2451
2506
  if (endDate) {
2452
- formattedValue += isValidDate(endDate) ? ' - ' + formatDateTime(endDate) : '';
2507
+ formattedValue = formattedValue + (isValidDate(endDate) ? ' - ' + formatDateTime(endDate) : '');
2453
2508
  }
2454
2509
  }
2455
2510
  }
@@ -2470,7 +2525,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2470
2525
  } else {
2471
2526
  formattedValue = formatDate(date, getDateFormat());
2472
2527
  if (props.showTime) {
2473
- formattedValue += ' ' + formatTime(date);
2528
+ formattedValue = formattedValue + (' ' + formatTime(date));
2474
2529
  }
2475
2530
  }
2476
2531
  }
@@ -2482,24 +2537,24 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2482
2537
  }
2483
2538
  var iFormat;
2484
2539
  var lookAhead = function lookAhead(match) {
2485
- var matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
2486
- if (matches) {
2487
- iFormat++;
2488
- }
2489
- return matches;
2490
- },
2491
- formatNumber = function formatNumber(match, value, len) {
2492
- var num = '' + value;
2493
- if (lookAhead(match)) {
2494
- while (num.length < len) {
2495
- num = '0' + num;
2496
- }
2540
+ var matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
2541
+ if (matches) {
2542
+ iFormat++;
2543
+ }
2544
+ return matches;
2545
+ };
2546
+ var formatNumber = function formatNumber(match, value, len) {
2547
+ var num = '' + value;
2548
+ if (lookAhead(match)) {
2549
+ while (num.length < len) {
2550
+ num = '0' + num;
2497
2551
  }
2498
- return num;
2499
- },
2500
- formatName = function formatName(match, value, shortNames, longNames) {
2501
- return lookAhead(match) ? longNames[value] : shortNames[value];
2502
- };
2552
+ }
2553
+ return num;
2554
+ };
2555
+ var formatName = function formatName(match, value, shortNames, longNames) {
2556
+ return lookAhead(match) ? longNames[value] : shortNames[value];
2557
+ };
2503
2558
  var output = '';
2504
2559
  var literal = false;
2505
2560
  var _localeOptions2 = PrimeReact.localeOptions(props.locale),
@@ -2513,43 +2568,43 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2513
2568
  if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
2514
2569
  literal = false;
2515
2570
  } else {
2516
- output += format.charAt(iFormat);
2571
+ output = output + format.charAt(iFormat);
2517
2572
  }
2518
2573
  } else {
2519
2574
  switch (format.charAt(iFormat)) {
2520
2575
  case 'd':
2521
- output += formatNumber('d', date.getDate(), 2);
2576
+ output = output + formatNumber('d', date.getDate(), 2);
2522
2577
  break;
2523
2578
  case 'D':
2524
- output += formatName('D', date.getDay(), dayNamesShort, dayNames);
2579
+ output = output + formatName('D', date.getDay(), dayNamesShort, dayNames);
2525
2580
  break;
2526
2581
  case 'o':
2527
- output += formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
2582
+ output = output + formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
2528
2583
  break;
2529
2584
  case 'm':
2530
- output += formatNumber('m', date.getMonth() + 1, 2);
2585
+ output = output + formatNumber('m', date.getMonth() + 1, 2);
2531
2586
  break;
2532
2587
  case 'M':
2533
- output += formatName('M', date.getMonth(), monthNamesShort, monthNames);
2588
+ output = output + formatName('M', date.getMonth(), monthNamesShort, monthNames);
2534
2589
  break;
2535
2590
  case 'y':
2536
- output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + date.getFullYear() % 100;
2591
+ output = output + (lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + date.getFullYear() % 100);
2537
2592
  break;
2538
2593
  case '@':
2539
- output += date.getTime();
2594
+ output = output + date.getTime();
2540
2595
  break;
2541
2596
  case '!':
2542
- output += date.getTime() * 10000 + ticksTo1970;
2597
+ output = output + (date.getTime() * 10000 + ticksTo1970);
2543
2598
  break;
2544
2599
  case "'":
2545
2600
  if (lookAhead("'")) {
2546
- output += "'";
2601
+ output = output + "'";
2547
2602
  } else {
2548
2603
  literal = true;
2549
2604
  }
2550
2605
  break;
2551
2606
  default:
2552
- output += format.charAt(iFormat);
2607
+ output = output + format.charAt(iFormat);
2553
2608
  }
2554
2609
  }
2555
2610
  }
@@ -2566,25 +2621,25 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2566
2621
  var seconds = date.getSeconds();
2567
2622
  var milliseconds = date.getMilliseconds();
2568
2623
  if (props.hourFormat === '12' && hours > 11 && hours !== 12) {
2569
- hours -= 12;
2624
+ hours = hours - 12;
2570
2625
  }
2571
2626
  if (props.hourFormat === '12') {
2572
- output += hours === 0 ? 12 : hours < 10 ? '0' + hours : hours;
2627
+ output = output + (hours === 0 ? 12 : hours < 10 ? '0' + hours : hours);
2573
2628
  } else {
2574
- output += hours < 10 ? '0' + hours : hours;
2629
+ output = output + (hours < 10 ? '0' + hours : hours);
2575
2630
  }
2576
- output += ':';
2577
- output += minutes < 10 ? '0' + minutes : minutes;
2631
+ output = output + ':';
2632
+ output = output + (minutes < 10 ? '0' + minutes : minutes);
2578
2633
  if (props.showSeconds) {
2579
- output += ':';
2580
- output += seconds < 10 ? '0' + seconds : seconds;
2634
+ output = output + ':';
2635
+ output = output + (seconds < 10 ? '0' + seconds : seconds);
2581
2636
  }
2582
2637
  if (props.showMillisec) {
2583
- output += '.';
2584
- output += milliseconds < 100 ? (milliseconds < 10 ? '00' : '0') + milliseconds : milliseconds;
2638
+ output = output + '.';
2639
+ output = output + (milliseconds < 100 ? (milliseconds < 10 ? '00' : '0') + milliseconds : milliseconds);
2585
2640
  }
2586
2641
  if (props.hourFormat === '12') {
2587
- output += date.getHours() > 11 ? ' PM' : ' AM';
2642
+ output = output + (date.getHours() > 11 ? ' PM' : ' AM');
2588
2643
  }
2589
2644
  return output;
2590
2645
  };
@@ -2628,13 +2683,11 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2628
2683
  if (props.timeOnly) {
2629
2684
  date = new Date();
2630
2685
  populateTime(date, parts[0], parts[1]);
2686
+ } else if (props.showTime) {
2687
+ date = parseDate(parts[0], getDateFormat());
2688
+ populateTime(date, parts[1], parts[2]);
2631
2689
  } else {
2632
- if (props.showTime) {
2633
- date = parseDate(parts[0], getDateFormat());
2634
- populateTime(date, parts[1], parts[2]);
2635
- } else {
2636
- date = parseDate(text, getDateFormat());
2637
- }
2690
+ date = parseDate(text, getDateFormat());
2638
2691
  }
2639
2692
  return date;
2640
2693
  };
@@ -2665,10 +2718,10 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2665
2718
  } else {
2666
2719
  if (props.hourFormat === '12') {
2667
2720
  if (h !== 12 && ampm === 'PM') {
2668
- h += 12;
2721
+ h = h + 12;
2669
2722
  }
2670
2723
  if (h === 12 && ampm === 'AM') {
2671
- h -= 12;
2724
+ h = h - 12;
2672
2725
  }
2673
2726
  }
2674
2727
  return {
@@ -2689,66 +2742,65 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2689
2742
  if (value === '') {
2690
2743
  return null;
2691
2744
  }
2692
- var iFormat,
2693
- dim,
2694
- extra,
2695
- iValue = 0,
2696
- shortYearCutoff = typeof props.shortYearCutoff !== 'string' ? props.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(props.shortYearCutoff, 10),
2697
- year = -1,
2698
- month = -1,
2699
- day = -1,
2700
- doy = -1,
2701
- literal = false,
2702
- date,
2703
- lookAhead = function lookAhead(match) {
2704
- var matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
2705
- if (matches) {
2706
- iFormat++;
2707
- }
2708
- return matches;
2709
- },
2710
- getNumber = function getNumber(match) {
2711
- var isDoubled = lookAhead(match),
2712
- size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2,
2713
- minSize = match === 'y' ? size : 1,
2714
- digits = new RegExp('^\\d{' + minSize + ',' + size + '}'),
2715
- num = value.substring(iValue).match(digits);
2716
- if (!num) {
2717
- throw new Error('Missing number at position ' + iValue);
2718
- }
2719
- iValue += num[0].length;
2720
- return parseInt(num[0], 10);
2721
- },
2722
- getName = function getName(match, shortNames, longNames) {
2723
- var index = -1;
2724
- var arr = lookAhead(match) ? longNames : shortNames;
2725
- var names = [];
2726
- for (var i = 0; i < arr.length; i++) {
2727
- names.push([i, arr[i]]);
2728
- }
2729
- names.sort(function (a, b) {
2730
- return -(a[1].length - b[1].length);
2731
- });
2732
- for (var _i = 0; _i < names.length; _i++) {
2733
- var name = names[_i][1];
2734
- if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
2735
- index = names[_i][0];
2736
- iValue += name.length;
2737
- break;
2738
- }
2739
- }
2740
- if (index !== -1) {
2741
- return index + 1;
2742
- } else {
2743
- throw new Error('Unknown name at position ' + iValue);
2744
- }
2745
- },
2746
- checkLiteral = function checkLiteral() {
2747
- if (value.charAt(iValue) !== format.charAt(iFormat)) {
2748
- throw new Error('Unexpected literal at position ' + iValue);
2745
+ var iFormat;
2746
+ var dim;
2747
+ var extra;
2748
+ var iValue = 0;
2749
+ var shortYearCutoff = typeof props.shortYearCutoff !== 'string' ? props.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(props.shortYearCutoff, 10);
2750
+ var year = -1;
2751
+ var month = -1;
2752
+ var day = -1;
2753
+ var doy = -1;
2754
+ var literal = false;
2755
+ var date;
2756
+ var lookAhead = function lookAhead(match) {
2757
+ var matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
2758
+ if (matches) {
2759
+ iFormat++;
2760
+ }
2761
+ return matches;
2762
+ };
2763
+ var getNumber = function getNumber(match) {
2764
+ var isDoubled = lookAhead(match);
2765
+ var size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2;
2766
+ var minSize = match === 'y' ? size : 1;
2767
+ var digits = new RegExp('^\\d{' + minSize + ',' + size + '}');
2768
+ var num = value.substring(iValue).match(digits);
2769
+ if (!num) {
2770
+ throw new Error('Missing number at position ' + iValue);
2771
+ }
2772
+ iValue = iValue + num[0].length;
2773
+ return parseInt(num[0], 10);
2774
+ };
2775
+ var getName = function getName(match, shortNames, longNames) {
2776
+ var index = -1;
2777
+ var arr = lookAhead(match) ? longNames : shortNames;
2778
+ var names = [];
2779
+ for (var i = 0; i < arr.length; i++) {
2780
+ names.push([i, arr[i]]);
2781
+ }
2782
+ names.sort(function (a, b) {
2783
+ return -(a[1].length - b[1].length);
2784
+ });
2785
+ for (var _i = 0; _i < names.length; _i++) {
2786
+ var name = names[_i][1];
2787
+ if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
2788
+ index = names[_i][0];
2789
+ iValue = iValue + name.length;
2790
+ break;
2749
2791
  }
2750
- iValue++;
2751
- };
2792
+ }
2793
+ if (index !== -1) {
2794
+ return index + 1;
2795
+ }
2796
+ throw new Error('Unknown name at position ' + iValue);
2797
+ };
2798
+ var checkLiteral = function checkLiteral() {
2799
+ if (value.charAt(iValue) !== format.charAt(iFormat)) {
2800
+ throw new Error('Unexpected literal at position ' + iValue);
2801
+ }
2802
+ iValue++;
2803
+ };
2752
2804
  if (props.view === 'month') {
2753
2805
  day = 1;
2754
2806
  }
@@ -2821,7 +2873,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2821
2873
  if (year === -1) {
2822
2874
  year = new Date().getFullYear();
2823
2875
  } else if (year < 100) {
2824
- year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100);
2876
+ year = year + (new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100));
2825
2877
  }
2826
2878
  if (doy > -1) {
2827
2879
  month = 1;
@@ -2832,7 +2884,7 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
2832
2884
  break;
2833
2885
  }
2834
2886
  month++;
2835
- day -= dim;
2887
+ day = day - dim;
2836
2888
  } while (true);
2837
2889
  }
2838
2890
  date = daylightSavingAdjust(new Date(year, month - 1, day));
@@ -3427,9 +3479,8 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
3427
3479
  if (!props.timeOnly) {
3428
3480
  if (props.view === 'date') {
3429
3481
  return createDateView();
3430
- } else {
3431
- return createMonthYearView();
3432
3482
  }
3483
+ return createMonthYearView();
3433
3484
  }
3434
3485
  return null;
3435
3486
  };
@@ -3449,7 +3500,11 @@ this.primereact.calendar = (function (exports, React, PrimeReact, button, compon
3449
3500
  // #3770 account for step minutes rolling to next hour
3450
3501
  hour = minute > 59 ? hour + 1 : hour;
3451
3502
  if (props.hourFormat === '12') {
3452
- if (hour === 0) hour = 12;else if (hour > 11 && hour !== 12) hour = hour - 12;
3503
+ if (hour === 0) {
3504
+ hour = 12;
3505
+ } else if (hour > 11 && hour !== 12) {
3506
+ hour = hour - 12;
3507
+ }
3453
3508
  }
3454
3509
  var hourProps = mergeProps(ptm('hour'));
3455
3510
  var _localeOptions6 = PrimeReact.localeOptions(props.locale),