primevue 3.32.2 → 3.34.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 (426) hide show
  1. package/accordion/Accordion.d.ts +21 -2
  2. package/accordion/accordion.cjs.js +3 -3
  3. package/accordion/accordion.esm.js +3 -3
  4. package/accordion/accordion.js +3 -3
  5. package/accordiontab/AccordionTab.d.ts +24 -2
  6. package/autocomplete/AutoComplete.d.ts +24 -2
  7. package/autocomplete/AutoComplete.vue +1 -1
  8. package/autocomplete/autocomplete.cjs.js +5 -5
  9. package/autocomplete/autocomplete.cjs.min.js +1 -1
  10. package/autocomplete/autocomplete.esm.js +5 -5
  11. package/autocomplete/autocomplete.esm.min.js +1 -1
  12. package/autocomplete/autocomplete.js +5 -5
  13. package/autocomplete/autocomplete.min.js +1 -1
  14. package/avatar/Avatar.d.ts +21 -2
  15. package/avatargroup/AvatarGroup.d.ts +8 -2
  16. package/badge/Badge.d.ts +18 -2
  17. package/badgedirective/BadgeDirective.d.ts +12 -2
  18. package/badgedirective/badgedirective.cjs.js +3 -3
  19. package/badgedirective/badgedirective.esm.js +3 -3
  20. package/badgedirective/badgedirective.js +3 -3
  21. package/basecomponent/BaseComponent.vue +20 -22
  22. package/basecomponent/basecomponent.cjs.js +41 -28
  23. package/basecomponent/basecomponent.cjs.min.js +1 -1
  24. package/basecomponent/basecomponent.esm.js +41 -28
  25. package/basecomponent/basecomponent.esm.min.js +1 -1
  26. package/basecomponent/basecomponent.js +41 -28
  27. package/basecomponent/basecomponent.min.js +1 -1
  28. package/basedirective/basedirective.cjs.js +42 -25
  29. package/basedirective/basedirective.cjs.min.js +1 -1
  30. package/basedirective/basedirective.esm.js +42 -25
  31. package/basedirective/basedirective.esm.min.js +1 -1
  32. package/basedirective/basedirective.js +42 -25
  33. package/basedirective/basedirective.min.js +1 -1
  34. package/blockui/BlockUI.d.ts +21 -2
  35. package/breadcrumb/Breadcrumb.d.ts +47 -2
  36. package/breadcrumb/Breadcrumb.vue +7 -2
  37. package/breadcrumb/BreadcrumbItem.vue +28 -3
  38. package/breadcrumb/breadcrumb.cjs.js +35 -8
  39. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  40. package/breadcrumb/breadcrumb.esm.js +36 -9
  41. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  42. package/breadcrumb/breadcrumb.js +35 -8
  43. package/breadcrumb/breadcrumb.min.js +1 -1
  44. package/button/Button.d.ts +24 -2
  45. package/button/button.cjs.js +1 -1
  46. package/button/button.esm.js +1 -1
  47. package/button/button.js +1 -1
  48. package/calendar/Calendar.d.ts +26 -4
  49. package/calendar/Calendar.vue +63 -29
  50. package/calendar/calendar.cjs.js +137 -51
  51. package/calendar/calendar.cjs.min.js +1 -1
  52. package/calendar/calendar.esm.js +137 -51
  53. package/calendar/calendar.esm.min.js +1 -1
  54. package/calendar/calendar.js +137 -51
  55. package/calendar/calendar.min.js +1 -1
  56. package/card/Card.d.ts +8 -2
  57. package/carousel/Carousel.d.ts +24 -2
  58. package/carousel/Carousel.vue +22 -2
  59. package/carousel/carousel.cjs.js +9 -5
  60. package/carousel/carousel.cjs.min.js +1 -1
  61. package/carousel/carousel.esm.js +9 -5
  62. package/carousel/carousel.esm.min.js +1 -1
  63. package/carousel/carousel.js +9 -5
  64. package/carousel/carousel.min.js +1 -1
  65. package/cascadeselect/CascadeSelect.d.ts +21 -2
  66. package/cascadeselect/cascadeselect.cjs.js +3 -3
  67. package/cascadeselect/cascadeselect.esm.js +3 -3
  68. package/cascadeselect/cascadeselect.js +3 -3
  69. package/chart/Chart.d.ts +18 -2
  70. package/chart/chart.cjs.js +3 -3
  71. package/chart/chart.esm.js +3 -3
  72. package/chart/chart.js +3 -3
  73. package/checkbox/Checkbox.d.ts +24 -2
  74. package/checkbox/checkbox.cjs.js +3 -3
  75. package/checkbox/checkbox.esm.js +3 -3
  76. package/checkbox/checkbox.js +3 -3
  77. package/chip/Chip.d.ts +21 -2
  78. package/chips/Chips.d.ts +21 -2
  79. package/chips/chips.cjs.js +3 -3
  80. package/chips/chips.esm.js +3 -3
  81. package/chips/chips.js +3 -3
  82. package/colorpicker/ColorPicker.d.ts +21 -2
  83. package/column/Column.d.ts +24 -2
  84. package/columngroup/ColumnGroup.d.ts +24 -2
  85. package/config/PrimeVue.d.ts +93 -92
  86. package/config/config.cjs.js +4 -3
  87. package/config/config.cjs.min.js +1 -1
  88. package/config/config.esm.js +4 -3
  89. package/config/config.esm.min.js +1 -1
  90. package/config/config.js +4 -3
  91. package/config/config.min.js +1 -1
  92. package/confirmdialog/ConfirmDialog.d.ts +21 -2
  93. package/confirmpopup/ConfirmPopup.d.ts +21 -2
  94. package/confirmpopup/confirmpopup.cjs.js +3 -3
  95. package/confirmpopup/confirmpopup.esm.js +3 -3
  96. package/confirmpopup/confirmpopup.js +3 -3
  97. package/contextmenu/ContextMenu.d.ts +54 -2
  98. package/contextmenu/ContextMenu.vue +13 -7
  99. package/contextmenu/ContextMenuSub.vue +34 -2
  100. package/contextmenu/contextmenu.cjs.js +41 -14
  101. package/contextmenu/contextmenu.cjs.min.js +1 -1
  102. package/contextmenu/contextmenu.esm.js +42 -15
  103. package/contextmenu/contextmenu.esm.min.js +1 -1
  104. package/contextmenu/contextmenu.js +41 -14
  105. package/contextmenu/contextmenu.min.js +1 -1
  106. package/core/core.js +256 -147
  107. package/core/core.min.js +12 -12
  108. package/datatable/BodyCell.vue +14 -4
  109. package/datatable/DataTable.d.ts +41 -3
  110. package/datatable/DataTable.vue +6 -3
  111. package/datatable/TableBody.vue +7 -8
  112. package/datatable/datatable.cjs.js +63 -57
  113. package/datatable/datatable.cjs.min.js +1 -1
  114. package/datatable/datatable.esm.js +63 -57
  115. package/datatable/datatable.esm.min.js +1 -1
  116. package/datatable/datatable.js +63 -57
  117. package/datatable/datatable.min.js +1 -1
  118. package/dataview/DataView.d.ts +21 -2
  119. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +21 -2
  120. package/deferredcontent/DeferredContent.d.ts +21 -2
  121. package/dialog/Dialog.d.ts +21 -2
  122. package/dialog/Dialog.vue +2 -2
  123. package/dialog/dialog.cjs.js +7 -5
  124. package/dialog/dialog.cjs.min.js +1 -1
  125. package/dialog/dialog.esm.js +8 -6
  126. package/dialog/dialog.esm.min.js +1 -1
  127. package/dialog/dialog.js +7 -5
  128. package/dialog/dialog.min.js +1 -1
  129. package/divider/Divider.d.ts +18 -2
  130. package/dock/Dock.d.ts +46 -2
  131. package/dock/Dock.vue +5 -0
  132. package/dock/DockSub.vue +20 -1
  133. package/dock/dock.cjs.js +21 -2
  134. package/dock/dock.cjs.min.js +1 -1
  135. package/dock/dock.esm.js +22 -3
  136. package/dock/dock.esm.min.js +1 -1
  137. package/dock/dock.js +21 -2
  138. package/dock/dock.min.js +1 -1
  139. package/dropdown/Dropdown.d.ts +24 -2
  140. package/dropdown/dropdown.cjs.js +6 -6
  141. package/dropdown/dropdown.esm.js +6 -6
  142. package/dropdown/dropdown.js +6 -6
  143. package/editor/Editor.d.ts +22 -2
  144. package/editor/editor.cjs.js +3 -3
  145. package/editor/editor.esm.js +3 -3
  146. package/editor/editor.js +3 -3
  147. package/fieldset/Fieldset.d.ts +21 -2
  148. package/fieldset/fieldset.cjs.js +4 -4
  149. package/fieldset/fieldset.esm.js +4 -4
  150. package/fieldset/fieldset.js +4 -4
  151. package/fileupload/FileContent.vue +8 -6
  152. package/fileupload/FileUpload.d.ts +21 -2
  153. package/fileupload/FileUpload.vue +9 -7
  154. package/fileupload/fileupload.cjs.js +17 -13
  155. package/fileupload/fileupload.cjs.min.js +1 -1
  156. package/fileupload/fileupload.esm.js +17 -13
  157. package/fileupload/fileupload.esm.min.js +1 -1
  158. package/fileupload/fileupload.js +17 -13
  159. package/fileupload/fileupload.min.js +1 -1
  160. package/focustrap/FocusTrap.d.ts +8 -2
  161. package/galleria/Galleria.d.ts +24 -2
  162. package/galleria/galleria.cjs.js +9 -9
  163. package/galleria/galleria.esm.js +9 -9
  164. package/galleria/galleria.js +9 -9
  165. package/image/Image.d.ts +21 -2
  166. package/image/image.cjs.js +3 -3
  167. package/image/image.esm.js +3 -3
  168. package/image/image.js +3 -3
  169. package/inlinemessage/InlineMessage.d.ts +21 -2
  170. package/inplace/Inplace.d.ts +21 -2
  171. package/inplace/inplace.cjs.js +3 -3
  172. package/inplace/inplace.esm.js +3 -3
  173. package/inplace/inplace.js +3 -3
  174. package/inputmask/InputMask.d.ts +21 -2
  175. package/inputmask/InputMask.vue +3 -1
  176. package/inputmask/inputmask.cjs.js +2 -1
  177. package/inputmask/inputmask.cjs.min.js +1 -1
  178. package/inputmask/inputmask.esm.js +2 -1
  179. package/inputmask/inputmask.esm.min.js +1 -1
  180. package/inputmask/inputmask.js +2 -1
  181. package/inputmask/inputmask.min.js +1 -1
  182. package/inputnumber/InputNumber.d.ts +21 -2
  183. package/inputnumber/inputnumber.cjs.js +6 -6
  184. package/inputnumber/inputnumber.esm.js +6 -6
  185. package/inputnumber/inputnumber.js +6 -6
  186. package/inputswitch/InputSwitch.d.ts +21 -2
  187. package/inputswitch/inputswitch.cjs.js +3 -3
  188. package/inputswitch/inputswitch.esm.js +3 -3
  189. package/inputswitch/inputswitch.js +3 -3
  190. package/inputtext/InputText.d.ts +21 -2
  191. package/knob/Knob.d.ts +21 -2
  192. package/listbox/Listbox.d.ts +24 -2
  193. package/listbox/listbox.cjs.js +3 -3
  194. package/listbox/listbox.esm.js +3 -3
  195. package/listbox/listbox.js +3 -3
  196. package/megamenu/MegaMenu.d.ts +58 -2
  197. package/megamenu/MegaMenu.vue +6 -30
  198. package/megamenu/MegaMenuSub.vue +34 -3
  199. package/megamenu/megamenu.cjs.js +36 -39
  200. package/megamenu/megamenu.cjs.min.js +1 -1
  201. package/megamenu/megamenu.esm.js +37 -40
  202. package/megamenu/megamenu.esm.min.js +1 -1
  203. package/megamenu/megamenu.js +36 -39
  204. package/megamenu/megamenu.min.js +1 -1
  205. package/menu/Menu.d.ts +60 -2
  206. package/menu/Menu.vue +6 -1
  207. package/menu/Menuitem.vue +26 -1
  208. package/menu/menu.cjs.js +29 -7
  209. package/menu/menu.cjs.min.js +1 -1
  210. package/menu/menu.esm.js +30 -8
  211. package/menu/menu.esm.min.js +1 -1
  212. package/menu/menu.js +29 -7
  213. package/menu/menu.min.js +1 -1
  214. package/menubar/Menubar.d.ts +62 -2
  215. package/menubar/Menubar.vue +6 -0
  216. package/menubar/MenubarSub.vue +32 -1
  217. package/menubar/menubar.cjs.js +34 -6
  218. package/menubar/menubar.cjs.min.js +1 -1
  219. package/menubar/menubar.esm.js +35 -7
  220. package/menubar/menubar.esm.min.js +1 -1
  221. package/menubar/menubar.js +34 -6
  222. package/menubar/menubar.min.js +1 -1
  223. package/menuitem/MenuItem.d.ts +1 -0
  224. package/message/Message.d.ts +21 -2
  225. package/message/message.cjs.js +3 -3
  226. package/message/message.esm.js +3 -3
  227. package/message/message.js +3 -3
  228. package/multiselect/MultiSelect.d.ts +24 -2
  229. package/multiselect/multiselect.cjs.js +6 -6
  230. package/multiselect/multiselect.esm.js +6 -6
  231. package/multiselect/multiselect.js +6 -6
  232. package/orderlist/OrderList.d.ts +24 -2
  233. package/orderlist/OrderList.vue +7 -5
  234. package/orderlist/orderlist.cjs.js +10 -8
  235. package/orderlist/orderlist.cjs.min.js +1 -1
  236. package/orderlist/orderlist.esm.js +10 -8
  237. package/orderlist/orderlist.esm.min.js +1 -1
  238. package/orderlist/orderlist.js +10 -8
  239. package/orderlist/orderlist.min.js +1 -1
  240. package/organizationchart/OrganizationChart.d.ts +24 -2
  241. package/organizationchart/organizationchart.cjs.js +4 -4
  242. package/organizationchart/organizationchart.esm.js +4 -4
  243. package/organizationchart/organizationchart.js +4 -4
  244. package/overlaypanel/OverlayPanel.d.ts +21 -2
  245. package/overlaypanel/overlaypanel.cjs.js +3 -3
  246. package/overlaypanel/overlaypanel.esm.js +3 -3
  247. package/overlaypanel/overlaypanel.js +3 -3
  248. package/package.json +1 -1
  249. package/paginator/FirstPageLink.vue +1 -1
  250. package/paginator/JumpToPageDropdown.vue +1 -0
  251. package/paginator/LastPageLink.vue +1 -1
  252. package/paginator/NextPageLink.vue +1 -1
  253. package/paginator/Paginator.d.ts +24 -2
  254. package/paginator/PrevPageLink.vue +1 -1
  255. package/paginator/RowsPerPageDropdown.vue +1 -0
  256. package/paginator/paginator.cjs.js +19 -9
  257. package/paginator/paginator.cjs.min.js +1 -1
  258. package/paginator/paginator.esm.js +19 -9
  259. package/paginator/paginator.esm.min.js +1 -1
  260. package/paginator/paginator.js +19 -9
  261. package/paginator/paginator.min.js +1 -1
  262. package/panel/Panel.d.ts +21 -2
  263. package/panel/panel.cjs.js +3 -3
  264. package/panel/panel.esm.js +3 -3
  265. package/panel/panel.js +3 -3
  266. package/panelmenu/PanelMenu.d.ts +58 -2
  267. package/panelmenu/PanelMenu.vue +6 -0
  268. package/panelmenu/PanelMenuList.vue +1 -0
  269. package/panelmenu/PanelMenuSub.vue +33 -1
  270. package/panelmenu/panelmenu.cjs.js +41 -12
  271. package/panelmenu/panelmenu.cjs.min.js +1 -1
  272. package/panelmenu/panelmenu.esm.js +42 -13
  273. package/panelmenu/panelmenu.esm.min.js +1 -1
  274. package/panelmenu/panelmenu.js +41 -12
  275. package/panelmenu/panelmenu.min.js +1 -1
  276. package/passthrough/index.cjs.js +15 -9
  277. package/passthrough/index.cjs.min.js +1 -1
  278. package/passthrough/index.d.ts +4 -4
  279. package/passthrough/index.esm.js +15 -9
  280. package/passthrough/index.esm.min.js +1 -1
  281. package/passthrough/index.js +15 -9
  282. package/passthrough/index.min.js +1 -1
  283. package/passthrough/tailwind/index.cjs.js +3 -3
  284. package/passthrough/tailwind/index.cjs.min.js +1 -1
  285. package/passthrough/tailwind/index.esm.js +3 -3
  286. package/passthrough/tailwind/index.esm.min.js +1 -1
  287. package/passthrough/tailwind/index.js +3 -3
  288. package/passthrough/tailwind/index.min.js +1 -1
  289. package/password/Password.d.ts +21 -2
  290. package/password/password.cjs.js +3 -3
  291. package/password/password.esm.js +3 -3
  292. package/password/password.js +3 -3
  293. package/picklist/PickList.d.ts +24 -2
  294. package/picklist/PickList.vue +8 -5
  295. package/picklist/picklist.cjs.js +10 -8
  296. package/picklist/picklist.cjs.min.js +1 -1
  297. package/picklist/picklist.esm.js +10 -8
  298. package/picklist/picklist.esm.min.js +1 -1
  299. package/picklist/picklist.js +10 -8
  300. package/picklist/picklist.min.js +1 -1
  301. package/progressbar/ProgressBar.d.ts +18 -2
  302. package/progressspinner/ProgressSpinner.d.ts +18 -2
  303. package/radiobutton/RadioButton.d.ts +21 -2
  304. package/radiobutton/radiobutton.cjs.js +3 -3
  305. package/radiobutton/radiobutton.esm.js +3 -3
  306. package/radiobutton/radiobutton.js +3 -3
  307. package/rating/Rating.d.ts +24 -2
  308. package/ripple/Ripple.d.ts +8 -2
  309. package/row/Row.d.ts +16 -0
  310. package/scrollpanel/ScrollPanel.d.ts +21 -2
  311. package/scrolltop/ScrollTop.d.ts +21 -2
  312. package/selectbutton/SelectButton.d.ts +24 -2
  313. package/sidebar/Sidebar.d.ts +21 -2
  314. package/sidebar/sidebar.cjs.js +3 -3
  315. package/sidebar/sidebar.esm.js +3 -3
  316. package/sidebar/sidebar.js +3 -3
  317. package/skeleton/Skeleton.d.ts +18 -2
  318. package/slider/Slider.d.ts +18 -2
  319. package/speeddial/SpeedDial.d.ts +24 -2
  320. package/speeddial/speeddial.cjs.js +4 -4
  321. package/speeddial/speeddial.esm.js +4 -4
  322. package/speeddial/speeddial.js +4 -4
  323. package/splitbutton/SplitButton.d.ts +35 -2
  324. package/splitbutton/SplitButton.vue +6 -2
  325. package/splitbutton/splitbutton.cjs.js +17 -9
  326. package/splitbutton/splitbutton.cjs.min.js +1 -1
  327. package/splitbutton/splitbutton.esm.js +18 -10
  328. package/splitbutton/splitbutton.esm.min.js +1 -1
  329. package/splitbutton/splitbutton.js +17 -9
  330. package/splitbutton/splitbutton.min.js +1 -1
  331. package/splitter/Splitter.d.ts +24 -2
  332. package/splitterpanel/SplitterPanel.d.ts +21 -2
  333. package/steps/Steps.d.ts +51 -2
  334. package/steps/Steps.vue +31 -1
  335. package/steps/steps.cjs.js +31 -3
  336. package/steps/steps.cjs.min.js +1 -1
  337. package/steps/steps.esm.js +31 -3
  338. package/steps/steps.esm.min.js +1 -1
  339. package/steps/steps.js +32 -4
  340. package/steps/steps.min.js +1 -1
  341. package/styleclass/StyleClass.d.ts +8 -2
  342. package/tabmenu/TabMenu.d.ts +50 -2
  343. package/tabmenu/TabMenu.vue +27 -1
  344. package/tabmenu/tabmenu.cjs.js +26 -3
  345. package/tabmenu/tabmenu.cjs.min.js +1 -1
  346. package/tabmenu/tabmenu.esm.js +26 -3
  347. package/tabmenu/tabmenu.esm.min.js +1 -1
  348. package/tabmenu/tabmenu.js +27 -4
  349. package/tabmenu/tabmenu.min.js +1 -1
  350. package/tabpanel/TabPanel.d.ts +24 -2
  351. package/tabview/TabView.d.ts +8 -2
  352. package/tabview/tabview.cjs.js +3 -3
  353. package/tabview/tabview.esm.js +3 -3
  354. package/tabview/tabview.js +3 -3
  355. package/tag/Tag.d.ts +18 -2
  356. package/terminal/Terminal.d.ts +21 -2
  357. package/textarea/Textarea.d.ts +21 -2
  358. package/tieredmenu/TieredMenu.d.ts +58 -2
  359. package/tieredmenu/TieredMenu.vue +6 -0
  360. package/tieredmenu/TieredMenuSub.vue +33 -1
  361. package/tieredmenu/tieredmenu.cjs.js +35 -7
  362. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  363. package/tieredmenu/tieredmenu.esm.js +36 -8
  364. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  365. package/tieredmenu/tieredmenu.js +35 -7
  366. package/tieredmenu/tieredmenu.min.js +1 -1
  367. package/timeline/Timeline.d.ts +21 -2
  368. package/toast/Toast.d.ts +21 -2
  369. package/toast/toast.cjs.js +7 -7
  370. package/toast/toast.esm.js +7 -7
  371. package/toast/toast.js +7 -7
  372. package/togglebutton/ToggleButton.d.ts +24 -2
  373. package/togglebutton/ToggleButton.vue +4 -4
  374. package/togglebutton/togglebutton.cjs.js +7 -7
  375. package/togglebutton/togglebutton.cjs.min.js +1 -1
  376. package/togglebutton/togglebutton.esm.js +7 -7
  377. package/togglebutton/togglebutton.esm.min.js +1 -1
  378. package/togglebutton/togglebutton.js +7 -7
  379. package/togglebutton/togglebutton.min.js +1 -1
  380. package/toolbar/Toolbar.d.ts +18 -2
  381. package/tooltip/Tooltip.d.ts +12 -2
  382. package/tooltip/tooltip.cjs.js +2 -2
  383. package/tooltip/tooltip.esm.js +2 -2
  384. package/tooltip/tooltip.js +2 -2
  385. package/tree/Tree.d.ts +24 -2
  386. package/tree/Tree.vue +1 -1
  387. package/tree/tree.cjs.js +7 -7
  388. package/tree/tree.cjs.min.js +1 -1
  389. package/tree/tree.esm.js +7 -7
  390. package/tree/tree.esm.min.js +1 -1
  391. package/tree/tree.js +7 -7
  392. package/tree/tree.min.js +1 -1
  393. package/treeselect/TreeSelect.d.ts +21 -2
  394. package/treeselect/treeselect.cjs.js +6 -6
  395. package/treeselect/treeselect.esm.js +6 -6
  396. package/treeselect/treeselect.js +6 -6
  397. package/treetable/BodyCell.vue +1 -1
  398. package/treetable/TreeTable.d.ts +24 -2
  399. package/treetable/TreeTableRow.vue +1 -1
  400. package/treetable/treetable.cjs.js +22 -20
  401. package/treetable/treetable.cjs.min.js +1 -1
  402. package/treetable/treetable.esm.js +22 -20
  403. package/treetable/treetable.esm.min.js +1 -1
  404. package/treetable/treetable.js +22 -20
  405. package/treetable/treetable.min.js +1 -1
  406. package/tristatecheckbox/TriStateCheckbox.d.ts +24 -2
  407. package/tristatecheckbox/tristatecheckbox.cjs.js +3 -3
  408. package/tristatecheckbox/tristatecheckbox.esm.js +3 -3
  409. package/tristatecheckbox/tristatecheckbox.js +3 -3
  410. package/ts-helpers.d.ts +2 -2
  411. package/utils/utils.cjs.js +30 -20
  412. package/utils/utils.cjs.min.js +1 -1
  413. package/utils/utils.esm.js +30 -20
  414. package/utils/utils.esm.min.js +1 -1
  415. package/utils/utils.js +30 -20
  416. package/utils/utils.min.js +1 -1
  417. package/vetur-attributes.json +1 -1
  418. package/virtualscroller/BaseVirtualScroller.vue +3 -3
  419. package/virtualscroller/VirtualScroller.d.ts +21 -2
  420. package/virtualscroller/virtualscroller.cjs.js +6 -6
  421. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  422. package/virtualscroller/virtualscroller.esm.js +6 -6
  423. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  424. package/virtualscroller/virtualscroller.js +6 -6
  425. package/virtualscroller/virtualscroller.min.js +1 -1
  426. package/web-types.json +13 -3
@@ -318,9 +318,9 @@ var script = {
318
318
  }
319
319
  };
320
320
 
321
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
322
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
323
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
321
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
322
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
323
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
324
324
  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; }
325
325
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
326
326
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -321,9 +321,9 @@ this.primevue.overlaypanel = (function (FocusTrap, TimesIcon, OverlayEventBus, P
321
321
  }
322
322
  };
323
323
 
324
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
325
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
326
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
324
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
325
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
326
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
327
327
  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; }
328
328
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
329
329
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primevue",
3
- "version": "3.32.2",
3
+ "version": "3.34.0",
4
4
  "homepage": "https://primevue.org/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button v-ripple :class="cx('firstPageButton')" type="button" v-bind="getPTOptions('firstPageButton')">
2
+ <button v-ripple :class="cx('firstPageButton')" type="button" v-bind="getPTOptions('firstPageButton')" data-pc-group-section="pagebutton">
3
3
  <component :is="template || 'AngleDoubleLeftIcon'" :class="cx('firstPageIcon')" v-bind="getPTOptions('firstPageIcon')" />
4
4
  </button>
5
5
  </template>
@@ -10,6 +10,7 @@
10
10
  :unstyled="unstyled"
11
11
  :pt="ptm('jumpToPageDropdown')"
12
12
  data-pc-section="jumptopagedropdown"
13
+ data-pc-group-section="pagedropdown"
13
14
  ></JTPDropdown>
14
15
  </template>
15
16
 
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button v-ripple :class="cx('lastPageButton')" type="button" v-bind="getPTOptions('lastPageButton')">
2
+ <button v-ripple :class="cx('lastPageButton')" type="button" v-bind="getPTOptions('lastPageButton')" data-pc-group-section="pagebutton">
3
3
  <component :is="template || 'AngleDoubleRightIcon'" :class="cx('lastPageIcon')" v-bind="getPTOptions('lastPageIcon')" />
4
4
  </button>
5
5
  </template>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button v-ripple :class="cx('nextPageButton')" type="button" v-bind="getPTOptions('nextPageButton')">
2
+ <button v-ripple :class="cx('nextPageButton')" type="button" v-bind="getPTOptions('nextPageButton')" data-pc-group-section="pagebutton">
3
3
  <component :is="template || 'AngleRightIcon'" :class="cx('nextPageIcon')" v-bind="getPTOptions('nextPageIcon')" />
4
4
  </button>
5
5
  </template>
@@ -11,7 +11,8 @@ import { VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
12
  import { DropdownPassThroughOptionType } from '../dropdown';
13
13
  import { InputNumberPassThroughOptionType } from '../inputnumber';
14
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
14
+ import { PassThroughOptions } from '../passthrough';
15
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
15
16
 
16
17
  export declare type PaginatorPassThroughOptionType = PaginatorPassThroughAttributes | ((options: PaginatorPassThroughMethodOptions) => PaginatorPassThroughAttributes | string) | string | null | undefined;
17
18
 
@@ -19,10 +20,26 @@ export declare type PaginatorPassThroughOptionType = PaginatorPassThroughAttribu
19
20
  * Custom passthrough(pt) option method.
20
21
  */
21
22
  export interface PaginatorPassThroughMethodOptions {
23
+ /**
24
+ * Defines instance.
25
+ */
22
26
  instance: any;
27
+ /**
28
+ * Defines valid properties.
29
+ */
23
30
  props: PaginatorProps;
31
+ /**
32
+ * Defines current inline state.
33
+ */
24
34
  state: PaginatorState;
35
+ /**
36
+ * Defines current options.
37
+ */
25
38
  context: PaginatorContext;
39
+ /**
40
+ * Defines passthrough(pt) options in global config.
41
+ */
42
+ global: object | undefined;
26
43
  }
27
44
 
28
45
  /**
@@ -235,7 +252,12 @@ export interface PaginatorProps {
235
252
  * Used to pass attributes to DOM elements inside the component.
236
253
  * @type {PaginatorPassThroughOptions}
237
254
  */
238
- pt?: PTOptions<PaginatorPassThroughOptions>;
255
+ pt?: PassThrough<PaginatorPassThroughOptions>;
256
+ /**
257
+ * Used to configure passthrough(pt) options of the component.
258
+ * @type {PassThroughOptions}
259
+ */
260
+ ptOptions?: PassThroughOptions;
239
261
  }
240
262
 
241
263
  /**
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button v-ripple :class="cx('previousPageButton')" type="button" v-bind="getPTOptions('previousPageButton')">
2
+ <button v-ripple :class="cx('previousPageButton')" type="button" v-bind="getPTOptions('previousPageButton')" data-pc-group-section="pagebutton">
3
3
  <component :is="template || 'AngleLeftIcon'" :class="cx('previousPageIcon')" v-bind="getPTOptions('previousPageIcon')" />
4
4
  </button>
5
5
  </template>
@@ -10,6 +10,7 @@
10
10
  :unstyled="unstyled"
11
11
  :pt="ptm('rowPerPageDropdown')"
12
12
  data-pc-section="rowperpagedropdown"
13
+ data-pc-group-section="pagedropdown"
13
14
  ></RPPDropdown>
14
15
  </template>
15
16
 
@@ -23,7 +23,7 @@ var AngleDoubleRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleDoub
23
23
  var AngleRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleRightIcon);
24
24
  var AngleLeftIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleLeftIcon);
25
25
 
26
- function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
26
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
27
27
  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; }
28
28
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
29
29
  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); }
@@ -214,7 +214,9 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
214
214
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
215
215
  "class": _ctx.cx('firstPageButton'),
216
216
  type: "button"
217
- }, $options.getPTOptions('firstPageButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleDoubleLeftIcon'), vue.mergeProps({
217
+ }, $options.getPTOptions('firstPageButton'), {
218
+ "data-pc-group-section": "pagebutton"
219
+ }), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleDoubleLeftIcon'), vue.mergeProps({
218
220
  "class": _ctx.cx('firstPageIcon')
219
221
  }, $options.getPTOptions('firstPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
220
222
  }
@@ -267,7 +269,8 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
267
269
  disabled: $props.disabled,
268
270
  unstyled: _ctx.unstyled,
269
271
  pt: _ctx.ptm('jumpToPageDropdown'),
270
- "data-pc-section": "jumptopagedropdown"
272
+ "data-pc-section": "jumptopagedropdown",
273
+ "data-pc-group-section": "pagedropdown"
271
274
  }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
272
275
  }
273
276
 
@@ -361,7 +364,9 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
361
364
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
362
365
  "class": _ctx.cx('lastPageButton'),
363
366
  type: "button"
364
- }, $options.getPTOptions('lastPageButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleDoubleRightIcon'), vue.mergeProps({
367
+ }, $options.getPTOptions('lastPageButton'), {
368
+ "data-pc-group-section": "pagebutton"
369
+ }), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleDoubleRightIcon'), vue.mergeProps({
365
370
  "class": _ctx.cx('lastPageIcon')
366
371
  }, $options.getPTOptions('lastPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
367
372
  }
@@ -400,7 +405,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
400
405
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
401
406
  "class": _ctx.cx('nextPageButton'),
402
407
  type: "button"
403
- }, $options.getPTOptions('nextPageButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleRightIcon'), vue.mergeProps({
408
+ }, $options.getPTOptions('nextPageButton'), {
409
+ "data-pc-group-section": "pagebutton"
410
+ }), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleRightIcon'), vue.mergeProps({
404
411
  "class": _ctx.cx('nextPageIcon')
405
412
  }, $options.getPTOptions('nextPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
406
413
  }
@@ -497,7 +504,9 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
497
504
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
498
505
  "class": _ctx.cx('previousPageButton'),
499
506
  type: "button"
500
- }, $options.getPTOptions('previousPageButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleLeftIcon'), vue.mergeProps({
507
+ }, $options.getPTOptions('previousPageButton'), {
508
+ "data-pc-group-section": "pagebutton"
509
+ }), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.template || 'AngleLeftIcon'), vue.mergeProps({
501
510
  "class": _ctx.cx('previousPageIcon')
502
511
  }, $options.getPTOptions('previousPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
503
512
  }
@@ -552,7 +561,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
552
561
  disabled: $props.disabled,
553
562
  unstyled: _ctx.unstyled,
554
563
  pt: _ctx.ptm('rowPerPageDropdown'),
555
- "data-pc-section": "rowperpagedropdown"
564
+ "data-pc-section": "rowperpagedropdown",
565
+ "data-pc-group-section": "pagedropdown"
556
566
  }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
557
567
  }
558
568
 
@@ -562,12 +572,12 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
562
572
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
563
573
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
564
574
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
565
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
575
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
566
576
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
567
577
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
568
578
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
569
579
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
570
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
580
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
571
581
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
572
582
  var script = {
573
583
  name: 'Paginator',
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/usestyle"),a=require("vue"),r=require("primevue/icons/angledoubleleft"),o=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(r),m=c(o),f=c(i),h=c(l),P=c(s),b=c(p),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,r,o,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,r,o,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")),[(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,r,o,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"},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,r,o,i){var l=a.resolveComponent("JTPInput");return a.openBlock(),a.createBlock(l,{ref:"jtpInput",modelValue:o.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,r,o,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")),[(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,r,o,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")),[(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,r,o,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,r,o,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")),[(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,r,o,i,l=[],s=!0,p=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);s=!0);}catch(e){p=!0,r=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw r}}return l}}function H(e){if(Array.isArray(e))return e}j.render=function(e,t,n,r,o,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"},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="",r=Object.keys(this.template),o={};r.sort((function(e,t){return parseInt(e)-parseInt(t)})).forEach((function(e){o[e]=t.template[e]}));for(var i=0,l=Object.entries(Object.entries(o));i<l.length;i++){var s=q(l[i],2),p=s[0],u=q(s[1],1)[0],c=Object.entries(o)[p-1]?"and (min-width:".concat(Object.keys(o)[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)||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,r,o,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,r){return a.openBlock(),a.createElementBlock("div",a.mergeProps({key:r,ref_for:!0,ref:"paginator",class:e.cx("paginator",{key:r})},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(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,pt:e.pt},null,8,["aria-label","template","disabled","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,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:o.d_first,rows:o.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:o.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"),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;
@@ -10,7 +10,7 @@ import AngleDoubleRightIcon from 'primevue/icons/angledoubleright';
10
10
  import AngleRightIcon from 'primevue/icons/angleright';
11
11
  import AngleLeftIcon from 'primevue/icons/angleleft';
12
12
 
13
- function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
13
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
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); }
@@ -201,7 +201,9 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
201
201
  return withDirectives((openBlock(), createElementBlock("button", mergeProps({
202
202
  "class": _ctx.cx('firstPageButton'),
203
203
  type: "button"
204
- }, $options.getPTOptions('firstPageButton')), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleDoubleLeftIcon'), mergeProps({
204
+ }, $options.getPTOptions('firstPageButton'), {
205
+ "data-pc-group-section": "pagebutton"
206
+ }), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleDoubleLeftIcon'), mergeProps({
205
207
  "class": _ctx.cx('firstPageIcon')
206
208
  }, $options.getPTOptions('firstPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
207
209
  }
@@ -254,7 +256,8 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
254
256
  disabled: $props.disabled,
255
257
  unstyled: _ctx.unstyled,
256
258
  pt: _ctx.ptm('jumpToPageDropdown'),
257
- "data-pc-section": "jumptopagedropdown"
259
+ "data-pc-section": "jumptopagedropdown",
260
+ "data-pc-group-section": "pagedropdown"
258
261
  }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
259
262
  }
260
263
 
@@ -348,7 +351,9 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
348
351
  return withDirectives((openBlock(), createElementBlock("button", mergeProps({
349
352
  "class": _ctx.cx('lastPageButton'),
350
353
  type: "button"
351
- }, $options.getPTOptions('lastPageButton')), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleDoubleRightIcon'), mergeProps({
354
+ }, $options.getPTOptions('lastPageButton'), {
355
+ "data-pc-group-section": "pagebutton"
356
+ }), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleDoubleRightIcon'), mergeProps({
352
357
  "class": _ctx.cx('lastPageIcon')
353
358
  }, $options.getPTOptions('lastPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
354
359
  }
@@ -387,7 +392,9 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
387
392
  return withDirectives((openBlock(), createElementBlock("button", mergeProps({
388
393
  "class": _ctx.cx('nextPageButton'),
389
394
  type: "button"
390
- }, $options.getPTOptions('nextPageButton')), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleRightIcon'), mergeProps({
395
+ }, $options.getPTOptions('nextPageButton'), {
396
+ "data-pc-group-section": "pagebutton"
397
+ }), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleRightIcon'), mergeProps({
391
398
  "class": _ctx.cx('nextPageIcon')
392
399
  }, $options.getPTOptions('nextPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
393
400
  }
@@ -484,7 +491,9 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
484
491
  return withDirectives((openBlock(), createElementBlock("button", mergeProps({
485
492
  "class": _ctx.cx('previousPageButton'),
486
493
  type: "button"
487
- }, $options.getPTOptions('previousPageButton')), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleLeftIcon'), mergeProps({
494
+ }, $options.getPTOptions('previousPageButton'), {
495
+ "data-pc-group-section": "pagebutton"
496
+ }), [(openBlock(), createBlock(resolveDynamicComponent($props.template || 'AngleLeftIcon'), mergeProps({
488
497
  "class": _ctx.cx('previousPageIcon')
489
498
  }, $options.getPTOptions('previousPageIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]);
490
499
  }
@@ -539,7 +548,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
539
548
  disabled: $props.disabled,
540
549
  unstyled: _ctx.unstyled,
541
550
  pt: _ctx.ptm('rowPerPageDropdown'),
542
- "data-pc-section": "rowperpagedropdown"
551
+ "data-pc-section": "rowperpagedropdown",
552
+ "data-pc-group-section": "pagedropdown"
543
553
  }, null, 8, ["modelValue", "options", "class", "disabled", "unstyled", "pt"]);
544
554
  }
545
555
 
@@ -549,12 +559,12 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
549
559
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
550
560
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
551
561
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
552
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
562
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
553
563
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
554
564
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
555
565
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
556
566
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
557
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
567
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
558
568
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
559
569
  var script = {
560
570
  name: 'Paginator',
@@ -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 i,mergeProps as o,toDisplayString as s,resolveDirective as p,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,p,l){return r(),i("span",o({class:t.cx("current")},t.ptm("current")),s(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,s,c){var d=p("ripple");return l((r(),i("button",o({class:t.cx("firstPageButton"),type:"button"},c.getPTOptions("firstPageButton")),[(r(),u(g(n.template||"AngleDoubleLeftIcon"),o({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,i,o){var s=c("JTPDropdown");return r(),u(s,{modelValue:n.page,options:o.pageOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(t){return o.onChange(t)}),class:d(t.cx("jumpToPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("jumpToPageDropdown"),"data-pc-section":"jumptopagedropdown"},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,i,o){var s=c("JTPInput");return r(),u(s,{ref:"jtpInput",modelValue:i.d_page,class:d(t.cx("jumpToPageInput")),"aria-label":o.inputArialabel,disabled:n.disabled,"onUpdate:modelValue":o.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,s,c){var d=p("ripple");return l((r(),i("button",o({class:t.cx("lastPageButton"),type:"button"},c.getPTOptions("lastPageButton")),[(r(),u(g(n.template||"AngleDoubleRightIcon"),o({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,s,c){var d=p("ripple");return l((r(),i("button",o({class:t.cx("nextPageButton"),type:"button"},c.getPTOptions("nextPageButton")),[(r(),u(g(n.template||"AngleRightIcon"),o({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=p("ripple");return r(),i("span",o({class:t.cx("pages")},t.ptm("pages")),[(r(!0),i(m,null,f(n.value,(function(e){return l((r(),i("button",o({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(s(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,s,c){var d=p("ripple");return l((r(),i("button",o({class:t.cx("previousPageButton"),type:"button"},c.getPTOptions("previousPageButton")),[(r(),u(g(n.template||"AngleLeftIcon"),o({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,i,o,s=[],p=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;p=!1}else for(;!(p=(a=i.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&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return s}}function Z(t){if(Array.isArray(t))return t}U.render=function(t,e,n,a,i,o){var s=c("RPPDropdown");return r(),u(s,{modelValue:n.rows,options:o.rowsOptions,optionLabel:"label",optionValue:"value","onUpdate:modelValue":e[0]||(e[0]=function(t){return o.onChange(t)}),class:d(t.cx("rowPerPageDropdown")),disabled:n.disabled,unstyled:t.unstyled,pt:t.ptm("rowPerPageDropdown"),"data-pc-section":"rowperpagedropdown"},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),i={};r.sort((function(t,e){return parseInt(t)-parseInt(e)})).forEach((function(t){i[t]=e.template[t]}));for(var o=0,s=Object.entries(Object.entries(i));o<s.length;o++){var p=G(s[o],2),l=p[0],u=G(p[1],1)[0],g=Object.entries(i)[l-1]?"and (min-width:".concat(Object.keys(i)[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,s,p){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||p.pageLinks&&p.pageLinks.length>1?(r(),i("nav",P(o({key:0},t.ptm("paginatorWrapper"))),[(r(!0),i(m,null,f(p.templateItems,(function(n,a){return r(),i("div",o({key:a,ref_for:!0,ref:"paginator",class:t.cx("paginator",{key:a})},t.ptm("root"),{"data-pc-name":"paginator"}),[t.$slots.start?(r(),i("div",o({key:0,class:t.cx("start")},t.ptm("start")),[b(t.$slots,"start",{state:p.currentState})],16)):y("",!0),(r(!0),i(m,null,f(n,(function(n){return r(),i(m,{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,pt:t.pt},null,8,["aria-label","template","disabled","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,pt:t.pt},null,8,["aria-label","template","disabled","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,pt:t.pt},null,8,["aria-label","template","disabled","pt"])):"LastPageLink"===n?(r(),u(h,{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,pt:t.pt},null,8,["aria-label","template","disabled","pt"])):"PageLinks"===n?(r(),u(v,{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(w,{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,pt:t.pt},null,8,["template","currentPage","page","pageCount","first","rows","totalRecords","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,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","rows","options","disabled","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,unstyled:t.unstyled,pt:t.pt},null,8,["aria-label","page","pageCount","disabled","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"])):y("",!0)],64)})),128)),t.$slots.end?(r(),i("div",o({key:1,class:t.cx("end")},t.ptm("end")),[b(t.$slots,"end",{state:p.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 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};