primereact 10.5.0 → 10.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/api/api.d.ts +2 -2
  2. package/autocomplete/autocomplete.cjs.js +2 -3
  3. package/autocomplete/autocomplete.cjs.min.js +1 -1
  4. package/autocomplete/autocomplete.esm.js +2 -3
  5. package/autocomplete/autocomplete.esm.min.js +1 -1
  6. package/autocomplete/autocomplete.js +2 -3
  7. package/autocomplete/autocomplete.min.js +1 -1
  8. package/breadcrumb/breadcrumb.cjs.js +4 -3
  9. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  10. package/breadcrumb/breadcrumb.esm.js +4 -3
  11. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  12. package/breadcrumb/breadcrumb.js +4 -3
  13. package/breadcrumb/breadcrumb.min.js +1 -1
  14. package/button/button.cjs.js +2 -3
  15. package/button/button.cjs.min.js +1 -1
  16. package/button/button.esm.js +2 -3
  17. package/button/button.esm.min.js +1 -1
  18. package/button/button.js +2 -3
  19. package/button/button.min.js +1 -1
  20. package/checkbox/checkbox.cjs.js +2 -3
  21. package/checkbox/checkbox.cjs.min.js +1 -1
  22. package/checkbox/checkbox.esm.js +2 -3
  23. package/checkbox/checkbox.esm.min.js +1 -1
  24. package/checkbox/checkbox.js +2 -3
  25. package/checkbox/checkbox.min.js +1 -1
  26. package/chips/chips.cjs.js +2 -3
  27. package/chips/chips.cjs.min.js +1 -1
  28. package/chips/chips.esm.js +2 -3
  29. package/chips/chips.esm.min.js +1 -1
  30. package/chips/chips.js +2 -3
  31. package/chips/chips.min.js +1 -1
  32. package/colorpicker/colorpicker.cjs.js +2 -3
  33. package/colorpicker/colorpicker.cjs.min.js +1 -1
  34. package/colorpicker/colorpicker.esm.js +2 -3
  35. package/colorpicker/colorpicker.esm.min.js +1 -1
  36. package/colorpicker/colorpicker.js +2 -3
  37. package/colorpicker/colorpicker.min.js +1 -1
  38. package/confirmdialog/confirmdialog.cjs.js +6 -2
  39. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  40. package/confirmdialog/confirmdialog.esm.js +6 -2
  41. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  42. package/confirmdialog/confirmdialog.js +7 -3
  43. package/confirmdialog/confirmdialog.min.js +1 -1
  44. package/contextmenu/contextmenu.cjs.js +4 -3
  45. package/contextmenu/contextmenu.cjs.min.js +1 -1
  46. package/contextmenu/contextmenu.esm.js +4 -3
  47. package/contextmenu/contextmenu.esm.min.js +1 -1
  48. package/contextmenu/contextmenu.js +4 -3
  49. package/contextmenu/contextmenu.min.js +1 -1
  50. package/core/core.js +1733 -19015
  51. package/core/core.min.js +33 -33
  52. package/datatable/datatable.cjs.js +6 -5
  53. package/datatable/datatable.cjs.min.js +1 -1
  54. package/datatable/datatable.d.ts +10 -2
  55. package/datatable/datatable.esm.js +6 -5
  56. package/datatable/datatable.esm.min.js +1 -1
  57. package/datatable/datatable.js +6 -5
  58. package/datatable/datatable.min.js +1 -1
  59. package/dropdown/dropdown.cjs.js +26 -25
  60. package/dropdown/dropdown.cjs.min.js +1 -1
  61. package/dropdown/dropdown.esm.js +26 -25
  62. package/dropdown/dropdown.esm.min.js +1 -1
  63. package/dropdown/dropdown.js +26 -25
  64. package/dropdown/dropdown.min.js +1 -1
  65. package/icons/arrowdown/index.cjs.js +2 -642
  66. package/icons/arrowdown/index.cjs.min.js +1 -1
  67. package/icons/arrowdown/index.esm.js +2 -642
  68. package/icons/arrowdown/index.esm.min.js +1 -1
  69. package/icons/arrowdown/index.js +2 -642
  70. package/icons/arrowdown/index.min.js +1 -1
  71. package/icons/arrowup/index.cjs.js +2 -642
  72. package/icons/arrowup/index.cjs.min.js +1 -1
  73. package/icons/arrowup/index.esm.js +2 -642
  74. package/icons/arrowup/index.esm.min.js +1 -1
  75. package/icons/arrowup/index.js +2 -642
  76. package/icons/arrowup/index.min.js +1 -1
  77. package/icons/ban/index.cjs.js +2 -642
  78. package/icons/ban/index.cjs.min.js +1 -1
  79. package/icons/ban/index.esm.js +2 -642
  80. package/icons/ban/index.esm.min.js +1 -1
  81. package/icons/ban/index.js +2 -642
  82. package/icons/ban/index.min.js +1 -1
  83. package/icons/blank/index.cjs.js +62 -0
  84. package/icons/blank/index.cjs.min.js +1 -0
  85. package/icons/blank/index.d.ts +19 -0
  86. package/icons/blank/index.esm.js +38 -0
  87. package/icons/blank/index.esm.min.js +1 -0
  88. package/icons/blank/index.js +65 -0
  89. package/icons/blank/index.min.js +1 -0
  90. package/icons/blank/package.json +7 -0
  91. package/icons/download/index.cjs.js +2 -642
  92. package/icons/download/index.cjs.min.js +1 -1
  93. package/icons/download/index.esm.js +2 -642
  94. package/icons/download/index.esm.min.js +1 -1
  95. package/icons/download/index.js +2 -642
  96. package/icons/download/index.min.js +1 -1
  97. package/icons/exclamationtriangle/index.cjs.js +2 -642
  98. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  99. package/icons/exclamationtriangle/index.esm.js +2 -642
  100. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  101. package/icons/exclamationtriangle/index.js +2 -642
  102. package/icons/exclamationtriangle/index.min.js +1 -1
  103. package/icons/eyeslash/index.cjs.js +2 -642
  104. package/icons/eyeslash/index.cjs.min.js +1 -1
  105. package/icons/eyeslash/index.esm.js +2 -642
  106. package/icons/eyeslash/index.esm.min.js +1 -1
  107. package/icons/eyeslash/index.js +2 -642
  108. package/icons/eyeslash/index.min.js +1 -1
  109. package/icons/filter/index.cjs.js +2 -642
  110. package/icons/filter/index.cjs.min.js +1 -1
  111. package/icons/filter/index.esm.js +2 -642
  112. package/icons/filter/index.esm.min.js +1 -1
  113. package/icons/filter/index.js +2 -642
  114. package/icons/filter/index.min.js +1 -1
  115. package/icons/filterslash/index.cjs.js +2 -642
  116. package/icons/filterslash/index.cjs.min.js +1 -1
  117. package/icons/filterslash/index.esm.js +2 -642
  118. package/icons/filterslash/index.esm.min.js +1 -1
  119. package/icons/filterslash/index.js +2 -642
  120. package/icons/filterslash/index.min.js +1 -1
  121. package/icons/infocircle/index.cjs.js +2 -642
  122. package/icons/infocircle/index.cjs.min.js +1 -1
  123. package/icons/infocircle/index.esm.js +2 -642
  124. package/icons/infocircle/index.esm.min.js +1 -1
  125. package/icons/infocircle/index.js +2 -642
  126. package/icons/infocircle/index.min.js +1 -1
  127. package/icons/pencil/index.cjs.js +2 -642
  128. package/icons/pencil/index.cjs.min.js +1 -1
  129. package/icons/pencil/index.esm.js +2 -642
  130. package/icons/pencil/index.esm.min.js +1 -1
  131. package/icons/pencil/index.js +2 -642
  132. package/icons/pencil/index.min.js +1 -1
  133. package/icons/plus/index.cjs.js +2 -642
  134. package/icons/plus/index.cjs.min.js +1 -1
  135. package/icons/plus/index.esm.js +2 -642
  136. package/icons/plus/index.esm.min.js +1 -1
  137. package/icons/plus/index.js +2 -642
  138. package/icons/plus/index.min.js +1 -1
  139. package/icons/refresh/index.cjs.js +2 -642
  140. package/icons/refresh/index.cjs.min.js +1 -1
  141. package/icons/refresh/index.esm.js +2 -642
  142. package/icons/refresh/index.esm.min.js +1 -1
  143. package/icons/refresh/index.js +2 -642
  144. package/icons/refresh/index.min.js +1 -1
  145. package/icons/search/index.cjs.js +2 -642
  146. package/icons/search/index.cjs.min.js +1 -1
  147. package/icons/search/index.esm.js +2 -642
  148. package/icons/search/index.esm.min.js +1 -1
  149. package/icons/search/index.js +2 -642
  150. package/icons/search/index.min.js +1 -1
  151. package/icons/searchminus/index.cjs.js +2 -642
  152. package/icons/searchminus/index.cjs.min.js +1 -1
  153. package/icons/searchminus/index.esm.js +2 -642
  154. package/icons/searchminus/index.esm.min.js +1 -1
  155. package/icons/searchminus/index.js +2 -642
  156. package/icons/searchminus/index.min.js +1 -1
  157. package/icons/searchplus/index.cjs.js +2 -642
  158. package/icons/searchplus/index.cjs.min.js +1 -1
  159. package/icons/searchplus/index.esm.js +2 -642
  160. package/icons/searchplus/index.esm.min.js +1 -1
  161. package/icons/searchplus/index.js +2 -642
  162. package/icons/searchplus/index.min.js +1 -1
  163. package/icons/sortalt/index.cjs.js +2 -642
  164. package/icons/sortalt/index.cjs.min.js +1 -1
  165. package/icons/sortalt/index.esm.js +2 -642
  166. package/icons/sortalt/index.esm.min.js +1 -1
  167. package/icons/sortalt/index.js +2 -642
  168. package/icons/sortalt/index.min.js +1 -1
  169. package/icons/sortamountdown/index.cjs.js +2 -642
  170. package/icons/sortamountdown/index.cjs.min.js +1 -1
  171. package/icons/sortamountdown/index.esm.js +2 -642
  172. package/icons/sortamountdown/index.esm.min.js +1 -1
  173. package/icons/sortamountdown/index.js +2 -642
  174. package/icons/sortamountdown/index.min.js +1 -1
  175. package/icons/sortamountupalt/index.cjs.js +2 -642
  176. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  177. package/icons/sortamountupalt/index.esm.js +2 -642
  178. package/icons/sortamountupalt/index.esm.min.js +1 -1
  179. package/icons/sortamountupalt/index.js +2 -642
  180. package/icons/sortamountupalt/index.min.js +1 -1
  181. package/icons/spinner/index.cjs.js +2 -642
  182. package/icons/spinner/index.cjs.min.js +1 -1
  183. package/icons/spinner/index.esm.js +2 -642
  184. package/icons/spinner/index.esm.min.js +1 -1
  185. package/icons/spinner/index.js +2 -642
  186. package/icons/spinner/index.min.js +1 -1
  187. package/icons/star/index.cjs.js +2 -642
  188. package/icons/star/index.cjs.min.js +1 -1
  189. package/icons/star/index.esm.js +2 -642
  190. package/icons/star/index.esm.min.js +1 -1
  191. package/icons/star/index.js +2 -642
  192. package/icons/star/index.min.js +1 -1
  193. package/icons/starfill/index.cjs.js +2 -642
  194. package/icons/starfill/index.cjs.min.js +1 -1
  195. package/icons/starfill/index.esm.js +2 -642
  196. package/icons/starfill/index.esm.min.js +1 -1
  197. package/icons/starfill/index.js +2 -642
  198. package/icons/starfill/index.min.js +1 -1
  199. package/icons/thlarge/index.cjs.js +2 -642
  200. package/icons/thlarge/index.cjs.min.js +1 -1
  201. package/icons/thlarge/index.esm.js +2 -642
  202. package/icons/thlarge/index.esm.min.js +1 -1
  203. package/icons/thlarge/index.js +2 -642
  204. package/icons/thlarge/index.min.js +1 -1
  205. package/icons/timescircle/index.cjs.js +2 -642
  206. package/icons/timescircle/index.cjs.min.js +1 -1
  207. package/icons/timescircle/index.esm.js +2 -642
  208. package/icons/timescircle/index.esm.min.js +1 -1
  209. package/icons/timescircle/index.js +2 -642
  210. package/icons/timescircle/index.min.js +1 -1
  211. package/icons/trash/index.cjs.js +2 -642
  212. package/icons/trash/index.cjs.min.js +1 -1
  213. package/icons/trash/index.esm.js +2 -642
  214. package/icons/trash/index.esm.min.js +1 -1
  215. package/icons/trash/index.js +2 -642
  216. package/icons/trash/index.min.js +1 -1
  217. package/icons/undo/index.cjs.js +2 -642
  218. package/icons/undo/index.cjs.min.js +1 -1
  219. package/icons/undo/index.esm.js +2 -642
  220. package/icons/undo/index.esm.min.js +1 -1
  221. package/icons/undo/index.js +2 -642
  222. package/icons/undo/index.min.js +1 -1
  223. package/icons/upload/index.cjs.js +2 -642
  224. package/icons/upload/index.cjs.min.js +1 -1
  225. package/icons/upload/index.esm.js +2 -642
  226. package/icons/upload/index.esm.min.js +1 -1
  227. package/icons/upload/index.js +2 -642
  228. package/icons/upload/index.min.js +1 -1
  229. package/icons/windowmaximize/index.cjs.js +2 -642
  230. package/icons/windowmaximize/index.cjs.min.js +1 -1
  231. package/icons/windowmaximize/index.esm.js +2 -642
  232. package/icons/windowmaximize/index.esm.min.js +1 -1
  233. package/icons/windowmaximize/index.js +2 -642
  234. package/icons/windowmaximize/index.min.js +1 -1
  235. package/icons/windowminimize/index.cjs.js +2 -642
  236. package/icons/windowminimize/index.cjs.min.js +1 -1
  237. package/icons/windowminimize/index.esm.js +2 -642
  238. package/icons/windowminimize/index.esm.min.js +1 -1
  239. package/icons/windowminimize/index.js +2 -642
  240. package/icons/windowminimize/index.min.js +1 -1
  241. package/image/image.cjs.js +7 -566
  242. package/image/image.cjs.min.js +1 -1
  243. package/image/image.esm.js +9 -568
  244. package/image/image.esm.min.js +1 -1
  245. package/image/image.js +7 -566
  246. package/image/image.min.js +1 -1
  247. package/inputnumber/inputnumber.cjs.js +2 -3
  248. package/inputnumber/inputnumber.cjs.min.js +1 -1
  249. package/inputnumber/inputnumber.esm.js +2 -3
  250. package/inputnumber/inputnumber.esm.min.js +1 -1
  251. package/inputnumber/inputnumber.js +2 -3
  252. package/inputnumber/inputnumber.min.js +1 -1
  253. package/inputswitch/inputswitch.cjs.js +2 -3
  254. package/inputswitch/inputswitch.cjs.min.js +1 -1
  255. package/inputswitch/inputswitch.esm.js +2 -3
  256. package/inputswitch/inputswitch.esm.min.js +1 -1
  257. package/inputswitch/inputswitch.js +2 -3
  258. package/inputswitch/inputswitch.min.js +1 -1
  259. package/inputtext/inputtext.cjs.js +2 -3
  260. package/inputtext/inputtext.cjs.min.js +1 -1
  261. package/inputtext/inputtext.esm.js +2 -3
  262. package/inputtext/inputtext.esm.min.js +1 -1
  263. package/inputtext/inputtext.js +2 -3
  264. package/inputtext/inputtext.min.js +1 -1
  265. package/inputtextarea/inputtextarea.cjs.js +2 -3
  266. package/inputtextarea/inputtextarea.cjs.min.js +1 -1
  267. package/inputtextarea/inputtextarea.esm.js +2 -3
  268. package/inputtextarea/inputtextarea.esm.min.js +1 -1
  269. package/inputtextarea/inputtextarea.js +2 -3
  270. package/inputtextarea/inputtextarea.min.js +1 -1
  271. package/listbox/listbox.cjs.js +3 -4
  272. package/listbox/listbox.cjs.min.js +1 -1
  273. package/listbox/listbox.esm.js +3 -4
  274. package/listbox/listbox.esm.min.js +1 -1
  275. package/listbox/listbox.js +3 -4
  276. package/listbox/listbox.min.js +1 -1
  277. package/megamenu/megamenu.cjs.js +3 -3
  278. package/megamenu/megamenu.cjs.min.js +1 -1
  279. package/megamenu/megamenu.esm.js +3 -3
  280. package/megamenu/megamenu.esm.min.js +1 -1
  281. package/megamenu/megamenu.js +3 -3
  282. package/megamenu/megamenu.min.js +1 -1
  283. package/mention/mention.cjs.js +2 -3
  284. package/mention/mention.cjs.min.js +1 -1
  285. package/mention/mention.esm.js +2 -3
  286. package/mention/mention.esm.min.js +1 -1
  287. package/mention/mention.js +2 -3
  288. package/mention/mention.min.js +1 -1
  289. package/menubar/menubar.cjs.js +18 -14
  290. package/menubar/menubar.cjs.min.js +1 -1
  291. package/menubar/menubar.esm.js +18 -14
  292. package/menubar/menubar.esm.min.js +1 -1
  293. package/menubar/menubar.js +18 -14
  294. package/menubar/menubar.min.js +1 -1
  295. package/multiselect/multiselect.cjs.js +63 -37
  296. package/multiselect/multiselect.cjs.min.js +1 -1
  297. package/multiselect/multiselect.esm.js +63 -37
  298. package/multiselect/multiselect.esm.min.js +1 -1
  299. package/multiselect/multiselect.js +63 -37
  300. package/multiselect/multiselect.min.js +1 -1
  301. package/multistatecheckbox/multistatecheckbox.cjs.js +2 -3
  302. package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
  303. package/multistatecheckbox/multistatecheckbox.esm.js +2 -3
  304. package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
  305. package/multistatecheckbox/multistatecheckbox.js +2 -3
  306. package/multistatecheckbox/multistatecheckbox.min.js +1 -1
  307. package/package.json +1 -1
  308. package/panelmenu/panelmenu.cjs.js +6 -9
  309. package/panelmenu/panelmenu.cjs.min.js +1 -1
  310. package/panelmenu/panelmenu.d.ts +18 -0
  311. package/panelmenu/panelmenu.esm.js +6 -9
  312. package/panelmenu/panelmenu.esm.min.js +1 -1
  313. package/panelmenu/panelmenu.js +6 -9
  314. package/panelmenu/panelmenu.min.js +1 -1
  315. package/passthrough/tailwind/index.cjs.js +11 -1
  316. package/passthrough/tailwind/index.cjs.min.js +1 -1
  317. package/passthrough/tailwind/index.esm.js +11 -1
  318. package/passthrough/tailwind/index.esm.min.js +1 -1
  319. package/passthrough/tailwind/index.js +11 -1
  320. package/passthrough/tailwind/index.min.js +1 -1
  321. package/password/password.cjs.js +34 -24
  322. package/password/password.cjs.min.js +1 -1
  323. package/password/password.esm.js +34 -24
  324. package/password/password.esm.min.js +1 -1
  325. package/password/password.js +34 -24
  326. package/password/password.min.js +1 -1
  327. package/picklist/picklist.cjs.js +1 -1
  328. package/picklist/picklist.cjs.min.js +1 -1
  329. package/picklist/picklist.esm.js +1 -1
  330. package/picklist/picklist.esm.min.js +1 -1
  331. package/picklist/picklist.js +1 -1
  332. package/picklist/picklist.min.js +1 -1
  333. package/primereact.all.cjs.js +310 -758
  334. package/primereact.all.cjs.min.js +1 -1
  335. package/primereact.all.esm.js +310 -758
  336. package/primereact.all.esm.min.js +1 -1
  337. package/primereact.all.js +310 -758
  338. package/primereact.all.min.js +1 -1
  339. package/radiobutton/radiobutton.cjs.js +2 -4
  340. package/radiobutton/radiobutton.cjs.min.js +1 -1
  341. package/radiobutton/radiobutton.esm.js +2 -4
  342. package/radiobutton/radiobutton.esm.min.js +1 -1
  343. package/radiobutton/radiobutton.js +2 -4
  344. package/radiobutton/radiobutton.min.js +1 -1
  345. package/rating/rating.cjs.js +2 -3
  346. package/rating/rating.cjs.min.js +1 -1
  347. package/rating/rating.esm.js +2 -3
  348. package/rating/rating.esm.min.js +1 -1
  349. package/rating/rating.js +2 -3
  350. package/rating/rating.min.js +1 -1
  351. package/selectbutton/selectbutton.cjs.js +3 -4
  352. package/selectbutton/selectbutton.cjs.min.js +1 -1
  353. package/selectbutton/selectbutton.esm.js +3 -4
  354. package/selectbutton/selectbutton.esm.min.js +1 -1
  355. package/selectbutton/selectbutton.js +3 -4
  356. package/selectbutton/selectbutton.min.js +1 -1
  357. package/slidemenu/slidemenu.cjs.js +4 -3
  358. package/slidemenu/slidemenu.cjs.min.js +1 -1
  359. package/slidemenu/slidemenu.esm.js +4 -3
  360. package/slidemenu/slidemenu.esm.min.js +1 -1
  361. package/slidemenu/slidemenu.js +4 -3
  362. package/slidemenu/slidemenu.min.js +1 -1
  363. package/splitbutton/splitbutton.cjs.js +9 -12
  364. package/splitbutton/splitbutton.cjs.min.js +1 -1
  365. package/splitbutton/splitbutton.esm.js +9 -12
  366. package/splitbutton/splitbutton.esm.min.js +1 -1
  367. package/splitbutton/splitbutton.js +9 -12
  368. package/splitbutton/splitbutton.min.js +1 -1
  369. package/splitter/splitter.cjs.js +9 -14
  370. package/splitter/splitter.cjs.min.js +1 -1
  371. package/splitter/splitter.esm.js +9 -14
  372. package/splitter/splitter.esm.min.js +1 -1
  373. package/splitter/splitter.js +9 -14
  374. package/splitter/splitter.min.js +1 -1
  375. package/steps/steps.cjs.js +4 -3
  376. package/steps/steps.cjs.min.js +1 -1
  377. package/steps/steps.esm.js +4 -3
  378. package/steps/steps.esm.min.js +1 -1
  379. package/steps/steps.js +4 -3
  380. package/steps/steps.min.js +1 -1
  381. package/tabmenu/tabmenu.cjs.js +4 -3
  382. package/tabmenu/tabmenu.cjs.min.js +1 -1
  383. package/tabmenu/tabmenu.esm.js +4 -3
  384. package/tabmenu/tabmenu.esm.min.js +1 -1
  385. package/tabmenu/tabmenu.js +4 -3
  386. package/tabmenu/tabmenu.min.js +1 -1
  387. package/tieredmenu/tieredmenu.cjs.js +6 -8
  388. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  389. package/tieredmenu/tieredmenu.esm.js +6 -8
  390. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  391. package/tieredmenu/tieredmenu.js +6 -8
  392. package/tieredmenu/tieredmenu.min.js +1 -1
  393. package/togglebutton/togglebutton.cjs.js +2 -3
  394. package/togglebutton/togglebutton.cjs.min.js +1 -1
  395. package/togglebutton/togglebutton.esm.js +2 -3
  396. package/togglebutton/togglebutton.esm.min.js +1 -1
  397. package/togglebutton/togglebutton.js +2 -3
  398. package/togglebutton/togglebutton.min.js +1 -1
  399. package/tree/tree.cjs.js +32 -31
  400. package/tree/tree.cjs.min.js +1 -1
  401. package/tree/tree.d.ts +5 -0
  402. package/tree/tree.esm.js +32 -31
  403. package/tree/tree.esm.min.js +1 -1
  404. package/tree/tree.js +32 -31
  405. package/tree/tree.min.js +1 -1
  406. package/treeselect/treeselect.cjs.js +3 -4
  407. package/treeselect/treeselect.cjs.min.js +1 -1
  408. package/treeselect/treeselect.esm.js +3 -4
  409. package/treeselect/treeselect.esm.min.js +1 -1
  410. package/treeselect/treeselect.js +3 -4
  411. package/treeselect/treeselect.min.js +1 -1
  412. package/treetable/treetable.cjs.js +1 -1
  413. package/treetable/treetable.cjs.min.js +1 -1
  414. package/treetable/treetable.esm.js +1 -1
  415. package/treetable/treetable.esm.min.js +1 -1
  416. package/treetable/treetable.js +1 -1
  417. package/treetable/treetable.min.js +1 -1
  418. package/tristatecheckbox/tristatecheckbox.cjs.js +3 -4
  419. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  420. package/tristatecheckbox/tristatecheckbox.esm.js +3 -4
  421. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  422. package/tristatecheckbox/tristatecheckbox.js +3 -4
  423. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  424. package/web-types.json +65 -1
@@ -17,640 +17,8 @@ function _extends() {
17
17
  return _extends.apply(this, arguments);
18
18
  }
19
19
 
20
- function _arrayWithHoles(arr) {
21
- if (Array.isArray(arr)) return arr;
22
- }
23
-
24
- function _iterableToArrayLimit(r, l) {
25
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
26
- if (null != t) {
27
- var e,
28
- n,
29
- i,
30
- u,
31
- a = [],
32
- f = !0,
33
- o = !1;
34
- try {
35
- if (i = (t = t.call(r)).next, 0 === l) {
36
- if (Object(t) !== t) return;
37
- f = !1;
38
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
39
- } catch (r) {
40
- o = !0, n = r;
41
- } finally {
42
- try {
43
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
44
- } finally {
45
- if (o) throw n;
46
- }
47
- }
48
- return a;
49
- }
50
- }
51
-
52
- function _arrayLikeToArray$1(arr, len) {
53
- if (len == null || len > arr.length) len = arr.length;
54
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
55
- return arr2;
56
- }
57
-
58
- function _unsupportedIterableToArray$1(o, minLen) {
59
- if (!o) return;
60
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
61
- var n = Object.prototype.toString.call(o).slice(8, -1);
62
- if (n === "Object" && o.constructor) n = o.constructor.name;
63
- if (n === "Map" || n === "Set") return Array.from(o);
64
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
65
- }
66
-
67
- function _nonIterableRest() {
68
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
69
- }
70
-
71
- function _slicedToArray(arr, i) {
72
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
73
- }
74
-
75
- function _typeof(o) {
76
- "@babel/helpers - typeof";
77
-
78
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
79
- return typeof o;
80
- } : function (o) {
81
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
82
- }, _typeof(o);
83
- }
84
-
85
- function _arrayWithoutHoles(arr) {
86
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
87
- }
88
-
89
- function _iterableToArray(iter) {
90
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
91
- }
92
-
93
- function _nonIterableSpread() {
94
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
95
- }
96
-
97
- function _toConsumableArray(arr) {
98
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
99
- }
100
-
101
- function _classCallCheck(instance, Constructor) {
102
- if (!(instance instanceof Constructor)) {
103
- throw new TypeError("Cannot call a class as a function");
104
- }
105
- }
106
-
107
- function _toPrimitive(input, hint) {
108
- if (_typeof(input) !== "object" || input === null) return input;
109
- var prim = input[Symbol.toPrimitive];
110
- if (prim !== undefined) {
111
- var res = prim.call(input, hint || "default");
112
- if (_typeof(res) !== "object") return res;
113
- throw new TypeError("@@toPrimitive must return a primitive value.");
114
- }
115
- return (hint === "string" ? String : Number)(input);
116
- }
117
-
118
- function _toPropertyKey(arg) {
119
- var key = _toPrimitive(arg, "string");
120
- return _typeof(key) === "symbol" ? key : String(key);
121
- }
122
-
123
- function _defineProperties(target, props) {
124
- for (var i = 0; i < props.length; i++) {
125
- var descriptor = props[i];
126
- descriptor.enumerable = descriptor.enumerable || false;
127
- descriptor.configurable = true;
128
- if ("value" in descriptor) descriptor.writable = true;
129
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
130
- }
131
- }
132
- function _createClass(Constructor, protoProps, staticProps) {
133
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
134
- if (staticProps) _defineProperties(Constructor, staticProps);
135
- Object.defineProperty(Constructor, "prototype", {
136
- writable: false
137
- });
138
- return Constructor;
139
- }
140
-
141
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
142
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
143
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
144
- var ObjectUtils = /*#__PURE__*/function () {
145
- function ObjectUtils() {
146
- _classCallCheck(this, ObjectUtils);
147
- }
148
- _createClass(ObjectUtils, null, [{
149
- key: "equals",
150
- value: function equals(obj1, obj2, field) {
151
- if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
152
- return this.deepEquals(this.resolveFieldData(obj1, field), this.resolveFieldData(obj2, field));
153
- }
154
- return this.deepEquals(obj1, obj2);
155
- }
156
-
157
- /**
158
- * Compares two JSON objects for deep equality recursively comparing both objects.
159
- * @param {*} a the first JSON object
160
- * @param {*} b the second JSON object
161
- * @returns true if equals, false it not
162
- */
163
- }, {
164
- key: "deepEquals",
165
- value: function deepEquals(a, b) {
166
- if (a === b) return true;
167
- if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
168
- var arrA = Array.isArray(a),
169
- arrB = Array.isArray(b),
170
- i,
171
- length,
172
- key;
173
- if (arrA && arrB) {
174
- length = a.length;
175
- if (length !== b.length) return false;
176
- for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;
177
- return true;
178
- }
179
- if (arrA !== arrB) return false;
180
- var dateA = a instanceof Date,
181
- dateB = b instanceof Date;
182
- if (dateA !== dateB) return false;
183
- if (dateA && dateB) return a.getTime() === b.getTime();
184
- var regexpA = a instanceof RegExp,
185
- regexpB = b instanceof RegExp;
186
- if (regexpA !== regexpB) return false;
187
- if (regexpA && regexpB) return a.toString() === b.toString();
188
- var keys = Object.keys(a);
189
- length = keys.length;
190
- if (length !== Object.keys(b).length) return false;
191
- for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
192
- for (i = length; i-- !== 0;) {
193
- key = keys[i];
194
- if (!this.deepEquals(a[key], b[key])) return false;
195
- }
196
- return true;
197
- }
198
-
199
- /*eslint no-self-compare: "off"*/
200
- return a !== a && b !== b;
201
- }
202
- }, {
203
- key: "resolveFieldData",
204
- value: function resolveFieldData(data, field) {
205
- if (!data || !field) {
206
- // short circuit if there is nothing to resolve
207
- return null;
208
- }
209
- try {
210
- var value = data[field];
211
- if (this.isNotEmpty(value)) return value;
212
- } catch (_unused) {
213
- // Performance optimization: https://github.com/primefaces/primereact/issues/4797
214
- // do nothing and continue to other methods to resolve field data
215
- }
216
- if (Object.keys(data).length) {
217
- if (this.isFunction(field)) {
218
- return field(data);
219
- } else if (this.isNotEmpty(data[field])) {
220
- return data[field];
221
- } else if (field.indexOf('.') === -1) {
222
- return data[field];
223
- } else {
224
- var fields = field.split('.');
225
- var _value = data;
226
- for (var i = 0, len = fields.length; i < len; ++i) {
227
- if (_value == null) {
228
- return null;
229
- }
230
- _value = _value[fields[i]];
231
- }
232
- return _value;
233
- }
234
- }
235
- return null;
236
- }
237
- }, {
238
- key: "findDiffKeys",
239
- value: function findDiffKeys(obj1, obj2) {
240
- if (!obj1 || !obj2) {
241
- return {};
242
- }
243
- return Object.keys(obj1).filter(function (key) {
244
- return !obj2.hasOwnProperty(key);
245
- }).reduce(function (result, current) {
246
- result[current] = obj1[current];
247
- return result;
248
- }, {});
249
- }
250
-
251
- /**
252
- * Removes keys from a JSON object that start with a string such as "data" to get all "data-id" type properties.
253
- *
254
- * @param {any} obj the JSON object to reduce
255
- * @param {string[]} startsWiths the string(s) to check if the property starts with this key
256
- * @returns the JSON object containing only the key/values that match the startsWith string
257
- */
258
- }, {
259
- key: "reduceKeys",
260
- value: function reduceKeys(obj, startsWiths) {
261
- var result = {};
262
- if (!obj || !startsWiths || startsWiths.length === 0) {
263
- return result;
264
- }
265
- Object.keys(obj).filter(function (key) {
266
- return startsWiths.some(function (value) {
267
- return key.startsWith(value);
268
- });
269
- }).forEach(function (key) {
270
- result[key] = obj[key];
271
- delete obj[key];
272
- });
273
- return result;
274
- }
275
- }, {
276
- key: "reorderArray",
277
- value: function reorderArray(value, from, to) {
278
- if (value && from !== to) {
279
- if (to >= value.length) {
280
- to %= value.length;
281
- from %= value.length;
282
- }
283
- value.splice(to, 0, value.splice(from, 1)[0]);
284
- }
285
- }
286
- }, {
287
- key: "findIndexInList",
288
- value: function findIndexInList(value, list, dataKey) {
289
- var _this = this;
290
- if (list) {
291
- return dataKey ? list.findIndex(function (item) {
292
- return _this.equals(item, value, dataKey);
293
- }) : list.findIndex(function (item) {
294
- return item === value;
295
- });
296
- }
297
- return -1;
298
- }
299
- }, {
300
- key: "getJSXElement",
301
- value: function getJSXElement(obj) {
302
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
303
- params[_key - 1] = arguments[_key];
304
- }
305
- return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
306
- }
307
- }, {
308
- key: "getItemValue",
309
- value: function getItemValue(obj) {
310
- for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
311
- params[_key2 - 1] = arguments[_key2];
312
- }
313
- return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
314
- }
315
- }, {
316
- key: "getProp",
317
- value: function getProp(props) {
318
- var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
319
- var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
320
- var value = props ? props[prop] : undefined;
321
- return value === undefined ? defaultProps[prop] : value;
322
- }
323
- }, {
324
- key: "getPropCaseInsensitive",
325
- value: function getPropCaseInsensitive(props, prop) {
326
- var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
327
- var fkey = this.toFlatCase(prop);
328
- for (var key in props) {
329
- if (props.hasOwnProperty(key) && this.toFlatCase(key) === fkey) {
330
- return props[key];
331
- }
332
- }
333
- for (var _key3 in defaultProps) {
334
- if (defaultProps.hasOwnProperty(_key3) && this.toFlatCase(_key3) === fkey) {
335
- return defaultProps[_key3];
336
- }
337
- }
338
- return undefined; // Property not found
339
- }
340
- }, {
341
- key: "getMergedProps",
342
- value: function getMergedProps(props, defaultProps) {
343
- return Object.assign({}, defaultProps, props);
344
- }
345
- }, {
346
- key: "getDiffProps",
347
- value: function getDiffProps(props, defaultProps) {
348
- return this.findDiffKeys(props, defaultProps);
349
- }
350
- }, {
351
- key: "getPropValue",
352
- value: function getPropValue(obj) {
353
- for (var _len3 = arguments.length, params = new Array(_len3 > 1 ? _len3 - 1 : 0), _key4 = 1; _key4 < _len3; _key4++) {
354
- params[_key4 - 1] = arguments[_key4];
355
- }
356
- return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
357
- }
358
- }, {
359
- key: "getComponentProp",
360
- value: function getComponentProp(component) {
361
- var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
362
- var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
363
- return this.isNotEmpty(component) ? this.getProp(component.props, prop, defaultProps) : undefined;
364
- }
365
- }, {
366
- key: "getComponentProps",
367
- value: function getComponentProps(component, defaultProps) {
368
- return this.isNotEmpty(component) ? this.getMergedProps(component.props, defaultProps) : undefined;
369
- }
370
- }, {
371
- key: "getComponentDiffProps",
372
- value: function getComponentDiffProps(component, defaultProps) {
373
- return this.isNotEmpty(component) ? this.getDiffProps(component.props, defaultProps) : undefined;
374
- }
375
- }, {
376
- key: "isValidChild",
377
- value: function isValidChild(child, type, validTypes) {
378
- /* eslint-disable */
379
- if (child) {
380
- var _child$type;
381
- var childType = this.getComponentProp(child, '__TYPE') || (child.type ? child.type.displayName : undefined);
382
-
383
- // for App Router in Next.js ^14,
384
- if (!childType && child !== null && child !== void 0 && (_child$type = child.type) !== null && _child$type !== void 0 && (_child$type = _child$type._payload) !== null && _child$type !== void 0 && _child$type.value) {
385
- childType = child.type._payload.value.find(function (v) {
386
- return v === type;
387
- });
388
- }
389
- var isValid = childType === type;
390
- try {
391
- var messageTypes; if ("production" !== 'production' && !isValid) ;
392
- } catch (error) {
393
- // NOOP
394
- }
395
- return isValid;
396
- }
397
- return false;
398
- /* eslint-enable */
399
- }
400
- }, {
401
- key: "getRefElement",
402
- value: function getRefElement(ref) {
403
- if (ref) {
404
- return _typeof(ref) === 'object' && ref.hasOwnProperty('current') ? ref.current : ref;
405
- }
406
- return null;
407
- }
408
- }, {
409
- key: "combinedRefs",
410
- value: function combinedRefs(innerRef, forwardRef) {
411
- if (innerRef && forwardRef) {
412
- if (typeof forwardRef === 'function') {
413
- forwardRef(innerRef.current);
414
- } else {
415
- forwardRef.current = innerRef.current;
416
- }
417
- }
418
- }
419
- }, {
420
- key: "removeAccents",
421
- value: function removeAccents(str) {
422
- if (str && str.search(/[\xC0-\xFF]/g) > -1) {
423
- str = str.replace(/[\xC0-\xC5]/g, 'A').replace(/[\xC6]/g, 'AE').replace(/[\xC7]/g, 'C').replace(/[\xC8-\xCB]/g, 'E').replace(/[\xCC-\xCF]/g, 'I').replace(/[\xD0]/g, 'D').replace(/[\xD1]/g, 'N').replace(/[\xD2-\xD6\xD8]/g, 'O').replace(/[\xD9-\xDC]/g, 'U').replace(/[\xDD]/g, 'Y').replace(/[\xDE]/g, 'P').replace(/[\xE0-\xE5]/g, 'a').replace(/[\xE6]/g, 'ae').replace(/[\xE7]/g, 'c').replace(/[\xE8-\xEB]/g, 'e').replace(/[\xEC-\xEF]/g, 'i').replace(/[\xF1]/g, 'n').replace(/[\xF2-\xF6\xF8]/g, 'o').replace(/[\xF9-\xFC]/g, 'u').replace(/[\xFE]/g, 'p').replace(/[\xFD\xFF]/g, 'y');
424
- }
425
- return str;
426
- }
427
- }, {
428
- key: "toFlatCase",
429
- value: function toFlatCase(str) {
430
- // convert snake, kebab, camel and pascal cases to flat case
431
- return this.isNotEmpty(str) && this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
432
- }
433
- }, {
434
- key: "toCapitalCase",
435
- value: function toCapitalCase(str) {
436
- return this.isNotEmpty(str) && this.isString(str) ? str[0].toUpperCase() + str.slice(1) : str;
437
- }
438
- }, {
439
- key: "trim",
440
- value: function trim(value) {
441
- // trim only if the value is actually a string
442
- return this.isNotEmpty(value) && this.isString(value) ? value.trim() : value;
443
- }
444
- }, {
445
- key: "isEmpty",
446
- value: function isEmpty(value) {
447
- return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
448
- }
449
- }, {
450
- key: "isNotEmpty",
451
- value: function isNotEmpty(value) {
452
- return !this.isEmpty(value);
453
- }
454
- }, {
455
- key: "isFunction",
456
- value: function isFunction(value) {
457
- return !!(value && value.constructor && value.call && value.apply);
458
- }
459
- }, {
460
- key: "isObject",
461
- value: function isObject(value) {
462
- return value !== null && value instanceof Object && value.constructor === Object;
463
- }
464
- }, {
465
- key: "isDate",
466
- value: function isDate(value) {
467
- return value !== null && value instanceof Date && value.constructor === Date;
468
- }
469
- }, {
470
- key: "isArray",
471
- value: function isArray(value) {
472
- return value !== null && Array.isArray(value);
473
- }
474
- }, {
475
- key: "isString",
476
- value: function isString(value) {
477
- return value !== null && typeof value === 'string';
478
- }
479
- }, {
480
- key: "isPrintableCharacter",
481
- value: function isPrintableCharacter() {
482
- var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
483
- return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
484
- }
485
- }, {
486
- key: "isLetter",
487
- value: function isLetter(_char2) {
488
- return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
489
- }
490
-
491
- /**
492
- * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
493
- * https://caniuse.com/mdn-javascript_builtins_array_findlast
494
- */
495
- }, {
496
- key: "findLast",
497
- value: function findLast(arr, callback) {
498
- var item;
499
- if (this.isNotEmpty(arr)) {
500
- try {
501
- item = arr.findLast(callback);
502
- } catch (_unused2) {
503
- item = _toConsumableArray(arr).reverse().find(callback);
504
- }
505
- }
506
- return item;
507
- }
508
-
509
- /**
510
- * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
511
- * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
512
- */
513
- }, {
514
- key: "findLastIndex",
515
- value: function findLastIndex(arr, callback) {
516
- var index = -1;
517
- if (this.isNotEmpty(arr)) {
518
- try {
519
- index = arr.findLastIndex(callback);
520
- } catch (_unused3) {
521
- index = arr.lastIndexOf(_toConsumableArray(arr).reverse().find(callback));
522
- }
523
- }
524
- return index;
525
- }
526
- }, {
527
- key: "sort",
528
- value: function sort(value1, value2) {
529
- var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
530
- var comparator = arguments.length > 3 ? arguments[3] : undefined;
531
- var nullSortOrder = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
532
- var result = this.compare(value1, value2, comparator, order);
533
- var finalSortOrder = order;
534
-
535
- // nullSortOrder == 1 means Excel like sort nulls at bottom
536
- if (this.isEmpty(value1) || this.isEmpty(value2)) {
537
- finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
538
- }
539
- return finalSortOrder * result;
540
- }
541
- }, {
542
- key: "compare",
543
- value: function compare(value1, value2, comparator) {
544
- var order = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
545
- var result = -1;
546
- var emptyValue1 = this.isEmpty(value1);
547
- var emptyValue2 = this.isEmpty(value2);
548
- if (emptyValue1 && emptyValue2) result = 0;else if (emptyValue1) result = order;else if (emptyValue2) result = -order;else if (typeof value1 === 'string' && typeof value2 === 'string') result = comparator(value1, value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
549
- return result;
550
- }
551
- }, {
552
- key: "localeComparator",
553
- value: function localeComparator(locale) {
554
- //performance gain using Int.Collator. It is not recommended to use localeCompare against large arrays.
555
- return new Intl.Collator(locale, {
556
- numeric: true
557
- }).compare;
558
- }
559
- }, {
560
- key: "findChildrenByKey",
561
- value: function findChildrenByKey(data, key) {
562
- var _iterator = _createForOfIteratorHelper(data),
563
- _step;
564
- try {
565
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
566
- var item = _step.value;
567
- if (item.key === key) {
568
- return item.children || [];
569
- } else if (item.children) {
570
- var result = this.findChildrenByKey(item.children, key);
571
- if (result.length > 0) {
572
- return result;
573
- }
574
- }
575
- }
576
- } catch (err) {
577
- _iterator.e(err);
578
- } finally {
579
- _iterator.f();
580
- }
581
- return [];
582
- }
583
-
584
- /**
585
- * This function takes mutates and object with a new value given
586
- * a specific field. This will handle deeply nested fields that
587
- * need to be modified or created.
588
- *
589
- * e.g:
590
- * data = {
591
- * nested: {
592
- * foo: "bar"
593
- * }
594
- * }
595
- *
596
- * field = "nested.foo"
597
- * value = "baz"
598
- *
599
- * The function will mutate data to be
600
- * e.g:
601
- * data = {
602
- * nested: {
603
- * foo: "baz"
604
- * }
605
- * }
606
- *
607
- * @param {object} data the object to be modified
608
- * @param {string} field the field in the object to replace
609
- * @param {any} value the value to have replaced in the field
610
- */
611
- }, {
612
- key: "mutateFieldData",
613
- value: function mutateFieldData(data, field, value) {
614
- if (_typeof(data) !== 'object' || typeof field !== 'string') {
615
- // short circuit if there is nothing to resolve
616
- return;
617
- }
618
- var fields = field.split('.');
619
- var obj = data;
620
- for (var i = 0, len = fields.length; i < len; ++i) {
621
- // Check if we are on the last field
622
- if (i + 1 - len === 0) {
623
- obj[fields[i]] = value;
624
- break;
625
- }
626
- if (!obj[fields[i]]) {
627
- obj[fields[i]] = {};
628
- }
629
- obj = obj[fields[i]];
630
- }
631
- }
632
- }]);
633
- return ObjectUtils;
634
- }();
635
-
636
- var lastId = 0;
637
- function UniqueComponentId() {
638
- var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pr_id_';
639
- lastId++;
640
- return "".concat(prefix).concat(lastId);
641
- }
642
-
643
20
  var ArrowUpIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
644
21
  var pti = IconBase.getPTI(inProps);
645
- var _React$useState = React.useState(inProps.id),
646
- _React$useState2 = _slicedToArray(_React$useState, 2),
647
- pathId = _React$useState2[0],
648
- setPathId = _React$useState2[1];
649
- React.useEffect(function () {
650
- if (ObjectUtils.isEmpty(pathId)) {
651
- setPathId(UniqueComponentId('pr_icon_clip_'));
652
- }
653
- }, [pathId]);
654
22
  return /*#__PURE__*/React.createElement("svg", _extends({
655
23
  ref: ref,
656
24
  width: "14",
@@ -658,20 +26,12 @@ var ArrowUpIcon = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(functio
658
26
  viewBox: "0 0 14 14",
659
27
  fill: "none",
660
28
  xmlns: "http://www.w3.org/2000/svg"
661
- }, pti), /*#__PURE__*/React.createElement("g", {
662
- clipPath: "url(#".concat(pathId, ")")
663
- }, /*#__PURE__*/React.createElement("path", {
29
+ }, pti), /*#__PURE__*/React.createElement("path", {
664
30
  fillRule: "evenodd",
665
31
  clipRule: "evenodd",
666
32
  d: "M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",
667
33
  fill: "currentColor"
668
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
669
- id: pathId
670
- }, /*#__PURE__*/React.createElement("rect", {
671
- width: "14",
672
- height: "14",
673
- fill: "white"
674
- }))));
34
+ }));
675
35
  }));
676
36
  ArrowUpIcon.displayName = 'ArrowUpIcon';
677
37