primevue 3.42.0 → 3.44.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 (552) hide show
  1. package/accordion/Accordion.d.ts +8 -0
  2. package/accordion/Accordion.vue +1 -0
  3. package/accordion/accordion.cjs.js +3 -2
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -2
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -2
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +6 -3
  10. package/animateonscroll/animateonscroll.cjs.js +2 -2
  11. package/animateonscroll/animateonscroll.cjs.min.js +1 -1
  12. package/animateonscroll/animateonscroll.esm.js +2 -2
  13. package/animateonscroll/animateonscroll.esm.min.js +1 -1
  14. package/animateonscroll/animateonscroll.js +2 -2
  15. package/animateonscroll/animateonscroll.min.js +1 -1
  16. package/api/api.cjs.js +6 -6
  17. package/api/api.cjs.min.js +1 -1
  18. package/api/api.esm.js +6 -6
  19. package/api/api.esm.min.js +1 -1
  20. package/api/api.js +6 -6
  21. package/api/api.min.js +1 -1
  22. package/autocomplete/AutoComplete.d.ts +25 -2
  23. package/autocomplete/AutoComplete.vue +2 -1
  24. package/autocomplete/autocomplete.cjs.js +5 -3
  25. package/autocomplete/autocomplete.cjs.min.js +1 -1
  26. package/autocomplete/autocomplete.esm.js +5 -3
  27. package/autocomplete/autocomplete.esm.min.js +1 -1
  28. package/autocomplete/autocomplete.js +5 -3
  29. package/autocomplete/autocomplete.min.js +1 -1
  30. package/avatar/Avatar.d.ts +6 -3
  31. package/avatar/Avatar.vue +4 -11
  32. package/avatar/avatar.cjs.js +4 -11
  33. package/avatar/avatar.cjs.min.js +1 -1
  34. package/avatar/avatar.esm.js +4 -11
  35. package/avatar/avatar.esm.min.js +1 -1
  36. package/avatar/avatar.js +4 -11
  37. package/avatar/avatar.min.js +1 -1
  38. package/badge/Badge.d.ts +8 -4
  39. package/badgedirective/BadgeDirective.d.ts +8 -0
  40. package/badgedirective/badgedirective.cjs.js +2 -2
  41. package/badgedirective/badgedirective.cjs.min.js +1 -1
  42. package/badgedirective/badgedirective.esm.js +2 -2
  43. package/badgedirective/badgedirective.esm.min.js +1 -1
  44. package/badgedirective/badgedirective.js +2 -2
  45. package/badgedirective/badgedirective.min.js +1 -1
  46. package/base/style/basestyle.cjs.js +2 -2
  47. package/base/style/basestyle.cjs.min.js +1 -1
  48. package/base/style/basestyle.esm.js +2 -2
  49. package/base/style/basestyle.esm.min.js +1 -1
  50. package/base/style/basestyle.js +2 -2
  51. package/base/style/basestyle.min.js +1 -1
  52. package/basecomponent/BaseComponent.vue +16 -1
  53. package/basecomponent/basecomponent.cjs.js +14 -5
  54. package/basecomponent/basecomponent.cjs.min.js +1 -1
  55. package/basecomponent/basecomponent.esm.js +14 -5
  56. package/basecomponent/basecomponent.esm.min.js +1 -1
  57. package/basecomponent/basecomponent.js +14 -5
  58. package/basecomponent/basecomponent.min.js +1 -1
  59. package/basecomponent/style/basecomponentstyle.cjs.js +2 -2
  60. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  61. package/basecomponent/style/basecomponentstyle.esm.js +2 -2
  62. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  63. package/basecomponent/style/basecomponentstyle.js +2 -2
  64. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  65. package/basedirective/basedirective.cjs.js +2 -3
  66. package/basedirective/basedirective.cjs.min.js +1 -1
  67. package/basedirective/basedirective.esm.js +2 -3
  68. package/basedirective/basedirective.esm.min.js +1 -1
  69. package/basedirective/basedirective.js +2 -3
  70. package/basedirective/basedirective.min.js +1 -1
  71. package/blockui/BlockUI.d.ts +8 -0
  72. package/breadcrumb/Breadcrumb.d.ts +8 -0
  73. package/button/Button.d.ts +10 -10
  74. package/button/Button.vue +1 -5
  75. package/button/button.cjs.js +1 -6
  76. package/button/button.cjs.min.js +1 -1
  77. package/button/button.esm.js +1 -6
  78. package/button/button.esm.min.js +1 -1
  79. package/button/button.js +1 -6
  80. package/button/button.min.js +1 -1
  81. package/button/style/buttonstyle.cjs.js +2 -2
  82. package/button/style/buttonstyle.cjs.min.js +1 -1
  83. package/button/style/buttonstyle.esm.js +2 -2
  84. package/button/style/buttonstyle.esm.min.js +1 -1
  85. package/button/style/buttonstyle.js +2 -2
  86. package/button/style/buttonstyle.min.js +1 -1
  87. package/calendar/Calendar.d.ts +37 -11
  88. package/calendar/Calendar.vue +9 -5
  89. package/calendar/calendar.cjs.js +10 -8
  90. package/calendar/calendar.cjs.min.js +1 -1
  91. package/calendar/calendar.esm.js +10 -8
  92. package/calendar/calendar.esm.min.js +1 -1
  93. package/calendar/calendar.js +10 -8
  94. package/calendar/calendar.min.js +1 -1
  95. package/carousel/Carousel.d.ts +8 -0
  96. package/carousel/Carousel.vue +4 -2
  97. package/carousel/carousel.cjs.js +5 -3
  98. package/carousel/carousel.cjs.min.js +1 -1
  99. package/carousel/carousel.esm.js +5 -3
  100. package/carousel/carousel.esm.min.js +1 -1
  101. package/carousel/carousel.js +5 -3
  102. package/carousel/carousel.min.js +1 -1
  103. package/cascadeselect/CascadeSelect.d.ts +8 -0
  104. package/cascadeselect/CascadeSelect.vue +1 -1
  105. package/cascadeselect/CascadeSelectSub.vue +4 -1
  106. package/cascadeselect/cascadeselect.cjs.js +7 -4
  107. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  108. package/cascadeselect/cascadeselect.esm.js +7 -4
  109. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  110. package/cascadeselect/cascadeselect.js +7 -4
  111. package/cascadeselect/cascadeselect.min.js +1 -1
  112. package/chart/Chart.d.ts +8 -0
  113. package/chart/Chart.vue +1 -1
  114. package/chart/chart.cjs.js +4 -3
  115. package/chart/chart.cjs.min.js +1 -1
  116. package/chart/chart.esm.js +4 -3
  117. package/chart/chart.esm.min.js +1 -1
  118. package/chart/chart.js +4 -3
  119. package/chart/chart.min.js +1 -1
  120. package/chart/style/chartstyle.cjs.js +6 -2
  121. package/chart/style/chartstyle.cjs.min.js +1 -1
  122. package/chart/style/chartstyle.esm.js +6 -2
  123. package/chart/style/chartstyle.esm.min.js +1 -1
  124. package/chart/style/chartstyle.js +6 -2
  125. package/chart/style/chartstyle.min.js +1 -1
  126. package/checkbox/Checkbox.d.ts +8 -0
  127. package/checkbox/checkbox.cjs.js +2 -2
  128. package/checkbox/checkbox.cjs.min.js +1 -1
  129. package/checkbox/checkbox.esm.js +2 -2
  130. package/checkbox/checkbox.esm.min.js +1 -1
  131. package/checkbox/checkbox.js +2 -2
  132. package/checkbox/checkbox.min.js +1 -1
  133. package/chip/Chip.d.ts +8 -0
  134. package/chips/Chips.d.ts +8 -0
  135. package/chips/chips.cjs.js +2 -2
  136. package/chips/chips.cjs.min.js +1 -1
  137. package/chips/chips.esm.js +2 -2
  138. package/chips/chips.esm.min.js +1 -1
  139. package/chips/chips.js +2 -2
  140. package/chips/chips.min.js +1 -1
  141. package/colorpicker/ColorPicker.d.ts +8 -0
  142. package/column/Column.d.ts +31 -13
  143. package/columngroup/ColumnGroup.d.ts +6 -3
  144. package/config/config.cjs.js +3 -3
  145. package/config/config.cjs.min.js +1 -1
  146. package/config/config.esm.js +3 -3
  147. package/config/config.esm.min.js +1 -1
  148. package/config/config.js +3 -3
  149. package/config/config.min.js +1 -1
  150. package/confirmdialog/ConfirmDialog.d.ts +24 -2
  151. package/confirmpopup/ConfirmPopup.d.ts +24 -2
  152. package/confirmpopup/confirmpopup.cjs.js +2 -2
  153. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  154. package/confirmpopup/confirmpopup.esm.js +2 -2
  155. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  156. package/confirmpopup/confirmpopup.js +2 -2
  157. package/confirmpopup/confirmpopup.min.js +1 -1
  158. package/contextmenu/ContextMenu.d.ts +8 -0
  159. package/contextmenu/contextmenu.cjs.js +2 -2
  160. package/contextmenu/contextmenu.cjs.min.js +1 -1
  161. package/contextmenu/contextmenu.esm.js +2 -2
  162. package/contextmenu/contextmenu.esm.min.js +1 -1
  163. package/contextmenu/contextmenu.js +2 -2
  164. package/contextmenu/contextmenu.min.js +1 -1
  165. package/core/core.js +308 -229
  166. package/core/core.min.js +27 -27
  167. package/datatable/BodyCell.vue +1 -0
  168. package/datatable/ColumnFilter.vue +1 -0
  169. package/datatable/DataTable.d.ts +23 -1
  170. package/datatable/FooterCell.vue +1 -0
  171. package/datatable/HeaderCell.vue +1 -0
  172. package/datatable/HeaderCheckbox.vue +1 -0
  173. package/datatable/RowCheckbox.vue +2 -0
  174. package/datatable/RowRadioButton.vue +1 -0
  175. package/datatable/TableBody.vue +1 -0
  176. package/datatable/TableFooter.vue +2 -0
  177. package/datatable/TableHeader.vue +3 -0
  178. package/datatable/datatable.cjs.js +34 -20
  179. package/datatable/datatable.cjs.min.js +1 -1
  180. package/datatable/datatable.esm.js +34 -20
  181. package/datatable/datatable.esm.min.js +1 -1
  182. package/datatable/datatable.js +34 -20
  183. package/datatable/datatable.min.js +1 -1
  184. package/dataview/DataView.d.ts +24 -1
  185. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +8 -0
  186. package/deferredcontent/DeferredContent.d.ts +8 -0
  187. package/dialog/Dialog.d.ts +20 -16
  188. package/dialog/dialog.cjs.js +2 -2
  189. package/dialog/dialog.cjs.min.js +1 -1
  190. package/dialog/dialog.esm.js +2 -2
  191. package/dialog/dialog.esm.min.js +1 -1
  192. package/dialog/dialog.js +2 -2
  193. package/dialog/dialog.min.js +1 -1
  194. package/divider/Divider.d.ts +8 -0
  195. package/dock/Dock.d.ts +8 -0
  196. package/dropdown/Dropdown.d.ts +28 -24
  197. package/dropdown/Dropdown.vue +5 -3
  198. package/dropdown/dropdown.cjs.js +8 -7
  199. package/dropdown/dropdown.cjs.min.js +1 -1
  200. package/dropdown/dropdown.esm.js +8 -7
  201. package/dropdown/dropdown.esm.min.js +1 -1
  202. package/dropdown/dropdown.js +8 -7
  203. package/dropdown/dropdown.min.js +1 -1
  204. package/dropdown/style/dropdownstyle.cjs.js +1 -1
  205. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  206. package/dropdown/style/dropdownstyle.esm.js +1 -1
  207. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  208. package/dropdown/style/dropdownstyle.js +1 -1
  209. package/dropdown/style/dropdownstyle.min.js +1 -1
  210. package/dynamicdialog/DynamicDialog.vue +1 -1
  211. package/dynamicdialog/dynamicdialog.cjs.js +1 -3
  212. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  213. package/dynamicdialog/dynamicdialog.esm.js +1 -3
  214. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  215. package/dynamicdialog/dynamicdialog.js +1 -3
  216. package/dynamicdialog/dynamicdialog.min.js +1 -1
  217. package/editor/Editor.d.ts +8 -0
  218. package/editor/editor.cjs.js +2 -2
  219. package/editor/editor.cjs.min.js +1 -1
  220. package/editor/editor.esm.js +2 -2
  221. package/editor/editor.esm.min.js +1 -1
  222. package/editor/editor.js +2 -2
  223. package/editor/editor.min.js +1 -1
  224. package/fieldset/Fieldset.d.ts +8 -0
  225. package/fieldset/Fieldset.vue +1 -1
  226. package/fieldset/fieldset.cjs.js +3 -3
  227. package/fieldset/fieldset.cjs.min.js +1 -1
  228. package/fieldset/fieldset.esm.js +3 -3
  229. package/fieldset/fieldset.esm.min.js +1 -1
  230. package/fieldset/fieldset.js +3 -3
  231. package/fieldset/fieldset.min.js +1 -1
  232. package/fileupload/FileUpload.d.ts +30 -6
  233. package/galleria/BaseGalleria.vue +8 -0
  234. package/galleria/Galleria.d.ts +16 -0
  235. package/galleria/Galleria.vue +1 -1
  236. package/galleria/GalleriaContent.vue +11 -1
  237. package/galleria/GalleriaItem.vue +72 -3
  238. package/galleria/galleria.cjs.js +93 -13
  239. package/galleria/galleria.cjs.min.js +1 -1
  240. package/galleria/galleria.esm.js +93 -13
  241. package/galleria/galleria.esm.min.js +1 -1
  242. package/galleria/galleria.js +93 -13
  243. package/galleria/galleria.min.js +1 -1
  244. package/image/Image.d.ts +8 -0
  245. package/image/Image.vue +4 -1
  246. package/image/image.cjs.js +20 -15
  247. package/image/image.cjs.min.js +1 -1
  248. package/image/image.esm.js +20 -15
  249. package/image/image.esm.min.js +1 -1
  250. package/image/image.js +20 -15
  251. package/image/image.min.js +1 -1
  252. package/inlinemessage/InlineMessage.d.ts +8 -0
  253. package/inplace/Inplace.d.ts +23 -1
  254. package/inplace/inplace.cjs.js +2 -2
  255. package/inplace/inplace.cjs.min.js +1 -1
  256. package/inplace/inplace.esm.js +2 -2
  257. package/inplace/inplace.esm.min.js +1 -1
  258. package/inplace/inplace.js +2 -2
  259. package/inplace/inplace.min.js +1 -1
  260. package/inputgroup/InputGroup.d.ts +8 -0
  261. package/inputgroupaddon/InputGroupAddon.d.ts +8 -0
  262. package/inputmask/InputMask.d.ts +8 -0
  263. package/inputnumber/InputNumber.d.ts +30 -12
  264. package/inputnumber/InputNumber.vue +10 -5
  265. package/inputnumber/inputnumber.cjs.js +22 -23
  266. package/inputnumber/inputnumber.cjs.min.js +1 -1
  267. package/inputnumber/inputnumber.esm.js +22 -23
  268. package/inputnumber/inputnumber.esm.min.js +1 -1
  269. package/inputnumber/inputnumber.js +22 -23
  270. package/inputnumber/inputnumber.min.js +1 -1
  271. package/inputswitch/InputSwitch.d.ts +8 -0
  272. package/inputswitch/inputswitch.cjs.js +2 -2
  273. package/inputswitch/inputswitch.cjs.min.js +1 -1
  274. package/inputswitch/inputswitch.esm.js +2 -2
  275. package/inputswitch/inputswitch.esm.min.js +1 -1
  276. package/inputswitch/inputswitch.js +2 -2
  277. package/inputswitch/inputswitch.min.js +1 -1
  278. package/inputtext/InputText.d.ts +8 -4
  279. package/inputtext/InputText.vue +9 -9
  280. package/inputtext/inputtext.cjs.js +9 -9
  281. package/inputtext/inputtext.cjs.min.js +1 -1
  282. package/inputtext/inputtext.esm.js +9 -9
  283. package/inputtext/inputtext.esm.min.js +1 -1
  284. package/inputtext/inputtext.js +9 -9
  285. package/inputtext/inputtext.min.js +1 -1
  286. package/knob/Knob.d.ts +8 -0
  287. package/listbox/Listbox.d.ts +8 -0
  288. package/listbox/listbox.cjs.js +2 -2
  289. package/listbox/listbox.cjs.min.js +1 -1
  290. package/listbox/listbox.esm.js +2 -2
  291. package/listbox/listbox.esm.min.js +1 -1
  292. package/listbox/listbox.js +2 -2
  293. package/listbox/listbox.min.js +1 -1
  294. package/megamenu/MegaMenu.d.ts +8 -0
  295. package/menu/Menu.d.ts +8 -0
  296. package/menu/menu.cjs.js +2 -2
  297. package/menu/menu.cjs.min.js +1 -1
  298. package/menu/menu.esm.js +2 -2
  299. package/menu/menu.esm.min.js +1 -1
  300. package/menu/menu.js +2 -2
  301. package/menu/menu.min.js +1 -1
  302. package/menubar/Menubar.d.ts +8 -0
  303. package/menubar/menubar.cjs.js +2 -2
  304. package/menubar/menubar.cjs.min.js +1 -1
  305. package/menubar/menubar.esm.js +2 -2
  306. package/menubar/menubar.esm.min.js +1 -1
  307. package/menubar/menubar.js +2 -2
  308. package/menubar/menubar.min.js +1 -1
  309. package/message/Message.d.ts +17 -13
  310. package/message/message.cjs.js +2 -2
  311. package/message/message.cjs.min.js +1 -1
  312. package/message/message.esm.js +2 -2
  313. package/message/message.esm.min.js +1 -1
  314. package/message/message.js +2 -2
  315. package/message/message.min.js +1 -1
  316. package/multiselect/MultiSelect.d.ts +8 -0
  317. package/multiselect/multiselect.cjs.js +4 -4
  318. package/multiselect/multiselect.cjs.min.js +1 -1
  319. package/multiselect/multiselect.esm.js +4 -4
  320. package/multiselect/multiselect.esm.min.js +1 -1
  321. package/multiselect/multiselect.js +4 -4
  322. package/multiselect/multiselect.min.js +1 -1
  323. package/orderlist/OrderList.d.ts +27 -5
  324. package/orderlist/OrderList.vue +4 -4
  325. package/orderlist/orderlist.cjs.js +18 -18
  326. package/orderlist/orderlist.cjs.min.js +1 -1
  327. package/orderlist/orderlist.esm.js +18 -18
  328. package/orderlist/orderlist.esm.min.js +1 -1
  329. package/orderlist/orderlist.js +18 -18
  330. package/orderlist/orderlist.min.js +1 -1
  331. package/organizationchart/OrganizationChart.d.ts +8 -0
  332. package/organizationchart/organizationchart.cjs.js +2 -2
  333. package/organizationchart/organizationchart.cjs.min.js +1 -1
  334. package/organizationchart/organizationchart.esm.js +2 -2
  335. package/organizationchart/organizationchart.esm.min.js +1 -1
  336. package/organizationchart/organizationchart.js +2 -2
  337. package/organizationchart/organizationchart.min.js +1 -1
  338. package/overlaypanel/OverlayPanel.d.ts +8 -0
  339. package/overlaypanel/overlaypanel.cjs.js +2 -2
  340. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  341. package/overlaypanel/overlaypanel.esm.js +2 -2
  342. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  343. package/overlaypanel/overlaypanel.js +2 -2
  344. package/overlaypanel/overlaypanel.min.js +1 -1
  345. package/package.json +1 -1
  346. package/paginator/Paginator.d.ts +44 -26
  347. package/paginator/style/paginatorstyle.cjs.js +2 -2
  348. package/paginator/style/paginatorstyle.cjs.min.js +1 -1
  349. package/paginator/style/paginatorstyle.esm.js +2 -2
  350. package/paginator/style/paginatorstyle.esm.min.js +1 -1
  351. package/paginator/style/paginatorstyle.js +2 -2
  352. package/paginator/style/paginatorstyle.min.js +1 -1
  353. package/panel/Panel.d.ts +8 -0
  354. package/panel/Panel.vue +1 -1
  355. package/panel/panel.cjs.js +3 -3
  356. package/panel/panel.cjs.min.js +1 -1
  357. package/panel/panel.esm.js +3 -3
  358. package/panel/panel.esm.min.js +1 -1
  359. package/panel/panel.js +3 -3
  360. package/panel/panel.min.js +1 -1
  361. package/panelmenu/PanelMenu.d.ts +8 -0
  362. package/panelmenu/panelmenu.cjs.js +2 -2
  363. package/panelmenu/panelmenu.cjs.min.js +1 -1
  364. package/panelmenu/panelmenu.esm.js +2 -2
  365. package/panelmenu/panelmenu.esm.min.js +1 -1
  366. package/panelmenu/panelmenu.js +2 -2
  367. package/panelmenu/panelmenu.min.js +1 -1
  368. package/passthrough/index.cjs.js +2 -2
  369. package/passthrough/index.cjs.min.js +1 -1
  370. package/passthrough/index.esm.js +2 -2
  371. package/passthrough/index.esm.min.js +1 -1
  372. package/passthrough/index.js +2 -2
  373. package/passthrough/index.min.js +1 -1
  374. package/passthrough/tailwind/index.cjs.js +168 -124
  375. package/passthrough/tailwind/index.cjs.min.js +1 -1
  376. package/passthrough/tailwind/index.esm.js +168 -124
  377. package/passthrough/tailwind/index.esm.min.js +1 -1
  378. package/passthrough/tailwind/index.js +168 -124
  379. package/passthrough/tailwind/index.min.js +1 -1
  380. package/password/Password.d.ts +25 -3
  381. package/password/Password.vue +2 -1
  382. package/password/password.cjs.js +5 -6
  383. package/password/password.cjs.min.js +1 -1
  384. package/password/password.esm.js +5 -6
  385. package/password/password.esm.min.js +1 -1
  386. package/password/password.js +5 -6
  387. package/password/password.min.js +1 -1
  388. package/picklist/PickList.d.ts +35 -13
  389. package/picklist/PickList.vue +48 -12
  390. package/picklist/picklist.cjs.js +49 -37
  391. package/picklist/picklist.cjs.min.js +1 -1
  392. package/picklist/picklist.esm.js +49 -37
  393. package/picklist/picklist.esm.min.js +1 -1
  394. package/picklist/picklist.js +49 -37
  395. package/picklist/picklist.min.js +1 -1
  396. package/progressbar/ProgressBar.d.ts +10 -6
  397. package/progressspinner/ProgressSpinner.d.ts +8 -0
  398. package/radiobutton/RadioButton.d.ts +8 -0
  399. package/radiobutton/radiobutton.cjs.js +2 -2
  400. package/radiobutton/radiobutton.cjs.min.js +1 -1
  401. package/radiobutton/radiobutton.esm.js +2 -2
  402. package/radiobutton/radiobutton.esm.min.js +1 -1
  403. package/radiobutton/radiobutton.js +2 -2
  404. package/radiobutton/radiobutton.min.js +1 -1
  405. package/rating/Rating.d.ts +8 -0
  406. package/row/Row.d.ts +6 -3
  407. package/scrollpanel/ScrollPanel.d.ts +8 -0
  408. package/scrollpanel/ScrollPanel.vue +8 -1
  409. package/scrollpanel/scrollpanel.cjs.js +14 -5
  410. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  411. package/scrollpanel/scrollpanel.esm.js +14 -5
  412. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  413. package/scrollpanel/scrollpanel.js +14 -5
  414. package/scrollpanel/scrollpanel.min.js +1 -1
  415. package/scrolltop/ScrollTop.d.ts +8 -0
  416. package/selectbutton/SelectButton.d.ts +8 -0
  417. package/sidebar/Sidebar.d.ts +8 -0
  418. package/sidebar/sidebar.cjs.js +2 -2
  419. package/sidebar/sidebar.cjs.min.js +1 -1
  420. package/sidebar/sidebar.esm.js +2 -2
  421. package/sidebar/sidebar.esm.min.js +1 -1
  422. package/sidebar/sidebar.js +2 -2
  423. package/sidebar/sidebar.min.js +1 -1
  424. package/skeleton/Skeleton.d.ts +8 -0
  425. package/slider/Slider.d.ts +8 -0
  426. package/speeddial/SpeedDial.d.ts +23 -1
  427. package/speeddial/speeddial.cjs.js +2 -2
  428. package/speeddial/speeddial.cjs.min.js +1 -1
  429. package/speeddial/speeddial.esm.js +2 -2
  430. package/speeddial/speeddial.esm.min.js +1 -1
  431. package/speeddial/speeddial.js +2 -2
  432. package/speeddial/speeddial.min.js +1 -1
  433. package/speeddial/style/speeddialstyle.cjs.js +2 -2
  434. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  435. package/speeddial/style/speeddialstyle.esm.js +2 -2
  436. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  437. package/speeddial/style/speeddialstyle.js +2 -2
  438. package/speeddial/style/speeddialstyle.min.js +1 -1
  439. package/splitbutton/SplitButton.d.ts +24 -2
  440. package/splitbutton/SplitButton.vue +2 -2
  441. package/splitbutton/splitbutton.cjs.js +4 -4
  442. package/splitbutton/splitbutton.cjs.min.js +1 -1
  443. package/splitbutton/splitbutton.esm.js +4 -4
  444. package/splitbutton/splitbutton.esm.min.js +1 -1
  445. package/splitbutton/splitbutton.js +4 -4
  446. package/splitbutton/splitbutton.min.js +1 -1
  447. package/splitbutton/style/splitbuttonstyle.cjs.js +3 -3
  448. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  449. package/splitbutton/style/splitbuttonstyle.esm.js +3 -3
  450. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  451. package/splitbutton/style/splitbuttonstyle.js +3 -3
  452. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  453. package/splitter/Splitter.d.ts +8 -0
  454. package/splitterpanel/SplitterPanel.d.ts +8 -0
  455. package/steps/Steps.d.ts +8 -0
  456. package/tabmenu/TabMenu.d.ts +8 -0
  457. package/tabpanel/TabPanel.d.ts +8 -5
  458. package/tabview/TabView.vue +1 -0
  459. package/tabview/tabview.cjs.js +3 -2
  460. package/tabview/tabview.cjs.min.js +1 -1
  461. package/tabview/tabview.esm.js +3 -2
  462. package/tabview/tabview.esm.min.js +1 -1
  463. package/tabview/tabview.js +3 -2
  464. package/tabview/tabview.min.js +1 -1
  465. package/tag/Tag.d.ts +8 -0
  466. package/terminal/Terminal.d.ts +8 -0
  467. package/textarea/Textarea.d.ts +8 -0
  468. package/tieredmenu/TieredMenu.d.ts +18 -14
  469. package/tieredmenu/tieredmenu.cjs.js +2 -2
  470. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  471. package/tieredmenu/tieredmenu.esm.js +2 -2
  472. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  473. package/tieredmenu/tieredmenu.js +2 -2
  474. package/tieredmenu/tieredmenu.min.js +1 -1
  475. package/timeline/Timeline.d.ts +8 -0
  476. package/toast/Toast.d.ts +8 -0
  477. package/toast/style/toaststyle.cjs.js +2 -2
  478. package/toast/style/toaststyle.cjs.min.js +1 -1
  479. package/toast/style/toaststyle.esm.js +2 -2
  480. package/toast/style/toaststyle.esm.min.js +1 -1
  481. package/toast/style/toaststyle.js +2 -2
  482. package/toast/style/toaststyle.min.js +1 -1
  483. package/toast/toast.cjs.js +4 -4
  484. package/toast/toast.cjs.min.js +1 -1
  485. package/toast/toast.esm.js +4 -4
  486. package/toast/toast.esm.min.js +1 -1
  487. package/toast/toast.js +4 -4
  488. package/toast/toast.min.js +1 -1
  489. package/togglebutton/ToggleButton.d.ts +8 -0
  490. package/togglebutton/togglebutton.cjs.js +2 -2
  491. package/togglebutton/togglebutton.cjs.min.js +1 -1
  492. package/togglebutton/togglebutton.esm.js +2 -2
  493. package/togglebutton/togglebutton.esm.min.js +1 -1
  494. package/togglebutton/togglebutton.js +2 -2
  495. package/togglebutton/togglebutton.min.js +1 -1
  496. package/toolbar/Toolbar.d.ts +8 -0
  497. package/tooltip/Tooltip.d.ts +8 -0
  498. package/tree/Tree.d.ts +46 -22
  499. package/tree/Tree.vue +3 -1
  500. package/tree/tree.cjs.js +9 -5
  501. package/tree/tree.cjs.min.js +1 -1
  502. package/tree/tree.esm.js +9 -5
  503. package/tree/tree.esm.min.js +1 -1
  504. package/tree/tree.js +9 -5
  505. package/tree/tree.min.js +1 -1
  506. package/treeselect/TreeSelect.d.ts +25 -3
  507. package/treeselect/treeselect.cjs.js +4 -4
  508. package/treeselect/treeselect.cjs.min.js +1 -1
  509. package/treeselect/treeselect.esm.js +4 -4
  510. package/treeselect/treeselect.esm.min.js +1 -1
  511. package/treeselect/treeselect.js +4 -4
  512. package/treeselect/treeselect.min.js +1 -1
  513. package/treetable/BodyCell.vue +3 -1
  514. package/treetable/FooterCell.vue +1 -0
  515. package/treetable/HeaderCell.vue +1 -0
  516. package/treetable/TreeTable.d.ts +23 -1
  517. package/treetable/TreeTable.vue +3 -1
  518. package/treetable/treetable.cjs.js +19 -13
  519. package/treetable/treetable.cjs.min.js +1 -1
  520. package/treetable/treetable.esm.js +19 -13
  521. package/treetable/treetable.esm.min.js +1 -1
  522. package/treetable/treetable.js +19 -13
  523. package/treetable/treetable.min.js +1 -1
  524. package/tristatecheckbox/TriStateCheckbox.d.ts +8 -0
  525. package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
  526. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  527. package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
  528. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  529. package/tristatecheckbox/tristatecheckbox.js +2 -2
  530. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  531. package/usestyle/usestyle.cjs.js +2 -2
  532. package/usestyle/usestyle.cjs.min.js +1 -1
  533. package/usestyle/usestyle.esm.js +2 -2
  534. package/usestyle/usestyle.esm.min.js +1 -1
  535. package/usestyle/usestyle.js +2 -2
  536. package/usestyle/usestyle.min.js +1 -1
  537. package/utils/Utils.d.ts +1 -0
  538. package/utils/utils.cjs.js +27 -3
  539. package/utils/utils.cjs.min.js +1 -1
  540. package/utils/utils.esm.js +27 -3
  541. package/utils/utils.esm.min.js +1 -1
  542. package/utils/utils.js +27 -3
  543. package/utils/utils.min.js +1 -1
  544. package/virtualscroller/VirtualScroller.d.ts +8 -0
  545. package/virtualscroller/VirtualScroller.vue +1 -1
  546. package/virtualscroller/virtualscroller.cjs.js +5 -5
  547. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  548. package/virtualscroller/virtualscroller.esm.js +5 -5
  549. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  550. package/virtualscroller/virtualscroller.js +5 -5
  551. package/virtualscroller/virtualscroller.min.js +1 -1
  552. package/web-types.json +1 -1
@@ -16,8 +16,8 @@ this.primevue.basedirective = (function (BaseStyle, utils, vue) {
16
16
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
17
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
18
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
21
  var BaseDirective = {
22
22
  _getMeta: function _getMeta() {
23
23
  return [utils.ObjectUtils.isObject(arguments.length <= 0 ? undefined : arguments[0]) ? undefined : arguments.length <= 0 ? undefined : arguments[0], utils.ObjectUtils.getItemValue(utils.ObjectUtils.isObject(arguments.length <= 0 ? undefined : arguments[0]) ? arguments.length <= 0 ? undefined : arguments[0] : arguments.length <= 1 ? undefined : arguments[1])];
@@ -187,7 +187,6 @@ this.primevue.basedirective = (function (BaseStyle, utils, vue) {
187
187
  (_el$$instance$hook = (_el$$instance7 = el.$instance)[hook]) === null || _el$$instance$hook === void 0 || _el$$instance$hook.call(_el$$instance7, el, binding, vnode, prevVnode); // handle hook in directive implementation
188
188
  BaseDirective._hook(name, hook, el, binding, vnode, prevVnode); // handle hooks during directive uses (global and self-definition)
189
189
  };
190
-
191
190
  return {
192
191
  created: function created(el, binding, vnode, prevVnode) {
193
192
  handleHook('created', el, binding, vnode, prevVnode);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.basedirective=function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(t);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function r(t,e){return c(t)||d(t,e)||a(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,l,r,u=[],a=!0,v=!1;try{if(l=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=l.call(n)).done)&&(u.push(i.value),u.length!==e);a=!0);}catch(t){v=!0,o=t}finally{try{if(!a&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(v)throw o}}return u}}function c(t){if(Array.isArray(t))return t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=b(t,"string");return"symbol"===l(e)?e:String(e)}function b(t,e){if("object"!==l(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var y={_getMeta:function(){return[e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],e.ObjectUtils.getItemValue(e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(t,e){var n,i,o;return null===(n=(null==t||null===(i=t.instance)||void 0===i?void 0:i.$primevue)||(null==e||null===(o=e.ctx)||void 0===o||null===(o=o.appContext)||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.globalProperties)||void 0===o?void 0:o.$primevue))||void 0===n?void 0:n.config},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(t)?y._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=function(){var t=y._getOptionValue.apply(y,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},v="data-pc-",d=(null===(t=o.binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.ptOptions)||(null===(i=o.$config)||void 0===i?void 0:i.ptOptions)||{},c=d.mergeSections,s=void 0===c||c,p=d.mergeProps,b=void 0!==p&&p,h=!(arguments.length>4&&void 0!==arguments[4])||arguments[4]?y._useDefaultPT(o,o.defaultPT(),a,r,u):void 0,m=y._usePT(o,y._getPT(l,o.$name),a,r,f(f({},u),{},{global:h||{}})),O=f(f({},"root"===r&&g({},"".concat(v,"name"),e.ObjectUtils.toFlatCase(o.$name))),{},g({},"".concat(v,"section"),e.ObjectUtils.toFlatCase(r)));return s||!s&&m?b?n.mergeProps(h,m,O):f(f(f({},h),m),O):f(f({},m),O)},_getPT:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=function(t){var o,l=i?i(t):t,r=e.ObjectUtils.toFlatCase(n);return null!==(o=null==l?void 0:l[r])&&void 0!==o?o:l};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:o(t.originalValue),value:o(t.value)}:o(t)},_usePT:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,u=function(t){return o(t,l,r)};if(null!=i&&i.hasOwnProperty("_usept")){var a,v=i._usept||(null===(a=t.$config)||void 0===a?void 0:a.ptOptions)||{},d=v.mergeSections,c=void 0===d||d,s=v.mergeProps,g=void 0!==s&&s,p=u(i.originalValue),b=u(i.value);if(void 0===p&&void 0===b)return;return e.ObjectUtils.isString(b)?b:e.ObjectUtils.isString(p)?p:c||!c&&b?g?n.mergeProps(p,b):f(f({},p),b):b}return u(i)},_useDefaultPT:function(){return y._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0)},_hook:function(t,n,i,o,l,r){var u,a,v="on".concat(e.ObjectUtils.toCapitalCase(n)),d=y._getConfig(o,l),c=null==i?void 0:i.$instance,s=y._usePT(c,y._getPT(null==o||null===(u=o.value)||void 0===u?void 0:u.pt,t),y._getOptionValue,"hooks.".concat(v)),f=y._useDefaultPT(c,null==d||null===(a=d.pt)||void 0===a||null===(a=a.directives)||void 0===a?void 0:a[t],y._getOptionValue,"hooks.".concat(v)),g={el:i,binding:o,vnode:l,prevVnode:r};null==s||s(c,g),null==f||f(c,g)},_extend:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(i,o,l,r,u){var a,v;o._$instances=o._$instances||{};var d=y._getConfig(l,r),c=o._$instances[t]||{},s=e.ObjectUtils.isEmpty(c)?f(f({},n),null==n?void 0:n.methods):{};o._$instances[t]=f(f({},c),{},{$name:t,$host:o,$binding:l,$modifiers:null==l?void 0:l.modifiers,$value:null==l?void 0:l.value,$el:c.$el||o||void 0,$style:f({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==n?void 0:n.style),$config:d,defaultPT:function(){return y._getPT(null==d?void 0:d.pt,void 0,(function(e){var n;return null==e||null===(n=e.directives)||void 0===n?void 0:n[t]}))},isUnstyled:function(){var t,e;return void 0!==(null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.unstyled)?null===(e=o.$instance)||void 0===e||null===(e=e.$binding)||void 0===e||null===(e=e.value)||void 0===e?void 0:e.unstyled:null==d?void 0:d.unstyled},ptm:function(){var t;return y._getPTValue(o.$instance,null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return y._getPTValue(o.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!==(t=o.$instance)&&void 0!==t&&t.isUnstyled()?void 0:y._getOptionValue(null===(e=o.$instance)||void 0===e||null===(e=e.$style)||void 0===e?void 0:e.classes,n,f({},i))},sx:function(){var t;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?y._getOptionValue(null===(t=o.$instance)||void 0===t||null===(t=t.$style)||void 0===t?void 0:t.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},s),o.$instance=o._$instances[t],null===(a=(v=o.$instance)[i])||void 0===a||a.call(v,o,l,r,u),y._hook(t,i,o,l,r,u)};return{created:function(t,e,n,o){i("created",t,e,n,o)},beforeMount:function(t,e,n,l){var r,u,a,v,d=y._getConfig(e,n);o.default.loadStyle(void 0,{nonce:null==d||null===(r=d.csp)||void 0===r?void 0:r.nonce}),(null===(u=t.$instance)||void 0===u||!u.isUnstyled())&&(null===(a=t.$instance)||void 0===a||null===(a=a.$style)||void 0===a||a.loadStyle(void 0,{nonce:null==d||null===(v=d.csp)||void 0===v?void 0:v.nonce})),i("beforeMount",t,e,n,l)},mounted:function(t,e,n,o){i("mounted",t,e,n,o)},beforeUpdate:function(t,e,n,o){i("beforeUpdate",t,e,n,o)},updated:function(t,e,n,o){i("updated",t,e,n,o)},beforeUnmount:function(t,e,n,o){i("beforeUnmount",t,e,n,o)},unmounted:function(t,e,n,o){i("unmounted",t,e,n,o)}}},extend:function(){var t=r(y._getMeta.apply(y,arguments),2),e=t[1];return f({extend:function(){var t=r(y._getMeta.apply(y,arguments),2),n=t[1];return y.extend(t[0],f(f(f({},e),null==e?void 0:e.methods),n))}},y._extend(t[0],e))}};return y}(primevue.base.style,primevue.utils,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.basedirective=function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(t);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function r(t,e){return c(t)||d(t,e)||a(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,l,r,u=[],a=!0,v=!1;try{if(l=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(i=l.call(n)).done)&&(u.push(i.value),u.length!==e);a=!0);}catch(t){v=!0,o=t}finally{try{if(!a&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(v)throw o}}return u}}function c(t){if(Array.isArray(t))return t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){var i;return(e="symbol"==l(i=p(e,"string"))?i:String(i))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var b={_getMeta:function(){return[e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],e.ObjectUtils.getItemValue(e.ObjectUtils.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(t,e){var n,i,o;return null===(n=(null==t||null===(i=t.instance)||void 0===i?void 0:i.$primevue)||(null==e||null===(o=e.ctx)||void 0===o||null===(o=o.appContext)||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.globalProperties)||void 0===o?void 0:o.$primevue))||void 0===n?void 0:n.config},_getOptionValue:function(t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),o=i.shift();return o?e.ObjectUtils.isObject(t)?b._getOptionValue(e.ObjectUtils.getItemValue(t[Object.keys(t).find((function(t){return e.ObjectUtils.toFlatCase(t)===o}))||""],n),i.join("."),n):void 0:e.ObjectUtils.getItemValue(t,n)},_getPTValue:function(){var t,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=function(){var t=b._getOptionValue.apply(b,arguments);return e.ObjectUtils.isString(t)||e.ObjectUtils.isArray(t)?{class:t}:t},v="data-pc-",d=(null===(t=o.binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.ptOptions)||(null===(i=o.$config)||void 0===i?void 0:i.ptOptions)||{},c=d.mergeSections,s=void 0===c||c,p=d.mergeProps,y=void 0!==p&&p,h=!(arguments.length>4&&void 0!==arguments[4])||arguments[4]?b._useDefaultPT(o,o.defaultPT(),a,r,u):void 0,m=b._usePT(o,b._getPT(l,o.$name),a,r,f(f({},u),{},{global:h||{}})),O=f(f({},"root"===r&&g({},"".concat(v,"name"),e.ObjectUtils.toFlatCase(o.$name))),{},g({},"".concat(v,"section"),e.ObjectUtils.toFlatCase(r)));return s||!s&&m?y?n.mergeProps(h,m,O):f(f(f({},h),m),O):f(f({},m),O)},_getPT:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,o=function(t){var o,l=i?i(t):t,r=e.ObjectUtils.toFlatCase(n);return null!==(o=null==l?void 0:l[r])&&void 0!==o?o:l};return null!=t&&t.hasOwnProperty("_usept")?{_usept:t._usept,originalValue:o(t.originalValue),value:o(t.value)}:o(t)},_usePT:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,u=function(t){return o(t,l,r)};if(null!=i&&i.hasOwnProperty("_usept")){var a,v=i._usept||(null===(a=t.$config)||void 0===a?void 0:a.ptOptions)||{},d=v.mergeSections,c=void 0===d||d,s=v.mergeProps,g=void 0!==s&&s,p=u(i.originalValue),b=u(i.value);if(void 0===p&&void 0===b)return;return e.ObjectUtils.isString(b)?b:e.ObjectUtils.isString(p)?p:c||!c&&b?g?n.mergeProps(p,b):f(f({},p),b):b}return u(i)},_useDefaultPT:function(){return b._usePT(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0,arguments.length>4?arguments[4]:void 0)},_hook:function(t,n,i,o,l,r){var u,a,v="on".concat(e.ObjectUtils.toCapitalCase(n)),d=b._getConfig(o,l),c=null==i?void 0:i.$instance,s=b._usePT(c,b._getPT(null==o||null===(u=o.value)||void 0===u?void 0:u.pt,t),b._getOptionValue,"hooks.".concat(v)),f=b._useDefaultPT(c,null==d||null===(a=d.pt)||void 0===a||null===(a=a.directives)||void 0===a?void 0:a[t],b._getOptionValue,"hooks.".concat(v)),g={el:i,binding:o,vnode:l,prevVnode:r};null==s||s(c,g),null==f||f(c,g)},_extend:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(i,o,l,r,u){var a,v;o._$instances=o._$instances||{};var d=b._getConfig(l,r),c=o._$instances[t]||{},s=e.ObjectUtils.isEmpty(c)?f(f({},n),null==n?void 0:n.methods):{};o._$instances[t]=f(f({},c),{},{$name:t,$host:o,$binding:l,$modifiers:null==l?void 0:l.modifiers,$value:null==l?void 0:l.value,$el:c.$el||o||void 0,$style:f({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},null==n?void 0:n.style),$config:d,defaultPT:function(){return b._getPT(null==d?void 0:d.pt,void 0,(function(e){var n;return null==e||null===(n=e.directives)||void 0===n?void 0:n[t]}))},isUnstyled:function(){var t,e;return void 0!==(null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.unstyled)?null===(e=o.$instance)||void 0===e||null===(e=e.$binding)||void 0===e||null===(e=e.value)||void 0===e?void 0:e.unstyled:null==d?void 0:d.unstyled},ptm:function(){var t;return b._getPTValue(o.$instance,null===(t=o.$instance)||void 0===t||null===(t=t.$binding)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))},ptmo:function(){return b._getPTValue(o.$instance,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},!1)},cx:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!==(t=o.$instance)&&void 0!==t&&t.isUnstyled()?void 0:b._getOptionValue(null===(e=o.$instance)||void 0===e||null===(e=e.$style)||void 0===e?void 0:e.classes,n,f({},i))},sx:function(){var t;return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?b._getOptionValue(null===(t=o.$instance)||void 0===t||null===(t=t.$style)||void 0===t?void 0:t.inlineStyles,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",f({},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):void 0}},s),o.$instance=o._$instances[t],null===(a=(v=o.$instance)[i])||void 0===a||a.call(v,o,l,r,u),b._hook(t,i,o,l,r,u)};return{created:function(t,e,n,o){i("created",t,e,n,o)},beforeMount:function(t,e,n,l){var r,u,a,v,d=b._getConfig(e,n);o.default.loadStyle(void 0,{nonce:null==d||null===(r=d.csp)||void 0===r?void 0:r.nonce}),(null===(u=t.$instance)||void 0===u||!u.isUnstyled())&&(null===(a=t.$instance)||void 0===a||null===(a=a.$style)||void 0===a||a.loadStyle(void 0,{nonce:null==d||null===(v=d.csp)||void 0===v?void 0:v.nonce})),i("beforeMount",t,e,n,l)},mounted:function(t,e,n,o){i("mounted",t,e,n,o)},beforeUpdate:function(t,e,n,o){i("beforeUpdate",t,e,n,o)},updated:function(t,e,n,o){i("updated",t,e,n,o)},beforeUnmount:function(t,e,n,o){i("beforeUnmount",t,e,n,o)},unmounted:function(t,e,n,o){i("unmounted",t,e,n,o)}}},extend:function(){var t=r(b._getMeta.apply(b,arguments),2),e=t[1];return f({extend:function(){var t=r(b._getMeta.apply(b,arguments),2),n=t[1];return b.extend(t[0],f(f(f({},e),null==e?void 0:e.methods),n))}},b._extend(t[0],e))}};return b}(primevue.base.style,primevue.utils,Vue);
@@ -30,6 +30,14 @@ export interface BlockUIPassThroughMethodOptions {
30
30
  * Defines current inline state.
31
31
  */
32
32
  state: BlockUIState;
33
+ /**
34
+ * Defines valid attributes.
35
+ */
36
+ attrs: any;
37
+ /**
38
+ * Defines parent options.
39
+ */
40
+ parent: any;
33
41
  /**
34
42
  * Defines passthrough(pt) options in global config.
35
43
  */
@@ -31,6 +31,14 @@ export interface BreadcrumbPassThroughMethodOptions {
31
31
  * Defines current options.
32
32
  */
33
33
  context: BreadcrumbContext;
34
+ /**
35
+ * Defines valid attributes.
36
+ */
37
+ attrs: any;
38
+ /**
39
+ * Defines parent options.
40
+ */
41
+ parent: any;
34
42
  /**
35
43
  * Defines passthrough(pt) options in global config.
36
44
  */
@@ -12,12 +12,12 @@ import { ComponentHooks } from '../basecomponent';
12
12
  import { PassThroughOptions } from '../passthrough';
13
13
  import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
14
14
 
15
- export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined;
15
+ export declare type ButtonPassThroughOptionType<T = any> = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions<T>) => ButtonPassThroughAttributes | string) | string | null | undefined;
16
16
 
17
17
  /**
18
18
  * Custom passthrough(pt) option method.
19
19
  */
20
- export interface ButtonPassThroughMethodOptions {
20
+ export interface ButtonPassThroughMethodOptions<T> {
21
21
  /**
22
22
  * Defines instance.
23
23
  */
@@ -33,7 +33,7 @@ export interface ButtonPassThroughMethodOptions {
33
33
  /**
34
34
  * Defines parent instance.
35
35
  */
36
- parent: any;
36
+ parent: T;
37
37
  /**
38
38
  * Defines passthrough(pt) options in global config.
39
39
  */
@@ -44,27 +44,27 @@ export interface ButtonPassThroughMethodOptions {
44
44
  * Custom passthrough(pt) options.
45
45
  * @see {@link ButtonProps.pt}
46
46
  */
47
- export interface ButtonPassThroughOptions {
47
+ export interface ButtonPassThroughOptions<T = any> {
48
48
  /**
49
49
  * Used to pass attributes to the root's DOM element.
50
50
  */
51
- root?: ButtonPassThroughOptionType;
51
+ root?: ButtonPassThroughOptionType<T>;
52
52
  /**
53
53
  * Used to pass attributes to the loading icon's DOM element.
54
54
  */
55
- loadingIcon?: ButtonPassThroughOptionType;
55
+ loadingIcon?: ButtonPassThroughOptionType<T>;
56
56
  /**
57
57
  * Used to pass attributes to the icon's DOM element.
58
58
  */
59
- icon?: ButtonPassThroughOptionType;
59
+ icon?: ButtonPassThroughOptionType<T>;
60
60
  /**
61
61
  * Used to pass attributes to the label's DOM element.
62
62
  */
63
- label?: ButtonPassThroughOptionType;
63
+ label?: ButtonPassThroughOptionType<T>;
64
64
  /**
65
65
  * Used to pass attributes to the badge's DOM element.
66
66
  */
67
- badge?: ButtonPassThroughOptionType;
67
+ badge?: ButtonPassThroughOptionType<T>;
68
68
  /**
69
69
  * Used to manage all lifecycle hooks.
70
70
  * @see {@link BaseComponent.ComponentHooks}
@@ -171,7 +171,7 @@ export interface ButtonProps extends ButtonHTMLAttributes {
171
171
  * Used to pass attributes to DOM elements inside the component.
172
172
  * @type {ButtonPassThroughOptions}
173
173
  */
174
- pt?: PassThrough<ButtonPassThroughOptions>;
174
+ pt?: PassThrough<ButtonPassThroughOptions<any>>;
175
175
  /**
176
176
  * Used to configure passthrough(pt) options of the component.
177
177
  * @type {PassThroughOptions}
package/button/Button.vue CHANGED
@@ -26,10 +26,6 @@ export default {
26
26
  methods: {
27
27
  getPTOptions(key) {
28
28
  return this.ptm(key, {
29
- parent: {
30
- props: this.$parent?.$props,
31
- state: this.$parent?.$data
32
- },
33
29
  context: {
34
30
  disabled: this.disabled
35
31
  }
@@ -41,7 +37,7 @@ export default {
41
37
  return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
42
38
  },
43
39
  defaultAriaLabel() {
44
- return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs['aria-label'];
40
+ return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
45
41
  },
46
42
  hasIcon() {
47
43
  return this.icon || this.$slots.icon;
@@ -101,12 +101,7 @@ var script = {
101
101
  "extends": script$1,
102
102
  methods: {
103
103
  getPTOptions: function getPTOptions(key) {
104
- var _this$$parent, _this$$parent2;
105
104
  return this.ptm(key, {
106
- parent: {
107
- props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
108
- state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
109
- },
110
105
  context: {
111
106
  disabled: this.disabled
112
107
  }
@@ -118,7 +113,7 @@ var script = {
118
113
  return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
119
114
  },
120
115
  defaultAriaLabel: function defaultAriaLabel() {
121
- return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs['aria-label'];
116
+ return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
122
117
  },
123
118
  hasIcon: function hasIcon() {
124
119
  return this.icon || this.$slots.icon;
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),l=require("primevue/basecomponent"),a=require("primevue/button/style"),o=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),s=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:s.default,Badge:r.default},directives:{ripple:d.default}},u=["aria-label","disabled","data-pc-severity"];c.render=function(e,t,n,l,a,i){var r=o.resolveComponent("SpinnerIcon"),s=o.resolveComponent("Badge"),d=o.resolveDirective("ripple");return o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({class:e.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[o.renderSlot(e.$slots,"default",{},(function(){return[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(r,o.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):o.renderSlot(e.$slots,"icon",{key:1,class:o.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):o.createCommentVNode("",!0)]})),o.createElementVNode("span",o.mergeProps({class:e.cx("label")},e.ptm("label")),o.toDisplayString(e.label||" "),17),e.badge?(o.openBlock(),o.createBlock(s,o.mergeProps({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):o.createCommentVNode("",!0)]}))],16,u)),[[d]])},module.exports=c;
1
+ "use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),l=require("primevue/basecomponent"),a=require("primevue/button/style"),o=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),s=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:s.default,Badge:r.default},directives:{ripple:d.default}},u=["aria-label","disabled","data-pc-severity"];c.render=function(e,t,n,l,a,i){var r=o.resolveComponent("SpinnerIcon"),s=o.resolveComponent("Badge"),d=o.resolveDirective("ripple");return o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({class:e.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[o.renderSlot(e.$slots,"default",{},(function(){return[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(r,o.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):o.renderSlot(e.$slots,"icon",{key:1,class:o.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):o.createCommentVNode("",!0)]})),o.createElementVNode("span",o.mergeProps({class:e.cx("label")},e.ptm("label")),o.toDisplayString(e.label||" "),17),e.badge?(o.openBlock(),o.createBlock(s,o.mergeProps({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):o.createCommentVNode("",!0)]}))],16,u)),[[d]])},module.exports=c;
@@ -91,12 +91,7 @@ var script = {
91
91
  "extends": script$1,
92
92
  methods: {
93
93
  getPTOptions: function getPTOptions(key) {
94
- var _this$$parent, _this$$parent2;
95
94
  return this.ptm(key, {
96
- parent: {
97
- props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
98
- state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
99
- },
100
95
  context: {
101
96
  disabled: this.disabled
102
97
  }
@@ -108,7 +103,7 @@ var script = {
108
103
  return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
109
104
  },
110
105
  defaultAriaLabel: function defaultAriaLabel() {
111
- return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs['aria-label'];
106
+ return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
112
107
  },
113
108
  hasIcon: function hasIcon() {
114
109
  return this.icon || this.$slots.icon;
@@ -1 +1 @@
1
- import e from"primevue/badge";import t from"primevue/icons/spinner";import n from"primevue/ripple";import a from"primevue/basecomponent";import l from"primevue/button/style";import{resolveComponent as i,resolveDirective as o,withDirectives as s,openBlock as r,createElementBlock as d,mergeProps as u,renderSlot as p,normalizeClass as c,createBlock as f,createCommentVNode as g,createElementVNode as y,toDisplayString as b}from"vue";var m={name:"Button",extends:{name:"BaseButton",extends:a,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:l,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:t,Badge:e},directives:{ripple:n}},v=["aria-label","disabled","data-pc-severity"];m.render=function(e,t,n,a,l,m){var h=i("SpinnerIcon"),x=i("Badge"),S=o("ripple");return s((r(),d("button",u({class:e.cx("root"),type:"button","aria-label":m.defaultAriaLabel,disabled:m.disabled},m.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[p(e.$slots,"default",{},(function(){return[e.loading?p(e.$slots,"loadingicon",{key:0,class:c([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(r(),d("span",u({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(r(),f(h,u({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):p(e.$slots,"icon",{key:1,class:c([e.cx("icon")])},(function(){return[e.icon?(r(),d("span",u({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):g("",!0)]})),y("span",u({class:e.cx("label")},e.ptm("label")),b(e.label||" "),17),e.badge?(r(),f(x,u({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):g("",!0)]}))],16,v)),[[S]])};export{m as default};
1
+ import e from"primevue/badge";import t from"primevue/icons/spinner";import n from"primevue/ripple";import l from"primevue/basecomponent";import a from"primevue/button/style";import{resolveComponent as i,resolveDirective as o,withDirectives as s,openBlock as d,createElementBlock as r,mergeProps as u,renderSlot as c,normalizeClass as p,createBlock as f,createCommentVNode as g,createElementVNode as y,toDisplayString as b}from"vue";var m={name:"Button",extends:{name:"BaseButton",extends:l,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:a,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:t,Badge:e},directives:{ripple:n}},v=["aria-label","disabled","data-pc-severity"];m.render=function(e,t,n,l,a,m){var h=i("SpinnerIcon"),x=i("Badge"),S=o("ripple");return s((d(),r("button",u({class:e.cx("root"),type:"button","aria-label":m.defaultAriaLabel,disabled:m.disabled},m.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[c(e.$slots,"default",{},(function(){return[e.loading?c(e.$slots,"loadingicon",{key:0,class:p([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(d(),r("span",u({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(d(),f(h,u({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):c(e.$slots,"icon",{key:1,class:p([e.cx("icon")])},(function(){return[e.icon?(d(),r("span",u({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):g("",!0)]})),y("span",u({class:e.cx("label")},e.ptm("label")),b(e.label||" "),17),e.badge?(d(),f(x,u({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):g("",!0)]}))],16,v)),[[S]])};export{m as default};
package/button/button.js CHANGED
@@ -96,12 +96,7 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, But
96
96
  "extends": script$1,
97
97
  methods: {
98
98
  getPTOptions: function getPTOptions(key) {
99
- var _this$$parent, _this$$parent2;
100
99
  return this.ptm(key, {
101
- parent: {
102
- props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
103
- state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
104
- },
105
100
  context: {
106
101
  disabled: this.disabled
107
102
  }
@@ -113,7 +108,7 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, But
113
108
  return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
114
109
  },
115
110
  defaultAriaLabel: function defaultAriaLabel() {
116
- return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs['aria-label'];
111
+ return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
117
112
  },
118
113
  hasIcon: function hasIcon() {
119
114
  return this.icon || this.$slots.icon;
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,l,a,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),r=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:s.default},directives:{ripple:d.default}},u=["aria-label","disabled","data-pc-severity"];return c.render=function(e,t,n,l,a,i){var s=o.resolveComponent("SpinnerIcon"),r=o.resolveComponent("Badge"),d=o.resolveDirective("ripple");return o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({class:e.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[o.renderSlot(e.$slots,"default",{},(function(){return[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(s,o.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):o.renderSlot(e.$slots,"icon",{key:1,class:o.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):o.createCommentVNode("",!0)]})),o.createElementVNode("span",o.mergeProps({class:e.cx("label")},e.ptm("label")),o.toDisplayString(e.label||" "),17),e.badge?(o.openBlock(),o.createBlock(r,o.mergeProps({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):o.createCommentVNode("",!0)]}))],16,u)),[[d]])},c}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,primevue.button.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,l,a,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),r=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:s.default},directives:{ripple:d.default}},u=["aria-label","disabled","data-pc-severity"];return c.render=function(e,t,n,l,a,i){var s=o.resolveComponent("SpinnerIcon"),r=o.resolveComponent("Badge"),d=o.resolveDirective("ripple");return o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({class:e.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[o.renderSlot(e.$slots,"default",{},(function(){return[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(s,o.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):o.renderSlot(e.$slots,"icon",{key:1,class:o.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):o.createCommentVNode("",!0)]})),o.createElementVNode("span",o.mergeProps({class:e.cx("label")},e.ptm("label")),o.toDisplayString(e.label||" "),17),e.badge?(o.openBlock(),o.createBlock(r,o.mergeProps({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):o.createCommentVNode("",!0)]}))],16,u)),[[d]])},c}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,primevue.button.style,Vue);
@@ -8,8 +8,8 @@ var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
8
8
 
9
9
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
10
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
13
  var classes = {
14
14
  root: function root(_ref) {
15
15
  var instance = _ref.instance,
@@ -1 +1 @@
1
- "use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function e(t){var n=i(t,"string");return"symbol"===o(n)?n:String(n)}function i(t,n){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}var r=t(require("primevue/base/style")).default.extend({name:"button",classes:{root:function(t){var o=t.instance,e=t.props;return["p-button p-component",n(n(n(n(n(n(n(n({"p-button-icon-only":o.hasIcon&&!e.label&&!e.badge,"p-button-vertical":("top"===e.iconPos||"bottom"===e.iconPos)&&e.label,"p-disabled":o.$attrs.disabled||""===o.$attrs.disabled||e.loading,"p-button-loading":e.loading,"p-button-loading-label-only":e.loading&&!o.hasIcon&&e.label,"p-button-link":e.link},"p-button-".concat(e.severity),e.severity),"p-button-raised",e.raised),"p-button-rounded",e.rounded),"p-button-text",e.text),"p-button-outlined",e.outlined),"p-button-sm","small"===e.size),"p-button-lg","large"===e.size),"p-button-plain",e.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var o=t.props;return["p-button-icon",{"p-button-icon-left":"left"===o.iconPos&&o.label,"p-button-icon-right":"right"===o.iconPos&&o.label,"p-button-icon-top":"top"===o.iconPos&&o.label,"p-button-icon-bottom":"bottom"===o.iconPos&&o.label}]},label:"p-button-label"}});module.exports=r;
1
+ "use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,n,i){var r;return(n="symbol"==o(r=e(n,"string"))?r:String(r))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function e(t,n){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}var i=t(require("primevue/base/style")).default.extend({name:"button",classes:{root:function(t){var o=t.instance,e=t.props;return["p-button p-component",n(n(n(n(n(n(n(n({"p-button-icon-only":o.hasIcon&&!e.label&&!e.badge,"p-button-vertical":("top"===e.iconPos||"bottom"===e.iconPos)&&e.label,"p-disabled":o.$attrs.disabled||""===o.$attrs.disabled||e.loading,"p-button-loading":e.loading,"p-button-loading-label-only":e.loading&&!o.hasIcon&&e.label,"p-button-link":e.link},"p-button-".concat(e.severity),e.severity),"p-button-raised",e.raised),"p-button-rounded",e.rounded),"p-button-text",e.text),"p-button-outlined",e.outlined),"p-button-sm","small"===e.size),"p-button-lg","large"===e.size),"p-button-plain",e.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var o=t.props;return["p-button-icon",{"p-button-icon-left":"left"===o.iconPos&&o.label,"p-button-icon-right":"right"===o.iconPos&&o.label,"p-button-icon-top":"top"===o.iconPos&&o.label,"p-button-icon-bottom":"bottom"===o.iconPos&&o.label}]},label:"p-button-label"}});module.exports=i;
@@ -2,8 +2,8 @@ import BaseStyle from 'primevue/base/style';
2
2
 
3
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  var classes = {
8
8
  root: function root(_ref) {
9
9
  var instance = _ref.instance,
@@ -1 +1 @@
1
- import t from"primevue/base/style";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function e(t){var n=i(t,"string");return"symbol"===o(n)?n:String(n)}function i(t,n){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}var r=t.extend({name:"button",classes:{root:function(t){var o=t.instance,e=t.props;return["p-button p-component",n(n(n(n(n(n(n(n({"p-button-icon-only":o.hasIcon&&!e.label&&!e.badge,"p-button-vertical":("top"===e.iconPos||"bottom"===e.iconPos)&&e.label,"p-disabled":o.$attrs.disabled||""===o.$attrs.disabled||e.loading,"p-button-loading":e.loading,"p-button-loading-label-only":e.loading&&!o.hasIcon&&e.label,"p-button-link":e.link},"p-button-".concat(e.severity),e.severity),"p-button-raised",e.raised),"p-button-rounded",e.rounded),"p-button-text",e.text),"p-button-outlined",e.outlined),"p-button-sm","small"===e.size),"p-button-lg","large"===e.size),"p-button-plain",e.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var o=t.props;return["p-button-icon",{"p-button-icon-left":"left"===o.iconPos&&o.label,"p-button-icon-right":"right"===o.iconPos&&o.label,"p-button-icon-top":"top"===o.iconPos&&o.label,"p-button-icon-bottom":"bottom"===o.iconPos&&o.label}]},label:"p-button-label"}});export{r as default};
1
+ import t from"primevue/base/style";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,n,i){var r;return(n="symbol"==o(r=e(n,"string"))?r:String(r))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function e(t,n){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,n||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}var i=t.extend({name:"button",classes:{root:function(t){var o=t.instance,e=t.props;return["p-button p-component",n(n(n(n(n(n(n(n({"p-button-icon-only":o.hasIcon&&!e.label&&!e.badge,"p-button-vertical":("top"===e.iconPos||"bottom"===e.iconPos)&&e.label,"p-disabled":o.$attrs.disabled||""===o.$attrs.disabled||e.loading,"p-button-loading":e.loading,"p-button-loading-label-only":e.loading&&!o.hasIcon&&e.label,"p-button-link":e.link},"p-button-".concat(e.severity),e.severity),"p-button-raised",e.raised),"p-button-rounded",e.rounded),"p-button-text",e.text),"p-button-outlined",e.outlined),"p-button-sm","small"===e.size),"p-button-lg","large"===e.size),"p-button-plain",e.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var o=t.props;return["p-button-icon",{"p-button-icon-left":"left"===o.iconPos&&o.label,"p-button-icon-right":"right"===o.iconPos&&o.label,"p-button-icon-top":"top"===o.iconPos&&o.label,"p-button-icon-bottom":"bottom"===o.iconPos&&o.label}]},label:"p-button-label"}});export{i as default};
@@ -9,8 +9,8 @@ this.primevue.button.style = (function (BaseStyle) {
9
9
 
10
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
11
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14
14
  var classes = {
15
15
  root: function root(_ref) {
16
16
  var instance = _ref.instance,
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.button=this.primevue.button||{},this.primevue.button.style=function(t){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function e(t,o,n){return(o=i(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function i(t){var o=r(t,"string");return"symbol"===n(o)?o:String(o)}function r(t,o){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,o||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}return o(primevue.base.style).default.extend({name:"button",classes:{root:function(t){var o=t.instance,n=t.props;return["p-button p-component",e(e(e(e(e(e(e(e({"p-button-icon-only":o.hasIcon&&!n.label&&!n.badge,"p-button-vertical":("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,"p-disabled":o.$attrs.disabled||""===o.$attrs.disabled||n.loading,"p-button-loading":n.loading,"p-button-loading-label-only":n.loading&&!o.hasIcon&&n.label,"p-button-link":n.link},"p-button-".concat(n.severity),n.severity),"p-button-raised",n.raised),"p-button-rounded",n.rounded),"p-button-text",n.text),"p-button-outlined",n.outlined),"p-button-sm","small"===n.size),"p-button-lg","large"===n.size),"p-button-plain",n.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var o=t.props;return["p-button-icon",{"p-button-icon-left":"left"===o.iconPos&&o.label,"p-button-icon-right":"right"===o.iconPos&&o.label,"p-button-icon-top":"top"===o.iconPos&&o.label,"p-button-icon-bottom":"bottom"===o.iconPos&&o.label}]},label:"p-button-label"}})}();
1
+ this.primevue=this.primevue||{},this.primevue.button=this.primevue.button||{},this.primevue.button.style=function(t){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function e(t,o,e){var r;return(o="symbol"==n(r=i(o,"string"))?r:String(r))in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}function i(t,o){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,o||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)}return o(primevue.base.style).default.extend({name:"button",classes:{root:function(t){var o=t.instance,n=t.props;return["p-button p-component",e(e(e(e(e(e(e(e({"p-button-icon-only":o.hasIcon&&!n.label&&!n.badge,"p-button-vertical":("top"===n.iconPos||"bottom"===n.iconPos)&&n.label,"p-disabled":o.$attrs.disabled||""===o.$attrs.disabled||n.loading,"p-button-loading":n.loading,"p-button-loading-label-only":n.loading&&!o.hasIcon&&n.label,"p-button-link":n.link},"p-button-".concat(n.severity),n.severity),"p-button-raised",n.raised),"p-button-rounded",n.rounded),"p-button-text",n.text),"p-button-outlined",n.outlined),"p-button-sm","small"===n.size),"p-button-lg","large"===n.size),"p-button-plain",n.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var o=t.props;return["p-button-icon",{"p-button-icon-left":"left"===o.iconPos&&o.label,"p-button-icon-right":"right"===o.iconPos&&o.label,"p-button-icon-top":"top"===o.iconPos&&o.label,"p-button-icon-bottom":"bottom"===o.iconPos&&o.label}]},label:"p-button-label"}})}();
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ButtonPassThroughOptionType } from '../button';
12
+ import { ButtonPassThroughOptions } from '../button';
13
13
  import { PassThroughOptions } from '../passthrough';
14
14
  import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
15
15
 
@@ -37,12 +37,34 @@ export interface CalendarPassThroughMethodOptions {
37
37
  * Defines current options.
38
38
  */
39
39
  context: CalendarContext;
40
+ /**
41
+ * Defines valid attributes.
42
+ */
43
+ attrs: any;
44
+ /**
45
+ * Defines parent options.
46
+ */
47
+ parent: any;
40
48
  /**
41
49
  * Defines passthrough(pt) options in global config.
42
50
  */
43
51
  global: object | undefined;
44
52
  }
45
53
 
54
+ /**
55
+ * Custom shared passthrough(pt) option method.
56
+ */
57
+ export interface CalendarSharedPassThroughMethodOptions {
58
+ /**
59
+ * Defines valid properties.
60
+ */
61
+ props: CalendarProps;
62
+ /**
63
+ * Defines current inline state.
64
+ */
65
+ state: CalendarState;
66
+ }
67
+
46
68
  /**
47
69
  * Custom Calendar responsive options metadata.
48
70
  */
@@ -117,9 +139,9 @@ export interface CalendarPassThroughOptions {
117
139
  input?: CalendarPassThroughOptionType;
118
140
  /**
119
141
  * Used to pass attributes to the Button component.
120
- * @see {@link ButtonPassThroughOptionType}
142
+ * @see {@link ButtonPassThroughOptions}
121
143
  */
122
- dropdownButton?: ButtonPassThroughOptionType;
144
+ dropdownButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
123
145
  /**
124
146
  * Used to pass attributes to the panel's DOM element.
125
147
  */
@@ -138,9 +160,9 @@ export interface CalendarPassThroughOptions {
138
160
  header?: CalendarPassThroughOptionType;
139
161
  /**
140
162
  * Used to pass attributes to the Button component.
141
- * @see {@link ButtonPassThroughOptionType}
163
+ * @see {@link ButtonPassThroughOptions}
142
164
  */
143
- previousButton?: ButtonPassThroughOptionType;
165
+ previousButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
144
166
  /**
145
167
  * Used to pass attributes to the title's DOM element.
146
168
  */
@@ -159,9 +181,9 @@ export interface CalendarPassThroughOptions {
159
181
  decadeTitle?: CalendarPassThroughOptionType;
160
182
  /**
161
183
  * Used to pass attributes to the Button component.
162
- * @see {@link ButtonPassThroughOptionType}
184
+ * @see {@link ButtonPassThroughOptions}
163
185
  */
164
- nextButton?: ButtonPassThroughOptionType;
186
+ nextButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
165
187
  /**
166
188
  * Used to pass attributes to the container's DOM element.
167
189
  */
@@ -288,14 +310,14 @@ export interface CalendarPassThroughOptions {
288
310
  buttonbar?: CalendarPassThroughOptionType;
289
311
  /**
290
312
  * Used to pass attributes to the Button component.
291
- * @see {@link ButtonPassThroughOptionType}
313
+ * @see {@link ButtonPassThroughOptions}
292
314
  */
293
- todayButton?: ButtonPassThroughOptionType;
315
+ todayButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
294
316
  /**
295
317
  * Used to pass attributes to the Button component.
296
- * @see {@link ButtonPassThroughOptionType}
318
+ * @see {@link ButtonPassThroughOptions}
297
319
  */
298
- clearButton?: ButtonPassThroughOptionType;
320
+ clearButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
299
321
  /**
300
322
  * Used to pass attributes to the aria selected day's DOM element.
301
323
  */
@@ -308,6 +330,10 @@ export interface CalendarPassThroughOptions {
308
330
  * Used to pass attributes to the aria year's DOM element.
309
331
  */
310
332
  hiddenYear?: CalendarPassThroughOptionType;
333
+ /**
334
+ * Used to pass attributes to the datepicker mask's DOM element.
335
+ */
336
+ datepickerMask?: CalendarPassThroughOptionType;
311
337
  /**
312
338
  * Used to manage all lifecycle hooks.
313
339
  * @see {@link BaseComponent.ComponentHooks}
@@ -1687,10 +1687,14 @@ export default {
1687
1687
  },
1688
1688
  enableModality() {
1689
1689
  if (!this.mask) {
1690
- this.mask = document.createElement('div');
1690
+ let styleClass = 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter';
1691
+
1692
+ this.mask = DomHandler.createElement('div', {
1693
+ 'data-pc-section': 'datepickermask',
1694
+ class: !this.isUnstyled && styleClass,
1695
+ 'p-bind': this.ptm('datepickermask')
1696
+ });
1691
1697
  this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
1692
- this.mask.setAttribute('data-pc-section', 'datepicker-mask');
1693
- !this.isUnstyled && DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
1694
1698
 
1695
1699
  this.maskClickListener = () => {
1696
1700
  this.overlayVisible = false;
@@ -1726,7 +1730,7 @@ export default {
1726
1730
  for (let i = 0; i < bodyChildren.length; i++) {
1727
1731
  let bodyChild = bodyChildren[i];
1728
1732
 
1729
- if (DomHandler.isAttributeEquals(bodyChild, 'data-pc-section', 'datepicker-mask')) {
1733
+ if (DomHandler.isAttributeEquals(bodyChild, 'data-pc-section', 'datepickermask')) {
1730
1734
  hasBlockerMasks = true;
1731
1735
  break;
1732
1736
  }
@@ -1799,7 +1803,7 @@ export default {
1799
1803
  let parts = text.split(' ');
1800
1804
 
1801
1805
  if (this.timeOnly) {
1802
- date = new Date();
1806
+ date = new Date(this.modelValue);
1803
1807
  this.populateTime(date, parts[0], parts[1]);
1804
1808
  } else {
1805
1809
  const dateFormat = this.datePattern;
@@ -1367,10 +1367,13 @@ var script = {
1367
1367
  enableModality: function enableModality() {
1368
1368
  var _this11 = this;
1369
1369
  if (!this.mask) {
1370
- this.mask = document.createElement('div');
1370
+ var styleClass = 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter';
1371
+ this.mask = utils.DomHandler.createElement('div', {
1372
+ 'data-pc-section': 'datepickermask',
1373
+ "class": !this.isUnstyled && styleClass,
1374
+ 'p-bind': this.ptm('datepickermask')
1375
+ });
1371
1376
  this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
1372
- this.mask.setAttribute('data-pc-section', 'datepicker-mask');
1373
- !this.isUnstyled && utils.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
1374
1377
  this.maskClickListener = function () {
1375
1378
  _this11.overlayVisible = false;
1376
1379
  };
@@ -1401,7 +1404,7 @@ var script = {
1401
1404
  var hasBlockerMasks;
1402
1405
  for (var i = 0; i < bodyChildren.length; i++) {
1403
1406
  var bodyChild = bodyChildren[i];
1404
- if (utils.DomHandler.isAttributeEquals(bodyChild, 'data-pc-section', 'datepicker-mask')) {
1407
+ if (utils.DomHandler.isAttributeEquals(bodyChild, 'data-pc-section', 'datepickermask')) {
1405
1408
  hasBlockerMasks = true;
1406
1409
  break;
1407
1410
  }
@@ -1472,7 +1475,7 @@ var script = {
1472
1475
  var date;
1473
1476
  var parts = text.split(' ');
1474
1477
  if (this.timeOnly) {
1475
- date = new Date();
1478
+ date = new Date(this.modelValue);
1476
1479
  this.populateTime(date, parts[0], parts[1]);
1477
1480
  } else {
1478
1481
  var dateFormat = this.datePattern;
@@ -1670,7 +1673,6 @@ var script = {
1670
1673
  if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
1671
1674
  throw 'Invalid date'; // E.g. 31/02/00
1672
1675
  }
1673
-
1674
1676
  return date;
1675
1677
  },
1676
1678
  getWeekNumber: function getWeekNumber(date) {
@@ -2558,8 +2560,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2558
2560
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2559
2561
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2560
2562
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2561
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2562
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2563
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2564
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2563
2565
  var _hoisted_1 = ["id"];
2564
2566
  var _hoisted_2 = ["id", "placeholder", "aria-expanded", "aria-controls", "aria-labelledby", "aria-label", "disabled", "readonly"];
2565
2567
  var _hoisted_3 = ["id", "role", "aria-modal", "aria-label"];