primereact 10.0.0 → 10.0.2

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 (483) hide show
  1. package/README.md +1 -1
  2. package/accordion/accordion.esm.js +0 -1
  3. package/api/api.esm.js +0 -1
  4. package/autocomplete/autocomplete.esm.js +8 -7
  5. package/autocomplete/autocomplete.esm.min.js +1 -1
  6. package/avatar/avatar.esm.js +0 -1
  7. package/avatargroup/avatargroup.esm.js +0 -1
  8. package/badge/badge.esm.js +0 -1
  9. package/blockui/blockui.esm.js +3 -1
  10. package/blockui/blockui.esm.min.js +1 -1
  11. package/breadcrumb/breadcrumb.esm.js +0 -1
  12. package/button/button.esm.js +0 -1
  13. package/calendar/calendar.esm.js +2 -1
  14. package/calendar/calendar.esm.min.js +1 -1
  15. package/card/card.esm.js +0 -1
  16. package/carousel/carousel.esm.js +7 -8
  17. package/carousel/carousel.esm.min.js +1 -1
  18. package/cascadeselect/cascadeselect.esm.js +0 -1
  19. package/chart/chart.esm.js +0 -1
  20. package/checkbox/checkbox.esm.js +0 -1
  21. package/chip/chip.esm.js +0 -1
  22. package/chips/chips.esm.js +0 -1
  23. package/colorpicker/colorpicker.esm.js +0 -1
  24. package/column/column.esm.js +0 -1
  25. package/columngroup/columngroup.esm.js +0 -1
  26. package/componentbase/componentbase.cjs.js +12 -7
  27. package/componentbase/componentbase.cjs.min.js +1 -1
  28. package/componentbase/componentbase.esm.js +23 -13
  29. package/componentbase/componentbase.esm.min.js +1 -1
  30. package/componentbase/componentbase.js +12 -7
  31. package/componentbase/componentbase.min.js +1 -1
  32. package/confirmdialog/confirmdialog.esm.js +0 -1
  33. package/confirmpopup/confirmpopup.esm.js +0 -1
  34. package/contextmenu/contextmenu.esm.js +0 -1
  35. package/core/core.js +12 -7
  36. package/core/core.min.js +1 -1
  37. package/csstransition/csstransition.esm.js +0 -1
  38. package/datascroller/datascroller.esm.js +0 -1
  39. package/datatable/datatable.esm.js +0 -1
  40. package/dataview/dataview.esm.js +0 -1
  41. package/deferredcontent/deferredcontent.esm.js +0 -1
  42. package/dialog/dialog.esm.js +2 -1
  43. package/dialog/dialog.esm.min.js +1 -1
  44. package/divider/divider.esm.js +0 -1
  45. package/dock/dock.esm.js +0 -1
  46. package/dropdown/dropdown.esm.js +0 -1
  47. package/editor/editor.esm.js +0 -1
  48. package/fieldset/fieldset.esm.js +0 -1
  49. package/fileupload/fileupload.esm.js +0 -1
  50. package/galleria/galleria.esm.js +11 -7
  51. package/galleria/galleria.esm.min.js +1 -1
  52. package/hooks/hooks.esm.js +0 -6
  53. package/iconbase/iconbase.esm.js +0 -1
  54. package/icons/angledoubledown/index.esm.js +0 -1
  55. package/icons/angledoubleleft/index.esm.js +0 -1
  56. package/icons/angledoubleright/index.esm.js +0 -1
  57. package/icons/angledoubleup/index.esm.js +0 -1
  58. package/icons/angledown/index.esm.js +0 -1
  59. package/icons/angleleft/index.esm.js +0 -1
  60. package/icons/angleright/index.esm.js +0 -1
  61. package/icons/angleup/index.esm.js +0 -1
  62. package/icons/arrowdown/index.esm.js +0 -1
  63. package/icons/arrowup/index.esm.js +0 -1
  64. package/icons/ban/index.esm.js +0 -1
  65. package/icons/bars/index.esm.js +0 -1
  66. package/icons/calendar/index.esm.js +0 -1
  67. package/icons/check/index.esm.js +0 -1
  68. package/icons/chevrondown/index.esm.js +0 -1
  69. package/icons/chevronleft/index.esm.js +0 -1
  70. package/icons/chevronright/index.esm.js +0 -1
  71. package/icons/chevronup/index.esm.js +0 -1
  72. package/icons/download/index.esm.js +0 -1
  73. package/icons/exclamationtriangle/index.esm.js +0 -1
  74. package/icons/eye/index.esm.js +0 -1
  75. package/icons/eyeslash/index.esm.js +0 -1
  76. package/icons/filter/index.esm.js +0 -1
  77. package/icons/filterslash/index.esm.js +0 -1
  78. package/icons/infocircle/index.esm.js +0 -1
  79. package/icons/minus/index.esm.js +0 -1
  80. package/icons/pencil/index.esm.js +0 -1
  81. package/icons/plus/index.esm.js +0 -1
  82. package/icons/refresh/index.esm.js +0 -1
  83. package/icons/search/index.esm.js +0 -1
  84. package/icons/searchminus/index.esm.js +0 -1
  85. package/icons/searchplus/index.esm.js +0 -1
  86. package/icons/sortalt/index.esm.js +0 -1
  87. package/icons/sortamountdown/index.esm.js +0 -1
  88. package/icons/sortamountupalt/index.esm.js +0 -1
  89. package/icons/spinner/index.esm.js +0 -1
  90. package/icons/star/index.esm.js +0 -1
  91. package/icons/starfill/index.esm.js +0 -1
  92. package/icons/thlarge/index.esm.js +0 -1
  93. package/icons/times/index.esm.js +0 -1
  94. package/icons/timescircle/index.esm.js +0 -1
  95. package/icons/trash/index.esm.js +0 -1
  96. package/icons/undo/index.esm.js +0 -1
  97. package/icons/upload/index.esm.js +0 -1
  98. package/icons/windowmaximize/index.esm.js +0 -1
  99. package/icons/windowminimize/index.esm.js +0 -1
  100. package/image/image.esm.js +2 -1
  101. package/image/image.esm.min.js +1 -1
  102. package/inplace/inplace.esm.js +0 -1
  103. package/inputmask/inputmask.esm.js +0 -1
  104. package/inputnumber/inputnumber.esm.js +0 -1
  105. package/inputswitch/inputswitch.esm.js +0 -1
  106. package/inputtext/inputtext.esm.js +0 -1
  107. package/inputtextarea/inputtextarea.esm.js +0 -1
  108. package/keyfilter/keyfilter.esm.js +0 -1
  109. package/knob/knob.esm.js +0 -1
  110. package/listbox/listbox.esm.js +0 -1
  111. package/megamenu/megamenu.esm.js +0 -1
  112. package/mention/mention.esm.js +0 -1
  113. package/menu/menu.esm.js +0 -1
  114. package/menubar/menubar.esm.js +0 -1
  115. package/message/message.esm.js +0 -1
  116. package/messages/messages.esm.js +1 -2
  117. package/messages/messages.esm.min.js +1 -1
  118. package/multiselect/multiselect.esm.js +0 -1
  119. package/multistatecheckbox/multistatecheckbox.esm.js +0 -1
  120. package/orderlist/orderlist.esm.js +9 -5
  121. package/orderlist/orderlist.esm.min.js +1 -1
  122. package/organizationchart/organizationchart.esm.js +0 -1
  123. package/overlaypanel/overlaypanel.esm.js +0 -1
  124. package/overlayservice/overlayservice.esm.js +0 -1
  125. package/package.json +2 -2
  126. package/paginator/paginator.esm.js +0 -1
  127. package/panel/panel.esm.js +0 -1
  128. package/panelmenu/panelmenu.esm.js +0 -1
  129. package/passthrough/index.esm.js +0 -1
  130. package/passthrough/tailwind/index.cjs.js +2 -4
  131. package/passthrough/tailwind/index.cjs.min.js +1 -1
  132. package/passthrough/tailwind/index.esm.js +149 -148
  133. package/passthrough/tailwind/index.esm.min.js +1 -1
  134. package/passthrough/tailwind/index.js +2 -4
  135. package/passthrough/tailwind/index.min.js +1 -1
  136. package/password/password.esm.js +0 -1
  137. package/picklist/picklist.esm.js +0 -1
  138. package/portal/portal.esm.js +0 -1
  139. package/primereact.all.cjs.js +12 -7
  140. package/primereact.all.cjs.min.js +1 -1
  141. package/primereact.all.esm.js +70 -42
  142. package/primereact.all.esm.min.js +1 -1
  143. package/primereact.all.js +12 -7
  144. package/primereact.all.min.js +1 -1
  145. package/progressbar/progressbar.esm.js +0 -1
  146. package/progressspinner/progressspinner.esm.js +0 -1
  147. package/radiobutton/radiobutton.esm.js +0 -1
  148. package/rating/rating.esm.js +0 -1
  149. package/ripple/ripple.esm.js +0 -1
  150. package/row/row.esm.js +0 -1
  151. package/scrollpanel/scrollpanel.esm.js +0 -1
  152. package/scrolltop/scrolltop.esm.js +0 -1
  153. package/selectbutton/selectbutton.esm.js +0 -1
  154. package/sidebar/sidebar.esm.js +2 -1
  155. package/sidebar/sidebar.esm.min.js +1 -1
  156. package/skeleton/skeleton.esm.js +0 -1
  157. package/slidemenu/slidemenu.esm.js +0 -1
  158. package/slider/slider.esm.js +0 -1
  159. package/speeddial/speeddial.esm.js +0 -1
  160. package/splitbutton/splitbutton.esm.js +0 -1
  161. package/splitter/splitter.esm.js +0 -1
  162. package/steps/steps.esm.js +0 -1
  163. package/styleclass/styleclass.esm.js +0 -1
  164. package/tabmenu/tabmenu.esm.js +0 -1
  165. package/tabview/tabview.esm.js +0 -1
  166. package/tag/tag.esm.js +0 -1
  167. package/terminal/terminal.esm.js +0 -1
  168. package/terminalservice/terminalservice.esm.js +0 -1
  169. package/tieredmenu/tieredmenu.esm.js +0 -1
  170. package/timeline/timeline.esm.js +0 -1
  171. package/toast/toast.esm.js +0 -1
  172. package/togglebutton/togglebutton.esm.js +0 -1
  173. package/toolbar/toolbar.esm.js +0 -1
  174. package/tooltip/tooltip.esm.js +0 -1
  175. package/tree/tree.esm.js +0 -1
  176. package/treeselect/treeselect.esm.js +0 -1
  177. package/treetable/treetable.esm.js +0 -1
  178. package/tristatecheckbox/tristatecheckbox.esm.js +0 -1
  179. package/utils/utils.esm.js +0 -1
  180. package/virtualscroller/virtualscroller.esm.js +0 -1
  181. package/web-types.json +1 -1
  182. package/accordion/accordion.esm.min.mjs +0 -1
  183. package/accordion/accordion.esm.mjs +0 -420
  184. package/api/api.esm.min.mjs +0 -1
  185. package/api/api.esm.mjs +0 -943
  186. package/autocomplete/autocomplete.esm.min.mjs +0 -1
  187. package/autocomplete/autocomplete.esm.mjs +0 -1128
  188. package/avatar/avatar.esm.min.mjs +0 -1
  189. package/avatar/avatar.esm.mjs +0 -244
  190. package/avatargroup/avatargroup.esm.min.mjs +0 -1
  191. package/avatargroup/avatargroup.esm.mjs +0 -54
  192. package/badge/badge.esm.min.mjs +0 -1
  193. package/badge/badge.esm.mjs +0 -109
  194. package/blockui/blockui.esm.min.mjs +0 -1
  195. package/blockui/blockui.esm.mjs +0 -267
  196. package/breadcrumb/breadcrumb.esm.min.mjs +0 -1
  197. package/breadcrumb/breadcrumb.esm.mjs +0 -350
  198. package/button/button.esm.min.mjs +0 -1
  199. package/button/button.esm.mjs +0 -294
  200. package/calendar/calendar.esm.min.mjs +0 -1
  201. package/calendar/calendar.esm.mjs +0 -3474
  202. package/card/card.esm.min.mjs +0 -1
  203. package/card/card.esm.mjs +0 -97
  204. package/carousel/carousel.esm.min.mjs +0 -1
  205. package/carousel/carousel.esm.mjs +0 -800
  206. package/cascadeselect/cascadeselect.esm.min.mjs +0 -1
  207. package/cascadeselect/cascadeselect.esm.mjs +0 -818
  208. package/chart/chart.esm.min.mjs +0 -1
  209. package/chart/chart.esm.mjs +0 -154
  210. package/checkbox/checkbox.esm.min.mjs +0 -1
  211. package/checkbox/checkbox.esm.mjs +0 -356
  212. package/chip/chip.esm.min.mjs +0 -1
  213. package/chip/chip.esm.mjs +0 -247
  214. package/chips/chips.esm.min.mjs +0 -1
  215. package/chips/chips.esm.mjs +0 -500
  216. package/colorpicker/colorpicker.esm.min.mjs +0 -1
  217. package/colorpicker/colorpicker.esm.mjs +0 -787
  218. package/column/column.esm.min.mjs +0 -1
  219. package/column/column.esm.mjs +0 -7
  220. package/columngroup/columngroup.esm.min.mjs +0 -1
  221. package/columngroup/columngroup.esm.mjs +0 -5
  222. package/componentbase/componentbase.esm.min.mjs +0 -1
  223. package/componentbase/componentbase.esm.mjs +0 -328
  224. package/confirmdialog/confirmdialog.esm.min.mjs +0 -1
  225. package/confirmdialog/confirmdialog.esm.mjs +0 -375
  226. package/confirmpopup/confirmpopup.esm.min.mjs +0 -1
  227. package/confirmpopup/confirmpopup.esm.mjs +0 -609
  228. package/contextmenu/contextmenu.esm.min.mjs +0 -1
  229. package/contextmenu/contextmenu.esm.mjs +0 -663
  230. package/csstransition/csstransition.esm.min.mjs +0 -1
  231. package/csstransition/csstransition.esm.mjs +0 -137
  232. package/datascroller/datascroller.esm.min.mjs +0 -1
  233. package/datascroller/datascroller.esm.mjs +0 -319
  234. package/datatable/datatable.esm.min.mjs +0 -1
  235. package/datatable/datatable.esm.mjs +0 -6635
  236. package/dataview/dataview.esm.min.mjs +0 -1
  237. package/dataview/dataview.esm.mjs +0 -505
  238. package/deferredcontent/deferredcontent.esm.min.mjs +0 -1
  239. package/deferredcontent/deferredcontent.esm.mjs +0 -132
  240. package/dialog/dialog.esm.min.mjs +0 -1
  241. package/dialog/dialog.esm.mjs +0 -984
  242. package/divider/divider.esm.min.mjs +0 -1
  243. package/divider/divider.esm.mjs +0 -78
  244. package/dock/dock.esm.min.mjs +0 -1
  245. package/dock/dock.esm.mjs +0 -347
  246. package/dropdown/dropdown.esm.min.mjs +0 -1
  247. package/dropdown/dropdown.esm.mjs +0 -1379
  248. package/editor/editor.esm.min.mjs +0 -1
  249. package/editor/editor.esm.mjs +0 -337
  250. package/fieldset/fieldset.esm.min.mjs +0 -1
  251. package/fieldset/fieldset.esm.mjs +0 -269
  252. package/fileupload/fileupload.esm.min.mjs +0 -1
  253. package/fileupload/fileupload.esm.mjs +0 -1004
  254. package/galleria/galleria.esm.min.mjs +0 -1
  255. package/galleria/galleria.esm.mjs +0 -1094
  256. package/hooks/hooks.esm.min.mjs +0 -1
  257. package/hooks/hooks.esm.mjs +0 -1036
  258. package/iconbase/iconbase.esm.min.mjs +0 -1
  259. package/iconbase/iconbase.esm.mjs +0 -32
  260. package/icons/angledoubledown/index.esm.min.mjs +0 -1
  261. package/icons/angledoubledown/index.esm.mjs +0 -38
  262. package/icons/angledoubleleft/index.esm.min.mjs +0 -1
  263. package/icons/angledoubleleft/index.esm.mjs +0 -38
  264. package/icons/angledoubleright/index.esm.min.mjs +0 -1
  265. package/icons/angledoubleright/index.esm.mjs +0 -38
  266. package/icons/angledoubleup/index.esm.min.mjs +0 -1
  267. package/icons/angledoubleup/index.esm.mjs +0 -38
  268. package/icons/angledown/index.esm.min.mjs +0 -1
  269. package/icons/angledown/index.esm.mjs +0 -36
  270. package/icons/angleleft/index.esm.min.mjs +0 -1
  271. package/icons/angleleft/index.esm.mjs +0 -36
  272. package/icons/angleright/index.esm.min.mjs +0 -1
  273. package/icons/angleright/index.esm.mjs +0 -36
  274. package/icons/angleup/index.esm.min.mjs +0 -1
  275. package/icons/angleup/index.esm.mjs +0 -36
  276. package/icons/arrowdown/index.esm.min.mjs +0 -1
  277. package/icons/arrowdown/index.esm.mjs +0 -660
  278. package/icons/arrowup/index.esm.min.mjs +0 -1
  279. package/icons/arrowup/index.esm.mjs +0 -660
  280. package/icons/ban/index.esm.min.mjs +0 -1
  281. package/icons/ban/index.esm.mjs +0 -658
  282. package/icons/bars/index.esm.min.mjs +0 -1
  283. package/icons/bars/index.esm.mjs +0 -38
  284. package/icons/calendar/index.esm.min.mjs +0 -1
  285. package/icons/calendar/index.esm.mjs +0 -36
  286. package/icons/check/index.esm.min.mjs +0 -1
  287. package/icons/check/index.esm.mjs +0 -36
  288. package/icons/chevrondown/index.esm.min.mjs +0 -1
  289. package/icons/chevrondown/index.esm.mjs +0 -36
  290. package/icons/chevronleft/index.esm.min.mjs +0 -1
  291. package/icons/chevronleft/index.esm.mjs +0 -36
  292. package/icons/chevronright/index.esm.min.mjs +0 -1
  293. package/icons/chevronright/index.esm.mjs +0 -36
  294. package/icons/chevronup/index.esm.min.mjs +0 -1
  295. package/icons/chevronup/index.esm.mjs +0 -36
  296. package/icons/download/index.esm.min.mjs +0 -1
  297. package/icons/download/index.esm.mjs +0 -660
  298. package/icons/exclamationtriangle/index.esm.min.mjs +0 -1
  299. package/icons/exclamationtriangle/index.esm.mjs +0 -664
  300. package/icons/eye/index.esm.min.mjs +0 -1
  301. package/icons/eye/index.esm.mjs +0 -38
  302. package/icons/eyeslash/index.esm.min.mjs +0 -1
  303. package/icons/eyeslash/index.esm.mjs +0 -660
  304. package/icons/filter/index.esm.min.mjs +0 -1
  305. package/icons/filter/index.esm.mjs +0 -658
  306. package/icons/filterslash/index.esm.min.mjs +0 -1
  307. package/icons/filterslash/index.esm.mjs +0 -660
  308. package/icons/infocircle/index.esm.min.mjs +0 -1
  309. package/icons/infocircle/index.esm.mjs +0 -660
  310. package/icons/minus/index.esm.min.mjs +0 -1
  311. package/icons/minus/index.esm.mjs +0 -36
  312. package/icons/pencil/index.esm.min.mjs +0 -1
  313. package/icons/pencil/index.esm.mjs +0 -658
  314. package/icons/plus/index.esm.min.mjs +0 -1
  315. package/icons/plus/index.esm.mjs +0 -658
  316. package/icons/refresh/index.esm.min.mjs +0 -1
  317. package/icons/refresh/index.esm.mjs +0 -660
  318. package/icons/search/index.esm.min.mjs +0 -1
  319. package/icons/search/index.esm.mjs +0 -660
  320. package/icons/searchminus/index.esm.min.mjs +0 -1
  321. package/icons/searchminus/index.esm.mjs +0 -660
  322. package/icons/searchplus/index.esm.min.mjs +0 -1
  323. package/icons/searchplus/index.esm.mjs +0 -660
  324. package/icons/sortalt/index.esm.min.mjs +0 -1
  325. package/icons/sortalt/index.esm.mjs +0 -667
  326. package/icons/sortamountdown/index.esm.min.mjs +0 -1
  327. package/icons/sortamountdown/index.esm.mjs +0 -673
  328. package/icons/sortamountupalt/index.esm.min.mjs +0 -1
  329. package/icons/sortamountupalt/index.esm.mjs +0 -673
  330. package/icons/spinner/index.esm.min.mjs +0 -1
  331. package/icons/spinner/index.esm.mjs +0 -658
  332. package/icons/star/index.esm.min.mjs +0 -1
  333. package/icons/star/index.esm.mjs +0 -658
  334. package/icons/starfill/index.esm.min.mjs +0 -1
  335. package/icons/starfill/index.esm.mjs +0 -658
  336. package/icons/thlarge/index.esm.min.mjs +0 -1
  337. package/icons/thlarge/index.esm.mjs +0 -660
  338. package/icons/times/index.esm.min.mjs +0 -1
  339. package/icons/times/index.esm.mjs +0 -36
  340. package/icons/timescircle/index.esm.min.mjs +0 -1
  341. package/icons/timescircle/index.esm.mjs +0 -660
  342. package/icons/trash/index.esm.min.mjs +0 -1
  343. package/icons/trash/index.esm.mjs +0 -660
  344. package/icons/undo/index.esm.min.mjs +0 -1
  345. package/icons/undo/index.esm.mjs +0 -660
  346. package/icons/upload/index.esm.min.mjs +0 -1
  347. package/icons/upload/index.esm.mjs +0 -660
  348. package/icons/windowmaximize/index.esm.min.mjs +0 -1
  349. package/icons/windowmaximize/index.esm.mjs +0 -660
  350. package/icons/windowminimize/index.esm.min.mjs +0 -1
  351. package/icons/windowminimize/index.esm.mjs +0 -660
  352. package/image/image.esm.min.mjs +0 -1
  353. package/image/image.esm.mjs +0 -1163
  354. package/inplace/inplace.esm.min.mjs +0 -1
  355. package/inplace/inplace.esm.mjs +0 -242
  356. package/inputmask/inputmask.esm.min.mjs +0 -1
  357. package/inputmask/inputmask.esm.mjs +0 -559
  358. package/inputnumber/inputnumber.esm.min.mjs +0 -1
  359. package/inputnumber/inputnumber.esm.mjs +0 -1208
  360. package/inputswitch/inputswitch.esm.min.mjs +0 -1
  361. package/inputswitch/inputswitch.esm.mjs +0 -290
  362. package/inputtext/inputtext.esm.min.mjs +0 -1
  363. package/inputtext/inputtext.esm.mjs +0 -170
  364. package/inputtextarea/inputtextarea.esm.min.mjs +0 -1
  365. package/inputtextarea/inputtextarea.esm.mjs +0 -219
  366. package/keyfilter/keyfilter.esm.min.mjs +0 -1
  367. package/keyfilter/keyfilter.esm.mjs +0 -107
  368. package/knob/knob.esm.min.mjs +0 -1
  369. package/knob/knob.esm.mjs +0 -317
  370. package/listbox/listbox.esm.min.mjs +0 -1
  371. package/listbox/listbox.esm.mjs +0 -809
  372. package/megamenu/megamenu.esm.min.mjs +0 -1
  373. package/megamenu/megamenu.esm.mjs +0 -715
  374. package/mention/mention.esm.min.mjs +0 -1
  375. package/mention/mention.esm.mjs +0 -770
  376. package/menu/menu.esm.min.mjs +0 -1
  377. package/menu/menu.esm.mjs +0 -484
  378. package/menubar/menubar.esm.min.mjs +0 -1
  379. package/menubar/menubar.esm.mjs +0 -583
  380. package/message/message.esm.min.mjs +0 -1
  381. package/message/message.esm.mjs +0 -168
  382. package/messages/messages.esm.min.mjs +0 -1
  383. package/messages/messages.esm.mjs +0 -438
  384. package/multiselect/multiselect.esm.min.mjs +0 -1
  385. package/multiselect/multiselect.esm.mjs +0 -1723
  386. package/multistatecheckbox/multistatecheckbox.esm.min.mjs +0 -1
  387. package/multistatecheckbox/multistatecheckbox.esm.mjs +0 -351
  388. package/orderlist/orderlist.esm.min.mjs +0 -1
  389. package/orderlist/orderlist.esm.mjs +0 -820
  390. package/organizationchart/organizationchart.esm.min.mjs +0 -1
  391. package/organizationchart/organizationchart.esm.mjs +0 -479
  392. package/overlaypanel/overlaypanel.esm.min.mjs +0 -1
  393. package/overlaypanel/overlaypanel.esm.mjs +0 -515
  394. package/overlayservice/overlayservice.esm.min.mjs +0 -1
  395. package/overlayservice/overlayservice.esm.mjs +0 -6
  396. package/paginator/paginator.esm.min.mjs +0 -1
  397. package/paginator/paginator.esm.mjs +0 -932
  398. package/panel/panel.esm.min.mjs +0 -1
  399. package/panel/panel.esm.mjs +0 -315
  400. package/panelmenu/panelmenu.esm.min.mjs +0 -1
  401. package/panelmenu/panelmenu.esm.mjs +0 -644
  402. package/passthrough/index.esm.min.mjs +0 -1
  403. package/passthrough/index.esm.mjs +0 -70
  404. package/passthrough/tailwind/index.esm.min.mjs +0 -1
  405. package/passthrough/tailwind/index.esm.mjs +0 -3513
  406. package/password/password.esm.min.mjs +0 -1
  407. package/password/password.esm.mjs +0 -566
  408. package/picklist/picklist.esm.min.mjs +0 -1
  409. package/picklist/picklist.esm.mjs +0 -1118
  410. package/portal/portal.esm.min.mjs +0 -1
  411. package/portal/portal.esm.mjs +0 -109
  412. package/primereact.all.esm.min.mjs +0 -1
  413. package/primereact.all.esm.mjs +0 -51669
  414. package/progressbar/progressbar.esm.min.mjs +0 -1
  415. package/progressbar/progressbar.esm.mjs +0 -189
  416. package/progressspinner/progressspinner.esm.min.mjs +0 -1
  417. package/progressspinner/progressspinner.esm.mjs +0 -87
  418. package/radiobutton/radiobutton.esm.min.mjs +0 -1
  419. package/radiobutton/radiobutton.esm.mjs +0 -328
  420. package/rating/rating.esm.min.mjs +0 -1
  421. package/rating/rating.esm.mjs +0 -272
  422. package/ripple/ripple.esm.min.mjs +0 -1
  423. package/ripple/ripple.esm.mjs +0 -99
  424. package/row/row.esm.min.mjs +0 -1
  425. package/row/row.esm.mjs +0 -35
  426. package/scrollpanel/scrollpanel.esm.min.mjs +0 -1
  427. package/scrollpanel/scrollpanel.esm.mjs +0 -209
  428. package/scrolltop/scrolltop.esm.min.mjs +0 -1
  429. package/scrolltop/scrolltop.esm.mjs +0 -268
  430. package/selectbutton/selectbutton.esm.min.mjs +0 -1
  431. package/selectbutton/selectbutton.esm.mjs +0 -326
  432. package/sidebar/sidebar.esm.min.mjs +0 -1
  433. package/sidebar/sidebar.esm.mjs +0 -544
  434. package/skeleton/skeleton.esm.min.mjs +0 -1
  435. package/skeleton/skeleton.esm.mjs +0 -124
  436. package/slidemenu/slidemenu.esm.min.mjs +0 -1
  437. package/slidemenu/slidemenu.esm.mjs +0 -688
  438. package/slider/slider.esm.min.mjs +0 -1
  439. package/slider/slider.esm.mjs +0 -477
  440. package/speeddial/speeddial.esm.min.mjs +0 -1
  441. package/speeddial/speeddial.esm.mjs +0 -520
  442. package/splitbutton/splitbutton.esm.min.mjs +0 -1
  443. package/splitbutton/splitbutton.esm.mjs +0 -544
  444. package/splitter/splitter.esm.min.mjs +0 -1
  445. package/splitter/splitter.esm.mjs +0 -465
  446. package/steps/steps.esm.min.mjs +0 -1
  447. package/steps/steps.esm.mjs +0 -293
  448. package/styleclass/styleclass.esm.min.mjs +0 -1
  449. package/styleclass/styleclass.esm.mjs +0 -268
  450. package/tabmenu/tabmenu.esm.min.mjs +0 -1
  451. package/tabmenu/tabmenu.esm.mjs +0 -331
  452. package/tabview/tabview.esm.min.mjs +0 -1
  453. package/tabview/tabview.esm.mjs +0 -677
  454. package/tag/tag.esm.min.mjs +0 -1
  455. package/tag/tag.esm.mjs +0 -116
  456. package/terminal/terminal.esm.min.mjs +0 -1
  457. package/terminal/terminal.esm.mjs +0 -279
  458. package/terminalservice/terminalservice.esm.min.mjs +0 -1
  459. package/terminalservice/terminalservice.esm.mjs +0 -6
  460. package/tieredmenu/tieredmenu.esm.min.mjs +0 -1
  461. package/tieredmenu/tieredmenu.esm.mjs +0 -698
  462. package/timeline/timeline.esm.min.mjs +0 -1
  463. package/timeline/timeline.esm.mjs +0 -163
  464. package/toast/toast.esm.min.mjs +0 -1
  465. package/toast/toast.esm.mjs +0 -738
  466. package/togglebutton/togglebutton.esm.min.mjs +0 -1
  467. package/togglebutton/togglebutton.esm.mjs +0 -216
  468. package/toolbar/toolbar.esm.min.mjs +0 -1
  469. package/toolbar/toolbar.esm.mjs +0 -78
  470. package/tooltip/tooltip.esm.min.mjs +0 -1
  471. package/tooltip/tooltip.esm.mjs +0 -695
  472. package/tree/tree.esm.min.mjs +0 -1
  473. package/tree/tree.esm.mjs +0 -1402
  474. package/treeselect/treeselect.esm.min.mjs +0 -1
  475. package/treeselect/treeselect.esm.mjs +0 -929
  476. package/treetable/treetable.esm.min.mjs +0 -1
  477. package/treetable/treetable.esm.mjs +0 -3093
  478. package/tristatecheckbox/tristatecheckbox.esm.min.mjs +0 -1
  479. package/tristatecheckbox/tristatecheckbox.esm.mjs +0 -291
  480. package/utils/utils.esm.min.mjs +0 -1
  481. package/utils/utils.esm.mjs +0 -2382
  482. package/virtualscroller/virtualscroller.esm.min.mjs +0 -1
  483. package/virtualscroller/virtualscroller.esm.mjs +0 -971
@@ -1,544 +0,0 @@
1
- 'use client';
2
- import * as React from 'react';
3
- import PrimeReact, { PrimeReactContext, localeOption } from 'primereact/api';
4
- import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
5
- import { CSSTransition } from 'primereact/csstransition';
6
- import { useEventListener as useEventListener$1, useMountEffect, useUpdateEffect, useUnmountEffect as useUnmountEffect$1 } from 'primereact/hooks';
7
- import { TimesIcon } from 'primereact/icons/times';
8
- import { Portal } from 'primereact/portal';
9
- import { Ripple } from 'primereact/ripple';
10
- import { classNames, DomHandler, ObjectUtils, ZIndexUtils, mergeProps, IconUtils } from 'primereact/utils';
11
-
12
- function _extends() {
13
- _extends = Object.assign ? Object.assign.bind() : function (target) {
14
- for (var i = 1; i < arguments.length; i++) {
15
- var source = arguments[i];
16
- for (var key in source) {
17
- if (Object.prototype.hasOwnProperty.call(source, key)) {
18
- target[key] = source[key];
19
- }
20
- }
21
- }
22
- return target;
23
- };
24
- return _extends.apply(this, arguments);
25
- }
26
-
27
- function _typeof(o) {
28
- "@babel/helpers - typeof";
29
-
30
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
31
- return typeof o;
32
- } : function (o) {
33
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
34
- }, _typeof(o);
35
- }
36
-
37
- function _toPrimitive(input, hint) {
38
- if (_typeof(input) !== "object" || input === null) return input;
39
- var prim = input[Symbol.toPrimitive];
40
- if (prim !== undefined) {
41
- var res = prim.call(input, hint || "default");
42
- if (_typeof(res) !== "object") return res;
43
- throw new TypeError("@@toPrimitive must return a primitive value.");
44
- }
45
- return (hint === "string" ? String : Number)(input);
46
- }
47
-
48
- function _toPropertyKey(arg) {
49
- var key = _toPrimitive(arg, "string");
50
- return _typeof(key) === "symbol" ? key : String(key);
51
- }
52
-
53
- function _defineProperty(obj, key, value) {
54
- key = _toPropertyKey(key);
55
- if (key in obj) {
56
- Object.defineProperty(obj, key, {
57
- value: value,
58
- enumerable: true,
59
- configurable: true,
60
- writable: true
61
- });
62
- } else {
63
- obj[key] = value;
64
- }
65
- return obj;
66
- }
67
-
68
- function _arrayWithHoles(arr) {
69
- if (Array.isArray(arr)) return arr;
70
- }
71
-
72
- function _iterableToArrayLimit(r, l) {
73
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
74
- if (null != t) {
75
- var e,
76
- n,
77
- i,
78
- u,
79
- a = [],
80
- f = !0,
81
- o = !1;
82
- try {
83
- if (i = (t = t.call(r)).next, 0 === l) {
84
- if (Object(t) !== t) return;
85
- f = !1;
86
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
87
- } catch (r) {
88
- o = !0, n = r;
89
- } finally {
90
- try {
91
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
92
- } finally {
93
- if (o) throw n;
94
- }
95
- }
96
- return a;
97
- }
98
- }
99
-
100
- function _arrayLikeToArray(arr, len) {
101
- if (len == null || len > arr.length) len = arr.length;
102
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
103
- return arr2;
104
- }
105
-
106
- function _unsupportedIterableToArray(o, minLen) {
107
- if (!o) return;
108
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
109
- var n = Object.prototype.toString.call(o).slice(8, -1);
110
- if (n === "Object" && o.constructor) n = o.constructor.name;
111
- if (n === "Map" || n === "Set") return Array.from(o);
112
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
113
- }
114
-
115
- function _nonIterableRest() {
116
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
117
- }
118
-
119
- function _slicedToArray(arr, i) {
120
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
121
- }
122
-
123
- var classes = {
124
- closeButton: 'p-sidebar-close p-sidebar-icon p-link',
125
- closeIcon: 'p-sidebar-close-icon',
126
- mask: function mask(_ref) {
127
- var props = _ref.props,
128
- maskVisibleState = _ref.maskVisibleState;
129
- var positions = ['left', 'right', 'top', 'bottom'];
130
- var pos = positions.find(function (item) {
131
- return item === props.position;
132
- });
133
- return classNames('p-sidebar-mask', pos ? "p-sidebar-".concat(pos) : '', {
134
- 'p-component-overlay p-component-overlay-enter': props.modal,
135
- 'p-sidebar-mask-scrollblocker': props.blockScroll,
136
- 'p-sidebar-visible': maskVisibleState,
137
- 'p-sidebar-full': props.fullScreen
138
- }, props.maskClassName);
139
- },
140
- header: function header(_ref2) {
141
- var props = _ref2.props;
142
- return classNames('p-sidebar-header', {
143
- 'p-sidebar-custom-header': props.header
144
- });
145
- },
146
- content: 'p-sidebar-content',
147
- icons: 'p-sidebar-icons',
148
- root: function root(_ref3) {
149
- var props = _ref3.props,
150
- context = _ref3.context;
151
- return classNames('p-sidebar p-component', props.className, {
152
- 'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact.inputStyle === 'filled',
153
- 'p-ripple-disabled': context && context.ripple === false || PrimeReact.ripple === false
154
- });
155
- },
156
- transition: 'p-sidebar'
157
- };
158
- var styles = "\n@layer primereact {\n .p-sidebar-mask {\n display: none;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n background-color: transparent;\n transition-property: background-color;\n }\n \n .p-sidebar-visible {\n display: flex;\n }\n \n .p-sidebar-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-sidebar {\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n transform: translate3d(0px, 0px, 0px);\n position: relative;\n }\n \n .p-sidebar-content {\n overflow-y: auto;\n flex-grow: 1;\n }\n \n .p-sidebar-header {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n \n .p-sidebar-custom-header {\n justify-content: space-between;\n }\n \n .p-sidebar-icons {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n }\n \n .p-sidebar-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-sidebar-full .p-sidebar {\n transition: none;\n transform: none;\n width: 100vw !important;\n height: 100vh !important;\n max-height: 100%;\n top: 0px !important;\n left: 0px !important;\n }\n \n /* Animation */\n /* Top, Bottom, Left and Right */\n .p-sidebar-top .p-sidebar-enter,\n .p-sidebar-top .p-sidebar-exit-active {\n transform: translate3d(0px, -100%, 0px);\n }\n \n .p-sidebar-bottom .p-sidebar-enter,\n .p-sidebar-bottom .p-sidebar-exit-active {\n transform: translate3d(0px, 100%, 0px);\n }\n \n .p-sidebar-left .p-sidebar-enter,\n .p-sidebar-left .p-sidebar-exit-active {\n transform: translate3d(-100%, 0px, 0px);\n }\n \n .p-sidebar-right .p-sidebar-enter,\n .p-sidebar-right .p-sidebar-exit-active {\n transform: translate3d(100%, 0px, 0px);\n }\n \n .p-sidebar-top .p-sidebar-enter-active,\n .p-sidebar-bottom .p-sidebar-enter-active,\n .p-sidebar-left .p-sidebar-enter-active,\n .p-sidebar-right .p-sidebar-enter-active {\n transform: translate3d(0px, 0px, 0px);\n transition: all 0.3s;\n }\n \n .p-sidebar-top .p-sidebar-enter-done,\n .p-sidebar-bottom .p-sidebar-enter-done,\n .p-sidebar-left .p-sidebar-enter-done,\n .p-sidebar-right .p-sidebar-enter-done {\n transform: none;\n }\n \n .p-sidebar-top .p-sidebar-exit-active,\n .p-sidebar-bottom .p-sidebar-exit-active,\n .p-sidebar-left .p-sidebar-exit-active,\n .p-sidebar-right .p-sidebar-exit-active {\n transition: all 0.3s;\n }\n \n /* Full */\n .p-sidebar-full .p-sidebar-enter {\n opacity: 0;\n transform: scale(0.5);\n }\n \n .p-sidebar-full .p-sidebar-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 0.15s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-sidebar-full .p-sidebar-enter-done {\n transform: none;\n }\n \n .p-sidebar-full .p-sidebar-exit-active {\n opacity: 0;\n transform: scale(0.5);\n transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);\n }\n \n /* Size */\n .p-sidebar-left .p-sidebar {\n width: 20rem;\n height: 100%;\n }\n \n .p-sidebar-right .p-sidebar {\n width: 20rem;\n height: 100%;\n }\n \n .p-sidebar-top .p-sidebar {\n height: 10rem;\n width: 100%;\n }\n \n .p-sidebar-bottom .p-sidebar {\n height: 10rem;\n width: 100%;\n }\n \n .p-sidebar-left .p-sidebar-sm,\n .p-sidebar-right .p-sidebar-sm {\n width: 20rem;\n }\n \n .p-sidebar-left .p-sidebar-md,\n .p-sidebar-right .p-sidebar-md {\n width: 40rem;\n }\n \n .p-sidebar-left .p-sidebar-lg,\n .p-sidebar-right .p-sidebar-lg {\n width: 60rem;\n }\n \n .p-sidebar-top .p-sidebar-sm,\n .p-sidebar-bottom .p-sidebar-sm {\n height: 10rem;\n }\n \n .p-sidebar-top .p-sidebar-md,\n .p-sidebar-bottom .p-sidebar-md {\n height: 20rem;\n }\n \n .p-sidebar-top .p-sidebar-lg,\n .p-sidebar-bottom .p-sidebar-lg {\n height: 30rem;\n }\n \n .p-sidebar-left .p-sidebar-view,\n .p-sidebar-right .p-sidebar-view,\n .p-sidebar-top .p-sidebar-view,\n .p-sidebar-bottom .p-sidebar-view {\n width: 100%;\n height: 100%;\n }\n \n .p-sidebar-left .p-sidebar-content,\n .p-sidebar-right .p-sidebar-content,\n .p-sidebar-top .p-sidebar-content,\n .p-sidebar-bottom .p-sidebar-content {\n width: 100%;\n height: 100%;\n }\n \n @media screen and (max-width: 64em) {\n .p-sidebar-left .p-sidebar-lg,\n .p-sidebar-left .p-sidebar-md,\n .p-sidebar-right .p-sidebar-lg,\n .p-sidebar-right .p-sidebar-md {\n width: 20rem;\n }\n } \n}\n";
159
- var inlineStyles = {
160
- mask: function mask(_ref4) {
161
- var props = _ref4.props;
162
- return {
163
- position: 'fixed',
164
- height: '100%',
165
- width: '100%',
166
- left: 0,
167
- top: 0,
168
- display: 'flex',
169
- justifyContent: props.position === 'left' ? 'flex-start' : props.position === 'right' ? 'flex-end' : 'center',
170
- alignItems: props.position === 'top' ? 'flex-start' : props.position === 'bottom' ? 'flex-end' : 'center'
171
- };
172
- }
173
- };
174
- var SidebarBase = ComponentBase.extend({
175
- defaultProps: {
176
- __TYPE: 'Sidebar',
177
- id: null,
178
- style: null,
179
- className: null,
180
- maskStyle: null,
181
- maskClassName: null,
182
- visible: false,
183
- position: 'left',
184
- fullScreen: false,
185
- blockScroll: false,
186
- baseZIndex: 0,
187
- dismissable: true,
188
- showCloseIcon: true,
189
- closeIcon: null,
190
- ariaCloseLabel: null,
191
- closeOnEscape: true,
192
- icons: null,
193
- modal: true,
194
- appendTo: null,
195
- transitionOptions: null,
196
- onShow: null,
197
- onHide: null,
198
- children: undefined
199
- },
200
- css: {
201
- classes: classes,
202
- styles: styles,
203
- inlineStyles: inlineStyles
204
- }
205
- });
206
-
207
- var usePrevious = function usePrevious(newValue) {
208
- var ref = React.useRef(undefined);
209
- React.useEffect(function () {
210
- ref.current = newValue;
211
- });
212
- return ref.current;
213
- };
214
-
215
- /* eslint-disable */
216
- var useUnmountEffect = function useUnmountEffect(fn) {
217
- return React.useEffect(function () {
218
- return fn;
219
- }, []);
220
- };
221
- /* eslint-enable */
222
-
223
- /* eslint-disable */
224
- var useEventListener = function useEventListener(_ref) {
225
- var _ref$target = _ref.target,
226
- target = _ref$target === void 0 ? 'document' : _ref$target,
227
- type = _ref.type,
228
- listener = _ref.listener,
229
- options = _ref.options,
230
- _ref$when = _ref.when,
231
- when = _ref$when === void 0 ? true : _ref$when;
232
- var targetRef = React.useRef(null);
233
- var listenerRef = React.useRef(null);
234
- var prevListener = usePrevious(listener);
235
- var prevOptions = usePrevious(options);
236
- var bind = function bind() {
237
- var bindOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
238
- if (ObjectUtils.isNotEmpty(bindOptions.target)) {
239
- unbind();
240
- (bindOptions.when || when) && (targetRef.current = DomHandler.getTargetElement(bindOptions.target));
241
- }
242
- if (!listenerRef.current && targetRef.current) {
243
- listenerRef.current = function (event) {
244
- return listener && listener(event);
245
- };
246
- targetRef.current.addEventListener(type, listenerRef.current, options);
247
- }
248
- };
249
- var unbind = function unbind() {
250
- if (listenerRef.current) {
251
- targetRef.current.removeEventListener(type, listenerRef.current, options);
252
- listenerRef.current = null;
253
- }
254
- };
255
- React.useEffect(function () {
256
- if (when) {
257
- targetRef.current = DomHandler.getTargetElement(target);
258
- } else {
259
- unbind();
260
- targetRef.current = null;
261
- }
262
- }, [target, when]);
263
- React.useEffect(function () {
264
- // to properly compare functions we can implicitly converting the function to it's body's text as a String
265
- if (listenerRef.current && ('' + prevListener !== '' + listener || prevOptions !== options)) {
266
- unbind();
267
- when && bind();
268
- }
269
- }, [listener, options, when]);
270
- useUnmountEffect(function () {
271
- unbind();
272
- });
273
- return [bind, unbind];
274
- };
275
- /* eslint-enable */
276
-
277
- var useOnEscapeKey = function useOnEscapeKey(ref, condition, callback) {
278
- var handleEsc = function handleEsc(event) {
279
- if (event.key === 'Esc' || event.key === 'Escape') {
280
- event.stopImmediatePropagation();
281
- callback(event);
282
- }
283
- return;
284
- };
285
- var _useEventListener = useEventListener({
286
- type: 'keydown',
287
- listener: handleEsc
288
- }),
289
- _useEventListener2 = _slicedToArray(_useEventListener, 2),
290
- bindKeyDownListener = _useEventListener2[0],
291
- unbindKeyDownListener = _useEventListener2[1];
292
- React.useEffect(function () {
293
- if (!condition) {
294
- return;
295
- }
296
- if (!ref.current) {
297
- return;
298
- }
299
- bindKeyDownListener();
300
- return function () {
301
- unbindKeyDownListener();
302
- };
303
- });
304
- return [ref, callback];
305
- };
306
-
307
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
308
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
309
- var Sidebar = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
310
- var context = React.useContext(PrimeReactContext);
311
- var props = SidebarBase.getProps(inProps, context);
312
- var _React$useState = React.useState(false),
313
- _React$useState2 = _slicedToArray(_React$useState, 2),
314
- maskVisibleState = _React$useState2[0],
315
- setMaskVisibleState = _React$useState2[1];
316
- var _React$useState3 = React.useState(false),
317
- _React$useState4 = _slicedToArray(_React$useState3, 2),
318
- visibleState = _React$useState4[0],
319
- setVisibleState = _React$useState4[1];
320
- var _SidebarBase$setMetaD = SidebarBase.setMetaData({
321
- props: props,
322
- state: {
323
- containerVisible: maskVisibleState
324
- }
325
- }),
326
- ptm = _SidebarBase$setMetaD.ptm,
327
- cx = _SidebarBase$setMetaD.cx,
328
- sx = _SidebarBase$setMetaD.sx,
329
- isUnstyled = _SidebarBase$setMetaD.isUnstyled;
330
- useHandleStyle(SidebarBase.css.styles, isUnstyled, {
331
- name: 'sidebar'
332
- });
333
- var sidebarRef = React.useRef(null);
334
- var maskRef = React.useRef(null);
335
- var closeIconRef = React.useRef(null);
336
- useOnEscapeKey(maskRef, props.closeOnEscape, function (event) {
337
- if (ZIndexUtils.get(maskRef.current) === ZIndexUtils.getCurrent('modal', context && context.autoZIndex || PrimeReact.autoZIndex)) {
338
- onClose(event);
339
- }
340
- });
341
- var _useEventListener = useEventListener$1({
342
- type: 'click',
343
- listener: function listener(event) {
344
- if (event.button !== 0) {
345
- // ignore anything other than left click
346
- return;
347
- }
348
- if (isOutsideClicked(event)) {
349
- onClose(event);
350
- }
351
- }
352
- }),
353
- _useEventListener2 = _slicedToArray(_useEventListener, 2),
354
- bindDocumentClickListener = _useEventListener2[0],
355
- unbindDocumentClickListener = _useEventListener2[1];
356
- var isOutsideClicked = function isOutsideClicked(event) {
357
- return sidebarRef && sidebarRef.current && !sidebarRef.current.contains(event.target);
358
- };
359
- var focus = function focus() {
360
- var activeElement = document.activeElement;
361
- var isActiveElementInDialog = activeElement && sidebarRef && sidebarRef.current.contains(activeElement);
362
- if (!isActiveElementInDialog && props.showCloseIcon) {
363
- closeIconRef.current.focus();
364
- }
365
- };
366
- var onMaskClick = function onMaskClick(event) {
367
- if (props.dismissable && props.modal && maskRef.current === event.target) {
368
- onClose(event);
369
- }
370
- };
371
- var onClose = function onClose(event) {
372
- props.onHide();
373
- event.preventDefault();
374
- };
375
- var onEntered = function onEntered() {
376
- props.onShow && props.onShow();
377
- focus();
378
- enableDocumentSettings();
379
- };
380
- var onExiting = function onExiting() {
381
- if (props.modal) {
382
- DomHandler.addClass(maskRef.current, 'p-component-overlay-leave');
383
- }
384
- };
385
- var onExited = function onExited() {
386
- ZIndexUtils.clear(maskRef.current);
387
- setMaskVisibleState(false);
388
- disableDocumentSettings();
389
- };
390
- var enableDocumentSettings = function enableDocumentSettings() {
391
- if (props.dismissable && !props.modal) {
392
- bindDocumentClickListener();
393
- }
394
- if (props.blockScroll) {
395
- DomHandler.addClass(document.body, 'p-overflow-hidden');
396
- document.body.style.setProperty('--scrollbar-width', DomHandler.calculateScrollbarWidth() + 'px');
397
- }
398
- };
399
- var disableDocumentSettings = function disableDocumentSettings() {
400
- unbindDocumentClickListener();
401
- if (props.blockScroll) {
402
- DomHandler.removeClass(document.body, 'p-overflow-hidden');
403
- document.body.style.removeProperty('--scrollbar-width');
404
- }
405
- };
406
- React.useImperativeHandle(ref, function () {
407
- return {
408
- props: props,
409
- getElement: function getElement() {
410
- return sidebarRef.current;
411
- },
412
- gteMask: function gteMask() {
413
- return maskRef.current;
414
- },
415
- getCloseIcon: function getCloseIcon() {
416
- return closeIconRef.current;
417
- }
418
- };
419
- });
420
- useMountEffect(function () {
421
- if (props.visible) {
422
- setMaskVisibleState(true);
423
- }
424
- });
425
- useUpdateEffect(function () {
426
- if (props.visible && !maskVisibleState) {
427
- setMaskVisibleState(true);
428
- }
429
- if (props.visible !== visibleState && maskVisibleState) {
430
- setVisibleState(props.visible);
431
- }
432
- });
433
- useUpdateEffect(function () {
434
- if (maskVisibleState) {
435
- ZIndexUtils.set('modal', maskRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, props.baseZIndex || context && context.zIndex['modal'] || PrimeReact.zIndex['modal']);
436
- setVisibleState(true);
437
- }
438
- }, [maskVisibleState]);
439
- useUpdateEffect(function () {
440
- // #3811 if dismissible state is toggled while open we must unregister and re-regisetr
441
- if (visibleState) {
442
- unbindDocumentClickListener();
443
- if (props.dismissable && !props.modal) {
444
- bindDocumentClickListener();
445
- }
446
- }
447
- }, [props.dismissable, props.modal, visibleState]);
448
- useUnmountEffect$1(function () {
449
- disableDocumentSettings();
450
- maskRef.current && ZIndexUtils.clear(maskRef.current);
451
- });
452
- var createCloseIcon = function createCloseIcon() {
453
- var closeButtonProps = mergeProps({
454
- type: 'button',
455
- ref: closeIconRef,
456
- className: cx('closeButton'),
457
- onClick: function onClick(e) {
458
- return onClose(e);
459
- },
460
- 'aria-label': ariaLabel
461
- }, ptm('closeButton'));
462
- var closeIconProps = mergeProps({
463
- className: cx('closeIcon')
464
- }, ptm('closeIcon'));
465
- var icon = props.closeIcon || /*#__PURE__*/React.createElement(TimesIcon, closeIconProps);
466
- var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, closeIconProps), {
467
- props: props
468
- });
469
- var ariaLabel = props.ariaCloseLabel || localeOption('close');
470
- if (props.showCloseIcon) {
471
- return /*#__PURE__*/React.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React.createElement(Ripple, null));
472
- }
473
- return null;
474
- };
475
- var createHeader = function createHeader() {
476
- return props.header ? ObjectUtils.getJSXElement(props.header, props) : null;
477
- };
478
- var createIcons = function createIcons() {
479
- return props.icons ? ObjectUtils.getJSXElement(props.icons, props) : null;
480
- };
481
- var createElement = function createElement() {
482
- var closeIcon = createCloseIcon();
483
- var icons = createIcons();
484
- var header = createHeader();
485
- var transitionTimeout = {
486
- enter: props.fullScreen ? 150 : 300,
487
- exit: props.fullScreen ? 150 : 300
488
- };
489
- var maskProps = mergeProps({
490
- ref: maskRef,
491
- style: sx('mask'),
492
- className: cx('mask', {
493
- maskVisibleState: maskVisibleState
494
- }),
495
- onMouseDown: function onMouseDown(e) {
496
- return onMaskClick(e);
497
- }
498
- }, ptm('mask'));
499
- var rootProps = mergeProps({
500
- id: props.id,
501
- className: cx('root', {
502
- context: context
503
- }),
504
- style: props.style,
505
- role: 'complementary'
506
- }, SidebarBase.getOtherProps(props), ptm('root'));
507
- var headerProps = mergeProps({
508
- className: cx('header')
509
- }, ptm('header'));
510
- var contentProps = mergeProps({
511
- className: cx('content')
512
- }, ptm('content'));
513
- var iconsProps = mergeProps({
514
- className: cx('icons')
515
- }, ptm('icons'));
516
- var transitionProps = mergeProps({
517
- classNames: cx('transition'),
518
- "in": visibleState,
519
- timeout: transitionTimeout,
520
- options: props.transitionOptions,
521
- unmountOnExit: true,
522
- onEntered: onEntered,
523
- onExiting: onExiting,
524
- onExited: onExited
525
- }, ptm('transition'));
526
- return /*#__PURE__*/React.createElement("div", maskProps, /*#__PURE__*/React.createElement(CSSTransition, _extends({
527
- nodeRef: sidebarRef
528
- }, transitionProps), /*#__PURE__*/React.createElement("div", _extends({
529
- ref: sidebarRef
530
- }, rootProps), /*#__PURE__*/React.createElement("div", headerProps, header, /*#__PURE__*/React.createElement("div", iconsProps, icons, closeIcon)), /*#__PURE__*/React.createElement("div", contentProps, props.children))));
531
- };
532
- var createSidebar = function createSidebar() {
533
- var element = createElement();
534
- return /*#__PURE__*/React.createElement(Portal, {
535
- element: element,
536
- appendTo: props.appendTo,
537
- visible: true
538
- });
539
- };
540
- return maskVisibleState && createSidebar();
541
- });
542
- Sidebar.displayName = 'Sidebar';
543
-
544
- export { Sidebar };
@@ -1 +0,0 @@
1
- import*as e from"react";import{PrimeReactContext as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as r}from"primereact/componentbase";import{classNames as o,mergeProps as i}from"primereact/utils";function a(e){return a="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},a(e)}function s(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e){var t=s(e,"string");return"symbol"===a(t)?t:String(t)}var p=n.extend({defaultProps:{__TYPE:"Skeleton",shape:"rectangle",size:null,width:"100%",height:"1rem",borderRadius:null,animation:"wave",style:null,className:null},css:{classes:{root:function(e){var t=e.props;return o("p-skeleton p-component",{"p-skeleton-circle":"circle"===t.shape,"p-skeleton-none":"none"===t.animation})}},inlineStyles:{root:{position:"relative"}},styles:'\n@layer primereact {\n .p-skeleton {\n position: relative;\n overflow: hidden;\n }\n \n .p-skeleton::after {\n content: "";\n animation: p-skeleton-animation 1.2s infinite;\n height: 100%;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n transform: translateX(-100%);\n z-index: 1;\n }\n \n .p-skeleton-circle {\n border-radius: 50%;\n }\n \n .p-skeleton-none::after {\n animation: none;\n }\n}\n\n@keyframes p-skeleton-animation {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(100%);\n }\n}\n'}});function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){var r,o,i;r=e,i=n[t],(o=l(o=t))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=e.memo(e.forwardRef((function(n,a){var s=e.useContext(t),l=p.getProps(n,s),c=p.setMetaData({props:l}),m=c.ptm,f=c.cx,b=c.sx;r(p.css.styles,c.isUnstyled,{name:"skeleton"});var y=e.useRef(null);e.useImperativeHandle(a,(function(){return{props:l,getElement:function(){return y.current}}}));var d=l.size?{width:l.size,height:l.size,borderRadius:l.borderRadius}:{width:l.width,height:l.height,borderRadius:l.borderRadius},v=i({ref:y,className:o(l.className,f("root")),style:u(u({},d),b("root"))},p.getOtherProps(l),m("root"));return e.createElement("div",v)})));m.displayName="Skeleton";export{m as Skeleton};
@@ -1,124 +0,0 @@
1
- 'use client';
2
- import * as React from 'react';
3
- import { PrimeReactContext } from 'primereact/api';
4
- import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
5
- import { classNames, mergeProps } from 'primereact/utils';
6
-
7
- function _typeof(o) {
8
- "@babel/helpers - typeof";
9
-
10
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
11
- return typeof o;
12
- } : function (o) {
13
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
14
- }, _typeof(o);
15
- }
16
-
17
- function _toPrimitive(input, hint) {
18
- if (_typeof(input) !== "object" || input === null) return input;
19
- var prim = input[Symbol.toPrimitive];
20
- if (prim !== undefined) {
21
- var res = prim.call(input, hint || "default");
22
- if (_typeof(res) !== "object") return res;
23
- throw new TypeError("@@toPrimitive must return a primitive value.");
24
- }
25
- return (hint === "string" ? String : Number)(input);
26
- }
27
-
28
- function _toPropertyKey(arg) {
29
- var key = _toPrimitive(arg, "string");
30
- return _typeof(key) === "symbol" ? key : String(key);
31
- }
32
-
33
- function _defineProperty(obj, key, value) {
34
- key = _toPropertyKey(key);
35
- if (key in obj) {
36
- Object.defineProperty(obj, key, {
37
- value: value,
38
- enumerable: true,
39
- configurable: true,
40
- writable: true
41
- });
42
- } else {
43
- obj[key] = value;
44
- }
45
- return obj;
46
- }
47
-
48
- var classes = {
49
- root: function root(_ref) {
50
- var props = _ref.props;
51
- return classNames('p-skeleton p-component', {
52
- 'p-skeleton-circle': props.shape === 'circle',
53
- 'p-skeleton-none': props.animation === 'none'
54
- });
55
- }
56
- };
57
- var styles = "\n@layer primereact {\n .p-skeleton {\n position: relative;\n overflow: hidden;\n }\n \n .p-skeleton::after {\n content: \"\";\n animation: p-skeleton-animation 1.2s infinite;\n height: 100%;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n transform: translateX(-100%);\n z-index: 1;\n }\n \n .p-skeleton-circle {\n border-radius: 50%;\n }\n \n .p-skeleton-none::after {\n animation: none;\n }\n}\n\n@keyframes p-skeleton-animation {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(100%);\n }\n}\n";
58
- var inlineStyles = {
59
- root: {
60
- position: 'relative'
61
- }
62
- };
63
- var SkeletonBase = ComponentBase.extend({
64
- defaultProps: {
65
- __TYPE: 'Skeleton',
66
- shape: 'rectangle',
67
- size: null,
68
- width: '100%',
69
- height: '1rem',
70
- borderRadius: null,
71
- animation: 'wave',
72
- style: null,
73
- className: null
74
- },
75
- css: {
76
- classes: classes,
77
- inlineStyles: inlineStyles,
78
- styles: styles
79
- }
80
- });
81
-
82
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
83
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
84
- var Skeleton = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
85
- var context = React.useContext(PrimeReactContext);
86
- var props = SkeletonBase.getProps(inProps, context);
87
- var _SkeletonBase$setMeta = SkeletonBase.setMetaData({
88
- props: props
89
- }),
90
- ptm = _SkeletonBase$setMeta.ptm,
91
- cx = _SkeletonBase$setMeta.cx,
92
- sx = _SkeletonBase$setMeta.sx,
93
- isUnstyled = _SkeletonBase$setMeta.isUnstyled;
94
- useHandleStyle(SkeletonBase.css.styles, isUnstyled, {
95
- name: 'skeleton'
96
- });
97
- var elementRef = React.useRef(null);
98
- React.useImperativeHandle(ref, function () {
99
- return {
100
- props: props,
101
- getElement: function getElement() {
102
- return elementRef.current;
103
- }
104
- };
105
- });
106
- var style = props.size ? {
107
- width: props.size,
108
- height: props.size,
109
- borderRadius: props.borderRadius
110
- } : {
111
- width: props.width,
112
- height: props.height,
113
- borderRadius: props.borderRadius
114
- };
115
- var rootProps = mergeProps({
116
- ref: elementRef,
117
- className: classNames(props.className, cx('root')),
118
- style: _objectSpread(_objectSpread({}, style), sx('root'))
119
- }, SkeletonBase.getOtherProps(props), ptm('root'));
120
- return /*#__PURE__*/React.createElement("div", rootProps);
121
- }));
122
- Skeleton.displayName = 'Skeleton';
123
-
124
- export { Skeleton };