primevue 3.34.0 → 3.35.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 (664) hide show
  1. package/README.md +1 -0
  2. package/accordion/BaseAccordion.vue +17 -15
  3. package/accordion/accordion.cjs.js +1 -1
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +1 -1
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +1 -1
  8. package/accordion/accordion.min.js +1 -1
  9. package/autocomplete/AutoComplete.vue +1 -1
  10. package/autocomplete/BaseAutoComplete.vue +81 -79
  11. package/autocomplete/autocomplete.cjs.js +4 -2
  12. package/autocomplete/autocomplete.cjs.min.js +1 -1
  13. package/autocomplete/autocomplete.esm.js +4 -2
  14. package/autocomplete/autocomplete.esm.min.js +1 -1
  15. package/autocomplete/autocomplete.js +4 -2
  16. package/autocomplete/autocomplete.min.js +1 -1
  17. package/avatar/BaseAvatar.vue +30 -28
  18. package/avatar/avatar.cjs.js +1 -1
  19. package/avatar/avatar.cjs.min.js +1 -1
  20. package/avatar/avatar.esm.js +1 -1
  21. package/avatar/avatar.esm.min.js +1 -1
  22. package/avatar/avatar.js +1 -1
  23. package/avatar/avatar.min.js +1 -1
  24. package/avatargroup/BaseAvatarGroup.vue +9 -7
  25. package/avatargroup/avatargroup.cjs.js +1 -1
  26. package/avatargroup/avatargroup.cjs.min.js +1 -1
  27. package/avatargroup/avatargroup.esm.js +1 -1
  28. package/avatargroup/avatargroup.esm.min.js +1 -1
  29. package/avatargroup/avatargroup.js +1 -1
  30. package/avatargroup/avatargroup.min.js +1 -1
  31. package/badge/BaseBadge.vue +33 -31
  32. package/badge/badge.cjs.js +1 -1
  33. package/badge/badge.cjs.min.js +1 -1
  34. package/badge/badge.esm.js +1 -1
  35. package/badge/badge.esm.min.js +1 -1
  36. package/badge/badge.js +1 -1
  37. package/badge/badge.min.js +1 -1
  38. package/badgedirective/badgedirective.cjs.js +1 -1
  39. package/badgedirective/badgedirective.cjs.min.js +1 -1
  40. package/badgedirective/badgedirective.esm.js +1 -1
  41. package/badgedirective/badgedirective.esm.min.js +1 -1
  42. package/badgedirective/badgedirective.js +1 -1
  43. package/badgedirective/badgedirective.min.js +1 -1
  44. package/base/base.cjs.js +1 -1
  45. package/base/base.cjs.min.js +1 -1
  46. package/base/base.esm.js +1 -1
  47. package/base/base.esm.min.js +1 -1
  48. package/base/base.js +1 -1
  49. package/base/base.min.js +1 -1
  50. package/basecomponent/BaseComponent.vue +11 -8
  51. package/basecomponent/basecomponent.cjs.js +18 -13
  52. package/basecomponent/basecomponent.cjs.min.js +1 -1
  53. package/basecomponent/basecomponent.esm.js +18 -13
  54. package/basecomponent/basecomponent.esm.min.js +1 -1
  55. package/basecomponent/basecomponent.js +18 -13
  56. package/basecomponent/basecomponent.min.js +1 -1
  57. package/basedirective/basedirective.cjs.js +7 -6
  58. package/basedirective/basedirective.cjs.min.js +1 -1
  59. package/basedirective/basedirective.esm.js +7 -6
  60. package/basedirective/basedirective.esm.min.js +1 -1
  61. package/basedirective/basedirective.js +7 -6
  62. package/basedirective/basedirective.min.js +1 -1
  63. package/blockui/BaseBlockUI.vue +12 -10
  64. package/blockui/BlockUI.vue +2 -0
  65. package/blockui/blockui.cjs.js +3 -1
  66. package/blockui/blockui.cjs.min.js +1 -1
  67. package/blockui/blockui.esm.js +3 -1
  68. package/blockui/blockui.esm.min.js +1 -1
  69. package/blockui/blockui.js +3 -1
  70. package/blockui/blockui.min.js +1 -1
  71. package/breadcrumb/BaseBreadcrumb.vue +32 -30
  72. package/breadcrumb/Breadcrumb.vue +1 -1
  73. package/breadcrumb/breadcrumb.cjs.js +2 -2
  74. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  75. package/breadcrumb/breadcrumb.esm.js +2 -2
  76. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  77. package/breadcrumb/breadcrumb.js +2 -2
  78. package/breadcrumb/breadcrumb.min.js +1 -1
  79. package/calendar/BaseCalendar.vue +149 -146
  80. package/calendar/Calendar.d.ts +11 -5
  81. package/calendar/Calendar.vue +85 -47
  82. package/calendar/calendar.cjs.js +162 -118
  83. package/calendar/calendar.cjs.min.js +1 -1
  84. package/calendar/calendar.esm.js +162 -118
  85. package/calendar/calendar.esm.min.js +1 -1
  86. package/calendar/calendar.js +162 -118
  87. package/calendar/calendar.min.js +1 -1
  88. package/carousel/BaseCarousel.vue +70 -68
  89. package/carousel/carousel.cjs.js +1 -1
  90. package/carousel/carousel.cjs.min.js +1 -1
  91. package/carousel/carousel.esm.js +1 -1
  92. package/carousel/carousel.esm.min.js +1 -1
  93. package/carousel/carousel.js +1 -1
  94. package/carousel/carousel.min.js +1 -1
  95. package/cascadeselect/BaseCascadeSelect.vue +81 -79
  96. package/cascadeselect/cascadeselect.cjs.js +1 -1
  97. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  98. package/cascadeselect/cascadeselect.esm.js +1 -1
  99. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  100. package/cascadeselect/cascadeselect.js +1 -1
  101. package/cascadeselect/cascadeselect.min.js +1 -1
  102. package/chart/BaseChart.vue +4 -2
  103. package/chart/chart.cjs.js +1 -1
  104. package/chart/chart.cjs.min.js +1 -1
  105. package/chart/chart.esm.js +1 -1
  106. package/chart/chart.esm.min.js +1 -1
  107. package/chart/chart.js +1 -1
  108. package/chart/chart.min.js +1 -1
  109. package/chip/BaseChip.vue +22 -20
  110. package/chip/chip.cjs.js +1 -1
  111. package/chip/chip.cjs.min.js +1 -1
  112. package/chip/chip.esm.js +1 -1
  113. package/chip/chip.esm.min.js +1 -1
  114. package/chip/chip.js +1 -1
  115. package/chip/chip.min.js +1 -1
  116. package/chips/BaseChips.vue +46 -44
  117. package/chips/chips.cjs.js +1 -1
  118. package/chips/chips.cjs.min.js +1 -1
  119. package/chips/chips.esm.js +1 -1
  120. package/chips/chips.esm.min.js +1 -1
  121. package/chips/chips.js +1 -1
  122. package/chips/chips.min.js +1 -1
  123. package/colorpicker/BaseColorPicker.vue +8 -6
  124. package/colorpicker/colorpicker.cjs.js +1 -1
  125. package/colorpicker/colorpicker.cjs.min.js +1 -1
  126. package/colorpicker/colorpicker.esm.js +1 -1
  127. package/colorpicker/colorpicker.esm.min.js +1 -1
  128. package/colorpicker/colorpicker.js +1 -1
  129. package/colorpicker/colorpicker.min.js +1 -1
  130. package/column/Column.d.ts +8 -0
  131. package/config/PrimeVue.d.ts +3 -0
  132. package/config/config.cjs.js +5 -0
  133. package/config/config.cjs.min.js +1 -1
  134. package/config/config.esm.js +5 -0
  135. package/config/config.esm.min.js +1 -1
  136. package/config/config.js +5 -0
  137. package/config/config.min.js +1 -1
  138. package/confirmdialog/BaseConfirmDialog.vue +2 -2
  139. package/confirmdialog/ConfirmDialog.d.ts +22 -0
  140. package/confirmdialog/ConfirmDialog.vue +15 -10
  141. package/confirmdialog/confirmdialog.cjs.js +42 -29
  142. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  143. package/confirmdialog/confirmdialog.esm.js +43 -30
  144. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  145. package/confirmdialog/confirmdialog.js +42 -29
  146. package/confirmdialog/confirmdialog.min.js +1 -1
  147. package/confirmpopup/BaseConfirmPopup.vue +72 -70
  148. package/confirmpopup/ConfirmPopup.d.ts +18 -0
  149. package/confirmpopup/ConfirmPopup.vue +45 -24
  150. package/confirmpopup/confirmpopup.cjs.js +14 -10
  151. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  152. package/confirmpopup/confirmpopup.esm.js +15 -11
  153. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  154. package/confirmpopup/confirmpopup.js +14 -10
  155. package/confirmpopup/confirmpopup.min.js +1 -1
  156. package/contextmenu/BaseContextMenu.vue +41 -39
  157. package/contextmenu/contextmenu.cjs.js +1 -1
  158. package/contextmenu/contextmenu.cjs.min.js +1 -1
  159. package/contextmenu/contextmenu.esm.js +1 -1
  160. package/contextmenu/contextmenu.esm.min.js +1 -1
  161. package/contextmenu/contextmenu.js +1 -1
  162. package/contextmenu/contextmenu.min.js +1 -1
  163. package/core/core.js +138 -76
  164. package/core/core.min.js +18 -18
  165. package/datatable/BaseDataTable.vue +235 -233
  166. package/datatable/BodyCell.vue +1 -1
  167. package/datatable/ColumnFilter.vue +1 -1
  168. package/datatable/DataTable.d.ts +48 -4
  169. package/datatable/DataTable.vue +32 -19
  170. package/datatable/TableBody.vue +1 -1
  171. package/datatable/datatable.cjs.js +74 -24
  172. package/datatable/datatable.cjs.min.js +1 -1
  173. package/datatable/datatable.esm.js +74 -24
  174. package/datatable/datatable.esm.min.js +1 -1
  175. package/datatable/datatable.js +74 -24
  176. package/datatable/datatable.min.js +1 -1
  177. package/dialog/BaseDialog.vue +136 -130
  178. package/dialog/Dialog.d.ts +20 -0
  179. package/dialog/Dialog.vue +54 -50
  180. package/dialog/dialog.cjs.js +24 -9
  181. package/dialog/dialog.cjs.min.js +1 -1
  182. package/dialog/dialog.esm.js +25 -10
  183. package/dialog/dialog.esm.min.js +1 -1
  184. package/dialog/dialog.js +24 -9
  185. package/dialog/dialog.min.js +1 -1
  186. package/divider/BaseDivider.vue +61 -59
  187. package/divider/divider.cjs.js +1 -1
  188. package/divider/divider.cjs.min.js +1 -1
  189. package/divider/divider.esm.js +1 -1
  190. package/divider/divider.esm.min.js +1 -1
  191. package/divider/divider.js +1 -1
  192. package/divider/divider.min.js +1 -1
  193. package/dock/BaseDock.vue +106 -104
  194. package/dock/dock.cjs.js +1 -1
  195. package/dock/dock.cjs.min.js +1 -1
  196. package/dock/dock.esm.js +1 -1
  197. package/dock/dock.esm.min.js +1 -1
  198. package/dock/dock.js +1 -1
  199. package/dock/dock.min.js +1 -1
  200. package/dropdown/BaseDropdown.vue +93 -91
  201. package/dropdown/dropdown.cjs.js +1 -1
  202. package/dropdown/dropdown.cjs.min.js +1 -1
  203. package/dropdown/dropdown.esm.js +1 -1
  204. package/dropdown/dropdown.esm.min.js +1 -1
  205. package/dropdown/dropdown.js +1 -1
  206. package/dropdown/dropdown.min.js +1 -1
  207. package/fieldset/BaseFieldset.vue +19 -17
  208. package/fieldset/fieldset.cjs.js +1 -1
  209. package/fieldset/fieldset.cjs.min.js +1 -1
  210. package/fieldset/fieldset.esm.js +1 -1
  211. package/fieldset/fieldset.esm.min.js +1 -1
  212. package/fieldset/fieldset.js +1 -1
  213. package/fieldset/fieldset.min.js +1 -1
  214. package/fileupload/BaseFileUpload.vue +44 -42
  215. package/fileupload/fileupload.cjs.js +1 -1
  216. package/fileupload/fileupload.cjs.min.js +1 -1
  217. package/fileupload/fileupload.esm.js +1 -1
  218. package/fileupload/fileupload.esm.min.js +1 -1
  219. package/fileupload/fileupload.js +1 -1
  220. package/fileupload/fileupload.min.js +1 -1
  221. package/galleria/BaseGalleria.vue +283 -281
  222. package/galleria/Galleria.vue +3 -0
  223. package/galleria/galleria.cjs.js +4 -1
  224. package/galleria/galleria.cjs.min.js +1 -1
  225. package/galleria/galleria.esm.js +4 -1
  226. package/galleria/galleria.esm.min.js +1 -1
  227. package/galleria/galleria.js +4 -1
  228. package/galleria/galleria.min.js +1 -1
  229. package/image/BaseImage.vue +64 -62
  230. package/image/Image.vue +4 -0
  231. package/image/image.cjs.js +5 -1
  232. package/image/image.cjs.min.js +1 -1
  233. package/image/image.esm.js +5 -1
  234. package/image/image.esm.min.js +1 -1
  235. package/image/image.js +5 -1
  236. package/image/image.min.js +1 -1
  237. package/inlinemessage/BaseInlineMessage.vue +16 -14
  238. package/inlinemessage/inlinemessage.cjs.js +1 -1
  239. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  240. package/inlinemessage/inlinemessage.esm.js +1 -1
  241. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  242. package/inlinemessage/inlinemessage.js +1 -1
  243. package/inlinemessage/inlinemessage.min.js +1 -1
  244. package/inplace/BaseInplace.vue +18 -16
  245. package/inplace/Inplace.vue +1 -1
  246. package/inplace/inplace.cjs.js +4 -2
  247. package/inplace/inplace.cjs.min.js +1 -1
  248. package/inplace/inplace.esm.js +4 -2
  249. package/inplace/inplace.esm.min.js +1 -1
  250. package/inplace/inplace.js +4 -2
  251. package/inplace/inplace.min.js +1 -1
  252. package/inputnumber/BaseInputNumber.vue +101 -99
  253. package/inputnumber/InputNumber.vue +4 -4
  254. package/inputnumber/inputnumber.cjs.js +13 -5
  255. package/inputnumber/inputnumber.cjs.min.js +1 -1
  256. package/inputnumber/inputnumber.esm.js +13 -5
  257. package/inputnumber/inputnumber.esm.min.js +1 -1
  258. package/inputnumber/inputnumber.js +13 -5
  259. package/inputnumber/inputnumber.min.js +1 -1
  260. package/inputswitch/BaseInputSwitch.vue +20 -18
  261. package/inputswitch/inputswitch.cjs.js +1 -1
  262. package/inputswitch/inputswitch.cjs.min.js +1 -1
  263. package/inputswitch/inputswitch.esm.js +1 -1
  264. package/inputswitch/inputswitch.esm.min.js +1 -1
  265. package/inputswitch/inputswitch.js +1 -1
  266. package/inputswitch/inputswitch.min.js +1 -1
  267. package/knob/BaseKnob.vue +14 -12
  268. package/knob/knob.cjs.js +1 -1
  269. package/knob/knob.cjs.min.js +1 -1
  270. package/knob/knob.esm.js +1 -1
  271. package/knob/knob.esm.min.js +1 -1
  272. package/knob/knob.js +1 -1
  273. package/knob/knob.min.js +1 -1
  274. package/listbox/BaseListbox.vue +34 -32
  275. package/listbox/listbox.cjs.js +1 -1
  276. package/listbox/listbox.cjs.min.js +1 -1
  277. package/listbox/listbox.esm.js +1 -1
  278. package/listbox/listbox.esm.min.js +1 -1
  279. package/listbox/listbox.js +1 -1
  280. package/listbox/listbox.min.js +1 -1
  281. package/megamenu/BaseMegaMenu.vue +111 -109
  282. package/megamenu/megamenu.cjs.js +1 -1
  283. package/megamenu/megamenu.cjs.min.js +1 -1
  284. package/megamenu/megamenu.esm.js +1 -1
  285. package/megamenu/megamenu.esm.min.js +1 -1
  286. package/megamenu/megamenu.js +1 -1
  287. package/megamenu/megamenu.min.js +1 -1
  288. package/menu/BaseMenu.vue +19 -17
  289. package/menu/menu.cjs.js +1 -1
  290. package/menu/menu.cjs.min.js +1 -1
  291. package/menu/menu.esm.js +1 -1
  292. package/menu/menu.esm.min.js +1 -1
  293. package/menu/menu.js +1 -1
  294. package/menu/menu.min.js +1 -1
  295. package/menubar/BaseMenubar.vue +72 -70
  296. package/menubar/Menubar.vue +2 -2
  297. package/menubar/menubar.cjs.js +3 -3
  298. package/menubar/menubar.cjs.min.js +1 -1
  299. package/menubar/menubar.esm.js +3 -3
  300. package/menubar/menubar.esm.min.js +1 -1
  301. package/menubar/menubar.js +3 -3
  302. package/menubar/menubar.min.js +1 -1
  303. package/message/BaseMessage.vue +49 -47
  304. package/message/Message.d.ts +10 -0
  305. package/message/Message.vue +2 -1
  306. package/message/message.cjs.js +7 -3
  307. package/message/message.cjs.min.js +1 -1
  308. package/message/message.esm.js +8 -4
  309. package/message/message.esm.min.js +1 -1
  310. package/message/message.js +7 -3
  311. package/message/message.min.js +1 -1
  312. package/multiselect/BaseMultiSelect.vue +106 -104
  313. package/multiselect/multiselect.cjs.js +1 -1
  314. package/multiselect/multiselect.cjs.min.js +1 -1
  315. package/multiselect/multiselect.esm.js +1 -1
  316. package/multiselect/multiselect.esm.min.js +1 -1
  317. package/multiselect/multiselect.js +1 -1
  318. package/multiselect/multiselect.min.js +1 -1
  319. package/orderlist/BaseOrderList.vue +38 -36
  320. package/orderlist/OrderList.vue +4 -4
  321. package/orderlist/orderlist.cjs.js +13 -5
  322. package/orderlist/orderlist.cjs.min.js +1 -1
  323. package/orderlist/orderlist.esm.js +14 -6
  324. package/orderlist/orderlist.esm.min.js +1 -1
  325. package/orderlist/orderlist.js +13 -5
  326. package/orderlist/orderlist.min.js +1 -1
  327. package/organizationchart/BaseOrganizationChart.vue +53 -51
  328. package/organizationchart/organizationchart.cjs.js +1 -1
  329. package/organizationchart/organizationchart.cjs.min.js +1 -1
  330. package/organizationchart/organizationchart.esm.js +1 -1
  331. package/organizationchart/organizationchart.esm.min.js +1 -1
  332. package/organizationchart/organizationchart.js +1 -1
  333. package/organizationchart/organizationchart.min.js +1 -1
  334. package/overlaypanel/BaseOverlayPanel.vue +70 -68
  335. package/overlaypanel/OverlayPanel.d.ts +15 -0
  336. package/overlaypanel/OverlayPanel.vue +11 -8
  337. package/overlaypanel/overlaypanel.cjs.js +11 -3
  338. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  339. package/overlaypanel/overlaypanel.esm.js +12 -4
  340. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  341. package/overlaypanel/overlaypanel.js +11 -3
  342. package/overlaypanel/overlaypanel.min.js +1 -1
  343. package/package.json +1 -1
  344. package/paginator/BasePaginator.vue +40 -38
  345. package/paginator/JumpToPageDropdown.vue +7 -2
  346. package/paginator/Paginator.d.ts +20 -0
  347. package/paginator/Paginator.vue +7 -4
  348. package/paginator/RowsPerPageDropdown.vue +7 -2
  349. package/paginator/paginator.cjs.js +41 -12
  350. package/paginator/paginator.cjs.min.js +1 -1
  351. package/paginator/paginator.esm.js +42 -13
  352. package/paginator/paginator.esm.min.js +1 -1
  353. package/paginator/paginator.js +41 -12
  354. package/paginator/paginator.min.js +1 -1
  355. package/panel/BasePanel.vue +20 -18
  356. package/panel/panel.cjs.js +1 -1
  357. package/panel/panel.cjs.min.js +1 -1
  358. package/panel/panel.esm.js +1 -1
  359. package/panel/panel.esm.min.js +1 -1
  360. package/panel/panel.js +1 -1
  361. package/panel/panel.min.js +1 -1
  362. package/panelmenu/BasePanelMenu.vue +33 -31
  363. package/panelmenu/panelmenu.cjs.js +1 -1
  364. package/panelmenu/panelmenu.cjs.min.js +1 -1
  365. package/panelmenu/panelmenu.esm.js +1 -1
  366. package/panelmenu/panelmenu.esm.min.js +1 -1
  367. package/panelmenu/panelmenu.js +1 -1
  368. package/panelmenu/panelmenu.min.js +1 -1
  369. package/passthrough/index.cjs.js +2 -9
  370. package/passthrough/index.cjs.min.js +1 -1
  371. package/passthrough/index.esm.js +2 -9
  372. package/passthrough/index.esm.min.js +1 -1
  373. package/passthrough/index.js +2 -9
  374. package/passthrough/index.min.js +1 -1
  375. package/passthrough/tailwind/index.cjs.js +5 -5
  376. package/passthrough/tailwind/index.cjs.min.js +1 -1
  377. package/passthrough/tailwind/index.esm.js +5 -5
  378. package/passthrough/tailwind/index.esm.min.js +1 -1
  379. package/passthrough/tailwind/index.js +5 -5
  380. package/passthrough/tailwind/index.min.js +1 -1
  381. package/password/BasePassword.vue +27 -25
  382. package/password/password.cjs.js +1 -1
  383. package/password/password.cjs.min.js +1 -1
  384. package/password/password.esm.js +1 -1
  385. package/password/password.esm.min.js +1 -1
  386. package/password/password.js +1 -1
  387. package/password/password.min.js +1 -1
  388. package/picklist/BasePickList.vue +34 -32
  389. package/picklist/PickList.vue +12 -12
  390. package/picklist/picklist.cjs.js +37 -13
  391. package/picklist/picklist.cjs.min.js +1 -1
  392. package/picklist/picklist.esm.js +38 -14
  393. package/picklist/picklist.esm.min.js +1 -1
  394. package/picklist/picklist.js +37 -13
  395. package/picklist/picklist.min.js +1 -1
  396. package/progressbar/BaseProgressBar.vue +99 -97
  397. package/progressbar/progressbar.cjs.js +1 -1
  398. package/progressbar/progressbar.cjs.min.js +1 -1
  399. package/progressbar/progressbar.esm.js +1 -1
  400. package/progressbar/progressbar.esm.min.js +1 -1
  401. package/progressbar/progressbar.js +1 -1
  402. package/progressbar/progressbar.min.js +1 -1
  403. package/progressspinner/BaseProgressSpinner.vue +26 -24
  404. package/progressspinner/progressspinner.cjs.js +1 -1
  405. package/progressspinner/progressspinner.cjs.min.js +1 -1
  406. package/progressspinner/progressspinner.esm.js +1 -1
  407. package/progressspinner/progressspinner.esm.min.js +1 -1
  408. package/progressspinner/progressspinner.js +1 -1
  409. package/progressspinner/progressspinner.min.js +1 -1
  410. package/rating/BaseRating.vue +19 -17
  411. package/rating/Rating.vue +4 -1
  412. package/rating/rating.cjs.js +7 -5
  413. package/rating/rating.cjs.min.js +1 -1
  414. package/rating/rating.esm.js +7 -5
  415. package/rating/rating.esm.min.js +1 -1
  416. package/rating/rating.js +7 -5
  417. package/rating/rating.min.js +1 -1
  418. package/resources/themes/arya-blue/theme.css +5601 -5585
  419. package/resources/themes/arya-green/theme.css +5601 -5585
  420. package/resources/themes/arya-orange/theme.css +5601 -5585
  421. package/resources/themes/arya-purple/theme.css +5601 -5585
  422. package/resources/themes/bootstrap4-dark-blue/theme.css +5538 -5523
  423. package/resources/themes/bootstrap4-dark-purple/theme.css +5538 -5523
  424. package/resources/themes/bootstrap4-light-blue/theme.css +5607 -5592
  425. package/resources/themes/bootstrap4-light-purple/theme.css +5607 -5592
  426. package/resources/themes/fluent-light/theme.css +5734 -5718
  427. package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  428. package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  429. package/resources/themes/lara-dark-blue/theme.css +5590 -5556
  430. package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  431. package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  432. package/resources/themes/lara-dark-indigo/theme.css +5590 -5556
  433. package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  434. package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  435. package/resources/themes/lara-dark-purple/theme.css +5590 -5556
  436. package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  437. package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  438. package/resources/themes/lara-dark-teal/theme.css +5590 -5556
  439. package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  440. package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  441. package/resources/themes/lara-light-blue/theme.css +5604 -5570
  442. package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  443. package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  444. package/resources/themes/lara-light-indigo/theme.css +5604 -5570
  445. package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  446. package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  447. package/resources/themes/lara-light-purple/theme.css +5604 -5570
  448. package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  449. package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  450. package/resources/themes/lara-light-teal/theme.css +5604 -5570
  451. package/resources/themes/luna-amber/theme.css +5553 -5539
  452. package/resources/themes/luna-blue/theme.css +5553 -5539
  453. package/resources/themes/luna-green/theme.css +5553 -5539
  454. package/resources/themes/luna-pink/theme.css +5553 -5539
  455. package/resources/themes/md-dark-deeppurple/theme.css +7052 -7037
  456. package/resources/themes/md-dark-indigo/theme.css +7052 -7037
  457. package/resources/themes/md-light-deeppurple/theme.css +7073 -7058
  458. package/resources/themes/md-light-indigo/theme.css +7073 -7058
  459. package/resources/themes/mdc-dark-deeppurple/theme.css +7067 -7052
  460. package/resources/themes/mdc-dark-indigo/theme.css +7067 -7052
  461. package/resources/themes/mdc-light-deeppurple/theme.css +7074 -7059
  462. package/resources/themes/mdc-light-indigo/theme.css +7074 -7059
  463. package/resources/themes/mira/theme.css +5773 -5757
  464. package/resources/themes/nano/theme.css +5574 -5559
  465. package/resources/themes/nova/theme.css +5563 -5548
  466. package/resources/themes/nova-accent/theme.css +5539 -5524
  467. package/resources/themes/nova-alt/theme.css +5550 -5535
  468. package/resources/themes/nova-vue/theme.css +5563 -5548
  469. package/resources/themes/rhea/theme.css +5530 -5515
  470. package/resources/themes/saga-blue/theme.css +5590 -5574
  471. package/resources/themes/saga-green/theme.css +5590 -5574
  472. package/resources/themes/saga-orange/theme.css +5590 -5574
  473. package/resources/themes/saga-purple/theme.css +5590 -5574
  474. package/resources/themes/soho-dark/theme.css +5542 -5526
  475. package/resources/themes/soho-light/theme.css +5602 -5586
  476. package/resources/themes/tailwind-light/theme.css +5653 -5637
  477. package/resources/themes/vela-blue/theme.css +5590 -5574
  478. package/resources/themes/vela-green/theme.css +5590 -5574
  479. package/resources/themes/vela-orange/theme.css +5590 -5574
  480. package/resources/themes/vela-purple/theme.css +5590 -5574
  481. package/resources/themes/viva-dark/theme.css +5709 -5693
  482. package/resources/themes/viva-light/theme.css +5692 -5676
  483. package/ripple/ripple.cjs.js +1 -1
  484. package/ripple/ripple.cjs.min.js +1 -1
  485. package/ripple/ripple.esm.js +1 -1
  486. package/ripple/ripple.esm.min.js +1 -1
  487. package/ripple/ripple.js +1 -1
  488. package/ripple/ripple.min.js +1 -1
  489. package/scrollpanel/BaseScrollPanel.vue +56 -54
  490. package/scrollpanel/scrollpanel.cjs.js +1 -1
  491. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  492. package/scrollpanel/scrollpanel.esm.js +1 -1
  493. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  494. package/scrollpanel/scrollpanel.js +1 -1
  495. package/scrollpanel/scrollpanel.min.js +1 -1
  496. package/scrolltop/BaseScrollTop.vue +33 -31
  497. package/scrolltop/scrolltop.cjs.js +1 -1
  498. package/scrolltop/scrolltop.cjs.min.js +1 -1
  499. package/scrolltop/scrolltop.esm.js +1 -1
  500. package/scrolltop/scrolltop.esm.min.js +1 -1
  501. package/scrolltop/scrolltop.js +1 -1
  502. package/scrolltop/scrolltop.min.js +1 -1
  503. package/sidebar/BaseSidebar.vue +146 -144
  504. package/sidebar/Sidebar.d.ts +10 -0
  505. package/sidebar/Sidebar.vue +17 -12
  506. package/sidebar/sidebar.cjs.js +10 -3
  507. package/sidebar/sidebar.cjs.min.js +1 -1
  508. package/sidebar/sidebar.esm.js +11 -4
  509. package/sidebar/sidebar.esm.min.js +1 -1
  510. package/sidebar/sidebar.js +10 -3
  511. package/sidebar/sidebar.min.js +1 -1
  512. package/skeleton/BaseSkeleton.vue +30 -28
  513. package/skeleton/skeleton.cjs.js +1 -1
  514. package/skeleton/skeleton.cjs.min.js +1 -1
  515. package/skeleton/skeleton.esm.js +1 -1
  516. package/skeleton/skeleton.esm.min.js +1 -1
  517. package/skeleton/skeleton.js +1 -1
  518. package/skeleton/skeleton.min.js +1 -1
  519. package/slider/BaseSlider.vue +39 -37
  520. package/slider/slider.cjs.js +1 -2
  521. package/slider/slider.cjs.min.js +1 -1
  522. package/slider/slider.esm.js +1 -2
  523. package/slider/slider.esm.min.js +1 -1
  524. package/slider/slider.js +1 -2
  525. package/slider/slider.min.js +1 -1
  526. package/speeddial/BaseSpeedDial.vue +77 -75
  527. package/speeddial/SpeedDial.vue +2 -2
  528. package/speeddial/speeddial.cjs.js +7 -3
  529. package/speeddial/speeddial.cjs.min.js +1 -1
  530. package/speeddial/speeddial.esm.js +7 -3
  531. package/speeddial/speeddial.esm.min.js +1 -1
  532. package/speeddial/speeddial.js +7 -3
  533. package/speeddial/speeddial.min.js +1 -1
  534. package/splitbutton/BaseSplitButton.vue +32 -30
  535. package/splitbutton/SplitButton.vue +2 -1
  536. package/splitbutton/splitbutton.cjs.js +3 -2
  537. package/splitbutton/splitbutton.cjs.min.js +1 -1
  538. package/splitbutton/splitbutton.esm.js +3 -2
  539. package/splitbutton/splitbutton.esm.min.js +1 -1
  540. package/splitbutton/splitbutton.js +3 -2
  541. package/splitbutton/splitbutton.min.js +1 -1
  542. package/splitter/BaseSplitter.vue +46 -44
  543. package/splitter/splitter.cjs.js +1 -1
  544. package/splitter/splitter.cjs.min.js +1 -1
  545. package/splitter/splitter.esm.js +1 -1
  546. package/splitter/splitter.esm.min.js +1 -1
  547. package/splitter/splitter.js +1 -1
  548. package/splitter/splitter.min.js +1 -1
  549. package/splitterpanel/BaseSplitterPanel.vue +13 -11
  550. package/splitterpanel/splitterpanel.cjs.js +1 -1
  551. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  552. package/splitterpanel/splitterpanel.esm.js +1 -1
  553. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  554. package/splitterpanel/splitterpanel.js +1 -1
  555. package/splitterpanel/splitterpanel.min.js +1 -1
  556. package/steps/BaseSteps.vue +52 -50
  557. package/steps/steps.cjs.js +1 -1
  558. package/steps/steps.cjs.min.js +1 -1
  559. package/steps/steps.esm.js +1 -1
  560. package/steps/steps.esm.min.js +1 -1
  561. package/steps/steps.js +1 -1
  562. package/steps/steps.min.js +1 -1
  563. package/tabmenu/BaseTabMenu.vue +40 -38
  564. package/tabmenu/TabMenu.vue +5 -0
  565. package/tabmenu/tabmenu.cjs.js +6 -1
  566. package/tabmenu/tabmenu.cjs.min.js +1 -1
  567. package/tabmenu/tabmenu.esm.js +6 -1
  568. package/tabmenu/tabmenu.esm.min.js +1 -1
  569. package/tabmenu/tabmenu.js +6 -1
  570. package/tabmenu/tabmenu.min.js +1 -1
  571. package/tabview/BaseTabView.vue +70 -68
  572. package/tabview/tabview.cjs.js +1 -1
  573. package/tabview/tabview.cjs.min.js +1 -1
  574. package/tabview/tabview.esm.js +1 -1
  575. package/tabview/tabview.esm.min.js +1 -1
  576. package/tabview/tabview.js +1 -1
  577. package/tabview/tabview.min.js +1 -1
  578. package/tag/BaseTag.vue +16 -14
  579. package/tag/tag.cjs.js +1 -1
  580. package/tag/tag.cjs.min.js +1 -1
  581. package/tag/tag.esm.js +1 -1
  582. package/tag/tag.esm.min.js +1 -1
  583. package/tag/tag.js +1 -1
  584. package/tag/tag.min.js +1 -1
  585. package/terminal/BaseTerminal.vue +23 -21
  586. package/terminal/terminal.cjs.js +1 -1
  587. package/terminal/terminal.cjs.min.js +1 -1
  588. package/terminal/terminal.esm.js +1 -1
  589. package/terminal/terminal.esm.min.js +1 -1
  590. package/terminal/terminal.js +1 -1
  591. package/terminal/terminal.min.js +1 -1
  592. package/textarea/BaseTextarea.vue +9 -7
  593. package/textarea/Textarea.vue +1 -3
  594. package/textarea/textarea.cjs.js +2 -3
  595. package/textarea/textarea.cjs.min.js +1 -1
  596. package/textarea/textarea.esm.js +2 -3
  597. package/textarea/textarea.esm.min.js +1 -1
  598. package/textarea/textarea.js +2 -3
  599. package/textarea/textarea.min.js +1 -1
  600. package/tieredmenu/BaseTieredMenu.vue +40 -38
  601. package/tieredmenu/tieredmenu.cjs.js +1 -1
  602. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  603. package/tieredmenu/tieredmenu.esm.js +1 -1
  604. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  605. package/tieredmenu/tieredmenu.js +1 -1
  606. package/tieredmenu/tieredmenu.min.js +1 -1
  607. package/timeline/BaseTimeline.vue +111 -109
  608. package/timeline/timeline.cjs.js +1 -1
  609. package/timeline/timeline.cjs.min.js +1 -1
  610. package/timeline/timeline.esm.js +1 -1
  611. package/timeline/timeline.esm.min.js +1 -1
  612. package/timeline/timeline.js +1 -1
  613. package/timeline/timeline.min.js +1 -1
  614. package/toast/BaseToast.vue +73 -71
  615. package/toast/Toast.d.ts +14 -0
  616. package/toast/ToastMessage.vue +3 -2
  617. package/toast/toast.cjs.js +9 -4
  618. package/toast/toast.cjs.min.js +1 -1
  619. package/toast/toast.esm.js +10 -5
  620. package/toast/toast.esm.min.js +1 -1
  621. package/toast/toast.js +9 -4
  622. package/toast/toast.min.js +1 -1
  623. package/toolbar/BaseToolbar.vue +21 -19
  624. package/toolbar/toolbar.cjs.js +1 -2
  625. package/toolbar/toolbar.cjs.min.js +1 -1
  626. package/toolbar/toolbar.esm.js +1 -2
  627. package/toolbar/toolbar.esm.min.js +1 -1
  628. package/toolbar/toolbar.js +1 -2
  629. package/toolbar/toolbar.min.js +1 -1
  630. package/tooltip/tooltip.cjs.js +1 -1
  631. package/tooltip/tooltip.cjs.min.js +1 -1
  632. package/tooltip/tooltip.esm.js +1 -1
  633. package/tooltip/tooltip.esm.min.js +1 -1
  634. package/tooltip/tooltip.js +1 -1
  635. package/tooltip/tooltip.min.js +1 -1
  636. package/tree/BaseTree.vue +82 -80
  637. package/tree/Tree.vue +1 -1
  638. package/tree/TreeNode.vue +1 -1
  639. package/tree/tree.cjs.js +8 -6
  640. package/tree/tree.cjs.min.js +1 -1
  641. package/tree/tree.esm.js +9 -7
  642. package/tree/tree.esm.min.js +1 -1
  643. package/tree/tree.js +8 -6
  644. package/tree/tree.min.js +1 -1
  645. package/treeselect/BaseTreeSelect.vue +51 -49
  646. package/treeselect/treeselect.cjs.js +1 -1
  647. package/treeselect/treeselect.cjs.min.js +1 -1
  648. package/treeselect/treeselect.esm.js +1 -1
  649. package/treeselect/treeselect.esm.min.js +1 -1
  650. package/treeselect/treeselect.js +1 -1
  651. package/treeselect/treeselect.min.js +1 -1
  652. package/treetable/BaseTreeTable.vue +169 -167
  653. package/treetable/BodyCell.vue +1 -1
  654. package/treetable/TreeTable.d.ts +48 -4
  655. package/treetable/TreeTable.vue +28 -16
  656. package/treetable/treetable.cjs.js +66 -18
  657. package/treetable/treetable.cjs.min.js +1 -1
  658. package/treetable/treetable.esm.js +66 -18
  659. package/treetable/treetable.esm.min.js +1 -1
  660. package/treetable/treetable.js +66 -18
  661. package/treetable/treetable.min.js +1 -1
  662. package/vetur-attributes.json +4 -0
  663. package/vetur-tags.json +1 -0
  664. package/web-types.json +46 -1
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/usestyle"),a=require("vue"),o=require("primevue/icons/angledoubleleft"),r=require("primevue/ripple"),i=require("primevue/dropdown"),l=require("primevue/inputnumber"),p=require("primevue/icons/angledoubleright"),s=require("primevue/icons/angleright"),u=require("primevue/icons/angleleft");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=c(t),d=c(o),m=c(r),f=c(i),h=c(l),P=c(p),b=c(s),v=c(u);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function k(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=B(e,"string");return"symbol"===y(t)?t:String(t)}function B(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==y(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L={paginator:function(e){var t=e.instance,n=e.key;return["p-paginator p-component",k({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(n),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){return["p-paginator-first p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){return["p-paginator-next p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){return["p-paginator-last p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){return["p-paginator-page p-paginator-element p-link",{"p-highlight":e.pageLink-1===e.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},C=n.useStyle("\n.p-paginator-default {\n display: flex;\n}\n\n.p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-paginator-left-content {\n margin-right: auto;\n}\n\n.p-paginator-right-content {\n margin-left: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n",{name:"paginator",manual:!0}),x={name:"BasePaginator",extends:g.default,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},css:{classes:L,loadStyle:C.load},provide:function(){return{$parentInstance:this}}},T={name:"CurrentPageReport",hostName:"Paginator",extends:g.default,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var e=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return e}}};T.render=function(e,t,n,o,r,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("current")},e.ptm("current")),a.toDisplayString(i.text),17)};var D={name:"FirstPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:d.default},directives:{ripple:m.default}};D.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("firstPageButton"),type:"button"},i.getPTOptions("firstPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleLeftIcon"),a.mergeProps({class:e.cx("firstPageIcon")},i.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[l]])};var S={name:"JumpToPageDropdown",hostName:"Paginator",extends:g.default,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},methods:{onChange:function(e){this.$emit("page-change",e)}},computed:{pageOptions:function(){for(var e=[],t=0;t<this.pageCount;t++)e.push({label:String(t+1),value:t});return e}},components:{JTPDropdown:f.default}};S.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("jumpToPageDropdown"),"data-pc-section":"jumptopagedropdown","data-pc-group-section":"pagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var I={name:"JumpToPageInput",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit("page-change",e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:h.default}};I.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(l,{ref:"jtpInput",modelValue:r.d_page,class:a.normalizeClass(e.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:e.unstyled,pt:e.ptm("jumpToPageInput"),"data-pc-section":"jumptopageinput"},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])};var N={name:"LastPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:P.default},directives:{ripple:m.default}};N.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("lastPageButton"),type:"button"},i.getPTOptions("lastPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleRightIcon"),a.mergeProps({class:e.cx("lastPageIcon")},i.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[l]])};var A={name:"NextPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:b.default},directives:{ripple:m.default}};A.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("nextPageButton"),type:"button"},i.getPTOptions("nextPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleRightIcon"),a.mergeProps({class:e.cx("nextPageIcon")},i.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[l]])};var $={name:"PageLinks",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(e,t){return this.ptm(t,{context:{active:e===this.page}})},onPageLinkClick:function(e,t){this.$emit("click",{originalEvent:e,value:t})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:m.default}},O=["aria-label","aria-current","onClick","data-p-highlight"];$.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("pages")},e.ptm("pages")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(function(t){return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:t,class:e.cx("pageButton",{pageLink:t}),type:"button","aria-label":i.ariaPageLabel(t),"aria-current":t-1===n.page?"page":void 0,onClick:function(e){return i.onPageLinkClick(e,t)}},i.getPTOptions(t-1,"pageButton"),{"data-p-highlight":t-1===n.page}),[a.createTextVNode(a.toDisplayString(t),1)],16,O)),[[l]])})),128))],16)};var R={name:"PrevPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:v.default},directives:{ripple:m.default}};R.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("previousPageButton"),type:"button"},i.getPTOptions("previousPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleLeftIcon"),a.mergeProps({class:e.cx("previousPageIcon")},i.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[l]])};var j={name:"RowsPerPageDropdown",hostName:"Paginator",extends:g.default,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean},methods:{onChange:function(e){this.$emit("rows-change",e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var t=0;t<this.options.length;t++)e.push({label:String(this.options[t]),value:this.options[t]});return e}},components:{RPPDropdown:f.default}};function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function F(e){if(Array.isArray(e))return z(e)}function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function q(e,t){return H(e)||U(e,t)||M(e,t)||J()}function J(){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 M(e,t){if(e){if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function U(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,r,i,l=[],p=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;p=!1}else for(;!(p=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);p=!0);}catch(e){s=!0,o=e}finally{try{if(!p&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}function H(e){if(Array.isArray(e))return e}j.render=function(e,t,n,o,r,i){var l=a.resolveComponent("RPPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown","data-pc-group-section":"pagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var W={name:"Paginator",extends:x,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(e){var t=this.pageCount;if(e>=0&&e<t){this.d_first=this.d_rows*e;var n={page:e,first:this.d_first,rows:this.d_rows,pageCount:t};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",n)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var t=this;if(this.hasBreakpoints()&&!this.isUnstyled){var n;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",e.DomHandler.setAttribute(this.styleElement,"nonce",null===(n=this.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce),document.head.appendChild(this.styleElement);var a="",o=Object.keys(this.template),r={};o.sort((function(e,t){return parseInt(e)-parseInt(t)})).forEach((function(e){r[e]=t.template[e]}));for(var i=0,l=Object.entries(Object.entries(r));i<l.length;i++){var p=q(l[i],2),s=p[0],u=q(p[1],1)[0],c=Object.entries(r)[s-1]?"and (min-width:".concat(Object.keys(r)[s-1],")"):"";a+="default"===u?"\n @media screen ".concat(c," {\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: flex !important;\n }\n }\n "):"\n .paginator[".concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: none !important;\n }\n @media screen ").concat(c," and (max-width: ").concat(u,") {\n .paginator[").concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: flex !important;\n }\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: none !important;\n }\n }\n ")}this.styleElement.innerHTML=a}},hasBreakpoints:function(){return"object"===V(this.template)},setPaginatorAttribute:function(){var e,t=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&(e=this.$refs.paginator,F(e)||_(e)||M(e)||E()).forEach((function(e){e.setAttribute(t.attributeSelector,"")}))},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){for(var t in(e=this.template).default||(e.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"),e)e[t]=this.template[t].split(" ").map((function(e){return e.trim()}));return e}return e.default=this.template.split(" ").map((function(e){return e.trim()})),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return 0===this.page},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,t=Math.min(this.pageLinkSize,e),n=Math.max(0,Math.ceil(this.page-t/2)),a=Math.min(e-1,n+t-1);return[n=Math.max(0,n-(this.pageLinkSize-(a-n+1))),a]},pageLinks:function(){for(var e=[],t=this.calculatePageLinkBoundaries,n=t[1],a=t[0];a<=n;a++)e.push(a+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return 0===this.pageCount},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return e.UniqueComponentId()}},components:{CurrentPageReport:T,FirstPageLink:D,LastPageLink:N,NextPageLink:A,PageLinks:$,PrevPageLink:R,RowsPerPageDropdown:j,JumpToPageDropdown:S,JumpToPageInput:I}};W.render=function(e,t,n,o,r,i){var l=a.resolveComponent("FirstPageLink"),p=a.resolveComponent("PrevPageLink"),s=a.resolveComponent("NextPageLink"),u=a.resolveComponent("LastPageLink"),c=a.resolveComponent("PageLinks"),g=a.resolveComponent("CurrentPageReport"),d=a.resolveComponent("RowsPerPageDropdown"),m=a.resolveComponent("JumpToPageDropdown"),f=a.resolveComponent("JumpToPageInput");return e.alwaysShow||i.pageLinks&&i.pageLinks.length>1?(a.openBlock(),a.createElementBlock("nav",a.normalizeProps(a.mergeProps({key:0},e.ptm("paginatorWrapper"))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.templateItems,(function(n,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:o,ref_for:!0,ref:"paginator",class:e.cx("paginator",{key:o})},e.ptm("root"),{"data-pc-name":"paginator"}),[e.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("start")},e.ptm("start")),[a.renderSlot(e.$slots,"start",{state:i.currentState})],16)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n,(function(n){return a.openBlock(),a.createElementBlock(a.Fragment,{key:n},["FirstPageLink"===n?(a.openBlock(),a.createBlock(l,{key:0,"aria-label":i.getAriaLabel("firstPageLabel"),template:e.$slots.firstpagelinkicon,onClick:t[0]||(t[0]=function(e){return i.changePageToFirst(e)}),disabled:i.isFirstPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"PrevPageLink"===n?(a.openBlock(),a.createBlock(p,{key:1,"aria-label":i.getAriaLabel("prevPageLabel"),template:e.$slots.prevpagelinkicon,onClick:t[1]||(t[1]=function(e){return i.changePageToPrev(e)}),disabled:i.isFirstPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"NextPageLink"===n?(a.openBlock(),a.createBlock(s,{key:2,"aria-label":i.getAriaLabel("nextPageLabel"),template:e.$slots.nextpagelinkicon,onClick:t[2]||(t[2]=function(e){return i.changePageToNext(e)}),disabled:i.isLastPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"LastPageLink"===n?(a.openBlock(),a.createBlock(u,{key:3,"aria-label":i.getAriaLabel("lastPageLabel"),template:e.$slots.lastpagelinkicon,onClick:t[3]||(t[3]=function(e){return i.changePageToLast(e)}),disabled:i.isLastPage||i.empty,pt:e.pt},null,8,["aria-label","template","disabled","pt"])):"PageLinks"===n?(a.openBlock(),a.createBlock(c,{key:4,"aria-label":i.getAriaLabel("pageLabel"),value:i.pageLinks,page:i.page,onClick:t[4]||(t[4]=function(e){return i.changePageLink(e)}),pt:e.pt},null,8,["aria-label","value","page","pt"])):"CurrentPageReport"===n?(a.openBlock(),a.createBlock(g,{key:5,"aria-live":"polite",template:e.currentPageReportTemplate,currentPage:i.currentPage,page:i.page,pageCount:i.pageCount,first:r.d_first,rows:r.d_rows,totalRecords:e.totalRecords,pt:e.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","pt"])):"RowsPerPageDropdown"===n&&e.rowsPerPageOptions?(a.openBlock(),a.createBlock(d,{key:6,"aria-label":i.getAriaLabel("rowsPerPageLabel"),rows:r.d_rows,options:e.rowsPerPageOptions,onRowsChange:t[5]||(t[5]=function(e){return i.onRowChange(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","rows","options","disabled","unstyled","pt"])):"JumpToPageDropdown"===n?(a.openBlock(),a.createBlock(m,{key:7,"aria-label":i.getAriaLabel("jumpToPageDropdownLabel"),page:i.page,pageCount:i.pageCount,onPageChange:t[6]||(t[6]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","page","pageCount","disabled","unstyled","pt"])):"JumpToPageInput"===n?(a.openBlock(),a.createBlock(f,{key:8,page:i.currentPage,onPageChange:t[7]||(t[7]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["page","disabled","unstyled","pt"])):a.createCommentVNode("",!0)],64)})),128)),e.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("end")},e.ptm("end")),[a.renderSlot(e.$slots,"end",{state:i.currentState})],16)):a.createCommentVNode("",!0)],16)})),128))],16)):a.createCommentVNode("",!0)},module.exports=W;
1
+ "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/usestyle"),a=require("vue"),o=require("primevue/icons/angledoubleleft"),r=require("primevue/ripple"),i=require("primevue/dropdown"),l=require("primevue/inputnumber"),s=require("primevue/icons/angledoubleright"),p=require("primevue/icons/angleright"),u=require("primevue/icons/angleleft");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=c(t),d=c(o),m=c(r),f=c(i),h=c(l),P=c(s),b=c(p),y=c(u);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function k(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=B(e,"string");return"symbol"===v(t)?t:String(t)}function B(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==v(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var L={paginator:function(e){var t=e.instance,n=e.key;return["p-paginator p-component",k({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(n),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){return["p-paginator-first p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){return["p-paginator-next p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){return["p-paginator-last p-paginator-element p-link",{"p-disabled":e.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){return["p-paginator-page p-paginator-element p-link",{"p-highlight":e.pageLink-1===e.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},C=n.useStyle("\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n \n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n \n .p-paginator-left-content {\n margin-right: auto;\n }\n \n .p-paginator-right-content {\n margin-left: auto;\n }\n \n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n",{name:"paginator",manual:!0}),x={name:"BasePaginator",extends:g.default,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},css:{classes:L,loadStyle:C.load},provide:function(){return{$parentInstance:this}}},D={name:"CurrentPageReport",hostName:"Paginator",extends:g.default,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var e=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return e}}};D.render=function(e,t,n,o,r,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("current")},e.ptm("current")),a.toDisplayString(i.text),17)};var S={name:"FirstPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:d.default},directives:{ripple:m.default}};S.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("firstPageButton"),type:"button"},i.getPTOptions("firstPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleLeftIcon"),a.mergeProps({class:e.cx("firstPageIcon")},i.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[l]])};var T={name:"JumpToPageDropdown",hostName:"Paginator",extends:g.default,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit("page-change",e)}},computed:{pageOptions:function(){for(var e=[],t=0;t<this.pageCount;t++)e.push({label:String(t+1),value:t});return e}},components:{JTPDropdown:f.default}};T.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("jumpToPageDropdown"),"data-pc-section":"jumptopagedropdown","data-pc-group-section":"pagedropdown"},a.createSlots({_:2},[n.templates.jumptopagedropdownicon?{name:"dropdownicon",fn:a.withCtx((function(e){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.jumptopagedropdownicon),{class:a.normalizeClass(e.class)},null,8,["class"]))]})),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])};var I={name:"JumpToPageInput",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(e){this.d_page=e}},methods:{onChange:function(e){e!==this.page&&(this.d_page=e,this.$emit("page-change",e-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:h.default}};I.render=function(e,t,n,o,r,i){var l=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(l,{ref:"jtpInput",modelValue:r.d_page,class:a.normalizeClass(e.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:e.unstyled,pt:e.ptm("jumpToPageInput"),"data-pc-section":"jumptopageinput"},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])};var N={name:"LastPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:P.default},directives:{ripple:m.default}};N.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("lastPageButton"),type:"button"},i.getPTOptions("lastPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleDoubleRightIcon"),a.mergeProps({class:e.cx("lastPageIcon")},i.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[l]])};var $={name:"NextPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:b.default},directives:{ripple:m.default}};$.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("nextPageButton"),type:"button"},i.getPTOptions("nextPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleRightIcon"),a.mergeProps({class:e.cx("nextPageIcon")},i.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[l]])};var A={name:"PageLinks",hostName:"Paginator",extends:g.default,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(e,t){return this.ptm(t,{context:{active:e===this.page}})},onPageLinkClick:function(e,t){this.$emit("click",{originalEvent:e,value:t})},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},directives:{ripple:m.default}},j=["aria-label","aria-current","onClick","data-p-highlight"];A.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:e.cx("pages")},e.ptm("pages")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(function(t){return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:t,class:e.cx("pageButton",{pageLink:t}),type:"button","aria-label":i.ariaPageLabel(t),"aria-current":t-1===n.page?"page":void 0,onClick:function(e){return i.onPageLinkClick(e,t)}},i.getPTOptions(t-1,"pageButton"),{"data-p-highlight":t-1===n.page}),[a.createTextVNode(a.toDisplayString(t),1)],16,j)),[[l]])})),128))],16)};var O={name:"PrevPageLink",hostName:"Paginator",extends:g.default,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:y.default},directives:{ripple:m.default}};O.render=function(e,t,n,o,r,i){var l=a.resolveDirective("ripple");return a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({class:e.cx("previousPageButton"),type:"button"},i.getPTOptions("previousPageButton"),{"data-pc-group-section":"pagebutton"}),[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.template||"AngleLeftIcon"),a.mergeProps({class:e.cx("previousPageIcon")},i.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[l]])};var R={name:"RowsPerPageDropdown",hostName:"Paginator",extends:g.default,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean,templates:null},methods:{onChange:function(e){this.$emit("rows-change",e)}},computed:{rowsOptions:function(){var e=[];if(this.options)for(var t=0;t<this.options.length;t++)e.push({label:String(this.options[t]),value:this.options[t]});return e}},components:{RPPDropdown:f.default}};function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function F(e){if(Array.isArray(e))return M(e)}function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function q(e,t){return H(e)||U(e,t)||z(e,t)||J()}function J(){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 z(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function U(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,r,i,l=[],s=!0,p=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){p=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw o}}return l}}function H(e){if(Array.isArray(e))return e}R.render=function(e,t,n,o,r,i){var l=a.resolveComponent("RPPDropdown");return a.openBlock(),a.createBlock(l,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":t[0]||(t[0]=function(e){return i.onChange(e)}),class:a.normalizeClass(e.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:e.unstyled,pt:e.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown","data-pc-group-section":"pagedropdown"},a.createSlots({_:2},[n.templates.rowsperpagedropdownicon?{name:"dropdownicon",fn:a.withCtx((function(e){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.rowsperpagedropdownicon),{class:a.normalizeClass(e.class)},null,8,["class"]))]})),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])};var W={name:"Paginator",extends:x,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(e){this.d_first=e},rows:function(e){this.d_rows=e},totalRecords:function(e){this.page>0&&e&&this.d_first>=e&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(e){var t=this.pageCount;if(e>=0&&e<t){this.d_first=this.d_rows*e;var n={page:e,first:this.d_first,rows:this.d_rows,pageCount:t};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",n)}},changePageToFirst:function(e){this.isFirstPage||this.changePage(0),e.preventDefault()},changePageToPrev:function(e){this.changePage(this.page-1),e.preventDefault()},changePageLink:function(e){this.changePage(e.value-1),e.originalEvent.preventDefault()},changePageToNext:function(e){this.changePage(this.page+1),e.preventDefault()},changePageToLast:function(e){this.isLastPage||this.changePage(this.pageCount-1),e.preventDefault()},onRowChange:function(e){this.d_rows=e,this.changePage(this.page)},createStyle:function(){var t=this;if(this.hasBreakpoints()&&!this.isUnstyled){var n;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",e.DomHandler.setAttribute(this.styleElement,"nonce",null===(n=this.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce),document.head.appendChild(this.styleElement);var a="",o=Object.keys(this.template),r={};o.sort((function(e,t){return parseInt(e)-parseInt(t)})).forEach((function(e){r[e]=t.template[e]}));for(var i=0,l=Object.entries(Object.entries(r));i<l.length;i++){var s=q(l[i],2),p=s[0],u=q(s[1],1)[0],c=Object.entries(r)[p-1]?"and (min-width:".concat(Object.keys(r)[p-1],")"):"";a+="default"===u?"\n @media screen ".concat(c," {\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: flex !important;\n }\n }\n "):"\n .paginator[".concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: none !important;\n }\n @media screen ").concat(c," and (max-width: ").concat(u,") {\n .paginator[").concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: flex !important;\n }\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: none !important;\n }\n }\n ")}this.styleElement.innerHTML=a}},hasBreakpoints:function(){return"object"===V(this.template)},setPaginatorAttribute:function(){var e,t=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&(e=this.$refs.paginator,F(e)||_(e)||z(e)||E()).forEach((function(e){e.setAttribute(t.attributeSelector,"")}))},getAriaLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[e]:void 0}},computed:{templateItems:function(){var e={};if(this.hasBreakpoints()){for(var t in(e=this.template).default||(e.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"),e)e[t]=this.template[t].split(" ").map((function(e){return e.trim()}));return e}return e.default=this.template.split(" ").map((function(e){return e.trim()})),e},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return 0===this.page},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var e=this.pageCount,t=Math.min(this.pageLinkSize,e),n=Math.max(0,Math.ceil(this.page-t/2)),a=Math.min(e-1,n+t-1);return[n=Math.max(0,n-(this.pageLinkSize-(a-n+1))),a]},pageLinks:function(){for(var e=[],t=this.calculatePageLinkBoundaries,n=t[1],a=t[0];a<=n;a++)e.push(a+1);return e},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return 0===this.pageCount},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return e.UniqueComponentId()}},components:{CurrentPageReport:D,FirstPageLink:S,LastPageLink:N,NextPageLink:$,PageLinks:A,PrevPageLink:O,RowsPerPageDropdown:R,JumpToPageDropdown:T,JumpToPageInput:I}};W.render=function(e,t,n,o,r,i){var l=a.resolveComponent("FirstPageLink"),s=a.resolveComponent("PrevPageLink"),p=a.resolveComponent("NextPageLink"),u=a.resolveComponent("LastPageLink"),c=a.resolveComponent("PageLinks"),g=a.resolveComponent("CurrentPageReport"),d=a.resolveComponent("RowsPerPageDropdown"),m=a.resolveComponent("JumpToPageDropdown"),f=a.resolveComponent("JumpToPageInput");return e.alwaysShow||i.pageLinks&&i.pageLinks.length>1?(a.openBlock(),a.createElementBlock("nav",a.normalizeProps(a.mergeProps({key:0},e.ptm("paginatorWrapper"))),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.templateItems,(function(n,o){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:o,ref_for:!0,ref:"paginator",class:e.cx("paginator",{key:o})},e.ptm("root"),{"data-pc-name":"paginator"}),[e.$slots.start?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("start")},e.ptm("start")),[a.renderSlot(e.$slots,"start",{state:i.currentState})],16)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n,(function(n){return a.openBlock(),a.createElementBlock(a.Fragment,{key:n},["FirstPageLink"===n?(a.openBlock(),a.createBlock(l,{key:0,"aria-label":i.getAriaLabel("firstPageLabel"),template:e.$slots.firstpagelinkicon,onClick:t[0]||(t[0]=function(e){return i.changePageToFirst(e)}),disabled:i.isFirstPage||i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"PrevPageLink"===n?(a.openBlock(),a.createBlock(s,{key:1,"aria-label":i.getAriaLabel("prevPageLabel"),template:e.$slots.prevpagelinkicon,onClick:t[1]||(t[1]=function(e){return i.changePageToPrev(e)}),disabled:i.isFirstPage||i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"NextPageLink"===n?(a.openBlock(),a.createBlock(p,{key:2,"aria-label":i.getAriaLabel("nextPageLabel"),template:e.$slots.nextpagelinkicon,onClick:t[2]||(t[2]=function(e){return i.changePageToNext(e)}),disabled:i.isLastPage||i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"LastPageLink"===n?(a.openBlock(),a.createBlock(u,{key:3,"aria-label":i.getAriaLabel("lastPageLabel"),template:e.$slots.lastpagelinkicon,onClick:t[3]||(t[3]=function(e){return i.changePageToLast(e)}),disabled:i.isLastPage||i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"PageLinks"===n?(a.openBlock(),a.createBlock(c,{key:4,"aria-label":i.getAriaLabel("pageLabel"),value:i.pageLinks,page:i.page,onClick:t[4]||(t[4]=function(e){return i.changePageLink(e)}),pt:e.pt},null,8,["aria-label","value","page","pt"])):"CurrentPageReport"===n?(a.openBlock(),a.createBlock(g,{key:5,"aria-live":"polite",template:e.currentPageReportTemplate,currentPage:i.currentPage,page:i.page,pageCount:i.pageCount,first:r.d_first,rows:r.d_rows,totalRecords:e.totalRecords,unstyled:e.unstyled,pt:e.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):"RowsPerPageDropdown"===n&&e.rowsPerPageOptions?(a.openBlock(),a.createBlock(d,{key:6,"aria-label":i.getAriaLabel("rowsPerPageLabel"),rows:r.d_rows,options:e.rowsPerPageOptions,onRowsChange:t[5]||(t[5]=function(e){return i.onRowChange(e)}),disabled:i.empty,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):"JumpToPageDropdown"===n?(a.openBlock(),a.createBlock(m,{key:7,"aria-label":i.getAriaLabel("jumpToPageDropdownLabel"),page:i.page,pageCount:i.pageCount,onPageChange:t[6]||(t[6]=function(e){return i.changePage(e)}),disabled:i.empty,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):"JumpToPageInput"===n?(a.openBlock(),a.createBlock(f,{key:8,page:i.currentPage,onPageChange:t[7]||(t[7]=function(e){return i.changePage(e)}),disabled:i.empty,unstyled:e.unstyled,pt:e.pt},null,8,["page","disabled","unstyled","pt"])):a.createCommentVNode("",!0)],64)})),128)),e.$slots.end?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:e.cx("end")},e.ptm("end")),[a.renderSlot(e.$slots,"end",{state:i.currentState})],16)):a.createCommentVNode("",!0)],16)})),128))],16)):a.createCommentVNode("",!0)},module.exports=W;
@@ -1,7 +1,7 @@
1
1
  import { DomHandler, UniqueComponentId } from 'primevue/utils';
2
2
  import BaseComponent from 'primevue/basecomponent';
3
3
  import { useStyle } from 'primevue/usestyle';
4
- import { openBlock, createElementBlock, mergeProps, toDisplayString, resolveDirective, withDirectives, createBlock, resolveDynamicComponent, resolveComponent, normalizeClass, Fragment, renderList, createTextVNode, normalizeProps, renderSlot, createCommentVNode } from 'vue';
4
+ import { openBlock, createElementBlock, mergeProps, toDisplayString, resolveDirective, withDirectives, createBlock, resolveDynamicComponent, resolveComponent, normalizeClass, createSlots, withCtx, Fragment, renderList, createTextVNode, normalizeProps, renderSlot, createCommentVNode } from 'vue';
5
5
  import AngleDoubleLeftIcon from 'primevue/icons/angledoubleleft';
6
6
  import Ripple from 'primevue/ripple';
7
7
  import Dropdown from 'primevue/dropdown';
@@ -14,7 +14,7 @@ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function"
14
14
  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; }
15
15
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
16
16
  function _toPrimitive(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
- var styles = "\n.p-paginator-default {\n display: flex;\n}\n\n.p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-paginator-left-content {\n margin-right: auto;\n}\n\n.p-paginator-right-content {\n margin-left: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n";
17
+ var styles = "\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n \n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n \n .p-paginator-left-content {\n margin-right: auto;\n }\n \n .p-paginator-right-content {\n margin-left: auto;\n }\n \n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n";
18
18
  var classes = {
19
19
  paginator: function paginator(_ref) {
20
20
  var instance = _ref.instance,
@@ -218,7 +218,8 @@ var script$7 = {
218
218
  props: {
219
219
  page: Number,
220
220
  pageCount: Number,
221
- disabled: Boolean
221
+ disabled: Boolean,
222
+ templates: null
222
223
  },
223
224
  methods: {
224
225
  onChange: function onChange(value) {
@@ -258,7 +259,17 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
258
259
  pt: _ctx.ptm('jumpToPageDropdown'),
259
260
  "data-pc-section": "jumptopagedropdown",
260
261
  "data-pc-group-section": "pagedropdown"
261
- }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
262
+ }, createSlots({
263
+ _: 2
264
+ }, [$props.templates['jumptopagedropdownicon'] ? {
265
+ name: "dropdownicon",
266
+ fn: withCtx(function (slotProps) {
267
+ return [(openBlock(), createBlock(resolveDynamicComponent($props.templates['jumptopagedropdownicon']), {
268
+ "class": normalizeClass(slotProps["class"])
269
+ }, null, 8, ["class"]))];
270
+ }),
271
+ key: "0"
272
+ } : undefined]), 1032, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
262
273
  }
263
274
 
264
275
  script$7.render = render$7;
@@ -508,7 +519,8 @@ var script$1 = {
508
519
  props: {
509
520
  options: Array,
510
521
  rows: Number,
511
- disabled: Boolean
522
+ disabled: Boolean,
523
+ templates: null
512
524
  },
513
525
  methods: {
514
526
  onChange: function onChange(value) {
@@ -550,7 +562,17 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
550
562
  pt: _ctx.ptm('rowPerPageDropdown'),
551
563
  "data-pc-section": "rowperpagedropdown",
552
564
  "data-pc-group-section": "pagedropdown"
553
- }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
565
+ }, createSlots({
566
+ _: 2
567
+ }, [$props.templates['rowsperpagedropdownicon'] ? {
568
+ name: "dropdownicon",
569
+ fn: withCtx(function (slotProps) {
570
+ return [(openBlock(), createBlock(resolveDynamicComponent($props.templates['rowsperpagedropdownicon']), {
571
+ "class": normalizeClass(slotProps["class"])
572
+ }, null, 8, ["class"]))];
573
+ }),
574
+ key: "0"
575
+ } : undefined]), 1032, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
554
576
  }
555
577
 
556
578
  script$1.render = render$1;
@@ -806,8 +828,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
806
828
  return $options.changePageToFirst($event);
807
829
  }),
808
830
  disabled: $options.isFirstPage || $options.empty,
831
+ unstyled: _ctx.unstyled,
809
832
  pt: _ctx.pt
810
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'PrevPageLink' ? (openBlock(), createBlock(_component_PrevPageLink, {
833
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'PrevPageLink' ? (openBlock(), createBlock(_component_PrevPageLink, {
811
834
  key: 1,
812
835
  "aria-label": $options.getAriaLabel('prevPageLabel'),
813
836
  template: _ctx.$slots.prevpagelinkicon,
@@ -815,8 +838,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
815
838
  return $options.changePageToPrev($event);
816
839
  }),
817
840
  disabled: $options.isFirstPage || $options.empty,
841
+ unstyled: _ctx.unstyled,
818
842
  pt: _ctx.pt
819
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'NextPageLink' ? (openBlock(), createBlock(_component_NextPageLink, {
843
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'NextPageLink' ? (openBlock(), createBlock(_component_NextPageLink, {
820
844
  key: 2,
821
845
  "aria-label": $options.getAriaLabel('nextPageLabel'),
822
846
  template: _ctx.$slots.nextpagelinkicon,
@@ -824,8 +848,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
824
848
  return $options.changePageToNext($event);
825
849
  }),
826
850
  disabled: $options.isLastPage || $options.empty,
851
+ unstyled: _ctx.unstyled,
827
852
  pt: _ctx.pt
828
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'LastPageLink' ? (openBlock(), createBlock(_component_LastPageLink, {
853
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'LastPageLink' ? (openBlock(), createBlock(_component_LastPageLink, {
829
854
  key: 3,
830
855
  "aria-label": $options.getAriaLabel('lastPageLabel'),
831
856
  template: _ctx.$slots.lastpagelinkicon,
@@ -833,8 +858,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
833
858
  return $options.changePageToLast($event);
834
859
  }),
835
860
  disabled: $options.isLastPage || $options.empty,
861
+ unstyled: _ctx.unstyled,
836
862
  pt: _ctx.pt
837
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'PageLinks' ? (openBlock(), createBlock(_component_PageLinks, {
863
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'PageLinks' ? (openBlock(), createBlock(_component_PageLinks, {
838
864
  key: 4,
839
865
  "aria-label": $options.getAriaLabel('pageLabel'),
840
866
  value: $options.pageLinks,
@@ -853,8 +879,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
853
879
  first: $data.d_first,
854
880
  rows: $data.d_rows,
855
881
  totalRecords: _ctx.totalRecords,
882
+ unstyled: _ctx.unstyled,
856
883
  pt: _ctx.pt
857
- }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "pt"])) : item === 'RowsPerPageDropdown' && _ctx.rowsPerPageOptions ? (openBlock(), createBlock(_component_RowsPerPageDropdown, {
884
+ }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "unstyled", "pt"])) : item === 'RowsPerPageDropdown' && _ctx.rowsPerPageOptions ? (openBlock(), createBlock(_component_RowsPerPageDropdown, {
858
885
  key: 6,
859
886
  "aria-label": $options.getAriaLabel('rowsPerPageLabel'),
860
887
  rows: $data.d_rows,
@@ -863,9 +890,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
863
890
  return $options.onRowChange($event);
864
891
  }),
865
892
  disabled: $options.empty,
893
+ templates: _ctx.$slots,
866
894
  unstyled: _ctx.unstyled,
867
895
  pt: _ctx.pt
868
- }, null, 8, ["aria-label", "rows", "options", "disabled", "unstyled", "pt"])) : item === 'JumpToPageDropdown' ? (openBlock(), createBlock(_component_JumpToPageDropdown, {
896
+ }, null, 8, ["aria-label", "rows", "options", "disabled", "templates", "unstyled", "pt"])) : item === 'JumpToPageDropdown' ? (openBlock(), createBlock(_component_JumpToPageDropdown, {
869
897
  key: 7,
870
898
  "aria-label": $options.getAriaLabel('jumpToPageDropdownLabel'),
871
899
  page: $options.page,
@@ -874,9 +902,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
874
902
  return $options.changePage($event);
875
903
  }),
876
904
  disabled: $options.empty,
905
+ templates: _ctx.$slots,
877
906
  unstyled: _ctx.unstyled,
878
907
  pt: _ctx.pt
879
- }, null, 8, ["aria-label", "page", "pageCount", "disabled", "unstyled", "pt"])) : item === 'JumpToPageInput' ? (openBlock(), createBlock(_component_JumpToPageInput, {
908
+ }, null, 8, ["aria-label", "page", "pageCount", "disabled", "templates", "unstyled", "pt"])) : item === 'JumpToPageInput' ? (openBlock(), createBlock(_component_JumpToPageInput, {
880
909
  key: 8,
881
910
  page: $options.currentPage,
882
911
  onPageChange: _cache[7] || (_cache[7] = function ($event) {
@@ -1 +1 @@
1
- import{DomHandler as t,UniqueComponentId as e}from"primevue/utils";import n from"primevue/basecomponent";import{useStyle as a}from"primevue/usestyle";import{openBlock as r,createElementBlock as o,mergeProps as i,toDisplayString as p,resolveDirective as s,withDirectives as l,createBlock as u,resolveDynamicComponent as g,resolveComponent as c,normalizeClass as d,Fragment as m,renderList as f,createTextVNode as h,normalizeProps as P,renderSlot as b,createCommentVNode as y}from"vue";import v from"primevue/icons/angledoubleleft";import w from"primevue/ripple";import k from"primevue/dropdown";import L from"primevue/inputnumber";import x from"primevue/icons/angledoubleright";import T from"primevue/icons/angleright";import C from"primevue/icons/angleleft";function S(t){return S="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},S(t)}function I(t,e,n){return(e=A(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){var e=$(t,"string");return"symbol"===S(e)?e:String(e)}function $(t,e){if("object"!==S(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==S(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var N={paginator:function(t){var e=t.instance,n=t.key;return["p-paginator p-component",I({"p-paginator-default":!e.hasBreakpoints()},"p-paginator-".concat(n),e.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(t){return["p-paginator-first p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(t){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(t){return["p-paginator-next p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(t){return["p-paginator-last p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(t){return["p-paginator-page p-paginator-element p-link",{"p-highlight":t.pageLink-1===t.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},O=a("\n.p-paginator-default {\n display: flex;\n}\n\n.p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-paginator-left-content {\n margin-right: auto;\n}\n\n.p-paginator-right-content {\n margin-left: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n",{name:"paginator",manual:!0}),R={name:"BasePaginator",extends:n,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},css:{classes:N,loadStyle:O.load},provide:function(){return{$parentInstance:this}}},D={name:"CurrentPageReport",hostName:"Paginator",extends:n,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var t=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return t}}};D.render=function(t,e,n,a,s,l){return r(),o("span",i({class:t.cx("current")},t.ptm("current")),p(l.text),17)};var j={name:"FirstPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:v},directives:{ripple:w}};j.render=function(t,e,n,a,p,c){var d=s("ripple");return l((r(),o("button",i({class:t.cx("firstPageButton"),type:"button"},c.getPTOptions("firstPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleDoubleLeftIcon"),i({class:t.cx("firstPageIcon")},c.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[d]])};var B={name:"JumpToPageDropdown",hostName:"Paginator",extends:n,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},methods:{onChange:function(t){this.$emit("page-change",t)}},computed:{pageOptions:function(){for(var t=[],e=0;e<this.pageCount;e++)t.push({label:String(e+1),value:e});return t}},components:{JTPDropdown:k}};B.render=function(t,e,n,a,o,i){var p=c("JTPDropdown");return r(),u(p,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(t){return i.onChange(t)}),class:d(t.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("jumpToPageDropdown"),"data-pc-section":"jumptopagedropdown","data-pc-group-section":"pagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var _={name:"JumpToPageInput",hostName:"Paginator",extends:n,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(t){this.d_page=t}},methods:{onChange:function(t){t!==this.page&&(this.d_page=t,this.$emit("page-change",t-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:L}};_.render=function(t,e,n,a,o,i){var p=c("JTPInput");return r(),u(p,{ref:"jtpInput",modelValue:o.d_page,class:d(t.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:t.unstyled,pt:t.ptm("jumpToPageInput"),"data-pc-section":"jumptopageinput"},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])};var F={name:"LastPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:x},directives:{ripple:w}};F.render=function(t,e,n,a,p,c){var d=s("ripple");return l((r(),o("button",i({class:t.cx("lastPageButton"),type:"button"},c.getPTOptions("lastPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleDoubleRightIcon"),i({class:t.cx("lastPageIcon")},c.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[d]])};var E={name:"NextPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:T},directives:{ripple:w}};E.render=function(t,e,n,a,p,c){var d=s("ripple");return l((r(),o("button",i({class:t.cx("nextPageButton"),type:"button"},c.getPTOptions("nextPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleRightIcon"),i({class:t.cx("nextPageIcon")},c.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[d]])};var J={name:"PageLinks",hostName:"Paginator",extends:n,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(t,e){return this.ptm(e,{context:{active:t===this.page}})},onPageLinkClick:function(t,e){this.$emit("click",{originalEvent:t,value:e})},ariaPageLabel:function(t){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,t):void 0}},directives:{ripple:w}},V=["aria-label","aria-current","onClick","data-p-highlight"];J.render=function(t,e,n,a,u,g){var c=s("ripple");return r(),o("span",i({class:t.cx("pages")},t.ptm("pages")),[(r(!0),o(m,null,f(n.value,(function(e){return l((r(),o("button",i({key:e,class:t.cx("pageButton",{pageLink:e}),type:"button","aria-label":g.ariaPageLabel(e),"aria-current":e-1===n.page?"page":void 0,onClick:function(t){return g.onPageLinkClick(t,e)}},g.getPTOptions(e-1,"pageButton"),{"data-p-highlight":e-1===n.page}),[h(p(e),1)],16,V)),[[c]])})),128))],16)};var M={name:"PrevPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:C},directives:{ripple:w}};M.render=function(t,e,n,a,p,c){var d=s("ripple");return l((r(),o("button",i({class:t.cx("previousPageButton"),type:"button"},c.getPTOptions("previousPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleLeftIcon"),i({class:t.cx("previousPageIcon")},c.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[d]])};var U={name:"RowsPerPageDropdown",hostName:"Paginator",extends:n,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean},methods:{onChange:function(t){this.$emit("rows-change",t)}},computed:{rowsOptions:function(){var t=[];if(this.options)for(var e=0;e<this.options.length;e++)t.push({label:String(this.options[e]),value:this.options[e]});return t}},components:{RPPDropdown:k}};function z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function W(t){if(Array.isArray(t))return X(t)}function q(t){return q="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},q(t)}function G(t,e){return Z(t)||Y(t,e)||Q(t,e)||K()}function K(){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 Q(t,e){if(t){if("string"==typeof t)return X(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)?X(t,e):void 0}}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function Y(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,o,i,p=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=o.call(n)).done)&&(p.push(a.value),p.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw r}}return p}}function Z(t){if(Array.isArray(t))return t}U.render=function(t,e,n,a,o,i){var p=c("RPPDropdown");return r(),u(p,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(t){return i.onChange(t)}),class:d(t.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown","data-pc-group-section":"pagedropdown"},null,8,["modelValue","options","class","disabled","unstyled","pt"])};var tt={name:"Paginator",extends:R,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(t){this.d_first=t},rows:function(t){this.d_rows=t},totalRecords:function(t){this.page>0&&t&&this.d_first>=t&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(t){var e=this.pageCount;if(t>=0&&t<e){this.d_first=this.d_rows*t;var n={page:t,first:this.d_first,rows:this.d_rows,pageCount:e};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",n)}},changePageToFirst:function(t){this.isFirstPage||this.changePage(0),t.preventDefault()},changePageToPrev:function(t){this.changePage(this.page-1),t.preventDefault()},changePageLink:function(t){this.changePage(t.value-1),t.originalEvent.preventDefault()},changePageToNext:function(t){this.changePage(this.page+1),t.preventDefault()},changePageToLast:function(t){this.isLastPage||this.changePage(this.pageCount-1),t.preventDefault()},onRowChange:function(t){this.d_rows=t,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){var n;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",t.setAttribute(this.styleElement,"nonce",null===(n=this.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce),document.head.appendChild(this.styleElement);var a="",r=Object.keys(this.template),o={};r.sort((function(t,e){return parseInt(t)-parseInt(e)})).forEach((function(t){o[t]=e.template[t]}));for(var i=0,p=Object.entries(Object.entries(o));i<p.length;i++){var s=G(p[i],2),l=s[0],u=G(s[1],1)[0],g=Object.entries(o)[l-1]?"and (min-width:".concat(Object.keys(o)[l-1],")"):"";a+="default"===u?"\n @media screen ".concat(g," {\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: flex !important;\n }\n }\n "):"\n .paginator[".concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: none !important;\n }\n @media screen ").concat(g," and (max-width: ").concat(u,") {\n .paginator[").concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: flex !important;\n }\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: none !important;\n }\n }\n ")}this.styleElement.innerHTML=a}},hasBreakpoints:function(){return"object"===q(this.template)},setPaginatorAttribute:function(){var t,e=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&(t=this.$refs.paginator,W(t)||H(t)||Q(t)||z()).forEach((function(t){t.setAttribute(e.attributeSelector,"")}))},getAriaLabel:function(t){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[t]:void 0}},computed:{templateItems:function(){var t={};if(this.hasBreakpoints()){for(var e in(t=this.template).default||(t.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"),t)t[e]=this.template[e].split(" ").map((function(t){return t.trim()}));return t}return t.default=this.template.split(" ").map((function(t){return t.trim()})),t},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return 0===this.page},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var t=this.pageCount,e=Math.min(this.pageLinkSize,t),n=Math.max(0,Math.ceil(this.page-e/2)),a=Math.min(t-1,n+e-1);return[n=Math.max(0,n-(this.pageLinkSize-(a-n+1))),a]},pageLinks:function(){for(var t=[],e=this.calculatePageLinkBoundaries,n=e[1],a=e[0];a<=n;a++)t.push(a+1);return t},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return 0===this.pageCount},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return e()}},components:{CurrentPageReport:D,FirstPageLink:j,LastPageLink:F,NextPageLink:E,PageLinks:J,PrevPageLink:M,RowsPerPageDropdown:U,JumpToPageDropdown:B,JumpToPageInput:_}};tt.render=function(t,e,n,a,p,s){var l=c("FirstPageLink"),g=c("PrevPageLink"),d=c("NextPageLink"),h=c("LastPageLink"),v=c("PageLinks"),w=c("CurrentPageReport"),k=c("RowsPerPageDropdown"),L=c("JumpToPageDropdown"),x=c("JumpToPageInput");return t.alwaysShow||s.pageLinks&&s.pageLinks.length>1?(r(),o("nav",P(i({key:0},t.ptm("paginatorWrapper"))),[(r(!0),o(m,null,f(s.templateItems,(function(n,a){return r(),o("div",i({key:a,ref_for:!0,ref:"paginator",class:t.cx("paginator",{key:a})},t.ptm("root"),{"data-pc-name":"paginator"}),[t.$slots.start?(r(),o("div",i({key:0,class:t.cx("start")},t.ptm("start")),[b(t.$slots,"start",{state:s.currentState})],16)):y("",!0),(r(!0),o(m,null,f(n,(function(n){return r(),o(m,{key:n},["FirstPageLink"===n?(r(),u(l,{key:0,"aria-label":s.getAriaLabel("firstPageLabel"),template:t.$slots.firstpagelinkicon,onClick:e[0]||(e[0]=function(t){return s.changePageToFirst(t)}),disabled:s.isFirstPage||s.empty,pt:t.pt},null,8,["aria-label","template","disabled","pt"])):"PrevPageLink"===n?(r(),u(g,{key:1,"aria-label":s.getAriaLabel("prevPageLabel"),template:t.$slots.prevpagelinkicon,onClick:e[1]||(e[1]=function(t){return s.changePageToPrev(t)}),disabled:s.isFirstPage||s.empty,pt:t.pt},null,8,["aria-label","template","disabled","pt"])):"NextPageLink"===n?(r(),u(d,{key:2,"aria-label":s.getAriaLabel("nextPageLabel"),template:t.$slots.nextpagelinkicon,onClick:e[2]||(e[2]=function(t){return s.changePageToNext(t)}),disabled:s.isLastPage||s.empty,pt:t.pt},null,8,["aria-label","template","disabled","pt"])):"LastPageLink"===n?(r(),u(h,{key:3,"aria-label":s.getAriaLabel("lastPageLabel"),template:t.$slots.lastpagelinkicon,onClick:e[3]||(e[3]=function(t){return s.changePageToLast(t)}),disabled:s.isLastPage||s.empty,pt:t.pt},null,8,["aria-label","template","disabled","pt"])):"PageLinks"===n?(r(),u(v,{key:4,"aria-label":s.getAriaLabel("pageLabel"),value:s.pageLinks,page:s.page,onClick:e[4]||(e[4]=function(t){return s.changePageLink(t)}),pt:t.pt},null,8,["aria-label","value","page","pt"])):"CurrentPageReport"===n?(r(),u(w,{key:5,"aria-live":"polite",template:t.currentPageReportTemplate,currentPage:s.currentPage,page:s.page,pageCount:s.pageCount,first:p.d_first,rows:p.d_rows,totalRecords:t.totalRecords,pt:t.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","pt"])):"RowsPerPageDropdown"===n&&t.rowsPerPageOptions?(r(),u(k,{key:6,"aria-label":s.getAriaLabel("rowsPerPageLabel"),rows:p.d_rows,options:t.rowsPerPageOptions,onRowsChange:e[5]||(e[5]=function(t){return s.onRowChange(t)}),disabled:s.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","rows","options","disabled","unstyled","pt"])):"JumpToPageDropdown"===n?(r(),u(L,{key:7,"aria-label":s.getAriaLabel("jumpToPageDropdownLabel"),page:s.page,pageCount:s.pageCount,onPageChange:e[6]||(e[6]=function(t){return s.changePage(t)}),disabled:s.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","page","pageCount","disabled","unstyled","pt"])):"JumpToPageInput"===n?(r(),u(x,{key:8,page:s.currentPage,onPageChange:e[7]||(e[7]=function(t){return s.changePage(t)}),disabled:s.empty,unstyled:t.unstyled,pt:t.pt},null,8,["page","disabled","unstyled","pt"])):y("",!0)],64)})),128)),t.$slots.end?(r(),o("div",i({key:1,class:t.cx("end")},t.ptm("end")),[b(t.$slots,"end",{state:s.currentState})],16)):y("",!0)],16)})),128))],16)):y("",!0)};export{tt as default};
1
+ import{DomHandler as t,UniqueComponentId as e}from"primevue/utils";import n from"primevue/basecomponent";import{useStyle as a}from"primevue/usestyle";import{openBlock as r,createElementBlock as o,mergeProps as i,toDisplayString as s,resolveDirective as p,withDirectives as l,createBlock as u,resolveDynamicComponent as g,resolveComponent as c,normalizeClass as d,createSlots as m,withCtx as f,Fragment as h,renderList as P,createTextVNode as b,normalizeProps as y,renderSlot as v,createCommentVNode as w}from"vue";import k from"primevue/icons/angledoubleleft";import L from"primevue/ripple";import x from"primevue/dropdown";import T from"primevue/inputnumber";import C from"primevue/icons/angledoubleright";import S from"primevue/icons/angleright";import I from"primevue/icons/angleleft";function $(t){return $="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},$(t)}function A(t,e,n){return(e=N(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t){var e=O(t,"string");return"symbol"===$(e)?e:String(e)}function O(t,e){if("object"!==$(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==$(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var j={paginator:function(t){var e=t.instance,n=t.key;return["p-paginator p-component",A({"p-paginator-default":!e.hasBreakpoints()},"p-paginator-".concat(n),e.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(t){return["p-paginator-first p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(t){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(t){return["p-paginator-next p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(t){return["p-paginator-last p-paginator-element p-link",{"p-disabled":t.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(t){return["p-paginator-page p-paginator-element p-link",{"p-highlight":t.pageLink-1===t.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},R=a("\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n \n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n \n .p-paginator-left-content {\n margin-right: auto;\n }\n \n .p-paginator-right-content {\n margin-left: auto;\n }\n \n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n",{name:"paginator",manual:!0}),D={name:"BasePaginator",extends:n,props:{totalRecords:{type:Number,default:0},rows:{type:Number,default:0},first:{type:Number,default:0},pageLinkSize:{type:Number,default:5},rowsPerPageOptions:{type:Array,default:null},template:{type:[Object,String],default:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"},currentPageReportTemplate:{type:null,default:"({currentPage} of {totalPages})"},alwaysShow:{type:Boolean,default:!0}},css:{classes:j,loadStyle:R.load},provide:function(){return{$parentInstance:this}}},B={name:"CurrentPageReport",hostName:"Paginator",extends:n,props:{pageCount:{type:Number,default:0},currentPage:{type:Number,default:0},page:{type:Number,default:0},first:{type:Number,default:0},rows:{type:Number,default:0},totalRecords:{type:Number,default:0},template:{type:String,default:"({currentPage} of {totalPages})"}},computed:{text:function(){var t=this.template.replace("{currentPage}",this.currentPage).replace("{totalPages}",this.pageCount).replace("{first}",this.pageCount>0?this.first+1:0).replace("{last}",Math.min(this.first+this.rows,this.totalRecords)).replace("{rows}",this.rows).replace("{totalRecords}",this.totalRecords);return t}}};B.render=function(t,e,n,a,p,l){return r(),o("span",i({class:t.cx("current")},t.ptm("current")),s(l.text),17)};var _={name:"FirstPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleLeftIcon:k},directives:{ripple:L}};_.render=function(t,e,n,a,s,c){var d=p("ripple");return l((r(),o("button",i({class:t.cx("firstPageButton"),type:"button"},c.getPTOptions("firstPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleDoubleLeftIcon"),i({class:t.cx("firstPageIcon")},c.getPTOptions("firstPageIcon")),null,16,["class"]))],16)),[[d]])};var F={name:"JumpToPageDropdown",hostName:"Paginator",extends:n,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean,templates:null},methods:{onChange:function(t){this.$emit("page-change",t)}},computed:{pageOptions:function(){for(var t=[],e=0;e<this.pageCount;e++)t.push({label:String(e+1),value:e});return t}},components:{JTPDropdown:x}};F.render=function(t,e,n,a,o,i){var s=c("JTPDropdown");return r(),u(s,{modelValue:n.page,options:i.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(t){return i.onChange(t)}),class:d(t.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("jumpToPageDropdown"),"data-pc-section":"jumptopagedropdown","data-pc-group-section":"pagedropdown"},m({_:2},[n.templates.jumptopagedropdownicon?{name:"dropdownicon",fn:f((function(t){return[(r(),u(g(n.templates.jumptopagedropdownicon),{class:d(t.class)},null,8,["class"]))]})),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])};var E={name:"JumpToPageInput",hostName:"Paginator",extends:n,inheritAttrs:!1,emits:["page-change"],props:{page:Number,pageCount:Number,disabled:Boolean},data:function(){return{d_page:this.page}},watch:{page:function(t){this.d_page=t}},methods:{onChange:function(t){t!==this.page&&(this.d_page=t,this.$emit("page-change",t-1))}},computed:{inputArialabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.jumpToPageInputLabel:void 0}},components:{JTPInput:T}};E.render=function(t,e,n,a,o,i){var s=c("JTPInput");return r(),u(s,{ref:"jtpInput",modelValue:o.d_page,class:d(t.cx("jumpToPageInput")),"aria-label":i.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":i.onChange,unstyled:t.unstyled,pt:t.ptm("jumpToPageInput"),"data-pc-section":"jumptopageinput"},null,8,["modelValue","class","aria-label","disabled","onUpdate:modelValue","unstyled","pt"])};var J={name:"LastPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleDoubleRightIcon:C},directives:{ripple:L}};J.render=function(t,e,n,a,s,c){var d=p("ripple");return l((r(),o("button",i({class:t.cx("lastPageButton"),type:"button"},c.getPTOptions("lastPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleDoubleRightIcon"),i({class:t.cx("lastPageIcon")},c.getPTOptions("lastPageIcon")),null,16,["class"]))],16)),[[d]])};var V={name:"NextPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleRightIcon:S},directives:{ripple:L}};V.render=function(t,e,n,a,s,c){var d=p("ripple");return l((r(),o("button",i({class:t.cx("nextPageButton"),type:"button"},c.getPTOptions("nextPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleRightIcon"),i({class:t.cx("nextPageIcon")},c.getPTOptions("nextPageIcon")),null,16,["class"]))],16)),[[d]])};var M={name:"PageLinks",hostName:"Paginator",extends:n,inheritAttrs:!1,emits:["click"],props:{value:Array,page:Number},methods:{getPTOptions:function(t,e){return this.ptm(e,{context:{active:t===this.page}})},onPageLinkClick:function(t,e){this.$emit("click",{originalEvent:t,value:e})},ariaPageLabel:function(t){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,t):void 0}},directives:{ripple:L}},U=["aria-label","aria-current","onClick","data-p-highlight"];M.render=function(t,e,n,a,u,g){var c=p("ripple");return r(),o("span",i({class:t.cx("pages")},t.ptm("pages")),[(r(!0),o(h,null,P(n.value,(function(e){return l((r(),o("button",i({key:e,class:t.cx("pageButton",{pageLink:e}),type:"button","aria-label":g.ariaPageLabel(e),"aria-current":e-1===n.page?"page":void 0,onClick:function(t){return g.onPageLinkClick(t,e)}},g.getPTOptions(e-1,"pageButton"),{"data-p-highlight":e-1===n.page}),[b(s(e),1)],16,U)),[[c]])})),128))],16)};var z={name:"PrevPageLink",hostName:"Paginator",extends:n,props:{template:{type:Function,default:null}},methods:{getPTOptions:function(t){return this.ptm(t,{context:{disabled:this.$attrs.disabled}})}},components:{AngleLeftIcon:I},directives:{ripple:L}};z.render=function(t,e,n,a,s,c){var d=p("ripple");return l((r(),o("button",i({class:t.cx("previousPageButton"),type:"button"},c.getPTOptions("previousPageButton"),{"data-pc-group-section":"pagebutton"}),[(r(),u(g(n.template||"AngleLeftIcon"),i({class:t.cx("previousPageIcon")},c.getPTOptions("previousPageIcon")),null,16,["class"]))],16)),[[d]])};var H={name:"RowsPerPageDropdown",hostName:"Paginator",extends:n,emits:["rows-change"],props:{options:Array,rows:Number,disabled:Boolean,templates:null},methods:{onChange:function(t){this.$emit("rows-change",t)}},computed:{rowsOptions:function(){var t=[];if(this.options)for(var e=0;e<this.options.length;e++)t.push({label:String(this.options[e]),value:this.options[e]});return t}},components:{RPPDropdown:x}};function W(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function G(t){if(Array.isArray(t))return Z(t)}function K(t){return K="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},K(t)}function Q(t,e){return et(t)||tt(t,e)||Y(t,e)||X()}function X(){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 Y(t,e){if(t){if("string"==typeof t)return Z(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)?Z(t,e):void 0}}function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function tt(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,o,i,s=[],p=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;p=!1}else for(;!(p=(a=o.call(n)).done)&&(s.push(a.value),s.length!==e);p=!0);}catch(t){l=!0,r=t}finally{try{if(!p&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw r}}return s}}function et(t){if(Array.isArray(t))return t}H.render=function(t,e,n,a,o,i){var s=c("RPPDropdown");return r(),u(s,{modelValue:n.rows,options:i.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(t){return i.onChange(t)}),class:d(t.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown","data-pc-group-section":"pagedropdown"},m({_:2},[n.templates.rowsperpagedropdownicon?{name:"dropdownicon",fn:f((function(t){return[(r(),u(g(n.templates.rowsperpagedropdownicon),{class:d(t.class)},null,8,["class"]))]})),key:"0"}:void 0]),1032,["modelValue","options","class","disabled","unstyled","pt"])};var nt={name:"Paginator",extends:D,emits:["update:first","update:rows","page"],data:function(){return{d_first:this.first,d_rows:this.rows}},watch:{first:function(t){this.d_first=t},rows:function(t){this.d_rows=t},totalRecords:function(t){this.page>0&&t&&this.d_first>=t&&this.changePage(this.pageCount-1)}},mounted:function(){this.setPaginatorAttribute(),this.createStyle()},methods:{changePage:function(t){var e=this.pageCount;if(t>=0&&t<e){this.d_first=this.d_rows*t;var n={page:t,first:this.d_first,rows:this.d_rows,pageCount:e};this.$emit("update:first",this.d_first),this.$emit("update:rows",this.d_rows),this.$emit("page",n)}},changePageToFirst:function(t){this.isFirstPage||this.changePage(0),t.preventDefault()},changePageToPrev:function(t){this.changePage(this.page-1),t.preventDefault()},changePageLink:function(t){this.changePage(t.value-1),t.originalEvent.preventDefault()},changePageToNext:function(t){this.changePage(this.page+1),t.preventDefault()},changePageToLast:function(t){this.isLastPage||this.changePage(this.pageCount-1),t.preventDefault()},onRowChange:function(t){this.d_rows=t,this.changePage(this.page)},createStyle:function(){var e=this;if(this.hasBreakpoints()&&!this.isUnstyled){var n;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",t.setAttribute(this.styleElement,"nonce",null===(n=this.$primevue)||void 0===n||null===(n=n.config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce),document.head.appendChild(this.styleElement);var a="",r=Object.keys(this.template),o={};r.sort((function(t,e){return parseInt(t)-parseInt(e)})).forEach((function(t){o[t]=e.template[t]}));for(var i=0,s=Object.entries(Object.entries(o));i<s.length;i++){var p=Q(s[i],2),l=p[0],u=Q(p[1],1)[0],g=Object.entries(o)[l-1]?"and (min-width:".concat(Object.keys(o)[l-1],")"):"";a+="default"===u?"\n @media screen ".concat(g," {\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: flex !important;\n }\n }\n "):"\n .paginator[".concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: none !important;\n }\n @media screen ").concat(g," and (max-width: ").concat(u,") {\n .paginator[").concat(this.attributeSelector,"], .p-paginator-").concat(u," {\n display: flex !important;\n }\n .paginator[").concat(this.attributeSelector,"],\n .p-paginator-default{\n display: none !important;\n }\n }\n ")}this.styleElement.innerHTML=a}},hasBreakpoints:function(){return"object"===K(this.template)},setPaginatorAttribute:function(){var t,e=this;this.$refs.paginator&&this.$refs.paginator.length>=0&&(t=this.$refs.paginator,G(t)||q(t)||Y(t)||W()).forEach((function(t){t.setAttribute(e.attributeSelector,"")}))},getAriaLabel:function(t){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[t]:void 0}},computed:{templateItems:function(){var t={};if(this.hasBreakpoints()){for(var e in(t=this.template).default||(t.default="FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown"),t)t[e]=this.template[e].split(" ").map((function(t){return t.trim()}));return t}return t.default=this.template.split(" ").map((function(t){return t.trim()})),t},page:function(){return Math.floor(this.d_first/this.d_rows)},pageCount:function(){return Math.ceil(this.totalRecords/this.d_rows)},isFirstPage:function(){return 0===this.page},isLastPage:function(){return this.page===this.pageCount-1},calculatePageLinkBoundaries:function(){var t=this.pageCount,e=Math.min(this.pageLinkSize,t),n=Math.max(0,Math.ceil(this.page-e/2)),a=Math.min(t-1,n+e-1);return[n=Math.max(0,n-(this.pageLinkSize-(a-n+1))),a]},pageLinks:function(){for(var t=[],e=this.calculatePageLinkBoundaries,n=e[1],a=e[0];a<=n;a++)t.push(a+1);return t},currentState:function(){return{page:this.page,first:this.d_first,rows:this.d_rows}},empty:function(){return 0===this.pageCount},currentPage:function(){return this.pageCount>0?this.page+1:0},attributeSelector:function(){return e()}},components:{CurrentPageReport:B,FirstPageLink:_,LastPageLink:J,NextPageLink:V,PageLinks:M,PrevPageLink:z,RowsPerPageDropdown:H,JumpToPageDropdown:F,JumpToPageInput:E}};nt.render=function(t,e,n,a,s,p){var l=c("FirstPageLink"),g=c("PrevPageLink"),d=c("NextPageLink"),m=c("LastPageLink"),f=c("PageLinks"),b=c("CurrentPageReport"),k=c("RowsPerPageDropdown"),L=c("JumpToPageDropdown"),x=c("JumpToPageInput");return t.alwaysShow||p.pageLinks&&p.pageLinks.length>1?(r(),o("nav",y(i({key:0},t.ptm("paginatorWrapper"))),[(r(!0),o(h,null,P(p.templateItems,(function(n,a){return r(),o("div",i({key:a,ref_for:!0,ref:"paginator",class:t.cx("paginator",{key:a})},t.ptm("root"),{"data-pc-name":"paginator"}),[t.$slots.start?(r(),o("div",i({key:0,class:t.cx("start")},t.ptm("start")),[v(t.$slots,"start",{state:p.currentState})],16)):w("",!0),(r(!0),o(h,null,P(n,(function(n){return r(),o(h,{key:n},["FirstPageLink"===n?(r(),u(l,{key:0,"aria-label":p.getAriaLabel("firstPageLabel"),template:t.$slots.firstpagelinkicon,onClick:e[0]||(e[0]=function(t){return p.changePageToFirst(t)}),disabled:p.isFirstPage||p.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"PrevPageLink"===n?(r(),u(g,{key:1,"aria-label":p.getAriaLabel("prevPageLabel"),template:t.$slots.prevpagelinkicon,onClick:e[1]||(e[1]=function(t){return p.changePageToPrev(t)}),disabled:p.isFirstPage||p.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"NextPageLink"===n?(r(),u(d,{key:2,"aria-label":p.getAriaLabel("nextPageLabel"),template:t.$slots.nextpagelinkicon,onClick:e[2]||(e[2]=function(t){return p.changePageToNext(t)}),disabled:p.isLastPage||p.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"LastPageLink"===n?(r(),u(m,{key:3,"aria-label":p.getAriaLabel("lastPageLabel"),template:t.$slots.lastpagelinkicon,onClick:e[3]||(e[3]=function(t){return p.changePageToLast(t)}),disabled:p.isLastPage||p.empty,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","template","disabled","unstyled","pt"])):"PageLinks"===n?(r(),u(f,{key:4,"aria-label":p.getAriaLabel("pageLabel"),value:p.pageLinks,page:p.page,onClick:e[4]||(e[4]=function(t){return p.changePageLink(t)}),pt:t.pt},null,8,["aria-label","value","page","pt"])):"CurrentPageReport"===n?(r(),u(b,{key:5,"aria-live":"polite",template:t.currentPageReportTemplate,currentPage:p.currentPage,page:p.page,pageCount:p.pageCount,first:s.d_first,rows:s.d_rows,totalRecords:t.totalRecords,unstyled:t.unstyled,pt:t.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","unstyled","pt"])):"RowsPerPageDropdown"===n&&t.rowsPerPageOptions?(r(),u(k,{key:6,"aria-label":p.getAriaLabel("rowsPerPageLabel"),rows:s.d_rows,options:t.rowsPerPageOptions,onRowsChange:e[5]||(e[5]=function(t){return p.onRowChange(t)}),disabled:p.empty,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","rows","options","disabled","templates","unstyled","pt"])):"JumpToPageDropdown"===n?(r(),u(L,{key:7,"aria-label":p.getAriaLabel("jumpToPageDropdownLabel"),page:p.page,pageCount:p.pageCount,onPageChange:e[6]||(e[6]=function(t){return p.changePage(t)}),disabled:p.empty,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","page","pageCount","disabled","templates","unstyled","pt"])):"JumpToPageInput"===n?(r(),u(x,{key:8,page:p.currentPage,onPageChange:e[7]||(e[7]=function(t){return p.changePage(t)}),disabled:p.empty,unstyled:t.unstyled,pt:t.pt},null,8,["page","disabled","unstyled","pt"])):w("",!0)],64)})),128)),t.$slots.end?(r(),o("div",i({key:1,class:t.cx("end")},t.ptm("end")),[v(t.$slots,"end",{state:p.currentState})],16)):w("",!0)],16)})),128))],16)):w("",!0)};export{nt as default};
@@ -17,7 +17,7 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
17
17
  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; }
18
18
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
19
19
  function _toPrimitive(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
- var styles = "\n.p-paginator-default {\n display: flex;\n}\n\n.p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-paginator-left-content {\n margin-right: auto;\n}\n\n.p-paginator-right-content {\n margin-left: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n";
20
+ var styles = "\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n \n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n \n .p-paginator-left-content {\n margin-right: auto;\n }\n \n .p-paginator-right-content {\n margin-left: auto;\n }\n \n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n";
21
21
  var classes = {
22
22
  paginator: function paginator(_ref) {
23
23
  var instance = _ref.instance,
@@ -221,7 +221,8 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
221
221
  props: {
222
222
  page: Number,
223
223
  pageCount: Number,
224
- disabled: Boolean
224
+ disabled: Boolean,
225
+ templates: null
225
226
  },
226
227
  methods: {
227
228
  onChange: function onChange(value) {
@@ -261,7 +262,17 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
261
262
  pt: _ctx.ptm('jumpToPageDropdown'),
262
263
  "data-pc-section": "jumptopagedropdown",
263
264
  "data-pc-group-section": "pagedropdown"
264
- }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
265
+ }, vue.createSlots({
266
+ _: 2
267
+ }, [$props.templates['jumptopagedropdownicon'] ? {
268
+ name: "dropdownicon",
269
+ fn: vue.withCtx(function (slotProps) {
270
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['jumptopagedropdownicon']), {
271
+ "class": vue.normalizeClass(slotProps["class"])
272
+ }, null, 8, ["class"]))];
273
+ }),
274
+ key: "0"
275
+ } : undefined]), 1032, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
265
276
  }
266
277
 
267
278
  script$7.render = render$7;
@@ -511,7 +522,8 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
511
522
  props: {
512
523
  options: Array,
513
524
  rows: Number,
514
- disabled: Boolean
525
+ disabled: Boolean,
526
+ templates: null
515
527
  },
516
528
  methods: {
517
529
  onChange: function onChange(value) {
@@ -553,7 +565,17 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
553
565
  pt: _ctx.ptm('rowPerPageDropdown'),
554
566
  "data-pc-section": "rowperpagedropdown",
555
567
  "data-pc-group-section": "pagedropdown"
556
- }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
568
+ }, vue.createSlots({
569
+ _: 2
570
+ }, [$props.templates['rowsperpagedropdownicon'] ? {
571
+ name: "dropdownicon",
572
+ fn: vue.withCtx(function (slotProps) {
573
+ return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowsperpagedropdownicon']), {
574
+ "class": vue.normalizeClass(slotProps["class"])
575
+ }, null, 8, ["class"]))];
576
+ }),
577
+ key: "0"
578
+ } : undefined]), 1032, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
557
579
  }
558
580
 
559
581
  script$1.render = render$1;
@@ -809,8 +831,9 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
809
831
  return $options.changePageToFirst($event);
810
832
  }),
811
833
  disabled: $options.isFirstPage || $options.empty,
834
+ unstyled: _ctx.unstyled,
812
835
  pt: _ctx.pt
813
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'PrevPageLink' ? (vue.openBlock(), vue.createBlock(_component_PrevPageLink, {
836
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'PrevPageLink' ? (vue.openBlock(), vue.createBlock(_component_PrevPageLink, {
814
837
  key: 1,
815
838
  "aria-label": $options.getAriaLabel('prevPageLabel'),
816
839
  template: _ctx.$slots.prevpagelinkicon,
@@ -818,8 +841,9 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
818
841
  return $options.changePageToPrev($event);
819
842
  }),
820
843
  disabled: $options.isFirstPage || $options.empty,
844
+ unstyled: _ctx.unstyled,
821
845
  pt: _ctx.pt
822
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'NextPageLink' ? (vue.openBlock(), vue.createBlock(_component_NextPageLink, {
846
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'NextPageLink' ? (vue.openBlock(), vue.createBlock(_component_NextPageLink, {
823
847
  key: 2,
824
848
  "aria-label": $options.getAriaLabel('nextPageLabel'),
825
849
  template: _ctx.$slots.nextpagelinkicon,
@@ -827,8 +851,9 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
827
851
  return $options.changePageToNext($event);
828
852
  }),
829
853
  disabled: $options.isLastPage || $options.empty,
854
+ unstyled: _ctx.unstyled,
830
855
  pt: _ctx.pt
831
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'LastPageLink' ? (vue.openBlock(), vue.createBlock(_component_LastPageLink, {
856
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'LastPageLink' ? (vue.openBlock(), vue.createBlock(_component_LastPageLink, {
832
857
  key: 3,
833
858
  "aria-label": $options.getAriaLabel('lastPageLabel'),
834
859
  template: _ctx.$slots.lastpagelinkicon,
@@ -836,8 +861,9 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
836
861
  return $options.changePageToLast($event);
837
862
  }),
838
863
  disabled: $options.isLastPage || $options.empty,
864
+ unstyled: _ctx.unstyled,
839
865
  pt: _ctx.pt
840
- }, null, 8, ["aria-label", "template", "disabled", "pt"])) : item === 'PageLinks' ? (vue.openBlock(), vue.createBlock(_component_PageLinks, {
866
+ }, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : item === 'PageLinks' ? (vue.openBlock(), vue.createBlock(_component_PageLinks, {
841
867
  key: 4,
842
868
  "aria-label": $options.getAriaLabel('pageLabel'),
843
869
  value: $options.pageLinks,
@@ -856,8 +882,9 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
856
882
  first: $data.d_first,
857
883
  rows: $data.d_rows,
858
884
  totalRecords: _ctx.totalRecords,
885
+ unstyled: _ctx.unstyled,
859
886
  pt: _ctx.pt
860
- }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "pt"])) : item === 'RowsPerPageDropdown' && _ctx.rowsPerPageOptions ? (vue.openBlock(), vue.createBlock(_component_RowsPerPageDropdown, {
887
+ }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "unstyled", "pt"])) : item === 'RowsPerPageDropdown' && _ctx.rowsPerPageOptions ? (vue.openBlock(), vue.createBlock(_component_RowsPerPageDropdown, {
861
888
  key: 6,
862
889
  "aria-label": $options.getAriaLabel('rowsPerPageLabel'),
863
890
  rows: $data.d_rows,
@@ -866,9 +893,10 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
866
893
  return $options.onRowChange($event);
867
894
  }),
868
895
  disabled: $options.empty,
896
+ templates: _ctx.$slots,
869
897
  unstyled: _ctx.unstyled,
870
898
  pt: _ctx.pt
871
- }, null, 8, ["aria-label", "rows", "options", "disabled", "unstyled", "pt"])) : item === 'JumpToPageDropdown' ? (vue.openBlock(), vue.createBlock(_component_JumpToPageDropdown, {
899
+ }, null, 8, ["aria-label", "rows", "options", "disabled", "templates", "unstyled", "pt"])) : item === 'JumpToPageDropdown' ? (vue.openBlock(), vue.createBlock(_component_JumpToPageDropdown, {
872
900
  key: 7,
873
901
  "aria-label": $options.getAriaLabel('jumpToPageDropdownLabel'),
874
902
  page: $options.page,
@@ -877,9 +905,10 @@ this.primevue.paginator = (function (utils, BaseComponent, usestyle, vue, AngleD
877
905
  return $options.changePage($event);
878
906
  }),
879
907
  disabled: $options.empty,
908
+ templates: _ctx.$slots,
880
909
  unstyled: _ctx.unstyled,
881
910
  pt: _ctx.pt
882
- }, null, 8, ["aria-label", "page", "pageCount", "disabled", "unstyled", "pt"])) : item === 'JumpToPageInput' ? (vue.openBlock(), vue.createBlock(_component_JumpToPageInput, {
911
+ }, null, 8, ["aria-label", "page", "pageCount", "disabled", "templates", "unstyled", "pt"])) : item === 'JumpToPageInput' ? (vue.openBlock(), vue.createBlock(_component_JumpToPageInput, {
883
912
  key: 8,
884
913
  page: $options.currentPage,
885
914
  onPageChange: _cache[7] || (_cache[7] = function ($event) {