primereact 6.6.0 → 7.0.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 (800) hide show
  1. package/README.md +34 -9
  2. package/accordion/accordion.cjs.js +32 -23
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.d.ts +3 -2
  5. package/accordion/accordion.esm.js +17 -8
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +32 -24
  8. package/accordion/accordion.min.js +1 -1
  9. package/api/api.cjs.js +374 -42
  10. package/api/api.cjs.min.js +1 -1
  11. package/api/api.d.ts +126 -32
  12. package/api/api.esm.js +371 -43
  13. package/api/api.esm.min.js +1 -1
  14. package/api/api.js +374 -44
  15. package/api/api.min.js +1 -1
  16. package/autocomplete/autocomplete.cjs.js +79 -69
  17. package/autocomplete/autocomplete.cjs.min.js +1 -1
  18. package/autocomplete/autocomplete.d.ts +3 -1
  19. package/autocomplete/autocomplete.esm.js +15 -5
  20. package/autocomplete/autocomplete.esm.min.js +1 -1
  21. package/autocomplete/autocomplete.js +75 -70
  22. package/autocomplete/autocomplete.min.js +1 -1
  23. package/avatar/avatar.cjs.js +12 -9
  24. package/avatar/avatar.cjs.min.js +1 -1
  25. package/avatar/avatar.d.ts +2 -1
  26. package/avatar/avatar.esm.js +7 -4
  27. package/avatar/avatar.esm.min.js +1 -1
  28. package/avatar/avatar.js +13 -10
  29. package/avatar/avatar.min.js +1 -1
  30. package/avatargroup/avatargroup.cjs.js +5 -3
  31. package/avatargroup/avatargroup.cjs.min.js +1 -1
  32. package/avatargroup/avatargroup.esm.js +3 -1
  33. package/avatargroup/avatargroup.esm.min.js +1 -1
  34. package/avatargroup/avatargroup.js +6 -4
  35. package/avatargroup/avatargroup.min.js +1 -1
  36. package/badge/badge.cjs.js +5 -3
  37. package/badge/badge.cjs.min.js +1 -1
  38. package/badge/badge.esm.js +3 -1
  39. package/badge/badge.esm.min.js +1 -1
  40. package/badge/badge.js +6 -4
  41. package/badge/badge.min.js +1 -1
  42. package/blockui/blockui.cjs.js +19 -13
  43. package/blockui/blockui.cjs.min.js +1 -1
  44. package/blockui/blockui.esm.js +7 -2
  45. package/blockui/blockui.esm.min.js +1 -1
  46. package/blockui/blockui.js +18 -14
  47. package/blockui/blockui.min.js +1 -1
  48. package/breadcrumb/breadcrumb.cjs.js +18 -16
  49. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  50. package/breadcrumb/breadcrumb.esm.js +3 -1
  51. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  52. package/breadcrumb/breadcrumb.js +19 -17
  53. package/breadcrumb/breadcrumb.min.js +1 -1
  54. package/button/button.cjs.js +44 -53
  55. package/button/button.cjs.min.js +1 -1
  56. package/button/button.d.ts +4 -11
  57. package/button/button.esm.js +33 -42
  58. package/button/button.esm.min.js +1 -1
  59. package/button/button.js +43 -54
  60. package/button/button.min.js +1 -1
  61. package/calendar/calendar.cjs.js +183 -153
  62. package/calendar/calendar.cjs.min.js +1 -1
  63. package/calendar/calendar.d.ts +5 -1
  64. package/calendar/calendar.esm.js +57 -27
  65. package/calendar/calendar.esm.min.js +1 -1
  66. package/calendar/calendar.js +179 -154
  67. package/calendar/calendar.min.css +1 -1
  68. package/calendar/calendar.min.js +1 -1
  69. package/captcha/captcha.cjs.js +3 -1
  70. package/captcha/captcha.cjs.min.js +1 -1
  71. package/captcha/captcha.esm.js +2 -0
  72. package/captcha/captcha.esm.min.js +1 -1
  73. package/captcha/captcha.js +4 -2
  74. package/captcha/captcha.min.js +1 -1
  75. package/card/card.cjs.js +15 -13
  76. package/card/card.cjs.min.js +1 -1
  77. package/card/card.esm.js +3 -1
  78. package/card/card.esm.min.js +1 -1
  79. package/card/card.js +16 -14
  80. package/card/card.min.js +1 -1
  81. package/carousel/carousel.cjs.js +39 -36
  82. package/carousel/carousel.cjs.min.js +1 -1
  83. package/carousel/carousel.esm.js +4 -1
  84. package/carousel/carousel.esm.min.js +1 -1
  85. package/carousel/carousel.js +39 -37
  86. package/carousel/carousel.min.js +1 -1
  87. package/cascadeselect/cascadeselect.cjs.js +53 -47
  88. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  89. package/cascadeselect/cascadeselect.esm.js +8 -2
  90. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  91. package/cascadeselect/cascadeselect.js +50 -48
  92. package/cascadeselect/cascadeselect.min.js +1 -1
  93. package/chart/chart.cjs.js +8 -8
  94. package/chart/chart.cjs.min.js +1 -1
  95. package/chart/chart.esm.js +3 -1
  96. package/chart/chart.esm.min.js +1 -1
  97. package/chart/chart.js +7 -5
  98. package/chart/chart.min.js +1 -1
  99. package/checkbox/checkbox.cjs.js +22 -15
  100. package/checkbox/checkbox.cjs.min.js +1 -1
  101. package/checkbox/checkbox.d.ts +2 -1
  102. package/checkbox/checkbox.esm.js +15 -8
  103. package/checkbox/checkbox.esm.min.js +1 -1
  104. package/checkbox/checkbox.js +22 -16
  105. package/checkbox/checkbox.min.js +1 -1
  106. package/chip/chip.cjs.js +18 -14
  107. package/chip/chip.cjs.min.js +1 -1
  108. package/chip/chip.d.ts +3 -4
  109. package/chip/chip.esm.js +13 -9
  110. package/chip/chip.esm.min.js +1 -1
  111. package/chip/chip.js +19 -15
  112. package/chip/chip.min.js +1 -1
  113. package/chips/chips.cjs.js +48 -20
  114. package/chips/chips.cjs.min.js +1 -1
  115. package/chips/chips.d.ts +10 -0
  116. package/chips/chips.esm.js +39 -11
  117. package/chips/chips.esm.min.js +1 -1
  118. package/chips/chips.js +48 -21
  119. package/chips/chips.min.js +1 -1
  120. package/colorpicker/colorpicker.cjs.js +37 -31
  121. package/colorpicker/colorpicker.cjs.min.js +1 -1
  122. package/colorpicker/colorpicker.d.ts +1 -1
  123. package/colorpicker/colorpicker.esm.js +8 -2
  124. package/colorpicker/colorpicker.esm.min.js +1 -1
  125. package/colorpicker/colorpicker.js +34 -32
  126. package/colorpicker/colorpicker.min.js +1 -1
  127. package/column/column.cjs.js +34 -9
  128. package/column/column.cjs.min.js +1 -1
  129. package/column/column.d.ts +168 -13
  130. package/column/column.esm.js +34 -9
  131. package/column/column.esm.min.js +1 -1
  132. package/column/column.js +35 -10
  133. package/column/column.min.js +1 -1
  134. package/columngroup/columngroup.cjs.js +2 -0
  135. package/columngroup/columngroup.cjs.min.js +1 -1
  136. package/columngroup/columngroup.esm.js +2 -0
  137. package/columngroup/columngroup.esm.min.js +1 -1
  138. package/columngroup/columngroup.js +3 -1
  139. package/columngroup/columngroup.min.js +1 -1
  140. package/common/common.min.css +1 -1
  141. package/confirmdialog/confirmdialog.cjs.js +24 -20
  142. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  143. package/confirmdialog/confirmdialog.d.ts +4 -3
  144. package/confirmdialog/confirmdialog.esm.js +8 -4
  145. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  146. package/confirmdialog/confirmdialog.js +24 -21
  147. package/confirmdialog/confirmdialog.min.js +1 -1
  148. package/confirmpopup/confirmpopup.cjs.js +47 -40
  149. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  150. package/confirmpopup/confirmpopup.d.ts +4 -3
  151. package/confirmpopup/confirmpopup.esm.js +12 -6
  152. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  153. package/confirmpopup/confirmpopup.js +44 -40
  154. package/confirmpopup/confirmpopup.min.js +1 -1
  155. package/contextmenu/contextmenu.cjs.js +70 -63
  156. package/contextmenu/contextmenu.cjs.min.js +1 -1
  157. package/contextmenu/contextmenu.esm.js +37 -31
  158. package/contextmenu/contextmenu.esm.min.js +1 -1
  159. package/contextmenu/contextmenu.js +67 -64
  160. package/contextmenu/contextmenu.min.js +1 -1
  161. package/core/core.js +11745 -1573
  162. package/core/core.min.js +40 -1
  163. package/csstransition/csstransition.cjs.js +3 -1
  164. package/csstransition/csstransition.cjs.min.js +1 -1
  165. package/csstransition/csstransition.esm.js +2 -0
  166. package/csstransition/csstransition.esm.min.js +1 -1
  167. package/csstransition/csstransition.js +4 -2
  168. package/csstransition/csstransition.min.js +1 -1
  169. package/datascroller/datascroller.cjs.js +14 -11
  170. package/datascroller/datascroller.cjs.min.js +1 -1
  171. package/datascroller/datascroller.esm.js +6 -3
  172. package/datascroller/datascroller.esm.min.js +1 -1
  173. package/datascroller/datascroller.js +14 -12
  174. package/datascroller/datascroller.min.js +1 -1
  175. package/datatable/datatable.cjs.js +4784 -3277
  176. package/datatable/datatable.cjs.min.js +1 -1
  177. package/datatable/datatable.d.ts +100 -29
  178. package/datatable/datatable.esm.js +4859 -3353
  179. package/datatable/datatable.esm.min.js +1 -1
  180. package/datatable/datatable.js +4777 -3278
  181. package/datatable/datatable.min.css +1 -1
  182. package/datatable/datatable.min.js +1 -1
  183. package/dataview/dataview.cjs.js +34 -29
  184. package/dataview/dataview.cjs.min.js +1 -1
  185. package/dataview/dataview.esm.js +8 -3
  186. package/dataview/dataview.esm.min.js +1 -1
  187. package/dataview/dataview.js +33 -30
  188. package/dataview/dataview.min.js +1 -1
  189. package/deferredcontent/deferredcontent.cjs.js +3 -1
  190. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  191. package/deferredcontent/deferredcontent.esm.js +2 -0
  192. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  193. package/deferredcontent/deferredcontent.js +4 -2
  194. package/deferredcontent/deferredcontent.min.js +1 -1
  195. package/dialog/dialog.cjs.js +68 -51
  196. package/dialog/dialog.cjs.min.js +1 -1
  197. package/dialog/dialog.d.ts +1 -0
  198. package/dialog/dialog.esm.js +22 -6
  199. package/dialog/dialog.esm.min.js +1 -1
  200. package/dialog/dialog.js +65 -52
  201. package/dialog/dialog.min.js +1 -1
  202. package/divider/divider.cjs.js +6 -4
  203. package/divider/divider.cjs.min.js +1 -1
  204. package/divider/divider.esm.js +3 -1
  205. package/divider/divider.esm.min.js +1 -1
  206. package/divider/divider.js +7 -5
  207. package/divider/divider.min.js +1 -1
  208. package/dock/dock.cjs.js +53 -17
  209. package/dock/dock.cjs.min.js +1 -1
  210. package/dock/dock.d.ts +13 -0
  211. package/dock/dock.esm.js +41 -5
  212. package/dock/dock.esm.min.js +1 -1
  213. package/dock/dock.js +53 -18
  214. package/dock/dock.min.css +1 -1
  215. package/dock/dock.min.js +1 -1
  216. package/dropdown/dropdown.cjs.js +90 -76
  217. package/dropdown/dropdown.cjs.min.js +1 -1
  218. package/dropdown/dropdown.esm.js +28 -14
  219. package/dropdown/dropdown.esm.min.js +1 -1
  220. package/dropdown/dropdown.js +86 -77
  221. package/dropdown/dropdown.min.js +1 -1
  222. package/editor/editor.cjs.js +40 -40
  223. package/editor/editor.cjs.min.js +1 -1
  224. package/editor/editor.esm.js +4 -2
  225. package/editor/editor.esm.min.js +1 -1
  226. package/editor/editor.js +39 -37
  227. package/editor/editor.min.js +1 -1
  228. package/fieldset/fieldset.cjs.js +19 -15
  229. package/fieldset/fieldset.cjs.min.js +1 -1
  230. package/fieldset/fieldset.esm.js +5 -1
  231. package/fieldset/fieldset.esm.min.js +1 -1
  232. package/fieldset/fieldset.js +18 -16
  233. package/fieldset/fieldset.min.js +1 -1
  234. package/fileupload/fileupload.cjs.js +65 -56
  235. package/fileupload/fileupload.cjs.min.js +1 -1
  236. package/fileupload/fileupload.d.ts +2 -1
  237. package/fileupload/fileupload.esm.js +26 -17
  238. package/fileupload/fileupload.esm.min.js +1 -1
  239. package/fileupload/fileupload.js +65 -57
  240. package/fileupload/fileupload.min.js +1 -1
  241. package/fullcalendar/fullcalendar.cjs.js +8 -8
  242. package/fullcalendar/fullcalendar.cjs.min.js +1 -1
  243. package/fullcalendar/fullcalendar.esm.js +3 -1
  244. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  245. package/fullcalendar/fullcalendar.js +7 -5
  246. package/fullcalendar/fullcalendar.min.js +1 -1
  247. package/galleria/galleria.cjs.js +72 -65
  248. package/galleria/galleria.cjs.min.js +1 -1
  249. package/galleria/galleria.esm.js +8 -2
  250. package/galleria/galleria.esm.min.js +1 -1
  251. package/galleria/galleria.js +69 -66
  252. package/galleria/galleria.min.js +1 -1
  253. package/gmap/gmap.cjs.js +3 -1
  254. package/gmap/gmap.cjs.min.js +1 -1
  255. package/gmap/gmap.esm.js +2 -0
  256. package/gmap/gmap.esm.min.js +1 -1
  257. package/gmap/gmap.js +4 -2
  258. package/gmap/gmap.min.js +1 -1
  259. package/image/image.cjs.js +33 -27
  260. package/image/image.cjs.min.js +1 -1
  261. package/image/image.d.ts +5 -5
  262. package/image/image.esm.js +7 -2
  263. package/image/image.esm.min.js +1 -1
  264. package/image/image.js +31 -28
  265. package/image/image.min.js +1 -1
  266. package/inplace/inplace.cjs.js +10 -8
  267. package/inplace/inplace.cjs.min.js +1 -1
  268. package/inplace/inplace.esm.js +3 -1
  269. package/inplace/inplace.esm.min.js +1 -1
  270. package/inplace/inplace.js +11 -9
  271. package/inplace/inplace.min.js +1 -1
  272. package/inputmask/inputmask.cjs.js +11 -8
  273. package/inputmask/inputmask.cjs.min.js +1 -1
  274. package/inputmask/inputmask.esm.js +4 -1
  275. package/inputmask/inputmask.esm.min.js +1 -1
  276. package/inputmask/inputmask.js +11 -9
  277. package/inputmask/inputmask.min.js +1 -1
  278. package/inputnumber/inputnumber.cjs.js +50 -29
  279. package/inputnumber/inputnumber.cjs.min.js +1 -1
  280. package/inputnumber/inputnumber.esm.js +33 -12
  281. package/inputnumber/inputnumber.esm.min.js +1 -1
  282. package/inputnumber/inputnumber.js +49 -30
  283. package/inputnumber/inputnumber.min.js +1 -1
  284. package/inputswitch/inputswitch.cjs.js +17 -12
  285. package/inputswitch/inputswitch.cjs.min.js +1 -1
  286. package/inputswitch/inputswitch.esm.js +10 -5
  287. package/inputswitch/inputswitch.esm.min.js +1 -1
  288. package/inputswitch/inputswitch.js +17 -13
  289. package/inputswitch/inputswitch.min.js +1 -1
  290. package/inputtext/inputtext.cjs.js +14 -10
  291. package/inputtext/inputtext.cjs.min.js +1 -1
  292. package/inputtext/inputtext.d.ts +1 -1
  293. package/inputtext/inputtext.esm.js +5 -1
  294. package/inputtext/inputtext.esm.min.js +1 -1
  295. package/inputtext/inputtext.js +13 -11
  296. package/inputtext/inputtext.min.css +1 -1
  297. package/inputtext/inputtext.min.js +1 -1
  298. package/inputtextarea/inputtextarea.cjs.js +12 -9
  299. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  300. package/inputtextarea/inputtextarea.d.ts +1 -1
  301. package/inputtextarea/inputtextarea.esm.js +4 -1
  302. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  303. package/inputtextarea/inputtextarea.js +12 -10
  304. package/inputtextarea/inputtextarea.min.js +1 -1
  305. package/keyfilter/keyfilter.cjs.js +5 -5
  306. package/keyfilter/keyfilter.cjs.min.js +1 -1
  307. package/keyfilter/keyfilter.esm.js +1 -1
  308. package/keyfilter/keyfilter.esm.min.js +1 -1
  309. package/keyfilter/keyfilter.js +6 -6
  310. package/keyfilter/keyfilter.min.js +1 -1
  311. package/knob/knob.cjs.js +9 -7
  312. package/knob/knob.cjs.min.js +1 -1
  313. package/knob/knob.esm.js +3 -1
  314. package/knob/knob.esm.min.js +1 -1
  315. package/knob/knob.js +10 -8
  316. package/knob/knob.min.js +1 -1
  317. package/listbox/listbox.cjs.js +44 -39
  318. package/listbox/listbox.cjs.min.js +1 -1
  319. package/listbox/listbox.esm.js +9 -4
  320. package/listbox/listbox.esm.min.js +1 -1
  321. package/listbox/listbox.js +42 -40
  322. package/listbox/listbox.min.js +1 -1
  323. package/megamenu/megamenu.cjs.js +38 -35
  324. package/megamenu/megamenu.cjs.min.js +1 -1
  325. package/megamenu/megamenu.esm.js +4 -1
  326. package/megamenu/megamenu.esm.min.js +1 -1
  327. package/megamenu/megamenu.js +38 -36
  328. package/megamenu/megamenu.min.js +1 -1
  329. package/mention/mention.cjs.js +55 -46
  330. package/mention/mention.cjs.min.js +1 -1
  331. package/mention/mention.esm.js +10 -2
  332. package/mention/mention.esm.min.js +1 -1
  333. package/mention/mention.js +50 -47
  334. package/mention/mention.min.js +1 -1
  335. package/menu/menu.cjs.js +35 -28
  336. package/menu/menu.cjs.min.js +1 -1
  337. package/menu/menu.d.ts +2 -0
  338. package/menu/menu.esm.js +8 -2
  339. package/menu/menu.esm.min.js +1 -1
  340. package/menu/menu.js +32 -29
  341. package/menu/menu.min.js +1 -1
  342. package/menubar/menubar.cjs.js +40 -35
  343. package/menubar/menubar.cjs.min.js +1 -1
  344. package/menubar/menubar.esm.js +6 -2
  345. package/menubar/menubar.esm.min.js +1 -1
  346. package/menubar/menubar.js +39 -36
  347. package/menubar/menubar.min.js +1 -1
  348. package/message/message.cjs.js +11 -8
  349. package/message/message.cjs.min.js +1 -1
  350. package/message/message.d.ts +3 -1
  351. package/message/message.esm.js +5 -2
  352. package/message/message.esm.min.js +1 -1
  353. package/message/message.js +12 -9
  354. package/message/message.min.js +1 -1
  355. package/messages/messages.cjs.js +21 -17
  356. package/messages/messages.cjs.min.js +1 -1
  357. package/messages/messages.esm.js +5 -1
  358. package/messages/messages.esm.min.js +1 -1
  359. package/messages/messages.js +20 -18
  360. package/messages/messages.min.js +1 -1
  361. package/multiselect/multiselect.cjs.js +132 -118
  362. package/multiselect/multiselect.cjs.min.js +1 -1
  363. package/multiselect/multiselect.d.ts +6 -2
  364. package/multiselect/multiselect.esm.js +47 -33
  365. package/multiselect/multiselect.esm.min.js +1 -1
  366. package/multiselect/multiselect.js +128 -119
  367. package/multiselect/multiselect.min.js +1 -1
  368. package/multistatecheckbox/multistatecheckbox.cjs.js +16 -13
  369. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  370. package/multistatecheckbox/multistatecheckbox.d.ts +2 -1
  371. package/multistatecheckbox/multistatecheckbox.esm.js +4 -1
  372. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  373. package/multistatecheckbox/multistatecheckbox.js +16 -14
  374. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  375. package/orderlist/orderlist.cjs.js +37 -34
  376. package/orderlist/orderlist.cjs.min.js +1 -1
  377. package/orderlist/orderlist.esm.js +4 -1
  378. package/orderlist/orderlist.esm.min.js +1 -1
  379. package/orderlist/orderlist.js +37 -35
  380. package/orderlist/orderlist.min.js +1 -1
  381. package/organizationchart/organizationchart.cjs.js +28 -26
  382. package/organizationchart/organizationchart.cjs.min.js +1 -1
  383. package/organizationchart/organizationchart.esm.js +3 -1
  384. package/organizationchart/organizationchart.esm.min.js +1 -1
  385. package/organizationchart/organizationchart.js +29 -27
  386. package/organizationchart/organizationchart.min.js +1 -1
  387. package/overlaypanel/overlaypanel.cjs.js +33 -24
  388. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  389. package/overlaypanel/overlaypanel.d.ts +1 -1
  390. package/overlaypanel/overlaypanel.esm.js +10 -2
  391. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  392. package/overlaypanel/overlaypanel.js +29 -25
  393. package/overlaypanel/overlaypanel.min.js +1 -1
  394. package/overlayservice/overlayservice.cjs.js +2 -2
  395. package/overlayservice/overlayservice.cjs.min.js +1 -1
  396. package/overlayservice/overlayservice.esm.js +1 -1
  397. package/overlayservice/overlayservice.esm.min.js +1 -1
  398. package/overlayservice/overlayservice.js +3 -3
  399. package/overlayservice/overlayservice.min.js +1 -1
  400. package/package.json +10 -4
  401. package/paginator/paginator.cjs.js +51 -48
  402. package/paginator/paginator.cjs.min.js +1 -1
  403. package/paginator/paginator.esm.js +5 -2
  404. package/paginator/paginator.esm.min.js +1 -1
  405. package/paginator/paginator.js +51 -49
  406. package/paginator/paginator.min.js +1 -1
  407. package/panel/panel.cjs.js +21 -17
  408. package/panel/panel.cjs.min.js +1 -1
  409. package/panel/panel.esm.js +5 -1
  410. package/panel/panel.esm.min.js +1 -1
  411. package/panel/panel.js +20 -18
  412. package/panel/panel.min.js +1 -1
  413. package/panelmenu/panelmenu.cjs.js +42 -39
  414. package/panelmenu/panelmenu.cjs.min.js +1 -1
  415. package/panelmenu/panelmenu.esm.js +4 -1
  416. package/panelmenu/panelmenu.esm.min.js +1 -1
  417. package/panelmenu/panelmenu.js +42 -40
  418. package/panelmenu/panelmenu.min.js +1 -1
  419. package/password/password.cjs.js +35 -29
  420. package/password/password.cjs.min.js +1 -1
  421. package/password/password.d.ts +1 -1
  422. package/password/password.esm.js +8 -2
  423. package/password/password.esm.min.js +1 -1
  424. package/password/password.js +32 -30
  425. package/password/password.min.js +1 -1
  426. package/picklist/picklist.cjs.js +60 -54
  427. package/picklist/picklist.cjs.min.js +1 -1
  428. package/picklist/picklist.esm.js +16 -10
  429. package/picklist/picklist.esm.min.js +1 -1
  430. package/picklist/picklist.js +60 -55
  431. package/picklist/picklist.min.js +1 -1
  432. package/portal/portal.cjs.js +7 -3
  433. package/portal/portal.cjs.min.js +1 -1
  434. package/portal/portal.esm.js +6 -2
  435. package/portal/portal.esm.min.js +1 -1
  436. package/portal/portal.js +8 -4
  437. package/portal/portal.min.js +1 -1
  438. package/primereact.all.cjs.js +8041 -5835
  439. package/primereact.all.cjs.min.js +1 -1
  440. package/primereact.all.esm.js +6905 -4701
  441. package/primereact.all.esm.min.js +1 -1
  442. package/primereact.all.js +8040 -5832
  443. package/primereact.all.min.js +1 -1
  444. package/progressbar/progressbar.cjs.js +11 -9
  445. package/progressbar/progressbar.cjs.min.js +1 -1
  446. package/progressbar/progressbar.esm.js +3 -1
  447. package/progressbar/progressbar.esm.min.js +1 -1
  448. package/progressbar/progressbar.js +12 -10
  449. package/progressbar/progressbar.min.js +1 -1
  450. package/progressspinner/progressspinner.cjs.js +7 -5
  451. package/progressspinner/progressspinner.cjs.min.js +1 -1
  452. package/progressspinner/progressspinner.esm.js +3 -1
  453. package/progressspinner/progressspinner.esm.min.js +1 -1
  454. package/progressspinner/progressspinner.js +8 -6
  455. package/progressspinner/progressspinner.min.js +1 -1
  456. package/radiobutton/radiobutton.cjs.js +12 -9
  457. package/radiobutton/radiobutton.cjs.min.js +1 -1
  458. package/radiobutton/radiobutton.esm.js +4 -1
  459. package/radiobutton/radiobutton.esm.min.js +1 -1
  460. package/radiobutton/radiobutton.js +12 -10
  461. package/radiobutton/radiobutton.min.js +1 -1
  462. package/rating/rating.cjs.js +12 -9
  463. package/rating/rating.cjs.min.js +1 -1
  464. package/rating/rating.esm.js +6 -3
  465. package/rating/rating.esm.min.js +1 -1
  466. package/rating/rating.js +12 -10
  467. package/rating/rating.min.js +1 -1
  468. package/resources/primereact.css +430 -238
  469. package/resources/primereact.min.css +1 -1
  470. package/resources/themes/arya-blue/theme.css +158 -27
  471. package/resources/themes/arya-green/theme.css +158 -27
  472. package/resources/themes/arya-orange/theme.css +158 -27
  473. package/resources/themes/arya-purple/theme.css +158 -27
  474. package/resources/themes/bootstrap4-dark-blue/theme.css +162 -31
  475. package/resources/themes/bootstrap4-dark-purple/theme.css +162 -31
  476. package/resources/themes/bootstrap4-light-blue/theme.css +162 -31
  477. package/resources/themes/bootstrap4-light-purple/theme.css +162 -31
  478. package/resources/themes/fluent-light/theme.css +158 -27
  479. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  480. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  481. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  482. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  483. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  484. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  485. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  486. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  487. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  488. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  489. package/resources/themes/lara-dark-blue/theme.css +5671 -0
  490. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  491. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  492. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  493. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  494. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  495. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  496. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  497. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  498. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  499. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  500. package/resources/themes/lara-dark-indigo/theme.css +5671 -0
  501. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  502. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  503. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  504. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  505. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  506. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  507. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  508. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  509. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  510. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  511. package/resources/themes/lara-dark-purple/theme.css +5671 -0
  512. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  513. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  514. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  515. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  516. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  517. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  518. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  519. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  520. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  521. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  522. package/resources/themes/lara-dark-teal/theme.css +5671 -0
  523. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  524. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  525. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  526. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  527. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  528. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  529. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  530. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  531. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  532. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  533. package/resources/themes/lara-light-blue/theme.css +5671 -0
  534. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  535. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  536. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  537. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  538. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  539. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  540. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  541. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  542. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  543. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  544. package/resources/themes/lara-light-indigo/theme.css +5671 -0
  545. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  546. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  547. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  548. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  549. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  550. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  551. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  552. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  553. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  554. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  555. package/resources/themes/lara-light-purple/theme.css +5671 -0
  556. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  557. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  558. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  559. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  560. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  561. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  562. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  563. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  564. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  565. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  566. package/resources/themes/lara-light-teal/theme.css +5671 -0
  567. package/resources/themes/luna-amber/theme.css +162 -31
  568. package/resources/themes/luna-blue/theme.css +162 -31
  569. package/resources/themes/luna-green/theme.css +162 -31
  570. package/resources/themes/luna-pink/theme.css +162 -31
  571. package/resources/themes/md-dark-deeppurple/theme.css +347 -56
  572. package/resources/themes/md-dark-indigo/theme.css +347 -56
  573. package/resources/themes/md-light-deeppurple/theme.css +347 -56
  574. package/resources/themes/md-light-indigo/theme.css +347 -56
  575. package/resources/themes/mdc-dark-deeppurple/theme.css +347 -56
  576. package/resources/themes/mdc-dark-indigo/theme.css +347 -56
  577. package/resources/themes/mdc-light-deeppurple/theme.css +347 -56
  578. package/resources/themes/mdc-light-indigo/theme.css +347 -56
  579. package/resources/themes/nova/theme.css +162 -31
  580. package/resources/themes/nova-accent/theme.css +162 -31
  581. package/resources/themes/nova-alt/theme.css +162 -31
  582. package/resources/themes/rhea/theme.css +162 -31
  583. package/resources/themes/saga-blue/theme.css +158 -27
  584. package/resources/themes/saga-green/theme.css +158 -27
  585. package/resources/themes/saga-orange/theme.css +158 -27
  586. package/resources/themes/saga-purple/theme.css +158 -27
  587. package/resources/themes/tailwind-light/theme.css +162 -31
  588. package/resources/themes/vela-blue/theme.css +158 -27
  589. package/resources/themes/vela-green/theme.css +158 -27
  590. package/resources/themes/vela-orange/theme.css +158 -27
  591. package/resources/themes/vela-purple/theme.css +158 -27
  592. package/ripple/ripple.cjs.js +13 -11
  593. package/ripple/ripple.cjs.min.js +1 -1
  594. package/ripple/ripple.esm.js +5 -3
  595. package/ripple/ripple.esm.min.js +1 -1
  596. package/ripple/ripple.js +14 -12
  597. package/ripple/ripple.min.js +1 -1
  598. package/row/row.cjs.js +3 -1
  599. package/row/row.cjs.min.js +1 -1
  600. package/row/row.esm.js +2 -0
  601. package/row/row.esm.min.js +1 -1
  602. package/row/row.js +4 -2
  603. package/row/row.min.js +1 -1
  604. package/scrollpanel/scrollpanel.cjs.js +21 -19
  605. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  606. package/scrollpanel/scrollpanel.esm.js +3 -1
  607. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  608. package/scrollpanel/scrollpanel.js +22 -20
  609. package/scrollpanel/scrollpanel.min.js +1 -1
  610. package/scrolltop/scrolltop.cjs.js +20 -13
  611. package/scrolltop/scrolltop.cjs.min.js +1 -1
  612. package/scrolltop/scrolltop.d.ts +2 -1
  613. package/scrolltop/scrolltop.esm.js +11 -5
  614. package/scrolltop/scrolltop.esm.min.js +1 -1
  615. package/scrolltop/scrolltop.js +18 -14
  616. package/scrolltop/scrolltop.min.js +1 -1
  617. package/selectbutton/selectbutton.cjs.js +19 -15
  618. package/selectbutton/selectbutton.cjs.min.js +1 -1
  619. package/selectbutton/selectbutton.esm.js +5 -1
  620. package/selectbutton/selectbutton.esm.min.js +1 -1
  621. package/selectbutton/selectbutton.js +18 -16
  622. package/selectbutton/selectbutton.min.js +1 -1
  623. package/selectitem/selectitem.d.ts +3 -1
  624. package/sidebar/sidebar.cjs.js +144 -116
  625. package/sidebar/sidebar.cjs.min.js +1 -1
  626. package/sidebar/sidebar.d.ts +2 -0
  627. package/sidebar/sidebar.esm.js +135 -108
  628. package/sidebar/sidebar.esm.min.js +1 -1
  629. package/sidebar/sidebar.js +141 -117
  630. package/sidebar/sidebar.min.css +1 -1
  631. package/sidebar/sidebar.min.js +1 -1
  632. package/skeleton/skeleton.cjs.js +5 -3
  633. package/skeleton/skeleton.cjs.min.js +1 -1
  634. package/skeleton/skeleton.esm.js +3 -1
  635. package/skeleton/skeleton.esm.min.js +1 -1
  636. package/skeleton/skeleton.js +6 -4
  637. package/skeleton/skeleton.min.js +1 -1
  638. package/slidemenu/slidemenu.cjs.js +39 -32
  639. package/slidemenu/slidemenu.cjs.min.js +1 -1
  640. package/slidemenu/slidemenu.esm.js +8 -2
  641. package/slidemenu/slidemenu.esm.min.js +1 -1
  642. package/slidemenu/slidemenu.js +36 -33
  643. package/slidemenu/slidemenu.min.js +1 -1
  644. package/slider/slider.cjs.js +40 -23
  645. package/slider/slider.cjs.min.js +1 -1
  646. package/slider/slider.esm.js +32 -15
  647. package/slider/slider.esm.min.js +1 -1
  648. package/slider/slider.js +41 -24
  649. package/slider/slider.min.js +1 -1
  650. package/speeddial/speeddial.cjs.js +22 -19
  651. package/speeddial/speeddial.cjs.min.js +1 -1
  652. package/speeddial/speeddial.d.ts +3 -2
  653. package/speeddial/speeddial.esm.js +4 -1
  654. package/speeddial/speeddial.esm.min.js +1 -1
  655. package/speeddial/speeddial.js +22 -20
  656. package/speeddial/speeddial.min.js +1 -1
  657. package/splitbutton/splitbutton.cjs.js +39 -33
  658. package/splitbutton/splitbutton.cjs.min.js +1 -1
  659. package/splitbutton/splitbutton.d.ts +4 -5
  660. package/splitbutton/splitbutton.esm.js +8 -2
  661. package/splitbutton/splitbutton.esm.min.js +1 -1
  662. package/splitbutton/splitbutton.js +36 -34
  663. package/splitbutton/splitbutton.min.js +1 -1
  664. package/splitter/splitter.cjs.js +21 -19
  665. package/splitter/splitter.cjs.min.js +1 -1
  666. package/splitter/splitter.esm.js +4 -2
  667. package/splitter/splitter.esm.min.js +1 -1
  668. package/splitter/splitter.js +22 -20
  669. package/splitter/splitter.min.js +1 -1
  670. package/steps/steps.cjs.js +12 -10
  671. package/steps/steps.cjs.min.js +1 -1
  672. package/steps/steps.esm.js +3 -1
  673. package/steps/steps.esm.min.js +1 -1
  674. package/steps/steps.js +13 -11
  675. package/steps/steps.min.js +1 -1
  676. package/styleclass/styleclass.cjs.js +35 -39
  677. package/styleclass/styleclass.cjs.min.js +1 -1
  678. package/styleclass/styleclass.esm.js +20 -24
  679. package/styleclass/styleclass.esm.min.js +1 -1
  680. package/styleclass/styleclass.js +36 -40
  681. package/styleclass/styleclass.min.js +1 -1
  682. package/tabmenu/tabmenu.cjs.js +18 -15
  683. package/tabmenu/tabmenu.cjs.min.js +1 -1
  684. package/tabmenu/tabmenu.esm.js +4 -1
  685. package/tabmenu/tabmenu.esm.min.js +1 -1
  686. package/tabmenu/tabmenu.js +18 -16
  687. package/tabmenu/tabmenu.min.js +1 -1
  688. package/tabview/tabview.cjs.js +177 -54
  689. package/tabview/tabview.cjs.min.js +1 -1
  690. package/tabview/tabview.d.ts +4 -1
  691. package/tabview/tabview.esm.js +146 -23
  692. package/tabview/tabview.esm.min.js +1 -1
  693. package/tabview/tabview.js +177 -55
  694. package/tabview/tabview.min.css +1 -1
  695. package/tabview/tabview.min.js +1 -1
  696. package/tag/tag.cjs.js +11 -8
  697. package/tag/tag.cjs.min.js +1 -1
  698. package/tag/tag.d.ts +2 -1
  699. package/tag/tag.esm.js +7 -4
  700. package/tag/tag.esm.min.js +1 -1
  701. package/tag/tag.js +12 -9
  702. package/tag/tag.min.js +1 -1
  703. package/terminal/terminal.cjs.js +14 -12
  704. package/terminal/terminal.cjs.min.js +1 -1
  705. package/terminal/terminal.esm.js +3 -1
  706. package/terminal/terminal.esm.min.js +1 -1
  707. package/terminal/terminal.js +15 -13
  708. package/terminal/terminal.min.js +1 -1
  709. package/terminalservice/terminalservice.cjs.js +2 -2
  710. package/terminalservice/terminalservice.cjs.min.js +1 -1
  711. package/terminalservice/terminalservice.esm.js +1 -1
  712. package/terminalservice/terminalservice.esm.min.js +1 -1
  713. package/terminalservice/terminalservice.js +3 -3
  714. package/terminalservice/terminalservice.min.js +1 -1
  715. package/tieredmenu/tieredmenu.cjs.js +44 -36
  716. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  717. package/tieredmenu/tieredmenu.esm.js +9 -2
  718. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  719. package/tieredmenu/tieredmenu.js +40 -37
  720. package/tieredmenu/tieredmenu.min.js +1 -1
  721. package/timeline/timeline.cjs.js +14 -12
  722. package/timeline/timeline.cjs.min.js +1 -1
  723. package/timeline/timeline.esm.js +3 -1
  724. package/timeline/timeline.esm.min.js +1 -1
  725. package/timeline/timeline.js +15 -13
  726. package/timeline/timeline.min.js +1 -1
  727. package/toast/toast.cjs.js +48 -40
  728. package/toast/toast.cjs.min.js +1 -1
  729. package/toast/toast.esm.js +22 -15
  730. package/toast/toast.esm.min.js +1 -1
  731. package/toast/toast.js +46 -41
  732. package/toast/toast.min.js +1 -1
  733. package/togglebutton/togglebutton.cjs.js +16 -9
  734. package/togglebutton/togglebutton.cjs.min.js +1 -1
  735. package/togglebutton/togglebutton.d.ts +3 -2
  736. package/togglebutton/togglebutton.esm.js +10 -3
  737. package/togglebutton/togglebutton.esm.min.js +1 -1
  738. package/togglebutton/togglebutton.js +15 -10
  739. package/togglebutton/togglebutton.min.js +1 -1
  740. package/toolbar/toolbar.cjs.js +9 -7
  741. package/toolbar/toolbar.cjs.min.js +1 -1
  742. package/toolbar/toolbar.esm.js +3 -1
  743. package/toolbar/toolbar.esm.min.js +1 -1
  744. package/toolbar/toolbar.js +10 -8
  745. package/toolbar/toolbar.min.js +1 -1
  746. package/tooltip/tooltip.cjs.js +36 -31
  747. package/tooltip/tooltip.cjs.min.js +1 -1
  748. package/tooltip/tooltip.esm.js +6 -2
  749. package/tooltip/tooltip.esm.min.js +1 -1
  750. package/tooltip/tooltip.js +35 -32
  751. package/tooltip/tooltip.min.css +1 -1
  752. package/tooltip/tooltip.min.js +1 -1
  753. package/tree/tree.cjs.js +54 -51
  754. package/tree/tree.cjs.min.js +1 -1
  755. package/tree/tree.d.ts +9 -2
  756. package/tree/tree.esm.js +4 -1
  757. package/tree/tree.esm.min.js +1 -1
  758. package/tree/tree.js +54 -52
  759. package/tree/tree.min.js +1 -1
  760. package/treenode/treenode.d.ts +3 -1
  761. package/treeselect/treeselect.cjs.js +52 -46
  762. package/treeselect/treeselect.cjs.min.js +1 -1
  763. package/treeselect/treeselect.d.ts +9 -2
  764. package/treeselect/treeselect.esm.js +11 -5
  765. package/treeselect/treeselect.esm.min.js +1 -1
  766. package/treeselect/treeselect.js +49 -47
  767. package/treeselect/treeselect.min.js +1 -1
  768. package/treetable/treetable.cjs.js +1290 -272
  769. package/treetable/treetable.cjs.min.js +1 -1
  770. package/treetable/treetable.d.ts +9 -2
  771. package/treetable/treetable.esm.js +1213 -195
  772. package/treetable/treetable.esm.min.js +1 -1
  773. package/treetable/treetable.js +1288 -273
  774. package/treetable/treetable.min.js +1 -1
  775. package/tristatecheckbox/tristatecheckbox.cjs.js +13 -10
  776. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  777. package/tristatecheckbox/tristatecheckbox.esm.js +4 -1
  778. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  779. package/tristatecheckbox/tristatecheckbox.js +13 -11
  780. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  781. package/utils/utils.cjs.js +502 -525
  782. package/utils/utils.cjs.min.js +1 -1
  783. package/utils/utils.d.ts +29 -20
  784. package/utils/utils.esm.js +501 -524
  785. package/utils/utils.esm.min.js +1 -1
  786. package/utils/utils.js +503 -526
  787. package/utils/utils.min.js +1 -1
  788. package/virtualscroller/virtualscroller.cjs.js +285 -168
  789. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  790. package/virtualscroller/virtualscroller.d.ts +21 -9
  791. package/virtualscroller/virtualscroller.esm.js +278 -161
  792. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  793. package/virtualscroller/virtualscroller.js +286 -169
  794. package/virtualscroller/virtualscroller.min.js +1 -1
  795. package/web-types.json +17 -27
  796. package/core/core.cjs.js +0 -3080
  797. package/core/core.cjs.min.js +0 -1
  798. package/core/core.esm.js +0 -3055
  799. package/core/core.esm.min.js +0 -1
  800. package/core/package.json +0 -5
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var core = require('primereact/core');
6
+ var utils = require('primereact/utils');
7
+ var tooltip = require('primereact/tooltip');
7
8
 
8
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
10
 
@@ -100,6 +101,8 @@ function _typeof(obj) {
100
101
  function _possibleConstructorReturn(self, call) {
101
102
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
102
103
  return call;
104
+ } else if (call !== void 0) {
105
+ throw new TypeError("Derived constructors may only return object or undefined");
103
106
  }
104
107
 
105
108
  return _assertThisInitialized(self);
@@ -194,7 +197,7 @@ var InputTextareaComponent = /*#__PURE__*/function (_Component) {
194
197
  this.resize();
195
198
  }
196
199
 
197
- if (e.target.value.length > 0) core.DomHandler.addClass(e.target, 'p-filled');else core.DomHandler.removeClass(e.target, 'p-filled');
200
+ if (e.target.value.length > 0) utils.DomHandler.addClass(e.target, 'p-filled');else utils.DomHandler.removeClass(e.target, 'p-filled');
198
201
 
199
202
  if (this.props.onInput) {
200
203
  this.props.onInput(e);
@@ -205,7 +208,7 @@ var InputTextareaComponent = /*#__PURE__*/function (_Component) {
205
208
  value: function resize(initial) {
206
209
  var inputEl = this.elementRef && this.elementRef.current;
207
210
 
208
- if (inputEl && core.DomHandler.isVisible(inputEl)) {
211
+ if (inputEl && utils.DomHandler.isVisible(inputEl)) {
209
212
  if (!this.cachedScrollHeight) {
210
213
  this.cachedScrollHeight = inputEl.scrollHeight;
211
214
  inputEl.style.overflow = "hidden";
@@ -281,7 +284,7 @@ var InputTextareaComponent = /*#__PURE__*/function (_Component) {
281
284
  }, {
282
285
  key: "renderTooltip",
283
286
  value: function renderTooltip() {
284
- this.tooltip = core.tip({
287
+ this.tooltip = tooltip.tip({
285
288
  target: this.elementRef.current,
286
289
  content: this.props.tooltip,
287
290
  options: this.props.tooltipOptions
@@ -290,13 +293,13 @@ var InputTextareaComponent = /*#__PURE__*/function (_Component) {
290
293
  }, {
291
294
  key: "render",
292
295
  value: function render() {
293
- var className = core.classNames('p-inputtextarea p-inputtext p-component', {
296
+ var className = utils.classNames('p-inputtextarea p-inputtext p-component', {
294
297
  'p-disabled': this.props.disabled,
295
298
  'p-filled': this.isFilled(),
296
299
  'p-inputtextarea-resizable': this.props.autoResize
297
300
  }, this.props.className);
298
- var textareaProps = core.ObjectUtils.findDiffKeys(this.props, InputTextareaComponent.defaultProps);
299
- return /*#__PURE__*/React__default['default'].createElement("textarea", _extends({
301
+ var textareaProps = utils.ObjectUtils.findDiffKeys(this.props, InputTextareaComponent.defaultProps);
302
+ return /*#__PURE__*/React__default["default"].createElement("textarea", _extends({
300
303
  ref: this.elementRef
301
304
  }, textareaProps, {
302
305
  className: className,
@@ -319,8 +322,8 @@ _defineProperty(InputTextareaComponent, "defaultProps", {
319
322
  forwardRef: null
320
323
  });
321
324
 
322
- var InputTextarea = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
323
- return /*#__PURE__*/React__default['default'].createElement(InputTextareaComponent, _extends({
325
+ var InputTextarea = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
326
+ return /*#__PURE__*/React__default["default"].createElement(InputTextareaComponent, _extends({
324
327
  forwardRef: ref
325
328
  }, props));
326
329
  });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("primereact/core");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t);function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t}).apply(this,arguments)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?l(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function y(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?y(Object(o),!0).forEach((function(e){h(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var v=function(o){u(g,t.Component);var p,c,h,y,v,m=(p=g,c=b(),function(){var t,e=f(p);if(c){var o=f(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return a(this,t)});function g(e){var o;return i(this,g),(o=m.call(this,e)).onFocus=o.onFocus.bind(l(o)),o.onBlur=o.onBlur.bind(l(o)),o.onKeyUp=o.onKeyUp.bind(l(o)),o.onInput=o.onInput.bind(l(o)),o.elementRef=t.createRef(o.props.forwardRef),o}return h=g,(y=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?e.DomHandler.addClass(t.target,"p-filled"):e.DomHandler.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var o=this.elementRef&&this.elementRef.current;o&&e.DomHandler.isVisible(o)&&(this.cachedScrollHeight||(this.cachedScrollHeight=o.scrollHeight,o.style.overflow="hidden"),(this.cachedScrollHeight!==o.scrollHeight||t)&&(o.style.height="",o.style.height=o.scrollHeight+"px",parseFloat(o.style.height)>=parseFloat(o.style.maxHeight)?(o.style.overflowY="scroll",o.style.height=o.style.maxHeight):o.style.overflow="hidden",this.cachedScrollHeight=o.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(d({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=e.tip({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=e.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),o=e.ObjectUtils.findDiffKeys(this.props,g.defaultProps);return r.default.createElement("textarea",n({ref:this.elementRef},o,{className:t,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&s(h.prototype,y),v&&s(h,v),g}();h(v,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null}),exports.InputTextarea=r.default.forwardRef((function(t,e){return r.default.createElement(v,n({forwardRef:e},t))}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("primereact/utils"),o=require("primereact/tooltip");function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(t);function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},i.apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function y(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function d(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function b(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?d(Object(o),!0).forEach((function(e){y(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var m=function(r){c(O,t.Component);var u,a,y,d,m,g=(u=O,a=v(),function(){var t,e=h(u);if(a){var o=h(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return f(this,t)});function O(e){var o;return s(this,O),(o=g.call(this,e)).onFocus=o.onFocus.bind(p(o)),o.onBlur=o.onBlur.bind(p(o)),o.onKeyUp=o.onKeyUp.bind(p(o)),o.onInput=o.onInput.bind(p(o)),o.elementRef=t.createRef(o.props.forwardRef),o}return y=O,(d=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?e.DomHandler.addClass(t.target,"p-filled"):e.DomHandler.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var o=this.elementRef&&this.elementRef.current;o&&e.DomHandler.isVisible(o)&&(this.cachedScrollHeight||(this.cachedScrollHeight=o.scrollHeight,o.style.overflow="hidden"),(this.cachedScrollHeight!==o.scrollHeight||t)&&(o.style.height="",o.style.height=o.scrollHeight+"px",parseFloat(o.style.height)>=parseFloat(o.style.maxHeight)?(o.style.overflowY="scroll",o.style.height=o.style.maxHeight):o.style.overflow="hidden",this.cachedScrollHeight=o.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(b({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=o.tip({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=e.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),o=e.ObjectUtils.findDiffKeys(this.props,O.defaultProps);return n.default.createElement("textarea",i({ref:this.elementRef},o,{className:t,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&l(y.prototype,d),m&&l(y,m),O}();y(m,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null}),exports.InputTextarea=n.default.forwardRef((function(t,e){return n.default.createElement(m,i({forwardRef:e},t))}));
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import TooltipOptions from '../tooltip/tooltipoptions';
3
3
 
4
- export interface InputTextareaProps extends React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
4
+ export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'ref'> {
5
5
  autoResize?: boolean;
6
6
  tooltip?: string;
7
7
  tooltipOptions?: TooltipOptions;
@@ -1,5 +1,6 @@
1
1
  import React, { createRef, Component } from 'react';
2
- import { DomHandler, tip, classNames, ObjectUtils } from 'primereact/core';
2
+ import { DomHandler, classNames, ObjectUtils } from 'primereact/utils';
3
+ import { tip } from 'primereact/tooltip';
3
4
 
4
5
  function _extends() {
5
6
  _extends = Object.assign || function (target) {
@@ -92,6 +93,8 @@ function _typeof(obj) {
92
93
  function _possibleConstructorReturn(self, call) {
93
94
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
94
95
  return call;
96
+ } else if (call !== void 0) {
97
+ throw new TypeError("Derived constructors may only return object or undefined");
95
98
  }
96
99
 
97
100
  return _assertThisInitialized(self);
@@ -1 +1 @@
1
- import t,{createRef as e,Component as o}from"react";import{DomHandler as r,tip as n,classNames as i,ObjectUtils as s}from"primereact/core";function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t}).apply(this,arguments)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?c(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function v(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?v(Object(o),!0).forEach((function(e){b(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var O=function(a){f(j,o);var h,b,v,O,R,w=(h=j,b=g(),function(){var t,e=d(h);if(b){var o=d(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return y(this,t)});function j(t){var o;return p(this,j),(o=w.call(this,t)).onFocus=o.onFocus.bind(c(o)),o.onBlur=o.onBlur.bind(c(o)),o.onKeyUp=o.onKeyUp.bind(c(o)),o.onInput=o.onInput.bind(c(o)),o.elementRef=e(o.props.forwardRef),o}return v=j,(O=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?r.addClass(t.target,"p-filled"):r.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var e=this.elementRef&&this.elementRef.current;e&&r.isVisible(e)&&(this.cachedScrollHeight||(this.cachedScrollHeight=e.scrollHeight,e.style.overflow="hidden"),(this.cachedScrollHeight!==e.scrollHeight||t)&&(e.style.height="",e.style.height=e.scrollHeight+"px",parseFloat(e.style.height)>=parseFloat(e.style.maxHeight)?(e.style.overflowY="scroll",e.style.height=e.style.maxHeight):e.style.overflow="hidden",this.cachedScrollHeight=e.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(m({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=n({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var e=i("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),o=s.findDiffKeys(this.props,j.defaultProps);return t.createElement("textarea",l({ref:this.elementRef},o,{className:e,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&u(v.prototype,O),R&&u(v,R),j}();b(O,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null});var R=t.forwardRef((function(e,o){return t.createElement(O,l({forwardRef:o},e))}));export{R as InputTextarea};
1
+ import t,{createRef as e,Component as o}from"react";import{DomHandler as r,classNames as n,ObjectUtils as i}from"primereact/utils";import{tip as s}from"primereact/tooltip";function l(){return l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},l.apply(this,arguments)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function y(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function b(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function v(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){b(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var O=function(a){f(j,o);var h,b,m,O,R,w=(h=j,b=g(),function(){var t,e=d(h);if(b){var o=d(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return y(this,t)});function j(t){var o;return p(this,j),(o=w.call(this,t)).onFocus=o.onFocus.bind(c(o)),o.onBlur=o.onBlur.bind(c(o)),o.onKeyUp=o.onKeyUp.bind(c(o)),o.onInput=o.onInput.bind(c(o)),o.elementRef=e(o.props.forwardRef),o}return m=j,(O=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?r.addClass(t.target,"p-filled"):r.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var e=this.elementRef&&this.elementRef.current;e&&r.isVisible(e)&&(this.cachedScrollHeight||(this.cachedScrollHeight=e.scrollHeight,e.style.overflow="hidden"),(this.cachedScrollHeight!==e.scrollHeight||t)&&(e.style.height="",e.style.height=e.scrollHeight+"px",parseFloat(e.style.height)>=parseFloat(e.style.maxHeight)?(e.style.overflowY="scroll",e.style.height=e.style.maxHeight):e.style.overflow="hidden",this.cachedScrollHeight=e.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(v({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=s({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var e=n("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),o=i.findDiffKeys(this.props,j.defaultProps);return t.createElement("textarea",l({ref:this.elementRef},o,{className:e,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&u(m.prototype,O),R&&u(m,R),j}();b(O,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null});var R=t.forwardRef((function(e,o){return t.createElement(O,l({forwardRef:o},e))}));export{R as InputTextarea};
@@ -1,5 +1,5 @@
1
1
  this.primereact = this.primereact || {};
2
- this.primereact.inputtextarea = (function (exports, React, core) {
2
+ this.primereact.inputtextarea = (function (exports, React, utils, tooltip) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -97,6 +97,8 @@ this.primereact.inputtextarea = (function (exports, React, core) {
97
97
  function _possibleConstructorReturn(self, call) {
98
98
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
99
99
  return call;
100
+ } else if (call !== void 0) {
101
+ throw new TypeError("Derived constructors may only return object or undefined");
100
102
  }
101
103
 
102
104
  return _assertThisInitialized(self);
@@ -191,7 +193,7 @@ this.primereact.inputtextarea = (function (exports, React, core) {
191
193
  this.resize();
192
194
  }
193
195
 
194
- if (e.target.value.length > 0) core.DomHandler.addClass(e.target, 'p-filled');else core.DomHandler.removeClass(e.target, 'p-filled');
196
+ if (e.target.value.length > 0) utils.DomHandler.addClass(e.target, 'p-filled');else utils.DomHandler.removeClass(e.target, 'p-filled');
195
197
 
196
198
  if (this.props.onInput) {
197
199
  this.props.onInput(e);
@@ -202,7 +204,7 @@ this.primereact.inputtextarea = (function (exports, React, core) {
202
204
  value: function resize(initial) {
203
205
  var inputEl = this.elementRef && this.elementRef.current;
204
206
 
205
- if (inputEl && core.DomHandler.isVisible(inputEl)) {
207
+ if (inputEl && utils.DomHandler.isVisible(inputEl)) {
206
208
  if (!this.cachedScrollHeight) {
207
209
  this.cachedScrollHeight = inputEl.scrollHeight;
208
210
  inputEl.style.overflow = "hidden";
@@ -278,7 +280,7 @@ this.primereact.inputtextarea = (function (exports, React, core) {
278
280
  }, {
279
281
  key: "renderTooltip",
280
282
  value: function renderTooltip() {
281
- this.tooltip = core.tip({
283
+ this.tooltip = tooltip.tip({
282
284
  target: this.elementRef.current,
283
285
  content: this.props.tooltip,
284
286
  options: this.props.tooltipOptions
@@ -287,13 +289,13 @@ this.primereact.inputtextarea = (function (exports, React, core) {
287
289
  }, {
288
290
  key: "render",
289
291
  value: function render() {
290
- var className = core.classNames('p-inputtextarea p-inputtext p-component', {
292
+ var className = utils.classNames('p-inputtextarea p-inputtext p-component', {
291
293
  'p-disabled': this.props.disabled,
292
294
  'p-filled': this.isFilled(),
293
295
  'p-inputtextarea-resizable': this.props.autoResize
294
296
  }, this.props.className);
295
- var textareaProps = core.ObjectUtils.findDiffKeys(this.props, InputTextareaComponent.defaultProps);
296
- return /*#__PURE__*/React__default['default'].createElement("textarea", _extends({
297
+ var textareaProps = utils.ObjectUtils.findDiffKeys(this.props, InputTextareaComponent.defaultProps);
298
+ return /*#__PURE__*/React__default["default"].createElement("textarea", _extends({
297
299
  ref: this.elementRef
298
300
  }, textareaProps, {
299
301
  className: className,
@@ -316,8 +318,8 @@ this.primereact.inputtextarea = (function (exports, React, core) {
316
318
  forwardRef: null
317
319
  });
318
320
 
319
- var InputTextarea = /*#__PURE__*/React__default['default'].forwardRef(function (props, ref) {
320
- return /*#__PURE__*/React__default['default'].createElement(InputTextareaComponent, _extends({
321
+ var InputTextarea = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
322
+ return /*#__PURE__*/React__default["default"].createElement(InputTextareaComponent, _extends({
321
323
  forwardRef: ref
322
324
  }, props));
323
325
  });
@@ -328,4 +330,4 @@ this.primereact.inputtextarea = (function (exports, React, core) {
328
330
 
329
331
  return exports;
330
332
 
331
- }({}, React, primereact.core));
333
+ })({}, React, primereact.utils, primereact.tooltip);
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.inputtextarea=function(t,e,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=r(e);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t}).apply(this,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?p(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function d(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function b(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?d(Object(o),!0).forEach((function(e){y(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var v=function(t){c(g,t);var r,u,a,y,d,v=(r=g,u=m(),function(){var t,e=h(r);if(u){var o=h(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return f(this,t)});function g(t){var o;return s(this,g),(o=v.call(this,t)).onFocus=o.onFocus.bind(p(o)),o.onBlur=o.onBlur.bind(p(o)),o.onKeyUp=o.onKeyUp.bind(p(o)),o.onInput=o.onInput.bind(p(o)),o.elementRef=e.createRef(o.props.forwardRef),o}return a=g,(y=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?o.DomHandler.addClass(t.target,"p-filled"):o.DomHandler.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var e=this.elementRef&&this.elementRef.current;e&&o.DomHandler.isVisible(e)&&(this.cachedScrollHeight||(this.cachedScrollHeight=e.scrollHeight,e.style.overflow="hidden"),(this.cachedScrollHeight!==e.scrollHeight||t)&&(e.style.height="",e.style.height=e.scrollHeight+"px",parseFloat(e.style.height)>=parseFloat(e.style.maxHeight)?(e.style.overflowY="scroll",e.style.height=e.style.maxHeight):e.style.overflow="hidden",this.cachedScrollHeight=e.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(b({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=o.tip({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=o.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),e=o.ObjectUtils.findDiffKeys(this.props,g.defaultProps);return n.default.createElement("textarea",i({ref:this.elementRef},e,{className:t,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&l(a.prototype,y),d&&l(a,d),g}(e.Component);return y(v,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null}),t.InputTextarea=n.default.forwardRef((function(t,e){return n.default.createElement(v,i({forwardRef:e},t))})),Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.core);
1
+ this.primereact=this.primereact||{},this.primereact.inputtextarea=function(t,e,o,r){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=n(e);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},s.apply(this,arguments)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function b(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function m(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?b(Object(o),!0).forEach((function(e){d(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var g=function(t){a(O,t);var n,c,f,d,b,g=(n=O,c=v(),function(){var t,e=y(n);if(c){var o=y(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return h(this,t)});function O(t){var o;return l(this,O),(o=g.call(this,t)).onFocus=o.onFocus.bind(u(o)),o.onBlur=o.onBlur.bind(u(o)),o.onKeyUp=o.onKeyUp.bind(u(o)),o.onInput=o.onInput.bind(u(o)),o.elementRef=e.createRef(o.props.forwardRef),o}return f=O,(d=[{key:"onFocus",value:function(t){this.props.autoResize&&this.resize(),this.props.onFocus&&this.props.onFocus(t)}},{key:"onBlur",value:function(t){this.props.autoResize&&this.resize(),this.props.onBlur&&this.props.onBlur(t)}},{key:"onKeyUp",value:function(t){this.props.autoResize&&this.resize(),this.props.onKeyUp&&this.props.onKeyUp(t)}},{key:"onInput",value:function(t){this.props.autoResize&&this.resize(),t.target.value.length>0?o.DomHandler.addClass(t.target,"p-filled"):o.DomHandler.removeClass(t.target,"p-filled"),this.props.onInput&&this.props.onInput(t)}},{key:"resize",value:function(t){var e=this.elementRef&&this.elementRef.current;e&&o.DomHandler.isVisible(e)&&(this.cachedScrollHeight||(this.cachedScrollHeight=e.scrollHeight,e.style.overflow="hidden"),(this.cachedScrollHeight!==e.scrollHeight||t)&&(e.style.height="",e.style.height=e.scrollHeight+"px",parseFloat(e.style.height)>=parseFloat(e.style.maxHeight)?(e.style.overflowY="scroll",e.style.height=e.style.maxHeight):e.style.overflow="hidden",this.cachedScrollHeight=e.scrollHeight))}},{key:"isFilled",value:function(){return null!=this.props.value&&this.props.value.toString().length>0||null!=this.props.defaultValue&&this.props.defaultValue.toString().length>0||this.elementRef&&this.elementRef.current&&this.elementRef.current.value.toString().length>0}},{key:"updateForwardRef",value:function(){var t=this.props.forwardRef;t&&("function"==typeof t?t(this.elementRef.current):t.current=this.elementRef.current)}},{key:"componentDidMount",value:function(){this.updateForwardRef(),this.props.tooltip&&this.renderTooltip(),this.props.autoResize&&this.resize(!0)}},{key:"componentDidUpdate",value:function(t){t.tooltip===this.props.tooltip&&t.tooltipOptions===this.props.tooltipOptions||(this.tooltip?this.tooltip.update(m({content:this.props.tooltip},this.props.tooltipOptions||{})):this.renderTooltip()),this.props.autoResize&&this.resize(!0)}},{key:"componentWillUnmount",value:function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null)}},{key:"renderTooltip",value:function(){this.tooltip=r.tip({target:this.elementRef.current,content:this.props.tooltip,options:this.props.tooltipOptions})}},{key:"render",value:function(){var t=o.classNames("p-inputtextarea p-inputtext p-component",{"p-disabled":this.props.disabled,"p-filled":this.isFilled(),"p-inputtextarea-resizable":this.props.autoResize},this.props.className),e=o.ObjectUtils.findDiffKeys(this.props,O.defaultProps);return i.default.createElement("textarea",s({ref:this.elementRef},e,{className:t,onFocus:this.onFocus,onBlur:this.onBlur,onKeyUp:this.onKeyUp,onInput:this.onInput}))}}])&&p(f.prototype,d),b&&p(f,b),O}(e.Component);return d(g,"defaultProps",{autoResize:!1,tooltip:null,tooltipOptions:null,onInput:null,forwardRef:null}),t.InputTextarea=i.default.forwardRef((function(t,e){return i.default.createElement(g,s({forwardRef:e},t))})),Object.defineProperty(t,"__esModule",{value:!0}),t}({},React,primereact.utils,primereact.tooltip);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var core = require('primereact/core');
5
+ var utils = require('primereact/utils');
6
6
 
7
7
  function _classCallCheck(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
@@ -54,20 +54,20 @@ var KeyFilter = /*#__PURE__*/function () {
54
54
  /* eslint-enable */
55
55
  function isNavKeyPress(e) {
56
56
  var k = e.keyCode;
57
- k = core.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
57
+ k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
58
58
  return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
59
59
  }
60
60
  }, {
61
61
  key: "isSpecialKey",
62
62
  value: function isSpecialKey(e) {
63
63
  var k = e.keyCode;
64
- return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || core.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
64
+ return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || utils.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
65
65
  }
66
66
  }, {
67
67
  key: "getKey",
68
68
  value: function getKey(e) {
69
69
  var k = e.keyCode || e.charCode;
70
- return core.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
70
+ return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
71
71
  }
72
72
  }, {
73
73
  key: "getCharCode",
@@ -82,7 +82,7 @@ var KeyFilter = /*#__PURE__*/function () {
82
82
  }
83
83
 
84
84
  var regex = KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
85
- var browser = core.DomHandler.getBrowser();
85
+ var browser = utils.DomHandler.getBrowser();
86
86
 
87
87
  if (e.ctrlKey || e.altKey) {
88
88
  return;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("primereact/core");function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=function(){function t(){r(this,t)}var n,i,o;return n=t,o=[{key:"isNavKeyPress",value:function(r){var a=r.keyCode;return(a=e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a)>=33&&a<=40||a===t.KEYS.RETURN||a===t.KEYS.TAB||a===t.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var a=r.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||e.DomHandler.getBrowser().opera&&!r.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(r){var a=r.keyCode||r.charCode;return e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,a,n){if(!n){var i=t.DEFAULT_MASKS[a]?t.DEFAULT_MASKS[a]:a,o=e.DomHandler.getBrowser();if(!r.ctrlKey&&!r.altKey){var l=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||l===t.KEYS.BACKSPACE||l===t.KEYS.DELETE&&0===r.charCode)){var u=this.getCharCode(r),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(r)&&s)&&(i.test(s)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&a(n.prototype,i),o&&a(n,o),t}();t(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),t(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),t(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),exports.KeyFilter=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("primereact/utils");function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=function(){function t(){r(this,t)}var n,i,o;return n=t,o=[{key:"isNavKeyPress",value:function(r){var a=r.keyCode;return(a=e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a)>=33&&a<=40||a===t.KEYS.RETURN||a===t.KEYS.TAB||a===t.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var a=r.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||e.DomHandler.getBrowser().opera&&!r.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(r){var a=r.keyCode||r.charCode;return e.DomHandler.getBrowser().safari&&t.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,a,n){if(!n){var i=t.DEFAULT_MASKS[a]?t.DEFAULT_MASKS[a]:a,o=e.DomHandler.getBrowser();if(!r.ctrlKey&&!r.altKey){var l=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||l===t.KEYS.BACKSPACE||l===t.KEYS.DELETE&&0===r.charCode)){var u=this.getCharCode(r),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(r)&&s)&&(i.test(s)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&a(n.prototype,i),o&&a(n,o),t}();t(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),t(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),t(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),exports.KeyFilter=n;
@@ -1,4 +1,4 @@
1
- import { DomHandler } from 'primereact/core';
1
+ import { DomHandler } from 'primereact/utils';
2
2
 
3
3
  function _classCallCheck(instance, Constructor) {
4
4
  if (!(instance instanceof Constructor)) {
@@ -1 +1 @@
1
- import{DomHandler as e}from"primereact/core";function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=function(){function t(){r(this,t)}var n,i,o;return n=t,o=[{key:"isNavKeyPress",value:function(r){var a=r.keyCode;return(a=e.getBrowser().safari&&t.SAFARI_KEYS[a]||a)>=33&&a<=40||a===t.KEYS.RETURN||a===t.KEYS.TAB||a===t.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var a=r.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||e.getBrowser().opera&&!r.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(r){var a=r.keyCode||r.charCode;return e.getBrowser().safari&&t.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,a,n){if(!n){var i=t.DEFAULT_MASKS[a]?t.DEFAULT_MASKS[a]:a,o=e.getBrowser();if(!r.ctrlKey&&!r.altKey){var u=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||u===t.KEYS.BACKSPACE||u===t.KEYS.DELETE&&0===r.charCode)){var l=this.getCharCode(r),f=String.fromCharCode(l);(!o.mozilla||!this.isSpecialKey(r)&&f)&&(i.test(f)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&a(n.prototype,i),o&&a(n,o),t}();t(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),t(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),t(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35});export{n as KeyFilter};
1
+ import{DomHandler as e}from"primereact/utils";function r(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var n=function(){function t(){r(this,t)}var n,i,o;return n=t,o=[{key:"isNavKeyPress",value:function(r){var a=r.keyCode;return(a=e.getBrowser().safari&&t.SAFARI_KEYS[a]||a)>=33&&a<=40||a===t.KEYS.RETURN||a===t.KEYS.TAB||a===t.KEYS.ESC}},{key:"isSpecialKey",value:function(r){var a=r.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||e.getBrowser().opera&&!r.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(r){var a=r.keyCode||r.charCode;return e.getBrowser().safari&&t.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(r,a,n){if(!n){var i=t.DEFAULT_MASKS[a]?t.DEFAULT_MASKS[a]:a,o=e.getBrowser();if(!r.ctrlKey&&!r.altKey){var u=this.getKey(r);if(!o.mozilla||!(this.isNavKeyPress(r)||u===t.KEYS.BACKSPACE||u===t.KEYS.DELETE&&0===r.charCode)){var l=this.getCharCode(r),s=String.fromCharCode(l);(!o.mozilla||!this.isSpecialKey(r)&&s)&&(i.test(s)||r.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&a(n.prototype,i),o&&a(n,o),t}();t(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),t(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),t(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35});export{n as KeyFilter};
@@ -1,5 +1,5 @@
1
1
  this.primereact = this.primereact || {};
2
- this.primereact.keyfilter = (function (exports, core) {
2
+ this.primereact.keyfilter = (function (exports, utils) {
3
3
  'use strict';
4
4
 
5
5
  function _classCallCheck(instance, Constructor) {
@@ -52,20 +52,20 @@ this.primereact.keyfilter = (function (exports, core) {
52
52
  /* eslint-enable */
53
53
  function isNavKeyPress(e) {
54
54
  var k = e.keyCode;
55
- k = core.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
55
+ k = utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
56
56
  return k >= 33 && k <= 40 || k === KeyFilter.KEYS.RETURN || k === KeyFilter.KEYS.TAB || k === KeyFilter.KEYS.ESC;
57
57
  }
58
58
  }, {
59
59
  key: "isSpecialKey",
60
60
  value: function isSpecialKey(e) {
61
61
  var k = e.keyCode;
62
- return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || core.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
62
+ return k === 9 || k === 13 || k === 27 || k === 16 || k === 17 || k >= 18 && k <= 20 || utils.DomHandler.getBrowser().opera && !e.shiftKey && (k === 8 || k >= 33 && k <= 35 || k >= 36 && k <= 39 || k >= 44 && k <= 45);
63
63
  }
64
64
  }, {
65
65
  key: "getKey",
66
66
  value: function getKey(e) {
67
67
  var k = e.keyCode || e.charCode;
68
- return core.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
68
+ return utils.DomHandler.getBrowser().safari ? KeyFilter.SAFARI_KEYS[k] || k : k;
69
69
  }
70
70
  }, {
71
71
  key: "getCharCode",
@@ -80,7 +80,7 @@ this.primereact.keyfilter = (function (exports, core) {
80
80
  }
81
81
 
82
82
  var regex = KeyFilter.DEFAULT_MASKS[keyfilter] ? KeyFilter.DEFAULT_MASKS[keyfilter] : keyfilter;
83
- var browser = core.DomHandler.getBrowser();
83
+ var browser = utils.DomHandler.getBrowser();
84
84
 
85
85
  if (e.ctrlKey || e.altKey) {
86
86
  return;
@@ -167,4 +167,4 @@ this.primereact.keyfilter = (function (exports, core) {
167
167
 
168
168
  return exports;
169
169
 
170
- }({}, primereact.core));
170
+ })({}, primereact.utils);
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.keyfilter=function(e,r){"use strict";function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function t(e,r){for(var a=0;a<r.length;a++){var t=r[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function n(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var i=function(){function e(){a(this,e)}var n,i,o;return n=e,o=[{key:"isNavKeyPress",value:function(a){var t=a.keyCode;return(t=r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[t]||t)>=33&&t<=40||t===e.KEYS.RETURN||t===e.KEYS.TAB||t===e.KEYS.ESC}},{key:"isSpecialKey",value:function(e){var a=e.keyCode;return 9===a||13===a||27===a||16===a||17===a||a>=18&&a<=20||r.DomHandler.getBrowser().opera&&!e.shiftKey&&(8===a||a>=33&&a<=35||a>=36&&a<=39||a>=44&&a<=45)}},{key:"getKey",value:function(a){var t=a.keyCode||a.charCode;return r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[t]||t}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(a,t,n){if(!n){var i=e.DEFAULT_MASKS[t]?e.DEFAULT_MASKS[t]:t,o=r.DomHandler.getBrowser();if(!a.ctrlKey&&!a.altKey){var l=this.getKey(a);if(!o.mozilla||!(this.isNavKeyPress(a)||l===e.KEYS.BACKSPACE||l===e.KEYS.DELETE&&0===a.charCode)){var u=this.getCharCode(a),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(a)&&s)&&(i.test(s)||a.preventDefault())}}}}},{key:"validate",value:function(e,r){var a=e.target.value,t=!0;return a&&!r.test(a)&&(t=!1),t}}],(i=null)&&t(n.prototype,i),o&&t(n,o),e}();return n(i,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),n(i,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),n(i,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),e.KeyFilter=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({},primereact.core);
1
+ this.primereact=this.primereact||{},this.primereact.keyfilter=function(e,r){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var n=function(){function e(){t(this,e)}var i,n,o;return i=e,o=[{key:"isNavKeyPress",value:function(t){var a=t.keyCode;return(a=r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[a]||a)>=33&&a<=40||a===e.KEYS.RETURN||a===e.KEYS.TAB||a===e.KEYS.ESC}},{key:"isSpecialKey",value:function(e){var t=e.keyCode;return 9===t||13===t||27===t||16===t||17===t||t>=18&&t<=20||r.DomHandler.getBrowser().opera&&!e.shiftKey&&(8===t||t>=33&&t<=35||t>=36&&t<=39||t>=44&&t<=45)}},{key:"getKey",value:function(t){var a=t.keyCode||t.charCode;return r.DomHandler.getBrowser().safari&&e.SAFARI_KEYS[a]||a}},{key:"getCharCode",value:function(e){return e.charCode||e.keyCode||e.which}},{key:"onKeyPress",value:function(t,a,i){if(!i){var n=e.DEFAULT_MASKS[a]?e.DEFAULT_MASKS[a]:a,o=r.DomHandler.getBrowser();if(!t.ctrlKey&&!t.altKey){var l=this.getKey(t);if(!o.mozilla||!(this.isNavKeyPress(t)||l===e.KEYS.BACKSPACE||l===e.KEYS.DELETE&&0===t.charCode)){var u=this.getCharCode(t),s=String.fromCharCode(u);(!o.mozilla||!this.isSpecialKey(t)&&s)&&(n.test(s)||t.preventDefault())}}}}},{key:"validate",value:function(e,r){var t=e.target.value,a=!0;return t&&!r.test(t)&&(a=!1),a}}],(n=null)&&a(i.prototype,n),o&&a(i,o),e}();return i(n,"DEFAULT_MASKS",{pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i}),i(n,"KEYS",{TAB:9,RETURN:13,ESC:27,BACKSPACE:8,DELETE:46}),i(n,"SAFARI_KEYS",{63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35}),e.KeyFilter=n,Object.defineProperty(e,"__esModule",{value:!0}),e}({},primereact.utils);
package/knob/knob.cjs.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var core = require('primereact/core');
6
+ var utils = require('primereact/utils');
7
7
 
8
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
9
 
@@ -82,6 +82,8 @@ function _typeof(obj) {
82
82
  function _possibleConstructorReturn(self, call) {
83
83
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
84
84
  return call;
85
+ } else if (call !== void 0) {
86
+ throw new TypeError("Derived constructors may only return object or undefined");
85
87
  }
86
88
 
87
89
  return _assertThisInitialized(self);
@@ -318,10 +320,10 @@ var Knob = /*#__PURE__*/function (_Component) {
318
320
  value: function render() {
319
321
  var _this2 = this;
320
322
 
321
- var containerClassName = core.classNames('p-knob p-component', {
323
+ var containerClassName = utils.classNames('p-knob p-component', {
322
324
  'p-disabled': this.props.disabled
323
325
  }, this.props.className);
324
- var text = this.props.showValue && /*#__PURE__*/React__default['default'].createElement("text", {
326
+ var text = this.props.showValue && /*#__PURE__*/React__default["default"].createElement("text", {
325
327
  x: 50,
326
328
  y: 57,
327
329
  textAnchor: 'middle',
@@ -329,14 +331,14 @@ var Knob = /*#__PURE__*/function (_Component) {
329
331
  className: 'p-knob-text',
330
332
  name: this.props.name
331
333
  }, this.valueToDisplay());
332
- return /*#__PURE__*/React__default['default'].createElement("div", {
334
+ return /*#__PURE__*/React__default["default"].createElement("div", {
333
335
  id: this.props.id,
334
336
  className: containerClassName,
335
337
  style: this.props.style,
336
338
  ref: function ref(el) {
337
339
  return _this2.element = el;
338
340
  }
339
- }, /*#__PURE__*/React__default['default'].createElement("svg", {
341
+ }, /*#__PURE__*/React__default["default"].createElement("svg", {
340
342
  viewBox: "0 0 100 100",
341
343
  width: this.props.size,
342
344
  height: this.props.size,
@@ -345,12 +347,12 @@ var Knob = /*#__PURE__*/function (_Component) {
345
347
  onMouseUp: this.onMouseUp,
346
348
  onTouchStart: this.onTouchStart,
347
349
  onTouchEnd: this.onTouchEnd
348
- }, /*#__PURE__*/React__default['default'].createElement("path", {
350
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
349
351
  d: this.rangePath(),
350
352
  strokeWidth: this.props.strokeWidth,
351
353
  stroke: this.props.rangeColor,
352
354
  className: 'p-knob-range'
353
- }), /*#__PURE__*/React__default['default'].createElement("path", {
355
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
354
356
  d: this.valuePath(),
355
357
  strokeWidth: this.props.strokeWidth,
356
358
  stroke: this.props.valueColor,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/core");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?a(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var d,f,v,m=function(n){u(y,e.Component);var r,h,d,f,v,m=(r=y,h=p(),function(){var e,t=c(r);if(h){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function y(e){var t;return o(this,y),(t=m.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(a(t)),t.onMouseDown=t.onMouseDown.bind(a(t)),t.onMouseUp=t.onMouseUp.bind(a(t)),t.onTouchStart=t.onTouchStart.bind(a(t)),t.onTouchEnd=t.onTouchEnd.bind(a(t)),t.onMouseMove=t.onMouseMove.bind(a(t)),t.onTouchMove=t.onTouchMove.bind(a(t)),t}return d=y,(f=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var e=this,n=t.classNames("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),o=this.props.showValue&&i.default.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return i.default.createElement("div",{id:this.props.id,className:n,style:this.props.style,ref:function(t){return e.element=t}},i.default.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},i.default.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),i.default.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),o))}}])&&s(d.prototype,f),v&&s(d,v),y}();v={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(f="defaultProps")in(d=m)?Object.defineProperty(d,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[f]=v,exports.Knob=m;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(e);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function l(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var d,f,v,m=function(n){u(y,e.Component);var r,h,d,f,v,m=(r=y,h=p(),function(){var e,t=c(r);if(h){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function y(e){var t;return o(this,y),(t=m.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(a(t)),t.onMouseDown=t.onMouseDown.bind(a(t)),t.onMouseUp=t.onMouseUp.bind(a(t)),t.onTouchStart=t.onTouchStart.bind(a(t)),t.onTouchEnd=t.onTouchEnd.bind(a(t)),t.onMouseMove=t.onMouseMove.bind(a(t)),t.onTouchMove=t.onTouchMove.bind(a(t)),t}return d=y,(f=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var e=this,n=t.classNames("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),o=this.props.showValue&&i.default.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return i.default.createElement("div",{id:this.props.id,className:n,style:this.props.style,ref:function(t){return e.element=t}},i.default.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},i.default.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),i.default.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),o))}}])&&s(d.prototype,f),v&&s(d,v),y}();v={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(f="defaultProps")in(d=m)?Object.defineProperty(d,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[f]=v,exports.Knob=m;
package/knob/knob.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { classNames } from 'primereact/core';
2
+ import { classNames } from 'primereact/utils';
3
3
 
4
4
  function _classCallCheck(instance, Constructor) {
5
5
  if (!(instance instanceof Constructor)) {
@@ -74,6 +74,8 @@ function _typeof(obj) {
74
74
  function _possibleConstructorReturn(self, call) {
75
75
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
76
76
  return call;
77
+ } else if (call !== void 0) {
78
+ throw new TypeError("Derived constructors may only return object or undefined");
77
79
  }
78
80
 
79
81
  return _assertThisInitialized(self);
@@ -1 +1 @@
1
- import e,{Component as t}from"react";import{classNames as n}from"primereact/core";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?s(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var p,d,v,f=function(a){r(y,t);var u,p,d,v,f,m=(u=y,p=c(),function(){var e,t=l(u);if(p){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(e){var t;return i(this,y),(t=m.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(s(t)),t.onMouseDown=t.onMouseDown.bind(s(t)),t.onMouseUp=t.onMouseUp.bind(s(t)),t.onTouchStart=t.onTouchStart.bind(s(t)),t.onTouchEnd=t.onTouchEnd.bind(s(t)),t.onMouseMove=t.onMouseMove.bind(s(t)),t.onTouchMove=t.onTouchMove.bind(s(t)),t}return d=y,(v=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var t=this,i=n("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),o=this.props.showValue&&e.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return e.createElement("div",{id:this.props.id,className:i,style:this.props.style,ref:function(e){return t.element=e}},e.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},e.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),e.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),o))}}])&&o(d.prototype,v),f&&o(d,f),y}();v={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(d="defaultProps")in(p=f)?Object.defineProperty(p,d,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[d]=v;export{f as Knob};
1
+ import e,{Component as t}from"react";import{classNames as n}from"primereact/utils";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}var p,d,v,f=function(a){r(y,t);var u,p,d,v,f,m=(u=y,p=c(),function(){var e,t=l(u);if(p){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(e){var t;return i(this,y),(t=m.call(this,e)).state={},t.radius=40,t.midX=50,t.midY=50,t.minRadians=4*Math.PI/3,t.maxRadians=-Math.PI/3,t.onClick=t.onClick.bind(s(t)),t.onMouseDown=t.onMouseDown.bind(s(t)),t.onMouseUp=t.onMouseUp.bind(s(t)),t.onTouchStart=t.onTouchStart.bind(s(t)),t.onTouchEnd=t.onTouchEnd.bind(s(t)),t.onMouseMove=t.onMouseMove.bind(s(t)),t.onTouchMove=t.onTouchMove.bind(s(t)),t}return d=y,(v=[{key:"updateValue",value:function(e,t){var n=Math.atan2(this.props.size/2-t,e-this.props.size/2),i=-Math.PI/2-Math.PI/6;this.updateModel(n,i)}},{key:"updateModel",value:function(e,t){var n;if(e>this.maxRadians)n=this.mapRange(e,this.minRadians,this.maxRadians,this.props.min,this.props.max);else{if(!(e<t))return;n=this.mapRange(e+2*Math.PI,this.minRadians,this.maxRadians,this.props.min,this.props.max)}if(this.props.onChange){var i=Math.round((n-this.props.min)/this.props.step)*this.props.step+this.props.min;this.props.onChange({value:i})}}},{key:"mapRange",value:function(e,t,n,i,o){return(e-t)*(o-i)/(n-t)+i}},{key:"onClick",value:function(e){this.props.disabled||this.props.readOnly||this.updateValue(e.nativeEvent.offsetX,e.nativeEvent.offsetY)}},{key:"onMouseDown",value:function(e){this.props.disabled||this.props.readOnly||(this.windowMouseMoveListener=this.onMouseMove,this.windowMouseUpListener=this.onMouseUp,window.addEventListener("mousemove",this.windowMouseMoveListener),window.addEventListener("mouseup",this.windowMouseUpListener),e.preventDefault())}},{key:"onMouseUp",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("mousemove",this.windowMouseMoveListener),window.removeEventListener("mouseup",this.windowMouseUpListener),this.windowMouseMoveListener=null,this.windowMouseUpListener=null,e.preventDefault())}},{key:"onTouchStart",value:function(e){this.props.disabled||this.props.readOnly||(this.windowTouchMoveListener=this.onTouchMove,this.windowTouchEndListener=this.onTouchEnd,window.addEventListener("touchmove",this.windowTouchMoveListener,{passive:!1,cancelable:!1}),window.addEventListener("touchend",this.windowTouchEndListener))}},{key:"onTouchEnd",value:function(e){this.props.disabled||this.props.readOnly||(window.removeEventListener("touchmove",this.windowTouchMoveListener),window.removeEventListener("touchend",this.windowTouchEndListener),this.windowTouchMoveListener=null,this.windowTouchEndListener=null)}},{key:"onMouseMove",value:function(e){this.props.disabled||this.props.readOnly||(this.updateValue(e.offsetX,e.offsetY),e.preventDefault())}},{key:"onTouchMove",value:function(e){if(!this.props.disabled&&!this.props.readOnly&&1===e.touches.length){var t=this.element.getBoundingClientRect(),n=e.targetTouches.item(0);this.updateValue(n.clientX-t.left,n.clientY-t.top),e.preventDefault()}}},{key:"rangePath",value:function(){return"M ".concat(this.minX()," ").concat(this.minY()," A ").concat(this.radius," ").concat(this.radius," 0 1 1 ").concat(this.maxX()," ").concat(this.maxY())}},{key:"valuePath",value:function(){return"M ".concat(this.zeroX()," ").concat(this.zeroY()," A ").concat(this.radius," ").concat(this.radius," 0 ").concat(this.largeArc()," ").concat(this.sweep()," ").concat(this.valueX()," ").concat(this.valueY())}},{key:"zeroRadians",value:function(){return this.mapRange(this.props.min>0&&this.props.max>0?this.props.min:0,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"valueRadians",value:function(){return this.mapRange(this.props.value,this.props.min,this.props.max,this.minRadians,this.maxRadians)}},{key:"minX",value:function(){return this.midX+Math.cos(this.minRadians)*this.radius}},{key:"minY",value:function(){return this.midY-Math.sin(this.minRadians)*this.radius}},{key:"maxX",value:function(){return this.midX+Math.cos(this.maxRadians)*this.radius}},{key:"maxY",value:function(){return this.midY-Math.sin(this.maxRadians)*this.radius}},{key:"zeroX",value:function(){return this.midX+Math.cos(this.zeroRadians())*this.radius}},{key:"zeroY",value:function(){return this.midY-Math.sin(this.zeroRadians())*this.radius}},{key:"valueX",value:function(){return this.midX+Math.cos(this.valueRadians())*this.radius}},{key:"valueY",value:function(){return this.midY-Math.sin(this.valueRadians())*this.radius}},{key:"largeArc",value:function(){return Math.abs(this.zeroRadians()-this.valueRadians())<Math.PI?0:1}},{key:"sweep",value:function(){return this.valueRadians()>this.zeroRadians()?0:1}},{key:"valueToDisplay",value:function(){return this.props.valueTemplate.replace("{value}",this.props.value.toString())}},{key:"render",value:function(){var t=this,i=n("p-knob p-component",{"p-disabled":this.props.disabled},this.props.className),o=this.props.showValue&&e.createElement("text",{x:50,y:57,textAnchor:"middle",fill:this.props.textColor,className:"p-knob-text",name:this.props.name},this.valueToDisplay());return e.createElement("div",{id:this.props.id,className:i,style:this.props.style,ref:function(e){return t.element=e}},e.createElement("svg",{viewBox:"0 0 100 100",width:this.props.size,height:this.props.size,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchEnd:this.onTouchEnd},e.createElement("path",{d:this.rangePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.rangeColor,className:"p-knob-range"}),e.createElement("path",{d:this.valuePath(),strokeWidth:this.props.strokeWidth,stroke:this.props.valueColor,className:"p-knob-value"}),o))}}])&&o(d.prototype,v),f&&o(d,f),y}();v={id:null,style:null,className:null,value:null,size:100,disabled:!1,readOnly:!1,showValue:!0,step:1,min:0,max:100,strokeWidth:14,name:null,valueColor:"var(--primary-color, Black)",rangeColor:"var(--surface-d, LightGray)",textColor:"var(--text-color-secondary, Black)",valueTemplate:"{value}",onChange:null},(d="defaultProps")in(p=f)?Object.defineProperty(p,d,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[d]=v;export{f as Knob};