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,465 +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 { useEventListener } from 'primereact/hooks';
6
- import { ObjectUtils, classNames, DomHandler, mergeProps } from 'primereact/utils';
7
-
8
- function _extends() {
9
- _extends = Object.assign ? Object.assign.bind() : function (target) {
10
- for (var i = 1; i < arguments.length; i++) {
11
- var source = arguments[i];
12
- for (var key in source) {
13
- if (Object.prototype.hasOwnProperty.call(source, key)) {
14
- target[key] = source[key];
15
- }
16
- }
17
- }
18
- return target;
19
- };
20
- return _extends.apply(this, arguments);
21
- }
22
-
23
- function _arrayLikeToArray(arr, len) {
24
- if (len == null || len > arr.length) len = arr.length;
25
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
26
- return arr2;
27
- }
28
-
29
- function _arrayWithoutHoles(arr) {
30
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
31
- }
32
-
33
- function _iterableToArray(iter) {
34
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
35
- }
36
-
37
- function _unsupportedIterableToArray(o, minLen) {
38
- if (!o) return;
39
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
40
- var n = Object.prototype.toString.call(o).slice(8, -1);
41
- if (n === "Object" && o.constructor) n = o.constructor.name;
42
- if (n === "Map" || n === "Set") return Array.from(o);
43
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
44
- }
45
-
46
- function _nonIterableSpread() {
47
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48
- }
49
-
50
- function _toConsumableArray(arr) {
51
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
52
- }
53
-
54
- function _typeof(o) {
55
- "@babel/helpers - typeof";
56
-
57
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
58
- return typeof o;
59
- } : function (o) {
60
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
61
- }, _typeof(o);
62
- }
63
-
64
- function _toPrimitive(input, hint) {
65
- if (_typeof(input) !== "object" || input === null) return input;
66
- var prim = input[Symbol.toPrimitive];
67
- if (prim !== undefined) {
68
- var res = prim.call(input, hint || "default");
69
- if (_typeof(res) !== "object") return res;
70
- throw new TypeError("@@toPrimitive must return a primitive value.");
71
- }
72
- return (hint === "string" ? String : Number)(input);
73
- }
74
-
75
- function _toPropertyKey(arg) {
76
- var key = _toPrimitive(arg, "string");
77
- return _typeof(key) === "symbol" ? key : String(key);
78
- }
79
-
80
- function _defineProperty(obj, key, value) {
81
- key = _toPropertyKey(key);
82
- if (key in obj) {
83
- Object.defineProperty(obj, key, {
84
- value: value,
85
- enumerable: true,
86
- configurable: true,
87
- writable: true
88
- });
89
- } else {
90
- obj[key] = value;
91
- }
92
- return obj;
93
- }
94
-
95
- function _arrayWithHoles(arr) {
96
- if (Array.isArray(arr)) return arr;
97
- }
98
-
99
- function _iterableToArrayLimit(r, l) {
100
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
101
- if (null != t) {
102
- var e,
103
- n,
104
- i,
105
- u,
106
- a = [],
107
- f = !0,
108
- o = !1;
109
- try {
110
- if (i = (t = t.call(r)).next, 0 === l) {
111
- if (Object(t) !== t) return;
112
- f = !1;
113
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
114
- } catch (r) {
115
- o = !0, n = r;
116
- } finally {
117
- try {
118
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
119
- } finally {
120
- if (o) throw n;
121
- }
122
- }
123
- return a;
124
- }
125
- }
126
-
127
- function _nonIterableRest() {
128
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129
- }
130
-
131
- function _slicedToArray(arr, i) {
132
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
133
- }
134
-
135
- var classes = {
136
- root: function root(_ref) {
137
- var props = _ref.props;
138
- return classNames("p-splitter p-component p-splitter-".concat(props.layout));
139
- },
140
- gutter: 'p-splitter-gutter',
141
- gutterHandler: 'p-splitter-gutter-handle',
142
- panel: {
143
- root: 'p-splitter-panel'
144
- }
145
- };
146
- var styles = "\n@layer primereact {\n .p-splitter {\n display: flex;\n flex-wrap: nowrap;\n }\n \n .p-splitter-vertical {\n flex-direction: column;\n }\n \n .p-splitter-panel {\n flex-grow: 1;\n }\n \n .p-splitter-panel-nested {\n display: flex;\n }\n \n .p-splitter-panel .p-splitter {\n flex-grow: 1;\n border: 0 none;\n }\n \n .p-splitter-gutter {\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: col-resize;\n }\n \n .p-splitter-horizontal.p-splitter-resizing {\n cursor: col-resize;\n user-select: none;\n }\n \n .p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle {\n height: 24px;\n width: 100%;\n }\n \n .p-splitter-horizontal > .p-splitter-gutter {\n cursor: col-resize;\n }\n \n .p-splitter-vertical.p-splitter-resizing {\n cursor: row-resize;\n user-select: none;\n }\n \n .p-splitter-vertical > .p-splitter-gutter {\n cursor: row-resize;\n }\n \n .p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle {\n width: 24px;\n height: 100%;\n }\n}\n\n";
147
- var SplitterBase = ComponentBase.extend({
148
- defaultProps: {
149
- __TYPE: 'Splitter',
150
- className: null,
151
- gutterSize: 4,
152
- id: null,
153
- layout: 'horizontal',
154
- onResizeEnd: null,
155
- stateKey: null,
156
- stateStorage: 'session',
157
- style: null,
158
- children: undefined
159
- },
160
- css: {
161
- classes: classes,
162
- styles: styles
163
- }
164
- });
165
- var SplitterPanelBase = ComponentBase.extend({
166
- defaultProps: {
167
- __TYPE: 'SplitterPanel',
168
- className: null,
169
- minSize: null,
170
- size: null,
171
- style: null,
172
- children: undefined
173
- },
174
- getCProps: function getCProps(panel) {
175
- return ObjectUtils.getComponentProps(panel, SplitterPanelBase.defaultProps);
176
- },
177
- getCOtherProps: function getCOtherProps(panel) {
178
- return ObjectUtils.getComponentDiffProps(panel, SplitterPanelBase.defaultProps);
179
- },
180
- getCProp: function getCProp(panel, name) {
181
- return ObjectUtils.getComponentProp(panel, name, SplitterPanelBase.defaultProps);
182
- }
183
- });
184
-
185
- 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; }
186
- 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; }
187
- var SplitterPanel = function SplitterPanel() {};
188
- var Splitter = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
189
- var context = React.useContext(PrimeReactContext);
190
- var props = SplitterBase.getProps(inProps, context);
191
- var elementRef = React.useRef(null);
192
- var gutterRef = React.useRef();
193
- var gutterRefs = React.useRef({});
194
- var size = React.useRef(null);
195
- var dragging = React.useRef(null);
196
- var startPos = React.useRef(null);
197
- var prevPanelElement = React.useRef(null);
198
- var nextPanelElement = React.useRef(null);
199
- var prevPanelSize = React.useRef(null);
200
- var prevPanelSizeNew = React.useRef(null);
201
- var nextPanelSize = React.useRef(null);
202
- var nextPanelSizeNew = React.useRef(null);
203
- var prevPanelIndex = React.useRef(null);
204
- var _React$useState = React.useState([]),
205
- _React$useState2 = _slicedToArray(_React$useState, 2),
206
- panelSizes = _React$useState2[0],
207
- setPanelSizes = _React$useState2[1];
208
- var _React$useState3 = React.useState(false),
209
- _React$useState4 = _slicedToArray(_React$useState3, 2),
210
- nested = _React$useState4[0],
211
- setNested = _React$useState4[1];
212
- var isStateful = props.stateKey != null;
213
- var childrenLength = props.children && props.children.length || 1;
214
- var panelSize = function panelSize(sizes, index) {
215
- return index in sizes ? sizes[index] : props.children && [].concat(props.children)[index].props.size || 100 / childrenLength;
216
- };
217
- var metaData = {
218
- props: props,
219
- state: {
220
- panelSizes: panelSizes,
221
- nested: DomHandler.getAttribute(elementRef.current && elementRef.current.parentElement, 'data-p-splitter-panel-nested') === true
222
- }
223
- };
224
- var _SplitterBase$setMeta = SplitterBase.setMetaData(_objectSpread({}, metaData)),
225
- ptm = _SplitterBase$setMeta.ptm,
226
- cx = _SplitterBase$setMeta.cx,
227
- isUnstyled = _SplitterBase$setMeta.isUnstyled;
228
- useHandleStyle(SplitterBase.css.styles, isUnstyled, {
229
- name: 'splitter'
230
- });
231
- var getPanelPT = function getPanelPT(key) {
232
- return ptm(key, {
233
- context: {
234
- nested: nested
235
- }
236
- });
237
- };
238
- var _useEventListener = useEventListener({
239
- type: 'mousemove',
240
- listener: function listener(event) {
241
- return onResize(event);
242
- }
243
- }),
244
- _useEventListener2 = _slicedToArray(_useEventListener, 2),
245
- bindDocumentMouseMoveListener = _useEventListener2[0],
246
- unbindDocumentMouseMoveListener = _useEventListener2[1];
247
- var _useEventListener3 = useEventListener({
248
- type: 'mouseup',
249
- listener: function listener(event) {
250
- onResizeEnd(event);
251
- unbindMouseListeners();
252
- }
253
- }),
254
- _useEventListener4 = _slicedToArray(_useEventListener3, 2),
255
- bindDocumentMouseUpListener = _useEventListener4[0],
256
- unbindDocumentMouseUpListener = _useEventListener4[1];
257
- var bindMouseListeners = function bindMouseListeners() {
258
- bindDocumentMouseMoveListener();
259
- bindDocumentMouseUpListener();
260
- };
261
- var unbindMouseListeners = function unbindMouseListeners() {
262
- unbindDocumentMouseMoveListener();
263
- unbindDocumentMouseUpListener();
264
- };
265
- var getPanelProp = function getPanelProp(panel, name) {
266
- return SplitterPanelBase.getCProp(panel, name);
267
- };
268
- var validateResize = function validateResize(newPrevPanelSize, newNextPanelSize) {
269
- if (newPrevPanelSize > 100 || newPrevPanelSize < 0) return false;
270
- if (newNextPanelSize > 100 || newNextPanelSize < 0) return false;
271
- if (props.children[prevPanelIndex.current].props && props.children[prevPanelIndex.current].props.minSize && props.children[prevPanelIndex.current].props.minSize > newPrevPanelSize) {
272
- return false;
273
- }
274
- if (props.children[prevPanelIndex.current + 1].props && props.children[prevPanelIndex.current + 1].props.minSize && props.children[prevPanelIndex.current + 1].props.minSize > newNextPanelSize) {
275
- return false;
276
- }
277
- return true;
278
- };
279
- var clear = function clear() {
280
- dragging.current = false;
281
- size.current = null;
282
- startPos.current = null;
283
- prevPanelElement.current = null;
284
- nextPanelElement.current = null;
285
- prevPanelSize.current = null;
286
- prevPanelSizeNew.current = null;
287
- nextPanelSize.current = null;
288
- nextPanelSizeNew.current = null;
289
- prevPanelIndex.current = null;
290
- };
291
- var getStorage = React.useCallback(function () {
292
- switch (props.stateStorage) {
293
- case 'local':
294
- return window.localStorage;
295
- case 'session':
296
- return window.sessionStorage;
297
- default:
298
- throw new Error(props.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
299
- }
300
- }, [props.stateStorage]);
301
- var saveState = function saveState(sizes) {
302
- getStorage().setItem(props.stateKey, JSON.stringify(sizes));
303
- };
304
- var restoreState = React.useCallback(function () {
305
- var stateString = getStorage().getItem(props.stateKey);
306
- if (stateString) setPanelSizes(JSON.parse(stateString));
307
- }, [getStorage, props.stateKey]);
308
- var onResizeStart = function onResizeStart(event, index) {
309
- gutterRef.current = gutterRefs.current[index];
310
- var pageX = event.type === 'touchstart' ? event.touches[0].pageX : event.pageX;
311
- var pageY = event.type === 'touchstart' ? event.touches[0].pageY : event.pageY;
312
- size.current = props.layout === 'horizontal' ? DomHandler.getWidth(elementRef.current) : DomHandler.getHeight(elementRef.current);
313
- dragging.current = true;
314
- startPos.current = props.layout === 'horizontal' ? pageX : pageY;
315
- prevPanelElement.current = gutterRef.current.previousElementSibling;
316
- nextPanelElement.current = gutterRef.current.nextElementSibling;
317
- prevPanelSize.current = 100 * (props.layout === 'horizontal' ? DomHandler.getOuterWidth(prevPanelElement.current, true) : DomHandler.getOuterHeight(prevPanelElement.current, true)) / size.current;
318
- prevPanelSizeNew.current = prevPanelSize.current;
319
- nextPanelSize.current = 100 * (props.layout === 'horizontal' ? DomHandler.getOuterWidth(nextPanelElement.current, true) : DomHandler.getOuterHeight(nextPanelElement.current, true)) / size.current;
320
- nextPanelSizeNew.current = nextPanelSize.current;
321
- prevPanelIndex.current = index;
322
- !isUnstyled() && DomHandler.addClass(gutterRef.current, 'p-splitter-gutter-resizing');
323
- gutterRef.current.setAttribute('data-p-splitter-gutter-resizing', true);
324
- !isUnstyled() && DomHandler.addClass(elementRef.current, 'p-splitter-resizing');
325
- elementRef.current.setAttribute('data-p-splitter-resizing', true);
326
- };
327
- var onResize = function onResize(event) {
328
- var newPos;
329
- var pageX = event.type === 'touchmove' ? event.touches[0].pageX : event.pageX;
330
- var pageY = event.type === 'touchmove' ? event.touches[0].pageY : event.pageY;
331
- if (props.layout === 'horizontal') newPos = pageX * 100 / size.current - startPos.current * 100 / size.current;else newPos = pageY * 100 / size.current - startPos.current * 100 / size.current;
332
- var newPrevPanelSize = prevPanelSize.current + newPos;
333
- var newNextPanelSize = nextPanelSize.current - newPos;
334
- if (validateResize(newPrevPanelSize, newNextPanelSize)) {
335
- prevPanelSizeNew.current = newPrevPanelSize;
336
- nextPanelSizeNew.current = newNextPanelSize;
337
- prevPanelElement.current.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (props.children.length - 1) * props.gutterSize + 'px)';
338
- nextPanelElement.current.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (props.children.length - 1) * props.gutterSize + 'px)';
339
- }
340
- };
341
- var onResizeEnd = function onResizeEnd(event) {
342
- setPanelSizes(function (prev) {
343
- var sizes = [];
344
- for (var index = 0; index < props.children.length; index++) sizes[index] = panelSize(prev, index);
345
- sizes[prevPanelIndex.current] = prevPanelSizeNew.current;
346
- sizes[prevPanelIndex.current + 1] = nextPanelSizeNew.current;
347
- if (props.onResizeEnd) {
348
- props.onResizeEnd({
349
- originalEvent: event,
350
- sizes: sizes
351
- });
352
- }
353
- if (isStateful) saveState(sizes);
354
- return sizes;
355
- });
356
- !isUnstyled() && DomHandler.removeClass(gutterRef.current, 'p-splitter-gutter-resizing');
357
- gutterRef.current.setAttribute('data-p-splitter-gutter-resizing', false);
358
- !isUnstyled() && DomHandler.removeClass(elementRef.current, 'p-splitter-resizing');
359
- elementRef.current.setAttribute('data-p-splitter-resizing', false);
360
- clear();
361
- };
362
- var onGutterMouseDown = function onGutterMouseDown(event, index) {
363
- onResizeStart(event, index);
364
- bindMouseListeners();
365
- };
366
- var onGutterTouchStart = function onGutterTouchStart(event, index) {
367
- onResizeStart(event, index);
368
- window.addEventListener('touchmove', onGutterTouchMove, {
369
- passive: false,
370
- cancelable: false
371
- });
372
- window.addEventListener('touchend', onGutterTouchEnd);
373
- };
374
- var onGutterTouchMove = function onGutterTouchMove(event) {
375
- onResize(event);
376
- };
377
- var onGutterTouchEnd = function onGutterTouchEnd(event) {
378
- onResizeEnd(event);
379
- window.removeEventListener('touchmove', onGutterTouchMove);
380
- window.removeEventListener('touchend', onGutterTouchEnd);
381
- };
382
- React.useImperativeHandle(ref, function () {
383
- return {
384
- props: props,
385
- getElement: function getElement() {
386
- return elementRef.current;
387
- }
388
- };
389
- });
390
- React.useEffect(function () {
391
- var panelElements = _toConsumableArray(elementRef.current.children).filter(function (child) {
392
- return DomHandler.getAttribute(child, 'data-pc-section') === 'splitterpanel.root';
393
- });
394
- panelElements.map(function (panelElement) {
395
- if (panelElement.childNodes && ObjectUtils.isNotEmpty(DomHandler.find(panelElement, "[data-pc-name='splitter']") && DomHandler.find(panelElement, "[data-pc-section='root']"))) {
396
- !isUnstyled() && DomHandler.addClass(panelElement, 'p-splitter-panel-nested');
397
- panelElement.setAttribute('data-p-splitter-panel-nested', true);
398
- setNested(true);
399
- }
400
- });
401
- // eslint-disable-next-line react-hooks/exhaustive-deps
402
- }, []);
403
- React.useEffect(function () {
404
- if (isStateful) restoreState();
405
- }, [restoreState, isStateful]);
406
- var createPanel = function createPanel(panel, index) {
407
- var panelClassName = classNames(getPanelProp(panel, 'className'), cx('panel.root'));
408
- var gutterProps = mergeProps({
409
- ref: function ref(el) {
410
- return gutterRefs.current[index] = el;
411
- },
412
- className: cx('gutter'),
413
- style: props.layout === 'horizontal' ? {
414
- width: props.gutterSize + 'px'
415
- } : {
416
- height: props.gutterSize + 'px'
417
- },
418
- onMouseDown: function onMouseDown(event) {
419
- return onGutterMouseDown(event, index);
420
- },
421
- onTouchStart: function onTouchStart(event) {
422
- return onGutterTouchStart(event, index);
423
- },
424
- onTouchMove: function onTouchMove(event) {
425
- return onGutterTouchMove(event);
426
- },
427
- onTouchEnd: function onTouchEnd(event) {
428
- return onGutterTouchEnd(event);
429
- },
430
- 'data-p-splitter-gutter-resizing': false
431
- }, ptm('gutter'));
432
- var gutterHandlerProps = mergeProps({
433
- className: cx('gutterHandler')
434
- }, ptm('gutterHandler'));
435
- var gutter = index !== props.children.length - 1 && /*#__PURE__*/React.createElement("div", gutterProps, /*#__PURE__*/React.createElement("div", gutterHandlerProps));
436
- var flexBasis = 'calc(' + panelSize(panelSizes, index) + '% - ' + (childrenLength - 1) * props.gutterSize + 'px)';
437
- var rootProps = mergeProps({
438
- key: index,
439
- className: panelClassName,
440
- style: _objectSpread(_objectSpread({}, getPanelProp(panel, 'style')), {}, {
441
- flexBasis: flexBasis
442
- }),
443
- role: 'presentation',
444
- 'data-p-splitter-panel-nested': false
445
- }, getPanelPT('splitterpanel.root'));
446
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", rootProps, getPanelProp(panel, 'children')), gutter);
447
- };
448
- var createPanels = function createPanels() {
449
- return React.Children.map(props.children, createPanel);
450
- };
451
- var rootProps = mergeProps({
452
- id: props.id,
453
- style: props.style,
454
- className: classNames(props.className, cx('root')),
455
- 'data-p-splitter-resizing': false
456
- }, SplitterBase.getOtherProps(props), ptm('root'));
457
- var panels = createPanels();
458
- return /*#__PURE__*/React.createElement("div", _extends({
459
- ref: elementRef
460
- }, rootProps), panels);
461
- }));
462
- SplitterPanel.displayName = 'SplitterPanel';
463
- Splitter.displayName = 'Splitter';
464
-
465
- export { Splitter, SplitterPanel };
@@ -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{useMountEffect as i}from"primereact/hooks";import{classNames as l,UniqueComponentId as o,mergeProps as a,IconUtils as s,ObjectUtils as c}from"primereact/utils";function p(e){return p="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},p(e)}function u(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function m(e){var t=u(e,"string");return"symbol"===p(t)?t:String(t)}function f(e){if(Array.isArray(e))return e}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,o,a=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=n.extend({defaultProps:{__TYPE:"Steps",id:null,model:null,activeIndex:0,readOnly:!0,style:null,className:null,onSelect:null,children:void 0},css:{classes:{icon:function(e){return l("p-menuitem-icon",e.item.icon)},label:"p-steps-title",step:"p-steps-number",action:"p-menuitem-link",menuitem:function(e){return l("p-steps-item",e.item.className,{"p-highlight p-steps-current":e.active,"p-disabled":e.disabled})},root:function(e){var t=e.props;return l("p-steps p-component",{"p-readonly":t.readOnly},t.className)}},styles:"\n@layer primereact {\n .p-steps {\n position: relative;\n }\n \n .p-steps ul {\n padding: 0;\n margin: 0;\n list-style-type: none;\n display: flex;\n }\n \n .p-steps-item {\n position: relative;\n display: flex;\n justify-content: center;\n flex: 1 1 auto;\n }\n \n .p-steps-item .p-menuitem-link {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n overflow: hidden;\n text-decoration: none;\n }\n \n .p-steps.p-readonly .p-steps-item {\n cursor: auto;\n }\n \n .p-steps-item.p-steps-current .p-menuitem-link {\n cursor: default;\n }\n \n .p-steps-title {\n white-space: nowrap;\n }\n \n .p-steps-number {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-steps-title {\n display: block;\n }\n}\n"}});function O(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){var r,i,l;r=e,l=n[t],(i=m(i=t))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=e.memo(e.forwardRef((function(n,p){var u,m,y=e.useContext(t),O=g.getProps(n,y),S=e.useState(O.id),j=(m=2,f(u=S)||d(u,m)||b(u,m)||v()),x=j[0],w=j[1],E=e.useRef(null),N=g.setMetaData({props:O,state:{id:x}}),P=N.ptm,k=N.cx;r(g.css.styles,N.isUnstyled,{name:"steps"});var I=function(e,t,n){O.readOnly||t.disabled?e.preventDefault():(O.onSelect&&O.onSelect({originalEvent:e,item:t,index:n}),t.url||e.preventDefault(),t.command&&t.command({originalEvent:e,item:t,index:n}))},C=function(t,n){if(!1===t.visible)return null;var r=t.id||x+"_"+n,i=n===O.activeIndex,o=t.disabled||n!==O.activeIndex&&O.readOnly,p=o?-1:"",u=l("p-menuitem-icon",t.icon),m=a({className:k("icon",{item:t})},P("icon")),f=s.getJSXIcon(t.icon,h({},m),{props:O}),d=a({className:k("label")},P("label")),y=t.label&&e.createElement("span",d,t.label),b=a({className:k("step")},P("step")),v=a({href:t.url||"#",className:k("action"),role:"presentation",target:t.target,onClick:function(e){return I(e,t,n)},tabIndex:p},P("action")),g=e.createElement("a",v,e.createElement("span",b,n+1),f,y);t.template&&(g=c.getJSXElement(t.template,t,{onClick:function(e){return I(e,t,n)},className:"p-menuitem-link",labelClassName:"p-steps-title",numberClassName:"p-steps-number",iconClassName:u,element:g,props:O,tabIndex:p,active:i,disabled:o}));var S=a({key:r,id:r,className:k("menuitem",{active:i,disabled:o,item:t}),style:t.style,role:"tab","aria-selected":i,"aria-expanded":i},P("menuitem"));return e.createElement("li",S,g)};i((function(){x||w(o())})),e.useImperativeHandle(p,(function(){return{props:O,getElement:function(){return E.current}}}));var D=a({id:O.id,ref:E,className:k("root"),style:O.style},g.getOtherProps(O),P("root")),A=function(){var t=a({role:"tablist"},P("menu"));if(O.model){var n=O.model.map(C);return e.createElement("ul",t,n)}return null}();return e.createElement("div",D,A)})));S.displayName="Steps";export{S as Steps};