primevue 3.48.0 → 3.49.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 (904) hide show
  1. package/accordion/Accordion.vue +2 -1
  2. package/accordion/accordion.cjs.js +2 -1
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +2 -1
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +2 -1
  7. package/accordion/accordion.min.js +1 -1
  8. package/accordiontab/AccordionTab.vue +2 -1
  9. package/accordiontab/accordiontab.cjs.js +2 -1
  10. package/accordiontab/accordiontab.cjs.min.js +1 -1
  11. package/accordiontab/accordiontab.esm.js +2 -1
  12. package/accordiontab/accordiontab.esm.min.js +1 -1
  13. package/accordiontab/accordiontab.js +2 -1
  14. package/accordiontab/accordiontab.min.js +1 -1
  15. package/autocomplete/AutoComplete.d.ts +2 -2
  16. package/autocomplete/AutoComplete.vue +4 -1
  17. package/autocomplete/autocomplete.cjs.js +6 -3
  18. package/autocomplete/autocomplete.cjs.min.js +1 -1
  19. package/autocomplete/autocomplete.esm.js +6 -3
  20. package/autocomplete/autocomplete.esm.min.js +1 -1
  21. package/autocomplete/autocomplete.js +6 -3
  22. package/autocomplete/autocomplete.min.js +1 -1
  23. package/avatar/Avatar.vue +2 -1
  24. package/avatar/avatar.cjs.js +2 -1
  25. package/avatar/avatar.cjs.min.js +1 -1
  26. package/avatar/avatar.esm.js +2 -1
  27. package/avatar/avatar.esm.min.js +1 -1
  28. package/avatar/avatar.js +2 -1
  29. package/avatar/avatar.min.js +1 -1
  30. package/avatargroup/AvatarGroup.d.ts +37 -5
  31. package/avatargroup/AvatarGroup.vue +3 -2
  32. package/avatargroup/avatargroup.cjs.js +3 -2
  33. package/avatargroup/avatargroup.cjs.min.js +1 -1
  34. package/avatargroup/avatargroup.esm.js +3 -2
  35. package/avatargroup/avatargroup.esm.min.js +1 -1
  36. package/avatargroup/avatargroup.js +3 -2
  37. package/avatargroup/avatargroup.min.js +1 -1
  38. package/badge/Badge.d.ts +2 -2
  39. package/badge/Badge.vue +3 -2
  40. package/badge/badge.cjs.js +3 -2
  41. package/badge/badge.cjs.min.js +1 -1
  42. package/badge/badge.esm.js +3 -2
  43. package/badge/badge.esm.min.js +1 -1
  44. package/badge/badge.js +3 -2
  45. package/badge/badge.min.js +1 -1
  46. package/basecomponent/BaseComponent.vue +36 -1
  47. package/basecomponent/basecomponent.cjs.js +58 -1
  48. package/basecomponent/basecomponent.cjs.min.js +1 -1
  49. package/basecomponent/basecomponent.esm.js +58 -1
  50. package/basecomponent/basecomponent.esm.min.js +1 -1
  51. package/basecomponent/basecomponent.js +58 -1
  52. package/basecomponent/basecomponent.min.js +1 -1
  53. package/blockui/BlockUI.vue +2 -1
  54. package/blockui/blockui.cjs.js +2 -1
  55. package/blockui/blockui.cjs.min.js +1 -1
  56. package/blockui/blockui.esm.js +2 -1
  57. package/blockui/blockui.esm.min.js +1 -1
  58. package/blockui/blockui.js +2 -1
  59. package/blockui/blockui.min.js +1 -1
  60. package/breadcrumb/Breadcrumb.vue +4 -3
  61. package/breadcrumb/breadcrumb.cjs.js +2 -1
  62. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  63. package/breadcrumb/breadcrumb.esm.js +2 -1
  64. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  65. package/breadcrumb/breadcrumb.js +2 -1
  66. package/breadcrumb/breadcrumb.min.js +1 -1
  67. package/button/Button.d.ts +3 -3
  68. package/button/Button.vue +5 -2
  69. package/button/button.cjs.js +5 -3
  70. package/button/button.cjs.min.js +1 -1
  71. package/button/button.esm.js +5 -3
  72. package/button/button.esm.min.js +1 -1
  73. package/button/button.js +5 -3
  74. package/button/button.min.js +1 -1
  75. package/buttongroup/BaseButtonGroup.vue +15 -0
  76. package/buttongroup/ButtonGroup.d.ts +113 -0
  77. package/buttongroup/ButtonGroup.vue +15 -0
  78. package/buttongroup/buttongroup.cjs.js +38 -0
  79. package/buttongroup/buttongroup.cjs.min.js +1 -0
  80. package/buttongroup/buttongroup.esm.js +31 -0
  81. package/buttongroup/buttongroup.esm.min.js +1 -0
  82. package/buttongroup/buttongroup.js +38 -0
  83. package/buttongroup/buttongroup.min.js +1 -0
  84. package/buttongroup/package.json +9 -0
  85. package/buttongroup/style/ButtonGroupStyle.d.ts +3 -0
  86. package/buttongroup/style/buttongroupstyle.cjs.js +17 -0
  87. package/buttongroup/style/buttongroupstyle.cjs.min.js +1 -0
  88. package/buttongroup/style/buttongroupstyle.esm.js +11 -0
  89. package/buttongroup/style/buttongroupstyle.esm.min.js +1 -0
  90. package/buttongroup/style/buttongroupstyle.js +20 -0
  91. package/buttongroup/style/buttongroupstyle.min.js +1 -0
  92. package/buttongroup/style/package.json +6 -0
  93. package/calendar/Calendar.d.ts +2 -2
  94. package/calendar/Calendar.vue +9 -3
  95. package/calendar/calendar.cjs.js +10 -4
  96. package/calendar/calendar.cjs.min.js +1 -1
  97. package/calendar/calendar.esm.js +10 -4
  98. package/calendar/calendar.esm.min.js +1 -1
  99. package/calendar/calendar.js +10 -4
  100. package/calendar/calendar.min.js +1 -1
  101. package/calendar/style/calendarstyle.cjs.js +2 -2
  102. package/calendar/style/calendarstyle.cjs.min.js +1 -1
  103. package/calendar/style/calendarstyle.esm.js +2 -2
  104. package/calendar/style/calendarstyle.esm.min.js +1 -1
  105. package/calendar/style/calendarstyle.js +2 -2
  106. package/calendar/style/calendarstyle.min.js +1 -1
  107. package/card/Card.d.ts +23 -1
  108. package/card/Card.vue +3 -2
  109. package/card/card.cjs.js +3 -2
  110. package/card/card.cjs.min.js +1 -1
  111. package/card/card.esm.js +3 -2
  112. package/card/card.esm.min.js +1 -1
  113. package/card/card.js +3 -2
  114. package/card/card.min.js +1 -1
  115. package/carousel/Carousel.vue +2 -1
  116. package/carousel/carousel.cjs.js +2 -1
  117. package/carousel/carousel.cjs.min.js +1 -1
  118. package/carousel/carousel.esm.js +2 -1
  119. package/carousel/carousel.esm.min.js +1 -1
  120. package/carousel/carousel.js +2 -1
  121. package/carousel/carousel.min.js +1 -1
  122. package/cascadeselect/CascadeSelect.d.ts +2 -2
  123. package/cascadeselect/CascadeSelect.vue +18 -5
  124. package/cascadeselect/cascadeselect.cjs.js +32 -12
  125. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  126. package/cascadeselect/cascadeselect.esm.js +32 -12
  127. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  128. package/cascadeselect/cascadeselect.js +32 -12
  129. package/cascadeselect/cascadeselect.min.js +1 -1
  130. package/chart/Chart.vue +2 -1
  131. package/chart/chart.cjs.js +2 -1
  132. package/chart/chart.cjs.min.js +1 -1
  133. package/chart/chart.esm.js +2 -1
  134. package/chart/chart.esm.min.js +1 -1
  135. package/chart/chart.js +2 -1
  136. package/chart/chart.min.js +1 -1
  137. package/checkbox/Checkbox.vue +5 -1
  138. package/checkbox/checkbox.cjs.js +5 -2
  139. package/checkbox/checkbox.cjs.min.js +1 -1
  140. package/checkbox/checkbox.esm.js +5 -2
  141. package/checkbox/checkbox.esm.min.js +1 -1
  142. package/checkbox/checkbox.js +5 -2
  143. package/checkbox/checkbox.min.js +1 -1
  144. package/chip/Chip.vue +2 -1
  145. package/chip/chip.cjs.js +2 -1
  146. package/chip/chip.cjs.min.js +1 -1
  147. package/chip/chip.esm.js +2 -1
  148. package/chip/chip.esm.min.js +1 -1
  149. package/chip/chip.js +2 -1
  150. package/chip/chip.min.js +1 -1
  151. package/chips/Chips.vue +3 -1
  152. package/chips/chips.cjs.js +4 -2
  153. package/chips/chips.cjs.min.js +1 -1
  154. package/chips/chips.esm.js +4 -2
  155. package/chips/chips.esm.min.js +1 -1
  156. package/chips/chips.js +4 -2
  157. package/chips/chips.min.js +1 -1
  158. package/colorpicker/ColorPicker.d.ts +2 -2
  159. package/colorpicker/ColorPicker.vue +3 -2
  160. package/colorpicker/colorpicker.cjs.js +3 -2
  161. package/colorpicker/colorpicker.cjs.min.js +1 -1
  162. package/colorpicker/colorpicker.esm.js +3 -2
  163. package/colorpicker/colorpicker.esm.min.js +1 -1
  164. package/colorpicker/colorpicker.js +3 -2
  165. package/colorpicker/colorpicker.min.js +1 -1
  166. package/column/Column.vue +1 -0
  167. package/column/column.cjs.js +1 -0
  168. package/column/column.cjs.min.js +1 -1
  169. package/column/column.esm.js +1 -0
  170. package/column/column.esm.min.js +1 -1
  171. package/column/column.js +1 -0
  172. package/column/column.min.js +1 -1
  173. package/columngroup/ColumnGroup.vue +1 -0
  174. package/columngroup/columngroup.cjs.js +1 -0
  175. package/columngroup/columngroup.cjs.min.js +1 -1
  176. package/columngroup/columngroup.esm.js +1 -0
  177. package/columngroup/columngroup.esm.min.js +1 -1
  178. package/columngroup/columngroup.js +1 -0
  179. package/columngroup/columngroup.min.js +1 -1
  180. package/config/PrimeVue.d.ts +1 -1
  181. package/confirmpopup/ConfirmPopup.vue +1 -1
  182. package/confirmpopup/confirmpopup.cjs.js +1 -7
  183. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  184. package/confirmpopup/confirmpopup.esm.js +1 -7
  185. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  186. package/confirmpopup/confirmpopup.js +1 -7
  187. package/confirmpopup/confirmpopup.min.js +1 -1
  188. package/contextmenu/ContextMenu.d.ts +2 -2
  189. package/contextmenu/ContextMenu.vue +7 -1
  190. package/contextmenu/ContextMenuSub.vue +13 -3
  191. package/contextmenu/contextmenu.cjs.js +25 -12
  192. package/contextmenu/contextmenu.cjs.min.js +1 -1
  193. package/contextmenu/contextmenu.esm.js +25 -12
  194. package/contextmenu/contextmenu.esm.min.js +1 -1
  195. package/contextmenu/contextmenu.js +25 -12
  196. package/contextmenu/contextmenu.min.js +1 -1
  197. package/core/core.js +223 -99
  198. package/core/core.min.js +23 -21
  199. package/datatable/BaseDataTable.vue +4 -4
  200. package/datatable/BodyCell.vue +0 -3
  201. package/datatable/DataTable.d.ts +6 -6
  202. package/datatable/DataTable.vue +5 -3
  203. package/datatable/datatable.cjs.js +8 -10
  204. package/datatable/datatable.cjs.min.js +1 -1
  205. package/datatable/datatable.esm.js +8 -10
  206. package/datatable/datatable.esm.min.js +1 -1
  207. package/datatable/datatable.js +8 -10
  208. package/datatable/datatable.min.js +1 -1
  209. package/dataview/DataView.vue +2 -1
  210. package/dataview/dataview.cjs.js +2 -1
  211. package/dataview/dataview.cjs.min.js +1 -1
  212. package/dataview/dataview.esm.js +2 -1
  213. package/dataview/dataview.esm.min.js +1 -1
  214. package/dataview/dataview.js +2 -1
  215. package/dataview/dataview.min.js +1 -1
  216. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +2 -1
  217. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +2 -1
  218. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  219. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +2 -1
  220. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  221. package/dataviewlayoutoptions/dataviewlayoutoptions.js +2 -1
  222. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  223. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.cjs.js +1 -1
  224. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.cjs.min.js +1 -1
  225. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.esm.js +1 -1
  226. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.esm.min.js +1 -1
  227. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.js +1 -1
  228. package/dataviewlayoutoptions/style/dataviewlayoutoptionsstyle.min.js +1 -1
  229. package/deferredcontent/DeferredContent.vue +2 -1
  230. package/deferredcontent/deferredcontent.cjs.js +2 -1
  231. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  232. package/deferredcontent/deferredcontent.esm.js +2 -1
  233. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  234. package/deferredcontent/deferredcontent.js +2 -1
  235. package/deferredcontent/deferredcontent.min.js +1 -1
  236. package/dialog/Dialog.d.ts +2 -2
  237. package/dialog/Dialog.vue +2 -2
  238. package/dialog/dialog.cjs.js +2 -2
  239. package/dialog/dialog.cjs.min.js +1 -1
  240. package/dialog/dialog.esm.js +2 -2
  241. package/dialog/dialog.esm.min.js +1 -1
  242. package/dialog/dialog.js +2 -2
  243. package/dialog/dialog.min.js +1 -1
  244. package/divider/Divider.vue +3 -2
  245. package/divider/divider.cjs.js +3 -2
  246. package/divider/divider.cjs.min.js +1 -1
  247. package/divider/divider.esm.js +3 -2
  248. package/divider/divider.esm.min.js +1 -1
  249. package/divider/divider.js +3 -2
  250. package/divider/divider.min.js +1 -1
  251. package/dock/Dock.vue +2 -1
  252. package/dock/dock.cjs.js +2 -1
  253. package/dock/dock.cjs.min.js +1 -1
  254. package/dock/dock.esm.js +2 -1
  255. package/dock/dock.esm.min.js +1 -1
  256. package/dock/dock.js +2 -1
  257. package/dock/dock.min.js +1 -1
  258. package/dropdown/Dropdown.d.ts +3 -3
  259. package/dropdown/Dropdown.vue +5 -1
  260. package/dropdown/dropdown.cjs.js +15 -9
  261. package/dropdown/dropdown.cjs.min.js +1 -1
  262. package/dropdown/dropdown.esm.js +15 -9
  263. package/dropdown/dropdown.esm.min.js +1 -1
  264. package/dropdown/dropdown.js +15 -9
  265. package/dropdown/dropdown.min.js +1 -1
  266. package/editor/Editor.vue +2 -1
  267. package/editor/editor.cjs.js +2 -1
  268. package/editor/editor.cjs.min.js +1 -1
  269. package/editor/editor.esm.js +2 -1
  270. package/editor/editor.esm.min.js +1 -1
  271. package/editor/editor.js +2 -1
  272. package/editor/editor.min.js +1 -1
  273. package/fieldset/Fieldset.vue +2 -1
  274. package/fieldset/fieldset.cjs.js +2 -1
  275. package/fieldset/fieldset.cjs.min.js +1 -1
  276. package/fieldset/fieldset.esm.js +2 -1
  277. package/fieldset/fieldset.esm.min.js +1 -1
  278. package/fieldset/fieldset.js +2 -1
  279. package/fieldset/fieldset.min.js +1 -1
  280. package/fileupload/FileUpload.vue +8 -5
  281. package/fileupload/fileupload.cjs.js +9 -8
  282. package/fileupload/fileupload.cjs.min.js +1 -1
  283. package/fileupload/fileupload.esm.js +9 -8
  284. package/fileupload/fileupload.esm.min.js +1 -1
  285. package/fileupload/fileupload.js +9 -8
  286. package/fileupload/fileupload.min.js +1 -1
  287. package/floatlabel/FloatLabel.d.ts +0 -4
  288. package/floatlabel/FloatLabel.vue +3 -2
  289. package/floatlabel/floatlabel.cjs.js +3 -2
  290. package/floatlabel/floatlabel.cjs.min.js +1 -1
  291. package/floatlabel/floatlabel.esm.js +3 -2
  292. package/floatlabel/floatlabel.esm.min.js +1 -1
  293. package/floatlabel/floatlabel.js +3 -2
  294. package/floatlabel/floatlabel.min.js +1 -1
  295. package/galleria/GalleriaContent.vue +1 -1
  296. package/galleria/GalleriaThumbnails.vue +12 -3
  297. package/galleria/galleria.cjs.js +5 -5
  298. package/galleria/galleria.cjs.min.js +1 -1
  299. package/galleria/galleria.esm.js +5 -5
  300. package/galleria/galleria.esm.min.js +1 -1
  301. package/galleria/galleria.js +5 -5
  302. package/galleria/galleria.min.js +1 -1
  303. package/iconfield/IconField.vue +4 -3
  304. package/iconfield/iconfield.cjs.js +3 -2
  305. package/iconfield/iconfield.cjs.min.js +1 -1
  306. package/iconfield/iconfield.esm.js +3 -2
  307. package/iconfield/iconfield.esm.min.js +1 -1
  308. package/iconfield/iconfield.js +3 -2
  309. package/iconfield/iconfield.min.js +1 -1
  310. package/iconfield/style/iconfieldstyle.cjs.js +3 -3
  311. package/iconfield/style/iconfieldstyle.cjs.min.js +1 -1
  312. package/iconfield/style/iconfieldstyle.esm.js +3 -3
  313. package/iconfield/style/iconfieldstyle.esm.min.js +1 -1
  314. package/iconfield/style/iconfieldstyle.js +3 -3
  315. package/iconfield/style/iconfieldstyle.min.js +1 -1
  316. package/image/Image.vue +1 -1
  317. package/image/image.cjs.js +1 -1
  318. package/image/image.cjs.min.js +1 -1
  319. package/image/image.esm.js +1 -1
  320. package/image/image.esm.min.js +1 -1
  321. package/image/image.js +1 -1
  322. package/image/image.min.js +1 -1
  323. package/inlinemessage/InlineMessage.d.ts +2 -2
  324. package/inlinemessage/InlineMessage.vue +2 -1
  325. package/inlinemessage/inlinemessage.cjs.js +2 -1
  326. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  327. package/inlinemessage/inlinemessage.esm.js +2 -1
  328. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  329. package/inlinemessage/inlinemessage.js +2 -1
  330. package/inlinemessage/inlinemessage.min.js +1 -1
  331. package/inplace/Inplace.vue +2 -1
  332. package/inplace/inplace.cjs.js +2 -1
  333. package/inplace/inplace.cjs.min.js +1 -1
  334. package/inplace/inplace.esm.js +2 -1
  335. package/inplace/inplace.esm.min.js +1 -1
  336. package/inplace/inplace.js +2 -1
  337. package/inplace/inplace.min.js +1 -1
  338. package/inputgroup/InputGroup.vue +3 -2
  339. package/inputgroup/inputgroup.cjs.js +3 -2
  340. package/inputgroup/inputgroup.cjs.min.js +1 -1
  341. package/inputgroup/inputgroup.esm.js +3 -2
  342. package/inputgroup/inputgroup.esm.min.js +1 -1
  343. package/inputgroup/inputgroup.js +3 -2
  344. package/inputgroup/inputgroup.min.js +1 -1
  345. package/inputgroupaddon/InputGroupAddon.vue +3 -2
  346. package/inputgroupaddon/inputgroupaddon.cjs.js +3 -2
  347. package/inputgroupaddon/inputgroupaddon.cjs.min.js +1 -1
  348. package/inputgroupaddon/inputgroupaddon.esm.js +3 -2
  349. package/inputgroupaddon/inputgroupaddon.esm.min.js +1 -1
  350. package/inputgroupaddon/inputgroupaddon.js +3 -2
  351. package/inputgroupaddon/inputgroupaddon.min.js +1 -1
  352. package/inputicon/BaseInputIcon.vue +3 -0
  353. package/inputicon/InputIcon.vue +10 -2
  354. package/inputicon/inputicon.cjs.js +13 -2
  355. package/inputicon/inputicon.cjs.min.js +1 -1
  356. package/inputicon/inputicon.esm.js +14 -3
  357. package/inputicon/inputicon.esm.min.js +1 -1
  358. package/inputicon/inputicon.js +13 -2
  359. package/inputicon/inputicon.min.js +1 -1
  360. package/inputicon/style/inputiconstyle.cjs.js +13 -1
  361. package/inputicon/style/inputiconstyle.cjs.min.js +1 -1
  362. package/inputicon/style/inputiconstyle.esm.js +9 -1
  363. package/inputicon/style/inputiconstyle.esm.min.js +1 -1
  364. package/inputicon/style/inputiconstyle.js +15 -5
  365. package/inputicon/style/inputiconstyle.min.js +1 -1
  366. package/inputmask/InputMask.vue +2 -1
  367. package/inputmask/inputmask.cjs.js +4 -2
  368. package/inputmask/inputmask.cjs.min.js +1 -1
  369. package/inputmask/inputmask.esm.js +4 -2
  370. package/inputmask/inputmask.esm.min.js +1 -1
  371. package/inputmask/inputmask.js +4 -2
  372. package/inputmask/inputmask.min.js +1 -1
  373. package/inputnumber/InputNumber.vue +3 -1
  374. package/inputnumber/inputnumber.cjs.js +4 -2
  375. package/inputnumber/inputnumber.cjs.min.js +1 -1
  376. package/inputnumber/inputnumber.esm.js +4 -2
  377. package/inputnumber/inputnumber.esm.min.js +1 -1
  378. package/inputnumber/inputnumber.js +4 -2
  379. package/inputnumber/inputnumber.min.js +1 -1
  380. package/inputotp/BaseInputOtp.vue +53 -0
  381. package/inputotp/InputOtp.d.ts +275 -0
  382. package/inputotp/InputOtp.vue +201 -0
  383. package/inputotp/inputotp.cjs.js +265 -0
  384. package/inputotp/inputotp.cjs.min.js +1 -0
  385. package/inputotp/inputotp.esm.js +257 -0
  386. package/inputotp/inputotp.esm.min.js +1 -0
  387. package/inputotp/inputotp.js +264 -0
  388. package/inputotp/inputotp.min.js +1 -0
  389. package/inputotp/package.json +9 -0
  390. package/inputotp/style/InputOtpStyle.d.ts +3 -0
  391. package/inputotp/style/inputotpstyle.cjs.js +18 -0
  392. package/inputotp/style/inputotpstyle.cjs.min.js +1 -0
  393. package/inputotp/style/inputotpstyle.esm.js +12 -0
  394. package/inputotp/style/inputotpstyle.esm.min.js +1 -0
  395. package/inputotp/style/inputotpstyle.js +21 -0
  396. package/inputotp/style/inputotpstyle.min.js +1 -0
  397. package/inputotp/style/package.json +6 -0
  398. package/inputswitch/InputSwitch.d.ts +0 -16
  399. package/inputswitch/InputSwitch.vue +5 -1
  400. package/inputswitch/inputswitch.cjs.js +5 -2
  401. package/inputswitch/inputswitch.cjs.min.js +1 -1
  402. package/inputswitch/inputswitch.esm.js +5 -2
  403. package/inputswitch/inputswitch.esm.min.js +1 -1
  404. package/inputswitch/inputswitch.js +5 -2
  405. package/inputswitch/inputswitch.min.js +1 -1
  406. package/inputtext/InputText.vue +5 -2
  407. package/inputtext/inputtext.cjs.js +5 -2
  408. package/inputtext/inputtext.cjs.min.js +1 -1
  409. package/inputtext/inputtext.esm.js +5 -2
  410. package/inputtext/inputtext.esm.min.js +1 -1
  411. package/inputtext/inputtext.js +5 -2
  412. package/inputtext/inputtext.min.js +1 -1
  413. package/knob/Knob.vue +2 -1
  414. package/knob/knob.cjs.js +2 -1
  415. package/knob/knob.cjs.min.js +1 -1
  416. package/knob/knob.esm.js +2 -1
  417. package/knob/knob.esm.min.js +1 -1
  418. package/knob/knob.js +2 -1
  419. package/knob/knob.min.js +1 -1
  420. package/listbox/Listbox.d.ts +2 -2
  421. package/listbox/Listbox.vue +2 -3
  422. package/listbox/listbox.cjs.js +2 -2
  423. package/listbox/listbox.cjs.min.js +1 -1
  424. package/listbox/listbox.esm.js +2 -2
  425. package/listbox/listbox.esm.min.js +1 -1
  426. package/listbox/listbox.js +2 -2
  427. package/listbox/listbox.min.js +1 -1
  428. package/megamenu/MegaMenu.vue +2 -1
  429. package/megamenu/MegaMenuSub.vue +1 -1
  430. package/megamenu/megamenu.cjs.js +3 -2
  431. package/megamenu/megamenu.cjs.min.js +1 -1
  432. package/megamenu/megamenu.esm.js +3 -2
  433. package/megamenu/megamenu.esm.min.js +1 -1
  434. package/megamenu/megamenu.js +3 -2
  435. package/megamenu/megamenu.min.js +1 -1
  436. package/menu/Menu.d.ts +2 -2
  437. package/menu/Menu.vue +18 -11
  438. package/menu/Menuitem.vue +6 -3
  439. package/menu/menu.cjs.js +23 -18
  440. package/menu/menu.cjs.min.js +1 -1
  441. package/menu/menu.esm.js +23 -18
  442. package/menu/menu.esm.min.js +1 -1
  443. package/menu/menu.js +23 -18
  444. package/menu/menu.min.js +1 -1
  445. package/menubar/Menubar.vue +19 -6
  446. package/menubar/MenubarSub.vue +7 -3
  447. package/menubar/menubar.cjs.js +41 -18
  448. package/menubar/menubar.cjs.min.js +1 -1
  449. package/menubar/menubar.esm.js +41 -18
  450. package/menubar/menubar.esm.min.js +1 -1
  451. package/menubar/menubar.js +41 -18
  452. package/menubar/menubar.min.js +1 -1
  453. package/message/Message.d.ts +2 -2
  454. package/message/Message.vue +2 -1
  455. package/message/message.cjs.js +2 -1
  456. package/message/message.cjs.min.js +1 -1
  457. package/message/message.esm.js +2 -1
  458. package/message/message.esm.min.js +1 -1
  459. package/message/message.js +2 -1
  460. package/message/message.min.js +1 -1
  461. package/metergroup/MeterGroup.vue +3 -2
  462. package/metergroup/metergroup.cjs.js +5 -3
  463. package/metergroup/metergroup.cjs.min.js +1 -1
  464. package/metergroup/metergroup.esm.js +5 -3
  465. package/metergroup/metergroup.esm.min.js +1 -1
  466. package/metergroup/metergroup.js +5 -3
  467. package/metergroup/metergroup.min.js +1 -1
  468. package/multiselect/MultiSelect.d.ts +3 -3
  469. package/multiselect/MultiSelect.vue +4 -1
  470. package/multiselect/multiselect.cjs.js +15 -10
  471. package/multiselect/multiselect.cjs.min.js +1 -1
  472. package/multiselect/multiselect.esm.js +15 -10
  473. package/multiselect/multiselect.esm.min.js +1 -1
  474. package/multiselect/multiselect.js +15 -10
  475. package/multiselect/multiselect.min.js +1 -1
  476. package/orderlist/OrderList.vue +2 -1
  477. package/orderlist/orderlist.cjs.js +2 -1
  478. package/orderlist/orderlist.cjs.min.js +1 -1
  479. package/orderlist/orderlist.esm.js +2 -1
  480. package/orderlist/orderlist.esm.min.js +1 -1
  481. package/orderlist/orderlist.js +2 -1
  482. package/orderlist/orderlist.min.js +1 -1
  483. package/organizationchart/OrganizationChart.vue +2 -1
  484. package/organizationchart/organizationchart.cjs.js +2 -1
  485. package/organizationchart/organizationchart.cjs.min.js +1 -1
  486. package/organizationchart/organizationchart.esm.js +2 -1
  487. package/organizationchart/organizationchart.esm.min.js +1 -1
  488. package/organizationchart/organizationchart.js +2 -1
  489. package/organizationchart/organizationchart.min.js +1 -1
  490. package/overlaypanel/OverlayPanel.d.ts +2 -2
  491. package/overlaypanel/OverlayPanel.vue +1 -1
  492. package/overlaypanel/overlaypanel.cjs.js +1 -7
  493. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  494. package/overlaypanel/overlaypanel.esm.js +1 -7
  495. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  496. package/overlaypanel/overlaypanel.js +1 -7
  497. package/overlaypanel/overlaypanel.min.js +1 -1
  498. package/package.json +1 -1
  499. package/paginator/Paginator.vue +2 -1
  500. package/paginator/paginator.cjs.js +2 -1
  501. package/paginator/paginator.cjs.min.js +1 -1
  502. package/paginator/paginator.esm.js +2 -1
  503. package/paginator/paginator.esm.min.js +1 -1
  504. package/paginator/paginator.js +2 -1
  505. package/paginator/paginator.min.js +1 -1
  506. package/panel/Panel.vue +2 -1
  507. package/panel/panel.cjs.js +2 -1
  508. package/panel/panel.cjs.min.js +1 -1
  509. package/panel/panel.esm.js +2 -1
  510. package/panel/panel.esm.min.js +1 -1
  511. package/panel/panel.js +2 -1
  512. package/panel/panel.min.js +1 -1
  513. package/panelmenu/PanelMenu.vue +2 -1
  514. package/panelmenu/PanelMenuList.vue +6 -0
  515. package/panelmenu/PanelMenuSub.vue +7 -3
  516. package/panelmenu/panelmenu.cjs.js +24 -5
  517. package/panelmenu/panelmenu.cjs.min.js +1 -1
  518. package/panelmenu/panelmenu.esm.js +24 -5
  519. package/panelmenu/panelmenu.esm.min.js +1 -1
  520. package/panelmenu/panelmenu.js +24 -5
  521. package/panelmenu/panelmenu.min.js +1 -1
  522. package/password/Password.d.ts +2 -2
  523. package/password/Password.vue +10 -4
  524. package/password/password.cjs.js +9 -4
  525. package/password/password.cjs.min.js +1 -1
  526. package/password/password.esm.js +9 -4
  527. package/password/password.esm.min.js +1 -1
  528. package/password/password.js +9 -4
  529. package/password/password.min.js +1 -1
  530. package/password/style/passwordstyle.cjs.js +4 -3
  531. package/password/style/passwordstyle.cjs.min.js +1 -1
  532. package/password/style/passwordstyle.esm.js +4 -3
  533. package/password/style/passwordstyle.esm.min.js +1 -1
  534. package/password/style/passwordstyle.js +4 -3
  535. package/password/style/passwordstyle.min.js +1 -1
  536. package/picklist/PickList.vue +2 -1
  537. package/picklist/picklist.cjs.js +2 -1
  538. package/picklist/picklist.cjs.min.js +1 -1
  539. package/picklist/picklist.esm.js +2 -1
  540. package/picklist/picklist.esm.min.js +1 -1
  541. package/picklist/picklist.js +2 -1
  542. package/picklist/picklist.min.js +1 -1
  543. package/portal/Portal.d.ts +2 -2
  544. package/progressbar/ProgressBar.vue +2 -1
  545. package/progressbar/progressbar.cjs.js +2 -1
  546. package/progressbar/progressbar.cjs.min.js +1 -1
  547. package/progressbar/progressbar.esm.js +2 -1
  548. package/progressbar/progressbar.esm.min.js +1 -1
  549. package/progressbar/progressbar.js +2 -1
  550. package/progressbar/progressbar.min.js +1 -1
  551. package/progressspinner/ProgressSpinner.vue +2 -1
  552. package/progressspinner/progressspinner.cjs.js +2 -1
  553. package/progressspinner/progressspinner.cjs.min.js +1 -1
  554. package/progressspinner/progressspinner.esm.js +2 -1
  555. package/progressspinner/progressspinner.esm.min.js +1 -1
  556. package/progressspinner/progressspinner.js +2 -1
  557. package/progressspinner/progressspinner.min.js +1 -1
  558. package/radiobutton/RadioButton.vue +5 -1
  559. package/radiobutton/radiobutton.cjs.js +5 -2
  560. package/radiobutton/radiobutton.cjs.min.js +1 -1
  561. package/radiobutton/radiobutton.esm.js +5 -2
  562. package/radiobutton/radiobutton.esm.min.js +1 -1
  563. package/radiobutton/radiobutton.js +5 -2
  564. package/radiobutton/radiobutton.min.js +1 -1
  565. package/rating/Rating.vue +2 -1
  566. package/rating/rating.cjs.js +2 -1
  567. package/rating/rating.cjs.min.js +1 -1
  568. package/rating/rating.esm.js +2 -1
  569. package/rating/rating.esm.min.js +1 -1
  570. package/rating/rating.js +2 -1
  571. package/rating/rating.min.js +1 -1
  572. package/resources/themes/arya-blue/theme.css +346 -119
  573. package/resources/themes/arya-green/theme.css +346 -119
  574. package/resources/themes/arya-orange/theme.css +346 -119
  575. package/resources/themes/arya-purple/theme.css +346 -119
  576. package/resources/themes/aura-dark-amber/theme.css +379 -134
  577. package/resources/themes/aura-dark-blue/theme.css +379 -134
  578. package/resources/themes/aura-dark-cyan/theme.css +379 -134
  579. package/resources/themes/aura-dark-green/theme.css +379 -134
  580. package/resources/themes/aura-dark-indigo/theme.css +379 -134
  581. package/resources/themes/aura-dark-lime/theme.css +379 -134
  582. package/resources/themes/aura-dark-noir/theme.css +379 -134
  583. package/resources/themes/aura-dark-pink/theme.css +379 -134
  584. package/resources/themes/aura-dark-purple/theme.css +379 -134
  585. package/resources/themes/aura-dark-teal/theme.css +379 -134
  586. package/resources/themes/aura-light-amber/theme.css +379 -137
  587. package/resources/themes/aura-light-blue/theme.css +379 -137
  588. package/resources/themes/aura-light-cyan/theme.css +379 -137
  589. package/resources/themes/aura-light-green/theme.css +379 -137
  590. package/resources/themes/aura-light-indigo/theme.css +379 -137
  591. package/resources/themes/aura-light-lime/theme.css +379 -137
  592. package/resources/themes/aura-light-noir/theme.css +379 -137
  593. package/resources/themes/aura-light-pink/theme.css +379 -137
  594. package/resources/themes/aura-light-purple/theme.css +379 -137
  595. package/resources/themes/aura-light-teal/theme.css +379 -137
  596. package/resources/themes/bootstrap4-dark-blue/theme.css +356 -129
  597. package/resources/themes/bootstrap4-dark-purple/theme.css +356 -129
  598. package/resources/themes/bootstrap4-light-blue/theme.css +356 -129
  599. package/resources/themes/bootstrap4-light-purple/theme.css +356 -129
  600. package/resources/themes/fluent-light/theme.css +340 -119
  601. package/resources/themes/lara-dark-amber/theme.css +365 -129
  602. package/resources/themes/lara-dark-blue/theme.css +365 -129
  603. package/resources/themes/lara-dark-cyan/theme.css +365 -129
  604. package/resources/themes/lara-dark-green/theme.css +365 -129
  605. package/resources/themes/lara-dark-indigo/theme.css +365 -129
  606. package/resources/themes/lara-dark-pink/theme.css +365 -129
  607. package/resources/themes/lara-dark-purple/theme.css +365 -129
  608. package/resources/themes/lara-dark-teal/theme.css +365 -129
  609. package/resources/themes/lara-light-amber/theme.css +361 -129
  610. package/resources/themes/lara-light-blue/theme.css +361 -129
  611. package/resources/themes/lara-light-cyan/theme.css +361 -129
  612. package/resources/themes/lara-light-green/theme.css +361 -129
  613. package/resources/themes/lara-light-indigo/theme.css +361 -129
  614. package/resources/themes/lara-light-pink/theme.css +361 -129
  615. package/resources/themes/lara-light-purple/theme.css +361 -129
  616. package/resources/themes/lara-light-teal/theme.css +361 -129
  617. package/resources/themes/luna-amber/theme.css +346 -119
  618. package/resources/themes/luna-blue/theme.css +346 -119
  619. package/resources/themes/luna-green/theme.css +346 -119
  620. package/resources/themes/luna-pink/theme.css +346 -119
  621. package/resources/themes/md-dark-deeppurple/theme.css +431 -185
  622. package/resources/themes/md-dark-indigo/theme.css +431 -185
  623. package/resources/themes/md-light-deeppurple/theme.css +431 -185
  624. package/resources/themes/md-light-indigo/theme.css +431 -185
  625. package/resources/themes/mdc-dark-deeppurple/theme.css +431 -185
  626. package/resources/themes/mdc-dark-indigo/theme.css +431 -185
  627. package/resources/themes/mdc-light-deeppurple/theme.css +431 -185
  628. package/resources/themes/mdc-light-indigo/theme.css +431 -185
  629. package/resources/themes/mira/theme.css +346 -119
  630. package/resources/themes/nano/theme.css +346 -119
  631. package/resources/themes/nova/theme.css +346 -119
  632. package/resources/themes/nova-accent/theme.css +346 -119
  633. package/resources/themes/nova-alt/theme.css +346 -119
  634. package/resources/themes/nova-vue/theme.css +346 -119
  635. package/resources/themes/rhea/theme.css +346 -119
  636. package/resources/themes/saga-blue/theme.css +346 -119
  637. package/resources/themes/saga-green/theme.css +346 -119
  638. package/resources/themes/saga-orange/theme.css +346 -119
  639. package/resources/themes/saga-purple/theme.css +346 -119
  640. package/resources/themes/soho-dark/theme.css +356 -129
  641. package/resources/themes/soho-light/theme.css +356 -129
  642. package/resources/themes/tailwind-light/theme.css +346 -119
  643. package/resources/themes/vela-blue/theme.css +346 -119
  644. package/resources/themes/vela-green/theme.css +346 -119
  645. package/resources/themes/vela-orange/theme.css +346 -119
  646. package/resources/themes/vela-purple/theme.css +346 -119
  647. package/resources/themes/viva-dark/theme.css +357 -130
  648. package/resources/themes/viva-light/theme.css +357 -130
  649. package/scrollpanel/ScrollPanel.vue +2 -1
  650. package/scrollpanel/scrollpanel.cjs.js +2 -1
  651. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  652. package/scrollpanel/scrollpanel.esm.js +2 -1
  653. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  654. package/scrollpanel/scrollpanel.js +2 -1
  655. package/scrollpanel/scrollpanel.min.js +1 -1
  656. package/scrolltop/ScrollTop.vue +2 -1
  657. package/scrolltop/scrolltop.cjs.js +2 -1
  658. package/scrolltop/scrolltop.cjs.min.js +1 -1
  659. package/scrolltop/scrolltop.esm.js +2 -1
  660. package/scrolltop/scrolltop.esm.min.js +1 -1
  661. package/scrolltop/scrolltop.js +2 -1
  662. package/scrolltop/scrolltop.min.js +1 -1
  663. package/selectbutton/SelectButton.vue +44 -17
  664. package/selectbutton/selectbutton.cjs.js +41 -18
  665. package/selectbutton/selectbutton.cjs.min.js +1 -1
  666. package/selectbutton/selectbutton.esm.js +41 -18
  667. package/selectbutton/selectbutton.esm.min.js +1 -1
  668. package/selectbutton/selectbutton.js +41 -18
  669. package/selectbutton/selectbutton.min.js +1 -1
  670. package/selectbutton/style/selectbuttonstyle.cjs.js +1 -1
  671. package/selectbutton/style/selectbuttonstyle.cjs.min.js +1 -1
  672. package/selectbutton/style/selectbuttonstyle.esm.js +1 -1
  673. package/selectbutton/style/selectbuttonstyle.esm.min.js +1 -1
  674. package/selectbutton/style/selectbuttonstyle.js +1 -1
  675. package/selectbutton/style/selectbuttonstyle.min.js +1 -1
  676. package/sidebar/Sidebar.vue +1 -1
  677. package/sidebar/sidebar.cjs.js +1 -7
  678. package/sidebar/sidebar.cjs.min.js +1 -1
  679. package/sidebar/sidebar.esm.js +1 -7
  680. package/sidebar/sidebar.esm.min.js +1 -1
  681. package/sidebar/sidebar.js +1 -7
  682. package/sidebar/sidebar.min.js +1 -1
  683. package/skeleton/Skeleton.vue +2 -1
  684. package/skeleton/skeleton.cjs.js +2 -1
  685. package/skeleton/skeleton.cjs.min.js +1 -1
  686. package/skeleton/skeleton.esm.js +2 -1
  687. package/skeleton/skeleton.esm.min.js +1 -1
  688. package/skeleton/skeleton.js +2 -1
  689. package/skeleton/skeleton.min.js +1 -1
  690. package/slider/Slider.vue +2 -1
  691. package/slider/slider.cjs.js +2 -1
  692. package/slider/slider.cjs.min.js +1 -1
  693. package/slider/slider.esm.js +2 -1
  694. package/slider/slider.esm.min.js +1 -1
  695. package/slider/slider.js +2 -1
  696. package/slider/slider.min.js +1 -1
  697. package/speeddial/SpeedDial.vue +2 -1
  698. package/speeddial/speeddial.cjs.js +2 -1
  699. package/speeddial/speeddial.cjs.min.js +1 -1
  700. package/speeddial/speeddial.esm.js +2 -1
  701. package/speeddial/speeddial.esm.min.js +1 -1
  702. package/speeddial/speeddial.js +2 -1
  703. package/speeddial/speeddial.min.js +1 -1
  704. package/splitbutton/SplitButton.d.ts +3 -3
  705. package/splitbutton/SplitButton.vue +2 -1
  706. package/splitbutton/splitbutton.cjs.js +4 -3
  707. package/splitbutton/splitbutton.cjs.min.js +1 -1
  708. package/splitbutton/splitbutton.esm.js +4 -3
  709. package/splitbutton/splitbutton.esm.min.js +1 -1
  710. package/splitbutton/splitbutton.js +4 -3
  711. package/splitbutton/splitbutton.min.js +1 -1
  712. package/splitter/Splitter.vue +16 -13
  713. package/splitter/splitter.cjs.js +17 -14
  714. package/splitter/splitter.cjs.min.js +1 -1
  715. package/splitter/splitter.esm.js +17 -14
  716. package/splitter/splitter.esm.min.js +1 -1
  717. package/splitter/splitter.js +17 -14
  718. package/splitter/splitter.min.js +1 -1
  719. package/splitterpanel/SplitterPanel.vue +10 -2
  720. package/splitterpanel/splitterpanel.cjs.js +10 -2
  721. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  722. package/splitterpanel/splitterpanel.esm.js +10 -2
  723. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  724. package/splitterpanel/splitterpanel.js +10 -2
  725. package/splitterpanel/splitterpanel.min.js +1 -1
  726. package/stepper/BaseStepper.vue +4 -0
  727. package/stepper/Stepper.d.ts +197 -0
  728. package/stepper/Stepper.vue +162 -129
  729. package/stepper/StepperContent.vue +47 -0
  730. package/stepper/StepperHeader.vue +41 -0
  731. package/stepper/StepperSeparator.vue +23 -0
  732. package/stepper/package.json +9 -0
  733. package/stepper/stepper.cjs.js +347 -129
  734. package/stepper/stepper.cjs.min.js +1 -1
  735. package/stepper/stepper.esm.js +348 -130
  736. package/stepper/stepper.esm.min.js +1 -1
  737. package/stepper/stepper.js +347 -129
  738. package/stepper/stepper.min.js +1 -1
  739. package/stepper/style/StepperStyle.d.ts +3 -0
  740. package/stepper/style/package.json +6 -0
  741. package/stepper/style/stepperstyle.cjs.js +25 -19
  742. package/stepper/style/stepperstyle.cjs.min.js +1 -1
  743. package/stepper/style/stepperstyle.esm.js +25 -19
  744. package/stepper/style/stepperstyle.esm.min.js +1 -1
  745. package/stepper/style/stepperstyle.js +25 -19
  746. package/stepper/style/stepperstyle.min.js +1 -1
  747. package/stepperpanel/BaseStepperPanel.vue +18 -0
  748. package/stepperpanel/StepperPanel.d.ts +286 -0
  749. package/stepperpanel/StepperPanel.vue +12 -0
  750. package/stepperpanel/package.json +9 -0
  751. package/{step/step.cjs.js → stepperpanel/stepperpanel.cjs.js} +11 -11
  752. package/stepperpanel/stepperpanel.cjs.min.js +1 -0
  753. package/{step/step.esm.js → stepperpanel/stepperpanel.esm.js} +10 -10
  754. package/stepperpanel/stepperpanel.esm.min.js +1 -0
  755. package/{step/step.js → stepperpanel/stepperpanel.js} +12 -12
  756. package/stepperpanel/stepperpanel.min.js +1 -0
  757. package/stepperpanel/style/StepperPanelStyle.d.ts +3 -0
  758. package/stepperpanel/style/package.json +6 -0
  759. package/stepperpanel/style/stepperpanelstyle.cjs.js +5 -0
  760. package/stepperpanel/style/stepperpanelstyle.esm.js +3 -0
  761. package/stepperpanel/style/stepperpanelstyle.js +10 -0
  762. package/stepperpanel/style/stepperpanelstyle.min.js +1 -0
  763. package/steps/Steps.vue +2 -1
  764. package/steps/steps.cjs.js +2 -1
  765. package/steps/steps.cjs.min.js +1 -1
  766. package/steps/steps.esm.js +2 -1
  767. package/steps/steps.esm.min.js +1 -1
  768. package/steps/steps.js +2 -1
  769. package/steps/steps.min.js +1 -1
  770. package/styleclass/StyleClass.d.ts +2 -2
  771. package/tabmenu/TabMenu.vue +3 -2
  772. package/tabmenu/tabmenu.cjs.js +3 -2
  773. package/tabmenu/tabmenu.cjs.min.js +1 -1
  774. package/tabmenu/tabmenu.esm.js +3 -2
  775. package/tabmenu/tabmenu.esm.min.js +1 -1
  776. package/tabmenu/tabmenu.js +3 -2
  777. package/tabmenu/tabmenu.min.js +1 -1
  778. package/tabpanel/TabPanel.d.ts +1 -1
  779. package/tabview/TabView.d.ts +31 -1
  780. package/tabview/TabView.vue +4 -3
  781. package/tabview/tabview.cjs.js +4 -3
  782. package/tabview/tabview.cjs.min.js +1 -1
  783. package/tabview/tabview.esm.js +4 -3
  784. package/tabview/tabview.esm.min.js +1 -1
  785. package/tabview/tabview.js +4 -3
  786. package/tabview/tabview.min.js +1 -1
  787. package/tag/Tag.d.ts +2 -2
  788. package/tag/Tag.vue +3 -2
  789. package/tag/tag.cjs.js +3 -2
  790. package/tag/tag.cjs.min.js +1 -1
  791. package/tag/tag.esm.js +3 -2
  792. package/tag/tag.esm.min.js +1 -1
  793. package/tag/tag.js +3 -2
  794. package/tag/tag.min.js +1 -1
  795. package/terminal/Terminal.vue +2 -1
  796. package/terminal/terminal.cjs.js +2 -1
  797. package/terminal/terminal.cjs.min.js +1 -1
  798. package/terminal/terminal.esm.js +2 -1
  799. package/terminal/terminal.esm.min.js +1 -1
  800. package/terminal/terminal.js +2 -1
  801. package/terminal/terminal.min.js +1 -1
  802. package/textarea/Textarea.vue +2 -1
  803. package/textarea/textarea.cjs.js +4 -2
  804. package/textarea/textarea.cjs.min.js +1 -1
  805. package/textarea/textarea.esm.js +4 -2
  806. package/textarea/textarea.esm.min.js +1 -1
  807. package/textarea/textarea.js +4 -2
  808. package/textarea/textarea.min.js +1 -1
  809. package/tieredmenu/TieredMenu.d.ts +2 -2
  810. package/tieredmenu/TieredMenu.vue +11 -4
  811. package/tieredmenu/TieredMenuSub.vue +13 -3
  812. package/tieredmenu/tieredmenu.cjs.js +31 -22
  813. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  814. package/tieredmenu/tieredmenu.esm.js +31 -22
  815. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  816. package/tieredmenu/tieredmenu.js +31 -22
  817. package/tieredmenu/tieredmenu.min.js +1 -1
  818. package/timeline/Timeline.vue +2 -1
  819. package/timeline/timeline.cjs.js +2 -1
  820. package/timeline/timeline.cjs.min.js +1 -1
  821. package/timeline/timeline.esm.js +2 -1
  822. package/timeline/timeline.esm.min.js +1 -1
  823. package/timeline/timeline.js +2 -1
  824. package/timeline/timeline.min.js +1 -1
  825. package/toast/Toast.vue +1 -1
  826. package/toast/toast.cjs.js +1 -1
  827. package/toast/toast.cjs.min.js +1 -1
  828. package/toast/toast.esm.js +1 -1
  829. package/toast/toast.esm.min.js +1 -1
  830. package/toast/toast.js +1 -1
  831. package/toast/toast.min.js +1 -1
  832. package/togglebutton/ToggleButton.vue +5 -1
  833. package/togglebutton/togglebutton.cjs.js +5 -2
  834. package/togglebutton/togglebutton.cjs.min.js +1 -1
  835. package/togglebutton/togglebutton.esm.js +5 -2
  836. package/togglebutton/togglebutton.esm.min.js +1 -1
  837. package/togglebutton/togglebutton.js +5 -2
  838. package/togglebutton/togglebutton.min.js +1 -1
  839. package/toolbar/Toolbar.vue +3 -2
  840. package/toolbar/toolbar.cjs.js +3 -2
  841. package/toolbar/toolbar.cjs.min.js +1 -1
  842. package/toolbar/toolbar.esm.js +3 -2
  843. package/toolbar/toolbar.esm.min.js +1 -1
  844. package/toolbar/toolbar.js +3 -2
  845. package/toolbar/toolbar.min.js +1 -1
  846. package/tooltip/tooltip.cjs.js +6 -7
  847. package/tooltip/tooltip.cjs.min.js +1 -1
  848. package/tooltip/tooltip.esm.js +6 -7
  849. package/tooltip/tooltip.esm.min.js +1 -1
  850. package/tooltip/tooltip.js +6 -7
  851. package/tooltip/tooltip.min.js +1 -1
  852. package/tree/Tree.d.ts +2 -2
  853. package/tree/Tree.vue +2 -1
  854. package/tree/tree.cjs.js +2 -1
  855. package/tree/tree.cjs.min.js +1 -1
  856. package/tree/tree.esm.js +2 -1
  857. package/tree/tree.esm.min.js +1 -1
  858. package/tree/tree.js +2 -1
  859. package/tree/tree.min.js +1 -1
  860. package/treeselect/TreeSelect.d.ts +2 -2
  861. package/treeselect/TreeSelect.vue +2 -1
  862. package/treeselect/treeselect.cjs.js +2 -1
  863. package/treeselect/treeselect.cjs.min.js +1 -1
  864. package/treeselect/treeselect.esm.js +2 -1
  865. package/treeselect/treeselect.esm.min.js +1 -1
  866. package/treeselect/treeselect.js +2 -1
  867. package/treeselect/treeselect.min.js +1 -1
  868. package/treetable/TreeTable.d.ts +4 -4
  869. package/treetable/TreeTable.vue +2 -1
  870. package/treetable/treetable.cjs.js +2 -1
  871. package/treetable/treetable.cjs.min.js +1 -1
  872. package/treetable/treetable.esm.js +2 -1
  873. package/treetable/treetable.esm.min.js +1 -1
  874. package/treetable/treetable.js +2 -1
  875. package/treetable/treetable.min.js +1 -1
  876. package/tristatecheckbox/TriStateCheckbox.vue +5 -1
  877. package/tristatecheckbox/tristatecheckbox.cjs.js +5 -2
  878. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  879. package/tristatecheckbox/tristatecheckbox.esm.js +5 -2
  880. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  881. package/tristatecheckbox/tristatecheckbox.js +5 -2
  882. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  883. package/ts-helpers.d.ts +2 -0
  884. package/vetur-attributes.json +36 -0
  885. package/vetur-tags.json +14 -0
  886. package/virtualscroller/VirtualScroller.vue +17 -10
  887. package/virtualscroller/virtualscroller.cjs.js +23 -16
  888. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  889. package/virtualscroller/virtualscroller.esm.js +23 -16
  890. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  891. package/virtualscroller/virtualscroller.js +23 -16
  892. package/virtualscroller/virtualscroller.min.js +1 -1
  893. package/web-types.json +119 -1
  894. package/step/BaseStep.vue +0 -18
  895. package/step/Step.vue +0 -12
  896. package/step/step.cjs.min.js +0 -1
  897. package/step/step.esm.min.js +0 -1
  898. package/step/step.min.js +0 -1
  899. package/step/style/stepstyle.cjs.js +0 -5
  900. package/step/style/stepstyle.esm.js +0 -3
  901. package/step/style/stepstyle.js +0 -10
  902. package/step/style/stepstyle.min.js +0 -1
  903. /package/{step/style/stepstyle.cjs.min.js → stepperpanel/style/stepperpanelstyle.cjs.min.js} +0 -0
  904. /package/{step/style/stepstyle.esm.min.js → stepperpanel/style/stepperpanelstyle.esm.min.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="cx('root')" v-bind="ptm('root')">
2
+ <div :class="cx('root')" v-bind="ptmi('root')">
3
3
  <div :class="cx('wrapper')" v-bind="ptm('wrapper')">
4
4
  <div ref="content" :id="contentId" :class="cx('content')" @scroll="onScroll" @mouseenter="moveBar" v-bind="ptm('content')">
5
5
  <slot></slot>
@@ -46,6 +46,7 @@ import BaseScrollPanel from './BaseScrollPanel.vue';
46
46
  export default {
47
47
  name: 'ScrollPanel',
48
48
  extends: BaseScrollPanel,
49
+ inheritAttrs: false,
49
50
  initialized: false,
50
51
  documentResizeListener: null,
51
52
  documentMouseMoveListener: null,
@@ -30,6 +30,7 @@ var script$1 = {
30
30
  var script = {
31
31
  name: 'ScrollPanel',
32
32
  "extends": script$1,
33
+ inheritAttrs: false,
33
34
  initialized: false,
34
35
  documentResizeListener: null,
35
36
  documentMouseMoveListener: null,
@@ -339,7 +340,7 @@ var _hoisted_3 = ["aria-controls", "aria-valuenow"];
339
340
  function render(_ctx, _cache, $props, $setup, $data, $options) {
340
341
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
341
342
  "class": _ctx.cx('root')
342
- }, _ctx.ptm('root')), [vue.createElementVNode("div", vue.mergeProps({
343
+ }, _ctx.ptmi('root')), [vue.createElementVNode("div", vue.mergeProps({
343
344
  "class": _ctx.cx('wrapper')
344
345
  }, _ctx.ptm('wrapper')), [vue.createElementVNode("div", vue.mergeProps({
345
346
  ref: "content",
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/scrollpanel/style"),o=require("vue");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"ScrollPanel",extends:{name:"BaseScrollPanel",extends:s(t).default,props:{step:{type:Number,default:5}},style:s(n).default,provide:function(){return{$parentInstance:this}}},initialized:!1,documentResizeListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,frame:null,scrollXRatio:null,scrollYRatio:null,isXBarClicked:!1,isYBarClicked:!1,lastPageX:null,lastPageY:null,timer:null,outsideClickListener:null,data:function(){return{id:this.$attrs.id,orientation:"vertical",lastScrollTop:0,lastScrollLeft:0}},watch:{"$attrs.id":function(t){this.id=t||e.UniqueComponentId()}},mounted:function(){this.id=this.id||e.UniqueComponentId(),this.$el.offsetParent&&this.initialize()},updated:function(){!this.initialized&&this.$el.offsetParent&&this.initialize()},beforeUnmount:function(){this.unbindDocumentResizeListener(),this.frame&&window.cancelAnimationFrame(this.frame)},methods:{initialize:function(){this.moveBar(),this.bindDocumentResizeListener(),this.calculateContainerHeight()},calculateContainerHeight:function(){var t=getComputedStyle(this.$el),n=getComputedStyle(this.$refs.xBar),o=e.DomHandler.getHeight(this.$el)-parseInt(n.height,10);"none"!==t["max-height"]&&0===o&&(this.$el.style.height=this.$refs.content.offsetHeight+parseInt(n.height,10)>parseInt(t["max-height"],10)?t["max-height"]:this.$refs.content.offsetHeight+parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth)+"px")},moveBar:function(){var t=this;if(this.$refs.content){var n=this.$refs.content.scrollWidth,o=-1*(this.$el.clientHeight-this.$refs.xBar.clientHeight);this.scrollXRatio=this.$refs.content.clientWidth/n;var s=this.$refs.content.scrollHeight,r=-1*(this.$el.clientWidth-this.$refs.yBar.clientWidth);this.scrollYRatio=this.$refs.content.clientHeight/s,this.frame=this.requestAnimationFrame((function(){t.scrollXRatio>=1?(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.xBar,"p-scrollpanel-hidden")):(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.xBar,"p-scrollpanel-hidden"),t.$refs.xBar.style.cssText="width:"+Math.max(100*t.scrollXRatio,10)+"%; left:"+t.$refs.content.scrollLeft/n*100+"%;bottom:"+o+"px;"),t.scrollYRatio>=1?(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.yBar,"p-scrollpanel-hidden")):(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.yBar,"p-scrollpanel-hidden"),t.$refs.yBar.style.cssText="height:"+Math.max(100*t.scrollYRatio,10)+"%; top: calc("+t.$refs.content.scrollTop/s*100+"% - "+t.$refs.xBar.clientHeight+"px);right:"+r+"px;")}))}},onYBarMouseDown:function(t){this.isYBarClicked=!0,this.$refs.yBar.focus(),this.lastPageY=t.pageY,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.yBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onXBarMouseDown:function(t){this.isXBarClicked=!0,this.$refs.xBar.focus(),this.lastPageX=t.pageX,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onScroll:function(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()},onKeyDown:function(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},onKeyUp:function(){this.clearTimer()},repeat:function(e,t){this.$refs.content[e]+=t,this.moveBar()},setTimer:function(e,t){var n=this;this.clearTimer(),this.timer=setTimeout((function(){n.repeat(e,t)}),40)},clearTimer:function(){this.timer&&clearTimeout(this.timer)},onDocumentMouseMove:function(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))},onMouseMoveForXBar:function(e){var t=this,n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollLeft+=n/t.scrollXRatio}))},onMouseMoveForYBar:function(e){var t=this,n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollTop+=n/t.scrollYRatio}))},onFocus:function(e){this.$refs.xBar.isSameNode(e.target)?this.orientation="horizontal":this.$refs.yBar.isSameNode(e.target)&&(this.orientation="vertical")},onBlur:function(){"horizontal"===this.orientation&&(this.orientation="vertical")},onDocumentMouseUp:function(){this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.yBar,"p-scrollpanel-grabbed"),this.$refs.xBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1},requestAnimationFrame:function(e){return(window.requestAnimationFrame||this.timeoutFrame)(e)},refresh:function(){this.moveBar()},scrollTop:function(e){var t=this.$refs.content.scrollHeight-this.$refs.content.clientHeight;this.$refs.content.scrollTop=e=e>t?t:e>0?e:0},timeoutFrame:function(e){setTimeout(e,0)},bindDocumentMouseListeners:function(){var e=this;this.documentMouseMoveListener||(this.documentMouseMoveListener=function(t){e.onDocumentMouseMove(t)},document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=function(t){e.onDocumentMouseUp(t)},document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseListeners:function(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},bindDocumentResizeListener:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.moveBar()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentResizeListener:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},computed:{contentId:function(){return this.id+"_content"}}},i=["id"],a=["aria-controls","aria-valuenow"],l=["aria-controls","aria-valuenow"];r.render=function(e,t,n,s,r,c){return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root")},e.ptm("root")),[o.createElementVNode("div",o.mergeProps({class:e.cx("wrapper")},e.ptm("wrapper")),[o.createElementVNode("div",o.mergeProps({ref:"content",id:c.contentId,class:e.cx("content"),onScroll:t[0]||(t[0]=function(){return c.onScroll&&c.onScroll.apply(c,arguments)}),onMouseenter:t[1]||(t[1]=function(){return c.moveBar&&c.moveBar.apply(c,arguments)})},e.ptm("content")),[o.renderSlot(e.$slots,"default")],16,i)],16),o.createElementVNode("div",o.mergeProps({ref:"xBar",class:e.cx("barx"),tabindex:"0",role:"scrollbar","aria-orientation":"horizontal","aria-controls":c.contentId,"aria-valuenow":r.lastScrollLeft,onMousedown:t[2]||(t[2]=function(){return c.onXBarMouseDown&&c.onXBarMouseDown.apply(c,arguments)}),onKeydown:t[3]||(t[3]=function(e){return c.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[5]||(t[5]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:t[6]||(t[6]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},e.ptm("barx"),{"data-pc-group-section":"bar"}),null,16,a),o.createElementVNode("div",o.mergeProps({ref:"yBar",class:e.cx("bary"),tabindex:"0",role:"scrollbar","aria-orientation":"vertical","aria-controls":c.contentId,"aria-valuenow":r.lastScrollTop,onMousedown:t[7]||(t[7]=function(){return c.onYBarMouseDown&&c.onYBarMouseDown.apply(c,arguments)}),onKeydown:t[8]||(t[8]=function(e){return c.onKeyDown(e)}),onKeyup:t[9]||(t[9]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[10]||(t[10]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)})},e.ptm("bary"),{"data-pc-group-section":"bar"}),null,16,l)],16)},module.exports=r;
1
+ "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/scrollpanel/style"),o=require("vue");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"ScrollPanel",extends:{name:"BaseScrollPanel",extends:s(t).default,props:{step:{type:Number,default:5}},style:s(n).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,initialized:!1,documentResizeListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,frame:null,scrollXRatio:null,scrollYRatio:null,isXBarClicked:!1,isYBarClicked:!1,lastPageX:null,lastPageY:null,timer:null,outsideClickListener:null,data:function(){return{id:this.$attrs.id,orientation:"vertical",lastScrollTop:0,lastScrollLeft:0}},watch:{"$attrs.id":function(t){this.id=t||e.UniqueComponentId()}},mounted:function(){this.id=this.id||e.UniqueComponentId(),this.$el.offsetParent&&this.initialize()},updated:function(){!this.initialized&&this.$el.offsetParent&&this.initialize()},beforeUnmount:function(){this.unbindDocumentResizeListener(),this.frame&&window.cancelAnimationFrame(this.frame)},methods:{initialize:function(){this.moveBar(),this.bindDocumentResizeListener(),this.calculateContainerHeight()},calculateContainerHeight:function(){var t=getComputedStyle(this.$el),n=getComputedStyle(this.$refs.xBar),o=e.DomHandler.getHeight(this.$el)-parseInt(n.height,10);"none"!==t["max-height"]&&0===o&&(this.$el.style.height=this.$refs.content.offsetHeight+parseInt(n.height,10)>parseInt(t["max-height"],10)?t["max-height"]:this.$refs.content.offsetHeight+parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth)+"px")},moveBar:function(){var t=this;if(this.$refs.content){var n=this.$refs.content.scrollWidth,o=-1*(this.$el.clientHeight-this.$refs.xBar.clientHeight);this.scrollXRatio=this.$refs.content.clientWidth/n;var s=this.$refs.content.scrollHeight,r=-1*(this.$el.clientWidth-this.$refs.yBar.clientWidth);this.scrollYRatio=this.$refs.content.clientHeight/s,this.frame=this.requestAnimationFrame((function(){t.scrollXRatio>=1?(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.xBar,"p-scrollpanel-hidden")):(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.xBar,"p-scrollpanel-hidden"),t.$refs.xBar.style.cssText="width:"+Math.max(100*t.scrollXRatio,10)+"%; left:"+t.$refs.content.scrollLeft/n*100+"%;bottom:"+o+"px;"),t.scrollYRatio>=1?(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.yBar,"p-scrollpanel-hidden")):(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.yBar,"p-scrollpanel-hidden"),t.$refs.yBar.style.cssText="height:"+Math.max(100*t.scrollYRatio,10)+"%; top: calc("+t.$refs.content.scrollTop/s*100+"% - "+t.$refs.xBar.clientHeight+"px);right:"+r+"px;")}))}},onYBarMouseDown:function(t){this.isYBarClicked=!0,this.$refs.yBar.focus(),this.lastPageY=t.pageY,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.yBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onXBarMouseDown:function(t){this.isXBarClicked=!0,this.$refs.xBar.focus(),this.lastPageX=t.pageX,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onScroll:function(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()},onKeyDown:function(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},onKeyUp:function(){this.clearTimer()},repeat:function(e,t){this.$refs.content[e]+=t,this.moveBar()},setTimer:function(e,t){var n=this;this.clearTimer(),this.timer=setTimeout((function(){n.repeat(e,t)}),40)},clearTimer:function(){this.timer&&clearTimeout(this.timer)},onDocumentMouseMove:function(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))},onMouseMoveForXBar:function(e){var t=this,n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollLeft+=n/t.scrollXRatio}))},onMouseMoveForYBar:function(e){var t=this,n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollTop+=n/t.scrollYRatio}))},onFocus:function(e){this.$refs.xBar.isSameNode(e.target)?this.orientation="horizontal":this.$refs.yBar.isSameNode(e.target)&&(this.orientation="vertical")},onBlur:function(){"horizontal"===this.orientation&&(this.orientation="vertical")},onDocumentMouseUp:function(){this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.yBar,"p-scrollpanel-grabbed"),this.$refs.xBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1},requestAnimationFrame:function(e){return(window.requestAnimationFrame||this.timeoutFrame)(e)},refresh:function(){this.moveBar()},scrollTop:function(e){var t=this.$refs.content.scrollHeight-this.$refs.content.clientHeight;this.$refs.content.scrollTop=e=e>t?t:e>0?e:0},timeoutFrame:function(e){setTimeout(e,0)},bindDocumentMouseListeners:function(){var e=this;this.documentMouseMoveListener||(this.documentMouseMoveListener=function(t){e.onDocumentMouseMove(t)},document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=function(t){e.onDocumentMouseUp(t)},document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseListeners:function(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},bindDocumentResizeListener:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.moveBar()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentResizeListener:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},computed:{contentId:function(){return this.id+"_content"}}},i=["id"],a=["aria-controls","aria-valuenow"],l=["aria-controls","aria-valuenow"];r.render=function(e,t,n,s,r,c){return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root")},e.ptmi("root")),[o.createElementVNode("div",o.mergeProps({class:e.cx("wrapper")},e.ptm("wrapper")),[o.createElementVNode("div",o.mergeProps({ref:"content",id:c.contentId,class:e.cx("content"),onScroll:t[0]||(t[0]=function(){return c.onScroll&&c.onScroll.apply(c,arguments)}),onMouseenter:t[1]||(t[1]=function(){return c.moveBar&&c.moveBar.apply(c,arguments)})},e.ptm("content")),[o.renderSlot(e.$slots,"default")],16,i)],16),o.createElementVNode("div",o.mergeProps({ref:"xBar",class:e.cx("barx"),tabindex:"0",role:"scrollbar","aria-orientation":"horizontal","aria-controls":c.contentId,"aria-valuenow":r.lastScrollLeft,onMousedown:t[2]||(t[2]=function(){return c.onXBarMouseDown&&c.onXBarMouseDown.apply(c,arguments)}),onKeydown:t[3]||(t[3]=function(e){return c.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[5]||(t[5]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:t[6]||(t[6]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},e.ptm("barx"),{"data-pc-group-section":"bar"}),null,16,a),o.createElementVNode("div",o.mergeProps({ref:"yBar",class:e.cx("bary"),tabindex:"0",role:"scrollbar","aria-orientation":"vertical","aria-controls":c.contentId,"aria-valuenow":r.lastScrollTop,onMousedown:t[7]||(t[7]=function(){return c.onYBarMouseDown&&c.onYBarMouseDown.apply(c,arguments)}),onKeydown:t[8]||(t[8]=function(e){return c.onKeyDown(e)}),onKeyup:t[9]||(t[9]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[10]||(t[10]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)})},e.ptm("bary"),{"data-pc-group-section":"bar"}),null,16,l)],16)},module.exports=r;
@@ -23,6 +23,7 @@ var script$1 = {
23
23
  var script = {
24
24
  name: 'ScrollPanel',
25
25
  "extends": script$1,
26
+ inheritAttrs: false,
26
27
  initialized: false,
27
28
  documentResizeListener: null,
28
29
  documentMouseMoveListener: null,
@@ -332,7 +333,7 @@ var _hoisted_3 = ["aria-controls", "aria-valuenow"];
332
333
  function render(_ctx, _cache, $props, $setup, $data, $options) {
333
334
  return openBlock(), createElementBlock("div", mergeProps({
334
335
  "class": _ctx.cx('root')
335
- }, _ctx.ptm('root')), [createElementVNode("div", mergeProps({
336
+ }, _ctx.ptmi('root')), [createElementVNode("div", mergeProps({
336
337
  "class": _ctx.cx('wrapper')
337
338
  }, _ctx.ptm('wrapper')), [createElementVNode("div", mergeProps({
338
339
  ref: "content",
@@ -1 +1 @@
1
- import{UniqueComponentId as e,DomHandler as t}from"primevue/utils";import s from"primevue/basecomponent";import n from"primevue/scrollpanel/style";import{openBlock as o,createElementBlock as i,mergeProps as r,createElementVNode as a,renderSlot as l}from"vue";var c={name:"ScrollPanel",extends:{name:"BaseScrollPanel",extends:s,props:{step:{type:Number,default:5}},style:n,provide:function(){return{$parentInstance:this}}},initialized:!1,documentResizeListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,frame:null,scrollXRatio:null,scrollYRatio:null,isXBarClicked:!1,isYBarClicked:!1,lastPageX:null,lastPageY:null,timer:null,outsideClickListener:null,data:function(){return{id:this.$attrs.id,orientation:"vertical",lastScrollTop:0,lastScrollLeft:0}},watch:{"$attrs.id":function(t){this.id=t||e()}},mounted:function(){this.id=this.id||e(),this.$el.offsetParent&&this.initialize()},updated:function(){!this.initialized&&this.$el.offsetParent&&this.initialize()},beforeUnmount:function(){this.unbindDocumentResizeListener(),this.frame&&window.cancelAnimationFrame(this.frame)},methods:{initialize:function(){this.moveBar(),this.bindDocumentResizeListener(),this.calculateContainerHeight()},calculateContainerHeight:function(){var e=getComputedStyle(this.$el),s=getComputedStyle(this.$refs.xBar),n=t.getHeight(this.$el)-parseInt(s.height,10);"none"!==e["max-height"]&&0===n&&(this.$el.style.height=this.$refs.content.offsetHeight+parseInt(s.height,10)>parseInt(e["max-height"],10)?e["max-height"]:this.$refs.content.offsetHeight+parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")},moveBar:function(){var e=this;if(this.$refs.content){var s=this.$refs.content.scrollWidth,n=-1*(this.$el.clientHeight-this.$refs.xBar.clientHeight);this.scrollXRatio=this.$refs.content.clientWidth/s;var o=this.$refs.content.scrollHeight,i=-1*(this.$el.clientWidth-this.$refs.yBar.clientWidth);this.scrollYRatio=this.$refs.content.clientHeight/o,this.frame=this.requestAnimationFrame((function(){e.scrollXRatio>=1?(e.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","true"),!e.isUnstyled&&t.addClass(e.$refs.xBar,"p-scrollpanel-hidden")):(e.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","false"),!e.isUnstyled&&t.removeClass(e.$refs.xBar,"p-scrollpanel-hidden"),e.$refs.xBar.style.cssText="width:"+Math.max(100*e.scrollXRatio,10)+"%; left:"+e.$refs.content.scrollLeft/s*100+"%;bottom:"+n+"px;"),e.scrollYRatio>=1?(e.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","true"),!e.isUnstyled&&t.addClass(e.$refs.yBar,"p-scrollpanel-hidden")):(e.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","false"),!e.isUnstyled&&t.removeClass(e.$refs.yBar,"p-scrollpanel-hidden"),e.$refs.yBar.style.cssText="height:"+Math.max(100*e.scrollYRatio,10)+"%; top: calc("+e.$refs.content.scrollTop/o*100+"% - "+e.$refs.xBar.clientHeight+"px);right:"+i+"px;")}))}},onYBarMouseDown:function(e){this.isYBarClicked=!0,this.$refs.yBar.focus(),this.lastPageY=e.pageY,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&t.addClass(this.$refs.yBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&t.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()},onXBarMouseDown:function(e){this.isXBarClicked=!0,this.$refs.xBar.focus(),this.lastPageX=e.pageX,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.addClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()},onScroll:function(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()},onKeyDown:function(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},onKeyUp:function(){this.clearTimer()},repeat:function(e,t){this.$refs.content[e]+=t,this.moveBar()},setTimer:function(e,t){var s=this;this.clearTimer(),this.timer=setTimeout((function(){s.repeat(e,t)}),40)},clearTimer:function(){this.timer&&clearTimeout(this.timer)},onDocumentMouseMove:function(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))},onMouseMoveForXBar:function(e){var t=this,s=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollLeft+=s/t.scrollXRatio}))},onMouseMoveForYBar:function(e){var t=this,s=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollTop+=s/t.scrollYRatio}))},onFocus:function(e){this.$refs.xBar.isSameNode(e.target)?this.orientation="horizontal":this.$refs.yBar.isSameNode(e.target)&&(this.orientation="vertical")},onBlur:function(){"horizontal"===this.orientation&&(this.orientation="vertical")},onDocumentMouseUp:function(){this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.removeClass(this.$refs.yBar,"p-scrollpanel-grabbed"),this.$refs.xBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.removeClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.removeClass(document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1},requestAnimationFrame:function(e){return(window.requestAnimationFrame||this.timeoutFrame)(e)},refresh:function(){this.moveBar()},scrollTop:function(e){var t=this.$refs.content.scrollHeight-this.$refs.content.clientHeight;this.$refs.content.scrollTop=e=e>t?t:e>0?e:0},timeoutFrame:function(e){setTimeout(e,0)},bindDocumentMouseListeners:function(){var e=this;this.documentMouseMoveListener||(this.documentMouseMoveListener=function(t){e.onDocumentMouseMove(t)},document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=function(t){e.onDocumentMouseUp(t)},document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseListeners:function(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},bindDocumentResizeListener:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.moveBar()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentResizeListener:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},computed:{contentId:function(){return this.id+"_content"}}},u=["id"],h=["aria-controls","aria-valuenow"],d=["aria-controls","aria-valuenow"];c.render=function(e,t,s,n,c,p){return o(),i("div",r({class:e.cx("root")},e.ptm("root")),[a("div",r({class:e.cx("wrapper")},e.ptm("wrapper")),[a("div",r({ref:"content",id:p.contentId,class:e.cx("content"),onScroll:t[0]||(t[0]=function(){return p.onScroll&&p.onScroll.apply(p,arguments)}),onMouseenter:t[1]||(t[1]=function(){return p.moveBar&&p.moveBar.apply(p,arguments)})},e.ptm("content")),[l(e.$slots,"default")],16,u)],16),a("div",r({ref:"xBar",class:e.cx("barx"),tabindex:"0",role:"scrollbar","aria-orientation":"horizontal","aria-controls":p.contentId,"aria-valuenow":c.lastScrollLeft,onMousedown:t[2]||(t[2]=function(){return p.onXBarMouseDown&&p.onXBarMouseDown.apply(p,arguments)}),onKeydown:t[3]||(t[3]=function(e){return p.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(){return p.onKeyUp&&p.onKeyUp.apply(p,arguments)}),onFocus:t[5]||(t[5]=function(){return p.onFocus&&p.onFocus.apply(p,arguments)}),onBlur:t[6]||(t[6]=function(){return p.onBlur&&p.onBlur.apply(p,arguments)})},e.ptm("barx"),{"data-pc-group-section":"bar"}),null,16,h),a("div",r({ref:"yBar",class:e.cx("bary"),tabindex:"0",role:"scrollbar","aria-orientation":"vertical","aria-controls":p.contentId,"aria-valuenow":c.lastScrollTop,onMousedown:t[7]||(t[7]=function(){return p.onYBarMouseDown&&p.onYBarMouseDown.apply(p,arguments)}),onKeydown:t[8]||(t[8]=function(e){return p.onKeyDown(e)}),onKeyup:t[9]||(t[9]=function(){return p.onKeyUp&&p.onKeyUp.apply(p,arguments)}),onFocus:t[10]||(t[10]=function(){return p.onFocus&&p.onFocus.apply(p,arguments)})},e.ptm("bary"),{"data-pc-group-section":"bar"}),null,16,d)],16)};export{c as default};
1
+ import{UniqueComponentId as e,DomHandler as t}from"primevue/utils";import s from"primevue/basecomponent";import n from"primevue/scrollpanel/style";import{openBlock as o,createElementBlock as i,mergeProps as r,createElementVNode as a,renderSlot as l}from"vue";var c={name:"ScrollPanel",extends:{name:"BaseScrollPanel",extends:s,props:{step:{type:Number,default:5}},style:n,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,initialized:!1,documentResizeListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,frame:null,scrollXRatio:null,scrollYRatio:null,isXBarClicked:!1,isYBarClicked:!1,lastPageX:null,lastPageY:null,timer:null,outsideClickListener:null,data:function(){return{id:this.$attrs.id,orientation:"vertical",lastScrollTop:0,lastScrollLeft:0}},watch:{"$attrs.id":function(t){this.id=t||e()}},mounted:function(){this.id=this.id||e(),this.$el.offsetParent&&this.initialize()},updated:function(){!this.initialized&&this.$el.offsetParent&&this.initialize()},beforeUnmount:function(){this.unbindDocumentResizeListener(),this.frame&&window.cancelAnimationFrame(this.frame)},methods:{initialize:function(){this.moveBar(),this.bindDocumentResizeListener(),this.calculateContainerHeight()},calculateContainerHeight:function(){var e=getComputedStyle(this.$el),s=getComputedStyle(this.$refs.xBar),n=t.getHeight(this.$el)-parseInt(s.height,10);"none"!==e["max-height"]&&0===n&&(this.$el.style.height=this.$refs.content.offsetHeight+parseInt(s.height,10)>parseInt(e["max-height"],10)?e["max-height"]:this.$refs.content.offsetHeight+parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")},moveBar:function(){var e=this;if(this.$refs.content){var s=this.$refs.content.scrollWidth,n=-1*(this.$el.clientHeight-this.$refs.xBar.clientHeight);this.scrollXRatio=this.$refs.content.clientWidth/s;var o=this.$refs.content.scrollHeight,i=-1*(this.$el.clientWidth-this.$refs.yBar.clientWidth);this.scrollYRatio=this.$refs.content.clientHeight/o,this.frame=this.requestAnimationFrame((function(){e.scrollXRatio>=1?(e.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","true"),!e.isUnstyled&&t.addClass(e.$refs.xBar,"p-scrollpanel-hidden")):(e.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","false"),!e.isUnstyled&&t.removeClass(e.$refs.xBar,"p-scrollpanel-hidden"),e.$refs.xBar.style.cssText="width:"+Math.max(100*e.scrollXRatio,10)+"%; left:"+e.$refs.content.scrollLeft/s*100+"%;bottom:"+n+"px;"),e.scrollYRatio>=1?(e.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","true"),!e.isUnstyled&&t.addClass(e.$refs.yBar,"p-scrollpanel-hidden")):(e.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","false"),!e.isUnstyled&&t.removeClass(e.$refs.yBar,"p-scrollpanel-hidden"),e.$refs.yBar.style.cssText="height:"+Math.max(100*e.scrollYRatio,10)+"%; top: calc("+e.$refs.content.scrollTop/o*100+"% - "+e.$refs.xBar.clientHeight+"px);right:"+i+"px;")}))}},onYBarMouseDown:function(e){this.isYBarClicked=!0,this.$refs.yBar.focus(),this.lastPageY=e.pageY,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&t.addClass(this.$refs.yBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&t.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()},onXBarMouseDown:function(e){this.isXBarClicked=!0,this.$refs.xBar.focus(),this.lastPageX=e.pageX,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.addClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()},onScroll:function(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()},onKeyDown:function(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},onKeyUp:function(){this.clearTimer()},repeat:function(e,t){this.$refs.content[e]+=t,this.moveBar()},setTimer:function(e,t){var s=this;this.clearTimer(),this.timer=setTimeout((function(){s.repeat(e,t)}),40)},clearTimer:function(){this.timer&&clearTimeout(this.timer)},onDocumentMouseMove:function(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))},onMouseMoveForXBar:function(e){var t=this,s=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollLeft+=s/t.scrollXRatio}))},onMouseMoveForYBar:function(e){var t=this,s=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollTop+=s/t.scrollYRatio}))},onFocus:function(e){this.$refs.xBar.isSameNode(e.target)?this.orientation="horizontal":this.$refs.yBar.isSameNode(e.target)&&(this.orientation="vertical")},onBlur:function(){"horizontal"===this.orientation&&(this.orientation="vertical")},onDocumentMouseUp:function(){this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.removeClass(this.$refs.yBar,"p-scrollpanel-grabbed"),this.$refs.xBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.removeClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&t.removeClass(document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1},requestAnimationFrame:function(e){return(window.requestAnimationFrame||this.timeoutFrame)(e)},refresh:function(){this.moveBar()},scrollTop:function(e){var t=this.$refs.content.scrollHeight-this.$refs.content.clientHeight;this.$refs.content.scrollTop=e=e>t?t:e>0?e:0},timeoutFrame:function(e){setTimeout(e,0)},bindDocumentMouseListeners:function(){var e=this;this.documentMouseMoveListener||(this.documentMouseMoveListener=function(t){e.onDocumentMouseMove(t)},document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=function(t){e.onDocumentMouseUp(t)},document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseListeners:function(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},bindDocumentResizeListener:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.moveBar()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentResizeListener:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},computed:{contentId:function(){return this.id+"_content"}}},u=["id"],h=["aria-controls","aria-valuenow"],d=["aria-controls","aria-valuenow"];c.render=function(e,t,s,n,c,p){return o(),i("div",r({class:e.cx("root")},e.ptmi("root")),[a("div",r({class:e.cx("wrapper")},e.ptm("wrapper")),[a("div",r({ref:"content",id:p.contentId,class:e.cx("content"),onScroll:t[0]||(t[0]=function(){return p.onScroll&&p.onScroll.apply(p,arguments)}),onMouseenter:t[1]||(t[1]=function(){return p.moveBar&&p.moveBar.apply(p,arguments)})},e.ptm("content")),[l(e.$slots,"default")],16,u)],16),a("div",r({ref:"xBar",class:e.cx("barx"),tabindex:"0",role:"scrollbar","aria-orientation":"horizontal","aria-controls":p.contentId,"aria-valuenow":c.lastScrollLeft,onMousedown:t[2]||(t[2]=function(){return p.onXBarMouseDown&&p.onXBarMouseDown.apply(p,arguments)}),onKeydown:t[3]||(t[3]=function(e){return p.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(){return p.onKeyUp&&p.onKeyUp.apply(p,arguments)}),onFocus:t[5]||(t[5]=function(){return p.onFocus&&p.onFocus.apply(p,arguments)}),onBlur:t[6]||(t[6]=function(){return p.onBlur&&p.onBlur.apply(p,arguments)})},e.ptm("barx"),{"data-pc-group-section":"bar"}),null,16,h),a("div",r({ref:"yBar",class:e.cx("bary"),tabindex:"0",role:"scrollbar","aria-orientation":"vertical","aria-controls":p.contentId,"aria-valuenow":c.lastScrollTop,onMousedown:t[7]||(t[7]=function(){return p.onYBarMouseDown&&p.onYBarMouseDown.apply(p,arguments)}),onKeydown:t[8]||(t[8]=function(e){return p.onKeyDown(e)}),onKeyup:t[9]||(t[9]=function(){return p.onKeyUp&&p.onKeyUp.apply(p,arguments)}),onFocus:t[10]||(t[10]=function(){return p.onFocus&&p.onFocus.apply(p,arguments)})},e.ptm("bary"),{"data-pc-group-section":"bar"}),null,16,d)],16)};export{c as default};
@@ -27,6 +27,7 @@ this.primevue.scrollpanel = (function (utils, BaseComponent, ScrollPanelStyle, v
27
27
  var script = {
28
28
  name: 'ScrollPanel',
29
29
  "extends": script$1,
30
+ inheritAttrs: false,
30
31
  initialized: false,
31
32
  documentResizeListener: null,
32
33
  documentMouseMoveListener: null,
@@ -336,7 +337,7 @@ this.primevue.scrollpanel = (function (utils, BaseComponent, ScrollPanelStyle, v
336
337
  function render(_ctx, _cache, $props, $setup, $data, $options) {
337
338
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
338
339
  "class": _ctx.cx('root')
339
- }, _ctx.ptm('root')), [vue.createElementVNode("div", vue.mergeProps({
340
+ }, _ctx.ptmi('root')), [vue.createElementVNode("div", vue.mergeProps({
340
341
  "class": _ctx.cx('wrapper')
341
342
  }, _ctx.ptm('wrapper')), [vue.createElementVNode("div", vue.mergeProps({
342
343
  ref: "content",
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.scrollpanel=function(e,t,n,o){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"ScrollPanel",extends:{name:"BaseScrollPanel",extends:s(t).default,props:{step:{type:Number,default:5}},style:s(n).default,provide:function(){return{$parentInstance:this}}},initialized:!1,documentResizeListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,frame:null,scrollXRatio:null,scrollYRatio:null,isXBarClicked:!1,isYBarClicked:!1,lastPageX:null,lastPageY:null,timer:null,outsideClickListener:null,data:function(){return{id:this.$attrs.id,orientation:"vertical",lastScrollTop:0,lastScrollLeft:0}},watch:{"$attrs.id":function(t){this.id=t||e.UniqueComponentId()}},mounted:function(){this.id=this.id||e.UniqueComponentId(),this.$el.offsetParent&&this.initialize()},updated:function(){!this.initialized&&this.$el.offsetParent&&this.initialize()},beforeUnmount:function(){this.unbindDocumentResizeListener(),this.frame&&window.cancelAnimationFrame(this.frame)},methods:{initialize:function(){this.moveBar(),this.bindDocumentResizeListener(),this.calculateContainerHeight()},calculateContainerHeight:function(){var t=getComputedStyle(this.$el),n=getComputedStyle(this.$refs.xBar),o=e.DomHandler.getHeight(this.$el)-parseInt(n.height,10);"none"!==t["max-height"]&&0===o&&(this.$el.style.height=this.$refs.content.offsetHeight+parseInt(n.height,10)>parseInt(t["max-height"],10)?t["max-height"]:this.$refs.content.offsetHeight+parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth)+"px")},moveBar:function(){var t=this;if(this.$refs.content){var n=this.$refs.content.scrollWidth,o=-1*(this.$el.clientHeight-this.$refs.xBar.clientHeight);this.scrollXRatio=this.$refs.content.clientWidth/n;var s=this.$refs.content.scrollHeight,r=-1*(this.$el.clientWidth-this.$refs.yBar.clientWidth);this.scrollYRatio=this.$refs.content.clientHeight/s,this.frame=this.requestAnimationFrame((function(){t.scrollXRatio>=1?(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.xBar,"p-scrollpanel-hidden")):(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.xBar,"p-scrollpanel-hidden"),t.$refs.xBar.style.cssText="width:"+Math.max(100*t.scrollXRatio,10)+"%; left:"+t.$refs.content.scrollLeft/n*100+"%;bottom:"+o+"px;"),t.scrollYRatio>=1?(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.yBar,"p-scrollpanel-hidden")):(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.yBar,"p-scrollpanel-hidden"),t.$refs.yBar.style.cssText="height:"+Math.max(100*t.scrollYRatio,10)+"%; top: calc("+t.$refs.content.scrollTop/s*100+"% - "+t.$refs.xBar.clientHeight+"px);right:"+r+"px;")}))}},onYBarMouseDown:function(t){this.isYBarClicked=!0,this.$refs.yBar.focus(),this.lastPageY=t.pageY,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.yBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onXBarMouseDown:function(t){this.isXBarClicked=!0,this.$refs.xBar.focus(),this.lastPageX=t.pageX,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onScroll:function(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()},onKeyDown:function(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},onKeyUp:function(){this.clearTimer()},repeat:function(e,t){this.$refs.content[e]+=t,this.moveBar()},setTimer:function(e,t){var n=this;this.clearTimer(),this.timer=setTimeout((function(){n.repeat(e,t)}),40)},clearTimer:function(){this.timer&&clearTimeout(this.timer)},onDocumentMouseMove:function(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))},onMouseMoveForXBar:function(e){var t=this,n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollLeft+=n/t.scrollXRatio}))},onMouseMoveForYBar:function(e){var t=this,n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollTop+=n/t.scrollYRatio}))},onFocus:function(e){this.$refs.xBar.isSameNode(e.target)?this.orientation="horizontal":this.$refs.yBar.isSameNode(e.target)&&(this.orientation="vertical")},onBlur:function(){"horizontal"===this.orientation&&(this.orientation="vertical")},onDocumentMouseUp:function(){this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.yBar,"p-scrollpanel-grabbed"),this.$refs.xBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1},requestAnimationFrame:function(e){return(window.requestAnimationFrame||this.timeoutFrame)(e)},refresh:function(){this.moveBar()},scrollTop:function(e){var t=this.$refs.content.scrollHeight-this.$refs.content.clientHeight;this.$refs.content.scrollTop=e=e>t?t:e>0?e:0},timeoutFrame:function(e){setTimeout(e,0)},bindDocumentMouseListeners:function(){var e=this;this.documentMouseMoveListener||(this.documentMouseMoveListener=function(t){e.onDocumentMouseMove(t)},document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=function(t){e.onDocumentMouseUp(t)},document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseListeners:function(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},bindDocumentResizeListener:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.moveBar()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentResizeListener:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},computed:{contentId:function(){return this.id+"_content"}}},i=["id"],a=["aria-controls","aria-valuenow"],l=["aria-controls","aria-valuenow"];return r.render=function(e,t,n,s,r,c){return o.openBlock(),o.createElementBlock("div",o.mergeProps({class:e.cx("root")},e.ptm("root")),[o.createElementVNode("div",o.mergeProps({class:e.cx("wrapper")},e.ptm("wrapper")),[o.createElementVNode("div",o.mergeProps({ref:"content",id:c.contentId,class:e.cx("content"),onScroll:t[0]||(t[0]=function(){return c.onScroll&&c.onScroll.apply(c,arguments)}),onMouseenter:t[1]||(t[1]=function(){return c.moveBar&&c.moveBar.apply(c,arguments)})},e.ptm("content")),[o.renderSlot(e.$slots,"default")],16,i)],16),o.createElementVNode("div",o.mergeProps({ref:"xBar",class:e.cx("barx"),tabindex:"0",role:"scrollbar","aria-orientation":"horizontal","aria-controls":c.contentId,"aria-valuenow":r.lastScrollLeft,onMousedown:t[2]||(t[2]=function(){return c.onXBarMouseDown&&c.onXBarMouseDown.apply(c,arguments)}),onKeydown:t[3]||(t[3]=function(e){return c.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[5]||(t[5]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:t[6]||(t[6]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},e.ptm("barx"),{"data-pc-group-section":"bar"}),null,16,a),o.createElementVNode("div",o.mergeProps({ref:"yBar",class:e.cx("bary"),tabindex:"0",role:"scrollbar","aria-orientation":"vertical","aria-controls":c.contentId,"aria-valuenow":r.lastScrollTop,onMousedown:t[7]||(t[7]=function(){return c.onYBarMouseDown&&c.onYBarMouseDown.apply(c,arguments)}),onKeydown:t[8]||(t[8]=function(e){return c.onKeyDown(e)}),onKeyup:t[9]||(t[9]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[10]||(t[10]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)})},e.ptm("bary"),{"data-pc-group-section":"bar"}),null,16,l)],16)},r}(primevue.utils,primevue.basecomponent,primevue.scrollpanel.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.scrollpanel=function(e,t,n,s){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"ScrollPanel",extends:{name:"BaseScrollPanel",extends:o(t).default,props:{step:{type:Number,default:5}},style:o(n).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,initialized:!1,documentResizeListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,frame:null,scrollXRatio:null,scrollYRatio:null,isXBarClicked:!1,isYBarClicked:!1,lastPageX:null,lastPageY:null,timer:null,outsideClickListener:null,data:function(){return{id:this.$attrs.id,orientation:"vertical",lastScrollTop:0,lastScrollLeft:0}},watch:{"$attrs.id":function(t){this.id=t||e.UniqueComponentId()}},mounted:function(){this.id=this.id||e.UniqueComponentId(),this.$el.offsetParent&&this.initialize()},updated:function(){!this.initialized&&this.$el.offsetParent&&this.initialize()},beforeUnmount:function(){this.unbindDocumentResizeListener(),this.frame&&window.cancelAnimationFrame(this.frame)},methods:{initialize:function(){this.moveBar(),this.bindDocumentResizeListener(),this.calculateContainerHeight()},calculateContainerHeight:function(){var t=getComputedStyle(this.$el),n=getComputedStyle(this.$refs.xBar),s=e.DomHandler.getHeight(this.$el)-parseInt(n.height,10);"none"!==t["max-height"]&&0===s&&(this.$el.style.height=this.$refs.content.offsetHeight+parseInt(n.height,10)>parseInt(t["max-height"],10)?t["max-height"]:this.$refs.content.offsetHeight+parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth)+"px")},moveBar:function(){var t=this;if(this.$refs.content){var n=this.$refs.content.scrollWidth,s=-1*(this.$el.clientHeight-this.$refs.xBar.clientHeight);this.scrollXRatio=this.$refs.content.clientWidth/n;var o=this.$refs.content.scrollHeight,r=-1*(this.$el.clientWidth-this.$refs.yBar.clientWidth);this.scrollYRatio=this.$refs.content.clientHeight/o,this.frame=this.requestAnimationFrame((function(){t.scrollXRatio>=1?(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.xBar,"p-scrollpanel-hidden")):(t.$refs.xBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.xBar,"p-scrollpanel-hidden"),t.$refs.xBar.style.cssText="width:"+Math.max(100*t.scrollXRatio,10)+"%; left:"+t.$refs.content.scrollLeft/n*100+"%;bottom:"+s+"px;"),t.scrollYRatio>=1?(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","true"),!t.isUnstyled&&e.DomHandler.addClass(t.$refs.yBar,"p-scrollpanel-hidden")):(t.$refs.yBar.setAttribute("data-p-scrollpanel-hidden","false"),!t.isUnstyled&&e.DomHandler.removeClass(t.$refs.yBar,"p-scrollpanel-hidden"),t.$refs.yBar.style.cssText="height:"+Math.max(100*t.scrollYRatio,10)+"%; top: calc("+t.$refs.content.scrollTop/o*100+"% - "+t.$refs.xBar.clientHeight+"px);right:"+r+"px;")}))}},onYBarMouseDown:function(t){this.isYBarClicked=!0,this.$refs.yBar.focus(),this.lastPageY=t.pageY,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.yBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","true"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onXBarMouseDown:function(t){this.isXBarClicked=!0,this.$refs.xBar.focus(),this.lastPageX=t.pageX,this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.addClass(document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),t.preventDefault()},onScroll:function(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()},onKeyDown:function(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},onKeyUp:function(){this.clearTimer()},repeat:function(e,t){this.$refs.content[e]+=t,this.moveBar()},setTimer:function(e,t){var n=this;this.clearTimer(),this.timer=setTimeout((function(){n.repeat(e,t)}),40)},clearTimer:function(){this.timer&&clearTimeout(this.timer)},onDocumentMouseMove:function(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))},onMouseMoveForXBar:function(e){var t=this,n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollLeft+=n/t.scrollXRatio}))},onMouseMoveForYBar:function(e){var t=this,n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.frame=this.requestAnimationFrame((function(){t.$refs.content.scrollTop+=n/t.scrollYRatio}))},onFocus:function(e){this.$refs.xBar.isSameNode(e.target)?this.orientation="horizontal":this.$refs.yBar.isSameNode(e.target)&&(this.orientation="vertical")},onBlur:function(){"horizontal"===this.orientation&&(this.orientation="vertical")},onDocumentMouseUp:function(){this.$refs.yBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.yBar,"p-scrollpanel-grabbed"),this.$refs.xBar.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(this.$refs.xBar,"p-scrollpanel-grabbed"),document.body.setAttribute("data-p-scrollpanel-grabbed","false"),!this.isUnstyled&&e.DomHandler.removeClass(document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1},requestAnimationFrame:function(e){return(window.requestAnimationFrame||this.timeoutFrame)(e)},refresh:function(){this.moveBar()},scrollTop:function(e){var t=this.$refs.content.scrollHeight-this.$refs.content.clientHeight;this.$refs.content.scrollTop=e=e>t?t:e>0?e:0},timeoutFrame:function(e){setTimeout(e,0)},bindDocumentMouseListeners:function(){var e=this;this.documentMouseMoveListener||(this.documentMouseMoveListener=function(t){e.onDocumentMouseMove(t)},document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=function(t){e.onDocumentMouseUp(t)},document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseListeners:function(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},bindDocumentResizeListener:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.moveBar()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentResizeListener:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}},computed:{contentId:function(){return this.id+"_content"}}},i=["id"],a=["aria-controls","aria-valuenow"],l=["aria-controls","aria-valuenow"];return r.render=function(e,t,n,o,r,c){return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:e.cx("root")},e.ptmi("root")),[s.createElementVNode("div",s.mergeProps({class:e.cx("wrapper")},e.ptm("wrapper")),[s.createElementVNode("div",s.mergeProps({ref:"content",id:c.contentId,class:e.cx("content"),onScroll:t[0]||(t[0]=function(){return c.onScroll&&c.onScroll.apply(c,arguments)}),onMouseenter:t[1]||(t[1]=function(){return c.moveBar&&c.moveBar.apply(c,arguments)})},e.ptm("content")),[s.renderSlot(e.$slots,"default")],16,i)],16),s.createElementVNode("div",s.mergeProps({ref:"xBar",class:e.cx("barx"),tabindex:"0",role:"scrollbar","aria-orientation":"horizontal","aria-controls":c.contentId,"aria-valuenow":r.lastScrollLeft,onMousedown:t[2]||(t[2]=function(){return c.onXBarMouseDown&&c.onXBarMouseDown.apply(c,arguments)}),onKeydown:t[3]||(t[3]=function(e){return c.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[5]||(t[5]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:t[6]||(t[6]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},e.ptm("barx"),{"data-pc-group-section":"bar"}),null,16,a),s.createElementVNode("div",s.mergeProps({ref:"yBar",class:e.cx("bary"),tabindex:"0",role:"scrollbar","aria-orientation":"vertical","aria-controls":c.contentId,"aria-valuenow":r.lastScrollTop,onMousedown:t[7]||(t[7]=function(){return c.onYBarMouseDown&&c.onYBarMouseDown.apply(c,arguments)}),onKeydown:t[8]||(t[8]=function(e){return c.onKeyDown(e)}),onKeyup:t[9]||(t[9]=function(){return c.onKeyUp&&c.onKeyUp.apply(c,arguments)}),onFocus:t[10]||(t[10]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)})},e.ptm("bary"),{"data-pc-group-section":"bar"}),null,16,l)],16)},r}(primevue.utils,primevue.basecomponent,primevue.scrollpanel.style,Vue);
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <transition name="p-scrolltop" appear @enter="onEnter" @after-leave="onAfterLeave" v-bind="ptm('transition')">
3
- <button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" type="button" :aria-label="scrollTopAriaLabel" v-bind="ptm('root')">
3
+ <button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" type="button" :aria-label="scrollTopAriaLabel" v-bind="ptmi('root')">
4
4
  <slot name="icon" :class="cx('icon')">
5
5
  <component :is="icon ? 'span' : 'ChevronUpIcon'" :class="[cx('icon'), icon]" v-bind="ptm('icon')" />
6
6
  </slot>
@@ -16,6 +16,7 @@ import BaseScrollTop from './BaseScrollTop.vue';
16
16
  export default {
17
17
  name: 'ScrollTop',
18
18
  extends: BaseScrollTop,
19
+ inheritAttrs: false,
19
20
  scrollListener: null,
20
21
  container: null,
21
22
  data() {
@@ -44,6 +44,7 @@ var script$1 = {
44
44
  var script = {
45
45
  name: 'ScrollTop',
46
46
  "extends": script$1,
47
+ inheritAttrs: false,
47
48
  scrollListener: null,
48
49
  container: null,
49
50
  data: function data() {
@@ -136,7 +137,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
136
137
  }),
137
138
  type: "button",
138
139
  "aria-label": $options.scrollTopAriaLabel
139
- }, _ctx.ptm('root')), [vue.renderSlot(_ctx.$slots, "icon", {
140
+ }, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "icon", {
140
141
  "class": vue.normalizeClass(_ctx.cx('icon'))
141
142
  }, function () {
142
143
  return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon ? 'span' : 'ChevronUpIcon'), vue.mergeProps({
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/icons/chevronup"),t=require("primevue/utils"),n=require("primevue/basecomponent"),r=require("primevue/scrolltop/style"),i=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(e),s={name:"ScrollTop",extends:{name:"BaseScrollTop",extends:o(n).default,props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:void 0},behavior:{type:String,default:"smooth"}},style:o(r).default,provide:function(){return{$parentInstance:this}}},scrollListener:null,container:null,data:function(){return{visible:!1}},mounted:function(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount:function(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick:function(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility:function(e){this.visible=e>this.threshold},bindParentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(e.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(t.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener:function(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener:function(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter:function(e){t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterLeave:function(e){t.ZIndexUtils.clear(e)},containerRef:function(e){this.container=e}},computed:{scrollTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.scrollTop:void 0}},components:{ChevronUpIcon:l.default}},c=["aria-label"];s.render=function(e,t,n,r,o,l){return i.openBlock(),i.createBlock(i.Transition,i.mergeProps({name:"p-scrolltop",appear:"",onEnter:l.onEnter,onAfterLeave:l.onAfterLeave},e.ptm("transition")),{default:i.withCtx((function(){return[o.visible?(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,ref:l.containerRef,class:e.cx("root"),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)}),type:"button","aria-label":l.scrollTopAriaLabel},e.ptm("root")),[i.renderSlot(e.$slots,"icon",{class:i.normalizeClass(e.cx("icon"))},(function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.icon?"span":"ChevronUpIcon"),i.mergeProps({class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16,["class"]))]}))],16,c)):i.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterLeave"])},module.exports=s;
1
+ "use strict";var e=require("primevue/icons/chevronup"),t=require("primevue/utils"),n=require("primevue/basecomponent"),r=require("primevue/scrolltop/style"),i=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(e),s={name:"ScrollTop",extends:{name:"BaseScrollTop",extends:o(n).default,props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:void 0},behavior:{type:String,default:"smooth"}},style:o(r).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,scrollListener:null,container:null,data:function(){return{visible:!1}},mounted:function(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount:function(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick:function(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility:function(e){this.visible=e>this.threshold},bindParentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(e.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(t.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener:function(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener:function(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter:function(e){t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterLeave:function(e){t.ZIndexUtils.clear(e)},containerRef:function(e){this.container=e}},computed:{scrollTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.scrollTop:void 0}},components:{ChevronUpIcon:l.default}},c=["aria-label"];s.render=function(e,t,n,r,o,l){return i.openBlock(),i.createBlock(i.Transition,i.mergeProps({name:"p-scrolltop",appear:"",onEnter:l.onEnter,onAfterLeave:l.onAfterLeave},e.ptm("transition")),{default:i.withCtx((function(){return[o.visible?(i.openBlock(),i.createElementBlock("button",i.mergeProps({key:0,ref:l.containerRef,class:e.cx("root"),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)}),type:"button","aria-label":l.scrollTopAriaLabel},e.ptmi("root")),[i.renderSlot(e.$slots,"icon",{class:i.normalizeClass(e.cx("icon"))},(function(){return[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.icon?"span":"ChevronUpIcon"),i.mergeProps({class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16,["class"]))]}))],16,c)):i.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterLeave"])},module.exports=s;
@@ -36,6 +36,7 @@ var script$1 = {
36
36
  var script = {
37
37
  name: 'ScrollTop',
38
38
  "extends": script$1,
39
+ inheritAttrs: false,
39
40
  scrollListener: null,
40
41
  container: null,
41
42
  data: function data() {
@@ -128,7 +129,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
128
129
  }),
129
130
  type: "button",
130
131
  "aria-label": $options.scrollTopAriaLabel
131
- }, _ctx.ptm('root')), [renderSlot(_ctx.$slots, "icon", {
132
+ }, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "icon", {
132
133
  "class": normalizeClass(_ctx.cx('icon'))
133
134
  }, function () {
134
135
  return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ? 'span' : 'ChevronUpIcon'), mergeProps({
@@ -1 +1 @@
1
- import e from"primevue/icons/chevronup";import{ZIndexUtils as t,DomHandler as n}from"primevue/utils";import i from"primevue/basecomponent";import r from"primevue/scrolltop/style";import{openBlock as o,createBlock as l,Transition as s,mergeProps as c,withCtx as a,createElementBlock as u,renderSlot as p,normalizeClass as h,resolveDynamicComponent as f,createCommentVNode as m}from"vue";var d={name:"ScrollTop",extends:{name:"BaseScrollTop",extends:i,props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:void 0},behavior:{type:String,default:"smooth"}},style:r,provide:function(){return{$parentInstance:this}}},scrollListener:null,container:null,data:function(){return{visible:!1}},mounted:function(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount:function(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(t.clear(this.container),this.overlay=null)},methods:{onClick:function(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility:function(e){this.visible=e>this.threshold},bindParentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(e.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(n.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener:function(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener:function(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter:function(e){t.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterLeave:function(e){t.clear(e)},containerRef:function(e){this.container=e}},computed:{scrollTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.scrollTop:void 0}},components:{ChevronUpIcon:e}},v=["aria-label"];d.render=function(e,t,n,i,r,d){return o(),l(s,c({name:"p-scrolltop",appear:"",onEnter:d.onEnter,onAfterLeave:d.onAfterLeave},e.ptm("transition")),{default:a((function(){return[r.visible?(o(),u("button",c({key:0,ref:d.containerRef,class:e.cx("root"),onClick:t[0]||(t[0]=function(){return d.onClick&&d.onClick.apply(d,arguments)}),type:"button","aria-label":d.scrollTopAriaLabel},e.ptm("root")),[p(e.$slots,"icon",{class:h(e.cx("icon"))},(function(){return[(o(),l(f(e.icon?"span":"ChevronUpIcon"),c({class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16,["class"]))]}))],16,v)):m("",!0)]})),_:3},16,["onEnter","onAfterLeave"])};export{d as default};
1
+ import e from"primevue/icons/chevronup";import{ZIndexUtils as t,DomHandler as n}from"primevue/utils";import i from"primevue/basecomponent";import r from"primevue/scrolltop/style";import{openBlock as o,createBlock as l,Transition as s,mergeProps as c,withCtx as a,createElementBlock as u,renderSlot as p,normalizeClass as h,resolveDynamicComponent as f,createCommentVNode as m}from"vue";var d={name:"ScrollTop",extends:{name:"BaseScrollTop",extends:i,props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:void 0},behavior:{type:String,default:"smooth"}},style:r,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,scrollListener:null,container:null,data:function(){return{visible:!1}},mounted:function(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount:function(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(t.clear(this.container),this.overlay=null)},methods:{onClick:function(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility:function(e){this.visible=e>this.threshold},bindParentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(e.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(n.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener:function(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener:function(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter:function(e){t.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterLeave:function(e){t.clear(e)},containerRef:function(e){this.container=e}},computed:{scrollTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.scrollTop:void 0}},components:{ChevronUpIcon:e}},v=["aria-label"];d.render=function(e,t,n,i,r,d){return o(),l(s,c({name:"p-scrolltop",appear:"",onEnter:d.onEnter,onAfterLeave:d.onAfterLeave},e.ptm("transition")),{default:a((function(){return[r.visible?(o(),u("button",c({key:0,ref:d.containerRef,class:e.cx("root"),onClick:t[0]||(t[0]=function(){return d.onClick&&d.onClick.apply(d,arguments)}),type:"button","aria-label":d.scrollTopAriaLabel},e.ptmi("root")),[p(e.$slots,"icon",{class:h(e.cx("icon"))},(function(){return[(o(),l(f(e.icon?"span":"ChevronUpIcon"),c({class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16,["class"]))]}))],16,v)):m("",!0)]})),_:3},16,["onEnter","onAfterLeave"])};export{d as default};
@@ -40,6 +40,7 @@ this.primevue.scrolltop = (function (ChevronUpIcon, utils, BaseComponent, Scroll
40
40
  var script = {
41
41
  name: 'ScrollTop',
42
42
  "extends": script$1,
43
+ inheritAttrs: false,
43
44
  scrollListener: null,
44
45
  container: null,
45
46
  data: function data() {
@@ -132,7 +133,7 @@ this.primevue.scrolltop = (function (ChevronUpIcon, utils, BaseComponent, Scroll
132
133
  }),
133
134
  type: "button",
134
135
  "aria-label": $options.scrollTopAriaLabel
135
- }, _ctx.ptm('root')), [vue.renderSlot(_ctx.$slots, "icon", {
136
+ }, _ctx.ptmi('root')), [vue.renderSlot(_ctx.$slots, "icon", {
136
137
  "class": vue.normalizeClass(_ctx.cx('icon'))
137
138
  }, function () {
138
139
  return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon ? 'span' : 'ChevronUpIcon'), vue.mergeProps({
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.scrolltop=function(e,t,n,i,o){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(e),s={name:"ScrollTop",extends:{name:"BaseScrollTop",extends:r(n).default,props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:void 0},behavior:{type:String,default:"smooth"}},style:r(i).default,provide:function(){return{$parentInstance:this}}},scrollListener:null,container:null,data:function(){return{visible:!1}},mounted:function(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount:function(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick:function(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility:function(e){this.visible=e>this.threshold},bindParentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(e.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(t.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener:function(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener:function(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter:function(e){t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterLeave:function(e){t.ZIndexUtils.clear(e)},containerRef:function(e){this.container=e}},computed:{scrollTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.scrollTop:void 0}},components:{ChevronUpIcon:l.default}},c=["aria-label"];return s.render=function(e,t,n,i,r,l){return o.openBlock(),o.createBlock(o.Transition,o.mergeProps({name:"p-scrolltop",appear:"",onEnter:l.onEnter,onAfterLeave:l.onAfterLeave},e.ptm("transition")),{default:o.withCtx((function(){return[r.visible?(o.openBlock(),o.createElementBlock("button",o.mergeProps({key:0,ref:l.containerRef,class:e.cx("root"),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)}),type:"button","aria-label":l.scrollTopAriaLabel},e.ptm("root")),[o.renderSlot(e.$slots,"icon",{class:o.normalizeClass(e.cx("icon"))},(function(){return[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.icon?"span":"ChevronUpIcon"),o.mergeProps({class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16,["class"]))]}))],16,c)):o.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterLeave"])},s}(primevue.icons.chevronup,primevue.utils,primevue.basecomponent,primevue.scrolltop.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.scrolltop=function(e,t,n,i,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(e),s={name:"ScrollTop",extends:{name:"BaseScrollTop",extends:o(n).default,props:{target:{type:String,default:"window"},threshold:{type:Number,default:400},icon:{type:String,default:void 0},behavior:{type:String,default:"smooth"}},style:o(i).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,scrollListener:null,container:null,data:function(){return{visible:!1}},mounted:function(){"window"===this.target?this.bindDocumentScrollListener():"parent"===this.target&&this.bindParentScrollListener()},beforeUnmount:function(){"window"===this.target?this.unbindDocumentScrollListener():"parent"===this.target&&this.unbindParentScrollListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.overlay=null)},methods:{onClick:function(){("window"===this.target?window:this.$el.parentElement).scroll({top:0,behavior:this.behavior})},checkVisibility:function(e){this.visible=e>this.threshold},bindParentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(e.$el.parentElement.scrollTop)},this.$el.parentElement.addEventListener("scroll",this.scrollListener)},bindDocumentScrollListener:function(){var e=this;this.scrollListener=function(){e.checkVisibility(t.DomHandler.getWindowScrollTop())},window.addEventListener("scroll",this.scrollListener)},unbindParentScrollListener:function(){this.scrollListener&&(this.$el.parentElement.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},unbindDocumentScrollListener:function(){this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener),this.scrollListener=null)},onEnter:function(e){t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterLeave:function(e){t.ZIndexUtils.clear(e)},containerRef:function(e){this.container=e}},computed:{scrollTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.scrollTop:void 0}},components:{ChevronUpIcon:l.default}},c=["aria-label"];return s.render=function(e,t,n,i,o,l){return r.openBlock(),r.createBlock(r.Transition,r.mergeProps({name:"p-scrolltop",appear:"",onEnter:l.onEnter,onAfterLeave:l.onAfterLeave},e.ptm("transition")),{default:r.withCtx((function(){return[o.visible?(r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,ref:l.containerRef,class:e.cx("root"),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)}),type:"button","aria-label":l.scrollTopAriaLabel},e.ptmi("root")),[r.renderSlot(e.$slots,"icon",{class:r.normalizeClass(e.cx("icon"))},(function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.icon?"span":"ChevronUpIcon"),r.mergeProps({class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16,["class"]))]}))],16,c)):r.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterLeave"])},s}(primevue.icons.chevronup,primevue.utils,primevue.basecomponent,primevue.scrolltop.style,Vue);
@@ -1,14 +1,14 @@
1
1
  <template>
2
- <div ref="container" :class="cx('root')" role="group" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')">
2
+ <div ref="container" :class="cx('root')" role="group" :aria-labelledby="ariaLabelledby" v-bind="ptmi('root')">
3
3
  <div
4
4
  v-for="(option, i) of options"
5
5
  :key="getOptionRenderKey(option)"
6
6
  v-ripple
7
- :tabindex="i === focusedIndex ? '0' : '-1'"
7
+ :tabindex="findTabindex(option, i)"
8
8
  :aria-label="getOptionLabel(option)"
9
9
  :role="multiple ? 'checkbox' : 'radio'"
10
10
  :aria-checked="isSelected(option)"
11
- :aria-disabled="optionDisabled"
11
+ :aria-disabled="isOptionDisabled(option)"
12
12
  :class="cx('button', { option })"
13
13
  @click="onOptionSelect($event, option, i)"
14
14
  @keydown="onKeydown($event, option, i)"
@@ -33,6 +33,7 @@ import BaseSelectButton from './BaseSelectButton.vue';
33
33
  export default {
34
34
  name: 'SelectButton',
35
35
  extends: BaseSelectButton,
36
+ inheritAttrs: false,
36
37
  emits: ['update:modelValue', 'focus', 'blur', 'change'],
37
38
  data() {
38
39
  return {
@@ -129,7 +130,7 @@ export default {
129
130
  case 'ArrowDown':
130
131
 
131
132
  case 'ArrowRight': {
132
- this.changeTabIndexes(event, 'next');
133
+ this.onArrowRightKey(event.target);
133
134
  event.preventDefault();
134
135
  break;
135
136
  }
@@ -137,7 +138,7 @@ export default {
137
138
  case 'ArrowUp':
138
139
 
139
140
  case 'ArrowLeft': {
140
- this.changeTabIndexes(event, 'prev');
141
+ this.onArrowLeftKey(event.target);
141
142
  event.preventDefault();
142
143
  break;
143
144
  }
@@ -147,23 +148,46 @@ export default {
147
148
  break;
148
149
  }
149
150
  },
150
- changeTabIndexes(event, direction) {
151
- let firstTabableChild, index;
151
+ onArrowRightKey(target) {
152
+ const nextEl = this.findNextElement(target);
152
153
 
153
- for (let i = 0; i <= this.$refs.container.children.length - 1; i++) {
154
- if (this.$refs.container.children[i].getAttribute('tabindex') === '0') firstTabableChild = { elem: this.$refs.container.children[i], index: i };
154
+ if (nextEl) {
155
+ this.focusedIndex = ObjectUtils.findIndexInList(nextEl, this.findAllElements());
156
+ DomHandler.focus(nextEl);
155
157
  }
158
+ },
159
+ onArrowLeftKey(target) {
160
+ const prevEl = this.findPrevElement(target);
156
161
 
157
- if (direction === 'prev') {
158
- if (firstTabableChild.index === 0) index = this.$refs.container.children.length - 1;
159
- else index = firstTabableChild.index - 1;
160
- } else {
161
- if (firstTabableChild.index === this.$refs.container.children.length - 1) index = 0;
162
- else index = firstTabableChild.index + 1;
162
+ if (prevEl) {
163
+ this.focusedIndex = ObjectUtils.findIndexInList(prevEl, this.findAllElements());
164
+ DomHandler.focus(prevEl);
163
165
  }
166
+ },
167
+ findAllElements() {
168
+ return DomHandler.find(this.$refs.container, '[data-pc-section="button"]');
169
+ },
170
+ findNextElement(target) {
171
+ if (target.nextElementSibling) {
172
+ if (DomHandler.getAttribute(target.nextElementSibling, 'data-p-disabled')) {
173
+ return this.findNextElement(target.nextElementSibling);
174
+ }
164
175
 
165
- this.focusedIndex = index;
166
- this.$refs.container.children[index].focus();
176
+ return target.nextElementSibling;
177
+ }
178
+
179
+ return null;
180
+ },
181
+ findPrevElement(target) {
182
+ if (target.previousElementSibling) {
183
+ if (DomHandler.getAttribute(target.previousElementSibling, 'data-p-disabled')) {
184
+ return this.findPrevElement(target.previousElementSibling);
185
+ }
186
+
187
+ return target.previousElementSibling;
188
+ }
189
+
190
+ return null;
167
191
  },
168
192
  onFocus(event) {
169
193
  this.$emit('focus', event);
@@ -174,6 +198,9 @@ export default {
174
198
  }
175
199
 
176
200
  this.$emit('blur', event, option);
201
+ },
202
+ findTabindex(option, index) {
203
+ return this.disabled || this.isOptionDisabled(option) || index !== this.focusedIndex ? '-1' : '0';
177
204
  }
178
205
  },
179
206
  computed: {
@@ -59,6 +59,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
59
59
  var script = {
60
60
  name: 'SelectButton',
61
61
  "extends": script$1,
62
+ inheritAttrs: false,
62
63
  emits: ['update:modelValue', 'focus', 'blur', 'change'],
63
64
  data: function data() {
64
65
  return {
@@ -161,34 +162,53 @@ var script = {
161
162
  case 'ArrowDown':
162
163
  case 'ArrowRight':
163
164
  {
164
- this.changeTabIndexes(event, 'next');
165
+ this.onArrowRightKey(event.target);
165
166
  event.preventDefault();
166
167
  break;
167
168
  }
168
169
  case 'ArrowUp':
169
170
  case 'ArrowLeft':
170
171
  {
171
- this.changeTabIndexes(event, 'prev');
172
+ this.onArrowLeftKey(event.target);
172
173
  event.preventDefault();
173
174
  break;
174
175
  }
175
176
  }
176
177
  },
177
- changeTabIndexes: function changeTabIndexes(event, direction) {
178
- var firstTabableChild, index;
179
- for (var i = 0; i <= this.$refs.container.children.length - 1; i++) {
180
- if (this.$refs.container.children[i].getAttribute('tabindex') === '0') firstTabableChild = {
181
- elem: this.$refs.container.children[i],
182
- index: i
183
- };
178
+ onArrowRightKey: function onArrowRightKey(target) {
179
+ var nextEl = this.findNextElement(target);
180
+ if (nextEl) {
181
+ this.focusedIndex = utils.ObjectUtils.findIndexInList(nextEl, this.findAllElements());
182
+ utils.DomHandler.focus(nextEl);
184
183
  }
185
- if (direction === 'prev') {
186
- if (firstTabableChild.index === 0) index = this.$refs.container.children.length - 1;else index = firstTabableChild.index - 1;
187
- } else {
188
- if (firstTabableChild.index === this.$refs.container.children.length - 1) index = 0;else index = firstTabableChild.index + 1;
184
+ },
185
+ onArrowLeftKey: function onArrowLeftKey(target) {
186
+ var prevEl = this.findPrevElement(target);
187
+ if (prevEl) {
188
+ this.focusedIndex = utils.ObjectUtils.findIndexInList(prevEl, this.findAllElements());
189
+ utils.DomHandler.focus(prevEl);
189
190
  }
190
- this.focusedIndex = index;
191
- this.$refs.container.children[index].focus();
191
+ },
192
+ findAllElements: function findAllElements() {
193
+ return utils.DomHandler.find(this.$refs.container, '[data-pc-section="button"]');
194
+ },
195
+ findNextElement: function findNextElement(target) {
196
+ if (target.nextElementSibling) {
197
+ if (utils.DomHandler.getAttribute(target.nextElementSibling, 'data-p-disabled')) {
198
+ return this.findNextElement(target.nextElementSibling);
199
+ }
200
+ return target.nextElementSibling;
201
+ }
202
+ return null;
203
+ },
204
+ findPrevElement: function findPrevElement(target) {
205
+ if (target.previousElementSibling) {
206
+ if (utils.DomHandler.getAttribute(target.previousElementSibling, 'data-p-disabled')) {
207
+ return this.findPrevElement(target.previousElementSibling);
208
+ }
209
+ return target.previousElementSibling;
210
+ }
211
+ return null;
192
212
  },
193
213
  onFocus: function onFocus(event) {
194
214
  this.$emit('focus', event);
@@ -198,6 +218,9 @@ var script = {
198
218
  this.defaultTabIndexes();
199
219
  }
200
220
  this.$emit('blur', event, option);
221
+ },
222
+ findTabindex: function findTabindex(option, index) {
223
+ return this.disabled || this.isOptionDisabled(option) || index !== this.focusedIndex ? '-1' : '0';
201
224
  }
202
225
  },
203
226
  computed: {
@@ -219,14 +242,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
219
242
  "class": _ctx.cx('root'),
220
243
  role: "group",
221
244
  "aria-labelledby": _ctx.ariaLabelledby
222
- }, _ctx.ptm('root')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, function (option, i) {
245
+ }, _ctx.ptmi('root')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, function (option, i) {
223
246
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
224
247
  key: $options.getOptionRenderKey(option),
225
- tabindex: i === $data.focusedIndex ? '0' : '-1',
248
+ tabindex: $options.findTabindex(option, i),
226
249
  "aria-label": $options.getOptionLabel(option),
227
250
  role: _ctx.multiple ? 'checkbox' : 'radio',
228
251
  "aria-checked": $options.isSelected(option),
229
- "aria-disabled": _ctx.optionDisabled,
252
+ "aria-disabled": $options.isOptionDisabled(option),
230
253
  "class": _ctx.cx('button', {
231
254
  option: option
232
255
  }),
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/ripple"),t=require("primevue/utils"),n=require("primevue/basecomponent"),i=require("primevue/selectbutton/style"),r=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(e);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function s(){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 u(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e){if(Array.isArray(e))return p(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var f={name:"SelectButton",extends:{name:"BaseSelectButton",extends:o(n).default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},invalid:{type:Boolean,default:!1},disabled:Boolean,dataKey:null,ariaLabelledby:{type:String,default:null}},style:o(i).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","focus","blur","change"],data:function(){return{focusedIndex:0}},mounted:function(){this.defaultTabIndexes()},methods:{defaultTabIndexes:function(){for(var e=t.DomHandler.find(this.$refs.container,'[data-pc-section="button"]'),n=t.DomHandler.findSingle(this.$refs.container,'[data-p-highlight="true"]'),i=0;i<e.length;i++)(!0===t.DomHandler.getAttribute(e[i],"data-p-highlight")&&t.ObjectUtils.equals(e[i],n)||null===n&&0==i)&&(this.focusedIndex=i)},getOptionLabel:function(e){return this.optionLabel?t.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?t.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getPTOptions:function(e,t){return this.ptm(t,{context:{active:this.isSelected(e),disabled:this.isOptionDisabled(e),option:e}})},isOptionDisabled:function(e){return!!this.optionDisabled&&t.ObjectUtils.resolveFieldData(e,this.optionDisabled)},onOptionSelect:function(e,n,i){var r=this;if(!this.disabled&&!this.isOptionDisabled(n)){var o=this.isSelected(n);if(!o||this.unselectable&&this.allowEmpty){var a,l,p=this.getOptionValue(n);a=this.multiple?o?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,p,r.equalityKey)})):this.modelValue?[].concat(d(l=this.modelValue)||c(l)||u(l)||s(),[p]):[p]:o?null:p,this.focusedIndex=i,this.$emit("update:modelValue",a),this.$emit("change",{event:e,value:a})}}},isSelected:function(e){var n=!1,i=this.getOptionValue(e);if(this.multiple){if(this.modelValue){var r,o=l(this.modelValue);try{for(o.s();!(r=o.n()).done;){if(t.ObjectUtils.equals(r.value,i,this.equalityKey)){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}}}else n=t.ObjectUtils.equals(this.modelValue,i,this.equalityKey);return n},onKeydown:function(e,t,n){switch(e.code){case"Space":this.onOptionSelect(e,t,n),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}},changeTabIndexes:function(e,t){for(var n,i,r=0;r<=this.$refs.container.children.length-1;r++)"0"===this.$refs.container.children[r].getAttribute("tabindex")&&(n={elem:this.$refs.container.children[r],index:r});this.focusedIndex=i="prev"===t?0===n.index?this.$refs.container.children.length-1:n.index-1:n.index===this.$refs.container.children.length-1?0:n.index+1,this.$refs.container.children[i].focus()},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e,t){e.target&&e.relatedTarget&&e.target.parentElement!==e.relatedTarget.parentElement&&this.defaultTabIndexes(),this.$emit("blur",e,t)}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:a.default}},h=["aria-labelledby"],b=["tabindex","aria-label","role","aria-checked","aria-disabled","onClick","onKeydown","onBlur","data-p-highlight","data-p-disabled"];f.render=function(e,t,n,i,o,a){var l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({ref:"container",class:e.cx("root"),role:"group","aria-labelledby":e.ariaLabelledby},e.ptm("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,(function(n,i){return r.withDirectives((r.openBlock(),r.createElementBlock("div",r.mergeProps({key:a.getOptionRenderKey(n),tabindex:i===o.focusedIndex?"0":"-1","aria-label":a.getOptionLabel(n),role:e.multiple?"checkbox":"radio","aria-checked":a.isSelected(n),"aria-disabled":e.optionDisabled,class:e.cx("button",{option:n}),onClick:function(e){return a.onOptionSelect(e,n,i)},onKeydown:function(e){return a.onKeydown(e,n,i)},onFocus:t[0]||(t[0]=function(e){return a.onFocus(e)}),onBlur:function(e){return a.onBlur(e,n)}},a.getPTOptions(n,"button"),{"data-p-highlight":a.isSelected(n),"data-p-disabled":a.isOptionDisabled(n)}),[r.renderSlot(e.$slots,"option",{option:n,index:i,class:r.normalizeClass(e.cx("label"))},(function(){return[r.createElementVNode("span",r.mergeProps({class:e.cx("label")},a.getPTOptions(n,"label")),r.toDisplayString(a.getOptionLabel(n)),17)]}))],16,b)),[[l]])})),128))],16,h)},module.exports=f;
1
+ "use strict";var e=require("primevue/ripple"),t=require("primevue/utils"),n=require("primevue/basecomponent"),i=require("primevue/selectbutton/style"),l=require("vue");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,l=function(){};return{s:l,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function s(){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 u(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e){if(Array.isArray(e))return f(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var p={name:"SelectButton",extends:{name:"BaseSelectButton",extends:r(n).default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,multiple:Boolean,unselectable:{type:Boolean,default:!0},allowEmpty:{type:Boolean,default:!0},invalid:{type:Boolean,default:!1},disabled:Boolean,dataKey:null,ariaLabelledby:{type:String,default:null}},style:r(i).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["update:modelValue","focus","blur","change"],data:function(){return{focusedIndex:0}},mounted:function(){this.defaultTabIndexes()},methods:{defaultTabIndexes:function(){for(var e=t.DomHandler.find(this.$refs.container,'[data-pc-section="button"]'),n=t.DomHandler.findSingle(this.$refs.container,'[data-p-highlight="true"]'),i=0;i<e.length;i++)(!0===t.DomHandler.getAttribute(e[i],"data-p-highlight")&&t.ObjectUtils.equals(e[i],n)||null===n&&0==i)&&(this.focusedIndex=i)},getOptionLabel:function(e){return this.optionLabel?t.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?t.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getPTOptions:function(e,t){return this.ptm(t,{context:{active:this.isSelected(e),disabled:this.isOptionDisabled(e),option:e}})},isOptionDisabled:function(e){return!!this.optionDisabled&&t.ObjectUtils.resolveFieldData(e,this.optionDisabled)},onOptionSelect:function(e,n,i){var l=this;if(!this.disabled&&!this.isOptionDisabled(n)){var r=this.isSelected(n);if(!r||this.unselectable&&this.allowEmpty){var o,a,f=this.getOptionValue(n);o=this.multiple?r?this.modelValue.filter((function(e){return!t.ObjectUtils.equals(e,f,l.equalityKey)})):this.modelValue?[].concat(c(a=this.modelValue)||d(a)||u(a)||s(),[f]):[f]:r?null:f,this.focusedIndex=i,this.$emit("update:modelValue",o),this.$emit("change",{event:e,value:o})}}},isSelected:function(e){var n=!1,i=this.getOptionValue(e);if(this.multiple){if(this.modelValue){var l,r=a(this.modelValue);try{for(r.s();!(l=r.n()).done;){if(t.ObjectUtils.equals(l.value,i,this.equalityKey)){n=!0;break}}}catch(e){r.e(e)}finally{r.f()}}}else n=t.ObjectUtils.equals(this.modelValue,i,this.equalityKey);return n},onKeydown:function(e,t,n){switch(e.code){case"Space":this.onOptionSelect(e,t,n),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.onArrowRightKey(e.target),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.onArrowLeftKey(e.target),e.preventDefault()}},onArrowRightKey:function(e){var n=this.findNextElement(e);n&&(this.focusedIndex=t.ObjectUtils.findIndexInList(n,this.findAllElements()),t.DomHandler.focus(n))},onArrowLeftKey:function(e){var n=this.findPrevElement(e);n&&(this.focusedIndex=t.ObjectUtils.findIndexInList(n,this.findAllElements()),t.DomHandler.focus(n))},findAllElements:function(){return t.DomHandler.find(this.$refs.container,'[data-pc-section="button"]')},findNextElement:function(e){return e.nextElementSibling?t.DomHandler.getAttribute(e.nextElementSibling,"data-p-disabled")?this.findNextElement(e.nextElementSibling):e.nextElementSibling:null},findPrevElement:function(e){return e.previousElementSibling?t.DomHandler.getAttribute(e.previousElementSibling,"data-p-disabled")?this.findPrevElement(e.previousElementSibling):e.previousElementSibling:null},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e,t){e.target&&e.relatedTarget&&e.target.parentElement!==e.relatedTarget.parentElement&&this.defaultTabIndexes(),this.$emit("blur",e,t)},findTabindex:function(e,t){return this.disabled||this.isOptionDisabled(e)||t!==this.focusedIndex?"-1":"0"}},computed:{equalityKey:function(){return this.optionValue?null:this.dataKey}},directives:{ripple:o.default}},b=["aria-labelledby"],h=["tabindex","aria-label","role","aria-checked","aria-disabled","onClick","onKeydown","onBlur","data-p-highlight","data-p-disabled"];p.render=function(e,t,n,i,r,o){var a=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("div",l.mergeProps({ref:"container",class:e.cx("root"),role:"group","aria-labelledby":e.ariaLabelledby},e.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(function(n,i){return l.withDirectives((l.openBlock(),l.createElementBlock("div",l.mergeProps({key:o.getOptionRenderKey(n),tabindex:o.findTabindex(n,i),"aria-label":o.getOptionLabel(n),role:e.multiple?"checkbox":"radio","aria-checked":o.isSelected(n),"aria-disabled":o.isOptionDisabled(n),class:e.cx("button",{option:n}),onClick:function(e){return o.onOptionSelect(e,n,i)},onKeydown:function(e){return o.onKeydown(e,n,i)},onFocus:t[0]||(t[0]=function(e){return o.onFocus(e)}),onBlur:function(e){return o.onBlur(e,n)}},o.getPTOptions(n,"button"),{"data-p-highlight":o.isSelected(n),"data-p-disabled":o.isOptionDisabled(n)}),[l.renderSlot(e.$slots,"option",{option:n,index:i,class:l.normalizeClass(e.cx("label"))},(function(){return[l.createElementVNode("span",l.mergeProps({class:e.cx("label")},o.getPTOptions(n,"label")),l.toDisplayString(o.getOptionLabel(n)),17)]}))],16,h)),[[a]])})),128))],16,b)},module.exports=p;