primevue 3.47.2 → 3.48.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 (1456) hide show
  1. package/README.md +1 -1
  2. package/accordion/style/accordionstyle.cjs.js +0 -2
  3. package/accordion/style/accordionstyle.cjs.min.js +1 -1
  4. package/accordion/style/accordionstyle.esm.js +0 -2
  5. package/accordion/style/accordionstyle.esm.min.js +1 -1
  6. package/accordion/style/accordionstyle.js +0 -2
  7. package/accordion/style/accordionstyle.min.js +1 -1
  8. package/autocomplete/AutoComplete.d.ts +10 -0
  9. package/autocomplete/AutoComplete.vue +2 -14
  10. package/autocomplete/BaseAutoComplete.vue +8 -0
  11. package/autocomplete/autocomplete.cjs.js +10 -5
  12. package/autocomplete/autocomplete.cjs.min.js +1 -1
  13. package/autocomplete/autocomplete.esm.js +10 -5
  14. package/autocomplete/autocomplete.esm.min.js +1 -1
  15. package/autocomplete/autocomplete.js +10 -5
  16. package/autocomplete/autocomplete.min.js +1 -1
  17. package/autocomplete/style/autocompletestyle.cjs.js +23 -16
  18. package/autocomplete/style/autocompletestyle.cjs.min.js +1 -1
  19. package/autocomplete/style/autocompletestyle.esm.js +23 -16
  20. package/autocomplete/style/autocompletestyle.esm.min.js +1 -1
  21. package/autocomplete/style/autocompletestyle.js +23 -16
  22. package/autocomplete/style/autocompletestyle.min.js +1 -1
  23. package/avatar/Avatar.vue +1 -1
  24. package/avatar/avatar.cjs.js +1 -3
  25. package/avatar/avatar.cjs.min.js +1 -1
  26. package/avatar/avatar.esm.js +1 -3
  27. package/avatar/avatar.esm.min.js +1 -1
  28. package/avatar/avatar.js +1 -3
  29. package/avatar/avatar.min.js +1 -1
  30. package/avatar/style/avatarstyle.cjs.js +0 -2
  31. package/avatar/style/avatarstyle.cjs.min.js +1 -1
  32. package/avatar/style/avatarstyle.esm.js +0 -2
  33. package/avatar/style/avatarstyle.esm.min.js +1 -1
  34. package/avatar/style/avatarstyle.js +0 -2
  35. package/avatar/style/avatarstyle.min.js +1 -1
  36. package/avatargroup/AvatarGroup.vue +1 -1
  37. package/avatargroup/avatargroup.cjs.js +1 -3
  38. package/avatargroup/avatargroup.cjs.min.js +1 -1
  39. package/avatargroup/avatargroup.esm.js +1 -3
  40. package/avatargroup/avatargroup.esm.min.js +1 -1
  41. package/avatargroup/avatargroup.js +1 -3
  42. package/avatargroup/avatargroup.min.js +1 -1
  43. package/avatargroup/style/avatargroupstyle.cjs.js +0 -2
  44. package/avatargroup/style/avatargroupstyle.cjs.min.js +1 -1
  45. package/avatargroup/style/avatargroupstyle.esm.js +0 -2
  46. package/avatargroup/style/avatargroupstyle.esm.min.js +1 -1
  47. package/avatargroup/style/avatargroupstyle.js +0 -2
  48. package/avatargroup/style/avatargroupstyle.min.js +1 -1
  49. package/badge/Badge.d.ts +1 -1
  50. package/badge/Badge.vue +1 -1
  51. package/badge/badge.cjs.js +1 -3
  52. package/badge/badge.cjs.min.js +1 -1
  53. package/badge/badge.esm.js +1 -3
  54. package/badge/badge.esm.min.js +1 -1
  55. package/badge/badge.js +1 -3
  56. package/badge/badge.min.js +1 -1
  57. package/badge/style/badgestyle.cjs.js +3 -3
  58. package/badge/style/badgestyle.cjs.min.js +1 -1
  59. package/badge/style/badgestyle.esm.js +3 -3
  60. package/badge/style/badgestyle.esm.min.js +1 -1
  61. package/badge/style/badgestyle.js +3 -3
  62. package/badge/style/badgestyle.min.js +1 -1
  63. package/badgedirective/style/badgedirectivestyle.cjs.js +0 -2
  64. package/badgedirective/style/badgedirectivestyle.cjs.min.js +1 -1
  65. package/badgedirective/style/badgedirectivestyle.esm.js +0 -2
  66. package/badgedirective/style/badgedirectivestyle.esm.min.js +1 -1
  67. package/badgedirective/style/badgedirectivestyle.js +0 -2
  68. package/badgedirective/style/badgedirectivestyle.min.js +1 -1
  69. package/basecomponent/BaseComponent.vue +20 -7
  70. package/basecomponent/basecomponent.cjs.js +16 -8
  71. package/basecomponent/basecomponent.cjs.min.js +1 -1
  72. package/basecomponent/basecomponent.esm.js +16 -8
  73. package/basecomponent/basecomponent.esm.min.js +1 -1
  74. package/basecomponent/basecomponent.js +16 -8
  75. package/basecomponent/basecomponent.min.js +1 -1
  76. package/basecomponent/style/basecomponentstyle.cjs.js +0 -4
  77. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  78. package/basecomponent/style/basecomponentstyle.esm.js +0 -4
  79. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  80. package/basecomponent/style/basecomponentstyle.js +0 -4
  81. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  82. package/basedirective/basedirective.cjs.js +16 -4
  83. package/basedirective/basedirective.cjs.min.js +1 -1
  84. package/basedirective/basedirective.esm.js +16 -4
  85. package/basedirective/basedirective.esm.min.js +1 -1
  86. package/basedirective/basedirective.js +16 -4
  87. package/basedirective/basedirective.min.js +1 -1
  88. package/baseicon/BaseIcon.vue +1 -6
  89. package/baseicon/baseicon.cjs.js +0 -5
  90. package/baseicon/baseicon.cjs.min.js +1 -1
  91. package/baseicon/baseicon.esm.js +1 -6
  92. package/baseicon/baseicon.esm.min.js +1 -1
  93. package/baseicon/baseicon.js +0 -5
  94. package/baseicon/baseicon.min.js +1 -1
  95. package/blockui/BlockUI.vue +0 -2
  96. package/blockui/blockui.cjs.js +0 -2
  97. package/blockui/blockui.cjs.min.js +1 -1
  98. package/blockui/blockui.esm.js +0 -2
  99. package/blockui/blockui.esm.min.js +1 -1
  100. package/blockui/blockui.js +0 -2
  101. package/blockui/blockui.min.js +1 -1
  102. package/blockui/style/blockuistyle.cjs.js +0 -2
  103. package/blockui/style/blockuistyle.cjs.min.js +1 -1
  104. package/blockui/style/blockuistyle.esm.js +0 -2
  105. package/blockui/style/blockuistyle.esm.min.js +1 -1
  106. package/blockui/style/blockuistyle.js +0 -2
  107. package/blockui/style/blockuistyle.min.js +1 -1
  108. package/breadcrumb/Breadcrumb.vue +1 -1
  109. package/breadcrumb/breadcrumb.cjs.js +1 -3
  110. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  111. package/breadcrumb/breadcrumb.esm.js +1 -3
  112. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  113. package/breadcrumb/breadcrumb.js +1 -3
  114. package/breadcrumb/breadcrumb.min.js +1 -1
  115. package/breadcrumb/style/breadcrumbstyle.cjs.js +0 -2
  116. package/breadcrumb/style/breadcrumbstyle.cjs.min.js +1 -1
  117. package/breadcrumb/style/breadcrumbstyle.esm.js +0 -2
  118. package/breadcrumb/style/breadcrumbstyle.esm.min.js +1 -1
  119. package/breadcrumb/style/breadcrumbstyle.js +0 -2
  120. package/breadcrumb/style/breadcrumbstyle.min.js +1 -1
  121. package/button/Button.d.ts +2 -2
  122. package/button/Button.vue +1 -1
  123. package/button/button.cjs.js +0 -1
  124. package/button/button.cjs.min.js +1 -1
  125. package/button/button.esm.js +0 -1
  126. package/button/button.esm.min.js +1 -1
  127. package/button/button.js +0 -1
  128. package/button/button.min.js +1 -1
  129. package/calendar/BaseCalendar.vue +8 -0
  130. package/calendar/Calendar.d.ts +10 -0
  131. package/calendar/Calendar.vue +13 -8
  132. package/calendar/calendar.cjs.js +23 -11
  133. package/calendar/calendar.cjs.min.js +1 -1
  134. package/calendar/calendar.esm.js +24 -12
  135. package/calendar/calendar.esm.min.js +1 -1
  136. package/calendar/calendar.js +23 -11
  137. package/calendar/calendar.min.js +1 -1
  138. package/calendar/style/calendarstyle.cjs.js +24 -20
  139. package/calendar/style/calendarstyle.cjs.min.js +1 -1
  140. package/calendar/style/calendarstyle.esm.js +24 -20
  141. package/calendar/style/calendarstyle.esm.min.js +1 -1
  142. package/calendar/style/calendarstyle.js +24 -20
  143. package/calendar/style/calendarstyle.min.js +1 -1
  144. package/card/Card.vue +1 -1
  145. package/card/card.cjs.js +1 -3
  146. package/card/card.cjs.min.js +1 -1
  147. package/card/card.esm.js +1 -3
  148. package/card/card.esm.min.js +1 -1
  149. package/card/card.js +1 -3
  150. package/card/card.min.js +1 -1
  151. package/carousel/style/carouselstyle.cjs.js +0 -2
  152. package/carousel/style/carouselstyle.cjs.min.js +1 -1
  153. package/carousel/style/carouselstyle.esm.js +0 -2
  154. package/carousel/style/carouselstyle.esm.min.js +1 -1
  155. package/carousel/style/carouselstyle.js +0 -2
  156. package/carousel/style/carouselstyle.min.js +1 -1
  157. package/cascadeselect/BaseCascadeSelect.vue +8 -0
  158. package/cascadeselect/CascadeSelect.d.ts +10 -0
  159. package/cascadeselect/CascadeSelect.vue +1 -1
  160. package/cascadeselect/cascadeselect.cjs.js +9 -3
  161. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  162. package/cascadeselect/cascadeselect.esm.js +9 -3
  163. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  164. package/cascadeselect/cascadeselect.js +9 -3
  165. package/cascadeselect/cascadeselect.min.js +1 -1
  166. package/cascadeselect/style/cascadeselectstyle.cjs.js +4 -4
  167. package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
  168. package/cascadeselect/style/cascadeselectstyle.esm.js +4 -4
  169. package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
  170. package/cascadeselect/style/cascadeselectstyle.js +4 -4
  171. package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
  172. package/chart/Chart.vue +1 -1
  173. package/chart/chart.cjs.js +1 -3
  174. package/chart/chart.cjs.min.js +1 -1
  175. package/chart/chart.esm.js +1 -3
  176. package/chart/chart.esm.min.js +1 -1
  177. package/chart/chart.js +1 -3
  178. package/chart/chart.min.js +1 -1
  179. package/checkbox/BaseCheckbox.vue +8 -0
  180. package/checkbox/Checkbox.d.ts +10 -0
  181. package/checkbox/Checkbox.vue +1 -1
  182. package/checkbox/checkbox.cjs.js +8 -1
  183. package/checkbox/checkbox.cjs.min.js +1 -1
  184. package/checkbox/checkbox.esm.js +8 -1
  185. package/checkbox/checkbox.esm.min.js +1 -1
  186. package/checkbox/checkbox.js +8 -1
  187. package/checkbox/checkbox.min.js +1 -1
  188. package/checkbox/style/checkboxstyle.cjs.js +3 -3
  189. package/checkbox/style/checkboxstyle.cjs.min.js +1 -1
  190. package/checkbox/style/checkboxstyle.esm.js +3 -3
  191. package/checkbox/style/checkboxstyle.esm.min.js +1 -1
  192. package/checkbox/style/checkboxstyle.js +3 -3
  193. package/checkbox/style/checkboxstyle.min.js +1 -1
  194. package/chip/Chip.vue +1 -1
  195. package/chip/chip.cjs.js +1 -3
  196. package/chip/chip.cjs.min.js +1 -1
  197. package/chip/chip.esm.js +1 -3
  198. package/chip/chip.esm.min.js +1 -1
  199. package/chip/chip.js +1 -3
  200. package/chip/chip.min.js +1 -1
  201. package/chip/style/chipstyle.cjs.js +0 -2
  202. package/chip/style/chipstyle.cjs.min.js +1 -1
  203. package/chip/style/chipstyle.esm.js +0 -2
  204. package/chip/style/chipstyle.esm.min.js +1 -1
  205. package/chip/style/chipstyle.js +0 -2
  206. package/chip/style/chipstyle.min.js +1 -1
  207. package/chips/BaseChips.vue +8 -0
  208. package/chips/Chips.d.ts +11 -0
  209. package/chips/Chips.vue +10 -2
  210. package/chips/chips.cjs.js +18 -4
  211. package/chips/chips.cjs.min.js +1 -1
  212. package/chips/chips.esm.js +18 -4
  213. package/chips/chips.esm.min.js +1 -1
  214. package/chips/chips.js +18 -4
  215. package/chips/chips.min.js +1 -1
  216. package/chips/style/chipsstyle.cjs.js +11 -6
  217. package/chips/style/chipsstyle.cjs.min.js +1 -1
  218. package/chips/style/chipsstyle.esm.js +11 -6
  219. package/chips/style/chipsstyle.esm.min.js +1 -1
  220. package/chips/style/chipsstyle.js +11 -6
  221. package/chips/style/chipsstyle.min.js +1 -1
  222. package/colorpicker/ColorPicker.d.ts +1 -1
  223. package/colorpicker/ColorPicker.vue +11 -8
  224. package/colorpicker/colorpicker.cjs.js +12 -14
  225. package/colorpicker/colorpicker.cjs.min.js +1 -1
  226. package/colorpicker/colorpicker.esm.js +12 -14
  227. package/colorpicker/colorpicker.esm.min.js +1 -1
  228. package/colorpicker/colorpicker.js +12 -14
  229. package/colorpicker/colorpicker.min.js +1 -1
  230. package/colorpicker/style/colorpickerstyle.cjs.js +0 -3
  231. package/colorpicker/style/colorpickerstyle.cjs.min.js +1 -1
  232. package/colorpicker/style/colorpickerstyle.esm.js +0 -3
  233. package/colorpicker/style/colorpickerstyle.esm.min.js +1 -1
  234. package/colorpicker/style/colorpickerstyle.js +0 -3
  235. package/colorpicker/style/colorpickerstyle.min.js +1 -1
  236. package/config/PrimeVue.d.ts +1 -1
  237. package/config/config.cjs.js +1 -1
  238. package/config/config.cjs.min.js +1 -1
  239. package/config/config.esm.js +1 -1
  240. package/config/config.esm.min.js +1 -1
  241. package/config/config.js +1 -1
  242. package/config/config.min.js +1 -1
  243. package/confirmdialog/ConfirmDialog.vue +4 -4
  244. package/confirmdialog/confirmdialog.cjs.js +4 -6
  245. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  246. package/confirmdialog/confirmdialog.esm.js +4 -6
  247. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  248. package/confirmdialog/confirmdialog.js +4 -6
  249. package/confirmdialog/confirmdialog.min.js +1 -1
  250. package/confirmpopup/ConfirmPopup.vue +4 -22
  251. package/confirmpopup/confirmpopup.cjs.js +4 -6
  252. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  253. package/confirmpopup/confirmpopup.esm.js +4 -6
  254. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  255. package/confirmpopup/confirmpopup.js +4 -6
  256. package/confirmpopup/confirmpopup.min.js +1 -1
  257. package/confirmpopup/style/confirmpopupstyle.cjs.js +0 -3
  258. package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
  259. package/confirmpopup/style/confirmpopupstyle.esm.js +0 -3
  260. package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
  261. package/confirmpopup/style/confirmpopupstyle.js +0 -3
  262. package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
  263. package/contextmenu/ContextMenu.vue +1 -1
  264. package/contextmenu/contextmenu.cjs.js +1 -3
  265. package/contextmenu/contextmenu.cjs.min.js +1 -1
  266. package/contextmenu/contextmenu.esm.js +1 -3
  267. package/contextmenu/contextmenu.esm.min.js +1 -1
  268. package/contextmenu/contextmenu.js +1 -3
  269. package/contextmenu/contextmenu.min.js +1 -1
  270. package/contextmenu/style/contextmenustyle.cjs.js +0 -3
  271. package/contextmenu/style/contextmenustyle.cjs.min.js +1 -1
  272. package/contextmenu/style/contextmenustyle.esm.js +0 -3
  273. package/contextmenu/style/contextmenustyle.esm.min.js +1 -1
  274. package/contextmenu/style/contextmenustyle.js +0 -3
  275. package/contextmenu/style/contextmenustyle.min.js +1 -1
  276. package/core/core.js +370 -760
  277. package/core/core.min.js +126 -126
  278. package/datatable/BodyRow.vue +13 -1
  279. package/datatable/ColumnFilter.vue +10 -17
  280. package/datatable/DataTable.vue +2 -2
  281. package/datatable/HeaderCell.vue +1 -1
  282. package/datatable/TableBody.vue +5 -2
  283. package/datatable/datatable.cjs.js +45 -22
  284. package/datatable/datatable.cjs.min.js +1 -1
  285. package/datatable/datatable.esm.js +45 -22
  286. package/datatable/datatable.esm.min.js +1 -1
  287. package/datatable/datatable.js +45 -22
  288. package/datatable/datatable.min.js +1 -1
  289. package/datatable/style/datatablestyle.cjs.js +3 -5
  290. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  291. package/datatable/style/datatablestyle.esm.js +3 -5
  292. package/datatable/style/datatablestyle.esm.min.js +1 -1
  293. package/datatable/style/datatablestyle.js +3 -5
  294. package/datatable/style/datatablestyle.min.js +1 -1
  295. package/dataview/DataView.vue +1 -1
  296. package/dataview/dataview.cjs.js +1 -3
  297. package/dataview/dataview.cjs.min.js +1 -1
  298. package/dataview/dataview.esm.js +1 -3
  299. package/dataview/dataview.esm.min.js +1 -1
  300. package/dataview/dataview.js +1 -3
  301. package/dataview/dataview.min.js +1 -1
  302. package/dialog/Dialog.vue +11 -5
  303. package/dialog/dialog.cjs.js +10 -4
  304. package/dialog/dialog.cjs.min.js +1 -1
  305. package/dialog/dialog.esm.js +11 -5
  306. package/dialog/dialog.esm.min.js +1 -1
  307. package/dialog/dialog.js +10 -4
  308. package/dialog/dialog.min.js +1 -1
  309. package/dialog/style/dialogstyle.cjs.js +0 -4
  310. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  311. package/dialog/style/dialogstyle.esm.js +0 -4
  312. package/dialog/style/dialogstyle.esm.min.js +1 -1
  313. package/dialog/style/dialogstyle.js +0 -4
  314. package/dialog/style/dialogstyle.min.js +1 -1
  315. package/divider/Divider.vue +1 -1
  316. package/divider/divider.cjs.js +1 -3
  317. package/divider/divider.cjs.min.js +1 -1
  318. package/divider/divider.esm.js +1 -3
  319. package/divider/divider.esm.min.js +1 -1
  320. package/divider/divider.js +1 -3
  321. package/divider/divider.min.js +1 -1
  322. package/divider/style/dividerstyle.cjs.js +0 -3
  323. package/divider/style/dividerstyle.cjs.min.js +1 -1
  324. package/divider/style/dividerstyle.esm.js +0 -3
  325. package/divider/style/dividerstyle.esm.min.js +1 -1
  326. package/divider/style/dividerstyle.js +0 -3
  327. package/divider/style/dividerstyle.min.js +1 -1
  328. package/dock/Dock.vue +1 -1
  329. package/dock/dock.cjs.js +1 -3
  330. package/dock/dock.cjs.min.js +1 -1
  331. package/dock/dock.esm.js +1 -3
  332. package/dock/dock.esm.min.js +1 -1
  333. package/dock/dock.js +1 -3
  334. package/dock/dock.min.js +1 -1
  335. package/dock/style/dockstyle.cjs.js +0 -2
  336. package/dock/style/dockstyle.cjs.min.js +1 -1
  337. package/dock/style/dockstyle.esm.js +0 -2
  338. package/dock/style/dockstyle.esm.min.js +1 -1
  339. package/dock/style/dockstyle.js +0 -2
  340. package/dock/style/dockstyle.min.js +1 -1
  341. package/dropdown/BaseDropdown.vue +8 -0
  342. package/dropdown/Dropdown.d.ts +10 -0
  343. package/dropdown/Dropdown.vue +4 -4
  344. package/dropdown/dropdown.cjs.js +13 -7
  345. package/dropdown/dropdown.cjs.min.js +1 -1
  346. package/dropdown/dropdown.esm.js +12 -6
  347. package/dropdown/dropdown.esm.min.js +1 -1
  348. package/dropdown/dropdown.js +14 -8
  349. package/dropdown/dropdown.min.js +1 -1
  350. package/dropdown/style/dropdownstyle.cjs.js +17 -11
  351. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  352. package/dropdown/style/dropdownstyle.esm.js +17 -11
  353. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  354. package/dropdown/style/dropdownstyle.js +17 -11
  355. package/dropdown/style/dropdownstyle.min.js +1 -1
  356. package/editor/Editor.vue +1 -1
  357. package/editor/editor.cjs.js +1 -3
  358. package/editor/editor.cjs.min.js +1 -1
  359. package/editor/editor.esm.js +1 -3
  360. package/editor/editor.esm.min.js +1 -1
  361. package/editor/editor.js +1 -3
  362. package/editor/editor.min.js +1 -1
  363. package/fieldset/Fieldset.vue +12 -8
  364. package/fieldset/fieldset.cjs.js +13 -11
  365. package/fieldset/fieldset.cjs.min.js +1 -1
  366. package/fieldset/fieldset.esm.js +13 -11
  367. package/fieldset/fieldset.esm.min.js +1 -1
  368. package/fieldset/fieldset.js +13 -11
  369. package/fieldset/fieldset.min.js +1 -1
  370. package/fieldset/style/fieldsetstyle.cjs.js +0 -2
  371. package/fieldset/style/fieldsetstyle.cjs.min.js +1 -1
  372. package/fieldset/style/fieldsetstyle.esm.js +0 -2
  373. package/fieldset/style/fieldsetstyle.esm.min.js +1 -1
  374. package/fieldset/style/fieldsetstyle.js +0 -2
  375. package/fieldset/style/fieldsetstyle.min.js +1 -1
  376. package/fileupload/FileUpload.vue +4 -4
  377. package/fileupload/fileupload.cjs.js +4 -10
  378. package/fileupload/fileupload.cjs.min.js +1 -1
  379. package/fileupload/fileupload.esm.js +4 -10
  380. package/fileupload/fileupload.esm.min.js +1 -1
  381. package/fileupload/fileupload.js +4 -10
  382. package/fileupload/fileupload.min.js +1 -1
  383. package/fileupload/style/fileuploadstyle.cjs.js +0 -2
  384. package/fileupload/style/fileuploadstyle.cjs.min.js +1 -1
  385. package/fileupload/style/fileuploadstyle.esm.js +0 -2
  386. package/fileupload/style/fileuploadstyle.esm.min.js +1 -1
  387. package/fileupload/style/fileuploadstyle.js +0 -2
  388. package/fileupload/style/fileuploadstyle.min.js +1 -1
  389. package/floatlabel/BaseFloatLabel.vue +16 -0
  390. package/floatlabel/FloatLabel.d.ts +128 -0
  391. package/floatlabel/FloatLabel.vue +14 -0
  392. package/floatlabel/floatlabel.cjs.js +37 -0
  393. package/floatlabel/floatlabel.cjs.min.js +1 -0
  394. package/floatlabel/floatlabel.esm.js +30 -0
  395. package/floatlabel/floatlabel.esm.min.js +1 -0
  396. package/floatlabel/floatlabel.js +37 -0
  397. package/floatlabel/floatlabel.min.js +1 -0
  398. package/floatlabel/package.json +9 -0
  399. package/floatlabel/style/FloatLabelStyle.d.ts +3 -0
  400. package/floatlabel/style/floatlabelstyle.cjs.js +17 -0
  401. package/floatlabel/style/floatlabelstyle.cjs.min.js +1 -0
  402. package/floatlabel/style/floatlabelstyle.esm.js +11 -0
  403. package/floatlabel/style/floatlabelstyle.esm.min.js +1 -0
  404. package/floatlabel/style/floatlabelstyle.js +20 -0
  405. package/floatlabel/style/floatlabelstyle.min.js +1 -0
  406. package/floatlabel/style/package.json +6 -0
  407. package/galleria/GalleriaContent.vue +7 -2
  408. package/galleria/galleria.cjs.js +8 -4
  409. package/galleria/galleria.cjs.min.js +1 -1
  410. package/galleria/galleria.esm.js +8 -4
  411. package/galleria/galleria.esm.min.js +1 -1
  412. package/galleria/galleria.js +8 -4
  413. package/galleria/galleria.min.js +1 -1
  414. package/galleria/style/galleriastyle.cjs.js +0 -3
  415. package/galleria/style/galleriastyle.cjs.min.js +1 -1
  416. package/galleria/style/galleriastyle.esm.js +0 -3
  417. package/galleria/style/galleriastyle.esm.min.js +1 -1
  418. package/galleria/style/galleriastyle.js +0 -3
  419. package/galleria/style/galleriastyle.min.js +1 -1
  420. package/iconfield/BaseIconField.vue +21 -0
  421. package/iconfield/IconField.d.ts +127 -0
  422. package/iconfield/IconField.vue +14 -0
  423. package/iconfield/iconfield.cjs.js +42 -0
  424. package/iconfield/iconfield.cjs.min.js +1 -0
  425. package/iconfield/iconfield.esm.js +35 -0
  426. package/iconfield/iconfield.esm.min.js +1 -0
  427. package/iconfield/iconfield.js +42 -0
  428. package/iconfield/iconfield.min.js +1 -0
  429. package/iconfield/package.json +9 -0
  430. package/iconfield/style/IconField.d.ts +3 -0
  431. package/iconfield/style/iconfieldstyle.cjs.js +23 -0
  432. package/iconfield/style/iconfieldstyle.cjs.min.js +1 -0
  433. package/iconfield/style/iconfieldstyle.esm.js +17 -0
  434. package/iconfield/style/iconfieldstyle.esm.min.js +1 -0
  435. package/iconfield/style/iconfieldstyle.js +26 -0
  436. package/iconfield/style/iconfieldstyle.min.js +1 -0
  437. package/iconfield/style/package.json +6 -0
  438. package/icons/arrowdown/index.cjs.js +3 -15
  439. package/icons/arrowdown/index.cjs.min.js +1 -1
  440. package/icons/arrowdown/index.esm.js +3 -15
  441. package/icons/arrowdown/index.esm.min.js +1 -1
  442. package/icons/arrowdown/index.js +3 -15
  443. package/icons/arrowdown/index.min.js +1 -1
  444. package/icons/arrowdown/index.vue +6 -13
  445. package/icons/arrowup/index.cjs.js +3 -15
  446. package/icons/arrowup/index.cjs.min.js +1 -1
  447. package/icons/arrowup/index.esm.js +3 -15
  448. package/icons/arrowup/index.esm.min.js +1 -1
  449. package/icons/arrowup/index.js +3 -15
  450. package/icons/arrowup/index.min.js +1 -1
  451. package/icons/arrowup/index.vue +6 -13
  452. package/icons/ban/index.cjs.js +3 -15
  453. package/icons/ban/index.cjs.min.js +1 -1
  454. package/icons/ban/index.esm.js +3 -15
  455. package/icons/ban/index.esm.min.js +1 -1
  456. package/icons/ban/index.js +3 -15
  457. package/icons/ban/index.min.js +1 -1
  458. package/icons/ban/index.vue +4 -11
  459. package/icons/exclamationtriangle/index.cjs.js +5 -17
  460. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  461. package/icons/exclamationtriangle/index.esm.js +5 -17
  462. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  463. package/icons/exclamationtriangle/index.js +5 -17
  464. package/icons/exclamationtriangle/index.min.js +1 -1
  465. package/icons/exclamationtriangle/index.vue +12 -19
  466. package/icons/eyeslash/index.cjs.js +3 -15
  467. package/icons/eyeslash/index.cjs.min.js +1 -1
  468. package/icons/eyeslash/index.esm.js +3 -15
  469. package/icons/eyeslash/index.esm.min.js +1 -1
  470. package/icons/eyeslash/index.js +3 -15
  471. package/icons/eyeslash/index.min.js +1 -1
  472. package/icons/eyeslash/index.vue +6 -13
  473. package/icons/filter/index.cjs.js +3 -15
  474. package/icons/filter/index.cjs.min.js +1 -1
  475. package/icons/filter/index.esm.js +3 -15
  476. package/icons/filter/index.esm.min.js +1 -1
  477. package/icons/filter/index.js +3 -15
  478. package/icons/filter/index.min.js +1 -1
  479. package/icons/filter/index.vue +4 -11
  480. package/icons/filterslash/index.cjs.js +3 -15
  481. package/icons/filterslash/index.cjs.min.js +1 -1
  482. package/icons/filterslash/index.esm.js +3 -15
  483. package/icons/filterslash/index.esm.min.js +1 -1
  484. package/icons/filterslash/index.js +3 -15
  485. package/icons/filterslash/index.min.js +1 -1
  486. package/icons/filterslash/index.vue +6 -13
  487. package/icons/infocircle/index.cjs.js +3 -15
  488. package/icons/infocircle/index.cjs.min.js +1 -1
  489. package/icons/infocircle/index.esm.js +3 -15
  490. package/icons/infocircle/index.esm.min.js +1 -1
  491. package/icons/infocircle/index.js +3 -15
  492. package/icons/infocircle/index.min.js +1 -1
  493. package/icons/infocircle/index.vue +6 -13
  494. package/icons/pencil/index.cjs.js +3 -15
  495. package/icons/pencil/index.cjs.min.js +1 -1
  496. package/icons/pencil/index.esm.js +3 -15
  497. package/icons/pencil/index.esm.min.js +1 -1
  498. package/icons/pencil/index.js +3 -15
  499. package/icons/pencil/index.min.js +1 -1
  500. package/icons/pencil/index.vue +4 -11
  501. package/icons/plus/index.cjs.js +3 -15
  502. package/icons/plus/index.cjs.min.js +1 -1
  503. package/icons/plus/index.esm.js +3 -15
  504. package/icons/plus/index.esm.min.js +1 -1
  505. package/icons/plus/index.js +3 -15
  506. package/icons/plus/index.min.js +1 -1
  507. package/icons/plus/index.vue +4 -11
  508. package/icons/refresh/index.cjs.js +3 -15
  509. package/icons/refresh/index.cjs.min.js +1 -1
  510. package/icons/refresh/index.esm.js +3 -15
  511. package/icons/refresh/index.esm.min.js +1 -1
  512. package/icons/refresh/index.js +3 -15
  513. package/icons/refresh/index.min.js +1 -1
  514. package/icons/refresh/index.vue +6 -13
  515. package/icons/search/index.cjs.js +3 -15
  516. package/icons/search/index.cjs.min.js +1 -1
  517. package/icons/search/index.esm.js +3 -15
  518. package/icons/search/index.esm.min.js +1 -1
  519. package/icons/search/index.js +3 -15
  520. package/icons/search/index.min.js +1 -1
  521. package/icons/search/index.vue +6 -13
  522. package/icons/searchminus/index.cjs.js +3 -15
  523. package/icons/searchminus/index.cjs.min.js +1 -1
  524. package/icons/searchminus/index.esm.js +3 -15
  525. package/icons/searchminus/index.esm.min.js +1 -1
  526. package/icons/searchminus/index.js +3 -15
  527. package/icons/searchminus/index.min.js +1 -1
  528. package/icons/searchminus/index.vue +6 -13
  529. package/icons/searchplus/index.cjs.js +3 -15
  530. package/icons/searchplus/index.cjs.min.js +1 -1
  531. package/icons/searchplus/index.esm.js +3 -15
  532. package/icons/searchplus/index.esm.min.js +1 -1
  533. package/icons/searchplus/index.js +3 -15
  534. package/icons/searchplus/index.min.js +1 -1
  535. package/icons/searchplus/index.vue +6 -13
  536. package/icons/sortalt/index.cjs.js +6 -18
  537. package/icons/sortalt/index.cjs.min.js +1 -1
  538. package/icons/sortalt/index.esm.js +6 -18
  539. package/icons/sortalt/index.esm.min.js +1 -1
  540. package/icons/sortalt/index.js +6 -18
  541. package/icons/sortalt/index.min.js +1 -1
  542. package/icons/sortalt/index.vue +10 -17
  543. package/icons/sortamountdown/index.cjs.js +3 -15
  544. package/icons/sortamountdown/index.cjs.min.js +1 -1
  545. package/icons/sortamountdown/index.esm.js +3 -15
  546. package/icons/sortamountdown/index.esm.min.js +1 -1
  547. package/icons/sortamountdown/index.js +3 -15
  548. package/icons/sortamountdown/index.min.js +1 -1
  549. package/icons/sortamountdown/index.vue +4 -11
  550. package/icons/sortamountupalt/index.cjs.js +3 -15
  551. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  552. package/icons/sortamountupalt/index.esm.js +3 -15
  553. package/icons/sortamountupalt/index.esm.min.js +1 -1
  554. package/icons/sortamountupalt/index.js +3 -15
  555. package/icons/sortamountupalt/index.min.js +1 -1
  556. package/icons/sortamountupalt/index.vue +4 -11
  557. package/icons/spinner/index.cjs.js +3 -15
  558. package/icons/spinner/index.cjs.min.js +1 -1
  559. package/icons/spinner/index.esm.js +3 -15
  560. package/icons/spinner/index.esm.min.js +1 -1
  561. package/icons/spinner/index.js +3 -15
  562. package/icons/spinner/index.min.js +1 -1
  563. package/icons/spinner/index.vue +4 -11
  564. package/icons/star/index.cjs.js +3 -15
  565. package/icons/star/index.cjs.min.js +1 -1
  566. package/icons/star/index.esm.js +3 -15
  567. package/icons/star/index.esm.min.js +1 -1
  568. package/icons/star/index.js +3 -15
  569. package/icons/star/index.min.js +1 -1
  570. package/icons/star/index.vue +4 -11
  571. package/icons/starfill/index.cjs.js +3 -15
  572. package/icons/starfill/index.cjs.min.js +1 -1
  573. package/icons/starfill/index.esm.js +3 -15
  574. package/icons/starfill/index.esm.min.js +1 -1
  575. package/icons/starfill/index.js +3 -15
  576. package/icons/starfill/index.min.js +1 -1
  577. package/icons/starfill/index.vue +4 -11
  578. package/icons/thlarge/index.cjs.js +3 -15
  579. package/icons/thlarge/index.cjs.min.js +1 -1
  580. package/icons/thlarge/index.esm.js +3 -15
  581. package/icons/thlarge/index.esm.min.js +1 -1
  582. package/icons/thlarge/index.js +3 -15
  583. package/icons/thlarge/index.min.js +1 -1
  584. package/icons/thlarge/index.vue +6 -13
  585. package/icons/timescircle/index.cjs.js +3 -15
  586. package/icons/timescircle/index.cjs.min.js +1 -1
  587. package/icons/timescircle/index.esm.js +3 -15
  588. package/icons/timescircle/index.esm.min.js +1 -1
  589. package/icons/timescircle/index.js +3 -15
  590. package/icons/timescircle/index.min.js +1 -1
  591. package/icons/timescircle/index.vue +6 -13
  592. package/icons/trash/index.cjs.js +3 -15
  593. package/icons/trash/index.cjs.min.js +1 -1
  594. package/icons/trash/index.esm.js +3 -15
  595. package/icons/trash/index.esm.min.js +1 -1
  596. package/icons/trash/index.js +3 -15
  597. package/icons/trash/index.min.js +1 -1
  598. package/icons/trash/index.vue +6 -13
  599. package/icons/undo/index.cjs.js +3 -15
  600. package/icons/undo/index.cjs.min.js +1 -1
  601. package/icons/undo/index.esm.js +3 -15
  602. package/icons/undo/index.esm.min.js +1 -1
  603. package/icons/undo/index.js +3 -15
  604. package/icons/undo/index.min.js +1 -1
  605. package/icons/undo/index.vue +6 -13
  606. package/icons/upload/index.cjs.js +3 -15
  607. package/icons/upload/index.cjs.min.js +1 -1
  608. package/icons/upload/index.esm.js +3 -15
  609. package/icons/upload/index.esm.min.js +1 -1
  610. package/icons/upload/index.js +3 -15
  611. package/icons/upload/index.min.js +1 -1
  612. package/icons/upload/index.vue +6 -13
  613. package/icons/windowmaximize/index.cjs.js +3 -15
  614. package/icons/windowmaximize/index.cjs.min.js +1 -1
  615. package/icons/windowmaximize/index.esm.js +3 -15
  616. package/icons/windowmaximize/index.esm.min.js +1 -1
  617. package/icons/windowmaximize/index.js +3 -15
  618. package/icons/windowmaximize/index.min.js +1 -1
  619. package/icons/windowmaximize/index.vue +6 -13
  620. package/icons/windowminimize/index.cjs.js +3 -15
  621. package/icons/windowminimize/index.cjs.min.js +1 -1
  622. package/icons/windowminimize/index.esm.js +3 -15
  623. package/icons/windowminimize/index.esm.min.js +1 -1
  624. package/icons/windowminimize/index.js +3 -15
  625. package/icons/windowminimize/index.min.js +1 -1
  626. package/icons/windowminimize/index.vue +6 -13
  627. package/image/Image.vue +1 -1
  628. package/image/image.cjs.js +1 -3
  629. package/image/image.cjs.min.js +1 -1
  630. package/image/image.esm.js +1 -3
  631. package/image/image.esm.min.js +1 -1
  632. package/image/image.js +1 -3
  633. package/image/image.min.js +1 -1
  634. package/image/style/imagestyle.cjs.js +0 -2
  635. package/image/style/imagestyle.cjs.min.js +1 -1
  636. package/image/style/imagestyle.esm.js +0 -2
  637. package/image/style/imagestyle.esm.min.js +1 -1
  638. package/image/style/imagestyle.js +0 -2
  639. package/image/style/imagestyle.min.js +1 -1
  640. package/inlinemessage/InlineMessage.d.ts +1 -1
  641. package/inlinemessage/style/inlinemessagestyle.cjs.js +0 -2
  642. package/inlinemessage/style/inlinemessagestyle.cjs.min.js +1 -1
  643. package/inlinemessage/style/inlinemessagestyle.esm.js +0 -2
  644. package/inlinemessage/style/inlinemessagestyle.esm.min.js +1 -1
  645. package/inlinemessage/style/inlinemessagestyle.js +0 -2
  646. package/inlinemessage/style/inlinemessagestyle.min.js +1 -1
  647. package/inplace/Inplace.vue +1 -1
  648. package/inplace/inplace.cjs.js +1 -3
  649. package/inplace/inplace.cjs.min.js +1 -1
  650. package/inplace/inplace.esm.js +1 -3
  651. package/inplace/inplace.esm.min.js +1 -1
  652. package/inplace/inplace.js +1 -3
  653. package/inplace/inplace.min.js +1 -1
  654. package/inplace/style/inplacestyle.cjs.js +0 -2
  655. package/inplace/style/inplacestyle.cjs.min.js +1 -1
  656. package/inplace/style/inplacestyle.esm.js +0 -2
  657. package/inplace/style/inplacestyle.esm.min.js +1 -1
  658. package/inplace/style/inplacestyle.js +0 -2
  659. package/inplace/style/inplacestyle.min.js +1 -1
  660. package/inputgroup/InputGroup.vue +1 -1
  661. package/inputgroup/inputgroup.cjs.js +1 -3
  662. package/inputgroup/inputgroup.cjs.min.js +1 -1
  663. package/inputgroup/inputgroup.esm.js +1 -3
  664. package/inputgroup/inputgroup.esm.min.js +1 -1
  665. package/inputgroup/inputgroup.js +1 -3
  666. package/inputgroup/inputgroup.min.js +1 -1
  667. package/inputgroupaddon/InputGroupAddon.vue +1 -1
  668. package/inputgroupaddon/inputgroupaddon.cjs.js +1 -3
  669. package/inputgroupaddon/inputgroupaddon.cjs.min.js +1 -1
  670. package/inputgroupaddon/inputgroupaddon.esm.js +1 -3
  671. package/inputgroupaddon/inputgroupaddon.esm.min.js +1 -1
  672. package/inputgroupaddon/inputgroupaddon.js +1 -3
  673. package/inputgroupaddon/inputgroupaddon.min.js +1 -1
  674. package/inputicon/BaseInputIcon.vue +15 -0
  675. package/inputicon/InputIcon.d.ts +117 -0
  676. package/inputicon/InputIcon.vue +12 -0
  677. package/inputicon/inputicon.cjs.js +34 -0
  678. package/inputicon/inputicon.cjs.min.js +1 -0
  679. package/inputicon/inputicon.esm.js +27 -0
  680. package/inputicon/inputicon.esm.min.js +1 -0
  681. package/inputicon/inputicon.js +34 -0
  682. package/inputicon/inputicon.min.js +1 -0
  683. package/inputicon/package.json +9 -0
  684. package/inputicon/style/InputIcoonStyle.d.ts +3 -0
  685. package/inputicon/style/inputiconstyle.cjs.js +5 -0
  686. package/inputicon/style/inputiconstyle.cjs.min.js +1 -0
  687. package/inputicon/style/inputiconstyle.esm.js +3 -0
  688. package/inputicon/style/inputiconstyle.esm.min.js +1 -0
  689. package/inputicon/style/inputiconstyle.js +10 -0
  690. package/inputicon/style/inputiconstyle.min.js +1 -0
  691. package/inputicon/style/package.json +6 -0
  692. package/inputmask/BaseInputMask.vue +8 -0
  693. package/inputmask/InputMask.d.ts +10 -0
  694. package/inputmask/InputMask.vue +1 -1
  695. package/inputmask/inputmask.cjs.js +9 -3
  696. package/inputmask/inputmask.cjs.min.js +1 -1
  697. package/inputmask/inputmask.esm.js +9 -3
  698. package/inputmask/inputmask.esm.min.js +1 -1
  699. package/inputmask/inputmask.js +9 -3
  700. package/inputmask/inputmask.min.js +1 -1
  701. package/inputmask/style/inputmaskstyle.cjs.js +5 -2
  702. package/inputmask/style/inputmaskstyle.cjs.min.js +1 -1
  703. package/inputmask/style/inputmaskstyle.esm.js +5 -2
  704. package/inputmask/style/inputmaskstyle.esm.min.js +1 -1
  705. package/inputmask/style/inputmaskstyle.js +5 -2
  706. package/inputmask/style/inputmaskstyle.min.js +1 -1
  707. package/inputnumber/BaseInputNumber.vue +8 -0
  708. package/inputnumber/InputNumber.d.ts +10 -0
  709. package/inputnumber/InputNumber.vue +3 -26
  710. package/inputnumber/inputnumber.cjs.js +14 -13
  711. package/inputnumber/inputnumber.cjs.min.js +1 -1
  712. package/inputnumber/inputnumber.esm.js +14 -13
  713. package/inputnumber/inputnumber.esm.min.js +1 -1
  714. package/inputnumber/inputnumber.js +14 -13
  715. package/inputnumber/inputnumber.min.js +1 -1
  716. package/inputnumber/style/inputnumberstyle.cjs.js +15 -10
  717. package/inputnumber/style/inputnumberstyle.cjs.min.js +1 -1
  718. package/inputnumber/style/inputnumberstyle.esm.js +15 -10
  719. package/inputnumber/style/inputnumberstyle.esm.min.js +1 -1
  720. package/inputnumber/style/inputnumberstyle.js +15 -10
  721. package/inputnumber/style/inputnumberstyle.min.js +1 -1
  722. package/inputswitch/BaseInputSwitch.vue +4 -0
  723. package/inputswitch/InputSwitch.d.ts +5 -0
  724. package/inputswitch/InputSwitch.vue +1 -1
  725. package/inputswitch/inputswitch.cjs.js +4 -1
  726. package/inputswitch/inputswitch.cjs.min.js +1 -1
  727. package/inputswitch/inputswitch.esm.js +4 -1
  728. package/inputswitch/inputswitch.esm.min.js +1 -1
  729. package/inputswitch/inputswitch.js +4 -1
  730. package/inputswitch/inputswitch.min.js +1 -1
  731. package/inputswitch/style/inputswitchstyle.cjs.js +2 -3
  732. package/inputswitch/style/inputswitchstyle.cjs.min.js +1 -1
  733. package/inputswitch/style/inputswitchstyle.esm.js +2 -3
  734. package/inputswitch/style/inputswitchstyle.esm.min.js +1 -1
  735. package/inputswitch/style/inputswitchstyle.js +2 -3
  736. package/inputswitch/style/inputswitchstyle.min.js +1 -1
  737. package/inputtext/BaseInputText.vue +8 -0
  738. package/inputtext/InputText.d.ts +10 -0
  739. package/inputtext/InputText.vue +1 -1
  740. package/inputtext/inputtext.cjs.js +9 -3
  741. package/inputtext/inputtext.cjs.min.js +1 -1
  742. package/inputtext/inputtext.esm.js +9 -3
  743. package/inputtext/inputtext.esm.min.js +1 -1
  744. package/inputtext/inputtext.js +9 -3
  745. package/inputtext/inputtext.min.js +1 -1
  746. package/inputtext/style/inputtextstyle.cjs.js +3 -1
  747. package/inputtext/style/inputtextstyle.cjs.min.js +1 -1
  748. package/inputtext/style/inputtextstyle.esm.js +3 -1
  749. package/inputtext/style/inputtextstyle.esm.min.js +1 -1
  750. package/inputtext/style/inputtextstyle.js +3 -1
  751. package/inputtext/style/inputtextstyle.min.js +1 -1
  752. package/knob/Knob.vue +11 -8
  753. package/knob/knob.cjs.js +10 -10
  754. package/knob/knob.cjs.min.js +1 -1
  755. package/knob/knob.esm.js +10 -10
  756. package/knob/knob.esm.min.js +1 -1
  757. package/knob/knob.js +10 -10
  758. package/knob/knob.min.js +1 -1
  759. package/knob/style/knobstyle.cjs.js +0 -2
  760. package/knob/style/knobstyle.cjs.min.js +1 -1
  761. package/knob/style/knobstyle.esm.js +0 -2
  762. package/knob/style/knobstyle.esm.min.js +1 -1
  763. package/knob/style/knobstyle.js +0 -2
  764. package/knob/style/knobstyle.min.js +1 -1
  765. package/listbox/BaseListbox.vue +4 -0
  766. package/listbox/Listbox.d.ts +5 -0
  767. package/listbox/Listbox.vue +1 -1
  768. package/listbox/listbox.cjs.js +5 -3
  769. package/listbox/listbox.cjs.min.js +1 -1
  770. package/listbox/listbox.esm.js +5 -3
  771. package/listbox/listbox.esm.min.js +1 -1
  772. package/listbox/listbox.js +5 -3
  773. package/listbox/listbox.min.js +1 -1
  774. package/listbox/style/listboxstyle.cjs.js +2 -3
  775. package/listbox/style/listboxstyle.cjs.min.js +1 -1
  776. package/listbox/style/listboxstyle.esm.js +2 -3
  777. package/listbox/style/listboxstyle.esm.min.js +1 -1
  778. package/listbox/style/listboxstyle.js +2 -3
  779. package/listbox/style/listboxstyle.min.js +1 -1
  780. package/megamenu/MegaMenu.vue +1 -1
  781. package/megamenu/megamenu.cjs.js +1 -3
  782. package/megamenu/megamenu.cjs.min.js +1 -1
  783. package/megamenu/megamenu.esm.js +1 -3
  784. package/megamenu/megamenu.esm.min.js +1 -1
  785. package/megamenu/megamenu.js +1 -3
  786. package/megamenu/megamenu.min.js +1 -1
  787. package/megamenu/style/megamenustyle.cjs.js +0 -2
  788. package/megamenu/style/megamenustyle.cjs.min.js +1 -1
  789. package/megamenu/style/megamenustyle.esm.js +0 -2
  790. package/megamenu/style/megamenustyle.esm.min.js +1 -1
  791. package/megamenu/style/megamenustyle.js +0 -2
  792. package/megamenu/style/megamenustyle.min.js +1 -1
  793. package/menu/Menu.vue +1 -1
  794. package/menu/menu.cjs.js +1 -3
  795. package/menu/menu.cjs.min.js +1 -1
  796. package/menu/menu.esm.js +1 -3
  797. package/menu/menu.esm.min.js +1 -1
  798. package/menu/menu.js +1 -3
  799. package/menu/menu.min.js +1 -1
  800. package/menu/style/menustyle.cjs.js +0 -3
  801. package/menu/style/menustyle.cjs.min.js +1 -1
  802. package/menu/style/menustyle.esm.js +0 -3
  803. package/menu/style/menustyle.esm.min.js +1 -1
  804. package/menu/style/menustyle.js +0 -3
  805. package/menu/style/menustyle.min.js +1 -1
  806. package/menubar/style/menubarstyle.cjs.js +0 -2
  807. package/menubar/style/menubarstyle.cjs.min.js +1 -1
  808. package/menubar/style/menubarstyle.esm.js +0 -2
  809. package/menubar/style/menubarstyle.esm.min.js +1 -1
  810. package/menubar/style/menubarstyle.js +0 -2
  811. package/menubar/style/menubarstyle.min.js +1 -1
  812. package/message/Message.d.ts +1 -1
  813. package/message/Message.vue +1 -1
  814. package/message/message.cjs.js +1 -3
  815. package/message/message.cjs.min.js +1 -1
  816. package/message/message.esm.js +1 -3
  817. package/message/message.esm.min.js +1 -1
  818. package/message/message.js +1 -3
  819. package/message/message.min.js +1 -1
  820. package/message/style/messagestyle.cjs.js +0 -2
  821. package/message/style/messagestyle.cjs.min.js +1 -1
  822. package/message/style/messagestyle.esm.js +0 -2
  823. package/message/style/messagestyle.esm.min.js +1 -1
  824. package/message/style/messagestyle.js +0 -2
  825. package/message/style/messagestyle.min.js +1 -1
  826. package/metergroup/MeterGroup.vue +1 -1
  827. package/metergroup/metergroup.cjs.js +1 -3
  828. package/metergroup/metergroup.cjs.min.js +1 -1
  829. package/metergroup/metergroup.esm.js +1 -3
  830. package/metergroup/metergroup.esm.min.js +1 -1
  831. package/metergroup/metergroup.js +1 -3
  832. package/metergroup/metergroup.min.js +1 -1
  833. package/metergroup/style/metergroupstyle.cjs.js +7 -11
  834. package/metergroup/style/metergroupstyle.cjs.min.js +1 -1
  835. package/metergroup/style/metergroupstyle.esm.js +7 -11
  836. package/metergroup/style/metergroupstyle.esm.min.js +1 -1
  837. package/metergroup/style/metergroupstyle.js +7 -11
  838. package/metergroup/style/metergroupstyle.min.js +1 -1
  839. package/multiselect/BaseMultiSelect.vue +8 -0
  840. package/multiselect/MultiSelect.d.ts +10 -0
  841. package/multiselect/MultiSelect.vue +3 -2
  842. package/multiselect/multiselect.cjs.js +13 -5
  843. package/multiselect/multiselect.cjs.min.js +1 -1
  844. package/multiselect/multiselect.esm.js +13 -5
  845. package/multiselect/multiselect.esm.min.js +1 -1
  846. package/multiselect/multiselect.js +13 -5
  847. package/multiselect/multiselect.min.js +1 -1
  848. package/multiselect/style/multiselectstyle.cjs.js +17 -11
  849. package/multiselect/style/multiselectstyle.cjs.min.js +1 -1
  850. package/multiselect/style/multiselectstyle.esm.js +17 -11
  851. package/multiselect/style/multiselectstyle.esm.min.js +1 -1
  852. package/multiselect/style/multiselectstyle.js +17 -11
  853. package/multiselect/style/multiselectstyle.min.js +1 -1
  854. package/orderlist/OrderList.vue +4 -4
  855. package/orderlist/orderlist.cjs.js +4 -8
  856. package/orderlist/orderlist.cjs.min.js +1 -1
  857. package/orderlist/orderlist.esm.js +4 -8
  858. package/orderlist/orderlist.esm.min.js +1 -1
  859. package/orderlist/orderlist.js +4 -8
  860. package/orderlist/orderlist.min.js +1 -1
  861. package/orderlist/style/orderliststyle.cjs.js +0 -2
  862. package/orderlist/style/orderliststyle.cjs.min.js +1 -1
  863. package/orderlist/style/orderliststyle.esm.js +0 -2
  864. package/orderlist/style/orderliststyle.esm.min.js +1 -1
  865. package/orderlist/style/orderliststyle.js +0 -2
  866. package/orderlist/style/orderliststyle.min.js +1 -1
  867. package/organizationchart/style/organizationchartstyle.cjs.js +0 -2
  868. package/organizationchart/style/organizationchartstyle.cjs.min.js +1 -1
  869. package/organizationchart/style/organizationchartstyle.esm.js +0 -2
  870. package/organizationchart/style/organizationchartstyle.esm.min.js +1 -1
  871. package/organizationchart/style/organizationchartstyle.js +0 -2
  872. package/organizationchart/style/organizationchartstyle.min.js +1 -1
  873. package/overlaypanel/style/overlaypanelstyle.cjs.js +0 -3
  874. package/overlaypanel/style/overlaypanelstyle.cjs.min.js +1 -1
  875. package/overlaypanel/style/overlaypanelstyle.esm.js +0 -3
  876. package/overlaypanel/style/overlaypanelstyle.esm.min.js +1 -1
  877. package/overlaypanel/style/overlaypanelstyle.js +0 -3
  878. package/overlaypanel/style/overlaypanelstyle.min.js +1 -1
  879. package/package.json +1 -1
  880. package/paginator/JumpToPageDropdown.vue +0 -1
  881. package/paginator/JumpToPageInput.vue +1 -11
  882. package/paginator/Paginator.vue +1 -1
  883. package/paginator/RowsPerPageDropdown.vue +0 -1
  884. package/paginator/paginator.cjs.js +2 -7
  885. package/paginator/paginator.cjs.min.js +1 -1
  886. package/paginator/paginator.esm.js +2 -7
  887. package/paginator/paginator.esm.min.js +1 -1
  888. package/paginator/paginator.js +2 -7
  889. package/paginator/paginator.min.js +1 -1
  890. package/paginator/style/paginatorstyle.cjs.js +0 -2
  891. package/paginator/style/paginatorstyle.cjs.min.js +1 -1
  892. package/paginator/style/paginatorstyle.esm.js +0 -2
  893. package/paginator/style/paginatorstyle.esm.min.js +1 -1
  894. package/paginator/style/paginatorstyle.js +0 -2
  895. package/paginator/style/paginatorstyle.min.js +1 -1
  896. package/panel/Panel.vue +13 -9
  897. package/panel/panel.cjs.js +14 -12
  898. package/panel/panel.cjs.min.js +1 -1
  899. package/panel/panel.esm.js +14 -12
  900. package/panel/panel.esm.min.js +1 -1
  901. package/panel/panel.js +14 -12
  902. package/panel/panel.min.js +1 -1
  903. package/panel/style/panelstyle.cjs.js +0 -2
  904. package/panel/style/panelstyle.cjs.min.js +1 -1
  905. package/panel/style/panelstyle.esm.js +0 -2
  906. package/panel/style/panelstyle.esm.min.js +1 -1
  907. package/panel/style/panelstyle.js +0 -2
  908. package/panel/style/panelstyle.min.js +1 -1
  909. package/panelmenu/PanelMenu.vue +1 -1
  910. package/panelmenu/panelmenu.cjs.js +1 -3
  911. package/panelmenu/panelmenu.cjs.min.js +1 -1
  912. package/panelmenu/panelmenu.esm.js +1 -3
  913. package/panelmenu/panelmenu.esm.min.js +1 -1
  914. package/panelmenu/panelmenu.js +1 -3
  915. package/panelmenu/panelmenu.min.js +1 -1
  916. package/panelmenu/style/panelmenustyle.cjs.js +0 -2
  917. package/panelmenu/style/panelmenustyle.cjs.min.js +1 -1
  918. package/panelmenu/style/panelmenustyle.esm.js +0 -2
  919. package/panelmenu/style/panelmenustyle.esm.min.js +1 -1
  920. package/panelmenu/style/panelmenustyle.js +0 -2
  921. package/panelmenu/style/panelmenustyle.min.js +1 -1
  922. package/passthrough/index.d.ts +3 -1
  923. package/password/BasePassword.vue +8 -0
  924. package/password/Password.d.ts +10 -0
  925. package/password/Password.vue +11 -2
  926. package/password/password.cjs.js +20 -5
  927. package/password/password.cjs.min.js +1 -1
  928. package/password/password.esm.js +21 -6
  929. package/password/password.esm.min.js +1 -1
  930. package/password/password.js +20 -5
  931. package/password/password.min.js +1 -1
  932. package/password/style/passwordstyle.cjs.js +2 -4
  933. package/password/style/passwordstyle.cjs.min.js +1 -1
  934. package/password/style/passwordstyle.esm.js +2 -4
  935. package/password/style/passwordstyle.esm.min.js +1 -1
  936. package/password/style/passwordstyle.js +2 -4
  937. package/password/style/passwordstyle.min.js +1 -1
  938. package/picklist/PickList.vue +12 -48
  939. package/picklist/picklist.cjs.js +11 -23
  940. package/picklist/picklist.cjs.min.js +1 -1
  941. package/picklist/picklist.esm.js +11 -23
  942. package/picklist/picklist.esm.min.js +1 -1
  943. package/picklist/picklist.js +11 -23
  944. package/picklist/picklist.min.js +1 -1
  945. package/picklist/style/pickliststyle.cjs.js +0 -2
  946. package/picklist/style/pickliststyle.cjs.min.js +1 -1
  947. package/picklist/style/pickliststyle.esm.js +0 -2
  948. package/picklist/style/pickliststyle.esm.min.js +1 -1
  949. package/picklist/style/pickliststyle.js +0 -2
  950. package/picklist/style/pickliststyle.min.js +1 -1
  951. package/progressbar/ProgressBar.vue +1 -1
  952. package/progressbar/progressbar.cjs.js +1 -3
  953. package/progressbar/progressbar.cjs.min.js +1 -1
  954. package/progressbar/progressbar.esm.js +1 -3
  955. package/progressbar/progressbar.esm.min.js +1 -1
  956. package/progressbar/progressbar.js +1 -3
  957. package/progressbar/progressbar.min.js +1 -1
  958. package/progressbar/style/progressbarstyle.cjs.js +0 -2
  959. package/progressbar/style/progressbarstyle.cjs.min.js +1 -1
  960. package/progressbar/style/progressbarstyle.esm.js +0 -2
  961. package/progressbar/style/progressbarstyle.esm.min.js +1 -1
  962. package/progressbar/style/progressbarstyle.js +0 -2
  963. package/progressbar/style/progressbarstyle.min.js +1 -1
  964. package/progressspinner/ProgressSpinner.vue +1 -1
  965. package/progressspinner/progressspinner.cjs.js +1 -3
  966. package/progressspinner/progressspinner.cjs.min.js +1 -1
  967. package/progressspinner/progressspinner.esm.js +1 -3
  968. package/progressspinner/progressspinner.esm.min.js +1 -1
  969. package/progressspinner/progressspinner.js +1 -3
  970. package/progressspinner/progressspinner.min.js +1 -1
  971. package/progressspinner/style/progressspinnerstyle.cjs.js +0 -2
  972. package/progressspinner/style/progressspinnerstyle.cjs.min.js +1 -1
  973. package/progressspinner/style/progressspinnerstyle.esm.js +0 -2
  974. package/progressspinner/style/progressspinnerstyle.esm.min.js +1 -1
  975. package/progressspinner/style/progressspinnerstyle.js +0 -2
  976. package/progressspinner/style/progressspinnerstyle.min.js +1 -1
  977. package/radiobutton/BaseRadioButton.vue +8 -0
  978. package/radiobutton/RadioButton.d.ts +10 -0
  979. package/radiobutton/RadioButton.vue +1 -1
  980. package/radiobutton/radiobutton.cjs.js +8 -1
  981. package/radiobutton/radiobutton.cjs.min.js +1 -1
  982. package/radiobutton/radiobutton.esm.js +8 -1
  983. package/radiobutton/radiobutton.esm.min.js +1 -1
  984. package/radiobutton/radiobutton.js +8 -1
  985. package/radiobutton/radiobutton.min.js +1 -1
  986. package/radiobutton/style/radiobuttonstyle.cjs.js +3 -3
  987. package/radiobutton/style/radiobuttonstyle.cjs.min.js +1 -1
  988. package/radiobutton/style/radiobuttonstyle.esm.js +3 -3
  989. package/radiobutton/style/radiobuttonstyle.esm.min.js +1 -1
  990. package/radiobutton/style/radiobuttonstyle.js +3 -3
  991. package/radiobutton/style/radiobuttonstyle.min.js +1 -1
  992. package/rating/Rating.vue +1 -1
  993. package/rating/rating.cjs.js +1 -3
  994. package/rating/rating.cjs.min.js +1 -1
  995. package/rating/rating.esm.js +1 -3
  996. package/rating/rating.esm.min.js +1 -1
  997. package/rating/rating.js +1 -3
  998. package/rating/rating.min.js +1 -1
  999. package/rating/style/ratingstyle.cjs.js +0 -2
  1000. package/rating/style/ratingstyle.cjs.min.js +1 -1
  1001. package/rating/style/ratingstyle.esm.js +0 -2
  1002. package/rating/style/ratingstyle.esm.min.js +1 -1
  1003. package/rating/style/ratingstyle.js +0 -2
  1004. package/rating/style/ratingstyle.min.js +1 -1
  1005. package/resources/themes/arya-blue/theme.css +4899 -231
  1006. package/resources/themes/arya-green/theme.css +4899 -231
  1007. package/resources/themes/arya-orange/theme.css +4899 -231
  1008. package/resources/themes/arya-purple/theme.css +4899 -231
  1009. package/resources/themes/aura-dark-amber/theme.css +5255 -375
  1010. package/resources/themes/aura-dark-blue/theme.css +5255 -375
  1011. package/resources/themes/aura-dark-cyan/theme.css +5255 -375
  1012. package/resources/themes/aura-dark-green/theme.css +5255 -375
  1013. package/resources/themes/aura-dark-indigo/theme.css +5255 -375
  1014. package/resources/themes/aura-dark-lime/theme.css +5255 -375
  1015. package/resources/themes/aura-dark-noir/theme.css +5255 -375
  1016. package/resources/themes/aura-dark-pink/theme.css +5255 -375
  1017. package/resources/themes/aura-dark-purple/theme.css +5255 -375
  1018. package/resources/themes/aura-dark-teal/theme.css +5255 -375
  1019. package/resources/themes/aura-light-amber/theme.css +5268 -389
  1020. package/resources/themes/aura-light-blue/theme.css +5268 -389
  1021. package/resources/themes/aura-light-cyan/theme.css +5268 -389
  1022. package/resources/themes/aura-light-green/theme.css +5268 -389
  1023. package/resources/themes/aura-light-indigo/theme.css +5268 -389
  1024. package/resources/themes/aura-light-lime/theme.css +5268 -389
  1025. package/resources/themes/aura-light-noir/theme.css +5269 -390
  1026. package/resources/themes/aura-light-pink/theme.css +5268 -389
  1027. package/resources/themes/aura-light-purple/theme.css +5268 -389
  1028. package/resources/themes/aura-light-teal/theme.css +5268 -389
  1029. package/resources/themes/bootstrap4-dark-blue/theme.css +4876 -208
  1030. package/resources/themes/bootstrap4-dark-purple/theme.css +4876 -208
  1031. package/resources/themes/bootstrap4-light-blue/theme.css +4876 -208
  1032. package/resources/themes/bootstrap4-light-purple/theme.css +4876 -208
  1033. package/resources/themes/fluent-light/theme.css +4881 -213
  1034. package/resources/themes/lara-dark-amber/theme.css +4999 -253
  1035. package/resources/themes/lara-dark-blue/theme.css +4999 -253
  1036. package/resources/themes/lara-dark-cyan/theme.css +4999 -253
  1037. package/resources/themes/lara-dark-green/theme.css +4999 -253
  1038. package/resources/themes/lara-dark-indigo/theme.css +4999 -253
  1039. package/resources/themes/lara-dark-pink/theme.css +4999 -253
  1040. package/resources/themes/lara-dark-purple/theme.css +4999 -253
  1041. package/resources/themes/lara-dark-teal/theme.css +4999 -253
  1042. package/resources/themes/lara-light-amber/theme.css +4980 -234
  1043. package/resources/themes/lara-light-blue/theme.css +4980 -234
  1044. package/resources/themes/lara-light-cyan/theme.css +4980 -234
  1045. package/resources/themes/lara-light-green/theme.css +4980 -234
  1046. package/resources/themes/lara-light-indigo/theme.css +4980 -234
  1047. package/resources/themes/lara-light-pink/theme.css +4980 -234
  1048. package/resources/themes/lara-light-purple/theme.css +4980 -234
  1049. package/resources/themes/lara-light-teal/theme.css +4980 -234
  1050. package/resources/themes/luna-amber/theme.css +4898 -230
  1051. package/resources/themes/luna-blue/theme.css +4898 -230
  1052. package/resources/themes/luna-green/theme.css +4898 -230
  1053. package/resources/themes/luna-pink/theme.css +4898 -230
  1054. package/resources/themes/md-dark-deeppurple/theme.css +5371 -588
  1055. package/resources/themes/md-dark-indigo/theme.css +5363 -580
  1056. package/resources/themes/md-light-deeppurple/theme.css +5210 -428
  1057. package/resources/themes/md-light-indigo/theme.css +5210 -428
  1058. package/resources/themes/mdc-dark-deeppurple/theme.css +5370 -587
  1059. package/resources/themes/mdc-dark-indigo/theme.css +5315 -532
  1060. package/resources/themes/mdc-light-deeppurple/theme.css +5257 -475
  1061. package/resources/themes/mdc-light-indigo/theme.css +5257 -475
  1062. package/resources/themes/mira/theme.css +4899 -231
  1063. package/resources/themes/nano/theme.css +4902 -234
  1064. package/resources/themes/nova/theme.css +4899 -231
  1065. package/resources/themes/nova-accent/theme.css +4899 -231
  1066. package/resources/themes/nova-alt/theme.css +4899 -231
  1067. package/resources/themes/nova-vue/theme.css +4899 -231
  1068. package/resources/themes/rhea/theme.css +4899 -231
  1069. package/resources/themes/saga-blue/theme.css +4899 -231
  1070. package/resources/themes/saga-green/theme.css +4899 -231
  1071. package/resources/themes/saga-orange/theme.css +4899 -231
  1072. package/resources/themes/saga-purple/theme.css +4899 -231
  1073. package/resources/themes/soho-dark/theme.css +4900 -232
  1074. package/resources/themes/soho-light/theme.css +4900 -232
  1075. package/resources/themes/tailwind-light/theme.css +4899 -231
  1076. package/resources/themes/vela-blue/theme.css +4899 -231
  1077. package/resources/themes/vela-green/theme.css +4899 -231
  1078. package/resources/themes/vela-orange/theme.css +4899 -231
  1079. package/resources/themes/vela-purple/theme.css +4899 -231
  1080. package/resources/themes/viva-dark/theme.css +4900 -232
  1081. package/resources/themes/viva-light/theme.css +4900 -232
  1082. package/ripple/style/ripplestyle.cjs.js +0 -2
  1083. package/ripple/style/ripplestyle.cjs.min.js +1 -1
  1084. package/ripple/style/ripplestyle.esm.js +0 -2
  1085. package/ripple/style/ripplestyle.esm.min.js +1 -1
  1086. package/ripple/style/ripplestyle.js +0 -2
  1087. package/ripple/style/ripplestyle.min.js +1 -1
  1088. package/scrollpanel/ScrollPanel.vue +10 -3
  1089. package/scrollpanel/scrollpanel.cjs.js +9 -5
  1090. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  1091. package/scrollpanel/scrollpanel.esm.js +9 -5
  1092. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  1093. package/scrollpanel/scrollpanel.js +9 -5
  1094. package/scrollpanel/scrollpanel.min.js +1 -1
  1095. package/scrollpanel/style/scrollpanelstyle.cjs.js +0 -2
  1096. package/scrollpanel/style/scrollpanelstyle.cjs.min.js +1 -1
  1097. package/scrollpanel/style/scrollpanelstyle.esm.js +0 -2
  1098. package/scrollpanel/style/scrollpanelstyle.esm.min.js +1 -1
  1099. package/scrollpanel/style/scrollpanelstyle.js +0 -2
  1100. package/scrollpanel/style/scrollpanelstyle.min.js +1 -1
  1101. package/scrolltop/ScrollTop.vue +1 -1
  1102. package/scrolltop/scrolltop.cjs.js +1 -3
  1103. package/scrolltop/scrolltop.cjs.min.js +1 -1
  1104. package/scrolltop/scrolltop.esm.js +1 -3
  1105. package/scrolltop/scrolltop.esm.min.js +1 -1
  1106. package/scrolltop/scrolltop.js +1 -3
  1107. package/scrolltop/scrolltop.min.js +1 -1
  1108. package/scrolltop/style/scrolltopstyle.cjs.js +0 -2
  1109. package/scrolltop/style/scrolltopstyle.cjs.min.js +1 -1
  1110. package/scrolltop/style/scrolltopstyle.esm.js +0 -2
  1111. package/scrolltop/style/scrolltopstyle.esm.min.js +1 -1
  1112. package/scrolltop/style/scrolltopstyle.js +0 -2
  1113. package/scrolltop/style/scrolltopstyle.min.js +1 -1
  1114. package/selectbutton/BaseSelectButton.vue +4 -0
  1115. package/selectbutton/SelectButton.d.ts +5 -0
  1116. package/selectbutton/SelectButton.vue +1 -1
  1117. package/selectbutton/selectbutton.cjs.js +5 -3
  1118. package/selectbutton/selectbutton.cjs.min.js +1 -1
  1119. package/selectbutton/selectbutton.esm.js +5 -3
  1120. package/selectbutton/selectbutton.esm.min.js +1 -1
  1121. package/selectbutton/selectbutton.js +5 -3
  1122. package/selectbutton/selectbutton.min.js +1 -1
  1123. package/selectbutton/style/selectbuttonstyle.cjs.js +2 -1
  1124. package/selectbutton/style/selectbuttonstyle.cjs.min.js +1 -1
  1125. package/selectbutton/style/selectbuttonstyle.esm.js +2 -1
  1126. package/selectbutton/style/selectbuttonstyle.esm.min.js +1 -1
  1127. package/selectbutton/style/selectbuttonstyle.js +2 -1
  1128. package/selectbutton/style/selectbuttonstyle.min.js +1 -1
  1129. package/sidebar/style/sidebarstyle.cjs.js +0 -3
  1130. package/sidebar/style/sidebarstyle.cjs.min.js +1 -1
  1131. package/sidebar/style/sidebarstyle.esm.js +0 -3
  1132. package/sidebar/style/sidebarstyle.esm.min.js +1 -1
  1133. package/sidebar/style/sidebarstyle.js +0 -3
  1134. package/sidebar/style/sidebarstyle.min.js +1 -1
  1135. package/skeleton/Skeleton.vue +1 -1
  1136. package/skeleton/skeleton.cjs.js +1 -3
  1137. package/skeleton/skeleton.cjs.min.js +1 -1
  1138. package/skeleton/skeleton.esm.js +1 -3
  1139. package/skeleton/skeleton.esm.min.js +1 -1
  1140. package/skeleton/skeleton.js +1 -3
  1141. package/skeleton/skeleton.min.js +1 -1
  1142. package/skeleton/style/skeletonstyle.cjs.js +0 -2
  1143. package/skeleton/style/skeletonstyle.cjs.min.js +1 -1
  1144. package/skeleton/style/skeletonstyle.esm.js +0 -2
  1145. package/skeleton/style/skeletonstyle.esm.min.js +1 -1
  1146. package/skeleton/style/skeletonstyle.js +0 -2
  1147. package/skeleton/style/skeletonstyle.min.js +1 -1
  1148. package/slider/Slider.vue +1 -1
  1149. package/slider/slider.cjs.js +1 -2
  1150. package/slider/slider.cjs.min.js +1 -1
  1151. package/slider/slider.esm.js +1 -2
  1152. package/slider/slider.esm.min.js +1 -1
  1153. package/slider/slider.js +1 -2
  1154. package/slider/slider.min.js +1 -1
  1155. package/slider/style/sliderstyle.cjs.js +0 -2
  1156. package/slider/style/sliderstyle.cjs.min.js +1 -1
  1157. package/slider/style/sliderstyle.esm.js +0 -2
  1158. package/slider/style/sliderstyle.esm.min.js +1 -1
  1159. package/slider/style/sliderstyle.js +0 -2
  1160. package/slider/style/sliderstyle.min.js +1 -1
  1161. package/speeddial/SpeedDial.vue +1 -1
  1162. package/speeddial/speeddial.cjs.js +1 -3
  1163. package/speeddial/speeddial.cjs.min.js +1 -1
  1164. package/speeddial/speeddial.esm.js +1 -3
  1165. package/speeddial/speeddial.esm.min.js +1 -1
  1166. package/speeddial/speeddial.js +1 -3
  1167. package/speeddial/speeddial.min.js +1 -1
  1168. package/speeddial/style/speeddialstyle.cjs.js +0 -2
  1169. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  1170. package/speeddial/style/speeddialstyle.esm.js +0 -2
  1171. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  1172. package/speeddial/style/speeddialstyle.js +0 -2
  1173. package/speeddial/style/speeddialstyle.min.js +1 -1
  1174. package/splitbutton/SplitButton.d.ts +1 -1
  1175. package/splitbutton/SplitButton.vue +35 -34
  1176. package/splitbutton/splitbutton.cjs.js +44 -42
  1177. package/splitbutton/splitbutton.cjs.min.js +1 -1
  1178. package/splitbutton/splitbutton.esm.js +45 -43
  1179. package/splitbutton/splitbutton.esm.min.js +1 -1
  1180. package/splitbutton/splitbutton.js +44 -42
  1181. package/splitbutton/splitbutton.min.js +1 -1
  1182. package/splitbutton/style/splitbuttonstyle.cjs.js +0 -2
  1183. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  1184. package/splitbutton/style/splitbuttonstyle.esm.js +0 -2
  1185. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  1186. package/splitbutton/style/splitbuttonstyle.js +0 -2
  1187. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  1188. package/splitter/Splitter.vue +1 -1
  1189. package/splitter/splitter.cjs.js +1 -3
  1190. package/splitter/splitter.cjs.min.js +1 -1
  1191. package/splitter/splitter.esm.js +1 -3
  1192. package/splitter/splitter.esm.min.js +1 -1
  1193. package/splitter/splitter.js +1 -3
  1194. package/splitter/splitter.min.js +1 -1
  1195. package/splitter/style/splitterstyle.cjs.js +0 -2
  1196. package/splitter/style/splitterstyle.cjs.min.js +1 -1
  1197. package/splitter/style/splitterstyle.esm.js +0 -2
  1198. package/splitter/style/splitterstyle.esm.min.js +1 -1
  1199. package/splitter/style/splitterstyle.js +0 -2
  1200. package/splitter/style/splitterstyle.min.js +1 -1
  1201. package/splitterpanel/SplitterPanel.vue +1 -1
  1202. package/splitterpanel/splitterpanel.cjs.js +1 -3
  1203. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  1204. package/splitterpanel/splitterpanel.esm.js +1 -3
  1205. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  1206. package/splitterpanel/splitterpanel.js +1 -3
  1207. package/splitterpanel/splitterpanel.min.js +1 -1
  1208. package/splitterpanel/style/splitterpanelstyle.cjs.js +0 -2
  1209. package/splitterpanel/style/splitterpanelstyle.cjs.min.js +1 -1
  1210. package/splitterpanel/style/splitterpanelstyle.esm.js +0 -2
  1211. package/splitterpanel/style/splitterpanelstyle.esm.min.js +1 -1
  1212. package/splitterpanel/style/splitterpanelstyle.js +0 -2
  1213. package/splitterpanel/style/splitterpanelstyle.min.js +1 -1
  1214. package/step/BaseStep.vue +18 -0
  1215. package/step/Step.vue +12 -0
  1216. package/step/step.cjs.js +37 -0
  1217. package/step/step.cjs.min.js +1 -0
  1218. package/step/step.esm.js +30 -0
  1219. package/step/step.esm.min.js +1 -0
  1220. package/step/step.js +37 -0
  1221. package/step/step.min.js +1 -0
  1222. package/step/style/stepstyle.cjs.js +5 -0
  1223. package/step/style/stepstyle.cjs.min.js +1 -0
  1224. package/step/style/stepstyle.esm.js +3 -0
  1225. package/step/style/stepstyle.esm.min.js +1 -0
  1226. package/step/style/stepstyle.js +10 -0
  1227. package/step/style/stepstyle.min.js +1 -0
  1228. package/stepper/BaseStepper.vue +25 -0
  1229. package/stepper/Stepper.vue +234 -0
  1230. package/stepper/stepper.cjs.js +271 -0
  1231. package/stepper/stepper.cjs.min.js +1 -0
  1232. package/stepper/stepper.esm.js +264 -0
  1233. package/stepper/stepper.esm.min.js +1 -0
  1234. package/stepper/stepper.js +270 -0
  1235. package/stepper/stepper.min.js +1 -0
  1236. package/stepper/style/stepperstyle.cjs.js +50 -0
  1237. package/stepper/style/stepperstyle.cjs.min.js +1 -0
  1238. package/stepper/style/stepperstyle.esm.js +44 -0
  1239. package/stepper/style/stepperstyle.esm.min.js +1 -0
  1240. package/stepper/style/stepperstyle.js +53 -0
  1241. package/stepper/style/stepperstyle.min.js +1 -0
  1242. package/steps/Steps.vue +1 -1
  1243. package/steps/steps.cjs.js +1 -3
  1244. package/steps/steps.cjs.min.js +1 -1
  1245. package/steps/steps.esm.js +1 -3
  1246. package/steps/steps.esm.min.js +1 -1
  1247. package/steps/steps.js +1 -3
  1248. package/steps/steps.min.js +1 -1
  1249. package/steps/style/stepsstyle.cjs.js +0 -2
  1250. package/steps/style/stepsstyle.cjs.min.js +1 -1
  1251. package/steps/style/stepsstyle.esm.js +0 -2
  1252. package/steps/style/stepsstyle.esm.min.js +1 -1
  1253. package/steps/style/stepsstyle.js +0 -2
  1254. package/steps/style/stepsstyle.min.js +1 -1
  1255. package/tabmenu/TabMenu.vue +1 -1
  1256. package/tabmenu/style/tabmenustyle.cjs.js +0 -2
  1257. package/tabmenu/style/tabmenustyle.cjs.min.js +1 -1
  1258. package/tabmenu/style/tabmenustyle.esm.js +0 -2
  1259. package/tabmenu/style/tabmenustyle.esm.min.js +1 -1
  1260. package/tabmenu/style/tabmenustyle.js +0 -2
  1261. package/tabmenu/style/tabmenustyle.min.js +1 -1
  1262. package/tabmenu/tabmenu.cjs.js +1 -3
  1263. package/tabmenu/tabmenu.cjs.min.js +1 -1
  1264. package/tabmenu/tabmenu.esm.js +1 -3
  1265. package/tabmenu/tabmenu.esm.min.js +1 -1
  1266. package/tabmenu/tabmenu.js +1 -3
  1267. package/tabmenu/tabmenu.min.js +1 -1
  1268. package/tabview/TabView.vue +2 -1
  1269. package/tabview/style/tabviewstyle.cjs.js +0 -2
  1270. package/tabview/style/tabviewstyle.cjs.min.js +1 -1
  1271. package/tabview/style/tabviewstyle.esm.js +0 -2
  1272. package/tabview/style/tabviewstyle.esm.min.js +1 -1
  1273. package/tabview/style/tabviewstyle.js +0 -2
  1274. package/tabview/style/tabviewstyle.min.js +1 -1
  1275. package/tabview/tabview.cjs.js +2 -3
  1276. package/tabview/tabview.cjs.min.js +1 -1
  1277. package/tabview/tabview.esm.js +2 -3
  1278. package/tabview/tabview.esm.min.js +1 -1
  1279. package/tabview/tabview.js +2 -3
  1280. package/tabview/tabview.min.js +1 -1
  1281. package/tag/Tag.d.ts +1 -1
  1282. package/tag/Tag.vue +1 -1
  1283. package/tag/style/tagstyle.cjs.js +2 -2
  1284. package/tag/style/tagstyle.cjs.min.js +1 -1
  1285. package/tag/style/tagstyle.esm.js +2 -2
  1286. package/tag/style/tagstyle.esm.min.js +1 -1
  1287. package/tag/style/tagstyle.js +2 -2
  1288. package/tag/style/tagstyle.min.js +1 -1
  1289. package/tag/tag.cjs.js +1 -3
  1290. package/tag/tag.cjs.min.js +1 -1
  1291. package/tag/tag.esm.js +1 -3
  1292. package/tag/tag.esm.min.js +1 -1
  1293. package/tag/tag.js +1 -3
  1294. package/tag/tag.min.js +1 -1
  1295. package/terminal/Terminal.vue +1 -1
  1296. package/terminal/style/terminalstyle.cjs.js +0 -2
  1297. package/terminal/style/terminalstyle.cjs.min.js +1 -1
  1298. package/terminal/style/terminalstyle.esm.js +0 -2
  1299. package/terminal/style/terminalstyle.esm.min.js +1 -1
  1300. package/terminal/style/terminalstyle.js +0 -2
  1301. package/terminal/style/terminalstyle.min.js +1 -1
  1302. package/terminal/terminal.cjs.js +1 -3
  1303. package/terminal/terminal.cjs.min.js +1 -1
  1304. package/terminal/terminal.esm.js +1 -3
  1305. package/terminal/terminal.esm.min.js +1 -1
  1306. package/terminal/terminal.js +1 -3
  1307. package/terminal/terminal.min.js +1 -1
  1308. package/textarea/BaseTextarea.vue +9 -1
  1309. package/textarea/Textarea.d.ts +10 -0
  1310. package/textarea/Textarea.vue +1 -1
  1311. package/textarea/style/textareastyle.cjs.js +3 -3
  1312. package/textarea/style/textareastyle.cjs.min.js +1 -1
  1313. package/textarea/style/textareastyle.esm.js +3 -3
  1314. package/textarea/style/textareastyle.esm.min.js +1 -1
  1315. package/textarea/style/textareastyle.js +3 -3
  1316. package/textarea/style/textareastyle.min.js +1 -1
  1317. package/textarea/textarea.cjs.js +10 -4
  1318. package/textarea/textarea.cjs.min.js +1 -1
  1319. package/textarea/textarea.esm.js +10 -4
  1320. package/textarea/textarea.esm.min.js +1 -1
  1321. package/textarea/textarea.js +10 -4
  1322. package/textarea/textarea.min.js +1 -1
  1323. package/tieredmenu/TieredMenu.vue +1 -1
  1324. package/tieredmenu/style/tieredmenustyle.cjs.js +0 -3
  1325. package/tieredmenu/style/tieredmenustyle.cjs.min.js +1 -1
  1326. package/tieredmenu/style/tieredmenustyle.esm.js +0 -3
  1327. package/tieredmenu/style/tieredmenustyle.esm.min.js +1 -1
  1328. package/tieredmenu/style/tieredmenustyle.js +0 -3
  1329. package/tieredmenu/style/tieredmenustyle.min.js +1 -1
  1330. package/tieredmenu/tieredmenu.cjs.js +1 -3
  1331. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  1332. package/tieredmenu/tieredmenu.esm.js +1 -3
  1333. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  1334. package/tieredmenu/tieredmenu.js +1 -3
  1335. package/tieredmenu/tieredmenu.min.js +1 -1
  1336. package/timeline/Timeline.vue +1 -1
  1337. package/timeline/style/timelinestyle.cjs.js +0 -2
  1338. package/timeline/style/timelinestyle.cjs.min.js +1 -1
  1339. package/timeline/style/timelinestyle.esm.js +0 -2
  1340. package/timeline/style/timelinestyle.esm.min.js +1 -1
  1341. package/timeline/style/timelinestyle.js +0 -2
  1342. package/timeline/style/timelinestyle.min.js +1 -1
  1343. package/timeline/timeline.cjs.js +1 -3
  1344. package/timeline/timeline.cjs.min.js +1 -1
  1345. package/timeline/timeline.esm.js +1 -3
  1346. package/timeline/timeline.esm.min.js +1 -1
  1347. package/timeline/timeline.js +1 -3
  1348. package/timeline/timeline.min.js +1 -1
  1349. package/toast/Toast.d.ts +1 -1
  1350. package/toast/style/toaststyle.cjs.js +3 -4
  1351. package/toast/style/toaststyle.cjs.min.js +1 -1
  1352. package/toast/style/toaststyle.esm.js +3 -4
  1353. package/toast/style/toaststyle.esm.min.js +1 -1
  1354. package/toast/style/toaststyle.js +3 -4
  1355. package/toast/style/toaststyle.min.js +1 -1
  1356. package/togglebutton/BaseToggleButton.vue +4 -0
  1357. package/togglebutton/ToggleButton.d.ts +5 -0
  1358. package/togglebutton/ToggleButton.vue +1 -1
  1359. package/togglebutton/style/togglebuttonstyle.cjs.js +2 -3
  1360. package/togglebutton/style/togglebuttonstyle.cjs.min.js +1 -1
  1361. package/togglebutton/style/togglebuttonstyle.esm.js +2 -3
  1362. package/togglebutton/style/togglebuttonstyle.esm.min.js +1 -1
  1363. package/togglebutton/style/togglebuttonstyle.js +2 -3
  1364. package/togglebutton/style/togglebuttonstyle.min.js +1 -1
  1365. package/togglebutton/togglebutton.cjs.js +4 -1
  1366. package/togglebutton/togglebutton.cjs.min.js +1 -1
  1367. package/togglebutton/togglebutton.esm.js +4 -1
  1368. package/togglebutton/togglebutton.esm.min.js +1 -1
  1369. package/togglebutton/togglebutton.js +4 -1
  1370. package/togglebutton/togglebutton.min.js +1 -1
  1371. package/toolbar/Toolbar.vue +1 -1
  1372. package/toolbar/style/toolbarstyle.cjs.js +0 -2
  1373. package/toolbar/style/toolbarstyle.cjs.min.js +1 -1
  1374. package/toolbar/style/toolbarstyle.esm.js +0 -2
  1375. package/toolbar/style/toolbarstyle.esm.min.js +1 -1
  1376. package/toolbar/style/toolbarstyle.js +0 -2
  1377. package/toolbar/style/toolbarstyle.min.js +1 -1
  1378. package/toolbar/toolbar.cjs.js +1 -3
  1379. package/toolbar/toolbar.cjs.min.js +1 -1
  1380. package/toolbar/toolbar.esm.js +1 -3
  1381. package/toolbar/toolbar.esm.min.js +1 -1
  1382. package/toolbar/toolbar.js +1 -3
  1383. package/toolbar/toolbar.min.js +1 -1
  1384. package/tooltip/style/tooltipstyle.cjs.js +0 -2
  1385. package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
  1386. package/tooltip/style/tooltipstyle.esm.js +0 -2
  1387. package/tooltip/style/tooltipstyle.esm.min.js +1 -1
  1388. package/tooltip/style/tooltipstyle.js +0 -2
  1389. package/tooltip/style/tooltipstyle.min.js +1 -1
  1390. package/tree/Tree.vue +1 -1
  1391. package/tree/style/treestyle.cjs.js +0 -2
  1392. package/tree/style/treestyle.cjs.min.js +1 -1
  1393. package/tree/style/treestyle.esm.js +0 -2
  1394. package/tree/style/treestyle.esm.min.js +1 -1
  1395. package/tree/style/treestyle.js +0 -2
  1396. package/tree/style/treestyle.min.js +1 -1
  1397. package/tree/tree.cjs.js +1 -3
  1398. package/tree/tree.cjs.min.js +1 -1
  1399. package/tree/tree.esm.js +1 -3
  1400. package/tree/tree.esm.min.js +1 -1
  1401. package/tree/tree.js +1 -3
  1402. package/tree/tree.min.js +1 -1
  1403. package/treeselect/BaseTreeSelect.vue +8 -0
  1404. package/treeselect/TreeSelect.d.ts +10 -0
  1405. package/treeselect/TreeSelect.vue +7 -3
  1406. package/treeselect/style/treeselectstyle.cjs.js +4 -4
  1407. package/treeselect/style/treeselectstyle.cjs.min.js +1 -1
  1408. package/treeselect/style/treeselectstyle.esm.js +4 -4
  1409. package/treeselect/style/treeselectstyle.esm.min.js +1 -1
  1410. package/treeselect/style/treeselectstyle.js +4 -4
  1411. package/treeselect/style/treeselectstyle.min.js +1 -1
  1412. package/treeselect/treeselect.cjs.js +16 -6
  1413. package/treeselect/treeselect.cjs.min.js +1 -1
  1414. package/treeselect/treeselect.esm.js +17 -7
  1415. package/treeselect/treeselect.esm.min.js +1 -1
  1416. package/treeselect/treeselect.js +16 -6
  1417. package/treeselect/treeselect.min.js +1 -1
  1418. package/treetable/HeaderCell.vue +1 -1
  1419. package/treetable/TreeTable.vue +2 -4
  1420. package/treetable/style/treetablestyle.cjs.js +0 -2
  1421. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  1422. package/treetable/style/treetablestyle.esm.js +0 -2
  1423. package/treetable/style/treetablestyle.esm.min.js +1 -1
  1424. package/treetable/style/treetablestyle.js +0 -2
  1425. package/treetable/style/treetablestyle.min.js +1 -1
  1426. package/treetable/treetable.cjs.js +4 -9
  1427. package/treetable/treetable.cjs.min.js +1 -1
  1428. package/treetable/treetable.esm.js +4 -9
  1429. package/treetable/treetable.esm.min.js +1 -1
  1430. package/treetable/treetable.js +4 -9
  1431. package/treetable/treetable.min.js +1 -1
  1432. package/tristatecheckbox/BaseTriStateCheckbox.vue +8 -0
  1433. package/tristatecheckbox/TriStateCheckbox.d.ts +10 -0
  1434. package/tristatecheckbox/TriStateCheckbox.vue +1 -1
  1435. package/tristatecheckbox/style/tristatecheckboxstyle.cjs.js +3 -3
  1436. package/tristatecheckbox/style/tristatecheckboxstyle.cjs.min.js +1 -1
  1437. package/tristatecheckbox/style/tristatecheckboxstyle.esm.js +3 -3
  1438. package/tristatecheckbox/style/tristatecheckboxstyle.esm.min.js +1 -1
  1439. package/tristatecheckbox/style/tristatecheckboxstyle.js +3 -3
  1440. package/tristatecheckbox/style/tristatecheckboxstyle.min.js +1 -1
  1441. package/tristatecheckbox/tristatecheckbox.cjs.js +8 -1
  1442. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  1443. package/tristatecheckbox/tristatecheckbox.esm.js +8 -1
  1444. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  1445. package/tristatecheckbox/tristatecheckbox.js +8 -1
  1446. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  1447. package/vetur-attributes.json +138 -6
  1448. package/vetur-tags.json +33 -0
  1449. package/virtualscroller/VirtualScroller.vue +8 -7
  1450. package/virtualscroller/virtualscroller.cjs.js +17 -15
  1451. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  1452. package/virtualscroller/virtualscroller.esm.js +17 -15
  1453. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  1454. package/virtualscroller/virtualscroller.js +17 -15
  1455. package/virtualscroller/virtualscroller.min.js +1 -1
  1456. package/web-types.json +337 -7
@@ -6,12 +6,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
8
8
 
9
- var css = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
10
9
  var classes = {
11
10
  root: function root(_ref) {
12
11
  var instance = _ref.instance;
13
12
  return ['p-confirm-popup p-component', {
14
- 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
15
13
  'p-ripple-disabled': instance.$primevue.config.ripple === false
16
14
  }];
17
15
  },
@@ -30,7 +28,6 @@ var classes = {
30
28
  };
31
29
  var ConfirmPopupStyle = BaseStyle__default["default"].extend({
32
30
  name: 'confirmpopup',
33
- css: css,
34
31
  classes: classes
35
32
  });
36
33
 
@@ -1 +1 @@
1
- "use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var p=n(require("primevue/base/style")).default.extend({name:"confirmpopup",css:"\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n",classes:{root:function(n){var p=n.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===p.$primevue.config.inputStyle,"p-ripple-disabled":!1===p.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:"p-confirm-popup-icon",message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var p=n.instance;return["p-confirm-popup-reject",p.confirmation&&!p.confirmation.rejectClass?"p-button-sm p-button-text":null]},acceptButton:function(n){var p=n.instance;return["p-confirm-popup-accept",p.confirmation&&!p.confirmation.acceptClass?"p-button-sm":null]}}});module.exports=p;
1
+ "use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var t=n(require("primevue/base/style")).default.extend({name:"confirmpopup",classes:{root:function(n){return["p-confirm-popup p-component",{"p-ripple-disabled":!1===n.instance.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:"p-confirm-popup-icon",message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var t=n.instance;return["p-confirm-popup-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-sm p-button-text":null]},acceptButton:function(n){var t=n.instance;return["p-confirm-popup-accept",t.confirmation&&!t.confirmation.acceptClass?"p-button-sm":null]}}});module.exports=t;
@@ -1,11 +1,9 @@
1
1
  import BaseStyle from 'primevue/base/style';
2
2
 
3
- var css = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
4
3
  var classes = {
5
4
  root: function root(_ref) {
6
5
  var instance = _ref.instance;
7
6
  return ['p-confirm-popup p-component', {
8
- 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
9
7
  'p-ripple-disabled': instance.$primevue.config.ripple === false
10
8
  }];
11
9
  },
@@ -24,7 +22,6 @@ var classes = {
24
22
  };
25
23
  var ConfirmPopupStyle = BaseStyle.extend({
26
24
  name: 'confirmpopup',
27
- css: css,
28
25
  classes: classes
29
26
  });
30
27
 
@@ -1 +1 @@
1
- import n from"primevue/base/style";var p=n.extend({name:"confirmpopup",css:"\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n",classes:{root:function(n){var p=n.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===p.$primevue.config.inputStyle,"p-ripple-disabled":!1===p.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:"p-confirm-popup-icon",message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var p=n.instance;return["p-confirm-popup-reject",p.confirmation&&!p.confirmation.rejectClass?"p-button-sm p-button-text":null]},acceptButton:function(n){var p=n.instance;return["p-confirm-popup-accept",p.confirmation&&!p.confirmation.acceptClass?"p-button-sm":null]}}});export{p as default};
1
+ import n from"primevue/base/style";var o=n.extend({name:"confirmpopup",classes:{root:function(n){return["p-confirm-popup p-component",{"p-ripple-disabled":!1===n.instance.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:"p-confirm-popup-icon",message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var o=n.instance;return["p-confirm-popup-reject",o.confirmation&&!o.confirmation.rejectClass?"p-button-sm p-button-text":null]},acceptButton:function(n){var o=n.instance;return["p-confirm-popup-accept",o.confirmation&&!o.confirmation.acceptClass?"p-button-sm":null]}}});export{o as default};
@@ -7,12 +7,10 @@ this.primevue.confirmpopup.style = (function (BaseStyle) {
7
7
 
8
8
  var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
9
9
 
10
- var css = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
11
10
  var classes = {
12
11
  root: function root(_ref) {
13
12
  var instance = _ref.instance;
14
13
  return ['p-confirm-popup p-component', {
15
- 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
16
14
  'p-ripple-disabled': instance.$primevue.config.ripple === false
17
15
  }];
18
16
  },
@@ -31,7 +29,6 @@ this.primevue.confirmpopup.style = (function (BaseStyle) {
31
29
  };
32
30
  var ConfirmPopupStyle = BaseStyle__default["default"].extend({
33
31
  name: 'confirmpopup',
34
- css: css,
35
32
  classes: classes
36
33
  });
37
34
 
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.confirmpopup=this.primevue.confirmpopup||{},this.primevue.confirmpopup.style=function(n){"use strict";function p(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}return p(primevue.base.style).default.extend({name:"confirmpopup",css:"\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n\n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n\n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n\n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n\n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n\n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n\n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n\n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n\n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n\n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n",classes:{root:function(n){var p=n.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===p.$primevue.config.inputStyle,"p-ripple-disabled":!1===p.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:"p-confirm-popup-icon",message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var p=n.instance;return["p-confirm-popup-reject",p.confirmation&&!p.confirmation.rejectClass?"p-button-sm p-button-text":null]},acceptButton:function(n){var p=n.instance;return["p-confirm-popup-accept",p.confirmation&&!p.confirmation.acceptClass?"p-button-sm":null]}}})}();
1
+ this.primevue=this.primevue||{},this.primevue.confirmpopup=this.primevue.confirmpopup||{},this.primevue.confirmpopup.style=function(p){"use strict";function n(p){return p&&"object"==typeof p&&"default"in p?p:{default:p}}return n(primevue.base.style).default.extend({name:"confirmpopup",classes:{root:function(p){return["p-confirm-popup p-component",{"p-ripple-disabled":!1===p.instance.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:"p-confirm-popup-icon",message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(p){var n=p.instance;return["p-confirm-popup-reject",n.confirmation&&!n.confirmation.rejectClass?"p-button-sm p-button-text":null]},acceptButton:function(p){var n=p.instance;return["p-confirm-popup-accept",n.confirmation&&!n.confirmation.acceptClass?"p-button-sm":null]}}})}();
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <Portal :appendTo="appendTo">
3
3
  <transition name="p-contextmenu" @enter="onEnter" @after-enter="onAfterEnter" @leave="onLeave" @after-leave="onAfterLeave" v-bind="ptm('transition')">
4
- <div v-if="visible" :ref="containerRef" :class="cx('root')" v-bind="{ ...$attrs, ...ptm('root') }" data-pc-name="contextmenu">
4
+ <div v-if="visible" :ref="containerRef" :class="cx('root')" v-bind="{ ...$attrs, ...ptm('root') }">
5
5
  <ContextMenuSub
6
6
  :ref="listRef"
7
7
  :id="id + '_list'"
@@ -931,9 +931,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
931
931
  key: 0,
932
932
  ref: $options.containerRef,
933
933
  "class": _ctx.cx('root')
934
- }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root')), {
935
- "data-pc-name": "contextmenu"
936
- }), [vue.createVNode(_component_ContextMenuSub, {
934
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [vue.createVNode(_component_ContextMenuSub, {
937
935
  ref: $options.listRef,
938
936
  id: $data.id + '_list',
939
937
  "class": vue.normalizeClass(_ctx.cx('menu')),
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/portal"),t=require("primevue/utils"),i=require("primevue/basecomponent"),n=require("primevue/contextmenu/style"),s=require("primevue/icons/angleright"),o=require("primevue/ripple"),r=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),u=a(i),l={name:"BaseContextMenu",extends:u.default,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(n).default,provide:function(){return{$parentInstance:this}}},d={name:"ContextMenuSub",hostName:"ContextMenu",extends:u.default,emits:["item-click","item-mouseenter"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,n){return e&&e.item?t.ObjectUtils.getItemValue(e.item[i],n):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,active:this.isItemActive(t),focused:this.isItemFocused(t),disabled:this.isItemDisabled(t),index:i}})},isItemActive:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},isItemVisible:function(e){return!1!==this.getItemProp(e,"visible")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},getAriaSetSize:function(){var e=this;return this.items.filter((function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")})).length},getAriaPosInset:function(e){var t=this;return e-this.items.slice(0,e).filter((function(e){return t.isItemVisible(e)&&t.getItemProp(e,"separator")})).length+1},onEnter:function(){t.DomHandler.nestedPosition(this.$refs.container,this.level)},getMenuItemProps:function(e,t){return{action:r.mergeProps({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,t)),icon:r.mergeProps({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,t)),label:r.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,t))}}},components:{AngleRightIcon:a(s).default},directives:{ripple:a(o).default}},m=["tabindex"],h=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-highlight","data-p-focused","data-p-disabled"],I=["onClick","onMouseenter"],f=["href","target"],p=["id"],b=["id"];d.render=function(e,t,i,n,s,o){var a=r.resolveComponent("AngleRightIcon"),c=r.resolveComponent("ContextMenuSub",!0),u=r.resolveDirective("ripple");return r.openBlock(),r.createBlock(r.Transition,r.mergeProps({name:"p-contextmenusub",onEnter:o.onEnter},e.ptm("menu.transition")),{default:r.withCtx((function(){return[i.root||i.visible?(r.openBlock(),r.createElementBlock("ul",r.mergeProps({key:0,ref:"container",tabindex:i.tabindex},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,(function(n,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:o.getItemKey(n)},[o.isItemVisible(n)&&!o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("menuitem",{processedItem:n}),o.getItemProp(n,"class")],role:"menuitem","aria-label":o.getItemLabel(n),"aria-disabled":o.isItemDisabled(n)||void 0,"aria-expanded":o.isItemGroup(n)?o.isItemActive(n):void 0,"aria-haspopup":o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0,"aria-level":i.level+1,"aria-setsize":o.getAriaSetSize(),"aria-posinset":o.getAriaPosInset(s)},o.getPTOptions("menuitem",n,s),{"data-p-highlight":o.isItemActive(n),"data-p-focused":o.isItemFocused(n),"data-p-disabled":o.isItemDisabled(n)}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content"),onClick:function(e){return o.onItemClick(e,n)},onMouseenter:function(e){return o.onItemMouseEnter(e,n)}},o.getPTOptions("content",n,s)),[i.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.item),{key:1,item:n.item,hasSubmenu:o.getItemProp(n,"items"),label:o.getItemLabel(n),props:o.getMenuItemProps(n,s)},null,8,["item","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:o.getItemProp(n,"url"),class:e.cx("action"),target:o.getItemProp(n,"target"),tabindex:"-1","aria-hidden":"true"},o.getPTOptions("action",n,s)),[i.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.itemicon),{key:0,item:n.item,class:r.normalizeClass([e.cx("icon"),o.getItemProp(n,"icon")])},null,8,["item","class"])):o.getItemProp(n,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:1,class:[e.cx("icon"),o.getItemProp(n,"icon")]},o.getPTOptions("icon",n,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({id:o.getItemLabelId(n),class:e.cx("label")},o.getPTOptions("label",n,s)),r.toDisplayString(o.getItemLabel(n)),17,p),o.getItemProp(n,"items")?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[i.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.submenuicon),{key:0,active:o.isItemActive(n),class:r.normalizeClass(e.cx("submenuIcon"))},null,8,["active","class"])):(r.openBlock(),r.createBlock(a,r.mergeProps({key:1,class:e.cx("submenuIcon")},o.getPTOptions("submenuicon",n,s)),null,16,["class"]))],64)):r.createCommentVNode("",!0)],16,f)),[[u]])],16,I),o.isItemVisible(n)&&o.isItemGroup(n)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:o.getItemId(n)+"_list",role:"menu",class:e.cx("submenu"),menuId:i.menuId,focusedItemId:i.focusedItemId,items:n.items,templates:i.templates,activeItemPath:i.activeItemPath,level:i.level+1,visible:o.isItemActive(n)&&o.isItemGroup(n),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(t){return e.$emit("item-click",t)}),onItemMouseenter:t[1]||(t[1]=function(t){return e.$emit("item-mouseenter",t)}),"aria-labelledby":o.getItemLabelId(n)},e.ptm("submenu")),null,16,["id","class","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled","aria-labelledby"])):r.createCommentVNode("",!0)],16,h)):r.createCommentVNode("",!0),o.isItemVisible(n)&&o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("separator"),o.getItemProp(n,"class")],role:"separator"},e.ptm("separator")),null,16,b)):r.createCommentVNode("",!0)],64)})),128))],16,m)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter"])};var v={name:"ContextMenu",extends:l,inheritAttrs:!1,emits:["focus","blur","show","hide"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!1,submenuVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||t.UniqueComponentId()},activeItemPath:function(e){t.ObjectUtils.isNotEmpty(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||t.UniqueComponentId(),this.global&&this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.container&&this.autoZIndex&&t.ZIndexUtils.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,i){return e?t.ObjectUtils.getItemValue(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&t.ObjectUtils.isNotEmpty(e.items)},toggle:function(e){this.visible?this.hide():this.show(e)},show:function(e){this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},t.DomHandler.focus(this.list),this.pageX=e.pageX,this.pageY=e.pageY,this.visible?this.position():this.visible=!0,e.stopPropagation(),e.preventDefault()},hide:function(){this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""}},onFocus:function(e){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&t.ObjectUtils.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}},onItemChange:function(e){var i=e.processedItem,n=e.isFocus;if(!t.ObjectUtils.isEmpty(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey,c=t.ObjectUtils.isNotEmpty(i.items),u=this.activeItemPath.filter((function(e){return e.parentKey!==a&&e.parentKey!==o}));c&&(u.push(i),this.submenuVisible=!0),this.focusedItemInfo={index:s,level:r,parentKey:a},this.activeItemPath=u,n&&t.DomHandler.focus(this.list)}},onItemClick:function(e){var i=e.processedItem,n=this.isProccessedItemGroup(i);if(this.isSelected(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey;this.activeItemPath=this.activeItemPath.filter((function(e){return o!==e.key&&o.startsWith(e.key)})),this.focusedItemInfo={index:s,level:r,parentKey:a},t.DomHandler.focus(this.list)}else n?this.onItemChange(e):this.hide()},onItemMouseEnter:function(e){this.onItemChange(e)},onArrowDownKey:function(e){var t=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.popup&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowLeftKey:function(e){var i=this,n=this.visibleItems[this.focusedItemInfo.index],s=this.activeItemPath.find((function(e){return e.key===n.parentKey}));t.ObjectUtils.isEmpty(n.parent)||(this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter((function(e){return e.parentKey!==i.focusedItemInfo.parentKey})),e.preventDefault()},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(-1!==this.focusedItemInfo.index){var i=t.DomHandler.findSingle(this.list,'li[id="'.concat("".concat(this.focusedItemIdx),'"]')),n=i&&t.DomHandler.findSingle(i,'a[data-pc-section="action"]');n?n.click():i&&i.click(),!this.isProccessedItemGroup(this.visibleItems[this.focusedItemInfo.index])&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.hide(),!this.popup&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},onEnter:function(e){t.DomHandler.addStyles(e,{position:"absolute"}),this.position(),this.autoZIndex&&t.ZIndexUtils.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit("show"),t.DomHandler.focus(this.list)},onLeave:function(){this.$emit("hide"),this.container=null},onAfterLeave:function(e){this.autoZIndex&&t.ZIndexUtils.clear(e),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var e=this.pageX+1,i=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:t.DomHandler.getHiddenElementOuterWidth(this.container),s=this.container.offsetParent?this.container.offsetHeight:t.DomHandler.getHiddenElementOuterHeight(this.container),o=t.DomHandler.getViewport();e+n-document.body.scrollLeft>o.width&&(e-=n),i+s-document.body.scrollTop>o.height&&(i-=s),e<document.body.scrollLeft&&(e=document.body.scrollLeft),i<document.body.scrollTop&&(i=document.body.scrollTop),this.container.style.left=e+"px",this.container.style.top=i+"px"},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var i=e.container&&!e.container.contains(t.target),n=!e.visible||!(e.target&&(e.target===t.target||e.target.contains(t.target)));i&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!t.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var e=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(t){2===t.button&&e.show(t)},document.addEventListener("contextmenu",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener&&(document.removeEventListener("contextmenu",this.documentContextMenuListener),this.documentContextMenuListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&(null===(t=this.getProccessedItemLabel(e))||void 0===t?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidItem(t)}))},findLastItemIndex:function(){var e=this;return t.ObjectUtils.findLastIndex(this.visibleItems,(function(t){return e.isValidItem(t)}))},findNextItemIndex:function(e){var t=this,i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex((function(e){return t.isValidItem(e)})):-1;return i>-1?i+e+1:e},findPrevItemIndex:function(e){var i=this,n=e>0?t.ObjectUtils.findLastIndex(this.visibleItems.slice(0,e),(function(e){return i.isValidItem(e)})):-1;return n>-1?n:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidSelectedItem(t)}))},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,s=!1;return-1!==(n=-1!==this.focusedItemInfo.index?-1===(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})):n+this.focusedItemInfo.index:this.visibleItems.findIndex((function(e){return i.isItemMatched(e)})))&&(s=!0),-1===n&&-1===this.focusedItemInfo.index&&(n=this.findFirstFocusedItemIndex()),-1!==n&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),s},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==e?"".concat(this.id,"_").concat(e):this.focusedItemIdx,n=t.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=[];return e&&e.forEach((function(e,r){var a=(""!==s?s+"_":"")+r,c={item:e,index:r,level:i,key:a,parent:n,parentKey:s};c.items=t.createProcessedItems(e.items,i+1,c,a),o.push(c)})),o},containerRef:function(e){this.container=e},listRef:function(e){this.list=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find((function(t){return t.key===e.focusedItemInfo.parentKey}));return t?t.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?"".concat(this.id).concat(t.ObjectUtils.isNotEmpty(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:d,Portal:c.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){P(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function P(e,t,i){var n;return(t="symbol"==g(n=k(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function k(e,t){if("object"!=g(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}v.render=function(e,t,i,n,s,o){var a=r.resolveComponent("ContextMenuSub"),c=r.resolveComponent("Portal");return r.openBlock(),r.createBlock(c,{appendTo:e.appendTo},{default:r.withCtx((function(){return[r.createVNode(r.Transition,r.mergeProps({name:"p-contextmenu",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},e.ptm("transition")),{default:r.withCtx((function(){return[s.visible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:o.containerRef,class:e.cx("root")},x(x({},e.$attrs),e.ptm("root")),{"data-pc-name":"contextmenu"}),[r.createVNode(a,{ref:o.listRef,id:s.id+"_list",class:r.normalizeClass(e.cx("menu")),role:"menubar",root:!0,tabindex:e.tabindex,"aria-orientation":"vertical","aria-activedescendant":s.focused?o.focusedItemIdx:void 0,menuId:s.id,focusedItemId:s.focused?o.focusedItemIdx:void 0,items:o.processedItems,templates:e.$slots,activeItemPath:s.activeItemPath,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,level:0,visible:s.submenuVisible,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter},null,8,["id","class","tabindex","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","aria-labelledby","aria-label","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter"])],16)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])},module.exports=v;
1
+ "use strict";var e=require("primevue/portal"),t=require("primevue/utils"),i=require("primevue/basecomponent"),n=require("primevue/contextmenu/style"),s=require("primevue/icons/angleright"),o=require("primevue/ripple"),r=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),u=a(i),l={name:"BaseContextMenu",extends:u.default,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(n).default,provide:function(){return{$parentInstance:this}}},d={name:"ContextMenuSub",hostName:"ContextMenu",extends:u.default,emits:["item-click","item-mouseenter"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,n){return e&&e.item?t.ObjectUtils.getItemValue(e.item[i],n):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,active:this.isItemActive(t),focused:this.isItemFocused(t),disabled:this.isItemDisabled(t),index:i}})},isItemActive:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},isItemVisible:function(e){return!1!==this.getItemProp(e,"visible")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},getAriaSetSize:function(){var e=this;return this.items.filter((function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")})).length},getAriaPosInset:function(e){var t=this;return e-this.items.slice(0,e).filter((function(e){return t.isItemVisible(e)&&t.getItemProp(e,"separator")})).length+1},onEnter:function(){t.DomHandler.nestedPosition(this.$refs.container,this.level)},getMenuItemProps:function(e,t){return{action:r.mergeProps({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,t)),icon:r.mergeProps({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,t)),label:r.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,t))}}},components:{AngleRightIcon:a(s).default},directives:{ripple:a(o).default}},m=["tabindex"],h=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-highlight","data-p-focused","data-p-disabled"],I=["onClick","onMouseenter"],f=["href","target"],p=["id"],b=["id"];d.render=function(e,t,i,n,s,o){var a=r.resolveComponent("AngleRightIcon"),c=r.resolveComponent("ContextMenuSub",!0),u=r.resolveDirective("ripple");return r.openBlock(),r.createBlock(r.Transition,r.mergeProps({name:"p-contextmenusub",onEnter:o.onEnter},e.ptm("menu.transition")),{default:r.withCtx((function(){return[i.root||i.visible?(r.openBlock(),r.createElementBlock("ul",r.mergeProps({key:0,ref:"container",tabindex:i.tabindex},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,(function(n,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:o.getItemKey(n)},[o.isItemVisible(n)&&!o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("menuitem",{processedItem:n}),o.getItemProp(n,"class")],role:"menuitem","aria-label":o.getItemLabel(n),"aria-disabled":o.isItemDisabled(n)||void 0,"aria-expanded":o.isItemGroup(n)?o.isItemActive(n):void 0,"aria-haspopup":o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0,"aria-level":i.level+1,"aria-setsize":o.getAriaSetSize(),"aria-posinset":o.getAriaPosInset(s)},o.getPTOptions("menuitem",n,s),{"data-p-highlight":o.isItemActive(n),"data-p-focused":o.isItemFocused(n),"data-p-disabled":o.isItemDisabled(n)}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content"),onClick:function(e){return o.onItemClick(e,n)},onMouseenter:function(e){return o.onItemMouseEnter(e,n)}},o.getPTOptions("content",n,s)),[i.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.item),{key:1,item:n.item,hasSubmenu:o.getItemProp(n,"items"),label:o.getItemLabel(n),props:o.getMenuItemProps(n,s)},null,8,["item","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:o.getItemProp(n,"url"),class:e.cx("action"),target:o.getItemProp(n,"target"),tabindex:"-1","aria-hidden":"true"},o.getPTOptions("action",n,s)),[i.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.itemicon),{key:0,item:n.item,class:r.normalizeClass([e.cx("icon"),o.getItemProp(n,"icon")])},null,8,["item","class"])):o.getItemProp(n,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:1,class:[e.cx("icon"),o.getItemProp(n,"icon")]},o.getPTOptions("icon",n,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({id:o.getItemLabelId(n),class:e.cx("label")},o.getPTOptions("label",n,s)),r.toDisplayString(o.getItemLabel(n)),17,p),o.getItemProp(n,"items")?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[i.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.submenuicon),{key:0,active:o.isItemActive(n),class:r.normalizeClass(e.cx("submenuIcon"))},null,8,["active","class"])):(r.openBlock(),r.createBlock(a,r.mergeProps({key:1,class:e.cx("submenuIcon")},o.getPTOptions("submenuicon",n,s)),null,16,["class"]))],64)):r.createCommentVNode("",!0)],16,f)),[[u]])],16,I),o.isItemVisible(n)&&o.isItemGroup(n)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:o.getItemId(n)+"_list",role:"menu",class:e.cx("submenu"),menuId:i.menuId,focusedItemId:i.focusedItemId,items:n.items,templates:i.templates,activeItemPath:i.activeItemPath,level:i.level+1,visible:o.isItemActive(n)&&o.isItemGroup(n),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(t){return e.$emit("item-click",t)}),onItemMouseenter:t[1]||(t[1]=function(t){return e.$emit("item-mouseenter",t)}),"aria-labelledby":o.getItemLabelId(n)},e.ptm("submenu")),null,16,["id","class","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled","aria-labelledby"])):r.createCommentVNode("",!0)],16,h)):r.createCommentVNode("",!0),o.isItemVisible(n)&&o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("separator"),o.getItemProp(n,"class")],role:"separator"},e.ptm("separator")),null,16,b)):r.createCommentVNode("",!0)],64)})),128))],16,m)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter"])};var v={name:"ContextMenu",extends:l,inheritAttrs:!1,emits:["focus","blur","show","hide"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!1,submenuVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||t.UniqueComponentId()},activeItemPath:function(e){t.ObjectUtils.isNotEmpty(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||t.UniqueComponentId(),this.global&&this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.container&&this.autoZIndex&&t.ZIndexUtils.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,i){return e?t.ObjectUtils.getItemValue(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&t.ObjectUtils.isNotEmpty(e.items)},toggle:function(e){this.visible?this.hide():this.show(e)},show:function(e){this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},t.DomHandler.focus(this.list),this.pageX=e.pageX,this.pageY=e.pageY,this.visible?this.position():this.visible=!0,e.stopPropagation(),e.preventDefault()},hide:function(){this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""}},onFocus:function(e){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&t.ObjectUtils.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}},onItemChange:function(e){var i=e.processedItem,n=e.isFocus;if(!t.ObjectUtils.isEmpty(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey,c=t.ObjectUtils.isNotEmpty(i.items),u=this.activeItemPath.filter((function(e){return e.parentKey!==a&&e.parentKey!==o}));c&&(u.push(i),this.submenuVisible=!0),this.focusedItemInfo={index:s,level:r,parentKey:a},this.activeItemPath=u,n&&t.DomHandler.focus(this.list)}},onItemClick:function(e){var i=e.processedItem,n=this.isProccessedItemGroup(i);if(this.isSelected(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey;this.activeItemPath=this.activeItemPath.filter((function(e){return o!==e.key&&o.startsWith(e.key)})),this.focusedItemInfo={index:s,level:r,parentKey:a},t.DomHandler.focus(this.list)}else n?this.onItemChange(e):this.hide()},onItemMouseEnter:function(e){this.onItemChange(e)},onArrowDownKey:function(e){var t=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.popup&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowLeftKey:function(e){var i=this,n=this.visibleItems[this.focusedItemInfo.index],s=this.activeItemPath.find((function(e){return e.key===n.parentKey}));t.ObjectUtils.isEmpty(n.parent)||(this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter((function(e){return e.parentKey!==i.focusedItemInfo.parentKey})),e.preventDefault()},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(-1!==this.focusedItemInfo.index){var i=t.DomHandler.findSingle(this.list,'li[id="'.concat("".concat(this.focusedItemIdx),'"]')),n=i&&t.DomHandler.findSingle(i,'a[data-pc-section="action"]');n?n.click():i&&i.click(),!this.isProccessedItemGroup(this.visibleItems[this.focusedItemInfo.index])&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.hide(),!this.popup&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},onEnter:function(e){t.DomHandler.addStyles(e,{position:"absolute"}),this.position(),this.autoZIndex&&t.ZIndexUtils.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit("show"),t.DomHandler.focus(this.list)},onLeave:function(){this.$emit("hide"),this.container=null},onAfterLeave:function(e){this.autoZIndex&&t.ZIndexUtils.clear(e),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var e=this.pageX+1,i=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:t.DomHandler.getHiddenElementOuterWidth(this.container),s=this.container.offsetParent?this.container.offsetHeight:t.DomHandler.getHiddenElementOuterHeight(this.container),o=t.DomHandler.getViewport();e+n-document.body.scrollLeft>o.width&&(e-=n),i+s-document.body.scrollTop>o.height&&(i-=s),e<document.body.scrollLeft&&(e=document.body.scrollLeft),i<document.body.scrollTop&&(i=document.body.scrollTop),this.container.style.left=e+"px",this.container.style.top=i+"px"},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var i=e.container&&!e.container.contains(t.target),n=!e.visible||!(e.target&&(e.target===t.target||e.target.contains(t.target)));i&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!t.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var e=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(t){2===t.button&&e.show(t)},document.addEventListener("contextmenu",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener&&(document.removeEventListener("contextmenu",this.documentContextMenuListener),this.documentContextMenuListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&(null===(t=this.getProccessedItemLabel(e))||void 0===t?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidItem(t)}))},findLastItemIndex:function(){var e=this;return t.ObjectUtils.findLastIndex(this.visibleItems,(function(t){return e.isValidItem(t)}))},findNextItemIndex:function(e){var t=this,i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex((function(e){return t.isValidItem(e)})):-1;return i>-1?i+e+1:e},findPrevItemIndex:function(e){var i=this,n=e>0?t.ObjectUtils.findLastIndex(this.visibleItems.slice(0,e),(function(e){return i.isValidItem(e)})):-1;return n>-1?n:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidSelectedItem(t)}))},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,s=!1;return-1!==(n=-1!==this.focusedItemInfo.index?-1===(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})):n+this.focusedItemInfo.index:this.visibleItems.findIndex((function(e){return i.isItemMatched(e)})))&&(s=!0),-1===n&&-1===this.focusedItemInfo.index&&(n=this.findFirstFocusedItemIndex()),-1!==n&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),s},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==e?"".concat(this.id,"_").concat(e):this.focusedItemIdx,n=t.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=[];return e&&e.forEach((function(e,r){var a=(""!==s?s+"_":"")+r,c={item:e,index:r,level:i,key:a,parent:n,parentKey:s};c.items=t.createProcessedItems(e.items,i+1,c,a),o.push(c)})),o},containerRef:function(e){this.container=e},listRef:function(e){this.list=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find((function(t){return t.key===e.focusedItemInfo.parentKey}));return t?t.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?"".concat(this.id).concat(t.ObjectUtils.isNotEmpty(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:d,Portal:c.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){P(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function P(e,t,i){var n;return(t="symbol"==g(n=k(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function k(e,t){if("object"!=g(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}v.render=function(e,t,i,n,s,o){var a=r.resolveComponent("ContextMenuSub"),c=r.resolveComponent("Portal");return r.openBlock(),r.createBlock(c,{appendTo:e.appendTo},{default:r.withCtx((function(){return[r.createVNode(r.Transition,r.mergeProps({name:"p-contextmenu",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},e.ptm("transition")),{default:r.withCtx((function(){return[s.visible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:o.containerRef,class:e.cx("root")},x(x({},e.$attrs),e.ptm("root"))),[r.createVNode(a,{ref:o.listRef,id:s.id+"_list",class:r.normalizeClass(e.cx("menu")),role:"menubar",root:!0,tabindex:e.tabindex,"aria-orientation":"vertical","aria-activedescendant":s.focused?o.focusedItemIdx:void 0,menuId:s.id,focusedItemId:s.focused?o.focusedItemIdx:void 0,items:o.processedItems,templates:e.$slots,activeItemPath:s.activeItemPath,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,level:0,visible:s.submenuVisible,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter},null,8,["id","class","tabindex","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","aria-labelledby","aria-label","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter"])],16)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])},module.exports=v;
@@ -921,9 +921,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
921
921
  key: 0,
922
922
  ref: $options.containerRef,
923
923
  "class": _ctx.cx('root')
924
- }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root')), {
925
- "data-pc-name": "contextmenu"
926
- }), [createVNode(_component_ContextMenuSub, {
924
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [createVNode(_component_ContextMenuSub, {
927
925
  ref: $options.listRef,
928
926
  id: $data.id + '_list',
929
927
  "class": normalizeClass(_ctx.cx('menu')),
@@ -1 +1 @@
1
- import e from"primevue/portal";import{ObjectUtils as t,DomHandler as i,UniqueComponentId as n,ZIndexUtils as s}from"primevue/utils";import o from"primevue/basecomponent";import r from"primevue/contextmenu/style";import a from"primevue/icons/angleright";import c from"primevue/ripple";import{mergeProps as u,resolveComponent as d,resolveDirective as l,openBlock as m,createBlock as h,Transition as f,withCtx as I,createElementBlock as p,Fragment as b,renderList as v,createElementVNode as y,withDirectives as g,resolveDynamicComponent as x,normalizeClass as P,createCommentVNode as L,toDisplayString as k,createVNode as E}from"vue";var K={name:"BaseContextMenu",extends:o,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r,provide:function(){return{$parentInstance:this}}},w={name:"ContextMenuSub",hostName:"ContextMenu",extends:o,emits:["item-click","item-mouseenter"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,n){return e&&e.item?t.getItemValue(e.item[i],n):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,active:this.isItemActive(t),focused:this.isItemFocused(t),disabled:this.isItemDisabled(t),index:i}})},isItemActive:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},isItemVisible:function(e){return!1!==this.getItemProp(e,"visible")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return t.isNotEmpty(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},getAriaSetSize:function(){var e=this;return this.items.filter((function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")})).length},getAriaPosInset:function(e){var t=this;return e-this.items.slice(0,e).filter((function(e){return t.isItemVisible(e)&&t.getItemProp(e,"separator")})).length+1},onEnter:function(){i.nestedPosition(this.$refs.container,this.level)},getMenuItemProps:function(e,t){return{action:u({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,t)),icon:u({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,t)),label:u({class:this.cx("label")},this.getPTOptions("label",e,t)),submenuicon:u({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,t))}}},components:{AngleRightIcon:a},directives:{ripple:c}},C=["tabindex"],S=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-highlight","data-p-focused","data-p-disabled"],O=["onClick","onMouseenter"],A=["href","target"],D=["id"],M=["id"];w.render=function(e,t,i,n,s,o){var r=d("AngleRightIcon"),a=d("ContextMenuSub",!0),c=l("ripple");return m(),h(f,u({name:"p-contextmenusub",onEnter:o.onEnter},e.ptm("menu.transition")),{default:I((function(){return[i.root||i.visible?(m(),p("ul",u({key:0,ref:"container",tabindex:i.tabindex},e.ptm("menu")),[(m(!0),p(b,null,v(i.items,(function(n,s){return m(),p(b,{key:o.getItemKey(n)},[o.isItemVisible(n)&&!o.getItemProp(n,"separator")?(m(),p("li",u({key:0,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("menuitem",{processedItem:n}),o.getItemProp(n,"class")],role:"menuitem","aria-label":o.getItemLabel(n),"aria-disabled":o.isItemDisabled(n)||void 0,"aria-expanded":o.isItemGroup(n)?o.isItemActive(n):void 0,"aria-haspopup":o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0,"aria-level":i.level+1,"aria-setsize":o.getAriaSetSize(),"aria-posinset":o.getAriaPosInset(s)},o.getPTOptions("menuitem",n,s),{"data-p-highlight":o.isItemActive(n),"data-p-focused":o.isItemFocused(n),"data-p-disabled":o.isItemDisabled(n)}),[y("div",u({class:e.cx("content"),onClick:function(e){return o.onItemClick(e,n)},onMouseenter:function(e){return o.onItemMouseEnter(e,n)}},o.getPTOptions("content",n,s)),[i.templates.item?(m(),h(x(i.templates.item),{key:1,item:n.item,hasSubmenu:o.getItemProp(n,"items"),label:o.getItemLabel(n),props:o.getMenuItemProps(n,s)},null,8,["item","hasSubmenu","label","props"])):g((m(),p("a",u({key:0,href:o.getItemProp(n,"url"),class:e.cx("action"),target:o.getItemProp(n,"target"),tabindex:"-1","aria-hidden":"true"},o.getPTOptions("action",n,s)),[i.templates.itemicon?(m(),h(x(i.templates.itemicon),{key:0,item:n.item,class:P([e.cx("icon"),o.getItemProp(n,"icon")])},null,8,["item","class"])):o.getItemProp(n,"icon")?(m(),p("span",u({key:1,class:[e.cx("icon"),o.getItemProp(n,"icon")]},o.getPTOptions("icon",n,s)),null,16)):L("",!0),y("span",u({id:o.getItemLabelId(n),class:e.cx("label")},o.getPTOptions("label",n,s)),k(o.getItemLabel(n)),17,D),o.getItemProp(n,"items")?(m(),p(b,{key:2},[i.templates.submenuicon?(m(),h(x(i.templates.submenuicon),{key:0,active:o.isItemActive(n),class:P(e.cx("submenuIcon"))},null,8,["active","class"])):(m(),h(r,u({key:1,class:e.cx("submenuIcon")},o.getPTOptions("submenuicon",n,s)),null,16,["class"]))],64)):L("",!0)],16,A)),[[c]])],16,O),o.isItemVisible(n)&&o.isItemGroup(n)?(m(),h(a,u({key:0,id:o.getItemId(n)+"_list",role:"menu",class:e.cx("submenu"),menuId:i.menuId,focusedItemId:i.focusedItemId,items:n.items,templates:i.templates,activeItemPath:i.activeItemPath,level:i.level+1,visible:o.isItemActive(n)&&o.isItemGroup(n),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(t){return e.$emit("item-click",t)}),onItemMouseenter:t[1]||(t[1]=function(t){return e.$emit("item-mouseenter",t)}),"aria-labelledby":o.getItemLabelId(n)},e.ptm("submenu")),null,16,["id","class","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled","aria-labelledby"])):L("",!0)],16,S)):L("",!0),o.isItemVisible(n)&&o.getItemProp(n,"separator")?(m(),p("li",u({key:1,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("separator"),o.getItemProp(n,"class")],role:"separator"},e.ptm("separator")),null,16,M)):L("",!0)],64)})),128))],16,C)):L("",!0)]})),_:1},16,["onEnter"])};var V={name:"ContextMenu",extends:K,inheritAttrs:!1,emits:["focus","blur","show","hide"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!1,submenuVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||n()},activeItemPath:function(e){t.isNotEmpty(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||n(),this.global&&this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.container&&this.autoZIndex&&s.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,i){return e?t.getItemValue(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemGroup:function(e){return t.isNotEmpty(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&t.isNotEmpty(e.items)},toggle:function(e){this.visible?this.hide():this.show(e)},show:function(e){this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},i.focus(this.list),this.pageX=e.pageX,this.pageY=e.pageY,this.visible?this.position():this.visible=!0,e.stopPropagation(),e.preventDefault()},hide:function(){this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""}},onFocus:function(e){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&t.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}},onItemChange:function(e){var n=e.processedItem,s=e.isFocus;if(!t.isEmpty(n)){var o=n.index,r=n.key,a=n.level,c=n.parentKey,u=t.isNotEmpty(n.items),d=this.activeItemPath.filter((function(e){return e.parentKey!==c&&e.parentKey!==r}));u&&(d.push(n),this.submenuVisible=!0),this.focusedItemInfo={index:o,level:a,parentKey:c},this.activeItemPath=d,s&&i.focus(this.list)}},onItemClick:function(e){var t=e.processedItem,n=this.isProccessedItemGroup(t);if(this.isSelected(t)){var s=t.index,o=t.key,r=t.level,a=t.parentKey;this.activeItemPath=this.activeItemPath.filter((function(e){return o!==e.key&&o.startsWith(e.key)})),this.focusedItemInfo={index:s,level:r,parentKey:a},i.focus(this.list)}else n?this.onItemChange(e):this.hide()},onItemMouseEnter:function(e){this.onItemChange(e)},onArrowDownKey:function(e){var t=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.popup&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowLeftKey:function(e){var i=this,n=this.visibleItems[this.focusedItemInfo.index],s=this.activeItemPath.find((function(e){return e.key===n.parentKey}));t.isEmpty(n.parent)||(this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter((function(e){return e.parentKey!==i.focusedItemInfo.parentKey})),e.preventDefault()},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(-1!==this.focusedItemInfo.index){var t=i.findSingle(this.list,'li[id="'.concat("".concat(this.focusedItemIdx),'"]')),n=t&&i.findSingle(t,'a[data-pc-section="action"]');n?n.click():t&&t.click(),!this.isProccessedItemGroup(this.visibleItems[this.focusedItemInfo.index])&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.hide(),!this.popup&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},onEnter:function(e){i.addStyles(e,{position:"absolute"}),this.position(),this.autoZIndex&&s.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit("show"),i.focus(this.list)},onLeave:function(){this.$emit("hide"),this.container=null},onAfterLeave:function(e){this.autoZIndex&&s.clear(e),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var e=this.pageX+1,t=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:i.getHiddenElementOuterWidth(this.container),s=this.container.offsetParent?this.container.offsetHeight:i.getHiddenElementOuterHeight(this.container),o=i.getViewport();e+n-document.body.scrollLeft>o.width&&(e-=n),t+s-document.body.scrollTop>o.height&&(t-=s),e<document.body.scrollLeft&&(e=document.body.scrollLeft),t<document.body.scrollTop&&(t=document.body.scrollTop),this.container.style.left=e+"px",this.container.style.top=t+"px"},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var i=e.container&&!e.container.contains(t.target),n=!e.visible||!(e.target&&(e.target===t.target||e.target.contains(t.target)));i&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!i.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var e=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(t){2===t.button&&e.show(t)},document.addEventListener("contextmenu",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener&&(document.removeEventListener("contextmenu",this.documentContextMenuListener),this.documentContextMenuListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&(null===(t=this.getProccessedItemLabel(e))||void 0===t?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidItem(t)}))},findLastItemIndex:function(){var e=this;return t.findLastIndex(this.visibleItems,(function(t){return e.isValidItem(t)}))},findNextItemIndex:function(e){var t=this,i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex((function(e){return t.isValidItem(e)})):-1;return i>-1?i+e+1:e},findPrevItemIndex:function(e){var i=this,n=e>0?t.findLastIndex(this.visibleItems.slice(0,e),(function(e){return i.isValidItem(e)})):-1;return n>-1?n:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidSelectedItem(t)}))},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,s=!1;return-1!==(n=-1!==this.focusedItemInfo.index?-1===(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})):n+this.focusedItemInfo.index:this.visibleItems.findIndex((function(e){return i.isItemMatched(e)})))&&(s=!0),-1===n&&-1===this.focusedItemInfo.index&&(n=this.findFirstFocusedItemIndex()),-1!==n&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),s},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=-1!==e?"".concat(this.id,"_").concat(e):this.focusedItemIdx,n=i.findSingle(this.list,'li[id="'.concat(t,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=[];return e&&e.forEach((function(e,r){var a=(""!==s?s+"_":"")+r,c={item:e,index:r,level:i,key:a,parent:n,parentKey:s};c.items=t.createProcessedItems(e.items,i+1,c,a),o.push(c)})),o},containerRef:function(e){this.container=e},listRef:function(e){this.list=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find((function(t){return t.key===e.focusedItemInfo.parentKey}));return t?t.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?"".concat(this.id).concat(t.isNotEmpty(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:w,Portal:e}};function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function T(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function z(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?T(Object(i),!0).forEach((function(t){j(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function j(e,t,i){var n;return(t="symbol"==F(n=R(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function R(e,t){if("object"!=F(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}V.render=function(e,t,i,n,s,o){var r=d("ContextMenuSub"),a=d("Portal");return m(),h(a,{appendTo:e.appendTo},{default:I((function(){return[E(f,u({name:"p-contextmenu",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},e.ptm("transition")),{default:I((function(){return[s.visible?(m(),p("div",u({key:0,ref:o.containerRef,class:e.cx("root")},z(z({},e.$attrs),e.ptm("root")),{"data-pc-name":"contextmenu"}),[E(r,{ref:o.listRef,id:s.id+"_list",class:P(e.cx("menu")),role:"menubar",root:!0,tabindex:e.tabindex,"aria-orientation":"vertical","aria-activedescendant":s.focused?o.focusedItemIdx:void 0,menuId:s.id,focusedItemId:s.focused?o.focusedItemIdx:void 0,items:o.processedItems,templates:e.$slots,activeItemPath:s.activeItemPath,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,level:0,visible:s.submenuVisible,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter},null,8,["id","class","tabindex","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","aria-labelledby","aria-label","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter"])],16)):L("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])};export{V as default};
1
+ import e from"primevue/portal";import{ObjectUtils as t,DomHandler as i,UniqueComponentId as n,ZIndexUtils as s}from"primevue/utils";import o from"primevue/basecomponent";import r from"primevue/contextmenu/style";import a from"primevue/icons/angleright";import c from"primevue/ripple";import{mergeProps as u,resolveComponent as l,resolveDirective as d,openBlock as m,createBlock as h,Transition as f,withCtx as I,createElementBlock as p,Fragment as b,renderList as v,createElementVNode as y,withDirectives as g,resolveDynamicComponent as x,normalizeClass as P,createCommentVNode as L,toDisplayString as k,createVNode as E}from"vue";var K={name:"BaseContextMenu",extends:o,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:r,provide:function(){return{$parentInstance:this}}},w={name:"ContextMenuSub",hostName:"ContextMenu",extends:o,emits:["item-click","item-mouseenter"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,n){return e&&e.item?t.getItemValue(e.item[i],n):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,active:this.isItemActive(t),focused:this.isItemFocused(t),disabled:this.isItemDisabled(t),index:i}})},isItemActive:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},isItemVisible:function(e){return!1!==this.getItemProp(e,"visible")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return t.isNotEmpty(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},getAriaSetSize:function(){var e=this;return this.items.filter((function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")})).length},getAriaPosInset:function(e){var t=this;return e-this.items.slice(0,e).filter((function(e){return t.isItemVisible(e)&&t.getItemProp(e,"separator")})).length+1},onEnter:function(){i.nestedPosition(this.$refs.container,this.level)},getMenuItemProps:function(e,t){return{action:u({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,t)),icon:u({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,t)),label:u({class:this.cx("label")},this.getPTOptions("label",e,t)),submenuicon:u({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,t))}}},components:{AngleRightIcon:a},directives:{ripple:c}},C=["tabindex"],S=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-highlight","data-p-focused","data-p-disabled"],O=["onClick","onMouseenter"],A=["href","target"],D=["id"],M=["id"];w.render=function(e,t,i,n,s,o){var r=l("AngleRightIcon"),a=l("ContextMenuSub",!0),c=d("ripple");return m(),h(f,u({name:"p-contextmenusub",onEnter:o.onEnter},e.ptm("menu.transition")),{default:I((function(){return[i.root||i.visible?(m(),p("ul",u({key:0,ref:"container",tabindex:i.tabindex},e.ptm("menu")),[(m(!0),p(b,null,v(i.items,(function(n,s){return m(),p(b,{key:o.getItemKey(n)},[o.isItemVisible(n)&&!o.getItemProp(n,"separator")?(m(),p("li",u({key:0,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("menuitem",{processedItem:n}),o.getItemProp(n,"class")],role:"menuitem","aria-label":o.getItemLabel(n),"aria-disabled":o.isItemDisabled(n)||void 0,"aria-expanded":o.isItemGroup(n)?o.isItemActive(n):void 0,"aria-haspopup":o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0,"aria-level":i.level+1,"aria-setsize":o.getAriaSetSize(),"aria-posinset":o.getAriaPosInset(s)},o.getPTOptions("menuitem",n,s),{"data-p-highlight":o.isItemActive(n),"data-p-focused":o.isItemFocused(n),"data-p-disabled":o.isItemDisabled(n)}),[y("div",u({class:e.cx("content"),onClick:function(e){return o.onItemClick(e,n)},onMouseenter:function(e){return o.onItemMouseEnter(e,n)}},o.getPTOptions("content",n,s)),[i.templates.item?(m(),h(x(i.templates.item),{key:1,item:n.item,hasSubmenu:o.getItemProp(n,"items"),label:o.getItemLabel(n),props:o.getMenuItemProps(n,s)},null,8,["item","hasSubmenu","label","props"])):g((m(),p("a",u({key:0,href:o.getItemProp(n,"url"),class:e.cx("action"),target:o.getItemProp(n,"target"),tabindex:"-1","aria-hidden":"true"},o.getPTOptions("action",n,s)),[i.templates.itemicon?(m(),h(x(i.templates.itemicon),{key:0,item:n.item,class:P([e.cx("icon"),o.getItemProp(n,"icon")])},null,8,["item","class"])):o.getItemProp(n,"icon")?(m(),p("span",u({key:1,class:[e.cx("icon"),o.getItemProp(n,"icon")]},o.getPTOptions("icon",n,s)),null,16)):L("",!0),y("span",u({id:o.getItemLabelId(n),class:e.cx("label")},o.getPTOptions("label",n,s)),k(o.getItemLabel(n)),17,D),o.getItemProp(n,"items")?(m(),p(b,{key:2},[i.templates.submenuicon?(m(),h(x(i.templates.submenuicon),{key:0,active:o.isItemActive(n),class:P(e.cx("submenuIcon"))},null,8,["active","class"])):(m(),h(r,u({key:1,class:e.cx("submenuIcon")},o.getPTOptions("submenuicon",n,s)),null,16,["class"]))],64)):L("",!0)],16,A)),[[c]])],16,O),o.isItemVisible(n)&&o.isItemGroup(n)?(m(),h(a,u({key:0,id:o.getItemId(n)+"_list",role:"menu",class:e.cx("submenu"),menuId:i.menuId,focusedItemId:i.focusedItemId,items:n.items,templates:i.templates,activeItemPath:i.activeItemPath,level:i.level+1,visible:o.isItemActive(n)&&o.isItemGroup(n),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(t){return e.$emit("item-click",t)}),onItemMouseenter:t[1]||(t[1]=function(t){return e.$emit("item-mouseenter",t)}),"aria-labelledby":o.getItemLabelId(n)},e.ptm("submenu")),null,16,["id","class","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled","aria-labelledby"])):L("",!0)],16,S)):L("",!0),o.isItemVisible(n)&&o.getItemProp(n,"separator")?(m(),p("li",u({key:1,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("separator"),o.getItemProp(n,"class")],role:"separator"},e.ptm("separator")),null,16,M)):L("",!0)],64)})),128))],16,C)):L("",!0)]})),_:1},16,["onEnter"])};var V={name:"ContextMenu",extends:K,inheritAttrs:!1,emits:["focus","blur","show","hide"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!1,submenuVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||n()},activeItemPath:function(e){t.isNotEmpty(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||n(),this.global&&this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.container&&this.autoZIndex&&s.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,i){return e?t.getItemValue(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemGroup:function(e){return t.isNotEmpty(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&t.isNotEmpty(e.items)},toggle:function(e){this.visible?this.hide():this.show(e)},show:function(e){this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},i.focus(this.list),this.pageX=e.pageX,this.pageY=e.pageY,this.visible?this.position():this.visible=!0,e.stopPropagation(),e.preventDefault()},hide:function(){this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""}},onFocus:function(e){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&t.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}},onItemChange:function(e){var n=e.processedItem,s=e.isFocus;if(!t.isEmpty(n)){var o=n.index,r=n.key,a=n.level,c=n.parentKey,u=t.isNotEmpty(n.items),l=this.activeItemPath.filter((function(e){return e.parentKey!==c&&e.parentKey!==r}));u&&(l.push(n),this.submenuVisible=!0),this.focusedItemInfo={index:o,level:a,parentKey:c},this.activeItemPath=l,s&&i.focus(this.list)}},onItemClick:function(e){var t=e.processedItem,n=this.isProccessedItemGroup(t);if(this.isSelected(t)){var s=t.index,o=t.key,r=t.level,a=t.parentKey;this.activeItemPath=this.activeItemPath.filter((function(e){return o!==e.key&&o.startsWith(e.key)})),this.focusedItemInfo={index:s,level:r,parentKey:a},i.focus(this.list)}else n?this.onItemChange(e):this.hide()},onItemMouseEnter:function(e){this.onItemChange(e)},onArrowDownKey:function(e){var t=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.popup&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowLeftKey:function(e){var i=this,n=this.visibleItems[this.focusedItemInfo.index],s=this.activeItemPath.find((function(e){return e.key===n.parentKey}));t.isEmpty(n.parent)||(this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter((function(e){return e.parentKey!==i.focusedItemInfo.parentKey})),e.preventDefault()},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(-1!==this.focusedItemInfo.index){var t=i.findSingle(this.list,'li[id="'.concat("".concat(this.focusedItemIdx),'"]')),n=t&&i.findSingle(t,'a[data-pc-section="action"]');n?n.click():t&&t.click(),!this.isProccessedItemGroup(this.visibleItems[this.focusedItemInfo.index])&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.hide(),!this.popup&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},onEnter:function(e){i.addStyles(e,{position:"absolute"}),this.position(),this.autoZIndex&&s.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit("show"),i.focus(this.list)},onLeave:function(){this.$emit("hide"),this.container=null},onAfterLeave:function(e){this.autoZIndex&&s.clear(e),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var e=this.pageX+1,t=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:i.getHiddenElementOuterWidth(this.container),s=this.container.offsetParent?this.container.offsetHeight:i.getHiddenElementOuterHeight(this.container),o=i.getViewport();e+n-document.body.scrollLeft>o.width&&(e-=n),t+s-document.body.scrollTop>o.height&&(t-=s),e<document.body.scrollLeft&&(e=document.body.scrollLeft),t<document.body.scrollTop&&(t=document.body.scrollTop),this.container.style.left=e+"px",this.container.style.top=t+"px"},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var i=e.container&&!e.container.contains(t.target),n=!e.visible||!(e.target&&(e.target===t.target||e.target.contains(t.target)));i&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!i.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var e=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(t){2===t.button&&e.show(t)},document.addEventListener("contextmenu",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener&&(document.removeEventListener("contextmenu",this.documentContextMenuListener),this.documentContextMenuListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&(null===(t=this.getProccessedItemLabel(e))||void 0===t?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidItem(t)}))},findLastItemIndex:function(){var e=this;return t.findLastIndex(this.visibleItems,(function(t){return e.isValidItem(t)}))},findNextItemIndex:function(e){var t=this,i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex((function(e){return t.isValidItem(e)})):-1;return i>-1?i+e+1:e},findPrevItemIndex:function(e){var i=this,n=e>0?t.findLastIndex(this.visibleItems.slice(0,e),(function(e){return i.isValidItem(e)})):-1;return n>-1?n:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidSelectedItem(t)}))},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,s=!1;return-1!==(n=-1!==this.focusedItemInfo.index?-1===(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})):n+this.focusedItemInfo.index:this.visibleItems.findIndex((function(e){return i.isItemMatched(e)})))&&(s=!0),-1===n&&-1===this.focusedItemInfo.index&&(n=this.findFirstFocusedItemIndex()),-1!==n&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),s},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=-1!==e?"".concat(this.id,"_").concat(e):this.focusedItemIdx,n=i.findSingle(this.list,'li[id="'.concat(t,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=[];return e&&e.forEach((function(e,r){var a=(""!==s?s+"_":"")+r,c={item:e,index:r,level:i,key:a,parent:n,parentKey:s};c.items=t.createProcessedItems(e.items,i+1,c,a),o.push(c)})),o},containerRef:function(e){this.container=e},listRef:function(e){this.list=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find((function(t){return t.key===e.focusedItemInfo.parentKey}));return t?t.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?"".concat(this.id).concat(t.isNotEmpty(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:w,Portal:e}};function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function T(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function z(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?T(Object(i),!0).forEach((function(t){j(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function j(e,t,i){var n;return(t="symbol"==F(n=R(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function R(e,t){if("object"!=F(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}V.render=function(e,t,i,n,s,o){var r=l("ContextMenuSub"),a=l("Portal");return m(),h(a,{appendTo:e.appendTo},{default:I((function(){return[E(f,u({name:"p-contextmenu",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},e.ptm("transition")),{default:I((function(){return[s.visible?(m(),p("div",u({key:0,ref:o.containerRef,class:e.cx("root")},z(z({},e.$attrs),e.ptm("root"))),[E(r,{ref:o.listRef,id:s.id+"_list",class:P(e.cx("menu")),role:"menubar",root:!0,tabindex:e.tabindex,"aria-orientation":"vertical","aria-activedescendant":s.focused?o.focusedItemIdx:void 0,menuId:s.id,focusedItemId:s.focused?o.focusedItemIdx:void 0,items:o.processedItems,templates:e.$slots,activeItemPath:s.activeItemPath,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,level:0,visible:s.submenuVisible,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter},null,8,["id","class","tabindex","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","aria-labelledby","aria-label","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter"])],16)):L("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])};export{V as default};
@@ -925,9 +925,7 @@ this.primevue.contextmenu = (function (Portal, utils, BaseComponent, ContextMenu
925
925
  key: 0,
926
926
  ref: $options.containerRef,
927
927
  "class": _ctx.cx('root')
928
- }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root')), {
929
- "data-pc-name": "contextmenu"
930
- }), [vue.createVNode(_component_ContextMenuSub, {
928
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [vue.createVNode(_component_ContextMenuSub, {
931
929
  ref: $options.listRef,
932
930
  id: $data.id + '_list',
933
931
  "class": vue.normalizeClass(_ctx.cx('menu')),
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.contextmenu=function(e,t,i,n,s,o,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),u=a(i),l={name:"BaseContextMenu",extends:u.default,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(n).default,provide:function(){return{$parentInstance:this}}},m={name:"ContextMenuSub",hostName:"ContextMenu",extends:u.default,emits:["item-click","item-mouseenter"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,n){return e&&e.item?t.ObjectUtils.getItemValue(e.item[i],n):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,active:this.isItemActive(t),focused:this.isItemFocused(t),disabled:this.isItemDisabled(t),index:i}})},isItemActive:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},isItemVisible:function(e){return!1!==this.getItemProp(e,"visible")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},getAriaSetSize:function(){var e=this;return this.items.filter((function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")})).length},getAriaPosInset:function(e){var t=this;return e-this.items.slice(0,e).filter((function(e){return t.isItemVisible(e)&&t.getItemProp(e,"separator")})).length+1},onEnter:function(){t.DomHandler.nestedPosition(this.$refs.container,this.level)},getMenuItemProps:function(e,t){return{action:r.mergeProps({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,t)),icon:r.mergeProps({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,t)),label:r.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,t))}}},components:{AngleRightIcon:a(s).default},directives:{ripple:a(o).default}},d=["tabindex"],h=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-highlight","data-p-focused","data-p-disabled"],I=["onClick","onMouseenter"],f=["href","target"],p=["id"],b=["id"];m.render=function(e,t,i,n,s,o){var a=r.resolveComponent("AngleRightIcon"),c=r.resolveComponent("ContextMenuSub",!0),u=r.resolveDirective("ripple");return r.openBlock(),r.createBlock(r.Transition,r.mergeProps({name:"p-contextmenusub",onEnter:o.onEnter},e.ptm("menu.transition")),{default:r.withCtx((function(){return[i.root||i.visible?(r.openBlock(),r.createElementBlock("ul",r.mergeProps({key:0,ref:"container",tabindex:i.tabindex},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,(function(n,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:o.getItemKey(n)},[o.isItemVisible(n)&&!o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("menuitem",{processedItem:n}),o.getItemProp(n,"class")],role:"menuitem","aria-label":o.getItemLabel(n),"aria-disabled":o.isItemDisabled(n)||void 0,"aria-expanded":o.isItemGroup(n)?o.isItemActive(n):void 0,"aria-haspopup":o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0,"aria-level":i.level+1,"aria-setsize":o.getAriaSetSize(),"aria-posinset":o.getAriaPosInset(s)},o.getPTOptions("menuitem",n,s),{"data-p-highlight":o.isItemActive(n),"data-p-focused":o.isItemFocused(n),"data-p-disabled":o.isItemDisabled(n)}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content"),onClick:function(e){return o.onItemClick(e,n)},onMouseenter:function(e){return o.onItemMouseEnter(e,n)}},o.getPTOptions("content",n,s)),[i.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.item),{key:1,item:n.item,hasSubmenu:o.getItemProp(n,"items"),label:o.getItemLabel(n),props:o.getMenuItemProps(n,s)},null,8,["item","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:o.getItemProp(n,"url"),class:e.cx("action"),target:o.getItemProp(n,"target"),tabindex:"-1","aria-hidden":"true"},o.getPTOptions("action",n,s)),[i.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.itemicon),{key:0,item:n.item,class:r.normalizeClass([e.cx("icon"),o.getItemProp(n,"icon")])},null,8,["item","class"])):o.getItemProp(n,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:1,class:[e.cx("icon"),o.getItemProp(n,"icon")]},o.getPTOptions("icon",n,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({id:o.getItemLabelId(n),class:e.cx("label")},o.getPTOptions("label",n,s)),r.toDisplayString(o.getItemLabel(n)),17,p),o.getItemProp(n,"items")?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[i.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.submenuicon),{key:0,active:o.isItemActive(n),class:r.normalizeClass(e.cx("submenuIcon"))},null,8,["active","class"])):(r.openBlock(),r.createBlock(a,r.mergeProps({key:1,class:e.cx("submenuIcon")},o.getPTOptions("submenuicon",n,s)),null,16,["class"]))],64)):r.createCommentVNode("",!0)],16,f)),[[u]])],16,I),o.isItemVisible(n)&&o.isItemGroup(n)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:o.getItemId(n)+"_list",role:"menu",class:e.cx("submenu"),menuId:i.menuId,focusedItemId:i.focusedItemId,items:n.items,templates:i.templates,activeItemPath:i.activeItemPath,level:i.level+1,visible:o.isItemActive(n)&&o.isItemGroup(n),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(t){return e.$emit("item-click",t)}),onItemMouseenter:t[1]||(t[1]=function(t){return e.$emit("item-mouseenter",t)}),"aria-labelledby":o.getItemLabelId(n)},e.ptm("submenu")),null,16,["id","class","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled","aria-labelledby"])):r.createCommentVNode("",!0)],16,h)):r.createCommentVNode("",!0),o.isItemVisible(n)&&o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("separator"),o.getItemProp(n,"class")],role:"separator"},e.ptm("separator")),null,16,b)):r.createCommentVNode("",!0)],64)})),128))],16,d)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter"])};var v={name:"ContextMenu",extends:l,inheritAttrs:!1,emits:["focus","blur","show","hide"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!1,submenuVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||t.UniqueComponentId()},activeItemPath:function(e){t.ObjectUtils.isNotEmpty(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||t.UniqueComponentId(),this.global&&this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.container&&this.autoZIndex&&t.ZIndexUtils.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,i){return e?t.ObjectUtils.getItemValue(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&t.ObjectUtils.isNotEmpty(e.items)},toggle:function(e){this.visible?this.hide():this.show(e)},show:function(e){this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},t.DomHandler.focus(this.list),this.pageX=e.pageX,this.pageY=e.pageY,this.visible?this.position():this.visible=!0,e.stopPropagation(),e.preventDefault()},hide:function(){this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""}},onFocus:function(e){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&t.ObjectUtils.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}},onItemChange:function(e){var i=e.processedItem,n=e.isFocus;if(!t.ObjectUtils.isEmpty(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey,c=t.ObjectUtils.isNotEmpty(i.items),u=this.activeItemPath.filter((function(e){return e.parentKey!==a&&e.parentKey!==o}));c&&(u.push(i),this.submenuVisible=!0),this.focusedItemInfo={index:s,level:r,parentKey:a},this.activeItemPath=u,n&&t.DomHandler.focus(this.list)}},onItemClick:function(e){var i=e.processedItem,n=this.isProccessedItemGroup(i);if(this.isSelected(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey;this.activeItemPath=this.activeItemPath.filter((function(e){return o!==e.key&&o.startsWith(e.key)})),this.focusedItemInfo={index:s,level:r,parentKey:a},t.DomHandler.focus(this.list)}else n?this.onItemChange(e):this.hide()},onItemMouseEnter:function(e){this.onItemChange(e)},onArrowDownKey:function(e){var t=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.popup&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowLeftKey:function(e){var i=this,n=this.visibleItems[this.focusedItemInfo.index],s=this.activeItemPath.find((function(e){return e.key===n.parentKey}));t.ObjectUtils.isEmpty(n.parent)||(this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter((function(e){return e.parentKey!==i.focusedItemInfo.parentKey})),e.preventDefault()},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(-1!==this.focusedItemInfo.index){var i=t.DomHandler.findSingle(this.list,'li[id="'.concat("".concat(this.focusedItemIdx),'"]')),n=i&&t.DomHandler.findSingle(i,'a[data-pc-section="action"]');n?n.click():i&&i.click(),!this.isProccessedItemGroup(this.visibleItems[this.focusedItemInfo.index])&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.hide(),!this.popup&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},onEnter:function(e){t.DomHandler.addStyles(e,{position:"absolute"}),this.position(),this.autoZIndex&&t.ZIndexUtils.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit("show"),t.DomHandler.focus(this.list)},onLeave:function(){this.$emit("hide"),this.container=null},onAfterLeave:function(e){this.autoZIndex&&t.ZIndexUtils.clear(e),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var e=this.pageX+1,i=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:t.DomHandler.getHiddenElementOuterWidth(this.container),s=this.container.offsetParent?this.container.offsetHeight:t.DomHandler.getHiddenElementOuterHeight(this.container),o=t.DomHandler.getViewport();e+n-document.body.scrollLeft>o.width&&(e-=n),i+s-document.body.scrollTop>o.height&&(i-=s),e<document.body.scrollLeft&&(e=document.body.scrollLeft),i<document.body.scrollTop&&(i=document.body.scrollTop),this.container.style.left=e+"px",this.container.style.top=i+"px"},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var i=e.container&&!e.container.contains(t.target),n=!e.visible||!(e.target&&(e.target===t.target||e.target.contains(t.target)));i&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!t.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var e=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(t){2===t.button&&e.show(t)},document.addEventListener("contextmenu",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener&&(document.removeEventListener("contextmenu",this.documentContextMenuListener),this.documentContextMenuListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&(null===(t=this.getProccessedItemLabel(e))||void 0===t?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidItem(t)}))},findLastItemIndex:function(){var e=this;return t.ObjectUtils.findLastIndex(this.visibleItems,(function(t){return e.isValidItem(t)}))},findNextItemIndex:function(e){var t=this,i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex((function(e){return t.isValidItem(e)})):-1;return i>-1?i+e+1:e},findPrevItemIndex:function(e){var i=this,n=e>0?t.ObjectUtils.findLastIndex(this.visibleItems.slice(0,e),(function(e){return i.isValidItem(e)})):-1;return n>-1?n:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidSelectedItem(t)}))},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,s=!1;return-1!==(n=-1!==this.focusedItemInfo.index?-1===(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})):n+this.focusedItemInfo.index:this.visibleItems.findIndex((function(e){return i.isItemMatched(e)})))&&(s=!0),-1===n&&-1===this.focusedItemInfo.index&&(n=this.findFirstFocusedItemIndex()),-1!==n&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),s},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==e?"".concat(this.id,"_").concat(e):this.focusedItemIdx,n=t.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=[];return e&&e.forEach((function(e,r){var a=(""!==s?s+"_":"")+r,c={item:e,index:r,level:i,key:a,parent:n,parentKey:s};c.items=t.createProcessedItems(e.items,i+1,c,a),o.push(c)})),o},containerRef:function(e){this.container=e},listRef:function(e){this.list=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find((function(t){return t.key===e.focusedItemInfo.parentKey}));return t?t.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?"".concat(this.id).concat(t.ObjectUtils.isNotEmpty(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:m,Portal:c.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){P(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function P(e,t,i){var n;return(t="symbol"==g(n=k(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function k(e,t){if("object"!=g(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}return v.render=function(e,t,i,n,s,o){var a=r.resolveComponent("ContextMenuSub"),c=r.resolveComponent("Portal");return r.openBlock(),r.createBlock(c,{appendTo:e.appendTo},{default:r.withCtx((function(){return[r.createVNode(r.Transition,r.mergeProps({name:"p-contextmenu",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},e.ptm("transition")),{default:r.withCtx((function(){return[s.visible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:o.containerRef,class:e.cx("root")},x(x({},e.$attrs),e.ptm("root")),{"data-pc-name":"contextmenu"}),[r.createVNode(a,{ref:o.listRef,id:s.id+"_list",class:r.normalizeClass(e.cx("menu")),role:"menubar",root:!0,tabindex:e.tabindex,"aria-orientation":"vertical","aria-activedescendant":s.focused?o.focusedItemIdx:void 0,menuId:s.id,focusedItemId:s.focused?o.focusedItemIdx:void 0,items:o.processedItems,templates:e.$slots,activeItemPath:s.activeItemPath,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,level:0,visible:s.submenuVisible,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter},null,8,["id","class","tabindex","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","aria-labelledby","aria-label","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter"])],16)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])},v}(primevue.portal,primevue.utils,primevue.basecomponent,primevue.contextmenu.style,primevue.icons.angleright,primevue.ripple,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.contextmenu=function(e,t,i,n,s,o,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),u=a(i),l={name:"BaseContextMenu",extends:u.default,props:{model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},global:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:a(n).default,provide:function(){return{$parentInstance:this}}},m={name:"ContextMenuSub",hostName:"ContextMenu",extends:u.default,emits:["item-click","item-mouseenter"],props:{items:{type:Array,default:null},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},root:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,n){return e&&e.item?t.ObjectUtils.getItemValue(e.item[i],n):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,t,i){return this.ptm(e,{context:{item:t,active:this.isItemActive(t),focused:this.isItemFocused(t),disabled:this.isItemDisabled(t),index:i}})},isItemActive:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},isItemVisible:function(e){return!1!==this.getItemProp(e,"visible")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(e.items)},onItemClick:function(e,t){this.getItemProp(t,"command",{originalEvent:e,item:t.item}),this.$emit("item-click",{originalEvent:e,processedItem:t,isFocus:!0})},onItemMouseEnter:function(e,t){this.$emit("item-mouseenter",{originalEvent:e,processedItem:t})},getAriaSetSize:function(){var e=this;return this.items.filter((function(t){return e.isItemVisible(t)&&!e.getItemProp(t,"separator")})).length},getAriaPosInset:function(e){var t=this;return e-this.items.slice(0,e).filter((function(e){return t.isItemVisible(e)&&t.getItemProp(e,"separator")})).length+1},onEnter:function(){t.DomHandler.nestedPosition(this.$refs.container,this.level)},getMenuItemProps:function(e,t){return{action:r.mergeProps({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,t)),icon:r.mergeProps({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,t)),label:r.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,t)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,t))}}},components:{AngleRightIcon:a(s).default},directives:{ripple:a(o).default}},d=["tabindex"],h=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-highlight","data-p-focused","data-p-disabled"],I=["onClick","onMouseenter"],f=["href","target"],p=["id"],b=["id"];m.render=function(e,t,i,n,s,o){var a=r.resolveComponent("AngleRightIcon"),c=r.resolveComponent("ContextMenuSub",!0),u=r.resolveDirective("ripple");return r.openBlock(),r.createBlock(r.Transition,r.mergeProps({name:"p-contextmenusub",onEnter:o.onEnter},e.ptm("menu.transition")),{default:r.withCtx((function(){return[i.root||i.visible?(r.openBlock(),r.createElementBlock("ul",r.mergeProps({key:0,ref:"container",tabindex:i.tabindex},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,(function(n,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:o.getItemKey(n)},[o.isItemVisible(n)&&!o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("menuitem",{processedItem:n}),o.getItemProp(n,"class")],role:"menuitem","aria-label":o.getItemLabel(n),"aria-disabled":o.isItemDisabled(n)||void 0,"aria-expanded":o.isItemGroup(n)?o.isItemActive(n):void 0,"aria-haspopup":o.isItemGroup(n)&&!o.getItemProp(n,"to")?"menu":void 0,"aria-level":i.level+1,"aria-setsize":o.getAriaSetSize(),"aria-posinset":o.getAriaPosInset(s)},o.getPTOptions("menuitem",n,s),{"data-p-highlight":o.isItemActive(n),"data-p-focused":o.isItemFocused(n),"data-p-disabled":o.isItemDisabled(n)}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content"),onClick:function(e){return o.onItemClick(e,n)},onMouseenter:function(e){return o.onItemMouseEnter(e,n)}},o.getPTOptions("content",n,s)),[i.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.item),{key:1,item:n.item,hasSubmenu:o.getItemProp(n,"items"),label:o.getItemLabel(n),props:o.getMenuItemProps(n,s)},null,8,["item","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:o.getItemProp(n,"url"),class:e.cx("action"),target:o.getItemProp(n,"target"),tabindex:"-1","aria-hidden":"true"},o.getPTOptions("action",n,s)),[i.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.itemicon),{key:0,item:n.item,class:r.normalizeClass([e.cx("icon"),o.getItemProp(n,"icon")])},null,8,["item","class"])):o.getItemProp(n,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:1,class:[e.cx("icon"),o.getItemProp(n,"icon")]},o.getPTOptions("icon",n,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({id:o.getItemLabelId(n),class:e.cx("label")},o.getPTOptions("label",n,s)),r.toDisplayString(o.getItemLabel(n)),17,p),o.getItemProp(n,"items")?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[i.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.submenuicon),{key:0,active:o.isItemActive(n),class:r.normalizeClass(e.cx("submenuIcon"))},null,8,["active","class"])):(r.openBlock(),r.createBlock(a,r.mergeProps({key:1,class:e.cx("submenuIcon")},o.getPTOptions("submenuicon",n,s)),null,16,["class"]))],64)):r.createCommentVNode("",!0)],16,f)),[[u]])],16,I),o.isItemVisible(n)&&o.isItemGroup(n)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:o.getItemId(n)+"_list",role:"menu",class:e.cx("submenu"),menuId:i.menuId,focusedItemId:i.focusedItemId,items:n.items,templates:i.templates,activeItemPath:i.activeItemPath,level:i.level+1,visible:o.isItemActive(n)&&o.isItemGroup(n),pt:e.pt,unstyled:e.unstyled,onItemClick:t[0]||(t[0]=function(t){return e.$emit("item-click",t)}),onItemMouseenter:t[1]||(t[1]=function(t){return e.$emit("item-mouseenter",t)}),"aria-labelledby":o.getItemLabelId(n)},e.ptm("submenu")),null,16,["id","class","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled","aria-labelledby"])):r.createCommentVNode("",!0)],16,h)):r.createCommentVNode("",!0),o.isItemVisible(n)&&o.getItemProp(n,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,id:o.getItemId(n),style:o.getItemProp(n,"style"),class:[e.cx("separator"),o.getItemProp(n,"class")],role:"separator"},e.ptm("separator")),null,16,b)):r.createCommentVNode("",!0)],64)})),128))],16,d)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter"])};var v={name:"ContextMenu",extends:l,inheritAttrs:!1,emits:["focus","blur","show","hide"],target:null,outsideClickListener:null,resizeListener:null,documentContextMenuListener:null,pageX:null,pageY:null,container:null,list:null,data:function(){return{id:this.$attrs.id,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!1,submenuVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||t.UniqueComponentId()},activeItemPath:function(e){t.ObjectUtils.isNotEmpty(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):this.visible||(this.unbindOutsideClickListener(),this.unbindResizeListener())}},mounted:function(){this.id=this.id||t.UniqueComponentId(),this.global&&this.bindDocumentContextMenuListener()},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.unbindDocumentContextMenuListener(),this.container&&this.autoZIndex&&t.ZIndexUtils.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,i){return e?t.ObjectUtils.getItemValue(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemGroup:function(e){return t.ObjectUtils.isNotEmpty(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&t.ObjectUtils.isNotEmpty(e.items)},toggle:function(e){this.visible?this.hide():this.show(e)},show:function(e){this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},t.DomHandler.focus(this.list),this.pageX=e.pageX,this.pageY=e.pageY,this.visible?this.position():this.visible=!0,e.stopPropagation(),e.preventDefault()},hide:function(){this.visible=!1,this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""}},onFocus:function(e){this.focused=!0,this.focusedItemInfo=-1!==this.focusedItemInfo.index?this.focusedItemInfo:{index:-1,level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&t.ObjectUtils.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}},onItemChange:function(e){var i=e.processedItem,n=e.isFocus;if(!t.ObjectUtils.isEmpty(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey,c=t.ObjectUtils.isNotEmpty(i.items),u=this.activeItemPath.filter((function(e){return e.parentKey!==a&&e.parentKey!==o}));c&&(u.push(i),this.submenuVisible=!0),this.focusedItemInfo={index:s,level:r,parentKey:a},this.activeItemPath=u,n&&t.DomHandler.focus(this.list)}},onItemClick:function(e){var i=e.processedItem,n=this.isProccessedItemGroup(i);if(this.isSelected(i)){var s=i.index,o=i.key,r=i.level,a=i.parentKey;this.activeItemPath=this.activeItemPath.filter((function(e){return o!==e.key&&o.startsWith(e.key)})),this.focusedItemInfo={index:s,level:r,parentKey:a},t.DomHandler.focus(this.list)}else n?this.onItemChange(e):this.hide()},onItemMouseEnter:function(e){this.onItemChange(e)},onArrowDownKey:function(e){var t=-1!==this.focusedItemInfo.index?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,t),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.popup&&this.hide(),e.preventDefault()}else{var i=-1!==this.focusedItemInfo.index?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}},onArrowLeftKey:function(e){var i=this,n=this.visibleItems[this.focusedItemInfo.index],s=this.activeItemPath.find((function(e){return e.key===n.parentKey}));t.ObjectUtils.isEmpty(n.parent)||(this.focusedItemInfo={index:-1,parentKey:s?s.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter((function(e){return e.parentKey!==i.focusedItemInfo.parentKey})),e.preventDefault()},onArrowRightKey:function(e){var t=this.visibleItems[this.focusedItemInfo.index];this.isProccessedItemGroup(t)&&(this.onItemChange({originalEvent:e,processedItem:t}),this.focusedItemInfo={index:-1,parentKey:t.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(-1!==this.focusedItemInfo.index){var i=t.DomHandler.findSingle(this.list,'li[id="'.concat("".concat(this.focusedItemIdx),'"]')),n=i&&t.DomHandler.findSingle(i,'a[data-pc-section="action"]');n?n.click():i&&i.click(),!this.isProccessedItemGroup(this.visibleItems[this.focusedItemInfo.index])&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){this.hide(),!this.popup&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex()),e.preventDefault()},onTabKey:function(e){if(-1!==this.focusedItemInfo.index){var t=this.visibleItems[this.focusedItemInfo.index];!this.isProccessedItemGroup(t)&&this.onItemChange({originalEvent:e,processedItem:t})}this.hide()},onEnter:function(e){t.DomHandler.addStyles(e,{position:"absolute"}),this.position(),this.autoZIndex&&t.ZIndexUtils.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu)},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindResizeListener(),this.$emit("show"),t.DomHandler.focus(this.list)},onLeave:function(){this.$emit("hide"),this.container=null},onAfterLeave:function(e){this.autoZIndex&&t.ZIndexUtils.clear(e),this.unbindOutsideClickListener(),this.unbindResizeListener()},position:function(){var e=this.pageX+1,i=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:t.DomHandler.getHiddenElementOuterWidth(this.container),s=this.container.offsetParent?this.container.offsetHeight:t.DomHandler.getHiddenElementOuterHeight(this.container),o=t.DomHandler.getViewport();e+n-document.body.scrollLeft>o.width&&(e-=n),i+s-document.body.scrollTop>o.height&&(i-=s),e<document.body.scrollLeft&&(e=document.body.scrollLeft),i<document.body.scrollTop&&(i=document.body.scrollTop),this.container.style.left=e+"px",this.container.style.top=i+"px"},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){var i=e.container&&!e.container.contains(t.target),n=!e.visible||!(e.target&&(e.target===t.target||e.target.contains(t.target)));i&&n&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!t.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentContextMenuListener:function(){var e=this;this.documentContextMenuListener||(this.documentContextMenuListener=function(t){2===t.button&&e.show(t)},document.addEventListener("contextmenu",this.documentContextMenuListener))},unbindDocumentContextMenuListener:function(){this.documentContextMenuListener&&(document.removeEventListener("contextmenu",this.documentContextMenuListener),this.documentContextMenuListener=null)},isItemMatched:function(e){var t;return this.isValidItem(e)&&(null===(t=this.getProccessedItemLabel(e))||void 0===t?void 0:t.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some((function(t){return t.key===e.key}))},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidItem(t)}))},findLastItemIndex:function(){var e=this;return t.ObjectUtils.findLastIndex(this.visibleItems,(function(t){return e.isValidItem(t)}))},findNextItemIndex:function(e){var t=this,i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex((function(e){return t.isValidItem(e)})):-1;return i>-1?i+e+1:e},findPrevItemIndex:function(e){var i=this,n=e>0?t.ObjectUtils.findLastIndex(this.visibleItems.slice(0,e),(function(e){return i.isValidItem(e)})):-1;return n>-1?n:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex((function(t){return e.isValidSelectedItem(t)}))},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,t){var i=this;this.searchValue=(this.searchValue||"")+t;var n=-1,s=!1;return-1!==(n=-1!==this.focusedItemInfo.index?-1===(n=this.visibleItems.slice(this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})))?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex((function(e){return i.isItemMatched(e)})):n+this.focusedItemInfo.index:this.visibleItems.findIndex((function(e){return i.isItemMatched(e)})))&&(s=!0),-1===n&&-1===this.focusedItemInfo.index&&(n=this.findFirstFocusedItemIndex()),-1!==n&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){i.searchValue="",i.searchTimeout=null}),500),s},changeFocusedItemIndex:function(e,t){this.focusedItemInfo.index!==t&&(this.focusedItemInfo.index=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==e?"".concat(this.id,"_").concat(e):this.focusedItemIdx,n=t.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=[];return e&&e.forEach((function(e,r){var a=(""!==s?s+"_":"")+r,c={item:e,index:r,level:i,key:a,parent:n,parentKey:s};c.items=t.createProcessedItems(e.items,i+1,c,a),o.push(c)})),o},containerRef:function(e){this.container=e},listRef:function(e){this.list=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,t=this.activeItemPath.find((function(t){return t.key===e.focusedItemInfo.parentKey}));return t?t.items:this.processedItems},focusedItemIdx:function(){return-1!==this.focusedItemInfo.index?"".concat(this.id).concat(t.ObjectUtils.isNotEmpty(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{ContextMenuSub:m,Portal:c.default}};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){P(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function P(e,t,i){var n;return(t="symbol"==g(n=k(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function k(e,t){if("object"!=g(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}return v.render=function(e,t,i,n,s,o){var a=r.resolveComponent("ContextMenuSub"),c=r.resolveComponent("Portal");return r.openBlock(),r.createBlock(c,{appendTo:e.appendTo},{default:r.withCtx((function(){return[r.createVNode(r.Transition,r.mergeProps({name:"p-contextmenu",onEnter:o.onEnter,onAfterEnter:o.onAfterEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},e.ptm("transition")),{default:r.withCtx((function(){return[s.visible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:o.containerRef,class:e.cx("root")},x(x({},e.$attrs),e.ptm("root"))),[r.createVNode(a,{ref:o.listRef,id:s.id+"_list",class:r.normalizeClass(e.cx("menu")),role:"menubar",root:!0,tabindex:e.tabindex,"aria-orientation":"vertical","aria-activedescendant":s.focused?o.focusedItemIdx:void 0,menuId:s.id,focusedItemId:s.focused?o.focusedItemIdx:void 0,items:o.processedItems,templates:e.$slots,activeItemPath:s.activeItemPath,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,level:0,visible:s.submenuVisible,pt:e.pt,unstyled:e.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter},null,8,["id","class","tabindex","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","aria-labelledby","aria-label","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter"])],16)):r.createCommentVNode("",!0)]})),_:1},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:1},8,["appendTo"])},v}(primevue.portal,primevue.utils,primevue.basecomponent,primevue.contextmenu.style,primevue.icons.angleright,primevue.ripple,Vue);
@@ -6,12 +6,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
8
8
 
9
- var css = "\n@layer primevue {\n .p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n }\n\n .p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-text {\n line-height: 1;\n }\n\n .p-contextmenu .p-menuitem {\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n\n .p-contextmenu-enter-from,\n .p-contextmenu-leave-active {\n opacity: 0;\n }\n\n .p-contextmenu-enter-active {\n transition: opacity 250ms;\n }\n}\n";
10
9
  var classes = {
11
10
  root: function root(_ref) {
12
11
  var instance = _ref.instance;
13
12
  return ['p-contextmenu p-component', {
14
- 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
15
13
  'p-ripple-disabled': instance.$primevue.config.ripple === false
16
14
  }];
17
15
  },
@@ -35,7 +33,6 @@ var classes = {
35
33
  };
36
34
  var ContextMenuStyle = BaseStyle__default["default"].extend({
37
35
  name: 'contextmenu',
38
- css: css,
39
36
  classes: classes
40
37
  });
41
38
 
@@ -1 +1 @@
1
- "use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var e=n(require("primevue/base/style")).default.extend({name:"contextmenu",css:"\n@layer primevue {\n .p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n }\n\n .p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-text {\n line-height: 1;\n }\n\n .p-contextmenu .p-menuitem {\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n\n .p-contextmenu-enter-from,\n .p-contextmenu-leave-active {\n opacity: 0;\n }\n\n .p-contextmenu-enter-active {\n transition: opacity 250ms;\n }\n}\n",classes:{root:function(n){var e=n.instance;return["p-contextmenu p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},menu:"p-contextmenu-root-list",menuitem:function(n){var e=n.instance,t=n.processedItem;return["p-menuitem",{"p-menuitem-active p-highlight":e.isItemActive(t),"p-focus":e.isItemFocused(t),"p-disabled":e.isItemDisabled(t)}]},content:"p-menuitem-content",action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",submenuIcon:"p-submenu-icon",submenu:"p-submenu-list",separator:"p-menuitem-separator"}});module.exports=e;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("primevue/base/style")).default.extend({name:"contextmenu",classes:{root:function(e){return["p-contextmenu p-component",{"p-ripple-disabled":!1===e.instance.$primevue.config.ripple}]},menu:"p-contextmenu-root-list",menuitem:function(e){var t=e.instance,n=e.processedItem;return["p-menuitem",{"p-menuitem-active p-highlight":t.isItemActive(n),"p-focus":t.isItemFocused(n),"p-disabled":t.isItemDisabled(n)}]},content:"p-menuitem-content",action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",submenuIcon:"p-submenu-icon",submenu:"p-submenu-list",separator:"p-menuitem-separator"}});module.exports=t;
@@ -1,11 +1,9 @@
1
1
  import BaseStyle from 'primevue/base/style';
2
2
 
3
- var css = "\n@layer primevue {\n .p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n }\n\n .p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-text {\n line-height: 1;\n }\n\n .p-contextmenu .p-menuitem {\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n\n .p-contextmenu-enter-from,\n .p-contextmenu-leave-active {\n opacity: 0;\n }\n\n .p-contextmenu-enter-active {\n transition: opacity 250ms;\n }\n}\n";
4
3
  var classes = {
5
4
  root: function root(_ref) {
6
5
  var instance = _ref.instance;
7
6
  return ['p-contextmenu p-component', {
8
- 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
9
7
  'p-ripple-disabled': instance.$primevue.config.ripple === false
10
8
  }];
11
9
  },
@@ -29,7 +27,6 @@ var classes = {
29
27
  };
30
28
  var ContextMenuStyle = BaseStyle.extend({
31
29
  name: 'contextmenu',
32
- css: css,
33
30
  classes: classes
34
31
  });
35
32
 
@@ -1 +1 @@
1
- import n from"primevue/base/style";var e=n.extend({name:"contextmenu",css:"\n@layer primevue {\n .p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n }\n\n .p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-text {\n line-height: 1;\n }\n\n .p-contextmenu .p-menuitem {\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n\n .p-contextmenu-enter-from,\n .p-contextmenu-leave-active {\n opacity: 0;\n }\n\n .p-contextmenu-enter-active {\n transition: opacity 250ms;\n }\n}\n",classes:{root:function(n){var e=n.instance;return["p-contextmenu p-component",{"p-input-filled":"filled"===e.$primevue.config.inputStyle,"p-ripple-disabled":!1===e.$primevue.config.ripple}]},menu:"p-contextmenu-root-list",menuitem:function(n){var e=n.instance,t=n.processedItem;return["p-menuitem",{"p-menuitem-active p-highlight":e.isItemActive(t),"p-focus":e.isItemFocused(t),"p-disabled":e.isItemDisabled(t)}]},content:"p-menuitem-content",action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",submenuIcon:"p-submenu-icon",submenu:"p-submenu-list",separator:"p-menuitem-separator"}});export{e as default};
1
+ import e from"primevue/base/style";var t=e.extend({name:"contextmenu",classes:{root:function(e){return["p-contextmenu p-component",{"p-ripple-disabled":!1===e.instance.$primevue.config.ripple}]},menu:"p-contextmenu-root-list",menuitem:function(e){var t=e.instance,n=e.processedItem;return["p-menuitem",{"p-menuitem-active p-highlight":t.isItemActive(n),"p-focus":t.isItemFocused(n),"p-disabled":t.isItemDisabled(n)}]},content:"p-menuitem-content",action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",submenuIcon:"p-submenu-icon",submenu:"p-submenu-list",separator:"p-menuitem-separator"}});export{t as default};
@@ -7,12 +7,10 @@ this.primevue.contextmenu.style = (function (BaseStyle) {
7
7
 
8
8
  var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
9
9
 
10
- var css = "\n@layer primevue {\n .p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n }\n\n .p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-text {\n line-height: 1;\n }\n\n .p-contextmenu .p-menuitem {\n position: relative;\n }\n\n .p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n\n .p-contextmenu-enter-from,\n .p-contextmenu-leave-active {\n opacity: 0;\n }\n\n .p-contextmenu-enter-active {\n transition: opacity 250ms;\n }\n}\n";
11
10
  var classes = {
12
11
  root: function root(_ref) {
13
12
  var instance = _ref.instance;
14
13
  return ['p-contextmenu p-component', {
15
- 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
16
14
  'p-ripple-disabled': instance.$primevue.config.ripple === false
17
15
  }];
18
16
  },
@@ -36,7 +34,6 @@ this.primevue.contextmenu.style = (function (BaseStyle) {
36
34
  };
37
35
  var ContextMenuStyle = BaseStyle__default["default"].extend({
38
36
  name: 'contextmenu',
39
- css: css,
40
37
  classes: classes
41
38
  });
42
39