primevue 4.1.1 → 4.2.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 (493) hide show
  1. package/accordion/index.mjs.map +1 -1
  2. package/accordion/style/index.mjs +1 -1
  3. package/accordion/style/index.mjs.map +1 -1
  4. package/accordioncontent/index.mjs.map +1 -1
  5. package/accordioncontent/style/index.mjs.map +1 -1
  6. package/accordionheader/index.mjs.map +1 -1
  7. package/accordionheader/style/index.mjs.map +1 -1
  8. package/accordionpanel/index.mjs.map +1 -1
  9. package/accordionpanel/style/index.mjs.map +1 -1
  10. package/accordiontab/index.mjs.map +1 -1
  11. package/accordiontab/style/index.mjs.map +1 -1
  12. package/animateonscroll/index.mjs.map +1 -1
  13. package/animateonscroll/style/index.mjs.map +1 -1
  14. package/autocomplete/AutoComplete.vue +36 -32
  15. package/autocomplete/BaseAutoComplete.vue +2 -19
  16. package/autocomplete/index.d.ts +21 -0
  17. package/autocomplete/index.mjs +40 -53
  18. package/autocomplete/index.mjs.map +1 -1
  19. package/autocomplete/style/index.mjs +7 -7
  20. package/autocomplete/style/index.mjs.map +1 -1
  21. package/avatar/index.mjs.map +1 -1
  22. package/avatar/style/index.mjs +1 -1
  23. package/avatar/style/index.mjs.map +1 -1
  24. package/avatargroup/index.mjs.map +1 -1
  25. package/avatargroup/style/index.mjs.map +1 -1
  26. package/badge/index.mjs.map +1 -1
  27. package/badge/style/index.mjs.map +1 -1
  28. package/badgedirective/index.d.ts +2 -2
  29. package/badgedirective/index.mjs.map +1 -1
  30. package/badgedirective/style/index.mjs.map +1 -1
  31. package/blockui/index.mjs.map +1 -1
  32. package/blockui/style/index.mjs.map +1 -1
  33. package/breadcrumb/Breadcrumb.vue +1 -1
  34. package/breadcrumb/index.mjs +2 -1
  35. package/breadcrumb/index.mjs.map +1 -1
  36. package/breadcrumb/style/index.d.ts +4 -0
  37. package/breadcrumb/style/index.mjs +2 -1
  38. package/breadcrumb/style/index.mjs.map +1 -1
  39. package/button/BaseButton.vue +4 -0
  40. package/button/index.d.ts +6 -0
  41. package/button/index.mjs +4 -0
  42. package/button/index.mjs.map +1 -1
  43. package/button/style/index.mjs +3 -3
  44. package/button/style/index.mjs.map +1 -1
  45. package/buttongroup/index.mjs.map +1 -1
  46. package/buttongroup/style/index.mjs +1 -1
  47. package/buttongroup/style/index.mjs.map +1 -1
  48. package/calendar/index.mjs.map +1 -1
  49. package/calendar/style/index.mjs.map +1 -1
  50. package/card/index.mjs.map +1 -1
  51. package/card/style/index.mjs.map +1 -1
  52. package/carousel/index.mjs.map +1 -1
  53. package/carousel/style/index.mjs +1 -1
  54. package/carousel/style/index.mjs.map +1 -1
  55. package/cascadeselect/BaseCascadeSelect.vue +8 -14
  56. package/cascadeselect/CascadeSelect.vue +34 -25
  57. package/cascadeselect/index.d.ts +45 -0
  58. package/cascadeselect/index.mjs +50 -38
  59. package/cascadeselect/index.mjs.map +1 -1
  60. package/cascadeselect/style/index.d.ts +4 -0
  61. package/cascadeselect/style/index.mjs +8 -5
  62. package/cascadeselect/style/index.mjs.map +1 -1
  63. package/chart/index.mjs.map +1 -1
  64. package/chart/style/index.mjs.map +1 -1
  65. package/checkbox/BaseCheckbox.vue +2 -19
  66. package/checkbox/Checkbox.vue +18 -6
  67. package/checkbox/index.d.ts +17 -0
  68. package/checkbox/index.mjs +20 -25
  69. package/checkbox/index.mjs.map +1 -1
  70. package/checkbox/style/index.mjs +5 -3
  71. package/checkbox/style/index.mjs.map +1 -1
  72. package/checkboxgroup/BaseCheckboxGroup.vue +16 -0
  73. package/checkboxgroup/CheckboxGroup.vue +29 -0
  74. package/checkboxgroup/index.d.ts +160 -0
  75. package/checkboxgroup/index.mjs +46 -0
  76. package/checkboxgroup/index.mjs.map +1 -0
  77. package/checkboxgroup/package.json +11 -0
  78. package/checkboxgroup/style/index.d.ts +19 -0
  79. package/checkboxgroup/style/index.mjs +17 -0
  80. package/checkboxgroup/style/index.mjs.map +1 -0
  81. package/checkboxgroup/style/package.json +6 -0
  82. package/chip/index.mjs.map +1 -1
  83. package/chip/style/index.mjs +1 -1
  84. package/chip/style/index.mjs.map +1 -1
  85. package/chips/index.mjs.map +1 -1
  86. package/chips/style/index.mjs.map +1 -1
  87. package/colorpicker/BaseColorPicker.vue +2 -10
  88. package/colorpicker/ColorPicker.vue +7 -4
  89. package/colorpicker/index.d.ts +22 -0
  90. package/colorpicker/index.mjs +21 -23
  91. package/colorpicker/index.mjs.map +1 -1
  92. package/colorpicker/style/index.mjs +5 -3
  93. package/colorpicker/style/index.mjs.map +1 -1
  94. package/column/index.mjs.map +1 -1
  95. package/column/style/index.mjs.map +1 -1
  96. package/columngroup/index.mjs.map +1 -1
  97. package/columngroup/style/index.mjs.map +1 -1
  98. package/config/index.d.ts +4 -0
  99. package/confirmationservice/index.mjs.map +1 -1
  100. package/confirmdialog/index.mjs.map +1 -1
  101. package/confirmdialog/style/index.mjs.map +1 -1
  102. package/confirmpopup/index.mjs.map +1 -1
  103. package/confirmpopup/style/index.mjs +1 -1
  104. package/confirmpopup/style/index.mjs.map +1 -1
  105. package/contextmenu/index.mjs.map +1 -1
  106. package/contextmenu/style/index.mjs +1 -1
  107. package/contextmenu/style/index.mjs.map +1 -1
  108. package/datatable/BodyCell.vue +15 -6
  109. package/datatable/DataTable.vue +56 -2
  110. package/datatable/FooterCell.vue +15 -6
  111. package/datatable/HeaderCell.vue +15 -6
  112. package/datatable/index.d.ts +12 -8
  113. package/datatable/index.mjs +163 -78
  114. package/datatable/index.mjs.map +1 -1
  115. package/datatable/style/index.mjs +1 -1
  116. package/datatable/style/index.mjs.map +1 -1
  117. package/dataview/DataView.vue +33 -1
  118. package/dataview/index.d.ts +4 -0
  119. package/dataview/index.mjs +42 -6
  120. package/dataview/index.mjs.map +1 -1
  121. package/dataview/style/index.mjs.map +1 -1
  122. package/datepicker/BaseDatePicker.vue +2 -23
  123. package/datepicker/DatePicker.vue +39 -40
  124. package/datepicker/index.d.ts +21 -4
  125. package/datepicker/index.mjs +45 -65
  126. package/datepicker/index.mjs.map +1 -1
  127. package/datepicker/style/index.mjs +4 -5
  128. package/datepicker/style/index.mjs.map +1 -1
  129. package/deferredcontent/index.mjs.map +1 -1
  130. package/deferredcontent/style/index.mjs.map +1 -1
  131. package/dialog/index.mjs.map +1 -1
  132. package/dialog/style/index.mjs +1 -1
  133. package/dialog/style/index.mjs.map +1 -1
  134. package/dialogservice/index.mjs.map +1 -1
  135. package/divider/index.mjs.map +1 -1
  136. package/divider/style/index.mjs +1 -1
  137. package/divider/style/index.mjs.map +1 -1
  138. package/dock/index.mjs.map +1 -1
  139. package/dock/style/index.mjs +1 -1
  140. package/dock/style/index.mjs.map +1 -1
  141. package/drawer/index.mjs.map +1 -1
  142. package/drawer/style/index.mjs +1 -1
  143. package/drawer/style/index.mjs.map +1 -1
  144. package/dropdown/index.mjs.map +1 -1
  145. package/dropdown/style/index.mjs.map +1 -1
  146. package/dynamicdialog/index.mjs.map +1 -1
  147. package/dynamicdialog/style/index.mjs.map +1 -1
  148. package/editor/BaseEditor.vue +2 -3
  149. package/editor/Editor.vue +3 -3
  150. package/editor/index.d.ts +22 -0
  151. package/editor/index.mjs +5 -6
  152. package/editor/index.mjs.map +1 -1
  153. package/editor/style/index.mjs +7 -2
  154. package/editor/style/index.mjs.map +1 -1
  155. package/fieldset/index.mjs.map +1 -1
  156. package/fieldset/style/index.mjs +1 -1
  157. package/fieldset/style/index.mjs.map +1 -1
  158. package/fileupload/index.mjs.map +1 -1
  159. package/fileupload/style/index.mjs +1 -1
  160. package/fileupload/style/index.mjs.map +1 -1
  161. package/floatlabel/index.mjs.map +1 -1
  162. package/floatlabel/style/index.mjs +1 -1
  163. package/floatlabel/style/index.mjs.map +1 -1
  164. package/fluid/index.mjs.map +1 -1
  165. package/fluid/style/index.mjs.map +1 -1
  166. package/focustrap/index.mjs.map +1 -1
  167. package/focustrap/style/index.mjs.map +1 -1
  168. package/galleria/index.mjs.map +1 -1
  169. package/galleria/style/index.mjs +1 -1
  170. package/galleria/style/index.mjs.map +1 -1
  171. package/iconfield/index.mjs.map +1 -1
  172. package/iconfield/style/index.mjs +1 -1
  173. package/iconfield/style/index.mjs.map +1 -1
  174. package/iftalabel/index.mjs.map +1 -1
  175. package/iftalabel/style/index.mjs +1 -1
  176. package/iftalabel/style/index.mjs.map +1 -1
  177. package/image/index.mjs.map +1 -1
  178. package/image/style/index.mjs +1 -1
  179. package/image/style/index.mjs.map +1 -1
  180. package/imagecompare/ImageCompare.vue +33 -1
  181. package/imagecompare/index.mjs +35 -1
  182. package/imagecompare/index.mjs.map +1 -1
  183. package/imagecompare/style/index.mjs +1 -1
  184. package/imagecompare/style/index.mjs.map +1 -1
  185. package/index.d.ts +811 -0
  186. package/index.mjs +531 -0
  187. package/index.mjs.map +1 -0
  188. package/inlinemessage/index.mjs.map +1 -1
  189. package/inlinemessage/style/index.mjs.map +1 -1
  190. package/inplace/index.d.ts +0 -4
  191. package/inplace/index.mjs.map +1 -1
  192. package/inplace/style/index.mjs.map +1 -1
  193. package/inputchips/index.mjs.map +1 -1
  194. package/inputchips/style/index.mjs.map +1 -1
  195. package/inputgroup/index.mjs.map +1 -1
  196. package/inputgroup/style/index.mjs +1 -1
  197. package/inputgroup/style/index.mjs.map +1 -1
  198. package/inputgroupaddon/index.mjs.map +1 -1
  199. package/inputgroupaddon/style/index.mjs.map +1 -1
  200. package/inputicon/index.mjs.map +1 -1
  201. package/inputicon/style/index.mjs.map +1 -1
  202. package/inputmask/BaseInputMask.vue +2 -23
  203. package/inputmask/InputMask.vue +9 -14
  204. package/inputmask/index.d.ts +13 -0
  205. package/inputmask/index.mjs +13 -38
  206. package/inputmask/index.mjs.map +1 -1
  207. package/inputmask/style/index.mjs +1 -1
  208. package/inputmask/style/index.mjs.map +1 -1
  209. package/inputnumber/BaseInputNumber.vue +2 -22
  210. package/inputnumber/InputNumber.vue +14 -16
  211. package/inputnumber/index.d.ts +26 -0
  212. package/inputnumber/index.mjs +22 -39
  213. package/inputnumber/index.mjs.map +1 -1
  214. package/inputnumber/style/index.mjs +3 -3
  215. package/inputnumber/style/index.mjs.map +1 -1
  216. package/inputotp/BaseInputOtp.vue +2 -18
  217. package/inputotp/InputOtp.vue +4 -2
  218. package/inputotp/index.d.ts +21 -0
  219. package/inputotp/index.mjs +7 -21
  220. package/inputotp/index.mjs.map +1 -1
  221. package/inputotp/style/index.mjs +2 -2
  222. package/inputotp/style/index.mjs.map +1 -1
  223. package/inputswitch/index.mjs.map +1 -1
  224. package/inputswitch/style/index.mjs.map +1 -1
  225. package/inputtext/BaseInputText.vue +2 -21
  226. package/inputtext/InputText.vue +13 -22
  227. package/inputtext/index.d.ts +17 -0
  228. package/inputtext/index.mjs +16 -48
  229. package/inputtext/index.mjs.map +1 -1
  230. package/inputtext/style/index.mjs +7 -7
  231. package/inputtext/style/index.mjs.map +1 -1
  232. package/keyfilter/index.mjs.map +1 -1
  233. package/keyfilter/style/index.mjs.map +1 -1
  234. package/knob/BaseKnob.vue +2 -10
  235. package/knob/Knob.vue +23 -19
  236. package/knob/index.d.ts +24 -2
  237. package/knob/index.mjs +31 -32
  238. package/knob/index.mjs.map +1 -1
  239. package/knob/style/index.mjs +4 -2
  240. package/knob/style/index.mjs.map +1 -1
  241. package/listbox/BaseListbox.vue +2 -11
  242. package/listbox/Listbox.vue +21 -20
  243. package/listbox/index.d.ts +17 -0
  244. package/listbox/index.mjs +23 -31
  245. package/listbox/index.mjs.map +1 -1
  246. package/listbox/style/index.mjs +4 -3
  247. package/listbox/style/index.mjs.map +1 -1
  248. package/megamenu/index.mjs.map +1 -1
  249. package/megamenu/style/index.mjs +1 -1
  250. package/megamenu/style/index.mjs.map +1 -1
  251. package/menu/index.mjs.map +1 -1
  252. package/menu/style/index.mjs +1 -1
  253. package/menu/style/index.mjs.map +1 -1
  254. package/menubar/index.mjs.map +1 -1
  255. package/menubar/style/index.mjs +1 -1
  256. package/menubar/style/index.mjs.map +1 -1
  257. package/message/BaseMessage.vue +8 -0
  258. package/message/index.d.ts +9 -0
  259. package/message/index.mjs +8 -0
  260. package/message/index.mjs.map +1 -1
  261. package/message/style/index.mjs +7 -2
  262. package/message/style/index.mjs.map +1 -1
  263. package/metergroup/index.mjs.map +1 -1
  264. package/metergroup/style/index.mjs +1 -1
  265. package/metergroup/style/index.mjs.map +1 -1
  266. package/multiselect/BaseMultiSelect.vue +14 -19
  267. package/multiselect/MultiSelect.vue +45 -31
  268. package/multiselect/index.d.ts +50 -0
  269. package/multiselect/index.mjs +71 -52
  270. package/multiselect/index.mjs.map +1 -1
  271. package/multiselect/style/index.d.ts +4 -0
  272. package/multiselect/style/index.mjs +8 -5
  273. package/multiselect/style/index.mjs.map +1 -1
  274. package/orderlist/index.mjs.map +1 -1
  275. package/orderlist/style/index.mjs.map +1 -1
  276. package/organizationchart/index.mjs.map +1 -1
  277. package/organizationchart/style/index.mjs +1 -1
  278. package/organizationchart/style/index.mjs.map +1 -1
  279. package/overlaybadge/index.mjs.map +1 -1
  280. package/overlaybadge/style/index.mjs +1 -1
  281. package/overlaybadge/style/index.mjs.map +1 -1
  282. package/overlaypanel/index.mjs.map +1 -1
  283. package/overlaypanel/style/index.mjs.map +1 -1
  284. package/package.json +15 -6
  285. package/paginator/Paginator.vue +104 -84
  286. package/paginator/index.d.ts +54 -0
  287. package/paginator/index.mjs +21 -3
  288. package/paginator/index.mjs.map +1 -1
  289. package/paginator/style/index.mjs +1 -1
  290. package/paginator/style/index.mjs.map +1 -1
  291. package/panel/index.mjs.map +1 -1
  292. package/panel/style/index.mjs.map +1 -1
  293. package/panelmenu/index.mjs.map +1 -1
  294. package/panelmenu/style/index.mjs +1 -1
  295. package/panelmenu/style/index.mjs.map +1 -1
  296. package/passthrough/index.mjs.map +1 -1
  297. package/password/BasePassword.vue +2 -15
  298. package/password/Password.vue +13 -18
  299. package/password/index.d.ts +21 -0
  300. package/password/index.mjs +14 -32
  301. package/password/index.mjs.map +1 -1
  302. package/password/style/index.mjs +3 -3
  303. package/password/style/index.mjs.map +1 -1
  304. package/picklist/index.mjs.map +1 -1
  305. package/picklist/style/index.mjs.map +1 -1
  306. package/popover/index.mjs.map +1 -1
  307. package/popover/style/index.mjs +1 -1
  308. package/popover/style/index.mjs.map +1 -1
  309. package/portal/index.mjs.map +1 -1
  310. package/portal/style/index.mjs.map +1 -1
  311. package/progressbar/index.mjs.map +1 -1
  312. package/progressbar/style/index.mjs +1 -1
  313. package/progressbar/style/index.mjs.map +1 -1
  314. package/progressspinner/index.mjs.map +1 -1
  315. package/progressspinner/style/index.mjs.map +1 -1
  316. package/radiobutton/BaseRadioButton.vue +2 -19
  317. package/radiobutton/RadioButton.vue +15 -4
  318. package/radiobutton/index.d.ts +17 -0
  319. package/radiobutton/index.mjs +17 -23
  320. package/radiobutton/index.mjs.map +1 -1
  321. package/radiobutton/style/index.mjs +5 -3
  322. package/radiobutton/style/index.mjs.map +1 -1
  323. package/radiobuttongroup/BaseRadioButtonGroup.vue +16 -0
  324. package/radiobuttongroup/RadioButtonGroup.vue +29 -0
  325. package/radiobuttongroup/index.d.ts +160 -0
  326. package/radiobuttongroup/index.mjs +46 -0
  327. package/radiobuttongroup/index.mjs.map +1 -0
  328. package/radiobuttongroup/package.json +11 -0
  329. package/radiobuttongroup/style/index.d.ts +19 -0
  330. package/radiobuttongroup/style/index.mjs +17 -0
  331. package/radiobuttongroup/style/index.mjs.map +1 -0
  332. package/radiobuttongroup/style/package.json +6 -0
  333. package/rating/BaseRating.vue +2 -10
  334. package/rating/Rating.vue +17 -16
  335. package/rating/index.d.ts +18 -0
  336. package/rating/index.mjs +17 -23
  337. package/rating/index.mjs.map +1 -1
  338. package/rating/style/index.mjs +14 -5
  339. package/rating/style/index.mjs.map +1 -1
  340. package/ripple/index.mjs.map +1 -1
  341. package/ripple/style/index.mjs.map +1 -1
  342. package/row/index.mjs.map +1 -1
  343. package/row/style/index.mjs.map +1 -1
  344. package/scrollpanel/ScrollPanel.vue +38 -5
  345. package/scrollpanel/index.mjs +58 -28
  346. package/scrollpanel/index.mjs.map +1 -1
  347. package/scrollpanel/style/index.mjs +1 -1
  348. package/scrollpanel/style/index.mjs.map +1 -1
  349. package/scrolltop/index.mjs.map +1 -1
  350. package/scrolltop/style/index.mjs +1 -1
  351. package/scrolltop/style/index.mjs.map +1 -1
  352. package/select/BaseSelect.vue +2 -19
  353. package/select/Select.vue +15 -19
  354. package/select/index.d.ts +21 -0
  355. package/select/index.mjs +18 -40
  356. package/select/index.mjs.map +1 -1
  357. package/select/style/index.mjs +7 -5
  358. package/select/style/index.mjs.map +1 -1
  359. package/selectbutton/BaseSelectButton.vue +6 -8
  360. package/selectbutton/SelectButton.vue +9 -8
  361. package/selectbutton/index.d.ts +21 -0
  362. package/selectbutton/index.mjs +15 -16
  363. package/selectbutton/index.mjs.map +1 -1
  364. package/selectbutton/style/index.mjs +3 -3
  365. package/selectbutton/style/index.mjs.map +1 -1
  366. package/sidebar/index.mjs.map +1 -1
  367. package/sidebar/style/index.mjs.map +1 -1
  368. package/skeleton/index.mjs.map +1 -1
  369. package/skeleton/style/index.mjs +1 -1
  370. package/skeleton/style/index.mjs.map +1 -1
  371. package/slider/BaseSlider.vue +2 -7
  372. package/slider/Slider.vue +94 -38
  373. package/slider/index.d.ts +22 -0
  374. package/slider/index.mjs +145 -72
  375. package/slider/index.mjs.map +1 -1
  376. package/slider/style/index.mjs +4 -2
  377. package/slider/style/index.mjs.map +1 -1
  378. package/speeddial/index.mjs.map +1 -1
  379. package/speeddial/style/index.mjs +1 -1
  380. package/speeddial/style/index.mjs.map +1 -1
  381. package/splitbutton/index.mjs.map +1 -1
  382. package/splitbutton/style/index.mjs +1 -1
  383. package/splitbutton/style/index.mjs.map +1 -1
  384. package/splitter/Splitter.vue +31 -3
  385. package/splitter/index.mjs +50 -20
  386. package/splitter/index.mjs.map +1 -1
  387. package/splitter/style/index.mjs.map +1 -1
  388. package/splitterpanel/index.mjs.map +1 -1
  389. package/splitterpanel/style/index.mjs.map +1 -1
  390. package/step/index.mjs.map +1 -1
  391. package/step/style/index.mjs.map +1 -1
  392. package/stepitem/index.mjs.map +1 -1
  393. package/stepitem/style/index.mjs.map +1 -1
  394. package/steplist/index.mjs.map +1 -1
  395. package/steplist/style/index.mjs.map +1 -1
  396. package/steppanel/index.mjs.map +1 -1
  397. package/steppanel/style/index.mjs.map +1 -1
  398. package/steppanels/index.mjs.map +1 -1
  399. package/steppanels/style/index.mjs.map +1 -1
  400. package/stepper/index.mjs.map +1 -1
  401. package/stepper/style/index.mjs +1 -1
  402. package/stepper/style/index.mjs.map +1 -1
  403. package/steps/index.mjs.map +1 -1
  404. package/steps/style/index.mjs +1 -1
  405. package/steps/style/index.mjs.map +1 -1
  406. package/styleclass/index.mjs.map +1 -1
  407. package/styleclass/style/index.mjs.map +1 -1
  408. package/tab/index.mjs.map +1 -1
  409. package/tab/style/index.mjs.map +1 -1
  410. package/tablist/TabList.vue +40 -5
  411. package/tablist/index.mjs +38 -5
  412. package/tablist/index.mjs.map +1 -1
  413. package/tablist/style/index.mjs.map +1 -1
  414. package/tabmenu/index.mjs.map +1 -1
  415. package/tabmenu/style/index.mjs.map +1 -1
  416. package/tabpanel/index.mjs.map +1 -1
  417. package/tabpanel/style/index.mjs.map +1 -1
  418. package/tabpanels/index.mjs.map +1 -1
  419. package/tabpanels/style/index.mjs.map +1 -1
  420. package/tabs/index.mjs.map +1 -1
  421. package/tabs/style/index.mjs +1 -1
  422. package/tabs/style/index.mjs.map +1 -1
  423. package/tabview/index.mjs.map +1 -1
  424. package/tabview/style/index.mjs.map +1 -1
  425. package/tag/index.mjs.map +1 -1
  426. package/tag/style/index.mjs.map +1 -1
  427. package/terminal/index.mjs.map +1 -1
  428. package/terminal/style/index.mjs +1 -1
  429. package/terminal/style/index.mjs.map +1 -1
  430. package/textarea/BaseTextarea.vue +3 -16
  431. package/textarea/Textarea.vue +13 -19
  432. package/textarea/index.d.ts +21 -0
  433. package/textarea/index.mjs +14 -38
  434. package/textarea/index.mjs.map +1 -1
  435. package/textarea/style/index.mjs +7 -5
  436. package/textarea/style/index.mjs.map +1 -1
  437. package/tieredmenu/index.mjs.map +1 -1
  438. package/tieredmenu/style/index.mjs +1 -1
  439. package/tieredmenu/style/index.mjs.map +1 -1
  440. package/timeline/index.mjs.map +1 -1
  441. package/timeline/style/index.mjs.map +1 -1
  442. package/toast/Toast.vue +0 -1
  443. package/toast/index.mjs.map +1 -1
  444. package/toast/style/index.mjs +1 -1
  445. package/toast/style/index.mjs.map +1 -1
  446. package/toastservice/index.mjs.map +1 -1
  447. package/togglebutton/BaseToggleButton.vue +6 -11
  448. package/togglebutton/ToggleButton.vue +11 -7
  449. package/togglebutton/index.d.ts +21 -0
  450. package/togglebutton/index.mjs +20 -18
  451. package/togglebutton/index.mjs.map +1 -1
  452. package/togglebutton/style/index.mjs +4 -2
  453. package/togglebutton/style/index.mjs.map +1 -1
  454. package/toggleswitch/BaseToggleSwitch.vue +2 -14
  455. package/toggleswitch/ToggleSwitch.vue +4 -3
  456. package/toggleswitch/index.d.ts +17 -0
  457. package/toggleswitch/index.mjs +7 -17
  458. package/toggleswitch/index.mjs.map +1 -1
  459. package/toggleswitch/style/index.mjs +2 -2
  460. package/toggleswitch/style/index.mjs.map +1 -1
  461. package/toolbar/index.mjs.map +1 -1
  462. package/toolbar/style/index.mjs.map +1 -1
  463. package/tooltip/index.mjs.map +1 -1
  464. package/tooltip/style/index.mjs.map +1 -1
  465. package/tree/TreeNode.vue +1 -1
  466. package/tree/index.mjs +2 -2
  467. package/tree/index.mjs.map +1 -1
  468. package/tree/style/index.mjs +1 -1
  469. package/tree/style/index.mjs.map +1 -1
  470. package/treeselect/BaseTreeSelect.vue +18 -19
  471. package/treeselect/TreeSelect.vue +61 -18
  472. package/treeselect/index.d.ts +80 -26
  473. package/treeselect/index.mjs +87 -38
  474. package/treeselect/index.mjs.map +1 -1
  475. package/treeselect/style/index.d.ts +4 -0
  476. package/treeselect/style/index.mjs +8 -5
  477. package/treeselect/style/index.mjs.map +1 -1
  478. package/treetable/BodyCell.vue +21 -12
  479. package/treetable/FooterCell.vue +15 -6
  480. package/treetable/HeaderCell.vue +15 -6
  481. package/treetable/TreeTable.vue +57 -2
  482. package/treetable/index.d.ts +12 -8
  483. package/treetable/index.mjs +146 -59
  484. package/treetable/index.mjs.map +1 -1
  485. package/treetable/style/index.mjs +1 -1
  486. package/treetable/style/index.mjs.map +1 -1
  487. package/umd/primevue.min.js +1 -1
  488. package/useconfirm/index.mjs.map +1 -1
  489. package/usedialog/index.mjs.map +1 -1
  490. package/usetoast/index.mjs.map +1 -1
  491. package/virtualscroller/index.mjs.map +1 -1
  492. package/virtualscroller/style/index.mjs.map +1 -1
  493. package/web-types.json +1 -1
@@ -5,13 +5,15 @@
5
5
  ref="focusInput"
6
6
  :id="inputId"
7
7
  type="text"
8
+ :name="$formName"
8
9
  :class="[cx('pcInputText'), inputClass]"
9
10
  :style="inputStyle"
10
11
  :value="inputValue"
11
12
  :placeholder="placeholder"
12
13
  :tabindex="!disabled ? tabindex : -1"
13
- :fluid="hasFluid"
14
+ :fluid="$fluid"
14
15
  :disabled="disabled"
16
+ :size="size"
15
17
  :invalid="invalid"
16
18
  :variant="variant"
17
19
  autocomplete="off"
@@ -45,14 +47,14 @@
45
47
  v-bind="ptm('inputMultiple')"
46
48
  >
47
49
  <li
48
- v-for="(option, i) of modelValue"
50
+ v-for="(option, i) of d_value"
49
51
  :key="`${i}_${getOptionLabel(option)}`"
50
52
  :id="id + '_multiple_option_' + i"
51
53
  :class="cx('chipItem', { i })"
52
54
  role="option"
53
55
  :aria-label="getOptionLabel(option)"
54
56
  :aria-selected="true"
55
- :aria-setsize="modelValue.length"
57
+ :aria-setsize="d_value.length"
56
58
  :aria-posinset="i + 1"
57
59
  v-bind="ptm('chipItem')"
58
60
  >
@@ -122,7 +124,7 @@
122
124
  <Portal :appendTo="appendTo">
123
125
  <transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayAfterEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="ptm('transition')">
124
126
  <div v-if="overlayVisible" :ref="overlayRef" :id="panelId" :class="[cx('overlay'), panelClass, overlayClass]" :style="{ ...panelStyle, ...overlayStyle }" @click="onOverlayClick" @keydown="onOverlayKeyDown" v-bind="ptm('overlay')">
125
- <slot name="header" :value="modelValue" :suggestions="visibleOptions"></slot>
127
+ <slot name="header" :value="d_value" :suggestions="visibleOptions"></slot>
126
128
  <div :class="cx('listContainer')" :style="{ 'max-height': virtualScrollerDisabled ? scrollHeight : '' }" v-bind="ptm('listContainer')">
127
129
  <VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :style="{ height: scrollHeight }" :items="visibleOptions" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
128
130
  <template v-slot:content="{ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }">
@@ -170,7 +172,7 @@
170
172
  </template>
171
173
  </VirtualScroller>
172
174
  </div>
173
- <slot name="footer" :value="modelValue" :suggestions="visibleOptions"></slot>
175
+ <slot name="footer" :value="d_value" :suggestions="visibleOptions"></slot>
174
176
  <span role="status" aria-live="polite" class="p-hidden-accessible" v-bind="ptm('hiddenSelectedMessage')" :data-p-hidden-accessible="true">
175
177
  {{ selectedMessageText }}
176
178
  </span>
@@ -199,7 +201,7 @@ export default {
199
201
  name: 'AutoComplete',
200
202
  extends: BaseAutoComplete,
201
203
  inheritAttrs: false,
202
- emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
204
+ emits: ['change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
203
205
  inject: {
204
206
  $pcFluid: { default: null }
205
207
  },
@@ -342,6 +344,7 @@ export default {
342
344
  this.focused = false;
343
345
  this.focusedOptionIndex = -1;
344
346
  this.$emit('blur', event);
347
+ this.formField.onBlur?.();
345
348
  },
346
349
  onKeyDown(event) {
347
350
  if (this.disabled) {
@@ -533,7 +536,7 @@ export default {
533
536
  this.$refs.focusInput.value = '';
534
537
 
535
538
  if (!this.isSelected(option)) {
536
- this.updateModel(event, [...(this.modelValue || []), value]);
539
+ this.updateModel(event, [...(this.d_value || []), value]);
537
540
  }
538
541
  } else {
539
542
  this.updateModel(event, value);
@@ -602,9 +605,9 @@ export default {
602
605
  this.focusedOptionIndex = -1;
603
606
 
604
607
  if (this.multiple) {
605
- if (isEmpty(target.value) && this.hasSelectedOption) {
608
+ if (isEmpty(target.value) && this.$filled) {
606
609
  focus(this.$refs.multiContainer);
607
- this.focusedMultipleOptionIndex = this.modelValue.length;
610
+ this.focusedMultipleOptionIndex = this.d_value.length;
608
611
  } else {
609
612
  event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
610
613
  }
@@ -644,7 +647,7 @@ export default {
644
647
  onEnterKey(event) {
645
648
  if (!this.typeahead) {
646
649
  if (this.multiple) {
647
- this.updateModel(event, [...(this.modelValue || []), event.target.value]);
650
+ this.updateModel(event, [...(this.d_value || []), event.target.value]);
648
651
  this.$refs.focusInput.value = '';
649
652
  }
650
653
  } else {
@@ -659,6 +662,8 @@ export default {
659
662
  this.hide();
660
663
  }
661
664
  }
665
+
666
+ event.preventDefault();
662
667
  },
663
668
  onEscapeKey(event) {
664
669
  this.overlayVisible && this.hide(true);
@@ -673,11 +678,11 @@ export default {
673
678
  },
674
679
  onBackspaceKey(event) {
675
680
  if (this.multiple) {
676
- if (isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {
677
- const removedValue = this.modelValue[this.modelValue.length - 1];
678
- const newValue = this.modelValue.slice(0, -1);
681
+ if (isNotEmpty(this.d_value) && !this.$refs.focusInput.value) {
682
+ const removedValue = this.d_value[this.d_value.length - 1];
683
+ const newValue = this.d_value.slice(0, -1);
679
684
 
680
- this.$emit('update:modelValue', newValue);
685
+ this.writeValue(newValue, event);
681
686
  this.$emit('item-unselect', { originalEvent: event, value: removedValue });
682
687
  this.$emit('option-unselect', { originalEvent: event, value: removedValue });
683
688
  }
@@ -691,7 +696,7 @@ export default {
691
696
  onArrowRightKeyOnMultiple() {
692
697
  this.focusedMultipleOptionIndex++;
693
698
 
694
- if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {
699
+ if (this.focusedMultipleOptionIndex > this.d_value.length - 1) {
695
700
  this.focusedMultipleOptionIndex = -1;
696
701
  focus(this.$refs.focusInput);
697
702
  }
@@ -810,7 +815,7 @@ export default {
810
815
  isSelected(option) {
811
816
  const optionValue = this.getOptionValue(option);
812
817
 
813
- return this.multiple ? (this.modelValue || []).some((value) => this.isEquals(value, optionValue)) : this.isEquals(this.modelValue, this.getOptionValue(option));
818
+ return this.multiple ? (this.d_value || []).some((value) => this.isEquals(value, optionValue)) : this.isEquals(this.d_value, this.getOptionValue(option));
814
819
  },
815
820
  findFirstOptionIndex() {
816
821
  return this.visibleOptions.findIndex((option) => this.isValidOption(option));
@@ -829,7 +834,7 @@ export default {
829
834
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
830
835
  },
831
836
  findSelectedOptionIndex() {
832
- return this.hasSelectedOption ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
837
+ return this.$filled ? this.visibleOptions.findIndex((option) => this.isValidSelectedOption(option)) : -1;
833
838
  },
834
839
  findFirstFocusedOptionIndex() {
835
840
  const selectedIndex = this.findSelectedOptionIndex();
@@ -856,8 +861,8 @@ export default {
856
861
  this.$emit('complete', { originalEvent: event, query });
857
862
  },
858
863
  removeOption(event, index) {
859
- const removedOption = this.modelValue[index];
860
- const value = this.modelValue.filter((_, i) => i !== index).map((option) => this.getOptionValue(option));
864
+ const removedOption = this.d_value[index];
865
+ const value = this.d_value.filter((_, i) => i !== index).map((option) => this.getOptionValue(option));
861
866
 
862
867
  this.updateModel(event, value);
863
868
  this.$emit('item-unselect', { originalEvent: event, value: removedOption });
@@ -888,13 +893,13 @@ export default {
888
893
  });
889
894
  },
890
895
  autoUpdateModel() {
891
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
896
+ if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
892
897
  this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
893
898
  this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
894
899
  }
895
900
  },
896
901
  updateModel(event, value) {
897
- this.$emit('update:modelValue', value);
902
+ this.writeValue(value, event);
898
903
  this.$emit('change', { originalEvent: event, value });
899
904
  },
900
905
  flatOptions(options) {
@@ -924,23 +929,25 @@ export default {
924
929
  return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
925
930
  },
926
931
  inputValue() {
927
- if (isNotEmpty(this.modelValue)) {
928
- if (typeof this.modelValue === 'object') {
929
- const label = this.getOptionLabel(this.modelValue);
932
+ if (this.$filled) {
933
+ if (typeof this.d_value === 'object') {
934
+ const label = this.getOptionLabel(this.d_value);
930
935
 
931
- return label != null ? label : this.modelValue;
936
+ return label != null ? label : this.d_value;
932
937
  } else {
933
- return this.modelValue;
938
+ return this.d_value;
934
939
  }
935
940
  } else {
936
941
  return '';
937
942
  }
938
943
  },
944
+ // @deprecated use $filled instead.
939
945
  hasSelectedOption() {
940
- return isNotEmpty(this.modelValue);
946
+ return this.$filled;
941
947
  },
942
948
  equalityKey() {
943
- return this.dataKey; // TODO: The 'optionValue' properties can be added.
949
+ // @todo: The 'optionValue' properties can be added.
950
+ return this.dataKey;
944
951
  },
945
952
  searchResultMessageText() {
946
953
  return isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
@@ -958,7 +965,7 @@ export default {
958
965
  return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
959
966
  },
960
967
  selectedMessageText() {
961
- return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
968
+ return this.$filled ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.d_value.length : '1') : this.emptySelectionMessageText;
962
969
  },
963
970
  listAriaLabel() {
964
971
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
@@ -977,9 +984,6 @@ export default {
977
984
  },
978
985
  panelId() {
979
986
  return this.id + '_panel';
980
- },
981
- hasFluid() {
982
- return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
983
987
  }
984
988
  },
985
989
  components: {
@@ -1,12 +1,11 @@
1
1
  <script>
2
- import BaseComponent from '@primevue/core/basecomponent';
2
+ import BaseInput from '@primevue/core/baseinput';
3
3
  import AutoCompleteStyle from 'primevue/autocomplete/style';
4
4
 
5
5
  export default {
6
6
  name: 'BaseAutoComplete',
7
- extends: BaseComponent,
7
+ extends: BaseInput,
8
8
  props: {
9
- modelValue: null,
10
9
  suggestions: {
11
10
  type: Array,
12
11
  default: null
@@ -35,18 +34,6 @@ export default {
35
34
  type: Boolean,
36
35
  default: false
37
36
  },
38
- variant: {
39
- type: String,
40
- default: null
41
- },
42
- invalid: {
43
- type: Boolean,
44
- default: false
45
- },
46
- disabled: {
47
- type: Boolean,
48
- default: false
49
- },
50
37
  placeholder: {
51
38
  type: String,
52
39
  default: null
@@ -178,10 +165,6 @@ export default {
178
165
  ariaLabelledby: {
179
166
  type: String,
180
167
  default: null
181
- },
182
- fluid: {
183
- type: Boolean,
184
- default: null
185
168
  }
186
169
  },
187
170
  style: AutoCompleteStyle,
@@ -305,6 +305,14 @@ export interface AutoCompleteProps {
305
305
  * Value of the component.
306
306
  */
307
307
  modelValue?: any;
308
+ /**
309
+ * The default value for the input when not controlled by `modelValue`.
310
+ */
311
+ defaultValue?: any;
312
+ /**
313
+ * The name attribute for the element, typically used in form submissions.
314
+ */
315
+ name?: string | undefined;
308
316
  /**
309
317
  * An array of suggestions to display.
310
318
  */
@@ -359,6 +367,10 @@ export interface AutoCompleteProps {
359
367
  * @defaultValue false
360
368
  */
361
369
  loading?: boolean | undefined;
370
+ /**
371
+ * Defines the size of the component.
372
+ */
373
+ size?: 'small' | 'large' | undefined;
362
374
  /**
363
375
  * When present, it specifies that the component should have invalid state style.
364
376
  * @defaultValue false
@@ -518,6 +530,10 @@ export interface AutoCompleteProps {
518
530
  * Identifier of the underlying input element.
519
531
  */
520
532
  ariaLabelledby?: string | undefined;
533
+ /**
534
+ * Form control object, typically used for handling validation and form state.
535
+ */
536
+ formControl?: Record<string, any> | undefined;
521
537
  /**
522
538
  * It generates scoped CSS variables using design tokens for the component.
523
539
  */
@@ -748,6 +764,11 @@ export interface AutoCompleteEmitsOptions {
748
764
  * @param {*} value - New value.
749
765
  */
750
766
  'update:modelValue'(value: any): void;
767
+ /**
768
+ * Emitted when the value changes in uncontrolled mode.
769
+ * @param {*} value - New value.
770
+ */
771
+ 'value-change'(value: any): void;
751
772
  /**
752
773
  * Callback to invoke on value change.
753
774
  * @param {AutoCompleteChangeEvent} event - Custom change event.
@@ -10,15 +10,14 @@ import OverlayEventBus from 'primevue/overlayeventbus';
10
10
  import Portal from 'primevue/portal';
11
11
  import Ripple from 'primevue/ripple';
12
12
  import VirtualScroller from 'primevue/virtualscroller';
13
- import BaseComponent from '@primevue/core/basecomponent';
13
+ import BaseInput from '@primevue/core/baseinput';
14
14
  import AutoCompleteStyle from 'primevue/autocomplete/style';
15
15
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, normalizeClass, normalizeStyle, createCommentVNode, Fragment, renderList, renderSlot, createVNode, withCtx, createElementVNode, resolveDynamicComponent, toDisplayString, Transition, createSlots, createTextVNode, withDirectives } from 'vue';
16
16
 
17
17
  var script$1 = {
18
18
  name: 'BaseAutoComplete',
19
- "extends": BaseComponent,
19
+ "extends": BaseInput,
20
20
  props: {
21
- modelValue: null,
22
21
  suggestions: {
23
22
  type: Array,
24
23
  "default": null
@@ -47,18 +46,6 @@ var script$1 = {
47
46
  type: Boolean,
48
47
  "default": false
49
48
  },
50
- variant: {
51
- type: String,
52
- "default": null
53
- },
54
- invalid: {
55
- type: Boolean,
56
- "default": false
57
- },
58
- disabled: {
59
- type: Boolean,
60
- "default": false
61
- },
62
49
  placeholder: {
63
50
  type: String,
64
51
  "default": null
@@ -190,10 +177,6 @@ var script$1 = {
190
177
  ariaLabelledby: {
191
178
  type: String,
192
179
  "default": null
193
- },
194
- fluid: {
195
- type: Boolean,
196
- "default": null
197
180
  }
198
181
  },
199
182
  style: AutoCompleteStyle,
@@ -216,7 +199,7 @@ var script = {
216
199
  name: 'AutoComplete',
217
200
  "extends": script$1,
218
201
  inheritAttrs: false,
219
- emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
202
+ emits: ['change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
220
203
  inject: {
221
204
  $pcFluid: {
222
205
  "default": null
@@ -352,10 +335,12 @@ var script = {
352
335
  this.$emit('focus', event);
353
336
  },
354
337
  onBlur: function onBlur(event) {
338
+ var _this$formField$onBlu, _this$formField;
355
339
  this.dirty = false;
356
340
  this.focused = false;
357
341
  this.focusedOptionIndex = -1;
358
342
  this.$emit('blur', event);
343
+ (_this$formField$onBlu = (_this$formField = this.formField).onBlur) === null || _this$formField$onBlu === void 0 || _this$formField$onBlu.call(_this$formField);
359
344
  },
360
345
  onKeyDown: function onKeyDown(event) {
361
346
  if (this.disabled) {
@@ -509,7 +494,7 @@ var script = {
509
494
  if (this.multiple) {
510
495
  this.$refs.focusInput.value = '';
511
496
  if (!this.isSelected(option)) {
512
- this.updateModel(event, [].concat(_toConsumableArray(this.modelValue || []), [value]));
497
+ this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [value]));
513
498
  }
514
499
  } else {
515
500
  this.updateModel(event, value);
@@ -570,9 +555,9 @@ var script = {
570
555
  var target = event.currentTarget;
571
556
  this.focusedOptionIndex = -1;
572
557
  if (this.multiple) {
573
- if (isEmpty(target.value) && this.hasSelectedOption) {
558
+ if (isEmpty(target.value) && this.$filled) {
574
559
  focus(this.$refs.multiContainer);
575
- this.focusedMultipleOptionIndex = this.modelValue.length;
560
+ this.focusedMultipleOptionIndex = this.d_value.length;
576
561
  } else {
577
562
  event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method
578
563
  }
@@ -607,7 +592,7 @@ var script = {
607
592
  onEnterKey: function onEnterKey(event) {
608
593
  if (!this.typeahead) {
609
594
  if (this.multiple) {
610
- this.updateModel(event, [].concat(_toConsumableArray(this.modelValue || []), [event.target.value]));
595
+ this.updateModel(event, [].concat(_toConsumableArray(this.d_value || []), [event.target.value]));
611
596
  this.$refs.focusInput.value = '';
612
597
  }
613
598
  } else {
@@ -621,6 +606,7 @@ var script = {
621
606
  this.hide();
622
607
  }
623
608
  }
609
+ event.preventDefault();
624
610
  },
625
611
  onEscapeKey: function onEscapeKey(event) {
626
612
  this.overlayVisible && this.hide(true);
@@ -634,10 +620,10 @@ var script = {
634
620
  },
635
621
  onBackspaceKey: function onBackspaceKey(event) {
636
622
  if (this.multiple) {
637
- if (isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {
638
- var removedValue = this.modelValue[this.modelValue.length - 1];
639
- var newValue = this.modelValue.slice(0, -1);
640
- this.$emit('update:modelValue', newValue);
623
+ if (isNotEmpty(this.d_value) && !this.$refs.focusInput.value) {
624
+ var removedValue = this.d_value[this.d_value.length - 1];
625
+ var newValue = this.d_value.slice(0, -1);
626
+ this.writeValue(newValue, event);
641
627
  this.$emit('item-unselect', {
642
628
  originalEvent: event,
643
629
  value: removedValue
@@ -655,7 +641,7 @@ var script = {
655
641
  },
656
642
  onArrowRightKeyOnMultiple: function onArrowRightKeyOnMultiple() {
657
643
  this.focusedMultipleOptionIndex++;
658
- if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {
644
+ if (this.focusedMultipleOptionIndex > this.d_value.length - 1) {
659
645
  this.focusedMultipleOptionIndex = -1;
660
646
  focus(this.$refs.focusInput);
661
647
  }
@@ -774,9 +760,9 @@ var script = {
774
760
  isSelected: function isSelected(option) {
775
761
  var _this8 = this;
776
762
  var optionValue = this.getOptionValue(option);
777
- return this.multiple ? (this.modelValue || []).some(function (value) {
763
+ return this.multiple ? (this.d_value || []).some(function (value) {
778
764
  return _this8.isEquals(value, optionValue);
779
- }) : this.isEquals(this.modelValue, this.getOptionValue(option));
765
+ }) : this.isEquals(this.d_value, this.getOptionValue(option));
780
766
  },
781
767
  findFirstOptionIndex: function findFirstOptionIndex() {
782
768
  var _this9 = this;
@@ -806,7 +792,7 @@ var script = {
806
792
  },
807
793
  findSelectedOptionIndex: function findSelectedOptionIndex() {
808
794
  var _this13 = this;
809
- return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
795
+ return this.$filled ? this.visibleOptions.findIndex(function (option) {
810
796
  return _this13.isValidSelectedOption(option);
811
797
  }) : -1;
812
798
  },
@@ -836,8 +822,8 @@ var script = {
836
822
  },
837
823
  removeOption: function removeOption(event, index) {
838
824
  var _this14 = this;
839
- var removedOption = this.modelValue[index];
840
- var value = this.modelValue.filter(function (_, i) {
825
+ var removedOption = this.d_value[index];
826
+ var value = this.d_value.filter(function (_, i) {
841
827
  return i !== index;
842
828
  }).map(function (option) {
843
829
  return _this14.getOptionValue(option);
@@ -880,13 +866,13 @@ var script = {
880
866
  });
881
867
  },
882
868
  autoUpdateModel: function autoUpdateModel() {
883
- if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
869
+ if (this.selectOnFocus && this.autoOptionFocus && !this.$filled) {
884
870
  this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
885
871
  this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
886
872
  }
887
873
  },
888
874
  updateModel: function updateModel(event, value) {
889
- this.$emit('update:modelValue', value);
875
+ this.writeValue(value, event);
890
876
  this.$emit('change', {
891
877
  originalEvent: event,
892
878
  value: value
@@ -923,22 +909,24 @@ var script = {
923
909
  return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];
924
910
  },
925
911
  inputValue: function inputValue() {
926
- if (isNotEmpty(this.modelValue)) {
927
- if (_typeof$1(this.modelValue) === 'object') {
928
- var label = this.getOptionLabel(this.modelValue);
929
- return label != null ? label : this.modelValue;
912
+ if (this.$filled) {
913
+ if (_typeof$1(this.d_value) === 'object') {
914
+ var label = this.getOptionLabel(this.d_value);
915
+ return label != null ? label : this.d_value;
930
916
  } else {
931
- return this.modelValue;
917
+ return this.d_value;
932
918
  }
933
919
  } else {
934
920
  return '';
935
921
  }
936
922
  },
923
+ // @deprecated use $filled instead.
937
924
  hasSelectedOption: function hasSelectedOption() {
938
- return isNotEmpty(this.modelValue);
925
+ return this.$filled;
939
926
  },
940
927
  equalityKey: function equalityKey() {
941
- return this.dataKey; // TODO: The 'optionValue' properties can be added.
928
+ // @todo: The 'optionValue' properties can be added.
929
+ return this.dataKey;
942
930
  },
943
931
  searchResultMessageText: function searchResultMessageText() {
944
932
  return isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;
@@ -956,7 +944,7 @@ var script = {
956
944
  return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';
957
945
  },
958
946
  selectedMessageText: function selectedMessageText() {
959
- return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
947
+ return this.$filled ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.d_value.length : '1') : this.emptySelectionMessageText;
960
948
  },
961
949
  listAriaLabel: function listAriaLabel() {
962
950
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
@@ -978,9 +966,6 @@ var script = {
978
966
  },
979
967
  panelId: function panelId() {
980
968
  return this.id + '_panel';
981
- },
982
- hasFluid: function hasFluid() {
983
- return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
984
969
  }
985
970
  },
986
971
  components: {
@@ -1029,13 +1014,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1029
1014
  ref: "focusInput",
1030
1015
  id: _ctx.inputId,
1031
1016
  type: "text",
1017
+ name: _ctx.$formName,
1032
1018
  "class": normalizeClass([_ctx.cx('pcInputText'), _ctx.inputClass]),
1033
1019
  style: normalizeStyle(_ctx.inputStyle),
1034
1020
  value: $options.inputValue,
1035
1021
  placeholder: _ctx.placeholder,
1036
1022
  tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1037
- fluid: $options.hasFluid,
1023
+ fluid: _ctx.$fluid,
1038
1024
  disabled: _ctx.disabled,
1025
+ size: _ctx.size,
1039
1026
  invalid: _ctx.invalid,
1040
1027
  variant: _ctx.variant,
1041
1028
  autocomplete: "off",
@@ -1054,7 +1041,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1054
1041
  onChange: $options.onChange,
1055
1042
  unstyled: _ctx.unstyled,
1056
1043
  pt: _ctx.ptm('pcInputText')
1057
- }, null, 8, ["id", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
1044
+ }, null, 8, ["id", "name", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "size", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
1058
1045
  key: 1,
1059
1046
  ref: "multiContainer",
1060
1047
  "class": _ctx.cx('inputMultiple'),
@@ -1071,7 +1058,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1071
1058
  onKeydown: _cache[7] || (_cache[7] = function () {
1072
1059
  return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);
1073
1060
  })
1074
- }, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, function (option, i) {
1061
+ }, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.d_value, function (option, i) {
1075
1062
  return openBlock(), createElementBlock("li", mergeProps({
1076
1063
  key: "".concat(i, "_").concat($options.getOptionLabel(option)),
1077
1064
  id: $data.id + '_multiple_option_' + i,
@@ -1081,7 +1068,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1081
1068
  role: "option",
1082
1069
  "aria-label": $options.getOptionLabel(option),
1083
1070
  "aria-selected": true,
1084
- "aria-setsize": _ctx.modelValue.length,
1071
+ "aria-setsize": _ctx.d_value.length,
1085
1072
  "aria-posinset": i + 1,
1086
1073
  ref_for: true
1087
1074
  }, _ctx.ptm('chipItem')), [renderSlot(_ctx.$slots, "chip", mergeProps({
@@ -1222,7 +1209,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1222
1209
  return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
1223
1210
  })
1224
1211
  }, _ctx.ptm('overlay')), [renderSlot(_ctx.$slots, "header", {
1225
- value: _ctx.modelValue,
1212
+ value: _ctx.d_value,
1226
1213
  suggestions: $options.visibleOptions
1227
1214
  }), createElementVNode("div", mergeProps({
1228
1215
  "class": _ctx.cx('listContainer'),
@@ -1325,7 +1312,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1325
1312
  }),
1326
1313
  key: "0"
1327
1314
  } : undefined]), 1040, ["style", "items", "disabled", "pt"])], 16), renderSlot(_ctx.$slots, "footer", {
1328
- value: _ctx.modelValue,
1315
+ value: _ctx.d_value,
1329
1316
  suggestions: $options.visibleOptions
1330
1317
  }), createElementVNode("span", mergeProps({
1331
1318
  role: "status",