primevue 4.1.0 → 4.2.0

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 (596) hide show
  1. package/README.md +2 -94
  2. package/accordion/index.d.ts +2 -2
  3. package/accordion/index.mjs.map +1 -1
  4. package/accordion/style/index.mjs +1 -1
  5. package/accordion/style/index.mjs.map +1 -1
  6. package/accordioncontent/index.d.ts +2 -2
  7. package/accordioncontent/index.mjs.map +1 -1
  8. package/accordioncontent/style/index.mjs.map +1 -1
  9. package/accordionheader/index.d.ts +2 -2
  10. package/accordionheader/index.mjs.map +1 -1
  11. package/accordionheader/style/index.mjs.map +1 -1
  12. package/accordionpanel/index.d.ts +2 -2
  13. package/accordionpanel/index.mjs.map +1 -1
  14. package/accordionpanel/style/index.mjs.map +1 -1
  15. package/accordiontab/index.d.ts +2 -2
  16. package/accordiontab/index.mjs.map +1 -1
  17. package/accordiontab/style/index.mjs.map +1 -1
  18. package/animateonscroll/index.mjs.map +1 -1
  19. package/animateonscroll/style/index.mjs.map +1 -1
  20. package/autocomplete/AutoComplete.vue +36 -32
  21. package/autocomplete/BaseAutoComplete.vue +2 -19
  22. package/autocomplete/index.d.ts +23 -2
  23. package/autocomplete/index.mjs +40 -53
  24. package/autocomplete/index.mjs.map +1 -1
  25. package/autocomplete/style/index.mjs +7 -7
  26. package/autocomplete/style/index.mjs.map +1 -1
  27. package/avatar/index.d.ts +2 -2
  28. package/avatar/index.mjs.map +1 -1
  29. package/avatar/style/index.mjs +1 -1
  30. package/avatar/style/index.mjs.map +1 -1
  31. package/avatargroup/index.d.ts +2 -2
  32. package/avatargroup/index.mjs.map +1 -1
  33. package/avatargroup/style/index.mjs.map +1 -1
  34. package/badge/index.d.ts +2 -2
  35. package/badge/index.mjs.map +1 -1
  36. package/badge/style/index.mjs.map +1 -1
  37. package/badgedirective/index.d.ts +2 -2
  38. package/badgedirective/index.mjs.map +1 -1
  39. package/badgedirective/style/index.mjs.map +1 -1
  40. package/blockui/index.d.ts +2 -2
  41. package/blockui/index.mjs.map +1 -1
  42. package/blockui/style/index.mjs.map +1 -1
  43. package/breadcrumb/Breadcrumb.vue +1 -1
  44. package/breadcrumb/index.d.ts +2 -2
  45. package/breadcrumb/index.mjs +2 -1
  46. package/breadcrumb/index.mjs.map +1 -1
  47. package/breadcrumb/style/index.d.ts +4 -0
  48. package/breadcrumb/style/index.mjs +2 -1
  49. package/breadcrumb/style/index.mjs.map +1 -1
  50. package/button/BaseButton.vue +4 -0
  51. package/button/index.d.ts +8 -2
  52. package/button/index.mjs +4 -0
  53. package/button/index.mjs.map +1 -1
  54. package/button/style/index.mjs +3 -3
  55. package/button/style/index.mjs.map +1 -1
  56. package/buttongroup/index.d.ts +2 -2
  57. package/buttongroup/index.mjs.map +1 -1
  58. package/buttongroup/style/index.mjs +1 -1
  59. package/buttongroup/style/index.mjs.map +1 -1
  60. package/calendar/index.d.ts +2 -2
  61. package/calendar/index.mjs.map +1 -1
  62. package/calendar/style/index.mjs.map +1 -1
  63. package/card/index.d.ts +2 -2
  64. package/card/index.mjs.map +1 -1
  65. package/card/style/index.mjs.map +1 -1
  66. package/carousel/index.d.ts +2 -2
  67. package/carousel/index.mjs.map +1 -1
  68. package/carousel/style/index.mjs +1 -1
  69. package/carousel/style/index.mjs.map +1 -1
  70. package/cascadeselect/BaseCascadeSelect.vue +8 -14
  71. package/cascadeselect/CascadeSelect.vue +86 -55
  72. package/cascadeselect/CascadeSelectSub.vue +8 -17
  73. package/cascadeselect/index.d.ts +47 -2
  74. package/cascadeselect/index.mjs +148 -99
  75. package/cascadeselect/index.mjs.map +1 -1
  76. package/cascadeselect/style/index.d.ts +4 -0
  77. package/cascadeselect/style/index.mjs +9 -6
  78. package/cascadeselect/style/index.mjs.map +1 -1
  79. package/chart/index.d.ts +2 -2
  80. package/chart/index.mjs.map +1 -1
  81. package/chart/style/index.mjs.map +1 -1
  82. package/checkbox/BaseCheckbox.vue +2 -19
  83. package/checkbox/Checkbox.vue +18 -6
  84. package/checkbox/index.d.ts +19 -2
  85. package/checkbox/index.mjs +20 -25
  86. package/checkbox/index.mjs.map +1 -1
  87. package/checkbox/style/index.mjs +5 -3
  88. package/checkbox/style/index.mjs.map +1 -1
  89. package/checkboxgroup/BaseCheckboxGroup.vue +16 -0
  90. package/checkboxgroup/CheckboxGroup.vue +29 -0
  91. package/checkboxgroup/index.d.ts +160 -0
  92. package/checkboxgroup/index.mjs +46 -0
  93. package/checkboxgroup/index.mjs.map +1 -0
  94. package/checkboxgroup/package.json +11 -0
  95. package/checkboxgroup/style/index.d.ts +19 -0
  96. package/checkboxgroup/style/index.mjs +17 -0
  97. package/checkboxgroup/style/index.mjs.map +1 -0
  98. package/checkboxgroup/style/package.json +6 -0
  99. package/chip/index.d.ts +2 -2
  100. package/chip/index.mjs.map +1 -1
  101. package/chip/style/index.mjs +1 -1
  102. package/chip/style/index.mjs.map +1 -1
  103. package/chips/index.d.ts +2 -2
  104. package/chips/index.mjs.map +1 -1
  105. package/chips/style/index.mjs.map +1 -1
  106. package/colorpicker/BaseColorPicker.vue +2 -10
  107. package/colorpicker/ColorPicker.vue +7 -4
  108. package/colorpicker/index.d.ts +24 -2
  109. package/colorpicker/index.mjs +21 -23
  110. package/colorpicker/index.mjs.map +1 -1
  111. package/colorpicker/style/index.mjs +5 -3
  112. package/colorpicker/style/index.mjs.map +1 -1
  113. package/column/index.d.ts +2 -2
  114. package/column/index.mjs.map +1 -1
  115. package/column/style/index.mjs.map +1 -1
  116. package/columngroup/index.d.ts +2 -2
  117. package/columngroup/index.mjs.map +1 -1
  118. package/columngroup/style/index.mjs.map +1 -1
  119. package/config/index.d.ts +4 -0
  120. package/confirmationservice/index.mjs.map +1 -1
  121. package/confirmdialog/index.d.ts +2 -2
  122. package/confirmdialog/index.mjs.map +1 -1
  123. package/confirmdialog/style/index.mjs.map +1 -1
  124. package/confirmpopup/index.d.ts +2 -2
  125. package/confirmpopup/index.mjs.map +1 -1
  126. package/confirmpopup/style/index.mjs +1 -1
  127. package/confirmpopup/style/index.mjs.map +1 -1
  128. package/contextmenu/ContextMenu.vue +8 -3
  129. package/contextmenu/index.d.ts +2 -2
  130. package/contextmenu/index.mjs +6 -3
  131. package/contextmenu/index.mjs.map +1 -1
  132. package/contextmenu/style/index.mjs +1 -1
  133. package/contextmenu/style/index.mjs.map +1 -1
  134. package/datatable/BodyCell.vue +15 -6
  135. package/datatable/DataTable.vue +58 -4
  136. package/datatable/FooterCell.vue +15 -6
  137. package/datatable/HeaderCell.vue +15 -6
  138. package/datatable/index.d.ts +14 -10
  139. package/datatable/index.mjs +167 -82
  140. package/datatable/index.mjs.map +1 -1
  141. package/datatable/style/index.mjs +1 -1
  142. package/datatable/style/index.mjs.map +1 -1
  143. package/dataview/DataView.vue +33 -1
  144. package/dataview/index.d.ts +6 -2
  145. package/dataview/index.mjs +42 -6
  146. package/dataview/index.mjs.map +1 -1
  147. package/dataview/style/index.mjs.map +1 -1
  148. package/datepicker/BaseDatePicker.vue +2 -23
  149. package/datepicker/DatePicker.vue +39 -40
  150. package/datepicker/index.d.ts +23 -6
  151. package/datepicker/index.mjs +45 -65
  152. package/datepicker/index.mjs.map +1 -1
  153. package/datepicker/style/index.mjs +4 -5
  154. package/datepicker/style/index.mjs.map +1 -1
  155. package/deferredcontent/index.d.ts +2 -2
  156. package/deferredcontent/index.mjs.map +1 -1
  157. package/deferredcontent/style/index.mjs.map +1 -1
  158. package/dialog/index.d.ts +2 -2
  159. package/dialog/index.mjs.map +1 -1
  160. package/dialog/style/index.mjs +1 -1
  161. package/dialog/style/index.mjs.map +1 -1
  162. package/dialogservice/index.mjs.map +1 -1
  163. package/divider/index.d.ts +2 -2
  164. package/divider/index.mjs.map +1 -1
  165. package/divider/style/index.mjs +1 -1
  166. package/divider/style/index.mjs.map +1 -1
  167. package/dock/index.d.ts +2 -2
  168. package/dock/index.mjs.map +1 -1
  169. package/dock/style/index.mjs +1 -1
  170. package/dock/style/index.mjs.map +1 -1
  171. package/drawer/index.d.ts +2 -2
  172. package/drawer/index.mjs.map +1 -1
  173. package/drawer/style/index.mjs +1 -1
  174. package/drawer/style/index.mjs.map +1 -1
  175. package/dropdown/index.d.ts +2 -2
  176. package/dropdown/index.mjs.map +1 -1
  177. package/dropdown/style/index.mjs.map +1 -1
  178. package/dynamicdialog/index.d.ts +2 -2
  179. package/dynamicdialog/index.mjs.map +1 -1
  180. package/dynamicdialog/style/index.mjs.map +1 -1
  181. package/editor/BaseEditor.vue +2 -3
  182. package/editor/Editor.vue +3 -3
  183. package/editor/index.d.ts +24 -2
  184. package/editor/index.mjs +5 -6
  185. package/editor/index.mjs.map +1 -1
  186. package/editor/style/index.mjs +7 -2
  187. package/editor/style/index.mjs.map +1 -1
  188. package/fieldset/index.d.ts +2 -2
  189. package/fieldset/index.mjs.map +1 -1
  190. package/fieldset/style/index.mjs +1 -1
  191. package/fieldset/style/index.mjs.map +1 -1
  192. package/fileupload/index.d.ts +2 -2
  193. package/fileupload/index.mjs.map +1 -1
  194. package/fileupload/style/index.mjs +1 -1
  195. package/fileupload/style/index.mjs.map +1 -1
  196. package/floatlabel/index.d.ts +2 -2
  197. package/floatlabel/index.mjs.map +1 -1
  198. package/floatlabel/style/index.mjs +1 -1
  199. package/floatlabel/style/index.mjs.map +1 -1
  200. package/fluid/index.d.ts +2 -2
  201. package/fluid/index.mjs.map +1 -1
  202. package/fluid/style/index.mjs.map +1 -1
  203. package/focustrap/index.mjs.map +1 -1
  204. package/focustrap/style/index.mjs.map +1 -1
  205. package/galleria/index.d.ts +2 -2
  206. package/galleria/index.mjs.map +1 -1
  207. package/galleria/style/index.mjs +1 -1
  208. package/galleria/style/index.mjs.map +1 -1
  209. package/iconfield/index.d.ts +2 -2
  210. package/iconfield/index.mjs.map +1 -1
  211. package/iconfield/style/index.mjs +1 -1
  212. package/iconfield/style/index.mjs.map +1 -1
  213. package/iftalabel/index.d.ts +2 -2
  214. package/iftalabel/index.mjs.map +1 -1
  215. package/iftalabel/style/index.mjs +1 -1
  216. package/iftalabel/style/index.mjs.map +1 -1
  217. package/image/index.d.ts +2 -2
  218. package/image/index.mjs.map +1 -1
  219. package/image/style/index.mjs +1 -1
  220. package/image/style/index.mjs.map +1 -1
  221. package/imagecompare/ImageCompare.vue +33 -1
  222. package/imagecompare/index.d.ts +2 -2
  223. package/imagecompare/index.mjs +35 -1
  224. package/imagecompare/index.mjs.map +1 -1
  225. package/imagecompare/style/index.mjs +1 -1
  226. package/imagecompare/style/index.mjs.map +1 -1
  227. package/index.d.ts +811 -0
  228. package/index.mjs +531 -0
  229. package/index.mjs.map +1 -0
  230. package/inlinemessage/index.d.ts +2 -2
  231. package/inlinemessage/index.mjs.map +1 -1
  232. package/inlinemessage/style/index.mjs.map +1 -1
  233. package/inplace/index.d.ts +2 -6
  234. package/inplace/index.mjs.map +1 -1
  235. package/inplace/style/index.mjs.map +1 -1
  236. package/inputchips/index.d.ts +2 -2
  237. package/inputchips/index.mjs.map +1 -1
  238. package/inputchips/style/index.mjs.map +1 -1
  239. package/inputgroup/index.d.ts +2 -2
  240. package/inputgroup/index.mjs.map +1 -1
  241. package/inputgroup/style/index.mjs +1 -1
  242. package/inputgroup/style/index.mjs.map +1 -1
  243. package/inputgroupaddon/index.d.ts +2 -2
  244. package/inputgroupaddon/index.mjs.map +1 -1
  245. package/inputgroupaddon/style/index.mjs.map +1 -1
  246. package/inputicon/index.d.ts +2 -2
  247. package/inputicon/index.mjs.map +1 -1
  248. package/inputicon/style/index.mjs.map +1 -1
  249. package/inputmask/BaseInputMask.vue +2 -23
  250. package/inputmask/InputMask.vue +9 -14
  251. package/inputmask/index.d.ts +15 -2
  252. package/inputmask/index.mjs +13 -38
  253. package/inputmask/index.mjs.map +1 -1
  254. package/inputmask/style/index.mjs +1 -1
  255. package/inputmask/style/index.mjs.map +1 -1
  256. package/inputnumber/BaseInputNumber.vue +2 -22
  257. package/inputnumber/InputNumber.vue +14 -16
  258. package/inputnumber/index.d.ts +28 -2
  259. package/inputnumber/index.mjs +22 -39
  260. package/inputnumber/index.mjs.map +1 -1
  261. package/inputnumber/style/index.mjs +3 -3
  262. package/inputnumber/style/index.mjs.map +1 -1
  263. package/inputotp/BaseInputOtp.vue +2 -18
  264. package/inputotp/InputOtp.vue +4 -2
  265. package/inputotp/index.d.ts +23 -2
  266. package/inputotp/index.mjs +7 -21
  267. package/inputotp/index.mjs.map +1 -1
  268. package/inputotp/style/index.mjs +2 -2
  269. package/inputotp/style/index.mjs.map +1 -1
  270. package/inputswitch/index.d.ts +2 -2
  271. package/inputswitch/index.mjs.map +1 -1
  272. package/inputswitch/style/index.mjs.map +1 -1
  273. package/inputtext/BaseInputText.vue +2 -21
  274. package/inputtext/InputText.vue +13 -22
  275. package/inputtext/index.d.ts +19 -2
  276. package/inputtext/index.mjs +16 -48
  277. package/inputtext/index.mjs.map +1 -1
  278. package/inputtext/style/index.mjs +7 -7
  279. package/inputtext/style/index.mjs.map +1 -1
  280. package/keyfilter/index.mjs.map +1 -1
  281. package/keyfilter/style/index.mjs.map +1 -1
  282. package/knob/BaseKnob.vue +2 -10
  283. package/knob/Knob.vue +23 -19
  284. package/knob/index.d.ts +26 -4
  285. package/knob/index.mjs +31 -32
  286. package/knob/index.mjs.map +1 -1
  287. package/knob/style/index.mjs +4 -2
  288. package/knob/style/index.mjs.map +1 -1
  289. package/listbox/BaseListbox.vue +2 -11
  290. package/listbox/Listbox.vue +21 -20
  291. package/listbox/index.d.ts +19 -2
  292. package/listbox/index.mjs +23 -31
  293. package/listbox/index.mjs.map +1 -1
  294. package/listbox/style/index.mjs +4 -3
  295. package/listbox/style/index.mjs.map +1 -1
  296. package/megamenu/BaseMegaMenu.vue +4 -0
  297. package/megamenu/MegaMenu.vue +15 -5
  298. package/megamenu/index.d.ts +7 -2
  299. package/megamenu/index.mjs +23 -6
  300. package/megamenu/index.mjs.map +1 -1
  301. package/megamenu/style/index.mjs +5 -5
  302. package/megamenu/style/index.mjs.map +1 -1
  303. package/menu/index.d.ts +2 -2
  304. package/menu/index.mjs.map +1 -1
  305. package/menu/style/index.mjs +1 -1
  306. package/menu/style/index.mjs.map +1 -1
  307. package/menubar/Menubar.vue +8 -3
  308. package/menubar/index.d.ts +2 -2
  309. package/menubar/index.mjs +6 -3
  310. package/menubar/index.mjs.map +1 -1
  311. package/menubar/style/index.mjs +1 -1
  312. package/menubar/style/index.mjs.map +1 -1
  313. package/message/BaseMessage.vue +8 -0
  314. package/message/index.d.ts +11 -2
  315. package/message/index.mjs +8 -0
  316. package/message/index.mjs.map +1 -1
  317. package/message/style/index.mjs +7 -2
  318. package/message/style/index.mjs.map +1 -1
  319. package/metergroup/index.d.ts +2 -2
  320. package/metergroup/index.mjs.map +1 -1
  321. package/metergroup/style/index.mjs +1 -1
  322. package/metergroup/style/index.mjs.map +1 -1
  323. package/multiselect/BaseMultiSelect.vue +14 -19
  324. package/multiselect/MultiSelect.vue +45 -31
  325. package/multiselect/index.d.ts +52 -2
  326. package/multiselect/index.mjs +71 -52
  327. package/multiselect/index.mjs.map +1 -1
  328. package/multiselect/style/index.d.ts +4 -0
  329. package/multiselect/style/index.mjs +8 -5
  330. package/multiselect/style/index.mjs.map +1 -1
  331. package/orderlist/index.d.ts +2 -2
  332. package/orderlist/index.mjs.map +1 -1
  333. package/orderlist/style/index.mjs.map +1 -1
  334. package/organizationchart/index.d.ts +2 -2
  335. package/organizationchart/index.mjs.map +1 -1
  336. package/organizationchart/style/index.mjs +1 -1
  337. package/organizationchart/style/index.mjs.map +1 -1
  338. package/overlaybadge/index.d.ts +2 -2
  339. package/overlaybadge/index.mjs.map +1 -1
  340. package/overlaybadge/style/index.mjs +1 -1
  341. package/overlaybadge/style/index.mjs.map +1 -1
  342. package/overlaypanel/index.d.ts +2 -2
  343. package/overlaypanel/index.mjs.map +1 -1
  344. package/overlaypanel/style/index.mjs.map +1 -1
  345. package/package.json +15 -6
  346. package/paginator/Paginator.vue +104 -84
  347. package/paginator/index.d.ts +56 -2
  348. package/paginator/index.mjs +21 -3
  349. package/paginator/index.mjs.map +1 -1
  350. package/paginator/style/index.mjs +1 -1
  351. package/paginator/style/index.mjs.map +1 -1
  352. package/panel/index.d.ts +2 -2
  353. package/panel/index.mjs.map +1 -1
  354. package/panel/style/index.mjs.map +1 -1
  355. package/panelmenu/index.d.ts +2 -2
  356. package/panelmenu/index.mjs.map +1 -1
  357. package/panelmenu/style/index.mjs +1 -1
  358. package/panelmenu/style/index.mjs.map +1 -1
  359. package/passthrough/index.mjs.map +1 -1
  360. package/password/BasePassword.vue +2 -15
  361. package/password/Password.vue +13 -18
  362. package/password/index.d.ts +23 -2
  363. package/password/index.mjs +14 -32
  364. package/password/index.mjs.map +1 -1
  365. package/password/style/index.mjs +3 -3
  366. package/password/style/index.mjs.map +1 -1
  367. package/picklist/index.d.ts +2 -2
  368. package/picklist/index.mjs.map +1 -1
  369. package/picklist/style/index.mjs.map +1 -1
  370. package/popover/index.d.ts +2 -2
  371. package/popover/index.mjs.map +1 -1
  372. package/popover/style/index.mjs +1 -1
  373. package/popover/style/index.mjs.map +1 -1
  374. package/portal/index.d.ts +2 -2
  375. package/portal/index.mjs.map +1 -1
  376. package/portal/style/index.mjs.map +1 -1
  377. package/progressbar/index.d.ts +2 -2
  378. package/progressbar/index.mjs.map +1 -1
  379. package/progressbar/style/index.mjs +1 -1
  380. package/progressbar/style/index.mjs.map +1 -1
  381. package/progressspinner/index.d.ts +2 -2
  382. package/progressspinner/index.mjs.map +1 -1
  383. package/progressspinner/style/index.mjs.map +1 -1
  384. package/radiobutton/BaseRadioButton.vue +2 -19
  385. package/radiobutton/RadioButton.vue +15 -4
  386. package/radiobutton/index.d.ts +19 -2
  387. package/radiobutton/index.mjs +17 -23
  388. package/radiobutton/index.mjs.map +1 -1
  389. package/radiobutton/style/index.mjs +5 -3
  390. package/radiobutton/style/index.mjs.map +1 -1
  391. package/radiobuttongroup/BaseRadioButtonGroup.vue +16 -0
  392. package/radiobuttongroup/RadioButtonGroup.vue +29 -0
  393. package/radiobuttongroup/index.d.ts +160 -0
  394. package/radiobuttongroup/index.mjs +46 -0
  395. package/radiobuttongroup/index.mjs.map +1 -0
  396. package/radiobuttongroup/package.json +11 -0
  397. package/radiobuttongroup/style/index.d.ts +19 -0
  398. package/radiobuttongroup/style/index.mjs +17 -0
  399. package/radiobuttongroup/style/index.mjs.map +1 -0
  400. package/radiobuttongroup/style/package.json +6 -0
  401. package/rating/BaseRating.vue +2 -10
  402. package/rating/Rating.vue +17 -16
  403. package/rating/index.d.ts +20 -2
  404. package/rating/index.mjs +17 -23
  405. package/rating/index.mjs.map +1 -1
  406. package/rating/style/index.mjs +14 -5
  407. package/rating/style/index.mjs.map +1 -1
  408. package/ripple/index.mjs.map +1 -1
  409. package/ripple/style/index.mjs.map +1 -1
  410. package/row/index.d.ts +2 -2
  411. package/row/index.mjs.map +1 -1
  412. package/row/style/index.mjs.map +1 -1
  413. package/scrollpanel/ScrollPanel.vue +38 -5
  414. package/scrollpanel/index.d.ts +2 -2
  415. package/scrollpanel/index.mjs +58 -28
  416. package/scrollpanel/index.mjs.map +1 -1
  417. package/scrollpanel/style/index.mjs +1 -1
  418. package/scrollpanel/style/index.mjs.map +1 -1
  419. package/scrolltop/index.d.ts +2 -2
  420. package/scrolltop/index.mjs.map +1 -1
  421. package/scrolltop/style/index.mjs +1 -1
  422. package/scrolltop/style/index.mjs.map +1 -1
  423. package/select/BaseSelect.vue +2 -19
  424. package/select/Select.vue +15 -19
  425. package/select/index.d.ts +23 -2
  426. package/select/index.mjs +18 -40
  427. package/select/index.mjs.map +1 -1
  428. package/select/style/index.mjs +7 -5
  429. package/select/style/index.mjs.map +1 -1
  430. package/selectbutton/BaseSelectButton.vue +6 -8
  431. package/selectbutton/SelectButton.vue +9 -8
  432. package/selectbutton/index.d.ts +23 -2
  433. package/selectbutton/index.mjs +15 -16
  434. package/selectbutton/index.mjs.map +1 -1
  435. package/selectbutton/style/index.mjs +3 -3
  436. package/selectbutton/style/index.mjs.map +1 -1
  437. package/sidebar/index.d.ts +2 -2
  438. package/sidebar/index.mjs.map +1 -1
  439. package/sidebar/style/index.mjs.map +1 -1
  440. package/skeleton/index.d.ts +2 -2
  441. package/skeleton/index.mjs.map +1 -1
  442. package/skeleton/style/index.mjs +1 -1
  443. package/skeleton/style/index.mjs.map +1 -1
  444. package/slider/BaseSlider.vue +2 -7
  445. package/slider/Slider.vue +94 -38
  446. package/slider/index.d.ts +24 -2
  447. package/slider/index.mjs +145 -72
  448. package/slider/index.mjs.map +1 -1
  449. package/slider/style/index.mjs +4 -2
  450. package/slider/style/index.mjs.map +1 -1
  451. package/speeddial/index.d.ts +2 -2
  452. package/speeddial/index.mjs.map +1 -1
  453. package/speeddial/style/index.mjs +1 -1
  454. package/speeddial/style/index.mjs.map +1 -1
  455. package/splitbutton/index.d.ts +2 -2
  456. package/splitbutton/index.mjs.map +1 -1
  457. package/splitbutton/style/index.mjs +1 -1
  458. package/splitbutton/style/index.mjs.map +1 -1
  459. package/splitter/Splitter.vue +31 -3
  460. package/splitter/index.d.ts +2 -2
  461. package/splitter/index.mjs +50 -20
  462. package/splitter/index.mjs.map +1 -1
  463. package/splitter/style/index.mjs.map +1 -1
  464. package/splitterpanel/index.d.ts +2 -2
  465. package/splitterpanel/index.mjs.map +1 -1
  466. package/splitterpanel/style/index.mjs.map +1 -1
  467. package/step/index.d.ts +2 -2
  468. package/step/index.mjs.map +1 -1
  469. package/step/style/index.mjs.map +1 -1
  470. package/stepitem/index.d.ts +2 -2
  471. package/stepitem/index.mjs.map +1 -1
  472. package/stepitem/style/index.mjs.map +1 -1
  473. package/steplist/index.d.ts +2 -2
  474. package/steplist/index.mjs.map +1 -1
  475. package/steplist/style/index.mjs.map +1 -1
  476. package/steppanel/index.d.ts +2 -2
  477. package/steppanel/index.mjs.map +1 -1
  478. package/steppanel/style/index.mjs.map +1 -1
  479. package/steppanels/index.d.ts +2 -2
  480. package/steppanels/index.mjs.map +1 -1
  481. package/steppanels/style/index.mjs.map +1 -1
  482. package/stepper/index.d.ts +2 -2
  483. package/stepper/index.mjs.map +1 -1
  484. package/stepper/style/index.mjs +1 -1
  485. package/stepper/style/index.mjs.map +1 -1
  486. package/steps/index.d.ts +2 -2
  487. package/steps/index.mjs.map +1 -1
  488. package/steps/style/index.mjs +1 -1
  489. package/steps/style/index.mjs.map +1 -1
  490. package/styleclass/index.mjs.map +1 -1
  491. package/styleclass/style/index.mjs.map +1 -1
  492. package/tab/index.d.ts +2 -2
  493. package/tab/index.mjs.map +1 -1
  494. package/tab/style/index.mjs.map +1 -1
  495. package/tablist/TabList.vue +40 -5
  496. package/tablist/index.d.ts +2 -2
  497. package/tablist/index.mjs +38 -5
  498. package/tablist/index.mjs.map +1 -1
  499. package/tablist/style/index.mjs.map +1 -1
  500. package/tabmenu/index.d.ts +2 -2
  501. package/tabmenu/index.mjs.map +1 -1
  502. package/tabmenu/style/index.mjs.map +1 -1
  503. package/tabpanel/index.d.ts +2 -2
  504. package/tabpanel/index.mjs.map +1 -1
  505. package/tabpanel/style/index.mjs.map +1 -1
  506. package/tabpanels/index.d.ts +2 -2
  507. package/tabpanels/index.mjs.map +1 -1
  508. package/tabpanels/style/index.mjs.map +1 -1
  509. package/tabs/index.d.ts +2 -2
  510. package/tabs/index.mjs.map +1 -1
  511. package/tabs/style/index.mjs +1 -1
  512. package/tabs/style/index.mjs.map +1 -1
  513. package/tabview/index.d.ts +2 -2
  514. package/tabview/index.mjs.map +1 -1
  515. package/tabview/style/index.mjs.map +1 -1
  516. package/tag/index.d.ts +2 -2
  517. package/tag/index.mjs.map +1 -1
  518. package/tag/style/index.mjs.map +1 -1
  519. package/terminal/index.d.ts +2 -2
  520. package/terminal/index.mjs.map +1 -1
  521. package/terminal/style/index.mjs +1 -1
  522. package/terminal/style/index.mjs.map +1 -1
  523. package/textarea/BaseTextarea.vue +3 -16
  524. package/textarea/Textarea.vue +13 -19
  525. package/textarea/index.d.ts +23 -2
  526. package/textarea/index.mjs +14 -38
  527. package/textarea/index.mjs.map +1 -1
  528. package/textarea/style/index.mjs +7 -5
  529. package/textarea/style/index.mjs.map +1 -1
  530. package/tieredmenu/TieredMenu.vue +8 -3
  531. package/tieredmenu/index.d.ts +2 -2
  532. package/tieredmenu/index.mjs +6 -3
  533. package/tieredmenu/index.mjs.map +1 -1
  534. package/tieredmenu/style/index.mjs +1 -1
  535. package/tieredmenu/style/index.mjs.map +1 -1
  536. package/timeline/index.d.ts +2 -2
  537. package/timeline/index.mjs.map +1 -1
  538. package/timeline/style/index.mjs.map +1 -1
  539. package/toast/Toast.vue +0 -1
  540. package/toast/index.d.ts +2 -2
  541. package/toast/index.mjs.map +1 -1
  542. package/toast/style/index.mjs +1 -1
  543. package/toast/style/index.mjs.map +1 -1
  544. package/toastservice/index.mjs.map +1 -1
  545. package/togglebutton/BaseToggleButton.vue +6 -11
  546. package/togglebutton/ToggleButton.vue +11 -7
  547. package/togglebutton/index.d.ts +23 -2
  548. package/togglebutton/index.mjs +20 -18
  549. package/togglebutton/index.mjs.map +1 -1
  550. package/togglebutton/style/index.mjs +4 -2
  551. package/togglebutton/style/index.mjs.map +1 -1
  552. package/toggleswitch/BaseToggleSwitch.vue +2 -14
  553. package/toggleswitch/ToggleSwitch.vue +4 -3
  554. package/toggleswitch/index.d.ts +19 -2
  555. package/toggleswitch/index.mjs +7 -17
  556. package/toggleswitch/index.mjs.map +1 -1
  557. package/toggleswitch/style/index.mjs +2 -2
  558. package/toggleswitch/style/index.mjs.map +1 -1
  559. package/toolbar/index.d.ts +2 -2
  560. package/toolbar/index.mjs.map +1 -1
  561. package/toolbar/style/index.mjs.map +1 -1
  562. package/tooltip/index.mjs.map +1 -1
  563. package/tooltip/style/index.mjs +1 -1
  564. package/tooltip/style/index.mjs.map +1 -1
  565. package/tree/Tree.vue +1 -1
  566. package/tree/TreeNode.vue +1 -1
  567. package/tree/index.d.ts +2 -2
  568. package/tree/index.mjs +5 -4
  569. package/tree/index.mjs.map +1 -1
  570. package/tree/style/index.mjs +2 -1
  571. package/tree/style/index.mjs.map +1 -1
  572. package/treeselect/BaseTreeSelect.vue +18 -19
  573. package/treeselect/TreeSelect.vue +61 -18
  574. package/treeselect/index.d.ts +82 -28
  575. package/treeselect/index.mjs +87 -38
  576. package/treeselect/index.mjs.map +1 -1
  577. package/treeselect/style/index.d.ts +4 -0
  578. package/treeselect/style/index.mjs +8 -5
  579. package/treeselect/style/index.mjs.map +1 -1
  580. package/treetable/BodyCell.vue +21 -12
  581. package/treetable/FooterCell.vue +15 -6
  582. package/treetable/HeaderCell.vue +15 -6
  583. package/treetable/TreeTable.vue +57 -2
  584. package/treetable/index.d.ts +14 -10
  585. package/treetable/index.mjs +146 -59
  586. package/treetable/index.mjs.map +1 -1
  587. package/treetable/style/index.mjs +1 -1
  588. package/treetable/style/index.mjs.map +1 -1
  589. package/umd/primevue.min.js +1 -1
  590. package/useconfirm/index.mjs.map +1 -1
  591. package/usedialog/index.mjs.map +1 -1
  592. package/usetoast/index.mjs.map +1 -1
  593. package/virtualscroller/index.d.ts +2 -2
  594. package/virtualscroller/index.mjs.map +1 -1
  595. package/virtualscroller/style/index.mjs.map +1 -1
  596. package/web-types.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { focus, addStyle, relativePosition, getOuterWidth, absolutePosition, isTouchDevice, findSingle } from '@primeuix/utils/dom';
2
- import { resolveFieldData, isNotEmpty, isString, isPrintableCharacter, isEmpty, findLastIndex, equals } from '@primeuix/utils/object';
2
+ import { resolveFieldData, isNotEmpty, equals, isString, isPrintableCharacter, isEmpty, findLastIndex } from '@primeuix/utils/object';
3
3
  import { ZIndex } from '@primeuix/utils/zindex';
4
4
  import { UniqueComponentId, ConnectedOverlayScrollHandler } from '@primevue/core/utils';
5
5
  import AngleRightIcon from '@primevue/icons/angleright';
@@ -7,16 +7,17 @@ import ChevronDownIcon from '@primevue/icons/chevrondown';
7
7
  import SpinnerIcon from '@primevue/icons/spinner';
8
8
  import OverlayEventBus from 'primevue/overlayeventbus';
9
9
  import Portal from 'primevue/portal';
10
- import BaseComponent from '@primevue/core/basecomponent';
10
+ import BaseInput from '@primevue/core/baseinput';
11
11
  import CascadeSelectStyle from 'primevue/cascadeselect/style';
12
+ import BaseComponent from '@primevue/core/basecomponent';
12
13
  import Ripple from 'primevue/ripple';
13
14
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, Fragment, renderList, withDirectives, createBlock, resolveDynamicComponent, toDisplayString, normalizeClass, createCommentVNode, createElementVNode, renderSlot, createTextVNode, createVNode, withCtx, Transition } from 'vue';
15
+ import TimesIcon from '@primevue/icons/times';
14
16
 
15
17
  var script$2 = {
16
18
  name: 'BaseCascadeSelect',
17
- "extends": BaseComponent,
19
+ "extends": BaseInput,
18
20
  props: {
19
- modelValue: null,
20
21
  options: Array,
21
22
  optionLabel: null,
22
23
  optionValue: null,
@@ -28,16 +29,15 @@ var script$2 = {
28
29
  type: String,
29
30
  "default": '960px'
30
31
  },
31
- variant: {
32
- type: String,
33
- "default": null
34
- },
35
- invalid: {
32
+ dataKey: null,
33
+ showClear: {
36
34
  type: Boolean,
37
35
  "default": false
38
36
  },
39
- disabled: Boolean,
40
- dataKey: null,
37
+ clearIcon: {
38
+ type: String,
39
+ "default": undefined
40
+ },
41
41
  inputId: {
42
42
  type: String,
43
43
  "default": null
@@ -145,10 +145,6 @@ var script$2 = {
145
145
  ariaLabel: {
146
146
  type: String,
147
147
  "default": null
148
- },
149
- fluid: {
150
- type: Boolean,
151
- "default": null
152
148
  }
153
149
  },
154
150
  style: CascadeSelectStyle,
@@ -181,7 +177,8 @@ var script$1 = {
181
177
  },
182
178
  activeOptionPath: Array,
183
179
  level: Number,
184
- templates: null
180
+ templates: null,
181
+ value: null
185
182
  },
186
183
  methods: {
187
184
  getOptionId: function getOptionId(processedOption) {
@@ -219,7 +216,7 @@ var script$1 = {
219
216
  return isNotEmpty(processedOption.children);
220
217
  },
221
218
  isOptionSelected: function isOptionSelected(processedOption) {
222
- return !this.isOptionGroup(processedOption) && this.isOptionActive(processedOption);
219
+ return equals(this.value, processedOption === null || processedOption === void 0 ? void 0 : processedOption.option);
223
220
  },
224
221
  isOptionActive: function isOptionActive(processedOption) {
225
222
  return this.activeOptionPath.some(function (path) {
@@ -251,15 +248,6 @@ var script$1 = {
251
248
  processedOption: processedOption
252
249
  });
253
250
  },
254
- onOptionChange: function onOptionChange(event) {
255
- this.$emit('option-change', event);
256
- },
257
- onOptionFocusChange: function onOptionFocusChange(event) {
258
- this.$emit('option-focus-change', event);
259
- },
260
- onOptionFocusEnterChange: function onOptionFocusEnterChange(event) {
261
- this.$emit('option-focus-enter-change', event);
262
- },
263
251
  containerRef: function containerRef(el) {
264
252
  this.container = el;
265
253
  },
@@ -356,27 +344,35 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
356
344
  optionGroupIcon: $props.optionGroupIcon,
357
345
  optionGroupLabel: $props.optionGroupLabel,
358
346
  optionGroupChildren: $props.optionGroupChildren,
359
- onOptionChange: $options.onOptionChange,
360
- onOptionFocusChange: $options.onOptionFocusChange,
361
- onOptionFocusEnterChange: $options.onOptionFocusEnterChange,
347
+ value: $props.value,
348
+ onOptionChange: _cache[0] || (_cache[0] = function ($event) {
349
+ return _ctx.$emit('option-change', $event);
350
+ }),
351
+ onOptionFocusChange: _cache[1] || (_cache[1] = function ($event) {
352
+ return _ctx.$emit('option-focus-change', $event);
353
+ }),
354
+ onOptionFocusEnterChange: _cache[2] || (_cache[2] = function ($event) {
355
+ return _ctx.$emit('option-focus-enter-change', $event);
356
+ }),
362
357
  pt: _ctx.pt,
363
358
  unstyled: _ctx.unstyled
364
- }, null, 8, ["class", "selectId", "focusedOptionId", "options", "activeOptionPath", "level", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "onOptionChange", "onOptionFocusChange", "onOptionFocusEnterChange", "pt", "unstyled"])) : createCommentVNode("", true)], 16, _hoisted_1$1);
359
+ }, null, 8, ["class", "selectId", "focusedOptionId", "options", "activeOptionPath", "level", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "value", "pt", "unstyled"])) : createCommentVNode("", true)], 16, _hoisted_1$1);
365
360
  }), 128))], 16);
366
361
  }
367
362
 
368
363
  script$1.render = render$1;
369
364
 
365
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
366
+ function ownKeys$1(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; }
367
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
368
+ function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
369
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
370
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
370
371
  var script = {
371
372
  name: 'CascadeSelect',
372
373
  "extends": script$2,
373
374
  inheritAttrs: false,
374
- emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
375
- inject: {
376
- $pcFluid: {
377
- "default": null
378
- }
379
- },
375
+ emits: ['change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
380
376
  outsideClickListener: null,
381
377
  matchMediaListener: null,
382
378
  scrollHandler: null,
@@ -461,8 +457,8 @@ var script = {
461
457
  show: function show(isFocus) {
462
458
  this.$emit('before-show');
463
459
  this.overlayVisible = true;
464
- this.activeOptionPath = this.hasSelectedOption ? this.findOptionPathByValue(this.modelValue) : this.activeOptionPath;
465
- if (this.hasSelectedOption && isNotEmpty(this.activeOptionPath)) {
460
+ this.activeOptionPath = this.$filled ? this.findOptionPathByValue(this.d_value) : this.activeOptionPath;
461
+ if (this.$filled && isNotEmpty(this.activeOptionPath)) {
466
462
  var processedOption = this.activeOptionPath[this.activeOptionPath.length - 1];
467
463
  this.focusedOptionInfo = {
468
464
  index: processedOption.index,
@@ -505,6 +501,7 @@ var script = {
505
501
  this.$emit('focus', event);
506
502
  },
507
503
  onBlur: function onBlur(event) {
504
+ var _this$formField$onBlu, _this$formField;
508
505
  this.focused = false;
509
506
  this.focusedOptionInfo = {
510
507
  index: -1,
@@ -513,6 +510,7 @@ var script = {
513
510
  };
514
511
  this.searchValue = '';
515
512
  this.$emit('blur', event);
513
+ (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField);
516
514
  },
517
515
  onKeyDown: function onKeyDown(event) {
518
516
  if (this.disabled || this.loading) {
@@ -569,11 +567,8 @@ var script = {
569
567
  this.clicked = false;
570
568
  },
571
569
  onOptionChange: function onOptionChange(event) {
572
- var isSelectable = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
573
- var originalEvent = event.originalEvent,
574
- processedOption = event.processedOption,
575
- isFocus = event.isFocus,
576
- isHide = event.isHide;
570
+ var processedOption = event.processedOption,
571
+ type = event.type;
577
572
  if (isEmpty(processedOption)) return;
578
573
  var index = processedOption.index,
579
574
  key = processedOption.key,
@@ -581,56 +576,81 @@ var script = {
581
576
  parentKey = processedOption.parentKey,
582
577
  children = processedOption.children;
583
578
  var grouped = isNotEmpty(children);
584
- var root = isEmpty(processedOption.parent);
579
+ var activeOptionPath = this.activeOptionPath.filter(function (p) {
580
+ return p.parentKey !== parentKey && p.parentKey !== key;
581
+ });
582
+ this.focusedOptionInfo = {
583
+ index: index,
584
+ level: level,
585
+ parentKey: parentKey
586
+ };
587
+ if (type == 'hover' && this.queryMatches) {
588
+ return;
589
+ }
590
+ if (grouped) {
591
+ activeOptionPath.push(processedOption);
592
+ }
593
+ this.activeOptionPath = activeOptionPath;
594
+ },
595
+ onOptionClick: function onOptionClick(event) {
596
+ var originalEvent = event.originalEvent,
597
+ processedOption = event.processedOption,
598
+ isFocus = event.isFocus,
599
+ isHide = event.isHide,
600
+ preventSelection = event.preventSelection;
601
+ var index = processedOption.index,
602
+ key = processedOption.key,
603
+ level = processedOption.level,
604
+ parentKey = processedOption.parentKey;
605
+ var grouped = this.isProccessedOptionGroup(processedOption);
585
606
  var selected = this.isSelected(processedOption);
586
607
  if (selected) {
587
- this.focusedOptionInfo = {
588
- index: index,
589
- level: level,
590
- parentKey: parentKey
591
- };
592
608
  this.activeOptionPath = this.activeOptionPath.filter(function (p) {
593
609
  return key !== p.key && key.startsWith(p.key);
594
610
  });
595
- this.dirty = !root;
596
- } else {
597
- var activeOptionPath = this.activeOptionPath.filter(function (p) {
598
- return p.parentKey !== parentKey && p.parentKey !== key;
599
- });
600
- activeOptionPath.push(processedOption);
601
611
  this.focusedOptionInfo = {
602
612
  index: index,
603
613
  level: level,
604
614
  parentKey: parentKey
605
615
  };
606
- this.activeOptionPath = activeOptionPath;
607
- }
608
- if (grouped) {
609
- this.dirty = true;
610
- this.onOptionGroupSelect(originalEvent, processedOption);
611
616
  } else {
612
- isSelectable && this.onOptionSelect(originalEvent, processedOption, isHide);
617
+ if (grouped) {
618
+ this.onOptionChange(event);
619
+ this.onOptionGroupSelect(originalEvent, processedOption);
620
+ } else {
621
+ var activeOptionPath = this.activeOptionPath.filter(function (p) {
622
+ return p.parentKey !== parentKey;
623
+ });
624
+ activeOptionPath.push(processedOption);
625
+ this.focusedOptionInfo = {
626
+ index: index,
627
+ level: level,
628
+ parentKey: parentKey
629
+ };
630
+ if (!preventSelection || (processedOption === null || processedOption === void 0 ? void 0 : processedOption.children.length) !== 0) {
631
+ this.activeOptionPath = activeOptionPath;
632
+ this.onOptionSelect(originalEvent, processedOption, isHide);
633
+ }
634
+ }
613
635
  }
614
636
  isFocus && focus(this.$refs.focusInput);
615
637
  },
616
- onOptionFocusMoveChange: function onOptionFocusMoveChange(event) {
638
+ onOptionMouseEnter: function onOptionMouseEnter(event) {
617
639
  if (this.focusOnHover) {
618
- var originalEvent = event.originalEvent,
619
- processedOption = event.processedOption;
620
- var index = processedOption.index,
621
- level = processedOption.level,
622
- parentKey = processedOption.parentKey;
623
- this.focusedOptionInfo = {
624
- index: index,
625
- level: level,
626
- parentKey: parentKey
627
- };
628
- this.changeFocusedOptionIndex(originalEvent, index);
640
+ if (this.dirty || !this.dirty && isNotEmpty(this.d_value)) {
641
+ this.onOptionChange(_objectSpread$1(_objectSpread$1({}, event), {}, {
642
+ type: 'hover'
643
+ }));
644
+ } else if (!this.dirty && event.processedOption.level === 0) {
645
+ this.onOptionClick(_objectSpread$1(_objectSpread$1({}, event), {}, {
646
+ type: 'hover'
647
+ }));
648
+ }
629
649
  }
630
650
  },
631
- onOptionFocusChangeEnter: function onOptionFocusChangeEnter(event) {
632
- if (this.dirty) {
633
- this.onOptionChange(event, false);
651
+ onOptionMouseMove: function onOptionMouseMove(event) {
652
+ if (this.focused && this.focusOnHover) {
653
+ this.changeFocusedOptionIndex(event, event.processedOption.index);
634
654
  }
635
655
  },
636
656
  onOptionSelect: function onOptionSelect(event, processedOption) {
@@ -653,13 +673,18 @@ var script = {
653
673
  if (this.disabled || this.loading) {
654
674
  return;
655
675
  }
656
- if (!this.overlay || !this.overlay.contains(event.target)) {
676
+ if (event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section="clearicon"]')) {
677
+ return;
678
+ } else if (!this.overlay || !this.overlay.contains(event.target)) {
657
679
  this.overlayVisible ? this.hide() : this.show();
658
680
  focus(this.$refs.focusInput);
659
681
  }
660
682
  this.clicked = true;
661
683
  this.$emit('click', event);
662
684
  },
685
+ onClearClick: function onClearClick(event) {
686
+ this.updateModel(event, null);
687
+ },
663
688
  onOverlayClick: function onOverlayClick(event) {
664
689
  OverlayEventBus.emit('overlay-click', {
665
690
  originalEvent: event,
@@ -678,7 +703,7 @@ var script = {
678
703
  this.show();
679
704
  } else {
680
705
  var optionIndex = this.focusedOptionInfo.index !== -1 ? this.findNextOptionIndex(this.focusedOptionInfo.index) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
681
- this.changeFocusedOptionIndex(event, optionIndex);
706
+ this.changeFocusedOptionIndex(event, optionIndex, true);
682
707
  }
683
708
  event.preventDefault();
684
709
  },
@@ -696,7 +721,7 @@ var script = {
696
721
  event.preventDefault();
697
722
  } else {
698
723
  var optionIndex = this.focusedOptionInfo.index !== -1 ? this.findPrevOptionIndex(this.focusedOptionInfo.index) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
699
- this.changeFocusedOptionIndex(event, optionIndex);
724
+ this.changeFocusedOptionIndex(event, optionIndex, true);
700
725
  !this.overlayVisible && this.show();
701
726
  event.preventDefault();
702
727
  }
@@ -769,9 +794,10 @@ var script = {
769
794
  if (this.focusedOptionInfo.index !== -1) {
770
795
  var processedOption = this.visibleOptions[this.focusedOptionInfo.index];
771
796
  var grouped = this.isProccessedOptionGroup(processedOption);
772
- this.onOptionChange({
797
+ this.onOptionClick({
773
798
  originalEvent: event,
774
- processedOption: processedOption
799
+ processedOption: processedOption,
800
+ preventSelection: false
775
801
  });
776
802
  !grouped && this.hide();
777
803
  }
@@ -1009,10 +1035,18 @@ var script = {
1009
1035
  }, 500);
1010
1036
  return matched;
1011
1037
  },
1012
- changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
1038
+ changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index, preventSelection) {
1013
1039
  if (this.focusedOptionInfo.index !== index) {
1014
1040
  this.focusedOptionInfo.index = index;
1015
1041
  this.scrollInView();
1042
+ if (this.focusOnHover) {
1043
+ this.onOptionClick({
1044
+ originalEvent: event,
1045
+ processedOption: this.visibleOptions[index],
1046
+ isHide: false,
1047
+ preventSelection: preventSelection
1048
+ });
1049
+ }
1016
1050
  if (this.selectOnFocus) {
1017
1051
  this.onOptionChange({
1018
1052
  originalEvent: event,
@@ -1037,7 +1071,7 @@ var script = {
1037
1071
  });
1038
1072
  },
1039
1073
  autoUpdateModel: function autoUpdateModel() {
1040
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
1074
+ if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
1041
1075
  this.focusedOptionInfo.index = this.findFirstFocusedOptionIndex();
1042
1076
  this.onOptionChange({
1043
1077
  processedOption: this.visibleOptions[this.focusedOptionInfo.index],
@@ -1051,7 +1085,7 @@ var script = {
1051
1085
  }
1052
1086
  },
1053
1087
  updateModel: function updateModel(event, value) {
1054
- this.$emit('update:modelValue', value);
1088
+ this.writeValue(value, event);
1055
1089
  this.$emit('change', {
1056
1090
  originalEvent: event,
1057
1091
  value: value
@@ -1083,13 +1117,14 @@ var script = {
1083
1117
  }
1084
1118
  },
1085
1119
  computed: {
1120
+ // @deprecated use $filled instead.
1086
1121
  hasSelectedOption: function hasSelectedOption() {
1087
- return isNotEmpty(this.modelValue);
1122
+ return this.$filled;
1088
1123
  },
1089
1124
  label: function label() {
1090
1125
  var label = this.placeholder || 'p-emptylabel';
1091
- if (this.hasSelectedOption) {
1092
- var activeOptionPath = this.findOptionPathByValue(this.modelValue);
1126
+ if (this.$filled) {
1127
+ var activeOptionPath = this.findOptionPathByValue(this.d_value);
1093
1128
  var processedOption = isNotEmpty(activeOptionPath) ? activeOptionPath[activeOptionPath.length - 1] : null;
1094
1129
  return processedOption ? this.getOptionLabel(processedOption.option) : label;
1095
1130
  }
@@ -1127,13 +1162,13 @@ var script = {
1127
1162
  return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
1128
1163
  },
1129
1164
  selectedMessageText: function selectedMessageText() {
1130
- return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', '1') : this.emptySelectionMessageText;
1165
+ return this.$filled ? this.selectionMessageText.replaceAll('{0}', '1') : this.emptySelectionMessageText;
1131
1166
  },
1132
1167
  focusedOptionId: function focusedOptionId() {
1133
1168
  return this.focusedOptionInfo.index !== -1 ? "".concat(this.id).concat(isNotEmpty(this.focusedOptionInfo.parentKey) ? '_' + this.focusedOptionInfo.parentKey : '', "_").concat(this.focusedOptionInfo.index) : null;
1134
1169
  },
1135
- hasFluid: function hasFluid() {
1136
- return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
1170
+ isClearIconVisible: function isClearIconVisible() {
1171
+ return this.showClear && this.d_value != null && isNotEmpty(this.options);
1137
1172
  }
1138
1173
  },
1139
1174
  components: {
@@ -1141,7 +1176,8 @@ var script = {
1141
1176
  Portal: Portal,
1142
1177
  ChevronDownIcon: ChevronDownIcon,
1143
1178
  SpinnerIcon: SpinnerIcon,
1144
- AngleRightIcon: AngleRightIcon
1179
+ AngleRightIcon: AngleRightIcon,
1180
+ TimesIcon: TimesIcon
1145
1181
  }
1146
1182
  };
1147
1183
 
@@ -1197,11 +1233,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1197
1233
  }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('hiddenInput'))), null, 16, _hoisted_1)], 16), createElementVNode("span", mergeProps({
1198
1234
  "class": _ctx.cx('label')
1199
1235
  }, _ctx.ptm('label')), [renderSlot(_ctx.$slots, "value", {
1200
- value: _ctx.modelValue,
1236
+ value: _ctx.d_value,
1201
1237
  placeholder: _ctx.placeholder
1202
1238
  }, function () {
1203
1239
  return [createTextVNode(toDisplayString($options.label), 1)];
1204
- })], 16), createElementVNode("div", mergeProps({
1240
+ })], 16), $options.isClearIconVisible ? renderSlot(_ctx.$slots, "clearicon", {
1241
+ key: 0,
1242
+ "class": normalizeClass(_ctx.cx('clearIcon')),
1243
+ clearCallback: $options.onClearClick
1244
+ }, function () {
1245
+ return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon ? 'i' : 'TimesIcon'), mergeProps({
1246
+ ref: "clearIcon",
1247
+ "class": [_ctx.cx('clearIcon'), _ctx.clearIcon],
1248
+ onClick: $options.onClearClick
1249
+ }, _ctx.ptm('clearIcon'), {
1250
+ "data-pc-section": "clearicon"
1251
+ }), null, 16, ["class", "onClick"]))];
1252
+ }) : createCommentVNode("", true), createElementVNode("div", mergeProps({
1205
1253
  "class": _ctx.cx('dropdown'),
1206
1254
  role: "button",
1207
1255
  tabindex: "-1"
@@ -1257,7 +1305,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1257
1305
  return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1258
1306
  })
1259
1307
  }, _objectSpread(_objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.overlayProps), _ctx.ptm('overlay'))), [renderSlot(_ctx.$slots, "header", {
1260
- value: _ctx.modelValue,
1308
+ value: _ctx.d_value,
1261
1309
  options: _ctx.options
1262
1310
  }), createElementVNode("div", mergeProps({
1263
1311
  "class": _ctx.cx('listContainer')
@@ -1277,19 +1325,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1277
1325
  optionGroupIcon: _ctx.optionGroupIcon,
1278
1326
  optionGroupLabel: _ctx.optionGroupLabel,
1279
1327
  optionGroupChildren: _ctx.optionGroupChildren,
1280
- onOptionChange: $options.onOptionChange,
1281
- onOptionFocusMoveChange: $options.onOptionFocusMoveChange,
1282
- onOptionFocusEnterChange: $options.onOptionFocusChangeEnter,
1328
+ value: _ctx.d_value,
1329
+ onOptionChange: $options.onOptionClick,
1330
+ onOptionFocusChange: $options.onOptionMouseMove,
1331
+ onOptionFocusEnterChange: $options.onOptionMouseEnter,
1283
1332
  pt: _ctx.pt,
1284
1333
  unstyled: _ctx.unstyled
1285
- }, null, 8, ["id", "selectId", "focusedOptionId", "options", "activeOptionPath", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "onOptionChange", "onOptionFocusMoveChange", "onOptionFocusEnterChange", "pt", "unstyled"])], 16), createElementVNode("span", mergeProps({
1334
+ }, null, 8, ["id", "selectId", "focusedOptionId", "options", "activeOptionPath", "templates", "optionLabel", "optionValue", "optionDisabled", "optionGroupIcon", "optionGroupLabel", "optionGroupChildren", "value", "onOptionChange", "onOptionFocusChange", "onOptionFocusEnterChange", "pt", "unstyled"])], 16), createElementVNode("span", mergeProps({
1286
1335
  role: "status",
1287
1336
  "aria-live": "polite",
1288
1337
  "class": "p-hidden-accessible"
1289
1338
  }, _ctx.ptm('hiddenSelectedMessage'), {
1290
1339
  "data-p-hidden-accessible": true
1291
1340
  }), toDisplayString($options.selectedMessageText), 17), renderSlot(_ctx.$slots, "footer", {
1292
- value: _ctx.modelValue,
1341
+ value: _ctx.d_value,
1293
1342
  options: _ctx.options
1294
1343
  })], 16)) : createCommentVNode("", true)];
1295
1344
  }),