primevue 3.8.2 → 3.9.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 (373) hide show
  1. package/README.md +2 -2
  2. package/api/Api.d.ts +70 -36
  3. package/api/api.cjs.js +66 -32
  4. package/api/api.cjs.min.js +1 -1
  5. package/api/api.esm.js +66 -32
  6. package/api/api.esm.min.js +1 -1
  7. package/api/api.js +66 -32
  8. package/api/api.min.js +1 -1
  9. package/autocomplete/AutoComplete.vue +16 -9
  10. package/autocomplete/autocomplete.cjs.js +19 -11
  11. package/autocomplete/autocomplete.cjs.min.js +1 -1
  12. package/autocomplete/autocomplete.esm.js +19 -11
  13. package/autocomplete/autocomplete.esm.min.js +1 -1
  14. package/autocomplete/autocomplete.js +19 -11
  15. package/autocomplete/autocomplete.min.js +1 -1
  16. package/breadcrumb/BreadcrumbItem.vue +5 -2
  17. package/breadcrumb/breadcrumb.cjs.js +5 -2
  18. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  19. package/breadcrumb/breadcrumb.esm.js +5 -2
  20. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  21. package/breadcrumb/breadcrumb.js +5 -2
  22. package/breadcrumb/breadcrumb.min.js +1 -1
  23. package/calendar/Calendar.d.ts +6 -0
  24. package/calendar/Calendar.vue +362 -67
  25. package/calendar/calendar.cjs.js +459 -168
  26. package/calendar/calendar.cjs.min.js +1 -1
  27. package/calendar/calendar.esm.js +461 -170
  28. package/calendar/calendar.esm.min.js +1 -1
  29. package/calendar/calendar.js +459 -168
  30. package/calendar/calendar.min.js +1 -1
  31. package/carousel/Carousel.vue +2 -2
  32. package/carousel/carousel.cjs.js +6 -6
  33. package/carousel/carousel.cjs.min.js +1 -1
  34. package/carousel/carousel.esm.js +6 -6
  35. package/carousel/carousel.esm.min.js +1 -1
  36. package/carousel/carousel.js +6 -6
  37. package/carousel/carousel.min.js +1 -1
  38. package/cascadeselect/CascadeSelect.d.ts +8 -4
  39. package/chart/Chart.vue +9 -2
  40. package/chart/chart.cjs.js +9 -2
  41. package/chart/chart.cjs.min.js +1 -1
  42. package/chart/chart.esm.js +9 -2
  43. package/chart/chart.esm.min.js +1 -1
  44. package/chart/chart.js +9 -2
  45. package/chart/chart.min.js +1 -1
  46. package/colorpicker/ColorPicker.d.ts +3 -0
  47. package/colorpicker/ColorPicker.vue +6 -1
  48. package/colorpicker/colorpicker.cjs.js +6 -1
  49. package/colorpicker/colorpicker.cjs.min.js +1 -1
  50. package/colorpicker/colorpicker.esm.js +6 -1
  51. package/colorpicker/colorpicker.esm.min.js +1 -1
  52. package/colorpicker/colorpicker.js +6 -1
  53. package/colorpicker/colorpicker.min.js +1 -1
  54. package/confirmdialog/ConfirmDialog.vue +8 -2
  55. package/confirmdialog/confirmdialog.cjs.js +11 -4
  56. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  57. package/confirmdialog/confirmdialog.esm.js +11 -4
  58. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  59. package/confirmdialog/confirmdialog.js +11 -4
  60. package/confirmdialog/confirmdialog.min.js +1 -1
  61. package/confirmpopup/ConfirmPopup.d.ts +7 -0
  62. package/confirmpopup/ConfirmPopup.vue +7 -4
  63. package/confirmpopup/confirmpopup.cjs.js +13 -5
  64. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  65. package/confirmpopup/confirmpopup.esm.js +14 -6
  66. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  67. package/confirmpopup/confirmpopup.js +13 -5
  68. package/confirmpopup/confirmpopup.min.js +1 -1
  69. package/contextmenu/ContextMenuSub.vue +7 -4
  70. package/contextmenu/contextmenu.cjs.js +7 -4
  71. package/contextmenu/contextmenu.cjs.min.js +1 -1
  72. package/contextmenu/contextmenu.esm.js +7 -4
  73. package/contextmenu/contextmenu.esm.min.js +1 -1
  74. package/contextmenu/contextmenu.js +7 -4
  75. package/contextmenu/contextmenu.min.js +1 -1
  76. package/core/core.js +132 -65
  77. package/core/core.min.js +14 -11
  78. package/datatable/BodyCell.vue +1 -0
  79. package/datatable/ColumnFilter.vue +17 -6
  80. package/datatable/DataTable.d.ts +5 -4
  81. package/datatable/DataTable.vue +34 -21
  82. package/datatable/TableBody.vue +5 -1
  83. package/datatable/TableFooter.vue +15 -1
  84. package/datatable/TableHeader.vue +15 -1
  85. package/datatable/datatable.cjs.js +175 -106
  86. package/datatable/datatable.cjs.min.js +1 -1
  87. package/datatable/datatable.esm.js +175 -106
  88. package/datatable/datatable.esm.min.js +1 -1
  89. package/datatable/datatable.js +175 -106
  90. package/datatable/datatable.min.js +1 -1
  91. package/dataview/DataView.d.ts +2 -2
  92. package/dataview/DataView.vue +8 -8
  93. package/dataview/dataview.cjs.js +12 -12
  94. package/dataview/dataview.cjs.min.js +1 -1
  95. package/dataview/dataview.esm.js +12 -12
  96. package/dataview/dataview.esm.min.js +1 -1
  97. package/dataview/dataview.js +12 -12
  98. package/dataview/dataview.min.js +1 -1
  99. package/dropdown/Dropdown.d.ts +10 -5
  100. package/inputnumber/InputNumber.vue +19 -3
  101. package/inputnumber/inputnumber.cjs.js +19 -3
  102. package/inputnumber/inputnumber.cjs.min.js +1 -1
  103. package/inputnumber/inputnumber.esm.js +19 -3
  104. package/inputnumber/inputnumber.esm.min.js +1 -1
  105. package/inputnumber/inputnumber.js +19 -3
  106. package/inputnumber/inputnumber.min.js +1 -1
  107. package/inputtext/InputText.vue +1 -1
  108. package/inputtext/inputtext.cjs.js +2 -2
  109. package/inputtext/inputtext.cjs.min.js +1 -1
  110. package/inputtext/inputtext.esm.js +3 -3
  111. package/inputtext/inputtext.esm.min.js +1 -1
  112. package/inputtext/inputtext.js +2 -2
  113. package/inputtext/inputtext.min.js +1 -1
  114. package/listbox/Listbox.d.ts +10 -5
  115. package/megamenu/MegaMenu.vue +10 -7
  116. package/megamenu/megamenu.cjs.js +10 -7
  117. package/megamenu/megamenu.cjs.min.js +1 -1
  118. package/megamenu/megamenu.esm.js +10 -7
  119. package/megamenu/megamenu.esm.min.js +1 -1
  120. package/megamenu/megamenu.js +10 -7
  121. package/megamenu/megamenu.min.js +1 -1
  122. package/menu/Menu.vue +6 -3
  123. package/menu/Menuitem.vue +5 -2
  124. package/menu/menu.cjs.js +11 -5
  125. package/menu/menu.cjs.min.js +1 -1
  126. package/menu/menu.esm.js +11 -5
  127. package/menu/menu.esm.min.js +1 -1
  128. package/menu/menu.js +11 -5
  129. package/menu/menu.min.js +1 -1
  130. package/menubar/MenubarSub.vue +7 -4
  131. package/menubar/menubar.cjs.js +7 -4
  132. package/menubar/menubar.cjs.min.js +1 -1
  133. package/menubar/menubar.esm.js +7 -4
  134. package/menubar/menubar.esm.min.js +1 -1
  135. package/menubar/menubar.js +7 -4
  136. package/menubar/menubar.min.js +1 -1
  137. package/message/Message.d.ts +1 -0
  138. package/message/Message.vue +6 -2
  139. package/message/message.cjs.js +6 -2
  140. package/message/message.cjs.min.js +1 -1
  141. package/message/message.esm.js +6 -2
  142. package/message/message.esm.min.js +1 -1
  143. package/message/message.js +6 -2
  144. package/message/message.min.js +1 -1
  145. package/multiselect/MultiSelect.d.ts +10 -5
  146. package/orderlist/OrderList.d.ts +2 -0
  147. package/orderlist/OrderList.vue +2 -0
  148. package/orderlist/orderlist.cjs.js +3 -1
  149. package/orderlist/orderlist.cjs.min.js +1 -1
  150. package/orderlist/orderlist.esm.js +3 -1
  151. package/orderlist/orderlist.esm.min.js +1 -1
  152. package/orderlist/orderlist.js +3 -1
  153. package/orderlist/orderlist.min.js +1 -1
  154. package/package.json +5 -1
  155. package/paginator/Paginator.vue +4 -4
  156. package/paginator/paginator.cjs.js +4 -4
  157. package/paginator/paginator.cjs.min.js +1 -1
  158. package/paginator/paginator.esm.js +4 -4
  159. package/paginator/paginator.esm.min.js +1 -1
  160. package/paginator/paginator.js +4 -4
  161. package/paginator/paginator.min.js +1 -1
  162. package/panel/Panel.d.ts +1 -0
  163. package/panel/Panel.vue +1 -1
  164. package/panelmenu/PanelMenu.vue +6 -3
  165. package/panelmenu/PanelMenuSub.vue +8 -5
  166. package/panelmenu/panelmenu.cjs.js +14 -8
  167. package/panelmenu/panelmenu.cjs.min.js +1 -1
  168. package/panelmenu/panelmenu.esm.js +14 -8
  169. package/panelmenu/panelmenu.esm.min.js +1 -1
  170. package/panelmenu/panelmenu.js +14 -8
  171. package/panelmenu/panelmenu.min.js +1 -1
  172. package/picklist/PickList.d.ts +8 -2
  173. package/picklist/PickList.vue +10 -4
  174. package/picklist/picklist.cjs.js +13 -7
  175. package/picklist/picklist.cjs.min.js +1 -1
  176. package/picklist/picklist.esm.js +13 -7
  177. package/picklist/picklist.esm.min.js +1 -1
  178. package/picklist/picklist.js +13 -7
  179. package/picklist/picklist.min.js +1 -1
  180. package/progressbar/ProgressBar.vue +13 -12
  181. package/progressbar/progressbar.cjs.js +13 -12
  182. package/progressbar/progressbar.cjs.min.js +1 -1
  183. package/progressbar/progressbar.esm.js +14 -13
  184. package/progressbar/progressbar.esm.min.js +1 -1
  185. package/progressbar/progressbar.js +13 -12
  186. package/progressbar/progressbar.min.js +1 -1
  187. package/rating/Rating.vue +1 -1
  188. package/rating/rating.cjs.js +1 -1
  189. package/rating/rating.cjs.min.js +1 -1
  190. package/rating/rating.esm.js +1 -1
  191. package/rating/rating.esm.min.js +1 -1
  192. package/rating/rating.js +1 -1
  193. package/rating/rating.min.js +1 -1
  194. package/resources/primevue.css +5 -0
  195. package/resources/primevue.min.css +1 -1
  196. package/resources/themes/arya-blue/theme.css +56 -15
  197. package/resources/themes/arya-green/theme.css +56 -15
  198. package/resources/themes/arya-orange/theme.css +56 -15
  199. package/resources/themes/arya-purple/theme.css +56 -15
  200. package/resources/themes/bootstrap4-dark-blue/theme.css +53 -19
  201. package/resources/themes/bootstrap4-dark-purple/theme.css +53 -19
  202. package/resources/themes/bootstrap4-light-blue/theme.css +53 -19
  203. package/resources/themes/bootstrap4-light-purple/theme.css +53 -19
  204. package/resources/themes/fluent-light/theme.css +56 -15
  205. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  206. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  207. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  208. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  209. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  210. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  211. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  212. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  213. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  214. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  215. package/resources/themes/lara-dark-blue/theme.css +5414 -0
  216. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  217. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  218. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  219. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  220. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  221. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  222. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  223. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  224. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  225. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  226. package/resources/themes/lara-dark-indigo/theme.css +5414 -0
  227. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  228. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  229. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  230. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  231. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  232. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  233. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  234. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  235. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  236. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  237. package/resources/themes/lara-dark-purple/theme.css +5414 -0
  238. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  239. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  240. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  241. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  242. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  243. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  244. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  245. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  246. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  247. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  248. package/resources/themes/lara-dark-teal/theme.css +5414 -0
  249. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  250. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  251. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  252. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  253. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  254. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  255. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  256. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  257. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  258. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  259. package/resources/themes/lara-light-blue/theme.css +5414 -0
  260. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  261. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  262. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  263. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  264. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  265. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  266. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  267. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  268. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  269. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  270. package/resources/themes/lara-light-indigo/theme.css +5414 -0
  271. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  272. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  273. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  274. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  275. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  276. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  277. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  278. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  279. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  280. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  281. package/resources/themes/lara-light-purple/theme.css +5414 -0
  282. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  283. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  284. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  285. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  286. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  287. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  288. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  289. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  290. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  291. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  292. package/resources/themes/lara-light-teal/theme.css +5414 -0
  293. package/resources/themes/luna-amber/theme.css +53 -19
  294. package/resources/themes/luna-blue/theme.css +53 -19
  295. package/resources/themes/luna-green/theme.css +53 -19
  296. package/resources/themes/luna-pink/theme.css +53 -19
  297. package/resources/themes/md-dark-deeppurple/theme.css +244 -47
  298. package/resources/themes/md-dark-indigo/theme.css +244 -47
  299. package/resources/themes/md-light-deeppurple/theme.css +244 -47
  300. package/resources/themes/md-light-indigo/theme.css +244 -47
  301. package/resources/themes/mdc-dark-deeppurple/theme.css +244 -47
  302. package/resources/themes/mdc-dark-indigo/theme.css +244 -47
  303. package/resources/themes/mdc-light-deeppurple/theme.css +244 -47
  304. package/resources/themes/mdc-light-indigo/theme.css +244 -47
  305. package/resources/themes/nova/theme.css +53 -19
  306. package/resources/themes/nova-accent/theme.css +53 -19
  307. package/resources/themes/nova-alt/theme.css +53 -19
  308. package/resources/themes/nova-vue/theme.css +53 -19
  309. package/resources/themes/rhea/theme.css +53 -19
  310. package/resources/themes/saga-blue/theme.css +56 -15
  311. package/resources/themes/saga-green/theme.css +56 -15
  312. package/resources/themes/saga-orange/theme.css +56 -15
  313. package/resources/themes/saga-purple/theme.css +56 -15
  314. package/resources/themes/tailwind-light/theme.css +67 -18
  315. package/resources/themes/vela-blue/theme.css +56 -15
  316. package/resources/themes/vela-green/theme.css +56 -15
  317. package/resources/themes/vela-orange/theme.css +56 -15
  318. package/resources/themes/vela-purple/theme.css +56 -15
  319. package/selectbutton/SelectButton.d.ts +8 -3
  320. package/selectbutton/SelectButton.vue +8 -2
  321. package/selectbutton/selectbutton.cjs.js +14 -9
  322. package/selectbutton/selectbutton.cjs.min.js +1 -1
  323. package/selectbutton/selectbutton.esm.js +14 -9
  324. package/selectbutton/selectbutton.esm.min.js +1 -1
  325. package/selectbutton/selectbutton.js +14 -9
  326. package/selectbutton/selectbutton.min.js +1 -1
  327. package/steps/Steps.vue +5 -2
  328. package/steps/steps.cjs.js +5 -2
  329. package/steps/steps.cjs.min.js +1 -1
  330. package/steps/steps.esm.js +5 -2
  331. package/steps/steps.esm.min.js +1 -1
  332. package/steps/steps.js +5 -2
  333. package/steps/steps.min.js +1 -1
  334. package/tabmenu/TabMenu.vue +6 -3
  335. package/tabmenu/tabmenu.cjs.js +6 -3
  336. package/tabmenu/tabmenu.cjs.min.js +1 -1
  337. package/tabmenu/tabmenu.esm.js +6 -3
  338. package/tabmenu/tabmenu.esm.min.js +1 -1
  339. package/tabmenu/tabmenu.js +6 -3
  340. package/tabmenu/tabmenu.min.js +1 -1
  341. package/terminalservice/TerminalService.d.ts +9 -6
  342. package/tieredmenu/TieredMenuSub.vue +7 -4
  343. package/tieredmenu/tieredmenu.cjs.js +7 -4
  344. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  345. package/tieredmenu/tieredmenu.esm.js +7 -4
  346. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  347. package/tieredmenu/tieredmenu.js +7 -4
  348. package/tieredmenu/tieredmenu.min.js +1 -1
  349. package/tree/TreeNode.vue +4 -1
  350. package/tree/tree.cjs.js +4 -1
  351. package/tree/tree.cjs.min.js +1 -1
  352. package/tree/tree.esm.js +4 -1
  353. package/tree/tree.esm.min.js +1 -1
  354. package/tree/tree.js +4 -1
  355. package/tree/tree.min.js +1 -1
  356. package/treeselect/TreeSelect.vue +9 -0
  357. package/treeselect/treeselect.cjs.js +9 -0
  358. package/treeselect/treeselect.cjs.min.js +1 -1
  359. package/treeselect/treeselect.esm.js +9 -0
  360. package/treeselect/treeselect.esm.min.js +1 -1
  361. package/treeselect/treeselect.js +9 -0
  362. package/treeselect/treeselect.min.js +1 -1
  363. package/treetable/TreeTable.d.ts +2 -2
  364. package/treetable/TreeTable.vue +8 -8
  365. package/treetable/treetable.cjs.js +12 -12
  366. package/treetable/treetable.cjs.min.js +1 -1
  367. package/treetable/treetable.esm.js +12 -12
  368. package/treetable/treetable.esm.min.js +1 -1
  369. package/treetable/treetable.js +12 -12
  370. package/treetable/treetable.min.js +1 -1
  371. package/vetur-attributes.json +8 -0
  372. package/vetur-tags.json +3 -1
  373. package/web-types.json +143 -9
@@ -345,14 +345,16 @@
345
345
  .p-datepicker .p-datepicker-header .p-datepicker-title {
346
346
  line-height: 2rem;
347
347
  }
348
- .p-datepicker .p-datepicker-header .p-datepicker-title select {
349
- transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
348
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year,
349
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
350
+ color: rgba(255, 255, 255, 0.87);
351
+ transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
352
+ font-weight: 600;
353
+ padding: 0.5rem;
350
354
  }
351
- .p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
352
- outline: 0 none;
353
- outline-offset: 0;
354
- box-shadow: 0 0 0 1px #ffe284;
355
- border-color: #FFD54F;
355
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year:enabled:hover,
356
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month:enabled:hover {
357
+ color: #FFD54F;
356
358
  }
357
359
  .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
358
360
  margin-right: 0.5rem;
@@ -450,8 +452,20 @@
450
452
  color: rgba(255, 255, 255, 0.87);
451
453
  background: rgba(255, 213, 79, 0.16);
452
454
  }
455
+ .p-datepicker .p-yearpicker {
456
+ margin: 0.5rem 0;
457
+ }
458
+ .p-datepicker .p-yearpicker .p-yearpicker-year {
459
+ padding: 0.5rem;
460
+ transition: box-shadow 0.2s;
461
+ border-radius: 3px;
462
+ }
463
+ .p-datepicker .p-yearpicker .p-yearpicker-year.p-highlight {
464
+ color: rgba(255, 255, 255, 0.87);
465
+ background: rgba(255, 213, 79, 0.16);
466
+ }
453
467
  .p-datepicker.p-datepicker-multiple-month .p-datepicker-group {
454
- border-right: 1px solid #304562;
468
+ border-left: 1px solid #304562;
455
469
  padding-right: 0.5rem;
456
470
  padding-left: 0.5rem;
457
471
  padding-top: 0;
@@ -459,10 +473,10 @@
459
473
  }
460
474
  .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {
461
475
  padding-left: 0;
476
+ border-left: 0 none;
462
477
  }
463
478
  .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {
464
479
  padding-right: 0;
465
- border-right: 0 none;
466
480
  }
467
481
  .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {
468
482
  background: rgba(255, 255, 255, 0.03);
@@ -472,10 +486,18 @@
472
486
  outline-offset: 0;
473
487
  box-shadow: 0 0 0 1px #ffe284;
474
488
  }
475
- .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover {
489
+ .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):not(.p-highlight):hover {
476
490
  background: rgba(255, 255, 255, 0.03);
477
491
  }
478
- .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus {
492
+ .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):focus {
493
+ outline: 0 none;
494
+ outline-offset: 0;
495
+ box-shadow: 0 0 0 1px #ffe284;
496
+ }
497
+ .p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):not(.p-highlight):hover {
498
+ background: rgba(255, 255, 255, 0.03);
499
+ }
500
+ .p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):focus {
479
501
  outline: 0 none;
480
502
  outline-offset: 0;
481
503
  box-shadow: 0 0 0 1px #ffe284;
@@ -1407,7 +1429,7 @@
1407
1429
  .p-rating .p-rating-icon:first-child {
1408
1430
  margin-left: 0;
1409
1431
  }
1410
- .p-rating .p-rating-icon.pi-star {
1432
+ .p-rating .p-rating-icon.pi-star-fill {
1411
1433
  color: #FFD54F;
1412
1434
  }
1413
1435
  .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {
@@ -2270,7 +2292,6 @@
2270
2292
  background: #1f2d40;
2271
2293
  color: rgba(255, 255, 255, 0.87);
2272
2294
  transition: box-shadow 0.2s;
2273
- outline-color: #ffe284;
2274
2295
  }
2275
2296
  .p-datatable .p-datatable-tbody > tr > td {
2276
2297
  text-align: left;
@@ -2312,6 +2333,10 @@
2312
2333
  .p-datatable .p-datatable-tbody > tr > td > .p-column-title {
2313
2334
  font-weight: 600;
2314
2335
  }
2336
+ .p-datatable .p-datatable-tbody > tr:focus {
2337
+ outline: 1px solid #ffe284;
2338
+ outline-offset: -1px;
2339
+ }
2315
2340
  .p-datatable .p-datatable-tbody > tr.p-highlight {
2316
2341
  background: rgba(255, 213, 79, 0.16);
2317
2342
  color: rgba(255, 255, 255, 0.87);
@@ -2853,6 +2878,10 @@
2853
2878
  border-top-right-radius: 3px;
2854
2879
  border-bottom-right-radius: 3px;
2855
2880
  }
2881
+ .fc.fc-theme-standard .fc-highlight {
2882
+ color: rgba(255, 255, 255, 0.87);
2883
+ background: rgba(255, 213, 79, 0.16);
2884
+ }
2856
2885
 
2857
2886
  .p-orderlist .p-orderlist-controls {
2858
2887
  padding: 1rem;
@@ -3253,7 +3282,6 @@
3253
3282
  background: #1f2d40;
3254
3283
  color: rgba(255, 255, 255, 0.87);
3255
3284
  transition: box-shadow 0.2s;
3256
- outline-color: #ffe284;
3257
3285
  }
3258
3286
  .p-treetable .p-treetable-tbody > tr > td {
3259
3287
  text-align: left;
@@ -3287,6 +3315,10 @@
3287
3315
  .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {
3288
3316
  color: rgba(255, 255, 255, 0.87);
3289
3317
  }
3318
+ .p-treetable .p-treetable-tbody > tr:focus {
3319
+ outline: 1px solid #ffe284;
3320
+ outline-offset: -1px;
3321
+ }
3290
3322
  .p-treetable .p-treetable-tbody > tr.p-highlight {
3291
3323
  background: rgba(255, 213, 79, 0.16);
3292
3324
  color: rgba(255, 255, 255, 0.87);
@@ -3966,6 +3998,7 @@
3966
3998
  color: rgba(255, 255, 255, 0.87);
3967
3999
  border: 1px solid #304562;
3968
4000
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
4001
+ border-radius: 3px;
3969
4002
  width: 12.5rem;
3970
4003
  }
3971
4004
  .p-contextmenu .p-menuitem-link {
@@ -4007,6 +4040,7 @@
4007
4040
  background: #1f2d40;
4008
4041
  border: 1px solid #304562;
4009
4042
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
4043
+ border-radius: 3px;
4010
4044
  }
4011
4045
  .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
4012
4046
  background: #17212f;
@@ -5265,7 +5299,7 @@
5265
5299
  background: #FFD54F;
5266
5300
  }
5267
5301
  .p-progressbar .p-progressbar-label {
5268
- color: rgba(255, 255, 255, 0.87);
5302
+ color: #212529;
5269
5303
  line-height: 1.5rem;
5270
5304
  }
5271
5305
 
@@ -5346,3 +5380,10 @@
5346
5380
  .p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {
5347
5381
  background: #FFD54F;
5348
5382
  }
5383
+
5384
+ .p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {
5385
+ box-shadow: inset 0 2px 0 0 #FFD54F;
5386
+ }
5387
+ .p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {
5388
+ box-shadow: inset 0 -2px 0 0 #FFD54F;
5389
+ }
@@ -345,14 +345,16 @@
345
345
  .p-datepicker .p-datepicker-header .p-datepicker-title {
346
346
  line-height: 2rem;
347
347
  }
348
- .p-datepicker .p-datepicker-header .p-datepicker-title select {
349
- transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
348
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year,
349
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
350
+ color: rgba(255, 255, 255, 0.87);
351
+ transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
352
+ font-weight: 600;
353
+ padding: 0.5rem;
350
354
  }
351
- .p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
352
- outline: 0 none;
353
- outline-offset: 0;
354
- box-shadow: 0 0 0 1px #cf95d9;
355
- border-color: #BA68C8;
355
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year:enabled:hover,
356
+ .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month:enabled:hover {
357
+ color: #BA68C8;
356
358
  }
357
359
  .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
358
360
  margin-right: 0.5rem;
@@ -450,8 +452,20 @@
450
452
  color: rgba(255, 255, 255, 0.87);
451
453
  background: rgba(186, 104, 200, 0.16);
452
454
  }
455
+ .p-datepicker .p-yearpicker {
456
+ margin: 0.5rem 0;
457
+ }
458
+ .p-datepicker .p-yearpicker .p-yearpicker-year {
459
+ padding: 0.5rem;
460
+ transition: box-shadow 0.2s;
461
+ border-radius: 3px;
462
+ }
463
+ .p-datepicker .p-yearpicker .p-yearpicker-year.p-highlight {
464
+ color: rgba(255, 255, 255, 0.87);
465
+ background: rgba(186, 104, 200, 0.16);
466
+ }
453
467
  .p-datepicker.p-datepicker-multiple-month .p-datepicker-group {
454
- border-right: 1px solid #304562;
468
+ border-left: 1px solid #304562;
455
469
  padding-right: 0.5rem;
456
470
  padding-left: 0.5rem;
457
471
  padding-top: 0;
@@ -459,10 +473,10 @@
459
473
  }
460
474
  .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {
461
475
  padding-left: 0;
476
+ border-left: 0 none;
462
477
  }
463
478
  .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {
464
479
  padding-right: 0;
465
- border-right: 0 none;
466
480
  }
467
481
  .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {
468
482
  background: rgba(255, 255, 255, 0.03);
@@ -472,10 +486,18 @@
472
486
  outline-offset: 0;
473
487
  box-shadow: 0 0 0 1px #cf95d9;
474
488
  }
475
- .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover {
489
+ .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):not(.p-highlight):hover {
476
490
  background: rgba(255, 255, 255, 0.03);
477
491
  }
478
- .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus {
492
+ .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):focus {
493
+ outline: 0 none;
494
+ outline-offset: 0;
495
+ box-shadow: 0 0 0 1px #cf95d9;
496
+ }
497
+ .p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):not(.p-highlight):hover {
498
+ background: rgba(255, 255, 255, 0.03);
499
+ }
500
+ .p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):focus {
479
501
  outline: 0 none;
480
502
  outline-offset: 0;
481
503
  box-shadow: 0 0 0 1px #cf95d9;
@@ -1407,7 +1429,7 @@
1407
1429
  .p-rating .p-rating-icon:first-child {
1408
1430
  margin-left: 0;
1409
1431
  }
1410
- .p-rating .p-rating-icon.pi-star {
1432
+ .p-rating .p-rating-icon.pi-star-fill {
1411
1433
  color: #BA68C8;
1412
1434
  }
1413
1435
  .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {
@@ -2270,7 +2292,6 @@
2270
2292
  background: #1f2d40;
2271
2293
  color: rgba(255, 255, 255, 0.87);
2272
2294
  transition: box-shadow 0.2s;
2273
- outline-color: #cf95d9;
2274
2295
  }
2275
2296
  .p-datatable .p-datatable-tbody > tr > td {
2276
2297
  text-align: left;
@@ -2312,6 +2333,10 @@
2312
2333
  .p-datatable .p-datatable-tbody > tr > td > .p-column-title {
2313
2334
  font-weight: 600;
2314
2335
  }
2336
+ .p-datatable .p-datatable-tbody > tr:focus {
2337
+ outline: 1px solid #cf95d9;
2338
+ outline-offset: -1px;
2339
+ }
2315
2340
  .p-datatable .p-datatable-tbody > tr.p-highlight {
2316
2341
  background: rgba(186, 104, 200, 0.16);
2317
2342
  color: rgba(255, 255, 255, 0.87);
@@ -2853,6 +2878,10 @@
2853
2878
  border-top-right-radius: 3px;
2854
2879
  border-bottom-right-radius: 3px;
2855
2880
  }
2881
+ .fc.fc-theme-standard .fc-highlight {
2882
+ color: rgba(255, 255, 255, 0.87);
2883
+ background: rgba(186, 104, 200, 0.16);
2884
+ }
2856
2885
 
2857
2886
  .p-orderlist .p-orderlist-controls {
2858
2887
  padding: 1rem;
@@ -3253,7 +3282,6 @@
3253
3282
  background: #1f2d40;
3254
3283
  color: rgba(255, 255, 255, 0.87);
3255
3284
  transition: box-shadow 0.2s;
3256
- outline-color: #cf95d9;
3257
3285
  }
3258
3286
  .p-treetable .p-treetable-tbody > tr > td {
3259
3287
  text-align: left;
@@ -3287,6 +3315,10 @@
3287
3315
  .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {
3288
3316
  color: rgba(255, 255, 255, 0.87);
3289
3317
  }
3318
+ .p-treetable .p-treetable-tbody > tr:focus {
3319
+ outline: 1px solid #cf95d9;
3320
+ outline-offset: -1px;
3321
+ }
3290
3322
  .p-treetable .p-treetable-tbody > tr.p-highlight {
3291
3323
  background: rgba(186, 104, 200, 0.16);
3292
3324
  color: rgba(255, 255, 255, 0.87);
@@ -3966,6 +3998,7 @@
3966
3998
  color: rgba(255, 255, 255, 0.87);
3967
3999
  border: 1px solid #304562;
3968
4000
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
4001
+ border-radius: 3px;
3969
4002
  width: 12.5rem;
3970
4003
  }
3971
4004
  .p-contextmenu .p-menuitem-link {
@@ -4007,6 +4040,7 @@
4007
4040
  background: #1f2d40;
4008
4041
  border: 1px solid #304562;
4009
4042
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
4043
+ border-radius: 3px;
4010
4044
  }
4011
4045
  .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
4012
4046
  background: #17212f;
@@ -5265,7 +5299,7 @@
5265
5299
  background: #BA68C8;
5266
5300
  }
5267
5301
  .p-progressbar .p-progressbar-label {
5268
- color: rgba(255, 255, 255, 0.87);
5302
+ color: #ffffff;
5269
5303
  line-height: 1.5rem;
5270
5304
  }
5271
5305
 
@@ -5346,3 +5380,10 @@
5346
5380
  .p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {
5347
5381
  background: #BA68C8;
5348
5382
  }
5383
+
5384
+ .p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {
5385
+ box-shadow: inset 0 2px 0 0 #BA68C8;
5386
+ }
5387
+ .p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {
5388
+ box-shadow: inset 0 -2px 0 0 #BA68C8;
5389
+ }
@@ -1,9 +1,13 @@
1
+ type SelectButtonOptionLabelType = string | ((data: any) => string) | undefined;
2
+ type SelectButtonOptionValueType = string | ((data: any) => any) | undefined;
3
+ type SelectButtonOptionDisabledType = string | ((data: any) => boolean) | undefined;
4
+
1
5
  interface SelectButtonProps {
2
6
  modelValue?: any;
3
7
  options?: any[];
4
- optionLabel?: string;
5
- optionValue?: any;
6
- optionDisabled?: boolean;
8
+ optionLabel?: SelectButtonOptionLabelType;
9
+ optionValue?: SelectButtonOptionValueType;
10
+ optionDisabled?: SelectButtonOptionDisabledType;
7
11
  multiple?: boolean;
8
12
  disabled?: boolean;
9
13
  dataKey?: string;
@@ -18,6 +22,7 @@ interface SelectButtonOptionSlotInterface {
18
22
  declare class SelectButton {
19
23
  $props: SelectButtonProps;
20
24
  $emit(eventName: 'update:modelValue', value: any): this;
25
+ $emit(eventName: 'change', event: {originalEvent: Event, value: any}): this;
21
26
  $emit(eventName: 'focus', event: Event): this;
22
27
  $emit(eventName: 'blur', event: Event): this;
23
28
  $slots: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="p-selectbutton p-buttonset p-component" role="group">
2
+ <div :class="containerClass" role="group">
3
3
  <div v-for="(option, i) of options" :key="getOptionRenderKey(option)" :aria-label="getOptionLabel(option)" role="button" :aria-pressed="isSelected(option)"
4
4
  @click="onOptionSelect($event, option, i)" @keydown.enter.prevent="onOptionSelect($event, option, i)" @keydown.space.prevent="onOptionSelect($event, option)"
5
5
  :tabindex="isOptionDisabled(option) ? null : '0'" @focus="onFocus($event)" @blur="onBlur($event)" :aria-labelledby="ariaLabelledBy" v-ripple
@@ -17,7 +17,7 @@ import Ripple from 'primevue/ripple';
17
17
 
18
18
  export default {
19
19
  name: 'SelectButton',
20
- emits: ['update:modelValue', 'focus', 'blur'],
20
+ emits: ['update:modelValue', 'focus', 'blur', 'change'],
21
21
  props: {
22
22
  modelValue: null,
23
23
  options: Array,
@@ -62,6 +62,7 @@ export default {
62
62
  }
63
63
 
64
64
  this.$emit('update:modelValue', newValue);
65
+ this.$emit('change', {event: event, value: newValue});
65
66
  },
66
67
  isSelected(option) {
67
68
  let selected = false;
@@ -97,6 +98,11 @@ export default {
97
98
  }
98
99
  },
99
100
  computed: {
101
+ containerClass() {
102
+ return ['p-selectbutton p-buttonset p-component', {
103
+ 'p-disabled': this.disabled
104
+ }];
105
+ },
100
106
  equalityKey() {
101
107
  return this.optionValue ? null : this.dataKey;
102
108
  }
@@ -10,7 +10,7 @@ var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
10
10
 
11
11
  var script = {
12
12
  name: 'SelectButton',
13
- emits: ['update:modelValue', 'focus', 'blur'],
13
+ emits: ['update:modelValue', 'focus', 'blur', 'change'],
14
14
  props: {
15
15
  modelValue: null,
16
16
  options: Array,
@@ -55,6 +55,7 @@ var script = {
55
55
  }
56
56
 
57
57
  this.$emit('update:modelValue', newValue);
58
+ this.$emit('change', {event: event, value: newValue});
58
59
  },
59
60
  isSelected(option) {
60
61
  let selected = false;
@@ -90,6 +91,11 @@ var script = {
90
91
  }
91
92
  },
92
93
  computed: {
94
+ containerClass() {
95
+ return ['p-selectbutton p-buttonset p-component', {
96
+ 'p-disabled': this.disabled
97
+ }];
98
+ },
93
99
  equalityKey() {
94
100
  return this.optionValue ? null : this.dataKey;
95
101
  }
@@ -99,16 +105,15 @@ var script = {
99
105
  }
100
106
  };
101
107
 
102
- const _hoisted_1 = {
103
- class: "p-selectbutton p-buttonset p-component",
104
- role: "group"
105
- };
106
- const _hoisted_2 = { class: "p-button-label" };
108
+ const _hoisted_1 = { class: "p-button-label" };
107
109
 
108
110
  function render(_ctx, _cache, $props, $setup, $data, $options) {
109
111
  const _directive_ripple = vue.resolveDirective("ripple");
110
112
 
111
- return (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
113
+ return (vue.openBlock(), vue.createBlock("div", {
114
+ class: $options.containerClass,
115
+ role: "group"
116
+ }, [
112
117
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.options, (option, i) => {
113
118
  return vue.withDirectives((vue.openBlock(), vue.createBlock("div", {
114
119
  key: $options.getOptionRenderKey(option),
@@ -130,13 +135,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
130
135
  option: option,
131
136
  index: i
132
137
  }, () => [
133
- vue.createVNode("span", _hoisted_2, vue.toDisplayString($options.getOptionLabel(option)), 1)
138
+ vue.createVNode("span", _hoisted_1, vue.toDisplayString($options.getOptionLabel(option)), 1)
134
139
  ])
135
140
  ], 42, ["aria-label", "aria-pressed", "onClick", "onKeydown", "tabindex", "aria-labelledby"])), [
136
141
  [_directive_ripple]
137
142
  ])
138
143
  }), 128))
139
- ]))
144
+ ], 2))
140
145
  }
141
146
 
142
147
  script.render = render;
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils"),t=require("primevue/ripple"),i=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,i){if(this.disabled||this.isOptionDisabled(i))return;let l,o=this.isSelected(i),s=this.getOptionValue(i);l=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",l)},isSelected(t){let i=!1,l=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,l,this.equalityKey)){i=!0;break}}else i=e.ObjectUtils.equals(this.modelValue,l,this.equalityKey);return i},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:l(t).default}};const s={class:"p-selectbutton p-buttonset p-component",role:"group"},a={class:"p-button-label"};o.render=function(e,t,l,o,n,r){const u=i.resolveDirective("ripple");return i.openBlock(),i.createBlock("div",s,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(l.options,((o,s)=>i.withDirectives((i.openBlock(),i.createBlock("div",{key:r.getOptionRenderKey(o),"aria-label":r.getOptionLabel(o),role:"button","aria-pressed":r.isSelected(o),onClick:e=>r.onOptionSelect(e,o,s),onKeydown:[i.withKeys(i.withModifiers((e=>r.onOptionSelect(e,o,s)),["prevent"]),["enter"]),i.withKeys(i.withModifiers((e=>r.onOptionSelect(e,o)),["prevent"]),["space"])],tabindex:r.isOptionDisabled(o)?null:"0",onFocus:t[1]||(t[1]=e=>r.onFocus(e)),onBlur:t[2]||(t[2]=e=>r.onBlur(e)),"aria-labelledby":l.ariaLabelledBy,class:r.getButtonClass(o)},[i.renderSlot(e.$slots,"option",{option:o,index:s},(()=>[i.createVNode("span",a,i.toDisplayString(r.getOptionLabel(o)),1)]))],42,["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"])),[[u]]))),128))])},module.exports=o;
1
+ "use strict";var e=require("primevue/utils"),t=require("primevue/ripple"),i=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,i){if(this.disabled||this.isOptionDisabled(i))return;let l,o=this.isSelected(i),s=this.getOptionValue(i);l=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",l),this.$emit("change",{event:t,value:l})},isSelected(t){let i=!1,l=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,l,this.equalityKey)){i=!0;break}}else i=e.ObjectUtils.equals(this.modelValue,l,this.equalityKey);return i},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:l(t).default}};const s={class:"p-button-label"};o.render=function(e,t,l,o,a,n){const r=i.resolveDirective("ripple");return i.openBlock(),i.createBlock("div",{class:n.containerClass,role:"group"},[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(l.options,((o,a)=>i.withDirectives((i.openBlock(),i.createBlock("div",{key:n.getOptionRenderKey(o),"aria-label":n.getOptionLabel(o),role:"button","aria-pressed":n.isSelected(o),onClick:e=>n.onOptionSelect(e,o,a),onKeydown:[i.withKeys(i.withModifiers((e=>n.onOptionSelect(e,o,a)),["prevent"]),["enter"]),i.withKeys(i.withModifiers((e=>n.onOptionSelect(e,o)),["prevent"]),["space"])],tabindex:n.isOptionDisabled(o)?null:"0",onFocus:t[1]||(t[1]=e=>n.onFocus(e)),onBlur:t[2]||(t[2]=e=>n.onBlur(e)),"aria-labelledby":l.ariaLabelledBy,class:n.getButtonClass(o)},[i.renderSlot(e.$slots,"option",{option:o,index:a},(()=>[i.createVNode("span",s,i.toDisplayString(n.getOptionLabel(o)),1)]))],42,["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"])),[[r]]))),128))],2)},module.exports=o;
@@ -4,7 +4,7 @@ import { resolveDirective, openBlock, createBlock, Fragment, renderList, withDir
4
4
 
5
5
  var script = {
6
6
  name: 'SelectButton',
7
- emits: ['update:modelValue', 'focus', 'blur'],
7
+ emits: ['update:modelValue', 'focus', 'blur', 'change'],
8
8
  props: {
9
9
  modelValue: null,
10
10
  options: Array,
@@ -49,6 +49,7 @@ var script = {
49
49
  }
50
50
 
51
51
  this.$emit('update:modelValue', newValue);
52
+ this.$emit('change', {event: event, value: newValue});
52
53
  },
53
54
  isSelected(option) {
54
55
  let selected = false;
@@ -84,6 +85,11 @@ var script = {
84
85
  }
85
86
  },
86
87
  computed: {
88
+ containerClass() {
89
+ return ['p-selectbutton p-buttonset p-component', {
90
+ 'p-disabled': this.disabled
91
+ }];
92
+ },
87
93
  equalityKey() {
88
94
  return this.optionValue ? null : this.dataKey;
89
95
  }
@@ -93,16 +99,15 @@ var script = {
93
99
  }
94
100
  };
95
101
 
96
- const _hoisted_1 = {
97
- class: "p-selectbutton p-buttonset p-component",
98
- role: "group"
99
- };
100
- const _hoisted_2 = { class: "p-button-label" };
102
+ const _hoisted_1 = { class: "p-button-label" };
101
103
 
102
104
  function render(_ctx, _cache, $props, $setup, $data, $options) {
103
105
  const _directive_ripple = resolveDirective("ripple");
104
106
 
105
- return (openBlock(), createBlock("div", _hoisted_1, [
107
+ return (openBlock(), createBlock("div", {
108
+ class: $options.containerClass,
109
+ role: "group"
110
+ }, [
106
111
  (openBlock(true), createBlock(Fragment, null, renderList($props.options, (option, i) => {
107
112
  return withDirectives((openBlock(), createBlock("div", {
108
113
  key: $options.getOptionRenderKey(option),
@@ -124,13 +129,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
124
129
  option: option,
125
130
  index: i
126
131
  }, () => [
127
- createVNode("span", _hoisted_2, toDisplayString($options.getOptionLabel(option)), 1)
132
+ createVNode("span", _hoisted_1, toDisplayString($options.getOptionLabel(option)), 1)
128
133
  ])
129
134
  ], 42, ["aria-label", "aria-pressed", "onClick", "onKeydown", "tabindex", "aria-labelledby"])), [
130
135
  [_directive_ripple]
131
136
  ])
132
137
  }), 128))
133
- ]))
138
+ ], 2))
134
139
  }
135
140
 
136
141
  script.render = render;
@@ -1 +1 @@
1
- import{ObjectUtils as e}from"primevue/utils";import t from"primevue/ripple";import{resolveDirective as l,openBlock as i,createBlock as o,Fragment as a,renderList as n,withDirectives as s,withKeys as u,withModifiers as p,renderSlot as r,createVNode as d,toDisplayString as b}from"vue";var h={name:"SelectButton",emits:["update:modelValue","focus","blur"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i,o=this.isSelected(l),a=this.getOptionValue(l);i=this.multiple?o?this.modelValue.filter((t=>!e.equals(t,a,this.equalityKey))):this.modelValue?[...this.modelValue,a]:[a]:a,this.$emit("update:modelValue",i)},isSelected(t){let l=!1,i=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.equals(t,i,this.equalityKey)){l=!0;break}}else l=e.equals(this.modelValue,i,this.equalityKey);return l},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:t}};const m={class:"p-selectbutton p-buttonset p-component",role:"group"},c={class:"p-button-label"};h.render=function(e,t,h,y,O,V){const f=l("ripple");return i(),o("div",m,[(i(!0),o(a,null,n(h.options,((l,a)=>s((i(),o("div",{key:V.getOptionRenderKey(l),"aria-label":V.getOptionLabel(l),role:"button","aria-pressed":V.isSelected(l),onClick:e=>V.onOptionSelect(e,l,a),onKeydown:[u(p((e=>V.onOptionSelect(e,l,a)),["prevent"]),["enter"]),u(p((e=>V.onOptionSelect(e,l)),["prevent"]),["space"])],tabindex:V.isOptionDisabled(l)?null:"0",onFocus:t[1]||(t[1]=e=>V.onFocus(e)),onBlur:t[2]||(t[2]=e=>V.onBlur(e)),"aria-labelledby":h.ariaLabelledBy,class:V.getButtonClass(l)},[r(e.$slots,"option",{option:l,index:a},(()=>[d("span",c,b(V.getOptionLabel(l)),1)]))],42,["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"])),[[f]]))),128))])};export default h;
1
+ import{ObjectUtils as e}from"primevue/utils";import t from"primevue/ripple";import{resolveDirective as l,openBlock as i,createBlock as o,Fragment as a,renderList as n,withDirectives as s,withKeys as u,withModifiers as r,renderSlot as p,createVNode as d,toDisplayString as h}from"vue";var b={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i,o=this.isSelected(l),a=this.getOptionValue(l);i=this.multiple?o?this.modelValue.filter((t=>!e.equals(t,a,this.equalityKey))):this.modelValue?[...this.modelValue,a]:[a]:a,this.$emit("update:modelValue",i),this.$emit("change",{event:t,value:i})},isSelected(t){let l=!1,i=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.equals(t,i,this.equalityKey)){l=!0;break}}else l=e.equals(this.modelValue,i,this.equalityKey);return l},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:t}};const c={class:"p-button-label"};b.render=function(e,t,b,m,y,O){const g=l("ripple");return i(),o("div",{class:O.containerClass,role:"group"},[(i(!0),o(a,null,n(b.options,((l,a)=>s((i(),o("div",{key:O.getOptionRenderKey(l),"aria-label":O.getOptionLabel(l),role:"button","aria-pressed":O.isSelected(l),onClick:e=>O.onOptionSelect(e,l,a),onKeydown:[u(r((e=>O.onOptionSelect(e,l,a)),["prevent"]),["enter"]),u(r((e=>O.onOptionSelect(e,l)),["prevent"]),["space"])],tabindex:O.isOptionDisabled(l)?null:"0",onFocus:t[1]||(t[1]=e=>O.onFocus(e)),onBlur:t[2]||(t[2]=e=>O.onBlur(e)),"aria-labelledby":b.ariaLabelledBy,class:O.getButtonClass(l)},[p(e.$slots,"option",{option:l,index:a},(()=>[d("span",c,h(O.getOptionLabel(l)),1)]))],42,["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"])),[[g]]))),128))],2)};export default b;
@@ -8,7 +8,7 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
8
8
 
9
9
  var script = {
10
10
  name: 'SelectButton',
11
- emits: ['update:modelValue', 'focus', 'blur'],
11
+ emits: ['update:modelValue', 'focus', 'blur', 'change'],
12
12
  props: {
13
13
  modelValue: null,
14
14
  options: Array,
@@ -53,6 +53,7 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
53
53
  }
54
54
 
55
55
  this.$emit('update:modelValue', newValue);
56
+ this.$emit('change', {event: event, value: newValue});
56
57
  },
57
58
  isSelected(option) {
58
59
  let selected = false;
@@ -88,6 +89,11 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
88
89
  }
89
90
  },
90
91
  computed: {
92
+ containerClass() {
93
+ return ['p-selectbutton p-buttonset p-component', {
94
+ 'p-disabled': this.disabled
95
+ }];
96
+ },
91
97
  equalityKey() {
92
98
  return this.optionValue ? null : this.dataKey;
93
99
  }
@@ -97,16 +103,15 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
97
103
  }
98
104
  };
99
105
 
100
- const _hoisted_1 = {
101
- class: "p-selectbutton p-buttonset p-component",
102
- role: "group"
103
- };
104
- const _hoisted_2 = { class: "p-button-label" };
106
+ const _hoisted_1 = { class: "p-button-label" };
105
107
 
106
108
  function render(_ctx, _cache, $props, $setup, $data, $options) {
107
109
  const _directive_ripple = vue.resolveDirective("ripple");
108
110
 
109
- return (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
111
+ return (vue.openBlock(), vue.createBlock("div", {
112
+ class: $options.containerClass,
113
+ role: "group"
114
+ }, [
110
115
  (vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.options, (option, i) => {
111
116
  return vue.withDirectives((vue.openBlock(), vue.createBlock("div", {
112
117
  key: $options.getOptionRenderKey(option),
@@ -128,13 +133,13 @@ this.primevue.selectbutton = (function (utils, Ripple, vue) {
128
133
  option: option,
129
134
  index: i
130
135
  }, () => [
131
- vue.createVNode("span", _hoisted_2, vue.toDisplayString($options.getOptionLabel(option)), 1)
136
+ vue.createVNode("span", _hoisted_1, vue.toDisplayString($options.getOptionLabel(option)), 1)
132
137
  ])
133
138
  ], 42, ["aria-label", "aria-pressed", "onClick", "onKeydown", "tabindex", "aria-labelledby"])), [
134
139
  [_directive_ripple]
135
140
  ])
136
141
  }), 128))
137
- ]))
142
+ ], 2))
138
143
  }
139
144
 
140
145
  script.render = render;
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.selectbutton=function(e,t,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,i){if(this.disabled||this.isOptionDisabled(i))return;let l,o=this.isSelected(i),s=this.getOptionValue(i);l=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",l)},isSelected(t){let i=!1,l=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,l,this.equalityKey)){i=!0;break}}else i=e.ObjectUtils.equals(this.modelValue,l,this.equalityKey);return i},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:l(t).default}};const s={class:"p-selectbutton p-buttonset p-component",role:"group"},n={class:"p-button-label"};return o.render=function(e,t,l,o,a,r){const u=i.resolveDirective("ripple");return i.openBlock(),i.createBlock("div",s,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(l.options,((o,s)=>i.withDirectives((i.openBlock(),i.createBlock("div",{key:r.getOptionRenderKey(o),"aria-label":r.getOptionLabel(o),role:"button","aria-pressed":r.isSelected(o),onClick:e=>r.onOptionSelect(e,o,s),onKeydown:[i.withKeys(i.withModifiers((e=>r.onOptionSelect(e,o,s)),["prevent"]),["enter"]),i.withKeys(i.withModifiers((e=>r.onOptionSelect(e,o)),["prevent"]),["space"])],tabindex:r.isOptionDisabled(o)?null:"0",onFocus:t[1]||(t[1]=e=>r.onFocus(e)),onBlur:t[2]||(t[2]=e=>r.onBlur(e)),"aria-labelledby":l.ariaLabelledBy,class:r.getButtonClass(o)},[i.renderSlot(e.$slots,"option",{option:o,index:s},(()=>[i.createVNode("span",n,i.toDisplayString(r.getOptionLabel(o)),1)]))],42,["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"])),[[u]]))),128))])},o}(primevue.utils,primevue.ripple,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.selectbutton=function(e,t,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"SelectButton",emits:["update:modelValue","focus","blur","change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,disabled:Boolean,dataKey:null,ariaLabelledBy:null},methods:{getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},isOptionDisabled(t){return!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},onOptionSelect(t,i){if(this.disabled||this.isOptionDisabled(i))return;let l,o=this.isSelected(i),s=this.getOptionValue(i);l=this.multiple?o?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,s,this.equalityKey))):this.modelValue?[...this.modelValue,s]:[s]:s,this.$emit("update:modelValue",l),this.$emit("change",{event:t,value:l})},isSelected(t){let i=!1,l=this.getOptionValue(t);if(this.multiple){if(this.modelValue)for(let t of this.modelValue)if(e.ObjectUtils.equals(t,l,this.equalityKey)){i=!0;break}}else i=e.ObjectUtils.equals(this.modelValue,l,this.equalityKey);return i},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)},getButtonClass(e){return["p-button p-component",{"p-highlight":this.isSelected(e),"p-disabled":this.isOptionDisabled(e)}]}},computed:{containerClass(){return["p-selectbutton p-buttonset p-component",{"p-disabled":this.disabled}]},equalityKey(){return this.optionValue?null:this.dataKey}},directives:{ripple:l(t).default}};const s={class:"p-button-label"};return o.render=function(e,t,l,o,n,a){const r=i.resolveDirective("ripple");return i.openBlock(),i.createBlock("div",{class:a.containerClass,role:"group"},[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(l.options,((o,n)=>i.withDirectives((i.openBlock(),i.createBlock("div",{key:a.getOptionRenderKey(o),"aria-label":a.getOptionLabel(o),role:"button","aria-pressed":a.isSelected(o),onClick:e=>a.onOptionSelect(e,o,n),onKeydown:[i.withKeys(i.withModifiers((e=>a.onOptionSelect(e,o,n)),["prevent"]),["enter"]),i.withKeys(i.withModifiers((e=>a.onOptionSelect(e,o)),["prevent"]),["space"])],tabindex:a.isOptionDisabled(o)?null:"0",onFocus:t[1]||(t[1]=e=>a.onFocus(e)),onBlur:t[2]||(t[2]=e=>a.onBlur(e)),"aria-labelledby":l.ariaLabelledBy,class:a.getButtonClass(o)},[i.renderSlot(e.$slots,"option",{option:o,index:n},(()=>[i.createVNode("span",s,i.toDisplayString(a.getOptionLabel(o)),1)]))],42,["aria-label","aria-pressed","onClick","onKeydown","tabindex","aria-labelledby"])),[[r]]))),128))],2)},o}(primevue.utils,primevue.ripple,Vue);