primevue 3.41.1 → 3.42.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 (370) hide show
  1. package/autocomplete/AutoComplete.d.ts +2 -2
  2. package/autocomplete/BaseAutoComplete.vue +2 -2
  3. package/autocomplete/autocomplete.cjs.js +2 -2
  4. package/autocomplete/autocomplete.cjs.min.js +1 -1
  5. package/autocomplete/autocomplete.esm.js +2 -2
  6. package/autocomplete/autocomplete.esm.min.js +1 -1
  7. package/autocomplete/autocomplete.js +2 -2
  8. package/autocomplete/autocomplete.min.js +1 -1
  9. package/avatar/Avatar.d.ts +2 -2
  10. package/avatar/BaseAvatar.vue +2 -2
  11. package/avatar/avatar.cjs.js +2 -2
  12. package/avatar/avatar.cjs.min.js +1 -1
  13. package/avatar/avatar.esm.js +2 -2
  14. package/avatar/avatar.esm.min.js +1 -1
  15. package/avatar/avatar.js +2 -2
  16. package/avatar/avatar.min.js +1 -1
  17. package/breadcrumb/Breadcrumb.d.ts +2 -2
  18. package/calendar/BaseCalendar.vue +6 -2
  19. package/calendar/Calendar.d.ts +21 -2
  20. package/calendar/Calendar.vue +6 -1
  21. package/calendar/calendar.cjs.js +17 -4
  22. package/calendar/calendar.cjs.min.js +1 -1
  23. package/calendar/calendar.esm.js +17 -4
  24. package/calendar/calendar.esm.min.js +1 -1
  25. package/calendar/calendar.js +17 -4
  26. package/calendar/calendar.min.js +1 -1
  27. package/calendar/style/calendarstyle.cjs.js +4 -2
  28. package/calendar/style/calendarstyle.cjs.min.js +1 -1
  29. package/calendar/style/calendarstyle.esm.js +4 -2
  30. package/calendar/style/calendarstyle.esm.min.js +1 -1
  31. package/calendar/style/calendarstyle.js +4 -2
  32. package/calendar/style/calendarstyle.min.js +1 -1
  33. package/cascadeselect/BaseCascadeSelect.vue +2 -2
  34. package/cascadeselect/CascadeSelect.d.ts +2 -2
  35. package/cascadeselect/cascadeselect.cjs.js +2 -2
  36. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  37. package/cascadeselect/cascadeselect.esm.js +2 -2
  38. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  39. package/cascadeselect/cascadeselect.js +2 -2
  40. package/cascadeselect/cascadeselect.min.js +1 -1
  41. package/checkbox/BaseCheckbox.vue +2 -2
  42. package/checkbox/Checkbox.d.ts +2 -2
  43. package/checkbox/checkbox.cjs.js +2 -2
  44. package/checkbox/checkbox.cjs.min.js +1 -1
  45. package/checkbox/checkbox.esm.js +2 -2
  46. package/checkbox/checkbox.esm.min.js +1 -1
  47. package/checkbox/checkbox.js +2 -2
  48. package/checkbox/checkbox.min.js +1 -1
  49. package/chips/BaseChips.vue +2 -2
  50. package/chips/Chips.d.ts +2 -2
  51. package/chips/chips.cjs.js +2 -2
  52. package/chips/chips.cjs.min.js +1 -1
  53. package/chips/chips.esm.js +2 -2
  54. package/chips/chips.esm.min.js +1 -1
  55. package/chips/chips.js +2 -2
  56. package/chips/chips.min.js +1 -1
  57. package/confirmpopup/ConfirmPopup.vue +0 -1
  58. package/contextmenu/BaseContextMenu.vue +2 -2
  59. package/contextmenu/ContextMenu.d.ts +2 -2
  60. package/contextmenu/contextmenu.cjs.js +2 -2
  61. package/contextmenu/contextmenu.cjs.min.js +1 -1
  62. package/contextmenu/contextmenu.esm.js +2 -2
  63. package/contextmenu/contextmenu.esm.min.js +1 -1
  64. package/contextmenu/contextmenu.js +2 -2
  65. package/contextmenu/contextmenu.min.js +1 -1
  66. package/core/core.js +52 -24
  67. package/core/core.min.js +8 -8
  68. package/datatable/DataTable.d.ts +1 -1
  69. package/dock/BaseDock.vue +2 -2
  70. package/dock/Dock.d.ts +2 -2
  71. package/dock/DockSub.vue +2 -2
  72. package/dock/dock.cjs.js +6 -6
  73. package/dock/dock.cjs.min.js +1 -1
  74. package/dock/dock.esm.js +6 -6
  75. package/dock/dock.esm.min.js +1 -1
  76. package/dock/dock.js +6 -6
  77. package/dock/dock.min.js +1 -1
  78. package/dropdown/BaseDropdown.vue +2 -2
  79. package/dropdown/Dropdown.d.ts +2 -2
  80. package/dropdown/dropdown.cjs.js +2 -2
  81. package/dropdown/dropdown.cjs.min.js +1 -1
  82. package/dropdown/dropdown.esm.js +2 -2
  83. package/dropdown/dropdown.esm.min.js +1 -1
  84. package/dropdown/dropdown.js +2 -2
  85. package/dropdown/dropdown.min.js +1 -1
  86. package/editor/Editor.vue +6 -0
  87. package/editor/editor.cjs.js +6 -0
  88. package/editor/editor.cjs.min.js +1 -1
  89. package/editor/editor.esm.js +6 -0
  90. package/editor/editor.esm.min.js +1 -1
  91. package/editor/editor.js +6 -0
  92. package/editor/editor.min.js +1 -1
  93. package/inlinemessage/InlineMessage.vue +2 -2
  94. package/inlinemessage/inlinemessage.cjs.js +7 -5
  95. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  96. package/inlinemessage/inlinemessage.esm.js +5 -3
  97. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  98. package/inlinemessage/inlinemessage.js +7 -5
  99. package/inlinemessage/inlinemessage.min.js +1 -1
  100. package/inputnumber/BaseInputNumber.vue +2 -2
  101. package/inputnumber/InputNumber.d.ts +2 -2
  102. package/inputnumber/inputnumber.cjs.js +2 -2
  103. package/inputnumber/inputnumber.cjs.min.js +1 -1
  104. package/inputnumber/inputnumber.esm.js +2 -2
  105. package/inputnumber/inputnumber.esm.min.js +1 -1
  106. package/inputnumber/inputnumber.js +2 -2
  107. package/inputnumber/inputnumber.min.js +1 -1
  108. package/inputswitch/BaseInputSwitch.vue +2 -2
  109. package/inputswitch/InputSwitch.d.ts +2 -2
  110. package/inputswitch/inputswitch.cjs.js +2 -2
  111. package/inputswitch/inputswitch.cjs.min.js +1 -1
  112. package/inputswitch/inputswitch.esm.js +2 -2
  113. package/inputswitch/inputswitch.esm.min.js +1 -1
  114. package/inputswitch/inputswitch.js +2 -2
  115. package/inputswitch/inputswitch.min.js +1 -1
  116. package/knob/BaseKnob.vue +2 -2
  117. package/knob/Knob.d.ts +2 -2
  118. package/knob/knob.cjs.js +2 -2
  119. package/knob/knob.cjs.min.js +1 -1
  120. package/knob/knob.esm.js +2 -2
  121. package/knob/knob.esm.min.js +1 -1
  122. package/knob/knob.js +2 -2
  123. package/knob/knob.min.js +1 -1
  124. package/listbox/BaseListbox.vue +2 -2
  125. package/listbox/Listbox.d.ts +2 -2
  126. package/listbox/Listbox.vue +4 -3
  127. package/listbox/listbox.cjs.js +6 -5
  128. package/listbox/listbox.cjs.min.js +1 -1
  129. package/listbox/listbox.esm.js +6 -5
  130. package/listbox/listbox.esm.min.js +1 -1
  131. package/listbox/listbox.js +6 -5
  132. package/listbox/listbox.min.js +1 -1
  133. package/megamenu/BaseMegaMenu.vue +2 -2
  134. package/megamenu/MegaMenu.d.ts +2 -2
  135. package/megamenu/megamenu.cjs.js +2 -2
  136. package/megamenu/megamenu.cjs.min.js +1 -1
  137. package/megamenu/megamenu.esm.js +2 -2
  138. package/megamenu/megamenu.esm.min.js +1 -1
  139. package/megamenu/megamenu.js +2 -2
  140. package/megamenu/megamenu.min.js +1 -1
  141. package/megamenu/style/megamenustyle.cjs.js +1 -1
  142. package/megamenu/style/megamenustyle.cjs.min.js +1 -1
  143. package/megamenu/style/megamenustyle.esm.js +1 -1
  144. package/megamenu/style/megamenustyle.esm.min.js +1 -1
  145. package/megamenu/style/megamenustyle.js +1 -1
  146. package/megamenu/style/megamenustyle.min.js +1 -1
  147. package/menu/BaseMenu.vue +2 -2
  148. package/menu/Menu.d.ts +2 -2
  149. package/menu/Menu.vue +5 -1
  150. package/menu/menu.cjs.js +6 -3
  151. package/menu/menu.cjs.min.js +1 -1
  152. package/menu/menu.esm.js +6 -3
  153. package/menu/menu.esm.min.js +1 -1
  154. package/menu/menu.js +6 -3
  155. package/menu/menu.min.js +1 -1
  156. package/menubar/BaseMenubar.vue +2 -2
  157. package/menubar/Menubar.d.ts +2 -2
  158. package/menubar/menubar.cjs.js +2 -2
  159. package/menubar/menubar.cjs.min.js +1 -1
  160. package/menubar/menubar.esm.js +2 -2
  161. package/menubar/menubar.esm.min.js +1 -1
  162. package/menubar/menubar.js +2 -2
  163. package/menubar/menubar.min.js +1 -1
  164. package/multiselect/BaseMultiSelect.vue +2 -2
  165. package/multiselect/MultiSelect.d.ts +2 -2
  166. package/multiselect/multiselect.cjs.js +2 -2
  167. package/multiselect/multiselect.cjs.min.js +1 -1
  168. package/multiselect/multiselect.esm.js +2 -2
  169. package/multiselect/multiselect.esm.min.js +1 -1
  170. package/multiselect/multiselect.js +2 -2
  171. package/multiselect/multiselect.min.js +1 -1
  172. package/orderlist/BaseOrderList.vue +2 -2
  173. package/orderlist/OrderList.d.ts +2 -2
  174. package/orderlist/orderlist.cjs.js +2 -2
  175. package/orderlist/orderlist.cjs.min.js +1 -1
  176. package/orderlist/orderlist.esm.js +2 -2
  177. package/orderlist/orderlist.esm.min.js +1 -1
  178. package/orderlist/orderlist.js +2 -2
  179. package/orderlist/orderlist.min.js +1 -1
  180. package/package.json +1 -1
  181. package/password/BasePassword.vue +2 -2
  182. package/password/Password.d.ts +2 -2
  183. package/password/password.cjs.js +2 -2
  184. package/password/password.cjs.min.js +1 -1
  185. package/password/password.esm.js +2 -2
  186. package/password/password.esm.min.js +1 -1
  187. package/password/password.js +2 -2
  188. package/password/password.min.js +1 -1
  189. package/picklist/PickList.vue +1 -4
  190. package/picklist/picklist.cjs.js +1 -4
  191. package/picklist/picklist.cjs.min.js +1 -1
  192. package/picklist/picklist.esm.js +1 -4
  193. package/picklist/picklist.esm.min.js +1 -1
  194. package/picklist/picklist.js +1 -4
  195. package/picklist/picklist.min.js +1 -1
  196. package/radiobutton/BaseRadioButton.vue +2 -2
  197. package/radiobutton/RadioButton.d.ts +2 -2
  198. package/radiobutton/radiobutton.cjs.js +2 -2
  199. package/radiobutton/radiobutton.cjs.min.js +1 -1
  200. package/radiobutton/radiobutton.esm.js +2 -2
  201. package/radiobutton/radiobutton.esm.min.js +1 -1
  202. package/radiobutton/radiobutton.js +2 -2
  203. package/radiobutton/radiobutton.min.js +1 -1
  204. package/resources/themes/arya-blue/theme.css +6 -6
  205. package/resources/themes/arya-green/theme.css +6 -6
  206. package/resources/themes/arya-orange/theme.css +6 -6
  207. package/resources/themes/arya-purple/theme.css +6 -6
  208. package/resources/themes/bootstrap4-dark-blue/theme.css +6 -6
  209. package/resources/themes/bootstrap4-dark-purple/theme.css +6 -6
  210. package/resources/themes/bootstrap4-light-blue/theme.css +6 -6
  211. package/resources/themes/bootstrap4-light-purple/theme.css +6 -6
  212. package/resources/themes/fluent-light/theme.css +6 -6
  213. package/resources/themes/lara-dark-amber/theme.css +6 -6
  214. package/resources/themes/lara-dark-blue/theme.css +6 -6
  215. package/resources/themes/lara-dark-cyan/theme.css +6 -6
  216. package/resources/themes/lara-dark-green/theme.css +6 -6
  217. package/resources/themes/lara-dark-indigo/theme.css +6 -6
  218. package/resources/themes/lara-dark-pink/theme.css +6 -6
  219. package/resources/themes/lara-dark-purple/theme.css +6 -6
  220. package/resources/themes/lara-dark-teal/theme.css +6 -6
  221. package/resources/themes/lara-light-amber/theme.css +6 -6
  222. package/resources/themes/lara-light-blue/theme.css +6 -6
  223. package/resources/themes/lara-light-cyan/theme.css +6 -6
  224. package/resources/themes/lara-light-green/theme.css +6 -6
  225. package/resources/themes/lara-light-indigo/theme.css +6 -6
  226. package/resources/themes/lara-light-pink/theme.css +6 -6
  227. package/resources/themes/lara-light-purple/theme.css +6 -6
  228. package/resources/themes/lara-light-teal/theme.css +6 -6
  229. package/resources/themes/luna-amber/theme.css +6 -6
  230. package/resources/themes/luna-blue/theme.css +6 -6
  231. package/resources/themes/luna-green/theme.css +6 -6
  232. package/resources/themes/luna-pink/theme.css +6 -6
  233. package/resources/themes/md-dark-deeppurple/theme.css +6 -6
  234. package/resources/themes/md-dark-indigo/theme.css +6 -6
  235. package/resources/themes/md-light-deeppurple/theme.css +6 -6
  236. package/resources/themes/md-light-indigo/theme.css +6 -6
  237. package/resources/themes/mdc-dark-deeppurple/theme.css +6 -6
  238. package/resources/themes/mdc-dark-indigo/theme.css +6 -6
  239. package/resources/themes/mdc-light-deeppurple/theme.css +6 -6
  240. package/resources/themes/mdc-light-indigo/theme.css +6 -6
  241. package/resources/themes/mira/theme.css +6 -6
  242. package/resources/themes/nano/theme.css +6 -6
  243. package/resources/themes/nova/theme.css +6 -6
  244. package/resources/themes/nova-accent/theme.css +6 -6
  245. package/resources/themes/nova-alt/theme.css +6 -6
  246. package/resources/themes/nova-vue/theme.css +6 -6
  247. package/resources/themes/rhea/theme.css +6 -6
  248. package/resources/themes/saga-blue/theme.css +6 -6
  249. package/resources/themes/saga-green/theme.css +6 -6
  250. package/resources/themes/saga-orange/theme.css +6 -6
  251. package/resources/themes/saga-purple/theme.css +6 -6
  252. package/resources/themes/soho-dark/theme.css +6 -6
  253. package/resources/themes/soho-light/theme.css +6 -6
  254. package/resources/themes/tailwind-light/theme.css +6 -6
  255. package/resources/themes/vela-blue/theme.css +6 -6
  256. package/resources/themes/vela-green/theme.css +6 -6
  257. package/resources/themes/vela-orange/theme.css +6 -6
  258. package/resources/themes/vela-purple/theme.css +6 -6
  259. package/resources/themes/viva-dark/theme.css +6 -6
  260. package/resources/themes/viva-light/theme.css +6 -6
  261. package/selectbutton/BaseSelectButton.vue +1 -1
  262. package/selectbutton/SelectButton.d.ts +1 -1
  263. package/selectbutton/selectbutton.cjs.js +1 -1
  264. package/selectbutton/selectbutton.cjs.min.js +1 -1
  265. package/selectbutton/selectbutton.esm.js +1 -1
  266. package/selectbutton/selectbutton.esm.min.js +1 -1
  267. package/selectbutton/selectbutton.js +1 -1
  268. package/selectbutton/selectbutton.min.js +1 -1
  269. package/slider/BaseSlider.vue +2 -2
  270. package/slider/Slider.d.ts +2 -2
  271. package/slider/slider.cjs.js +2 -2
  272. package/slider/slider.cjs.min.js +1 -1
  273. package/slider/slider.esm.js +2 -2
  274. package/slider/slider.esm.min.js +1 -1
  275. package/slider/slider.js +2 -2
  276. package/slider/slider.min.js +1 -1
  277. package/speeddial/BaseSpeedDial.vue +2 -2
  278. package/speeddial/SpeedDial.d.ts +2 -2
  279. package/speeddial/speeddial.cjs.js +2 -2
  280. package/speeddial/speeddial.cjs.min.js +1 -1
  281. package/speeddial/speeddial.esm.js +2 -2
  282. package/speeddial/speeddial.esm.min.js +1 -1
  283. package/speeddial/speeddial.js +2 -2
  284. package/speeddial/speeddial.min.js +1 -1
  285. package/splitter/Splitter.vue +1 -2
  286. package/splitter/splitter.cjs.js +1 -1
  287. package/splitter/splitter.cjs.min.js +1 -1
  288. package/splitter/splitter.esm.js +1 -1
  289. package/splitter/splitter.esm.min.js +1 -1
  290. package/splitter/splitter.js +1 -1
  291. package/splitter/splitter.min.js +1 -1
  292. package/tabmenu/BaseTabMenu.vue +2 -2
  293. package/tabmenu/TabMenu.d.ts +2 -2
  294. package/tabmenu/tabmenu.cjs.js +2 -2
  295. package/tabmenu/tabmenu.cjs.min.js +1 -1
  296. package/tabmenu/tabmenu.esm.js +2 -2
  297. package/tabmenu/tabmenu.esm.min.js +1 -1
  298. package/tabmenu/tabmenu.js +2 -2
  299. package/tabmenu/tabmenu.min.js +1 -1
  300. package/tieredmenu/BaseTieredMenu.vue +2 -2
  301. package/tieredmenu/TieredMenu.d.ts +2 -2
  302. package/tieredmenu/TieredMenu.vue +5 -1
  303. package/tieredmenu/tieredmenu.cjs.js +6 -3
  304. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  305. package/tieredmenu/tieredmenu.esm.js +6 -3
  306. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  307. package/tieredmenu/tieredmenu.js +6 -3
  308. package/tieredmenu/tieredmenu.min.js +1 -1
  309. package/togglebutton/BaseToggleButton.vue +2 -2
  310. package/togglebutton/ToggleButton.d.ts +2 -2
  311. package/togglebutton/togglebutton.cjs.js +2 -2
  312. package/togglebutton/togglebutton.cjs.min.js +1 -1
  313. package/togglebutton/togglebutton.esm.js +2 -2
  314. package/togglebutton/togglebutton.esm.min.js +1 -1
  315. package/togglebutton/togglebutton.js +2 -2
  316. package/togglebutton/togglebutton.min.js +1 -1
  317. package/toolbar/BaseToolbar.vue +1 -1
  318. package/toolbar/Toolbar.d.ts +1 -1
  319. package/toolbar/toolbar.cjs.js +1 -1
  320. package/toolbar/toolbar.cjs.min.js +1 -1
  321. package/toolbar/toolbar.esm.js +1 -1
  322. package/toolbar/toolbar.esm.min.js +1 -1
  323. package/toolbar/toolbar.js +1 -1
  324. package/toolbar/toolbar.min.js +1 -1
  325. package/tree/BaseTree.vue +6 -2
  326. package/tree/Tree.d.ts +8 -62
  327. package/tree/Tree.vue +2 -1
  328. package/tree/TreeNode.vue +17 -8
  329. package/tree/style/treestyle.cjs.js +1 -0
  330. package/tree/style/treestyle.cjs.min.js +1 -1
  331. package/tree/style/treestyle.esm.js +1 -0
  332. package/tree/style/treestyle.esm.min.js +1 -1
  333. package/tree/style/treestyle.js +1 -0
  334. package/tree/style/treestyle.min.js +1 -1
  335. package/tree/tree.cjs.js +30 -11
  336. package/tree/tree.cjs.min.js +1 -1
  337. package/tree/tree.esm.js +31 -12
  338. package/tree/tree.esm.min.js +1 -1
  339. package/tree/tree.js +30 -11
  340. package/tree/tree.min.js +1 -1
  341. package/treenode/TreeNode.d.ts +71 -0
  342. package/treenode/package.json +3 -0
  343. package/treeselect/BaseTreeSelect.vue +2 -2
  344. package/treeselect/TreeSelect.d.ts +4 -3
  345. package/treeselect/treeselect.cjs.js +2 -2
  346. package/treeselect/treeselect.cjs.min.js +1 -1
  347. package/treeselect/treeselect.esm.js +2 -2
  348. package/treeselect/treeselect.esm.min.js +1 -1
  349. package/treeselect/treeselect.js +2 -2
  350. package/treeselect/treeselect.min.js +1 -1
  351. package/treetable/BaseTreeTable.vue +4 -0
  352. package/treetable/BodyCell.vue +16 -4
  353. package/treetable/TreeTable.d.ts +6 -1
  354. package/treetable/TreeTable.vue +2 -1
  355. package/treetable/TreeTableRow.vue +5 -0
  356. package/treetable/treetable.cjs.js +33 -6
  357. package/treetable/treetable.cjs.min.js +1 -1
  358. package/treetable/treetable.esm.js +34 -7
  359. package/treetable/treetable.esm.min.js +1 -1
  360. package/treetable/treetable.js +33 -6
  361. package/treetable/treetable.min.js +1 -1
  362. package/tristatecheckbox/BaseTriStateCheckbox.vue +2 -2
  363. package/tristatecheckbox/TriStateCheckbox.d.ts +2 -2
  364. package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
  365. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  366. package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
  367. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  368. package/tristatecheckbox/tristatecheckbox.js +2 -2
  369. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  370. package/web-types.json +1 -1
@@ -33,11 +33,11 @@ var script$1 = {
33
33
  type: String,
34
34
  "default": 'square'
35
35
  },
36
- 'aria-labelledby': {
36
+ ariaLabelledby: {
37
37
  type: String,
38
38
  "default": null
39
39
  },
40
- 'aria-label': {
40
+ ariaLabel: {
41
41
  type: String,
42
42
  "default": null
43
43
  }
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/avatar/style"),t=require("primevue/basecomponent"),a=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),n={name:"Avatar",extends:{name:"BaseAvatar",extends:r(t).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},style:l.default,provide:function(){return{$parentInstance:this}}},emits:["error"],methods:{onError:function(e){this.$emit("error",e)},getPTOptions:function(e){return this.ptm(e,{parent:{instance:this.$parent}})}}},o=["aria-labelledby","aria-label"],i=["src","alt"];n.render=function(e,t,r,l,n,s){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root"),"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},s.getPTOptions("root"),{"data-pc-name":"avatar"}),[a.renderSlot(e.$slots,"default",{},(function(){return[e.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:e.cx("label")},s.getPTOptions("label")),a.toDisplayString(e.label),17)):e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:1,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):e.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[e.cx("icon"),e.icon]},s.getPTOptions("icon")),null,16)):e.image?(a.openBlock(),a.createElementBlock("img",a.mergeProps({key:3,src:e.image,alt:e.ariaLabel,onError:t[0]||(t[0]=function(){return s.onError&&s.onError.apply(s,arguments)})},s.getPTOptions("image")),null,16,i)):a.createCommentVNode("",!0)]}))],16,o)},module.exports=n;
1
+ "use strict";var e=require("primevue/avatar/style"),t=require("primevue/basecomponent"),a=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),n={name:"Avatar",extends:{name:"BaseAvatar",extends:r(t).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:l.default,provide:function(){return{$parentInstance:this}}},emits:["error"],methods:{onError:function(e){this.$emit("error",e)},getPTOptions:function(e){return this.ptm(e,{parent:{instance:this.$parent}})}}},o=["aria-labelledby","aria-label"],i=["src","alt"];n.render=function(e,t,r,l,n,s){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root"),"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},s.getPTOptions("root"),{"data-pc-name":"avatar"}),[a.renderSlot(e.$slots,"default",{},(function(){return[e.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:e.cx("label")},s.getPTOptions("label")),a.toDisplayString(e.label),17)):e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:1,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):e.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[e.cx("icon"),e.icon]},s.getPTOptions("icon")),null,16)):e.image?(a.openBlock(),a.createElementBlock("img",a.mergeProps({key:3,src:e.image,alt:e.ariaLabel,onError:t[0]||(t[0]=function(){return s.onError&&s.onError.apply(s,arguments)})},s.getPTOptions("image")),null,16,i)):a.createCommentVNode("",!0)]}))],16,o)},module.exports=n;
@@ -26,11 +26,11 @@ var script$1 = {
26
26
  type: String,
27
27
  "default": 'square'
28
28
  },
29
- 'aria-labelledby': {
29
+ ariaLabelledby: {
30
30
  type: String,
31
31
  "default": null
32
32
  },
33
- 'aria-label': {
33
+ ariaLabel: {
34
34
  type: String,
35
35
  "default": null
36
36
  }
@@ -1 +1 @@
1
- import e from"primevue/avatar/style";import a from"primevue/basecomponent";import{openBlock as t,createElementBlock as r,mergeProps as l,renderSlot as n,toDisplayString as i,createBlock as o,resolveDynamicComponent as s,normalizeClass as p,createCommentVNode as u}from"vue";var c={name:"Avatar",extends:{name:"BaseAvatar",extends:a,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},style:e,provide:function(){return{$parentInstance:this}}},emits:["error"],methods:{onError:function(e){this.$emit("error",e)},getPTOptions:function(e){return this.ptm(e,{parent:{instance:this.$parent}})}}},m=["aria-labelledby","aria-label"],d=["src","alt"];c.render=function(e,a,c,b,f,y){return t(),r("div",l({class:e.cx("root"),"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},y.getPTOptions("root"),{"data-pc-name":"avatar"}),[n(e.$slots,"default",{},(function(){return[e.label?(t(),r("span",l({key:0,class:e.cx("label")},y.getPTOptions("label")),i(e.label),17)):e.$slots.icon?(t(),o(s(e.$slots.icon),{key:1,class:p(e.cx("icon"))},null,8,["class"])):e.icon?(t(),r("span",l({key:2,class:[e.cx("icon"),e.icon]},y.getPTOptions("icon")),null,16)):e.image?(t(),r("img",l({key:3,src:e.image,alt:e.ariaLabel,onError:a[0]||(a[0]=function(){return y.onError&&y.onError.apply(y,arguments)})},y.getPTOptions("image")),null,16,d)):u("",!0)]}))],16,m)};export{c as default};
1
+ import e from"primevue/avatar/style";import a from"primevue/basecomponent";import{openBlock as t,createElementBlock as r,mergeProps as n,renderSlot as l,toDisplayString as i,createBlock as o,resolveDynamicComponent as s,normalizeClass as p,createCommentVNode as u}from"vue";var c={name:"Avatar",extends:{name:"BaseAvatar",extends:a,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:e,provide:function(){return{$parentInstance:this}}},emits:["error"],methods:{onError:function(e){this.$emit("error",e)},getPTOptions:function(e){return this.ptm(e,{parent:{instance:this.$parent}})}}},m=["aria-labelledby","aria-label"],d=["src","alt"];c.render=function(e,a,c,b,f,y){return t(),r("div",n({class:e.cx("root"),"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},y.getPTOptions("root"),{"data-pc-name":"avatar"}),[l(e.$slots,"default",{},(function(){return[e.label?(t(),r("span",n({key:0,class:e.cx("label")},y.getPTOptions("label")),i(e.label),17)):e.$slots.icon?(t(),o(s(e.$slots.icon),{key:1,class:p(e.cx("icon"))},null,8,["class"])):e.icon?(t(),r("span",n({key:2,class:[e.cx("icon"),e.icon]},y.getPTOptions("icon")),null,16)):e.image?(t(),r("img",n({key:3,src:e.image,alt:e.ariaLabel,onError:a[0]||(a[0]=function(){return y.onError&&y.onError.apply(y,arguments)})},y.getPTOptions("image")),null,16,d)):u("",!0)]}))],16,m)};export{c as default};
package/avatar/avatar.js CHANGED
@@ -31,11 +31,11 @@ this.primevue.avatar = (function (AvatarStyle, BaseComponent, vue) {
31
31
  type: String,
32
32
  "default": 'square'
33
33
  },
34
- 'aria-labelledby': {
34
+ ariaLabelledby: {
35
35
  type: String,
36
36
  "default": null
37
37
  },
38
- 'aria-label': {
38
+ ariaLabel: {
39
39
  type: String,
40
40
  "default": null
41
41
  }
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.avatar=function(e,t,a){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),n={name:"Avatar",extends:{name:"BaseAvatar",extends:r(t).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},style:l.default,provide:function(){return{$parentInstance:this}}},emits:["error"],methods:{onError:function(e){this.$emit("error",e)},getPTOptions:function(e){return this.ptm(e,{parent:{instance:this.$parent}})}}},o=["aria-labelledby","aria-label"],i=["src","alt"];return n.render=function(e,t,r,l,n,s){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root"),"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},s.getPTOptions("root"),{"data-pc-name":"avatar"}),[a.renderSlot(e.$slots,"default",{},(function(){return[e.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:e.cx("label")},s.getPTOptions("label")),a.toDisplayString(e.label),17)):e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:1,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):e.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[e.cx("icon"),e.icon]},s.getPTOptions("icon")),null,16)):e.image?(a.openBlock(),a.createElementBlock("img",a.mergeProps({key:3,src:e.image,alt:e.ariaLabel,onError:t[0]||(t[0]=function(){return s.onError&&s.onError.apply(s,arguments)})},s.getPTOptions("image")),null,16,i)):a.createCommentVNode("",!0)]}))],16,o)},n}(primevue.avatar.style,primevue.basecomponent,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.avatar=function(e,t,a){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e),l={name:"Avatar",extends:{name:"BaseAvatar",extends:r(t).default,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:n.default,provide:function(){return{$parentInstance:this}}},emits:["error"],methods:{onError:function(e){this.$emit("error",e)},getPTOptions:function(e){return this.ptm(e,{parent:{instance:this.$parent}})}}},o=["aria-labelledby","aria-label"],i=["src","alt"];return l.render=function(e,t,r,n,l,s){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root"),"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},s.getPTOptions("root"),{"data-pc-name":"avatar"}),[a.renderSlot(e.$slots,"default",{},(function(){return[e.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:e.cx("label")},s.getPTOptions("label")),a.toDisplayString(e.label),17)):e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:1,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):e.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[e.cx("icon"),e.icon]},s.getPTOptions("icon")),null,16)):e.image?(a.openBlock(),a.createElementBlock("img",a.mergeProps({key:3,src:e.image,alt:e.ariaLabel,onError:t[0]||(t[0]=function(){return s.onError&&s.onError.apply(s,arguments)})},s.getPTOptions("image")),null,16,i)):a.createCommentVNode("",!0)]}))],16,o)},l}(primevue.avatar.style,primevue.basecomponent,Vue);
@@ -141,11 +141,11 @@ export interface BreadcrumbProps {
141
141
  /**
142
142
  * Defines a string value that labels an interactive element.
143
143
  */
144
- 'aria-label'?: string | undefined;
144
+ ariaLabel?: string | undefined;
145
145
  /**
146
146
  * Identifier of the underlying menu element.
147
147
  */
148
- 'aria-labelledby'?: string | undefined;
148
+ ariaLabelledby?: string | undefined;
149
149
  /**
150
150
  * Used to pass attributes to DOM elements inside the component.
151
151
  * @type {BreadcrumbPassThroughOptions}
@@ -31,6 +31,10 @@ export default {
31
31
  type: Boolean,
32
32
  default: false
33
33
  },
34
+ iconDisplay: {
35
+ type: String,
36
+ default: 'button'
37
+ },
34
38
  icon: {
35
39
  type: String,
36
40
  default: undefined
@@ -216,11 +220,11 @@ export default {
216
220
  type: null,
217
221
  default: null
218
222
  },
219
- 'aria-labelledby': {
223
+ ariaLabelledby: {
220
224
  type: String,
221
225
  default: null
222
226
  },
223
- 'aria-label': {
227
+ ariaLabel: {
224
228
  type: String,
225
229
  default: null
226
230
  }
@@ -479,6 +479,11 @@ export interface CalendarProps {
479
479
  * @defaultValue false
480
480
  */
481
481
  showIcon?: boolean | undefined;
482
+ /**
483
+ * Icon position of the component. This only applies if the showIcon option is set to true.
484
+ * @defaultValue 'button'
485
+ */
486
+ iconDisplay?: 'button' | 'input' | undefined;
482
487
  /**
483
488
  * Icon of the calendar button.
484
489
  * @deprecated since v3.27.0. Use 'dropdownicon' slot.
@@ -708,11 +713,11 @@ export interface CalendarProps {
708
713
  /**
709
714
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
710
715
  */
711
- 'aria-labelledby'?: string | undefined;
716
+ ariaLabelledby?: string | undefined;
712
717
  /**
713
718
  * Establishes a string value that labels the component.
714
719
  */
715
- 'aria-label'?: string | undefined;
720
+ ariaLabel?: string | undefined;
716
721
  /**
717
722
  * Used to pass attributes to DOM elements inside the component.
718
723
  * @type {CalendarPassThroughOptions}
@@ -784,6 +789,20 @@ export interface CalendarSlots {
784
789
  */
785
790
  class: any;
786
791
  }): VNode[];
792
+ /**
793
+ * Custom input icon template.
794
+ * @param {Object} scope - input icon slot's params.
795
+ */
796
+ inputicon(scope: {
797
+ /**
798
+ * Style class of the input icon
799
+ */
800
+ class: any;
801
+ /**
802
+ * Click callback
803
+ */
804
+ clickCallback: () => void;
805
+ }): VNode[];
787
806
  /**
788
807
  * Custom previous icon template.
789
808
  * @param {Object} scope - previous icon slot's params.
@@ -28,7 +28,7 @@
28
28
  v-bind="{ ...inputProps, ...ptm('input') }"
29
29
  />
30
30
  <CalendarButton
31
- v-if="showIcon"
31
+ v-if="showIcon && iconDisplay === 'button'"
32
32
  :class="cx('dropdownButton')"
33
33
  :disabled="disabled"
34
34
  @click="onButtonClick"
@@ -47,6 +47,11 @@
47
47
  </slot>
48
48
  </template>
49
49
  </CalendarButton>
50
+ <template v-else-if="showIcon && iconDisplay === 'input'">
51
+ <slot name="inputicon" :class="cx('inputIcon')" :clickCallback="onButtonClick">
52
+ <component :is="icon ? 'i' : 'CalendarIcon'" :class="[icon, cx('inputIcon')]" @click="onButtonClick" v-bind="ptm('inputicon')" />
53
+ </slot>
54
+ </template>
50
55
  <Portal :appendTo="appendTo" :disabled="inline">
51
56
  <transition name="p-connected-overlay" @enter="onOverlayEnter($event)" @after-enter="onOverlayEnterComplete" @after-leave="onOverlayAfterLeave" @leave="onOverlayLeave" v-bind="ptm('transition')">
52
57
  <div
@@ -57,6 +57,10 @@ var script$1 = {
57
57
  type: Boolean,
58
58
  "default": false
59
59
  },
60
+ iconDisplay: {
61
+ type: String,
62
+ "default": 'button'
63
+ },
60
64
  icon: {
61
65
  type: String,
62
66
  "default": undefined
@@ -242,11 +246,11 @@ var script$1 = {
242
246
  type: null,
243
247
  "default": null
244
248
  },
245
- 'aria-labelledby': {
249
+ ariaLabelledby: {
246
250
  type: String,
247
251
  "default": null
248
252
  },
249
- 'aria-label': {
253
+ ariaLabel: {
250
254
  type: String,
251
255
  "default": null
252
256
  }
@@ -2626,7 +2630,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2626
2630
  onKeydown: _cache[4] || (_cache[4] = function () {
2627
2631
  return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
2628
2632
  })
2629
- }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_2)) : vue.createCommentVNode("", true), _ctx.showIcon ? (vue.openBlock(), vue.createBlock(_component_CalendarButton, {
2633
+ }, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input'))), null, 16, _hoisted_2)) : vue.createCommentVNode("", true), _ctx.showIcon && _ctx.iconDisplay === 'button' ? (vue.openBlock(), vue.createBlock(_component_CalendarButton, {
2630
2634
  key: 1,
2631
2635
  "class": vue.normalizeClass(_ctx.cx('dropdownButton')),
2632
2636
  disabled: _ctx.disabled,
@@ -2652,7 +2656,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2652
2656
  })];
2653
2657
  }),
2654
2658
  _: 3
2655
- }, 8, ["class", "disabled", "onClick", "aria-label", "aria-expanded", "aria-controls", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createVNode(_component_Portal, {
2659
+ }, 8, ["class", "disabled", "onClick", "aria-label", "aria-expanded", "aria-controls", "unstyled", "pt"])) : _ctx.showIcon && _ctx.iconDisplay === 'input' ? vue.renderSlot(_ctx.$slots, "inputicon", {
2660
+ key: 2,
2661
+ "class": vue.normalizeClass(_ctx.cx('inputIcon')),
2662
+ clickCallback: $options.onButtonClick
2663
+ }, function () {
2664
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon ? 'i' : 'CalendarIcon'), vue.mergeProps({
2665
+ "class": [_ctx.icon, _ctx.cx('inputIcon')],
2666
+ onClick: $options.onButtonClick
2667
+ }, _ctx.ptm('inputicon')), null, 16, ["class", "onClick"]))];
2668
+ }) : vue.createCommentVNode("", true), vue.createVNode(_component_Portal, {
2656
2669
  appendTo: _ctx.appendTo,
2657
2670
  disabled: _ctx.inline
2658
2671
  }, {